@leafer/canvas 1.12.1 → 1.12.3
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/package.json +9 -9
- package/src/LeaferCanvasBase.ts +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leafer/canvas",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.3",
|
|
4
4
|
"description": "@leafer/canvas",
|
|
5
5
|
"author": "Chao (Leafer) Wan",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,15 +22,15 @@
|
|
|
22
22
|
"leaferjs"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@leafer/file": "1.12.
|
|
26
|
-
"@leafer/list": "1.12.
|
|
27
|
-
"@leafer/math": "1.12.
|
|
28
|
-
"@leafer/data": "1.12.
|
|
29
|
-
"@leafer/path": "1.12.
|
|
30
|
-
"@leafer/debug": "1.12.
|
|
31
|
-
"@leafer/platform": "1.12.
|
|
25
|
+
"@leafer/file": "1.12.3",
|
|
26
|
+
"@leafer/list": "1.12.3",
|
|
27
|
+
"@leafer/math": "1.12.3",
|
|
28
|
+
"@leafer/data": "1.12.3",
|
|
29
|
+
"@leafer/path": "1.12.3",
|
|
30
|
+
"@leafer/debug": "1.12.3",
|
|
31
|
+
"@leafer/platform": "1.12.3"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@leafer/interface": "1.12.
|
|
34
|
+
"@leafer/interface": "1.12.3"
|
|
35
35
|
}
|
|
36
36
|
}
|
package/src/LeaferCanvasBase.ts
CHANGED
|
@@ -207,7 +207,7 @@ export class LeaferCanvasBase extends Canvas implements ILeaferCanvas {
|
|
|
207
207
|
}
|
|
208
208
|
|
|
209
209
|
|
|
210
|
-
public copyWorld(canvas: ILeaferCanvas, from?: IBoundsData, to?: IBoundsData, blendMode?: IBlendMode, ceilPixel
|
|
210
|
+
public copyWorld(canvas: ILeaferCanvas, from?: IBoundsData, to?: IBoundsData, blendMode?: IBlendMode, ceilPixel?: boolean): void {
|
|
211
211
|
if (blendMode) this.blendMode = blendMode
|
|
212
212
|
if (from) {
|
|
213
213
|
this.setTempPixelBounds(from, ceilPixel)
|
|
@@ -221,7 +221,7 @@ export class LeaferCanvasBase extends Canvas implements ILeaferCanvas {
|
|
|
221
221
|
if (blendMode) this.blendMode = 'source-over'
|
|
222
222
|
}
|
|
223
223
|
|
|
224
|
-
public copyWorldToInner(canvas: ILeaferCanvas, fromWorld: IMatrixWithBoundsData, toInnerBounds: IBoundsData, blendMode?: IBlendMode, ceilPixel
|
|
224
|
+
public copyWorldToInner(canvas: ILeaferCanvas, fromWorld: IMatrixWithBoundsData, toInnerBounds: IBoundsData, blendMode?: IBlendMode, ceilPixel?: boolean): void {
|
|
225
225
|
if (fromWorld.b || fromWorld.c) {
|
|
226
226
|
this.save()
|
|
227
227
|
this.resetTransform()
|
|
@@ -235,7 +235,7 @@ export class LeaferCanvasBase extends Canvas implements ILeaferCanvas {
|
|
|
235
235
|
}
|
|
236
236
|
}
|
|
237
237
|
|
|
238
|
-
public copyWorldByReset(canvas: ILeaferCanvas, from?: IBoundsData, to?: IBoundsData, blendMode?: IBlendMode, onlyResetTransform?: boolean, ceilPixel
|
|
238
|
+
public copyWorldByReset(canvas: ILeaferCanvas, from?: IBoundsData, to?: IBoundsData, blendMode?: IBlendMode, onlyResetTransform?: boolean, ceilPixel?: boolean): void {
|
|
239
239
|
this.resetTransform()
|
|
240
240
|
this.copyWorld(canvas, from, to, blendMode, ceilPixel)
|
|
241
241
|
if (!onlyResetTransform) this.useWorldTransform() // restore world transform
|