canvas-editor-engine 2.1.12 → 2.1.13

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
@@ -1188,9 +1188,12 @@ var CropService = function() {
1188
1188
  this.appStoreRepository = appStoreRepository;
1189
1189
  this.excretionComponent = excretionComponent;
1190
1190
  }
1191
- CropService.prototype.setup = function() {
1191
+ CropService.prototype.active = function() {
1192
1192
  this.excretionComponent.additionStyle = "crop";
1193
1193
  };
1194
+ CropService.prototype.deactivate = function() {
1195
+ this.excretionComponent.additionStyle = "default";
1196
+ };
1194
1197
  CropService.prototype.crop = function(ctx) {
1195
1198
  var _a;
1196
1199
  if (!!((_a = this.excretionComponent.excretionsCoords) === null || _a === void 0 ? void 0 : _a.length) === false) return;
@@ -7,7 +7,8 @@ export default class CropService {
7
7
  private appStoreRepository;
8
8
  private excretionComponent;
9
9
  constructor(appConfig: AppConfig, appStoreRepository: AppStoreRepository, excretionComponent: ExcretionComponent);
10
- setup(): void;
10
+ active(): void;
11
+ deactivate(): void;
11
12
  crop(ctx: CanvasRenderingContext2D): void;
12
13
  viewCropButton(): void;
13
14
  get options(): IImageOptions;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "canvas-editor-engine",
3
- "version": "2.1.12",
3
+ "version": "2.1.13",
4
4
  "description": "CanvasEditorEngine library, use: [typescript] [canvas]",
5
5
  "main": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",