Open bbernhard opened 4 years ago
We are still using fabric.js 1.x, although there's already version 4.0 (still in beta) out there. Investigate whether it's possible to upgrade to fabric.js v4.
Breaking changes: From version 1.x to 2.0 they have deprecated a bunch of stuff. See: http://fabricjs.com/changes-introduction
After going through the breaking changes, I think the following points are relevant for us:
discardActiveGroup
Canvas.renderall
Canvas.requestRenderAll
fabric.Image.fromObject
infos about fabric.js v4, see: https://github.com/fabricjs/fabric.js/issues/6159
We are still using fabric.js 1.x, although there's already version 4.0 (still in beta) out there. Investigate whether it's possible to upgrade to fabric.js v4.
Breaking changes: From version 1.x to 2.0 they have deprecated a bunch of stuff. See: http://fabricjs.com/changes-introduction
After going through the breaking changes, I think the following points are relevant for us:
discardActiveGroup
got deprecated; we need to replace itCanvas.renderall
withCanvas.requestRenderAll
to allow async canvas drawingfabric.Image.fromObject
to make it possible to load old JSON. (see: http://fabricjs.com/v2-breaking-changes)infos about fabric.js v4, see: https://github.com/fabricjs/fabric.js/issues/6159