react-design-editor 0.0.51 → 0.0.52

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/Canvas.js CHANGED
@@ -72,7 +72,7 @@ class InternalCanvas extends react_1.Component {
72
72
  const mergedCanvasOption = Object.assign({}, constants_1.defaults.canvasOption, canvasOption, {
73
73
  width,
74
74
  height,
75
- selection: (typeof canvasOption.selection !== 'undefined' && canvasOption.selection) || editable,
75
+ selection: (typeof canvasOption?.selection !== 'undefined' && canvasOption?.selection) || editable,
76
76
  });
77
77
  this.canvas = new fabric_1.fabric.Canvas(`canvas_${id}`, mergedCanvasOption);
78
78
  this.canvas.setBackgroundColor(mergedCanvasOption.backgroundColor, this.canvas.renderAll.bind(this.canvas));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-design-editor",
3
- "version": "0.0.51",
3
+ "version": "0.0.52",
4
4
  "description": "Design Editor Tools with React.js + ant.design + fabric.js",
5
5
  "main": "dist/react-design-editor.min.js",
6
6
  "typings": "lib/index.d.ts",