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.9.1
to
1.9.2
+1
-1
package.json
{
"name": "@leafer/interface",
"version": "1.9.1",
"version": "1.9.2",
"description": "@leafer/interface",

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

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

zoom(zoomType: IZoomType, optionsOrPadding?: IZoomOptions | IFourNumber, scroll?: 'x' | 'y' | boolean, transition?: ITransition): IBoundsData
getValidMove(moveX: number, moveY: number): IPointData
getValidMove(moveX: number, moveY: number, checkLimit?: boolean): IPointData
getValidScale(changeScale: number): number

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

@@ -130,5 +130,5 @@ import { IObject } from '../data/IData'

copyWorld(canvas: ILeaferCanvas, fromBounds?: IBoundsData, toBounds?: IBoundsData, blendMode?: string): void
copyWorldByReset(canvas: ILeaferCanvas, from?: IBoundsData, to?: IBoundsData, blendMode?: string, onlyResetTransform?: boolean): void
copyWorldToInner(canvas: ILeaferCanvas, fromWorld: IMatrixWithBoundsData, toInnerBounds: IBoundsData, blendMode?: string): void
copyWorld(canvas: ILeaferCanvas, fromBounds?: IBoundsData, toBounds?: IBoundsData, blendMode?: string, ceilPixel?: boolean): void
copyWorldByReset(canvas: ILeaferCanvas, from?: IBoundsData, to?: IBoundsData, blendMode?: string, onlyResetTransform?: boolean, ceilPixel?: boolean): void
copyWorldToInner(canvas: ILeaferCanvas, fromWorld: IMatrixWithBoundsData, toInnerBounds: IBoundsData, blendMode?: string, ceilPixel?: boolean): void

@@ -139,4 +139,4 @@ useGrayscaleAlpha(bounds: IBoundsData): void

fillWorld(bounds: IBoundsData, color: string | object, blendMode?: string): void
strokeWorld(bounds: IBoundsData, color: string | object, blendMode?: string): void
fillWorld(bounds: IBoundsData, color: string | object, blendMode?: string, ceilPixel?: boolean): void
strokeWorld(bounds: IBoundsData, color: string | object, blendMode?: string, ceilPixel?: boolean): void
clipWorld(bounds: IBoundsData, ceilPixel?: boolean): void

@@ -143,0 +143,0 @@ clipUI(ruleData: IWindingRuleData): void

@@ -126,2 +126,5 @@ import { ILeaferBase } from '../app/ILeafer'

export type IEditSize = 'size' | 'font-size' | 'scale'
export type IDragBoundsType = 'auto' | 'outer' | 'inner'
export interface IImageCursor {

@@ -291,2 +294,3 @@ url: string

dragBounds?: IBoundsData | 'parent'
dragBoundsType?: IDragBoundsType

@@ -395,2 +399,3 @@ editable?: IBoolean

dragBounds?: IBoundsData | 'parent'
dragBoundsType?: IDragBoundsType

@@ -494,2 +499,5 @@ editable?: boolean

__scrollWorld?: IMatrixWithBoundsScaleData
readonly scrollWorldTransform: IMatrixWithScaleData
readonly boxBounds: IBoundsData

@@ -593,5 +601,5 @@ readonly renderBounds: IBoundsData

__updateContentBounds(): void
__updateBoxBounds(secondLayout?: boolean): void
__updateStrokeBounds(): void
__updateRenderBounds(): void
__updateBoxBounds(secondLayout?: boolean, bounds?: IBoundsData): void
__updateStrokeBounds(bounds?: IBoundsData): void
__updateRenderBounds(bounds?: IBoundsData): void

@@ -709,2 +717,3 @@ __updateAutoLayout(): void

children?: ILeaf[]
topChildren?: ILeaf[]

@@ -711,0 +720,0 @@ __updateSortChildren(): void

@@ -10,2 +10,3 @@ import { ILeaf } from '../ILeaf'

__realSetAttr?(name: string, newValue: IValue): void
emitPropertyEvent?(type: string, attrName: string, oldValue: unknown, newValue: unknown): void
setProxyAttr?(name: string, newValue: IValue): void

@@ -12,0 +13,0 @@ getProxyAttr?(name: string): IValue

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

| 'Unidentified' // 未识别键
| (string & {})

@@ -352,0 +353,0 @@

export { IAppBase } from './app/IApp'
export { ILeaferBase, ILeaferAttrData, ILeaferType, ILeaferTypeCreator, ILeaferTypeFunction, ILeaferTypeList, ILeaferConfig, ICreator, IUICreator, IZoomType, IZoomOptions } from './app/ILeafer'
export { ILeaf, ILeafAttrData, ILeafComputedData, ILeafInputData, ICachedLeaf, IFlowType, IFlowBoxType, IAlign, IAxisAlign, IFlowAlign, IFlowAxisAlign, ISide, IAxis, IGap, IPointGap, IAxisReverse, IBaseLineAlign, IFlowWrap, IAutoSize, IRangeSize, IPercentData, IUnitData, IConstraint, IConstraintType, IScaleFixed, IHitType, IMaskType, IEraserType, IBlendMode, IEditSize, IImageCursor, ICursorType, IStateStyleType, IDirection, IDirection4, IAround, IFilter, ILeafAttrDescriptor, ILeafAttrDescriptorFn } from './display/ILeaf'
export { ILeaf, ILeafAttrData, ILeafComputedData, ILeafInputData, ICachedLeaf, IFlowType, IFlowBoxType, IAlign, IAxisAlign, IFlowAlign, IFlowAxisAlign, ISide, IAxis, IGap, IPointGap, IAxisReverse, IBaseLineAlign, IFlowWrap, IAutoSize, IRangeSize, IPercentData, IUnitData, IConstraint, IConstraintType, IScaleFixed, IHitType, IMaskType, IEraserType, IBlendMode, IEditSize, IDragBoundsType, IImageCursor, ICursorType, IStateStyleType, IDirection, IDirection4, IAround, IFilter, ILeafAttrDescriptor, ILeafAttrDescriptorFn } from './display/ILeaf'
export { IBranch } from './display/IBranch'

@@ -5,0 +5,0 @@ export { IZoomView } from './display/IView'

@@ -34,2 +34,8 @@ import { IBoundsData, IMatrixData, ILayoutBoundsData, IPointData } from '../math/IMath'

// Box 元素专用
childrenBoxBounds?: IBoundsData
childrenStrokeBounds?: IBoundsData
childrenRenderBounds?: IBoundsData
// state

@@ -62,2 +68,6 @@ resized: 'inner' | 'scale' | 'local' // inner > scale > local, 设置了inner之后不能被覆盖

// config changed
scrollConfigChanged?: boolean
editConfigChanged?: boolean
// keep state

@@ -64,0 +74,0 @@ affectScaleOrRotation: boolean

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