canvas-editor-engine 2.2.4 → 2.2.5
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
CHANGED
@@ -2560,6 +2560,11 @@ var DrawLayersService = function() {
|
|
2560
2560
|
return layer.order === order;
|
2561
2561
|
}));
|
2562
2562
|
};
|
2563
|
+
DrawLayersService.prototype.getLayerById = function(layerId) {
|
2564
|
+
return this.layerList.find((function(layer) {
|
2565
|
+
return layer.id === layerId;
|
2566
|
+
}));
|
2567
|
+
};
|
2563
2568
|
DrawLayersService.prototype.addToLayer = function(id, painter) {
|
2564
2569
|
var layerIndex = this.layerList.findIndex((function(layer) {
|
2565
2570
|
return layer.id === id;
|
@@ -10,6 +10,7 @@ export default class DrawLayersService {
|
|
10
10
|
painter?: IPainter;
|
11
11
|
}): void;
|
12
12
|
getLayerByOrder(order: number): ILayer;
|
13
|
+
getLayerById(layerId: ILayer['id']): ILayer;
|
13
14
|
addToLayer(id: ILayer['id'], painter: IPainter): void;
|
14
15
|
updateLayer(id: ILayer['id'], updateData?: ILayerUpdate): void;
|
15
16
|
}
|