You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@leafer/data

Package Overview
Dependencies
Maintainers
1
Versions
117
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@leafer/data - npm Package Compare versions

Comparing version
1.0.0-rc.12
to
1.0.0-rc.16
+2
-2
package.json
{
"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"
}
}

@@ -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

@@ -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 @@ }