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.
- package/dist/index.mjs +2 -1
- 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
|
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;
|