@leafer/interface
Advanced tools
+1
-1
| { | ||
| "name": "@leafer/interface", | ||
| "version": "1.6.2", | ||
| "version": "1.6.3", | ||
| "description": "@leafer/interface", | ||
@@ -5,0 +5,0 @@ "author": "Chao (Leafer) Wan", |
@@ -135,3 +135,3 @@ import { ILeaf, ICursorType } from '../display/ILeaf' | ||
| editor?(options?: IObject): ILeaf | ||
| editor?(options?: IObject, app?: IAppBase): ILeaf | ||
| } | ||
@@ -138,0 +138,0 @@ |
| import { ILeaferBase } from '../app/ILeafer' | ||
| import { IEventer, IEventMap } from '../event/IEventer' | ||
| import { IEventer, IEventParamsMap } from '../event/IEventer' | ||
@@ -307,3 +307,3 @@ import { ILeaferCanvas, IHitCanvas } from '../canvas/ILeaferCanvas' | ||
| event?: IEventMap | ||
| event?: IEventParamsMap | ||
@@ -310,0 +310,0 @@ // 预留给用户使用的数据对象 |
| import { ILeaf } from '../ILeaf' | ||
| import { IEventListener, IEventListenerId, IEventListenerOptions, IEventMap } from '../../event/IEventer' | ||
| import { IEventListener, IEventListenerId, IEventListenerOptions, IEventParamsMap } from '../../event/IEventer' | ||
| import { } from '@leafer/interface' | ||
@@ -10,3 +10,3 @@ import { IEvent } from '../../event/IEvent' | ||
| export interface ILeafEventer { | ||
| on?(type: string | string[] | IEventMap, listener?: IEventListener, options?: IEventListenerOptions | boolean): void | ||
| on?(type: string | string[] | IEventParamsMap, listener?: IEventListener, options?: IEventListenerOptions | boolean): void | ||
| off?(type?: string | string[], listener?: IEventListener, options?: IEventListenerOptions | boolean): void | ||
@@ -13,0 +13,0 @@ on_?(type: string | string[], listener: IEventListener, bind?: IObject, options?: IEventListenerOptions | boolean): IEventListenerId |
@@ -47,2 +47,6 @@ import { IEventer } from './IEventer' | ||
| export interface IBoundsEvent extends IEvent { | ||
| } | ||
| export interface IResizeEvent extends IEvent { | ||
@@ -49,0 +53,0 @@ readonly width: number |
@@ -25,10 +25,12 @@ import { ILeafEventer } from '../display/module/ILeafEventer' | ||
| export interface IEventMap { | ||
| export interface IEventParamsMap { | ||
| [name: string]: IEventListener | [IEventListener, IEventOption] | ||
| } | ||
| export type IEventParams = any[] | ||
| export interface IEventListenerId { | ||
| type: string | string[] | ||
| type: string | string[] | IEventParams[] | ||
| current: ILeaf | ||
| listener: IEventListener | ||
| listener?: IEventListener | ||
| options?: IEventOption | ||
@@ -43,10 +45,12 @@ } | ||
| __bubbleMap?: IEventListenerMap | ||
| __hasLocalEvent?: boolean | ||
| __hasWorldEvent?: boolean | ||
| syncEventer?: IEventer | ||
| event?: IEventMap | ||
| event?: IEventParamsMap | ||
| on(type: string | string[] | IEventMap, listener?: IEventListener, options?: IEventOption): void | ||
| on(type: string | string[] | IEventParams[] | IEventParamsMap, listener?: IEventListener, options?: IEventOption): void | ||
| off(type?: string | string[], listener?: IEventListener, options?: IEventOption): void | ||
| on_(type: string | string[], listener: IEventListener, bind?: IObject, options?: IEventOption): IEventListenerId | ||
| on_(type: string | string[] | IEventParams[], listener?: IEventListener, bind?: IObject, options?: IEventOption): IEventListenerId | ||
| off_(id: IEventListenerId | IEventListenerId[]): void | ||
| once(type: string | string[], listener: IEventListener): void | ||
| once(type: string | string[] | IEventParams[], listener?: IEventListener, captureOrBind?: boolean | IObject, capture?: boolean): void | ||
| emit(type: string, event?: IEvent | IObject, capture?: boolean): void | ||
@@ -53,0 +57,0 @@ emitEvent(event?: IEvent, capture?: boolean): void |
@@ -74,7 +74,7 @@ import { IObject } from '../data/IData' | ||
| export interface IRotateEvent extends IUIEvent { | ||
| export interface IRotateEvent extends IPointerEvent { | ||
| rotation: number | ||
| } | ||
| export interface IZoomEvent extends IUIEvent { | ||
| export interface IZoomEvent extends IPointerEvent { | ||
| scale: number | ||
@@ -81,0 +81,0 @@ } |
@@ -16,3 +16,3 @@ import { ILeaferImage, ILeaferImageConfig } from './ILeaferImage' | ||
| clearRecycled(): void | ||
| hasOpacityPixel(config: ILeaferImageConfig): boolean // png / svg / webp | ||
| hasAlphaPixel(config: ILeaferImageConfig): boolean // png / svg / webp | ||
| isFormat(format: IExportFileType, config: ILeaferImageConfig): boolean | ||
@@ -19,0 +19,0 @@ |
@@ -43,3 +43,3 @@ import { ICanvasPattern } from '../canvas/ICanvas' | ||
| isSVG: boolean | ||
| hasOpacityPixel: boolean | ||
| hasAlphaPixel: boolean | ||
@@ -46,0 +46,0 @@ readonly completed: boolean |
+2
-2
@@ -48,4 +48,4 @@ export { IAppBase } from './app/IApp' | ||
| export { InnerId, IEventer, IEventMap, IEventListener, IEventOption, IEventListenerOptions, IEventListenerMap, IEventListenerItem, IEventListenerId } from './event/IEventer' | ||
| export { IEventTarget, IEvent, ILeaferEvent, IPropertyEvent, ILayoutEvent, IRenderEvent, IAnimateEvent, IChildEvent, IResizeEvent, IResizeEventListener, IUpdateEvent, IWatchEvent, IMultiTouchData, IKeepTouchData } from './event/IEvent' | ||
| export { InnerId, IEventer, IEventParamsMap, IEventParams, IEventListener, IEventOption, IEventListenerOptions, IEventListenerMap, IEventListenerItem, IEventListenerId } from './event/IEventer' | ||
| export { IEventTarget, IEvent, ILeaferEvent, IPropertyEvent, ILayoutEvent, IRenderEvent, IAnimateEvent, IChildEvent, IBoundsEvent, IResizeEvent, IResizeEventListener, IUpdateEvent, IWatchEvent, IMultiTouchData, IKeepTouchData } from './event/IEvent' | ||
| export { IUIEvent, IPointerEvent, PointerType, IDragEvent, IDropEvent, ISwipeEvent, IMoveEvent, IZoomEvent, IRotateEvent, IWheelEvent, IKeyEvent, IImageEvent } from './event/IUIEvent' | ||
@@ -52,0 +52,0 @@ export { IProgressData, IProgressFunction } from './event/IProgress' |
@@ -35,3 +35,3 @@ import { IBoundsData, IMatrixData, ILayoutBoundsData, IPointData } from '../math/IMath' | ||
| // state | ||
| resized: boolean | ||
| resized: 'scale' | 'inner' | 'local' // (scale | inner) > local | ||
| waitAutoLayout: boolean | ||
@@ -38,0 +38,0 @@ |
| import { IFourNumber, IObject } from '../data/IData' | ||
| import { ISide } from '../display/ILeaf' | ||
| import { IAlign, ISide } from '../display/ILeaf' | ||
@@ -37,3 +37,3 @@ export interface IPointData { | ||
| move(x: number, y: number): IPoint | ||
| move(x: number | IPointData, y?: number): IPoint | ||
| scale(scaleX: number, scaleY?: number): IPoint | ||
@@ -98,3 +98,3 @@ scaleOf(origin: IPointData, scaleX: number, scaleY?: number): IPoint | ||
| move(x: number, y: number): IBounds | ||
| scale(scaleX: number, scaleY?: number): IBounds | ||
| scale(scaleX: number, scaleY?: number, onlySize?: boolean): IBounds | ||
| scaleOf(origin: IPointData, scaleX: number, scaleY?: number): IBounds | ||
@@ -104,2 +104,3 @@ toOuterOf(matrix: IMatrixData, to?: IBoundsData): IBounds | ||
| getFitMatrix(put: IBoundsData, baseScale?: number): IMatrix | ||
| put(put: IBoundsData, align?: IAlign, putScale?: number | 'fit' | 'cover'): void | ||
@@ -106,0 +107,0 @@ spread(fourNumber: IFourNumber, side?: ISide): IBounds |
Sorry, the diff of this file is too big to display
192888
0.54%4944
0.26%