Changelog
[4.0.0-beta.8]
Changelog
[4.0.0-beta.7]
feat(controls): Added controls mouseUpHandler and mouseDownHandler #6158 Removal of deprecated methods / patterns. #6111
rect.setShadow(options)
to rect.set('shadow', new fabric.Shadow(options))
object:selected
event. use selection:created
. In the callback you will still find target
in the options, but also you will find selected
with all the objects selected during that single event.clipTo
. Use Object.clipPath;loadFromJSON
observe
, stopObserving
, trigger
from observable. Keep using on
, off
, fire
.rect.setGradient(options)
with rect.set('fill', new fabric.Gradient(otherOptions))
. The options format is slightly different, but keeping 2 formats does not really make sense.rect.setPatternFill(options)
to rect.set('fill', new fabric.Pattern(options))
;rect.setColor(color)
to rect.set('fill', color)