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

@leafer-ui/interface

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-ui/interface - npm Package Compare versions

Comparing version
1.0.10
to
1.1.0
+2
-2
package.json
{
"name": "@leafer-ui/interface",
"version": "1.0.10",
"version": "1.1.0",
"description": "@leafer-ui/interface",

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

"dependencies": {
"@leafer/interface": "1.0.10"
"@leafer/interface": "1.1.0"
}
}

@@ -67,3 +67,3 @@ import { IGroup, IUI, IBox, IRectInputData, ISelectorProxy, IEditSize, ICursorType, IAlign, IUnitPointData, IDragEvent, IRotateEvent, IStroke, IFill, ILeaf, ILeafList, IObject, IBoxInputData, IGroupInputData, IImageCursor, IRect, IBoundsData, IKeyEvent, IUIInputData, IZoomEvent, IColorString, IDirection4 } from '@leafer-ui/interface'

export interface IEditorConfig {
export interface IEditorConfig extends IObject {
editSize?: IEditSize

@@ -121,2 +121,5 @@ dualEvent?: boolean

skewable?: boolean
textEditor?: IObject
pathEditor?: IObject
}

@@ -123,0 +126,0 @@

@@ -103,3 +103,3 @@ import { ILeaf, ILeafComputedData, ILeafData, ILeafInputData, ILeaferCanvas, IRenderOptions, IExportOptions, IExportResult, IPathDrawer, IPointData, IPathCommandData, IBoundsData, IObject, IPathString, ILeaferImage, IPathCreator, IAnswer, IPickOptions, IPickResult, IValue, ICanvasContext2DSettings, IFourNumber, IFindCondition, IBoolean, ICanvasContext2D, IJSONOptions, IMatrixData, ISizeData } from '@leafer/interface'

FPS?: number
loop?: boolean
loop?: boolean | number
}

@@ -112,5 +112,5 @@

export interface IRobotAnimation {
keys: IKeyframeId[]
keyframes: IKeyframeId[]
loop?: boolean | number
speed?: number
FPS?: number
}

@@ -211,3 +211,3 @@

interface ITextAttrData {
text?: string
text?: string | number
padding?: IFourNumber

@@ -393,3 +393,3 @@ resizeFontSize?: boolean

set(data: IUIInputData, isTemp?: boolean): void
set(data: IUIInputData, transition?: ITransition | 'temp'): void
toJSON(options?: IJSONOptions): IUIJSONData

@@ -396,0 +396,0 @@

import { ITextData, ITextDrawData } from '../IUI'
export interface ITextConvertModule {
getDrawData(content: string, style: ITextData): ITextDrawData
getDrawData(content: string | number, style: ITextData): ITextDrawData
}

@@ -108,2 +108,3 @@ import { IPointData, IPathCommandData, IWindingRule, IBlendMode, IExportFileType, ISizeData, IFourNumber, IAlign, IUnitPointData, IObject } from '@leafer/interface'

path: IPathCommandData
dashPath?: IPathCommandData // 采用虚线时,需增加填充的内容
}

@@ -110,0 +111,0 @@

@@ -90,2 +90,3 @@ import { IBlendMode, IAlign, IUnitPointData, IExportFileType, IFourNumber, IPointData, ISizeData, IPathCommandData, IWindingRule, IObject, IMatrixData, ILeaferImage, ITaskItem, IBoolean, INumber, IString, IUnitData, IEventer, IEventMap, IPercentData, IBoundsData as IBoundsData$1, IPathCreator, ILeaferCanvas, ICanvasContext2D, ICanvasContext2DSettings, IRenderOptions, IPickOptions, IPickResult, ILeaf as ILeaf$1, IFindCondition, IJSONOptions, IValue, IPathString, IPathDrawer, IExportOptions, IExportResult, IAnswer, ILeafData, ILeafComputedData, ILeafInputData, ILeaferAttrData, IControl, ILeaferConfig, ILeaferType, ILeafRender, ILeafBounds, ILeafHit, ICachedLeaf, IBooleanMap, IAround } from '@leafer/interface';

path: IPathCommandData;
dashPath?: IPathCommandData;
}

@@ -457,3 +458,3 @@ interface IPathDataArrowOffset {

}
interface IEditorConfig {
interface IEditorConfig extends IObject$1 {
editSize?: IEditSize;

@@ -500,2 +501,4 @@ dualEvent?: boolean;

skewable?: boolean;
textEditor?: IObject$1;
pathEditor?: IObject$1;
}

@@ -611,3 +614,3 @@ interface IEditPointInputData extends IBoxInputData$1 {

FPS?: number;
loop?: boolean;
loop?: boolean | number;
}

@@ -618,5 +621,5 @@ interface IRobotActions {

interface IRobotAnimation {
keys: IKeyframeId[];
keyframes: IKeyframeId[];
loop?: boolean | number;
speed?: number;
FPS?: number;
}

@@ -702,3 +705,3 @@ type IRobotActionName = string;

interface ITextAttrData {
text?: string;
text?: string | number;
padding?: IFourNumber;

@@ -849,3 +852,3 @@ resizeFontSize?: boolean;

reset(data?: IUIInputData): void;
set(data: IUIInputData, isTemp?: boolean): void;
set(data: IUIInputData, transition?: ITransition | 'temp'): void;
toJSON(options?: IJSONOptions): IUIJSONData;

@@ -1002,3 +1005,3 @@ get(name?: string | string[] | IUIInputData): IUIInputData | IValue;

interface ITextConvertModule {
getDrawData(content: string, style: ITextData): ITextDrawData;
getDrawData(content: string | number, style: ITextData): ITextDrawData;
}

@@ -1005,0 +1008,0 @@