canvas-editor-engine 1.0.20 → 1.0.22

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.
@@ -4,6 +4,7 @@ const component_service_1 = require("../services/component.service");
4
4
  const tool_service_1 = require("../services/tool.service");
5
5
  const canvas_component_1 = require("./canvas.component");
6
6
  const logger_service_1 = require("../services/logger.service");
7
+ const crop_service_1 = require("../services/crop.service");
7
8
  class ExcretionsComponent extends component_service_1.default {
8
9
  static get additionStyle() {
9
10
  return ExcretionsComponent._additionStyle;
@@ -18,6 +19,7 @@ class ExcretionsComponent extends component_service_1.default {
18
19
  if (!!excretion) {
19
20
  if (!excretion.classList.contains('excretion_crop')) {
20
21
  excretion.classList.add("excretion_crop");
22
+ crop_service_1.default.viewCropButton();
21
23
  }
22
24
  }
23
25
  });
@@ -4,7 +4,6 @@ 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
- CropService.viewCropButton();
8
7
  console.log(CropService.options);
9
8
  }
10
9
  static viewCropButton() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "canvas-editor-engine",
3
- "version": "1.0.20",
3
+ "version": "1.0.22",
4
4
  "description": "CanvasEditorEngine library, use: [typescript] [canvas]",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",