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.
|
@@ -203741,7 +203741,7 @@ var Canvas_InternalCanvas = /*#__PURE__*/function (_Component) {
|
|
|
203741
203741
|
var mergedCanvasOption = Object.assign({}, defaults_namespaceObject.canvasOption, canvasOption, {
|
|
203742
203742
|
width: width,
|
|
203743
203743
|
height: height,
|
|
203744
|
-
selection: typeof canvasOption.selection !== 'undefined' && canvasOption.selection || editable
|
|
203744
|
+
selection: typeof (canvasOption === null || canvasOption === void 0 ? void 0 : canvasOption.selection) !== 'undefined' && (canvasOption === null || canvasOption === void 0 ? void 0 : canvasOption.selection) || editable
|
|
203745
203745
|
});
|
|
203746
203746
|
this.canvas = new fabric["fabric"].Canvas("canvas_".concat(id), mergedCanvasOption);
|
|
203747
203747
|
this.canvas.setBackgroundColor(mergedCanvasOption.backgroundColor, this.canvas.renderAll.bind(this.canvas));
|