feat(controls): Added controls mouseUpHandler and mouseDownHandler #6158
Removal of deprecated methods / patterns. #6111
- removed Object.setShadow, and BaseBrush.setShadow. change
rect.setShadow(options)
torect.set('shadow', new fabric.Shadow(options))
- removed Object.transformMatrix.
- removed
object:selected
event. useselection:created
. In the callback you will still findtarget
in the options, but also you will findselected
with all the objects selected during that single event. - removed Gradient.forObject. No alternative available.
- removed Object and canvas
clipTo
. Use Object.clipPath; - removed Canvas.loadFromDatalessJSON, it was just an alias for
loadFromJSON
- removed
observe
,stopObserving
,trigger
from observable. Keep usingon
,off
,fire
. - removed the Object.set ability to take a function as a value. Was rather strange to use.
- removed Object.setGradient. Change
rect.setGradient(options)
withrect.set('fill', new fabric.Gradient(otherOptions))
. The options format is slightly different, but keeping 2 formats does not really make sense. - removed Object.setPatternFill. Change
rect.setPatternFill(options)
torect.set('fill', new fabric.Pattern(options))
; - removed Object.setColor. Change
rect.setColor(color)
torect.set('fill', color)
- removed fabric.util.customTransformMatrix. Use the replacement fabric.util.composeMatrix