Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

@leafer/interface

Package Overview
Dependencies
Maintainers
1
Versions
116
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@leafer/interface - npm Package Compare versions

Comparing version
1.11.1
to
1.11.2
+1
-1
package.json
{
"name": "@leafer/interface",
"version": "1.11.1",
"version": "1.11.2",
"description": "@leafer/interface",

@@ -5,0 +5,0 @@ "author": "Chao (Leafer) Wan",

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