canvas-editor-engine 1.0.34 → 1.0.36

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.
@@ -1,4 +1,5 @@
1
1
  export default class CropService {
2
+ static setup(): void;
2
3
  static crop(): void;
3
4
  static viewCropButton(): void;
4
5
  static get options(): {
@@ -2,8 +2,12 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const excretions_component_1 = require("../components/excretions.component");
4
4
  class CropService {
5
- static crop() {
5
+ static setup() {
6
6
  excretions_component_1.default.additionStyle = 'crop';
7
+ }
8
+ static crop() {
9
+ if (!!excretions_component_1.default.excretionsCoords?.length === false)
10
+ return;
7
11
  console.log(CropService.options);
8
12
  }
9
13
  static viewCropButton() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "canvas-editor-engine",
3
- "version": "1.0.34",
3
+ "version": "1.0.36",
4
4
  "description": "CanvasEditorEngine library, use: [typescript] [canvas]",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",