@leafer/data
Advanced tools
+2
-2
| { | ||
| "name": "@leafer/data", | ||
| "version": "1.0.5", | ||
| "version": "1.0.6", | ||
| "description": "@leafer/data", | ||
@@ -25,4 +25,4 @@ "author": "Chao (Leafer) Wan", | ||
| "devDependencies": { | ||
| "@leafer/interface": "1.0.5" | ||
| "@leafer/interface": "1.0.6" | ||
| } | ||
| } |
+6
-4
@@ -15,3 +15,2 @@ import { ILeafData, ILeaf, IObject, IValue, IPathCommandData, IJSONOptions } from '@leafer/interface' | ||
| public __pathInputed?: number | ||
| public __pathForRender?: IPathCommandData | ||
@@ -21,3 +20,6 @@ | ||
| public get __isLinePath(): boolean { return (this as ILeafData).path && (this as ILeafData).path.length === 6 } | ||
| public get __isLinePath(): boolean { | ||
| const { path } = this as ILeafData | ||
| return path && path.length === 6 && path[0] === 1 // M = 1 | ||
| } | ||
@@ -65,3 +67,3 @@ public get __blendMode(): string { | ||
| if (name === 'path' && !this.__pathInputed) return // no path mode | ||
| if (name === 'path' && !(this as ILeafData).__pathInputed) return // no path mode | ||
@@ -95,3 +97,3 @@ return (this as IObject)['_' + name] | ||
| if (key === 'path' && !this.__pathInputed) continue // no path mode | ||
| if (key === 'path' && !(this as ILeafData).__pathInputed) continue // no path mode | ||
@@ -98,0 +100,0 @@ inputValue = __input ? __input[key] : undefined |
+0
-1
@@ -18,3 +18,2 @@ import { IObject, IBooleanMap, ILeafData, ILeaf, IPathCommandData, IJSONOptions } from '@leafer/interface'; | ||
| __naturalHeight?: number; | ||
| __pathInputed?: number; | ||
| __pathForRender?: IPathCommandData; | ||
@@ -21,0 +20,0 @@ get __useNaturalRatio(): boolean; |
8820
0.1%197
0.51%