@leafer/display-module
Advanced tools
+4
-4
| { | ||
| "name": "@leafer/display-module", | ||
| "version": "1.0.0-beta.7", | ||
| "version": "1.0.0-beta.8", | ||
| "description": "@leafer/display-module", | ||
@@ -22,8 +22,8 @@ "author": "Chao (Leafer) Wan", | ||
| "dependencies": { | ||
| "@leafer/event": "1.0.0-beta.7", | ||
| "@leafer/math": "1.0.0-beta.7" | ||
| "@leafer/event": "1.0.0-beta.8", | ||
| "@leafer/math": "1.0.0-beta.8" | ||
| }, | ||
| "devDependencies": { | ||
| "@leafer/interface": "1.0.0-beta.7" | ||
| "@leafer/interface": "1.0.0-beta.8" | ||
| } | ||
| } |
@@ -27,3 +27,6 @@ import { ILeaf, ILeaferCanvas, IRenderOptions, IBranchRenderModule } from '@leafer/interface' | ||
| canvas.opacity = this.__worldOpacity | ||
| canvas.copyWorld(tempCanvas, this.__world, this.__world, this.__.isEraser ? 'destination-out' : this.__.blendMode) | ||
| const blendMode = this.__.isEraser ? 'destination-out' : this.__.blendMode | ||
| options.matrix ? canvas.copyWorld(tempCanvas, null, null, blendMode) : canvas.copyWorld(tempCanvas, this.__world, this.__world, blendMode) | ||
| tempCanvas.recycle() | ||
@@ -30,0 +33,0 @@ } else { |
@@ -16,3 +16,9 @@ import { ILeaferCanvas, IRenderOptions, ILeafRenderModule } from '@leafer/interface' | ||
| canvas.copyWorldToInner(tempCanvas, this.__world, this.__layout.renderBounds, this.__.isEraser ? 'destination-out' : this.__.blendMode) | ||
| const blendMode = this.__.isEraser ? 'destination-out' : this.__.blendMode | ||
| if (options.matrix) { | ||
| canvas.resetTransform() | ||
| canvas.copyWorld(tempCanvas, null, null, blendMode) | ||
| } else { | ||
| canvas.copyWorldToInner(tempCanvas, this.__world, this.__layout.renderBounds, blendMode) | ||
| } | ||
| tempCanvas.recycle() | ||
@@ -19,0 +25,0 @@ } else { |
18864
1.96%412
1.73%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated