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.0-beta.9
to
1.0.0-beta.10
+2
-2
package.json
{
"name": "@leafer-ui/interface",
"version": "1.0.0-beta.9",
"version": "1.0.0-beta.10",
"description": "@leafer-ui/interface",

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

"dependencies": {
"@leafer/interface": "1.0.0-beta.9"
"@leafer/interface": "1.0.0-beta.10"
}
}

@@ -23,3 +23,3 @@ export * from '@leafer/interface'

export { ICornerRadiusString, IStrokeWidthString, IPaintString, IShadowString, IPercent, IDashPatternString, IColorString as IStringColor } from './type/IStringType'
export { ILeafFill, ILeafPaint, ILeafPaintColor, ILeafStrokePaint, ILeafShadowEffect } from './type/IComputedType'
export { ILeafFill, ILeafPaint, ILeafPaintPatternData, ILeafPaintColor, ILeafStrokePaint, ILeafShadowEffect } from './type/IComputedType'

@@ -26,0 +26,0 @@ export { IUIRenderModule, IRectRenderModule, IImageRenderModule, ITextRenderModule, IGroupRenderModule, IFrameRenderModule } from './module/IUIRender'

@@ -1,5 +0,3 @@

import { ILeaf, ILeafComputedData, ILeafData, ILeafInputData, ILeaferCanvas, IRenderOptions, IPathDrawer, IPointData, IPath2D, IPathCommandData, IWindingRule, ILeaferImageConfig, IBoundsData, IObject, __Number, IPathString, ILeaferImage, IBlob } from '@leafer/interface'
import { ILeaf, ILeafComputedData, ILeafData, ILeafInputData, ILeaferCanvas, IRenderOptions, IPathDrawer, IPointData, IPath2D, IPathCommandData, IWindingRule, ILeaferImageConfig, IBoundsData, IObject, __Number, IPathString, ILeaferImage, IBlob, IBooleanMap } from '@leafer/interface'
import { IOverflow } from './type/IType'
import {

@@ -13,2 +11,3 @@ IFillAttrData, IFillInputData, IFillComputedData,

} from './ICommonAttr'
import { IOverflow } from './type/IType'
import { IExportOptions } from './module/IExport'

@@ -307,2 +306,4 @@

__recycleImage(attrName: string): IBooleanMap
}

@@ -309,0 +310,0 @@ export interface IUIComputedData extends IFillComputedData, IBorderComputedData, IStrokeComputedData, ITextStyleComputedData, ICornerRadiusComputedData, IEffectComputedData, ILeafComputedData {

@@ -8,14 +8,13 @@ import { ILeaferCanvas, IRenderOptions } from '@leafer/interface'

export interface IPaintModule {
computeFill?(ui: IUI): void
computeStroke?(ui: IUI): void
compute?(ui: IUI, attrName: 'fill' | 'stroke'): void
fill?(ui: IUI, canvas: ILeaferCanvas, fill: string | object): void
fill?(ui: IUI, canvas: ILeaferCanvas, fill: string): void
fills?(ui: IUI, canvas: ILeaferCanvas, fills: ILeafPaint[]): void
drawText?(ui: IUI, canvas: ILeaferCanvas): void
fillText?(ui: IUI, canvas: ILeaferCanvas): void
stroke?(ui: IUI, canvas: ILeaferCanvas, stroke: string | object): void
stroke?(ui: IUI, canvas: ILeaferCanvas, stroke: string): void
strokes?(ui: IUI, canvas: ILeaferCanvas, strokes: ILeafPaint[]): void
strokeText?(ui: IUI, canvas: ILeaferCanvas, stroke: string | object): void
strokeText?(ui: IUI, canvas: ILeaferCanvas, stroke: string): void
strokesText?(ui: IUI, canvas: ILeaferCanvas, strokes: ILeafPaint[]): void

@@ -22,0 +21,0 @@

@@ -1,5 +0,5 @@

import { IBlendMode, IMatrixData } from '@leafer/interface'
import { IBlendMode, ILeaferImage, IMatrixData } from '@leafer/interface'
import { IColorString } from './IStringType'
import { IStrokeAlign, IStrokeJoin, IStrokeCap } from './IType'
import { IStrokeAlign, IStrokeJoin, IStrokeCap, IImagePaintMode } from './IType'
import { IPaintType } from './IType'

@@ -10,9 +10,23 @@

export interface ILeafPaint {
type: IPaintType
style: ILeafPaintColor
type?: IPaintType
style?: ILeafPaintColor
transform?: IMatrixData
blendMode?: IBlendMode
opacity?: number
image?: ILeaferImage
loadId?: number
patternId?: number
data?: ILeafPaintPatternData
}
export interface ILeafPaintPatternData {
width?: number
height?: number
scaleX?: number
scaleY?: number
opacity?: number
transform?: IMatrixData
mode?: IImagePaintMode
}
export type ILeafFill = ILeafPaint

@@ -19,0 +33,0 @@