canvas-editor-engine 2.2.5 → 2.2.6

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.
Files changed (2) hide show
  1. package/dist/index.mjs +2 -1
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -2531,7 +2531,8 @@ var DrawLayersService = function() {
2531
2531
  }
2532
2532
  DrawLayersService.prototype.addLayer = function(layerOptions) {
2533
2533
  var _a;
2534
- var layerName = layerOptions.layerName, painter = layerOptions.painter;
2534
+ var layerName = layerOptions === null || layerOptions === void 0 ? void 0 : layerOptions.layerName;
2535
+ var painter = layerOptions === null || layerOptions === void 0 ? void 0 : layerOptions.painter;
2535
2536
  var id = Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15);
2536
2537
  var name = function() {
2537
2538
  if (layerName) return layerName;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "canvas-editor-engine",
3
- "version": "2.2.5",
3
+ "version": "2.2.6",
4
4
  "description": "CanvasEditorEngine library, use: [typescript] [canvas]",
5
5
  "main": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",