@leafer/data
Advanced tools
+2
-2
| { | ||
| "name": "@leafer/data", | ||
| "version": "1.0.0-rc.12", | ||
| "version": "1.0.0-rc.16", | ||
| "description": "@leafer/data", | ||
@@ -25,4 +25,4 @@ "author": "Chao (Leafer) Wan", | ||
| "devDependencies": { | ||
| "@leafer/interface": "1.0.0-rc.12" | ||
| "@leafer/interface": "1.0.0-rc.16" | ||
| } | ||
| } |
+14
-1
@@ -1,2 +0,2 @@ | ||
| import { ILeafData, ILeaf, IObject, IValue } from '@leafer/interface' | ||
| import { ILeafData, ILeaf, IObject, IValue, IPathCommandData } from '@leafer/interface' | ||
@@ -15,2 +15,5 @@ | ||
| public __pathInputed?: number | ||
| public __pathForRender?: IPathCommandData | ||
| public get __blendMode(): string { | ||
@@ -56,2 +59,5 @@ if ((this as ILeafData).eraser) return 'destination-out' | ||
| } | ||
| if (name === 'path' && !this.__pathInputed) return // no path mode | ||
| return (this as IObject)['_' + name] | ||
@@ -71,2 +77,5 @@ } | ||
| if (value !== undefined) { | ||
| if (key === 'path' && !this.__pathInputed) continue // no path mode | ||
| inputValue = __input ? __input[key] : undefined | ||
@@ -103,2 +112,6 @@ data[key] = (inputValue === undefined) ? value : inputValue | ||
| public __removeNaturalSize(): void { | ||
| this.__naturalWidth = this.__naturalHeight = undefined | ||
| } | ||
| public destroy(): void { | ||
@@ -105,0 +118,0 @@ this.__input = this.__middle = null |
+4
-1
@@ -1,2 +0,2 @@ | ||
| import { IObject, ILeafData, ILeaf } from '@leafer/interface'; | ||
| import { IObject, ILeafData, ILeaf, IPathCommandData } from '@leafer/interface'; | ||
@@ -17,2 +17,4 @@ declare const DataHelper: { | ||
| __naturalHeight?: number; | ||
| __pathInputed?: number; | ||
| __pathForRender?: IPathCommandData; | ||
| get __blendMode(): string; | ||
@@ -29,2 +31,3 @@ constructor(leaf: ILeaf); | ||
| __checkSingle(): void; | ||
| __removeNaturalSize(): void; | ||
| destroy(): void; | ||
@@ -31,0 +34,0 @@ } |
AI-detected possible typosquat
Supply chain riskAI has identified this package as a potential typosquat of a more popular package. This suggests that the package may be intentionally mimicking another package's name, description, or other metadata.
Found 1 instance in 1 package
7339
7.25%165
6.45%0
-100%