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-alpha.9
to
1.0.0-alpha.10
+5
src/app/IApp.ts
import { ILeafer } from './ILeafer'
export interface IApp extends ILeafer {
children: ILeafer[]
}
+1
-1
{
"name": "@leafer/interface",
"version": "1.0.0-alpha.9",
"version": "1.0.0-alpha.10",
"description": "@leafer/interface",

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

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

import { IZoomView } from '../display/IView'
import { ISupperLeafer } from './ISupperLeafer'
import { IApp } from './IApp'
import { ILeaferImage, ILeaferImageConfig } from '../image/ILeaferImage'

@@ -30,4 +30,4 @@ import { IEvent } from '../event/IEvent'

readonly isSupperLeafer: boolean
parent?: ISupperLeafer
readonly isApp: boolean
parent?: IApp

@@ -34,0 +34,0 @@ running: boolean

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

__renderTime: number // μs 1000微秒 = 1毫秒
__complex: boolean // 外观是否复杂, 将调用__drawComplex()
__complex: boolean // 外观是否复杂

@@ -124,0 +124,0 @@ __level: number // 图层级别 root(1) -> hight

@@ -6,4 +6,6 @@ export interface ILeaferImageConfig {

export interface ILeaferImage {
//load(url: string):Promise<>
}

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

export { ISupperLeafer } from './app/ISupperLeafer'
export { IApp } from './app/IApp'
export { ILeafer, ILeaferConfig, ICreator, IUICreator } from './app/ILeafer'

@@ -3,0 +3,0 @@ export { ILeaf, ILeafAttrData, ILeafComputedData, ILeafInputData, ICachedLeaf } from './display/ILeaf'

import { INumberFunction, IPointDataFunction } from '../function/IFunction'
import { IPointerEvent, IMoveEvent, IZoomEvent, IRotateEvent } from '../event/IUIEvent'
import { IPointerEvent, IMoveEvent, IZoomEvent, IRotateEvent, IUIEvent } from '../event/IUIEvent'
import { ILeaf } from '../display/ILeaf'
import { ILeafList } from '../data/IList'
import { IPointData } from '../math/IMath'
import { ISelector } from '../selector/ISelector'
import { ILeaferCanvas } from '../canvas/ILeaferCanvas'
import { IBounds } from '../math/IMath'
export interface IInteraction {
target: ILeaf
config: IInteractionConfig
canvas: ILeaferCanvas
selector: ISelector
running: boolean
readonly dragging: boolean
pointerMoveIgnore: boolean
config: IInteractionConfig
readonly hitRadius: number
shrinkCanvasBounds: IBounds
downData: IPointerEvent
start(): void

@@ -18,2 +30,3 @@ stop(): void

pointerMove(data: IPointerEvent): void
pointerMoveReal(data: IPointerEvent): void
pointerUp(data: IPointerEvent): void

@@ -26,2 +39,4 @@ pointerCancel(): void

emit(type: string, data: IUIEvent, path?: ILeafList, excludePath?: ILeafList): void
destroy(): void

@@ -41,3 +56,3 @@ }

rotateSpeed?: number // 取值范围 0 ~ 1, 默认0.5
delta?: IPointData
delta?: IPointData // 以chrome为基准, 鼠标滚动一格的距离
getScale?: INumberFunction

@@ -56,2 +71,3 @@ getMove?: IPointDataFunction

autoMoveDistance?: number
ignoreMove: boolean // 性能优化字段, 控制move事件触发次数
}

@@ -36,10 +36,20 @@ import { IBounds } from '../math/IMath'

layoutedBlocks: ILayoutBlockData[]
totalTimes: number
times: number
config: ILayouterConfig
running: boolean
changed: boolean
config: ILayouterConfig
start(): void
stop(): void
update(): void
layout(): void
layoutOnce(): void
partLayout(): void
fullLayout(): void
createBlock(data: ILeafList | ILeaf[]): ILayoutBlockData

@@ -49,6 +59,3 @@ getBlocks(list: ILeafList): ILayoutBlockData[]

layout(): void
partLayout(): void
fullLayout(): void
destroy(): void
}

@@ -5,3 +5,2 @@ import { ILeaferCanvas } from '../canvas/ILeaferCanvas'

import { IFunction } from '../function/IFunction'
import { ILayoutBlockData } from '../layouter/ILayouter'

@@ -16,2 +15,3 @@ export interface IRenderOptions {

export interface IRendererConfig {
usePartRender?: boolean
maxFPS?: number

@@ -21,20 +21,31 @@ }

export interface IRenderer {
target: ILeaf
canvas: ILeaferCanvas
target: ILeaf
layoutedBlocks: ILayoutBlockData[]
running: boolean
updateBlocks: IBounds[]
FPS: number
totalTimes: number
times: number
running: boolean
changed: boolean
config: IRendererConfig
FPS: number
start(): void
stop(): void
update(): void
requestLayout(): void
render(callback?: IFunction): void
clipRender(bounds: IBounds): void
renderOnce(callback?: IFunction): void
partRender(): void
clipRender(bounds: IBounds, fullMode?: boolean): void
fullRender(bounds?: IBounds): void
addBlock(block: IBounds): void
mergeBlocks(): void
destroy(): void
}

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

target: ILeaf
defaultPath: ILeafList
defaultPath: ILeafList
getHitPointPath(hitPoint: IPointData, hitRadius: number, options?: ISelectPathOptions): ISelectPathResult

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

@@ -15,7 +15,10 @@ import { ILeaf } from '../display/ILeaf'

updatedList: ILeafList
totalTimes: number
config: IWatcherConfig
running: boolean
changed: boolean
config: IWatcherConfig
start(): void

@@ -22,0 +25,0 @@ stop(): void

import { ILeafer } from './ILeafer'
export interface ISupperLeafer extends ILeafer {
children: ILeafer[]
}