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

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

Comparing version
1.0.0-rc.23
to
1.0.0-rc.24
+1
-1
package.json
{
"name": "@leafer/interface",
"version": "1.0.0-rc.23",
"version": "1.0.0-rc.24",
"description": "@leafer/interface",

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

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

import { IWatcher, IWatcherConfig } from '../watcher/IWatcher'
import { IAutoBounds, IBoundsData, IPointData, IScreenSizeData, IBounds } from '../math/IMath'
import { IAutoBounds, IBoundsData, IPointData, IScreenSizeData, IBounds, IClientPointData } from '../math/IMath'
import { ICanvasManager } from '../canvas/ICanvasManager'

@@ -60,2 +60,3 @@ import { IHitCanvasManager } from '../canvas/IHitCanvasManager'

readonly cursorPoint: IPointData
readonly clientBounds: IBoundsData
leafs: number

@@ -85,2 +86,4 @@

getValidScale(changeScale: number): number
getWorldPointByClient(clientPoint: IClientPointData, updateClient?: boolean): IPointData
}

@@ -87,0 +90,0 @@

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

updateClientBounds(): void
getClientBounds(update?: boolean): IBoundsData

@@ -194,0 +195,0 @@ // other

@@ -38,3 +38,3 @@ import { ILeaferBase } from '../app/ILeafer'

opacity: INumber
visible: IBoolean
visible: IBoolean | 0 // 0 = display: none
selected: IBoolean

@@ -45,5 +45,4 @@ disabled: IBoolean

mask: IMaskType
maskType: IMaskType
eraser: IEraserType
mask: IBoolean | IMaskType
eraser: IBoolean | IEraserType

@@ -167,3 +166,2 @@ // layout data

export type IMaskType =
| boolean
| 'path'

@@ -174,3 +172,2 @@ | 'pixel'

export type IEraserType =
| boolean
| 'path'

@@ -207,3 +204,3 @@ | 'pixel'

export type IEditSize = 'size' | 'scale'
export type IEditSize = 'size' | 'font-size' | 'scale'
export interface IImageCursor {

@@ -300,3 +297,3 @@ url: string

opacity?: INumber
visible?: IBoolean
visible?: IBoolean | 0
selected?: IBoolean

@@ -307,5 +304,4 @@ disabled?: IBoolean

mask?: IMaskType
maskType?: IMaskType
eraser?: IEraserType
mask?: IBoolean | IMaskType
eraser?: IBoolean | IEraserType

@@ -392,3 +388,3 @@ // layout data

opacity?: number
visible?: boolean
visible?: boolean | 0
selected?: boolean

@@ -400,4 +396,3 @@ disabled?: boolean

mask?: boolean | IMaskType
maskType?: IMaskType
eraser?: IEraserType
eraser?: boolean | IEraserType

@@ -472,4 +467,13 @@ // layout data

__complex?: boolean // 外观是否复杂
__naturalWidth?: number
__naturalHeight?: number
readonly __autoWidth?: boolean
readonly __autoHeight?: boolean
readonly __autoSide?: boolean
readonly __autoSize?: boolean
readonly __useNaturalRatio: boolean // 宽高存在一个值时,另一个自动值是否采用natural尺寸比例
readonly __isLinePath: boolean
readonly __blendMode: string

@@ -476,0 +480,0 @@

@@ -39,3 +39,3 @@ import { ILeafEventer } from '../display/module/ILeafEventer'

on(type: string | string[], listener: IEventListener, options?: IEventListenerOptions | boolean): void
off(type: string | string[], listener: IEventListener, options?: IEventListenerOptions | boolean): void
off(type?: string | string[], listener?: IEventListener, options?: IEventListenerOptions | boolean): void
on_(type: string | string[], listener: IEventListener, bind?: IObject, options?: IEventListenerOptions | boolean): IEventListenerId

@@ -42,0 +42,0 @@ off_(id: IEventListenerId | IEventListenerId[]): void

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

export { ILeafList, ILeafArrayMap, ILeafMap, ILeafLevelList, ILeafListItemCallback } from './data/IList'
export { IPoint, IPointData, IUnitPointData, IScrollPointData, IRadiusPointData, ISize, ISizeData, IScreenSizeData, IBounds, IBoundsData, IBoundsDataFn, IOffsetBoundsData, ITwoPointBoundsData, IAutoBounds, IAutoBoxData, IAutoBoundsData, IMatrix, IMatrixData, IMatrixWithBoundsData, IMatrixWithScaleData, IMatrixWithOptionScaleData, IMatrixWithBoundsScaleData, IMatrixWithLayoutData, IScaleRotationData, IScaleData, ISkewData, ILayoutBoundsData, ILayoutData, ILayoutAttr } from './math/IMath'
export { IPoint, IPointData, IFromToData, IUnitPointData, IScrollPointData, IClientPointData, IRadiusPointData, ISize, ISizeData, IScreenSizeData, IBounds, IBoundsData, IBoundsDataFn, IOffsetBoundsData, ITwoPointBoundsData, IAutoBounds, IAutoBoxData, IAutoBoundsData, IMatrix, IMatrixData, IMatrixWithBoundsData, IMatrixWithScaleData, IMatrixWithOptionScaleData, IMatrixWithBoundsScaleData, IMatrixWithLayoutData, IScaleRotationData, IScaleData, ISkewData, ILayoutBoundsData, ILayoutData, ILayoutAttr } from './math/IMath'
export { IFunction, IStringFunction, INumberFunction, IObjectFunction, IPointDataFunction, IAttrDecorator } from './function/IFunction'

@@ -5,3 +5,3 @@ import { INumberFunction, IPointDataFunction } from '../function/IFunction'

import { ILeafList } from '../data/IList'
import { IPointData } from '../math/IMath'
import { IClientPointData, IPointData } from '../math/IMath'
import { ISelector, IPickOptions, IPickBottom } from '../selector/ISelector'

@@ -74,2 +74,4 @@ import { IBounds } from '../math/IMath'

getLocal(clientPoint: IClientPointData, updateClient?: boolean): IPointData
emit(type: string, data: IUIEvent, path?: ILeafList, excludePath?: ILeafList): void

@@ -76,0 +78,0 @@ }

@@ -66,4 +66,4 @@ import { IBoundsData, IMatrixData, ILayoutBoundsData, IPointData } from '../math/IMath'

strokeSpread: number
renderSpread: number // -1 表示监视变化,不影响实际renderBounds,目前用在Box上
strokeBoxSpread: number
strokeBoxSpread: number // 用于生成strokeBounds
renderSpread: number // -1 表示需监视变化,不影响实际renderBounds,目前用在Box上
renderShapeSpread: number

@@ -70,0 +70,0 @@

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

export interface IFromToData {
from: IPointData
to: IPointData
}
export interface IScrollPointData {

@@ -20,2 +25,7 @@ scrollX: number

export interface IClientPointData {
clientX: number
clientY: number
}
export interface IPoint extends IPointData {

@@ -22,0 +32,0 @@ set(x?: number | IPointData, y?: number): IPoint

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