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

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

@@ -1,2 +0,2 @@

import { ILeaf, ICursorType } from '../display/ILeaf'
import { ILeaf, ICursorType, IAlign } from '../display/ILeaf'
import { IRenderer, IRendererConfig } from '../renderer/IRenderer'

@@ -86,3 +86,3 @@ import { IHitCanvas, ILeaferCanvas, ILeaferCanvasConfig, IHitCanvasConfig } from '../canvas/ILeaferCanvas'

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

@@ -101,2 +101,9 @@ getValidScale(changeScale: number): number

export interface IZoomOptions {
padding?: IFourNumber
scroll?: 'x' | 'y' | boolean
transition?: ITransition
origin?: IPointData | IAlign
}
export interface ILeaferBase extends IZoomView, IControl, ILeaferAttrData {

@@ -103,0 +110,0 @@ readonly isApp: boolean

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

__useStroke?: boolean
__useArrow?: boolean

@@ -666,3 +667,4 @@ __useEffect?: boolean

__clip(canvas: ILeaferCanvas, options: IRenderOptions): void
__renderShape(canvas: ILeaferCanvas, options: IRenderOptions, ignoreFill?: boolean, ignoreStroke?: boolean): void
__renderShape(canvas: ILeaferCanvas, options: IRenderOptions): void
__drawShape(canvas: ILeaferCanvas, options: IRenderOptions): void

@@ -669,0 +671,0 @@ __updateWorldOpacity(): void

@@ -13,3 +13,4 @@ import { ILeaferCanvas } from '../../canvas/ILeaferCanvas'

__clip?(_canvas: ILeaferCanvas, _options: IRenderOptions): void
__renderShape?(canvas: ILeaferCanvas, options: IRenderOptions, ignoreFill?: boolean, ignoreStroke?: boolean): void
__renderShape?(canvas: ILeaferCanvas, options: IRenderOptions): void
__drawShape?(canvas: ILeaferCanvas, options: IRenderOptions): void

@@ -16,0 +17,0 @@ __updateWorldOpacity?(): void

export { IAppBase } from './app/IApp'
export { ILeaferBase, ILeaferAttrData, ILeaferType, ILeaferTypeCreator, ILeaferTypeFunction, ILeaferTypeList, ILeaferConfig, ICreator, IUICreator, IZoomType } from './app/ILeafer'
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, IHitType, IMaskType, IEraserType, IBlendMode, IEditSize, IImageCursor, ICursorType, IStateStyleType, IDirection, IDirection4, IAround, IFilter, ILeafAttrDescriptor, ILeafAttrDescriptorFn } from './display/ILeaf'

@@ -4,0 +4,0 @@ export { IBranch } from './display/IBranch'

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

export interface IPointerConfig {
type?: 'mouse' | 'pointer' | 'touch'
snap?: boolean // 交互操作坐标是否对齐屏幕像素,避免出现小数

@@ -143,0 +144,0 @@

@@ -15,2 +15,7 @@ import { ILeaferCanvas } from '../canvas/ILeaferCanvas'

exporting?: boolean // 是否通过 export() 导出渲染
// 只渲染外形
shape?: boolean
ignoreFill?: boolean, // 绘制外形时忽略fill
ignoreStroke?: boolean // 绘制外形时忽略stroke
}

@@ -17,0 +22,0 @@

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