forked from fabricjs/fabric.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Fabric 2.0 Changes
Andrea Bogazzi edited this page Sep 19, 2016
·
6 revisions
#2.0.0
Improvement: Added fill for images. support gradients, patterns, colors. 3269
BackIncompat:
- rename backgroundColor to backgroundFill, added support for pattern, gradients, colors.
- rename overlayColor to overlayFill, added support for pattern, gradients, colors.
- rename backgroundImage to backgroundObject, added support for any kind of fabricObject.
- rename opacityImage to opacityObject, added support for any kind of fabricObject.
- loading backgroundImage by url no more possible (create image from Url and then set as background)
- renamed _getNonTransformedDimensions and _getTransformedDimensions to getNonTransformedDimensions and getTransformedDimensions.
- deleted getWidth and getHeight: the name was confusional with a normal getter, they were returning the transformed width and height. Please use getTransformedDimension().x and getTransformedDimension().y
- removed loadFromDatalessJSON, use normal loadFromJSON
- removed alias class fabricElement
- renamed renderOnAddRemove in automaticRender and expand its usage to moveTo, moveBackward, moveForward, setActiveObject, and other function that where automatically rendering. Mouse action render automatically.
- JSON saved states: the fill property of the images will get rendered.
- Upgraded to jsdom latest. Node 4 onward required.
- Removed support of ie < 9.