@leafer/interface
Advanced tools
+1
-1
| { | ||
| "name": "@leafer/interface", | ||
| "version": "1.11.1", | ||
| "version": "1.11.2", | ||
| "description": "@leafer/interface", | ||
@@ -5,0 +5,0 @@ "author": "Chao (Leafer) Wan", |
+1
-1
@@ -41,3 +41,3 @@ export { IAppBase } from './app/IApp' | ||
| export { IWindingRule, ICanvasContext2D, ICanvasContext2DSettings, ITextMetrics, IPath2D, ICanvasPattern } from './canvas/ICanvas' | ||
| export { CanvasPathCommand, IPathCommandData, MCommandData, HCommandData, VCommandData, LCommandData, CCommandData, SCommandData, QCommandData, TCommandData, ZCommandData, ACommandData, RectCommandData, RoundRectCommandData, EllipseCommandData, ArcCommandData, ArcToCommandData, MoveToCommandObject, LineToCommandObject, BezierCurveToCommandObject, QuadraticCurveToCommandObject, IPathCommandObject, IPathCommandNodeBase, MoveToCommandNode, LineToCommandNode, BezierCurveToCommandNode, ClosePathCommandNode, IPathCommandNode, IPathNodeBase } from './path/IPathCommand' | ||
| export { CanvasPathCommand, IPathCommandData, MCommandData, HCommandData, VCommandData, LCommandData, CCommandData, SCommandData, QCommandData, TCommandData, ZCommandData, ACommandData, RectCommandData, RoundRectCommandData, EllipseCommandData, ArcCommandData, ArcToCommandData, MoveToCommandObject, LineToCommandObject, BezierCurveToCommandObject, QuadraticCurveToCommandObject, IPathCommandObject, IPathCommandNodeBase, MoveToCommandNode, LineToCommandNode, BezierCurveToCommandNode, ClosePathCommandNode, IPathCommandNode, PathNodeHandleType, PathNodeHandleName, IPathNodeBase } from './path/IPathCommand' | ||
@@ -44,0 +44,0 @@ export { ILeaferImage, ILeaferImageConfig, ILeaferImageSliceData, ILeaferImageSlice, ILeaferImageLevel, ILeaferImageOnLoaded, ILeaferImageOnError, ILeaferImageCacheCanvas, ILeaferImagePatternPaint } from './image/ILeaferImage' |
@@ -0,1 +1,3 @@ | ||
| import { IPointData } from '../math/IMath' | ||
| type Command = number | ||
@@ -93,6 +95,8 @@ type x = number | ||
| export interface IPathCommandNodeBase { | ||
| name: 'M^' | 'L^' | 'C^' | 'Z^' | ||
| x: number | ||
| y: number | ||
| a?: { x: number; y: number } // 第一个手柄,连接上一个节点 | ||
| b?: { x: number; y: number } // 第二个手柄,连接下一个节点 | ||
| a?: IPointData // 第一个手柄,连接上一个节点 | ||
| b?: IPointData // 第二个手柄,连接下一个节点 | ||
| ab?: PathNodeHandleType // 手柄类型 | ||
| } | ||
@@ -113,2 +117,8 @@ | ||
| name: 'Z^' | ||
| x?: number | ||
| y?: number | ||
| a?: IPointData | ||
| b?: IPointData | ||
| ab?: PathNodeHandleType | ||
| } | ||
@@ -118,4 +128,13 @@ | ||
| export enum PathNodeHandleType { // 手柄类型 | ||
| none = 1, // 无手柄 | ||
| free = 2, // 每个手柄自由控制 | ||
| mirrorAngle = 3, // 仅镜像角度 | ||
| mirror = 4, // 镜像角度和长度 | ||
| } | ||
| export type PathNodeHandleName = 'a' | 'b' // 手柄名称 | ||
| export interface IPathNodeBase { | ||
| pathNode: IPathCommandNode | ||
| } |
Sorry, the diff of this file is too big to display
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
215316
0.39%5516
0.44%