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

@leafer-ui/data

Package Overview
Dependencies
Maintainers
1
Versions
115
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@leafer-ui/data - npm Package Compare versions

Comparing version
1.10.1
to
1.11.0
+5
-5
package.json
{
"name": "@leafer-ui/data",
"version": "1.10.1",
"version": "1.11.0",
"description": "@leafer-ui/data",

@@ -25,9 +25,9 @@ "author": "Chao (Leafer) Wan",

"dependencies": {
"@leafer/core": "1.10.1",
"@leafer-ui/external": "1.10.1"
"@leafer/core": "1.11.0",
"@leafer-ui/external": "1.11.0"
},
"devDependencies": {
"@leafer/interface": "1.10.1",
"@leafer-ui/interface": "1.10.1"
"@leafer/interface": "1.11.0",
"@leafer-ui/interface": "1.11.0"
}
}

@@ -1,2 +0,2 @@

import { INumber, IValue, IBoolean, IPathCommandData, IPathString, IPointData, IPathCommandObject, IObject, IFilter } from '@leafer/interface'
import { INumber, IValue, IBoolean, IPathCommandData, IPathString, IPointData, IPathCommandObject, IObject, IFilter, IPathCommandNode } from '@leafer/interface'
import { PathConvert, DataHelper, LeafData, Debug, isArray, isObject, isString, isUndefined } from '@leafer/core'

@@ -10,3 +10,3 @@

const { stintSet } = DataHelper, { hasTransparent } = ColorConvert
const emptyPaint: ILeafPaint = {}
const emptyPaint: ILeafPaint = { originPaint: {} as any }
const debug = Debug.get('UIData')

@@ -108,3 +108,3 @@ export class UIData extends LeafData implements IUIData {

protected setPath(value: IPathCommandData | IPathCommandObject[] | IPathString) {
protected setPath(value: IPathCommandData | IPathCommandNode[] | IPathCommandObject[] | IPathString) {
const isStr = isString(value)

@@ -111,0 +111,0 @@ if (isStr || (value && isObject(value[0]))) {

@@ -1,2 +0,2 @@

import { INumber, IPointData, IBoolean, IValue, IPathCommandData, IPathCommandObject, IPathString } from '@leafer/interface';
import { INumber, IPointData, IBoolean, IValue, IPathCommandData, IPathCommandNode, IPathCommandObject, IPathString } from '@leafer/interface';
import { LeafData } from '@leafer/core';

@@ -39,3 +39,3 @@ import { IUIData, IUI, IStrokeComputedStyle, IGroupData, IBoxData, ILeaferData, IObject, IJSONOptions, IFrameData, ILineData, IRectData, IEllipseData, IPolygonData, IStarData, IPathData, IPenData, ITextData, IBackgroundBoxStyle, IFontWeight, IImageData, IImage, ICanvasData } from '@leafer-ui/interface';

protected setStroke(value: IValue): void;
protected setPath(value: IPathCommandData | IPathCommandObject[] | IPathString): void;
protected setPath(value: IPathCommandData | IPathCommandNode[] | IPathCommandObject[] | IPathString): void;
protected setShadow(value: IValue): void;

@@ -42,0 +42,0 @@ protected setInnerShadow(value: IValue): void;