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
0
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.27
to
1.0.0-rc.28
+1
-1
package.json
{
"name": "@leafer/interface",
"version": "1.0.0-rc.27",
"version": "1.0.0-rc.28",
"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' | 'website' | 'game' | 'player' | 'chart'
export type ILeaferType = 'draw' | 'editor' | 'design' | 'board' | 'document' | 'app' | 'website' | 'game' | 'player' | 'chart' | 'custom'
export interface ILeaferConfig extends IRendererConfig, ILeaferCanvasConfig, IInteractionConfig, ILayouterConfig {

@@ -74,3 +74,2 @@ start?: boolean

forceRender(bounds?: IBoundsData): void
updateCursor(cursor?: ICursorType): void

@@ -77,0 +76,0 @@ resize(size: IScreenSizeData): void

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

zIndex?: number
childIndex?: number
bounds: IBounds

@@ -163,0 +166,0 @@ clientBounds: IBoundsData

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

readonly __ignoreHitWorld: boolean
readonly __inLazyBounds: boolean

@@ -603,5 +604,6 @@ readonly pathInputed: boolean

focus(value?: boolean): void
forceUpdate(attrName?: string): void
updateLayout(): void
forceUpdate(attrName?: string): void
forceRender(_bounds?: IBoundsData): void

@@ -648,2 +650,3 @@ // ILeafMatrix ->

getLayoutBounds(type?: IBoundsType, relative?: ILocationType | ILeaf, unscale?: boolean): ILayoutBoundsData
getLayoutPoints(type?: IBoundsType, relative?: ILocationType | ILeaf): IPointData[]

@@ -650,0 +653,0 @@ getWorldBounds(inner: IBoundsData, relative?: ILeaf, change?: boolean): IBoundsData

import { IBlob, ILeaferCanvas } from '../canvas/ILeaferCanvas'
import { ICanvasContext2DSettings } from '../canvas/ICanvas'
import { ILeaf } from '../display/ILeaf'

@@ -6,3 +7,2 @@ import { ILocationType } from '../layout/ILeafLayout'

export interface IExportOptions {

@@ -12,2 +12,3 @@ quality?: number

scale?: number
smooth?: boolean
pixelRatio?: number

@@ -19,2 +20,3 @@ slice?: boolean

relative?: ILocationType | ILeaf
contextSettings?: ICanvasContext2DSettings
onCanvas?: IExportOnCanvasFunction

@@ -21,0 +23,0 @@ }

@@ -85,6 +85,6 @@ import { INumberFunction, IPointDataFunction } from '../function/IFunction'

pointer?: IPointerConfig
cursor?: ICursorConfig
zoom?: IZoomConfig
move?: IMoveConfig
eventer?: IObject
cursor?: boolean
keyEvent?: boolean

@@ -91,0 +91,0 @@ }

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

import { IFunction } from '../function/IFunction'
import { IFunction, IStringFunction } from '../function/IFunction'
import { ILeaferCanvas } from '../canvas/ILeaferCanvas'

@@ -46,4 +46,6 @@ import { ILeaf } from '../display/ILeaf'

maxPatternSize: number // 最大repeat pattern缓存, 默认4k: 4096 * 2160
suffix: string // 需要带上后缀区分dom中image标签的缓存,否则会导致浏览器缓存跨域问题
prefix?: string // url加前缀
suffix?: string // 需要带上后缀区分dom中image标签的缓存,否则会导致浏览器缓存跨域问题
crossOrigin: string | false // 跨域设置
getRealURL: IStringFunction // 处理前缀、后缀
}

@@ -50,0 +52,0 @@ }

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