canvas-editor-engine 1.0.33 → 1.0.35

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,6 +4,8 @@ const excretions_component_1 = require("../components/excretions.component");
4
4
  class CropService {
5
5
  static crop() {
6
6
  excretions_component_1.default.additionStyle = 'crop';
7
+ if (!!excretions_component_1.default.excretionsCoords?.length === false)
8
+ return;
7
9
  console.log(CropService.options);
8
10
  }
9
11
  static viewCropButton() {
@@ -1,4 +1,4 @@
1
1
  export declare class ToolLayer {
2
- static multiplier: 1000;
2
+ static multiplier: number;
3
3
  static getLayerIndex(layerName: string): number;
4
4
  }
@@ -3,13 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ToolLayer = void 0;
4
4
  const config_1 = require("../config");
5
5
  class ToolLayer {
6
- static multiplier;
6
+ static multiplier = 1000;
7
7
  static getLayerIndex(layerName) {
8
- console.log('AppConfig.LAYERS', config_1.default.LAYERS);
9
8
  const layer = config_1.default.LAYERS.find((layer) => layer.name === layerName);
10
- console.log('layer', layer);
11
9
  const zIndex = ToolLayer.multiplier * layer.index;
12
- console.log(layerName, zIndex);
13
10
  return zIndex;
14
11
  }
15
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "canvas-editor-engine",
3
- "version": "1.0.33",
3
+ "version": "1.0.35",
4
4
  "description": "CanvasEditorEngine library, use: [typescript] [canvas]",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",