canvas-editor-engine 2.1.13 → 2.1.15

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
@@ -1072,10 +1072,10 @@ var Filter = function() {
1072
1072
  Filter.prototype.getSizeOfSparseMatrix = function(RGBAMatrix, tempSize) {
1073
1073
  var leftIndex;
1074
1074
  var upIndex;
1075
- for (var _i = 0, _a = RGBAMatrix.entries(); _i < _a.length; _i++) {
1076
- var _b = _a[_i], iy = _b[0], row = _b[1];
1077
- for (var _c = 0, _d = row.entries(); _c < _d.length; _c++) {
1078
- var _e = _d[_c], ix = _e[0], rowItem = _e[1];
1075
+ for (var iy = 0; iy < RGBAMatrix.length; iy++) {
1076
+ var row = RGBAMatrix[iy];
1077
+ for (var ix = 0; ix < row.length; ix++) {
1078
+ var rowItem = row[ix];
1079
1079
  var isNotEmpty = rowItem[3] !== 0;
1080
1080
  if (isNotEmpty) {
1081
1081
  leftIndex = ix;
@@ -1089,14 +1089,14 @@ var Filter = function() {
1089
1089
  }
1090
1090
  var rightIndex;
1091
1091
  var downIndex;
1092
- for (var _f = 0, _g = RGBAMatrix.reverse().entries(); _f < _g.length; _f++) {
1093
- var _h = _g[_f], iy = _h[0], row = _h[1];
1094
- for (var _j = 0, _k = row.reverse().entries(); _j < _k.length; _j++) {
1095
- var _l = _k[_j], ix = _l[0], rowItem = _l[1];
1092
+ for (var iy = RGBAMatrix.length - 1; iy >= 0; iy--) {
1093
+ var row = RGBAMatrix[iy];
1094
+ for (var ix = row.length - 1; ix >= 0; ix--) {
1095
+ var rowItem = row[ix];
1096
1096
  var isNotEmpty = rowItem[3] !== 0;
1097
1097
  if (isNotEmpty) {
1098
- rightIndex = ix;
1099
- downIndex = iy;
1098
+ rightIndex = row.length - 1 - ix;
1099
+ downIndex = RGBAMatrix.length - 1 - iy;
1100
1100
  break;
1101
1101
  }
1102
1102
  }
@@ -1188,7 +1188,7 @@ var CropService = function() {
1188
1188
  this.appStoreRepository = appStoreRepository;
1189
1189
  this.excretionComponent = excretionComponent;
1190
1190
  }
1191
- CropService.prototype.active = function() {
1191
+ CropService.prototype.activate = function() {
1192
1192
  this.excretionComponent.additionStyle = "crop";
1193
1193
  };
1194
1194
  CropService.prototype.deactivate = function() {
@@ -7,7 +7,7 @@ export default class CropService {
7
7
  private appStoreRepository;
8
8
  private excretionComponent;
9
9
  constructor(appConfig: AppConfig, appStoreRepository: AppStoreRepository, excretionComponent: ExcretionComponent);
10
- active(): void;
10
+ activate(): void;
11
11
  deactivate(): void;
12
12
  crop(ctx: CanvasRenderingContext2D): void;
13
13
  viewCropButton(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "canvas-editor-engine",
3
- "version": "2.1.13",
3
+ "version": "2.1.15",
4
4
  "description": "CanvasEditorEngine library, use: [typescript] [canvas]",
5
5
  "main": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",