@leafer/interface 1.9.1 → 1.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leafer/interface",
3
- "version": "1.9.1",
3
+ "version": "1.9.2",
4
4
  "description": "@leafer/interface",
5
5
  "author": "Chao (Leafer) Wan",
6
6
  "license": "MIT",
@@ -84,7 +84,7 @@ export interface ILeaferAttrData {
84
84
  waitViewCompleted(item: IFunction, bind?: IObject): void
85
85
 
86
86
  zoom(zoomType: IZoomType, optionsOrPadding?: IZoomOptions | IFourNumber, scroll?: 'x' | 'y' | boolean, transition?: ITransition): IBoundsData
87
- getValidMove(moveX: number, moveY: number): IPointData
87
+ getValidMove(moveX: number, moveY: number, checkLimit?: boolean): IPointData
88
88
  getValidScale(changeScale: number): number
89
89
 
90
90
  getWorldPointByClient(clientPoint: IClientPointData, updateClient?: boolean): IPointData
@@ -127,16 +127,16 @@ interface ICanvasMethod {
127
127
  setWorldShadow(x: number, y: number, blur: number, color?: string): void
128
128
  setWorldBlur(blur: number): void
129
129
 
130
- copyWorld(canvas: ILeaferCanvas, fromBounds?: IBoundsData, toBounds?: IBoundsData, blendMode?: string): void
131
- copyWorldByReset(canvas: ILeaferCanvas, from?: IBoundsData, to?: IBoundsData, blendMode?: string, onlyResetTransform?: boolean): void
132
- copyWorldToInner(canvas: ILeaferCanvas, fromWorld: IMatrixWithBoundsData, toInnerBounds: IBoundsData, blendMode?: string): void
130
+ copyWorld(canvas: ILeaferCanvas, fromBounds?: IBoundsData, toBounds?: IBoundsData, blendMode?: string, ceilPixel?: boolean): void
131
+ copyWorldByReset(canvas: ILeaferCanvas, from?: IBoundsData, to?: IBoundsData, blendMode?: string, onlyResetTransform?: boolean, ceilPixel?: boolean): void
132
+ copyWorldToInner(canvas: ILeaferCanvas, fromWorld: IMatrixWithBoundsData, toInnerBounds: IBoundsData, blendMode?: string, ceilPixel?: boolean): void
133
133
 
134
134
  useGrayscaleAlpha(bounds: IBoundsData): void
135
135
  useMask(maskCanvas: ILeaferCanvas, fromBounds?: IBoundsData, toBounds?: IBoundsData): void
136
136
  useEraser(eraserCanvas: ILeaferCanvas, fromBounds?: IBoundsData, toBounds?: IBoundsData): void
137
137
 
138
- fillWorld(bounds: IBoundsData, color: string | object, blendMode?: string): void
139
- strokeWorld(bounds: IBoundsData, color: string | object, blendMode?: string): void
138
+ fillWorld(bounds: IBoundsData, color: string | object, blendMode?: string, ceilPixel?: boolean): void
139
+ strokeWorld(bounds: IBoundsData, color: string | object, blendMode?: string, ceilPixel?: boolean): void
140
140
  clipWorld(bounds: IBoundsData, ceilPixel?: boolean): void
141
141
  clipUI(ruleData: IWindingRuleData): void
142
142
 
@@ -123,6 +123,9 @@ export type IBlendMode =
123
123
  | 'copy'
124
124
 
125
125
  export type IEditSize = 'size' | 'font-size' | 'scale'
126
+
127
+ export type IDragBoundsType = 'auto' | 'outer' | 'inner'
128
+
126
129
  export interface IImageCursor {
127
130
  url: string
128
131
  x?: number
@@ -287,6 +290,7 @@ export interface ILeafAttrData {
287
290
  // interactive
288
291
  draggable?: IBoolean | IAxis
289
292
  dragBounds?: IBoundsData | 'parent'
293
+ dragBoundsType?: IDragBoundsType
290
294
 
291
295
  editable?: IBoolean
292
296
 
@@ -390,6 +394,7 @@ export interface ILeafComputedData {
390
394
  // interactive
391
395
  draggable?: boolean | IAxis
392
396
  dragBounds?: IBoundsData | 'parent'
397
+ dragBoundsType?: IDragBoundsType
393
398
 
394
399
  editable?: boolean
395
400
 
@@ -488,6 +493,9 @@ export interface ILeaf extends ILeafRender, ILeafHit, ILeafBounds, ILeafMatrix,
488
493
  readonly worldTransform: IMatrixWithScaleData
489
494
  readonly localTransform: IMatrixData
490
495
 
496
+ __scrollWorld?: IMatrixWithBoundsScaleData
497
+ readonly scrollWorldTransform: IMatrixWithScaleData
498
+
491
499
  readonly boxBounds: IBoundsData
492
500
  readonly renderBounds: IBoundsData
493
501
  readonly worldBoxBounds: IBoundsData
@@ -586,9 +594,9 @@ export interface ILeaf extends ILeafRender, ILeafHit, ILeafBounds, ILeafMatrix,
586
594
  __updateLocalRenderBounds(): void
587
595
 
588
596
  __updateContentBounds(): void
589
- __updateBoxBounds(secondLayout?: boolean): void
590
- __updateStrokeBounds(): void
591
- __updateRenderBounds(): void
597
+ __updateBoxBounds(secondLayout?: boolean, bounds?: IBoundsData): void
598
+ __updateStrokeBounds(bounds?: IBoundsData): void
599
+ __updateRenderBounds(bounds?: IBoundsData): void
592
600
 
593
601
  __updateAutoLayout(): void
594
602
  __updateFlowLayout(): void
@@ -701,6 +709,7 @@ export interface ILeaf extends ILeafRender, ILeafHit, ILeafBounds, ILeafMatrix,
701
709
 
702
710
  // branch
703
711
  children?: ILeaf[]
712
+ topChildren?: ILeaf[]
704
713
 
705
714
  __updateSortChildren(): void
706
715
  add(child: ILeaf | ILeaf[] | ILeafInputData | ILeafInputData[], index?: number): void
@@ -7,6 +7,7 @@ export interface ILeafDataProxy {
7
7
  __setAttr?(name: string, newValue: IValue): boolean
8
8
  __getAttr?(name: string): IValue
9
9
  __realSetAttr?(name: string, newValue: IValue): void
10
+ emitPropertyEvent?(type: string, attrName: string, oldValue: unknown, newValue: unknown): void
10
11
  setProxyAttr?(name: string, newValue: IValue): void
11
12
  getProxyAttr?(name: string): IValue
12
13
  }
@@ -347,6 +347,7 @@ export type IKeyCodes =
347
347
  | 'NonConvert' // 日文输入:不转换
348
348
  | 'KanaMode' // 日文假名模式
349
349
  | 'Unidentified' // 未识别键
350
+ | (string & {})
350
351
 
351
352
 
352
353
  export interface IShortcutKeysCheck {
package/src/index.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export { IAppBase } from './app/IApp'
2
2
  export { ILeaferBase, ILeaferAttrData, ILeaferType, ILeaferTypeCreator, ILeaferTypeFunction, ILeaferTypeList, ILeaferConfig, ICreator, IUICreator, IZoomType, IZoomOptions } from './app/ILeafer'
3
- 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'
3
+ 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'
4
4
  export { IBranch } from './display/IBranch'
5
5
  export { IZoomView } from './display/IView'
6
6
 
@@ -31,6 +31,12 @@ export interface ILeafLayout {
31
31
  worldStrokeBounds: IBoundsData
32
32
  // worldRenderBounds: IBoundsData // use leaf.__world
33
33
 
34
+ // Box 元素专用
35
+
36
+ childrenBoxBounds?: IBoundsData
37
+ childrenStrokeBounds?: IBoundsData
38
+ childrenRenderBounds?: IBoundsData
39
+
34
40
  // state
35
41
  resized: 'inner' | 'scale' | 'local' // inner > scale > local, 设置了inner之后不能被覆盖
36
42
  waitAutoLayout: boolean
@@ -58,6 +64,10 @@ export interface ILeafLayout {
58
64
  childrenSortChanged?: boolean
59
65
  stateStyleChanged?: boolean // hoverStyle ...
60
66
 
67
+ // config changed
68
+ scrollConfigChanged?: boolean
69
+ editConfigChanged?: boolean
70
+
61
71
  // keep state
62
72
  affectScaleOrRotation: boolean
63
73
  affectRotation: boolean
package/types/index.d.ts CHANGED
@@ -884,6 +884,9 @@ interface ILeafLayout {
884
884
  worldContentBounds: IBoundsData;
885
885
  worldBoxBounds: IBoundsData;
886
886
  worldStrokeBounds: IBoundsData;
887
+ childrenBoxBounds?: IBoundsData;
888
+ childrenStrokeBounds?: IBoundsData;
889
+ childrenRenderBounds?: IBoundsData;
887
890
  resized: 'inner' | 'scale' | 'local';
888
891
  waitAutoLayout: boolean;
889
892
  matrixChanged: boolean;
@@ -899,6 +902,8 @@ interface ILeafLayout {
899
902
  hitCanvasChanged: boolean;
900
903
  childrenSortChanged?: boolean;
901
904
  stateStyleChanged?: boolean;
905
+ scrollConfigChanged?: boolean;
906
+ editConfigChanged?: boolean;
902
907
  affectScaleOrRotation: boolean;
903
908
  affectRotation: boolean;
904
909
  affectChildrenSort?: boolean;
@@ -1065,14 +1070,14 @@ interface ICanvasMethod {
1065
1070
  useWorldTransform(worldTransform?: IMatrixData): void;
1066
1071
  setWorldShadow(x: number, y: number, blur: number, color?: string): void;
1067
1072
  setWorldBlur(blur: number): void;
1068
- copyWorld(canvas: ILeaferCanvas, fromBounds?: IBoundsData, toBounds?: IBoundsData, blendMode?: string): void;
1069
- copyWorldByReset(canvas: ILeaferCanvas, from?: IBoundsData, to?: IBoundsData, blendMode?: string, onlyResetTransform?: boolean): void;
1070
- copyWorldToInner(canvas: ILeaferCanvas, fromWorld: IMatrixWithBoundsData, toInnerBounds: IBoundsData, blendMode?: string): void;
1073
+ copyWorld(canvas: ILeaferCanvas, fromBounds?: IBoundsData, toBounds?: IBoundsData, blendMode?: string, ceilPixel?: boolean): void;
1074
+ copyWorldByReset(canvas: ILeaferCanvas, from?: IBoundsData, to?: IBoundsData, blendMode?: string, onlyResetTransform?: boolean, ceilPixel?: boolean): void;
1075
+ copyWorldToInner(canvas: ILeaferCanvas, fromWorld: IMatrixWithBoundsData, toInnerBounds: IBoundsData, blendMode?: string, ceilPixel?: boolean): void;
1071
1076
  useGrayscaleAlpha(bounds: IBoundsData): void;
1072
1077
  useMask(maskCanvas: ILeaferCanvas, fromBounds?: IBoundsData, toBounds?: IBoundsData): void;
1073
1078
  useEraser(eraserCanvas: ILeaferCanvas, fromBounds?: IBoundsData, toBounds?: IBoundsData): void;
1074
- fillWorld(bounds: IBoundsData, color: string | object, blendMode?: string): void;
1075
- strokeWorld(bounds: IBoundsData, color: string | object, blendMode?: string): void;
1079
+ fillWorld(bounds: IBoundsData, color: string | object, blendMode?: string, ceilPixel?: boolean): void;
1080
+ strokeWorld(bounds: IBoundsData, color: string | object, blendMode?: string, ceilPixel?: boolean): void;
1076
1081
  clipWorld(bounds: IBoundsData, ceilPixel?: boolean): void;
1077
1082
  clipUI(ruleData: IWindingRuleData): void;
1078
1083
  clearWorld(bounds: IBoundsData, ceilPixel?: boolean): void;
@@ -1181,6 +1186,7 @@ interface ILeafDataProxy {
1181
1186
  __setAttr?(name: string, newValue: IValue): boolean;
1182
1187
  __getAttr?(name: string): IValue;
1183
1188
  __realSetAttr?(name: string, newValue: IValue): void;
1189
+ emitPropertyEvent?(type: string, attrName: string, oldValue: unknown, newValue: unknown): void;
1184
1190
  setProxyAttr?(name: string, newValue: IValue): void;
1185
1191
  getProxyAttr?(name: string): IValue;
1186
1192
  }
@@ -1423,6 +1429,7 @@ type IMaskType = 'path' | 'pixel' | 'grayscale' | 'clipping' | 'clipping-path';
1423
1429
  type IEraserType = 'path' | 'pixel';
1424
1430
  type IBlendMode = 'pass-through' | 'normal' | 'multiply' | 'screen' | 'overlay' | 'darken' | 'lighten' | 'color-dodge' | 'color-burn' | 'hard-light' | 'soft-light' | 'difference' | 'exclusion' | 'hue' | 'saturation' | 'color' | 'luminosity' | 'source-over' | 'source-in' | 'source-out' | 'source-atop' | 'destination-over' | 'destination-in' | 'destination-out' | 'destination-atop' | 'xor' | 'copy';
1425
1431
  type IEditSize = 'size' | 'font-size' | 'scale';
1432
+ type IDragBoundsType = 'auto' | 'outer' | 'inner';
1426
1433
  interface IImageCursor {
1427
1434
  url: string;
1428
1435
  x?: number;
@@ -1494,6 +1501,7 @@ interface ILeafAttrData {
1494
1501
  heightRange?: IRangeSize;
1495
1502
  draggable?: IBoolean | IAxis;
1496
1503
  dragBounds?: IBoundsData | 'parent';
1504
+ dragBoundsType?: IDragBoundsType;
1497
1505
  editable?: IBoolean;
1498
1506
  hittable?: IBoolean;
1499
1507
  hitFill?: IHitType;
@@ -1568,6 +1576,7 @@ interface ILeafComputedData {
1568
1576
  heightRange?: IRangeSize;
1569
1577
  draggable?: boolean | IAxis;
1570
1578
  dragBounds?: IBoundsData | 'parent';
1579
+ dragBoundsType?: IDragBoundsType;
1571
1580
  editable?: boolean;
1572
1581
  hittable?: boolean;
1573
1582
  hitFill?: IHitType;
@@ -1636,6 +1645,8 @@ interface ILeaf extends ILeafRender, ILeafHit, ILeafBounds, ILeafMatrix, ILeafDa
1636
1645
  __worldOpacity: number;
1637
1646
  readonly worldTransform: IMatrixWithScaleData;
1638
1647
  readonly localTransform: IMatrixData;
1648
+ __scrollWorld?: IMatrixWithBoundsScaleData;
1649
+ readonly scrollWorldTransform: IMatrixWithScaleData;
1639
1650
  readonly boxBounds: IBoundsData;
1640
1651
  readonly renderBounds: IBoundsData;
1641
1652
  readonly worldBoxBounds: IBoundsData;
@@ -1704,9 +1715,9 @@ interface ILeaf extends ILeafRender, ILeafHit, ILeafBounds, ILeafMatrix, ILeafDa
1704
1715
  __updateLocalStrokeBounds(): void;
1705
1716
  __updateLocalRenderBounds(): void;
1706
1717
  __updateContentBounds(): void;
1707
- __updateBoxBounds(secondLayout?: boolean): void;
1708
- __updateStrokeBounds(): void;
1709
- __updateRenderBounds(): void;
1718
+ __updateBoxBounds(secondLayout?: boolean, bounds?: IBoundsData): void;
1719
+ __updateStrokeBounds(bounds?: IBoundsData): void;
1720
+ __updateRenderBounds(bounds?: IBoundsData): void;
1710
1721
  __updateAutoLayout(): void;
1711
1722
  __updateFlowLayout(): void;
1712
1723
  __updateNaturalSize(): void;
@@ -1785,6 +1796,7 @@ interface ILeaf extends ILeafRender, ILeafHit, ILeafBounds, ILeafMatrix, ILeafDa
1785
1796
  __runAnimation(type: 'in' | 'out', complete?: IFunction): void;
1786
1797
  __emitLifeEvent(type: string): void;
1787
1798
  children?: ILeaf[];
1799
+ topChildren?: ILeaf[];
1788
1800
  __updateSortChildren(): void;
1789
1801
  add(child: ILeaf | ILeaf[] | ILeafInputData | ILeafInputData[], index?: number): void;
1790
1802
  remove(child?: ILeaf | number | string | IFindMethod, destroy?: boolean): void;
@@ -1924,7 +1936,7 @@ type IShortcutKeys = IShortcutStringKeys | IShortcutArrayKeys;
1924
1936
  type IShortcutStringKeys = string;
1925
1937
  type IShortcutArrayKeys = IShortcutKeyCodes[] | IShortcutKeyCodes[][];
1926
1938
  type IShortcutKeyCodes = IKeyCodes | 'A' | 'B' | 'C' | 'D' | 'E' | 'F' | 'G' | 'H' | 'I' | 'J' | 'K' | 'L' | 'M' | 'N' | 'O' | 'P' | 'Q' | 'R' | 'S' | 'T' | 'U' | 'V' | 'W' | 'X' | 'Y' | 'Z' | '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '!' | '@' | '#' | '$' | '%' | '^' | '&' | '*' | '(' | ')' | 'Esc' | 'Caps' | 'Shift' | 'Ctrl' | 'Alt' | 'Meta' | '⌘' | 'Win' | '↑' | '↓' | '←' | '→' | 'Scroll' | 'Num' | '-' | '_' | '=' | '+' | '[' | '{' | ']' | '}' | '\\' | '|' | ';' | ':' | "'" | '"' | ',' | '<' | '.' | '>' | '/' | '?' | '`' | '~';
1927
- type IKeyCodes = 'KeyA' | 'KeyB' | 'KeyC' | 'KeyD' | 'KeyE' | 'KeyF' | 'KeyG' | 'KeyH' | 'KeyI' | 'KeyJ' | 'KeyK' | 'KeyL' | 'KeyM' | 'KeyN' | 'KeyO' | 'KeyP' | 'KeyQ' | 'KeyR' | 'KeyS' | 'KeyT' | 'KeyU' | 'KeyV' | 'KeyW' | 'KeyX' | 'KeyY' | 'KeyZ' | 'Digit0' | 'Digit1' | 'Digit2' | 'Digit3' | 'Digit4' | 'Digit5' | 'Digit6' | 'Digit7' | 'Digit8' | 'Digit9' | 'F1' | 'F2' | 'F3' | 'F4' | 'F5' | 'F6' | 'F7' | 'F8' | 'F9' | 'F10' | 'F11' | 'F12' | 'F13' | 'F14' | 'F15' | 'F16' | 'F17' | 'F18' | 'F19' | 'F20' | 'F21' | 'F22' | 'F23' | 'F24' | 'Escape' | 'Tab' | 'CapsLock' | 'ShiftLeft' | 'ShiftRight' | 'ControlLeft' | 'ControlRight' | 'AltLeft' | 'AltRight' | 'MetaLeft' | 'MetaRight' | 'Enter' | 'Space' | 'Backspace' | 'Insert' | 'Delete' | 'Home' | 'End' | 'PageUp' | 'PageDown' | 'ArrowUp' | 'ArrowDown' | 'ArrowLeft' | 'ArrowRight' | 'PrintScreen' | 'Pause' | 'ScrollLock' | 'NumLock' | 'ContextMenu' | 'Minus' | 'Equal' | 'BracketLeft' | 'BracketRight' | 'Backslash' | 'IntlBackslash' | 'Semicolon' | 'Quote' | 'Comma' | 'Period' | 'Slash' | 'Backquote' | 'Numpad0' | 'Numpad1' | 'Numpad2' | 'Numpad3' | 'Numpad4' | 'Numpad5' | 'Numpad6' | 'Numpad7' | 'Numpad8' | 'Numpad9' | 'NumpadMultiply' | 'NumpadAdd' | 'NumpadSubtract' | 'NumpadDecimal' | 'NumpadDivide' | 'NumpadEnter' | 'NumpadComma' | 'NumpadParenLeft' | 'NumpadParenRight' | 'NumpadEqual' | 'BrowserBack' | 'BrowserForward' | 'BrowserRefresh' | 'BrowserStop' | 'BrowserSearch' | 'BrowserFavorites' | 'BrowserHome' | 'LaunchMail' | 'LaunchMediaPlayer' | 'LaunchCalculator' | 'MediaPlayPause' | 'MediaStop' | 'MediaTrackNext' | 'MediaTrackPrevious' | 'MediaVolumeMute' | 'MediaVolumeUp' | 'MediaVolumeDown' | 'AudioVolumeMute' | 'AudioVolumeUp' | 'AudioVolumeDown' | 'Select' | 'LaunchApp1' | 'LaunchApp2' | 'Help' | 'Sleep' | 'WakeUp' | 'Lang1' | 'Lang2' | 'Power' | 'Fn' | 'Eject' | 'Convert' | 'NonConvert' | 'KanaMode' | 'Unidentified';
1939
+ type IKeyCodes = 'KeyA' | 'KeyB' | 'KeyC' | 'KeyD' | 'KeyE' | 'KeyF' | 'KeyG' | 'KeyH' | 'KeyI' | 'KeyJ' | 'KeyK' | 'KeyL' | 'KeyM' | 'KeyN' | 'KeyO' | 'KeyP' | 'KeyQ' | 'KeyR' | 'KeyS' | 'KeyT' | 'KeyU' | 'KeyV' | 'KeyW' | 'KeyX' | 'KeyY' | 'KeyZ' | 'Digit0' | 'Digit1' | 'Digit2' | 'Digit3' | 'Digit4' | 'Digit5' | 'Digit6' | 'Digit7' | 'Digit8' | 'Digit9' | 'F1' | 'F2' | 'F3' | 'F4' | 'F5' | 'F6' | 'F7' | 'F8' | 'F9' | 'F10' | 'F11' | 'F12' | 'F13' | 'F14' | 'F15' | 'F16' | 'F17' | 'F18' | 'F19' | 'F20' | 'F21' | 'F22' | 'F23' | 'F24' | 'Escape' | 'Tab' | 'CapsLock' | 'ShiftLeft' | 'ShiftRight' | 'ControlLeft' | 'ControlRight' | 'AltLeft' | 'AltRight' | 'MetaLeft' | 'MetaRight' | 'Enter' | 'Space' | 'Backspace' | 'Insert' | 'Delete' | 'Home' | 'End' | 'PageUp' | 'PageDown' | 'ArrowUp' | 'ArrowDown' | 'ArrowLeft' | 'ArrowRight' | 'PrintScreen' | 'Pause' | 'ScrollLock' | 'NumLock' | 'ContextMenu' | 'Minus' | 'Equal' | 'BracketLeft' | 'BracketRight' | 'Backslash' | 'IntlBackslash' | 'Semicolon' | 'Quote' | 'Comma' | 'Period' | 'Slash' | 'Backquote' | 'Numpad0' | 'Numpad1' | 'Numpad2' | 'Numpad3' | 'Numpad4' | 'Numpad5' | 'Numpad6' | 'Numpad7' | 'Numpad8' | 'Numpad9' | 'NumpadMultiply' | 'NumpadAdd' | 'NumpadSubtract' | 'NumpadDecimal' | 'NumpadDivide' | 'NumpadEnter' | 'NumpadComma' | 'NumpadParenLeft' | 'NumpadParenRight' | 'NumpadEqual' | 'BrowserBack' | 'BrowserForward' | 'BrowserRefresh' | 'BrowserStop' | 'BrowserSearch' | 'BrowserFavorites' | 'BrowserHome' | 'LaunchMail' | 'LaunchMediaPlayer' | 'LaunchCalculator' | 'MediaPlayPause' | 'MediaStop' | 'MediaTrackNext' | 'MediaTrackPrevious' | 'MediaVolumeMute' | 'MediaVolumeUp' | 'MediaVolumeDown' | 'AudioVolumeMute' | 'AudioVolumeUp' | 'AudioVolumeDown' | 'Select' | 'LaunchApp1' | 'LaunchApp2' | 'Help' | 'Sleep' | 'WakeUp' | 'Lang1' | 'Lang2' | 'Power' | 'Fn' | 'Eject' | 'Convert' | 'NonConvert' | 'KanaMode' | 'Unidentified' | (string & {});
1928
1940
  interface IShortcutKeysCheck {
1929
1941
  (e: IUIEvent): boolean;
1930
1942
  }
@@ -2119,7 +2131,7 @@ interface ILeaferAttrData {
2119
2131
  waitViewReady(item: IFunction, bind?: IObject): void;
2120
2132
  waitViewCompleted(item: IFunction, bind?: IObject): void;
2121
2133
  zoom(zoomType: IZoomType, optionsOrPadding?: IZoomOptions | IFourNumber, scroll?: 'x' | 'y' | boolean, transition?: ITransition): IBoundsData;
2122
- getValidMove(moveX: number, moveY: number): IPointData;
2134
+ getValidMove(moveX: number, moveY: number, checkLimit?: boolean): IPointData;
2123
2135
  getValidScale(changeScale: number): number;
2124
2136
  getWorldPointByClient(clientPoint: IClientPointData, updateClient?: boolean): IPointData;
2125
2137
  getPagePointByClient(clientPoint: IClientPointData, updateClient?: boolean): IPointData;
@@ -2366,4 +2378,4 @@ interface ITransformer {
2366
2378
  destroy(): void;
2367
2379
  }
2368
2380
 
2369
- export type { ACommandData, ArcCommandData, ArcToCommandData, BezierCurveToCommandObject, CCommandData, CanvasPathCommand, EllipseCommandData, HCommandData, IAlign, IAnimateEasing, IAnimateEasingFunction, IAnimateEasingName, IAnimateEnding, IAnimateEvent, IAnimateEventFunction, IAnimateEvents, IAnimateOptions, IAnswer, IAppBase, IAround, IAttrDecorator, IAutoBounds, IAutoBoundsData, IAutoBoxData, IAutoSize, IAxis, IAxisAlign, IAxisReverse, IBaseLineAlign, IBlendMode, IBlob, IBlobFunction, IBoolean, IBooleanMap, IBounds, IBoundsData, IBoundsDataFn, IBoundsEvent, IBoundsType, IBranch, IBranchRender, IBranchRenderModule, ICachedLeaf, ICanvasAttr, ICanvasCacheOptions, ICanvasContext2D, ICanvasContext2DSettings, ICanvasManager, ICanvasPattern, ICanvasStrokeOptions, ICanvasType, IChildEvent, IClientPointData, IConstraint, IConstraintType, IControl, ICreator, ICubicBezierEasing, ICursorConfig, ICursorRotate, ICursorRotateMap, ICursorType, ICursorTypeMap, ICustomEasingFunction, IDataProcessor, IDataTypeHandle, IDirection, IDirection4, IDragEvent, IDropEvent, IEditSize, IEraserType, IEvent, IEventListener, IEventListenerId, IEventListenerItem, IEventListenerMap, IEventListenerOptions, IEventOption, IEventParams, IEventParamsMap, IEventTarget, IEventer, IExportFileType, IExportImageType, IExportOnCanvasFunction, IExportOptions, IExportResult, IExportResultFunction, IFilter, IFindCondition, IFindMethod, IFinder, IFlowAlign, IFlowAxisAlign, IFlowBoxType, IFlowType, IFlowWrap, IFourNumber, IFromToData, IFunction, IFunctionMap, IGap, IHitCanvas, IHitCanvasConfig, IHitCanvasManager, IHitType, IImageCursor, IImageEvent, IImageManager, IInteraction, IInteractionCanvas, IInteractionConfig, IJSONOptions, IKeepTouchData, IKeyCodes, IKeyEvent, ILayoutAttr, ILayoutBlockData, ILayoutBoundsData, ILayoutChangedData, ILayoutData, ILayoutEvent, ILayouter, ILayouterConfig, ILeaf, ILeafArrayMap, ILeafAttrData, ILeafAttrDescriptor, ILeafAttrDescriptorFn, ILeafBounds, ILeafBoundsModule, ILeafComputedData, ILeafData, ILeafDataOptions, ILeafDataProxy, ILeafDataProxyModule, ILeafEventer, ILeafEventerModule, ILeafHit, ILeafHitModule, ILeafInputData, ILeafLayout, ILeafLevelList, ILeafList, ILeafListItemCallback, ILeafMap, ILeafMatrix, ILeafMatrixModule, ILeafRender, ILeafRenderModule, ILeaferAttrData, ILeaferBase, ILeaferCanvas, ILeaferCanvasConfig, ILeaferCanvasView, ILeaferConfig, ILeaferEvent, ILeaferImage, ILeaferImageCacheCanvas, ILeaferImageConfig, ILeaferImageOnError, ILeaferImageOnLoaded, ILeaferImagePatternPaint, ILeaferType, ILeaferTypeCreator, ILeaferTypeFunction, ILeaferTypeList, ILocationType, IMaskType, IMatrix, IMatrixData, IMatrixWithBoundsData, IMatrixWithBoundsScaleData, IMatrixWithLayoutData, IMatrixWithOptionHalfData, IMatrixWithOptionScaleData, IMatrixWithScaleData, IMiniapp, IMiniappSelect, IMiniappSizeView, IMotionPathData, IMoveConfig, IMoveEvent, IMultiTouchConfig, IMultiTouchData, INumber, INumberFunction, INumberMap, IObject, IObjectFunction, IOffsetBoundsData, IOptionSizeData, IPartLayoutConfig, IPath2D, IPathCommandData, IPathCommandObject, IPathCreator, IPathDrawer, IPathString, IPercentData, IPickBottom, IPickOptions, IPickResult, IPicker, IPlatform, IPlugin, IPoint, IPointData, IPointDataFunction, IPointDataMap, IPointGap, IPointerConfig, IPointerEvent, IProgressData, IProgressFunction, IPropertyEvent, IRadiusPointData, IRangeSize, IRenderEvent, IRenderOptions, IRenderer, IRendererConfig, IResizeEvent, IResizeEventListener, IResource, IRotateEvent, IRotationPointData, IScaleData, IScaleFixed, IScaleRotationData, IScreenSizeData, IScrollPointData, ISelector, ISelectorConfig, ISelectorProxy, IShortcutKeyCodes, IShortcutKeys, IShortcutKeysCheck, ISide, ISize, ISizeData, ISkewData, ISkiaCanvas, ISkiaCanvasExportConfig, ISkiaNAPICanvas, IStateStyleType, IStepsEasing, IString, IStringFunction, IStringMap, ISwipeEvent, ITaskItem, ITaskOptions, ITaskProcessor, ITaskProcessorConfig, ITextMetrics, ITimer, ITouchConfig, ITransformer, ITransition, ITwoPointBoundsData, IUICreator, IUIEvent, IUnitData, IUnitPointData, IUpdateEvent, IValue, IValueFunction, IWatchEvent, IWatchEventData, IWatcher, IWatcherConfig, IWheelConfig, IWheelEvent, IWindingRule, IWindingRuleData, IZoomConfig, IZoomEvent, IZoomOptions, IZoomType, IZoomView, InnerId, LCommandData, LineToCommandObject, MCommandData, MoveToCommandObject, PointerType, QCommandData, QuadraticCurveToCommandObject, RectCommandData, RoundRectCommandData, SCommandData, TCommandData, VCommandData, ZCommandData };
2381
+ export type { ACommandData, ArcCommandData, ArcToCommandData, BezierCurveToCommandObject, CCommandData, CanvasPathCommand, EllipseCommandData, HCommandData, IAlign, IAnimateEasing, IAnimateEasingFunction, IAnimateEasingName, IAnimateEnding, IAnimateEvent, IAnimateEventFunction, IAnimateEvents, IAnimateOptions, IAnswer, IAppBase, IAround, IAttrDecorator, IAutoBounds, IAutoBoundsData, IAutoBoxData, IAutoSize, IAxis, IAxisAlign, IAxisReverse, IBaseLineAlign, IBlendMode, IBlob, IBlobFunction, IBoolean, IBooleanMap, IBounds, IBoundsData, IBoundsDataFn, IBoundsEvent, IBoundsType, IBranch, IBranchRender, IBranchRenderModule, ICachedLeaf, ICanvasAttr, ICanvasCacheOptions, ICanvasContext2D, ICanvasContext2DSettings, ICanvasManager, ICanvasPattern, ICanvasStrokeOptions, ICanvasType, IChildEvent, IClientPointData, IConstraint, IConstraintType, IControl, ICreator, ICubicBezierEasing, ICursorConfig, ICursorRotate, ICursorRotateMap, ICursorType, ICursorTypeMap, ICustomEasingFunction, IDataProcessor, IDataTypeHandle, IDirection, IDirection4, IDragBoundsType, IDragEvent, IDropEvent, IEditSize, IEraserType, IEvent, IEventListener, IEventListenerId, IEventListenerItem, IEventListenerMap, IEventListenerOptions, IEventOption, IEventParams, IEventParamsMap, IEventTarget, IEventer, IExportFileType, IExportImageType, IExportOnCanvasFunction, IExportOptions, IExportResult, IExportResultFunction, IFilter, IFindCondition, IFindMethod, IFinder, IFlowAlign, IFlowAxisAlign, IFlowBoxType, IFlowType, IFlowWrap, IFourNumber, IFromToData, IFunction, IFunctionMap, IGap, IHitCanvas, IHitCanvasConfig, IHitCanvasManager, IHitType, IImageCursor, IImageEvent, IImageManager, IInteraction, IInteractionCanvas, IInteractionConfig, IJSONOptions, IKeepTouchData, IKeyCodes, IKeyEvent, ILayoutAttr, ILayoutBlockData, ILayoutBoundsData, ILayoutChangedData, ILayoutData, ILayoutEvent, ILayouter, ILayouterConfig, ILeaf, ILeafArrayMap, ILeafAttrData, ILeafAttrDescriptor, ILeafAttrDescriptorFn, ILeafBounds, ILeafBoundsModule, ILeafComputedData, ILeafData, ILeafDataOptions, ILeafDataProxy, ILeafDataProxyModule, ILeafEventer, ILeafEventerModule, ILeafHit, ILeafHitModule, ILeafInputData, ILeafLayout, ILeafLevelList, ILeafList, ILeafListItemCallback, ILeafMap, ILeafMatrix, ILeafMatrixModule, ILeafRender, ILeafRenderModule, ILeaferAttrData, ILeaferBase, ILeaferCanvas, ILeaferCanvasConfig, ILeaferCanvasView, ILeaferConfig, ILeaferEvent, ILeaferImage, ILeaferImageCacheCanvas, ILeaferImageConfig, ILeaferImageOnError, ILeaferImageOnLoaded, ILeaferImagePatternPaint, ILeaferType, ILeaferTypeCreator, ILeaferTypeFunction, ILeaferTypeList, ILocationType, IMaskType, IMatrix, IMatrixData, IMatrixWithBoundsData, IMatrixWithBoundsScaleData, IMatrixWithLayoutData, IMatrixWithOptionHalfData, IMatrixWithOptionScaleData, IMatrixWithScaleData, IMiniapp, IMiniappSelect, IMiniappSizeView, IMotionPathData, IMoveConfig, IMoveEvent, IMultiTouchConfig, IMultiTouchData, INumber, INumberFunction, INumberMap, IObject, IObjectFunction, IOffsetBoundsData, IOptionSizeData, IPartLayoutConfig, IPath2D, IPathCommandData, IPathCommandObject, IPathCreator, IPathDrawer, IPathString, IPercentData, IPickBottom, IPickOptions, IPickResult, IPicker, IPlatform, IPlugin, IPoint, IPointData, IPointDataFunction, IPointDataMap, IPointGap, IPointerConfig, IPointerEvent, IProgressData, IProgressFunction, IPropertyEvent, IRadiusPointData, IRangeSize, IRenderEvent, IRenderOptions, IRenderer, IRendererConfig, IResizeEvent, IResizeEventListener, IResource, IRotateEvent, IRotationPointData, IScaleData, IScaleFixed, IScaleRotationData, IScreenSizeData, IScrollPointData, ISelector, ISelectorConfig, ISelectorProxy, IShortcutKeyCodes, IShortcutKeys, IShortcutKeysCheck, ISide, ISize, ISizeData, ISkewData, ISkiaCanvas, ISkiaCanvasExportConfig, ISkiaNAPICanvas, IStateStyleType, IStepsEasing, IString, IStringFunction, IStringMap, ISwipeEvent, ITaskItem, ITaskOptions, ITaskProcessor, ITaskProcessorConfig, ITextMetrics, ITimer, ITouchConfig, ITransformer, ITransition, ITwoPointBoundsData, IUICreator, IUIEvent, IUnitData, IUnitPointData, IUpdateEvent, IValue, IValueFunction, IWatchEvent, IWatchEventData, IWatcher, IWatcherConfig, IWheelConfig, IWheelEvent, IWindingRule, IWindingRuleData, IZoomConfig, IZoomEvent, IZoomOptions, IZoomType, IZoomView, InnerId, LCommandData, LineToCommandObject, MCommandData, MoveToCommandObject, PointerType, QCommandData, QuadraticCurveToCommandObject, RectCommandData, RoundRectCommandData, SCommandData, TCommandData, VCommandData, ZCommandData };