@leafer/data
Advanced tools
+2
-2
| { | ||
| "name": "@leafer/data", | ||
| "version": "1.0.0-beta.4", | ||
| "version": "1.0.0-beta.5", | ||
| "description": "@leafer/data", | ||
@@ -22,4 +22,4 @@ "author": "Chao (Leafer) Wan", | ||
| "devDependencies": { | ||
| "@leafer/interface": "1.0.0-beta.4" | ||
| "@leafer/interface": "1.0.0-beta.5" | ||
| } | ||
| } |
+14
-0
@@ -10,2 +10,4 @@ import { ILeafData, ILeaf, IObject, __Value } from '@leafer/interface' | ||
| public __single: boolean | ||
| constructor(leaf: ILeaf) { | ||
@@ -65,2 +67,14 @@ this.__leaf = leaf | ||
| public __checkSingle(): void { | ||
| if ((this as ILeafData).blendMode === 'pass-through') { | ||
| if (this.__leaf.__hasEraser || (this as ILeafData).isEraser) { | ||
| this.__single = true | ||
| } else if (this.__single) { | ||
| this.__single = false | ||
| } | ||
| } else { | ||
| this.__single = true | ||
| } | ||
| } | ||
| public destroy(): void { | ||
@@ -67,0 +81,0 @@ this.__leaf = null |
4914
8.86%95
14.46%