@leafer/canvas 1.12.0 → 1.12.2

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leafer/canvas",
3
- "version": "1.12.0",
3
+ "version": "1.12.2",
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.0",
26
- "@leafer/list": "1.12.0",
27
- "@leafer/math": "1.12.0",
28
- "@leafer/data": "1.12.0",
29
- "@leafer/path": "1.12.0",
30
- "@leafer/debug": "1.12.0",
31
- "@leafer/platform": "1.12.0"
25
+ "@leafer/file": "1.12.2",
26
+ "@leafer/list": "1.12.2",
27
+ "@leafer/math": "1.12.2",
28
+ "@leafer/data": "1.12.2",
29
+ "@leafer/path": "1.12.2",
30
+ "@leafer/debug": "1.12.2",
31
+ "@leafer/platform": "1.12.2"
32
32
  },
33
33
  "devDependencies": {
34
- "@leafer/interface": "1.12.0"
34
+ "@leafer/interface": "1.12.2"
35
35
  }
36
36
  }
@@ -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: boolean = true): void {
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: boolean = true): void {
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: boolean = true): void {
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