canvas-editor-engine 1.1.7 → 1.1.8

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.
@@ -49,6 +49,19 @@ class Filter {
49
49
  console.log('case 1: Xcanvas -> Ximage; leftIndex:', leftIndex);
50
50
  // case 2: Ximage <- Xcanvas
51
51
  let rightIndex;
52
+ for (const [iy, row] of RGBAMatrix.entries()) {
53
+ for (const [ix, rowItem] of row.reverse().entries()) {
54
+ const isNotEmpty = rowItem[3 /* E_RGBA.a */] !== 0;
55
+ if (isNotEmpty) {
56
+ rightIndex = ix;
57
+ break;
58
+ }
59
+ }
60
+ if (rightIndex !== undefined) {
61
+ break;
62
+ }
63
+ }
64
+ console.log('case 2: Ximage <- Xcanvas; rightIndex:', rightIndex);
52
65
  // case 3: Ycanvas -> Yimage
53
66
  let upIndex;
54
67
  // case 4: Yimage <- Ycanvas
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "canvas-editor-engine",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "description": "CanvasEditorEngine library, use: [typescript] [canvas]",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",