@leafer/interface 1.0.0-rc.7 → 1.0.0-rc.9

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.0.0-rc.7",
3
+ "version": "1.0.0-rc.9",
4
4
  "description": "@leafer/interface",
5
5
  "author": "Chao (Leafer) Wan",
6
6
  "license": "MIT",
@@ -29,6 +29,7 @@ export interface ILeaferAttrData {
29
29
  created: boolean
30
30
  ready: boolean
31
31
  viewReady: boolean
32
+ imageReady: boolean
32
33
  viewCompleted: boolean
33
34
  layoutLocked: boolean
34
35
 
@@ -112,6 +112,14 @@ export interface IImageCursor {
112
112
  }
113
113
 
114
114
  export type IAround =
115
+ | 'topLeft'
116
+ | 'top'
117
+ | 'topRight'
118
+ | 'right'
119
+ | 'bottomRight'
120
+ | 'bottom'
121
+ | 'bottomLeft'
122
+ | 'left'
115
123
  | 'center'
116
124
  | IPointData
117
125
 
package/types/index.d.ts CHANGED
@@ -1151,7 +1151,7 @@ interface IImageCursor {
1151
1151
  x?: number;
1152
1152
  y?: number;
1153
1153
  }
1154
- type IAround = 'center' | IPointData;
1154
+ type IAround = 'topLeft' | 'top' | 'topRight' | 'right' | 'bottomRight' | 'bottom' | 'bottomLeft' | 'left' | 'center' | IPointData;
1155
1155
  type ICursorType = IImageCursor | '' | 'auto' | 'default' | 'none' | 'context-menu' | 'help' | 'pointer' | 'progress' | 'wait' | 'cell' | 'crosshair' | 'text' | 'vertical-text' | 'alias' | 'copy' | 'move' | 'no-drop' | 'not-allowed' | 'grab' | 'grabbing' | 'e-resize' | 'n-resize' | 'ne-resize' | 'nw-resize' | 's-resize' | 'se-resize' | 'sw-resize' | 'w-resize' | 'ew-resize' | 'ns-resize' | 'nesw-resize' | 'nwse-resize' | 'col-resize' | 'row-resize' | 'all-scroll' | 'zoom -in' | 'zoom-out';
1156
1156
  interface ICursorTypeMap {
1157
1157
  [name: string]: ICursorType | ICursorType[];
@@ -1556,6 +1556,7 @@ interface ILeaferAttrData {
1556
1556
  created: boolean;
1557
1557
  ready: boolean;
1558
1558
  viewReady: boolean;
1559
+ imageReady: boolean;
1559
1560
  viewCompleted: boolean;
1560
1561
  layoutLocked: boolean;
1561
1562
  pixelRatio: number;