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.0.0-rc.12
to
1.0.0-rc.16
+1
-1
package.json
{
"name": "@leafer/interface",
"version": "1.0.0-rc.12",
"version": "1.0.0-rc.16",
"description": "@leafer/interface",

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

@@ -20,3 +20,3 @@ import { ILeaf, ICursorType } from '../display/ILeaf'

export type ILeaferType = 'draw' | 'design' | 'board' | 'document' | 'app' | 'game' | 'player' | 'chart'
export type ILeaferType = 'draw' | 'design' | 'board' | 'document' | 'app' | 'website' | 'game' | 'player' | 'chart'
export interface ILeaferConfig extends IRendererConfig, ILeaferCanvasConfig, IInteractionConfig, ILayouterConfig {

@@ -39,4 +39,2 @@ start?: boolean

pixelRatio: number
view: unknown

@@ -43,0 +41,0 @@

@@ -33,2 +33,7 @@ import { IObject } from '../data/IData'

export interface ICanvasCacheOptions extends ICanvasStrokeOptions {
fillStyle?: string | object
strokeStyle?: string | object
}
export interface ICanvasAttr extends ICanvasStrokeOptions, IObject {

@@ -35,0 +40,0 @@

export type INumber = number // number | string will convert to number
export type IBoolean = boolean // boolean | string will convert to boolean
export type IString = string // string | other will convert to string
export type IValue = INumber | IBoolean | IString | IObject //
export type IValue = INumber | IBoolean | IString | IObject
export type ITimer = any

@@ -6,0 +6,0 @@

@@ -9,5 +9,2 @@ import { ILeaf, ILeafComputedData } from '../display/ILeaf'

__single: boolean
__checkSingle(): void
__get(name: string): any

@@ -33,3 +30,5 @@ __getData(): IObject

export interface ILeafData extends IDataProcessor, ILeafComputedData {
__single?: boolean
__checkSingle(): void
__removeNaturalSize(): void
}

@@ -7,4 +7,4 @@ import { ILeaferBase } from '../app/ILeafer'

import { IObject, INumber, IBoolean, IValue, IString } from '../data/IData'
import { IMatrixWithBoundsData, IMatrix, IPointData, IBoundsData, IRadiusPointData, ILayoutAttr, ILayoutBoundsData, IMatrixData, IMatrixWithBoundsScaleData } from '../math/IMath'
import { IObject, INumber, IBoolean, IValue, IString, IPathString } from '../data/IData'
import { IMatrixWithBoundsData, IMatrix, IPointData, IBoundsData, IRadiusPointData, ILayoutAttr, ILayoutBoundsData, IMatrixData, IMatrixWithBoundsScaleData, IMatrixWithScaleData } from '../math/IMath'
import { IFunction } from '../function/IFunction'

@@ -20,2 +20,4 @@

import { IFindMethod } from '../selector/ISelector'
import { IPathCommandData } from '../path/IPathCommand'
import { IWindingRule, IPath2D } from '../canvas/ICanvas'

@@ -59,6 +61,11 @@

around: IAround
lazy: IBoolean
pixelRatio: INumber
draggable: IBoolean
path: IPathCommandData | IPathString
windingRule: IWindingRule
editable: IBoolean

@@ -209,6 +216,11 @@ editSize?: IEditSize

around?: IAround
lazy?: IBoolean
pixelRatio?: INumber
draggable?: IBoolean
path?: IPathCommandData | IPathString
windingRule?: IWindingRule
editable?: IBoolean

@@ -260,5 +272,9 @@ editSize?: IEditSize

around?: IAround
lazy?: boolean
windingRule?: any
pixelRatio?: number
path?: IPathCommandData
windingRule?: IWindingRule
draggable?: boolean

@@ -285,2 +301,9 @@

readonly __blendMode: string
__useArrow?: boolean
__useEffect?: boolean
__pathInputed?: number // 是否为输入path, 0:否,1:是,2:永远是(不自动检测)
__pathForRender?: IPathCommandData
__path2DForRender?: IPath2D
}

@@ -301,5 +324,5 @@

readonly isApp?: boolean
isLeafer?: boolean
isBranch?: boolean
isBranchLeaf?: boolean
readonly isLeafer?: boolean
readonly isBranch?: boolean
readonly isBranchLeaf?: boolean

@@ -324,3 +347,3 @@ __: ILeafData

readonly worldTransform: IMatrixData
readonly worldTransform: IMatrixWithScaleData
readonly localTransform: IMatrixData

@@ -349,2 +372,5 @@

readonly pathInputed: boolean
pathClosed: boolean
__parentWait?: IFunction[]

@@ -365,3 +391,3 @@ __leaferWait?: IFunction[]

set(data: IObject): void
get(): ILeafInputData
get(name?: string): ILeafInputData | IValue
toJSON(): IObject

@@ -368,0 +394,0 @@ toString(): string

import { IBlob, ILeaferCanvas } from '../canvas/ILeaferCanvas'
import { ILocationType } from '../layout/ILeafLayout'
import { IBoundsData } from '../math/IMath'

@@ -14,2 +15,4 @@

screenshot?: IBoundsData | boolean
location?: ILocationType
onCanvas?: IExportOnCanvasFunction
}

@@ -27,2 +30,6 @@

(data: IExportResult): void
}
export interface IExportOnCanvasFunction {
(data: ILeaferCanvas): void
}

@@ -36,3 +36,3 @@ export { IAppBase } from './app/IApp'

export { ILeaferCanvas, ILeaferCanvasView, IHitCanvas, ICanvasAttr, ICanvasStrokeOptions, ILeaferCanvasConfig, IHitCanvasConfig, IBlobFunction, IBlob } from './canvas/ILeaferCanvas'
export { ILeaferCanvas, ILeaferCanvasView, IHitCanvas, ICanvasAttr, ICanvasStrokeOptions, ICanvasCacheOptions, ILeaferCanvasConfig, IHitCanvasConfig, IBlobFunction, IBlob } from './canvas/ILeaferCanvas'
export { ISkiaCanvas, ISkiaCanvasExportConfig, ICanvasType, ISkiaNAPICanvas } from './canvas/ISkiaCanvas'

@@ -45,3 +45,3 @@ export { IPathDrawer, IPathCreator } from './path/IPathDrawer'

export { IExportFileType, IExportImageType } from './file/IFileType'
export { IExportOptions, IExportResult, IExportResultFunction } from './file/IExport'
export { IExportOptions, IExportResult, IExportResultFunction, IExportOnCanvasFunction } from './file/IExport'

@@ -48,0 +48,0 @@ export { InnerId, IEventer, IEventListener, IEventListenerOptions, IEventListenerMap, IEventListenerItem, IEventListenerId } from './event/IEventer'

@@ -25,3 +25,3 @@ import { IObject } from '../data/IData'

getDistance(to: IPointData): number
getDistancePoint(to: IPointData, distance: number): IPoint
getDistancePoint(to: IPointData, distance: number, changeTo?: boolean): IPoint

@@ -28,0 +28,0 @@ getAngle(to: IPointData): number

@@ -21,2 +21,3 @@ import { IPathCommandData } from './IPathCommand'

path: IPathCommandData
__path: IPathCommandData

@@ -23,0 +24,0 @@ beginPath(): IPathCreator

Sorry, the diff of this file is too big to display