@leafer-in/interface 1.0.0-rc.16 → 1.0.0-rc.18

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-in/interface",
3
- "version": "1.0.0-rc.16",
3
+ "version": "1.0.0-rc.18",
4
4
  "description": "@leafer-in/interface",
5
5
  "author": "Chao (Leafer) Wan",
6
6
  "license": "MIT",
@@ -25,7 +25,7 @@
25
25
  "leaferjs"
26
26
  ],
27
27
  "dependencies": {
28
- "@leafer-ui/interface": "1.0.0-rc.16",
29
- "@leafer/interface": "1.0.0-rc.16"
28
+ "@leafer-ui/interface": "1.0.0-rc.18",
29
+ "@leafer/interface": "1.0.0-rc.18"
30
30
  }
31
31
  }
@@ -1,5 +1,5 @@
1
1
  import { IGroup, IRect, IBoundsData, IKeyEvent } from '@leafer-ui/interface'
2
- import { IEditor } from '@leafer-in/interface'
2
+ import { IEditor } from './IEditor'
3
3
  import { IEditPoint } from './IEditPoint'
4
4
 
5
5
  export interface IEditBox extends IGroup {
package/src/index.ts CHANGED
@@ -10,4 +10,8 @@ export { IEditPoint, IEditPointType } from './editor/IEditPoint'
10
10
 
11
11
  // html
12
12
 
13
- export { IHTMLTextData, IHTMLTextInputData } from './html/IHTMLTextData'
13
+ export { IHTMLTextData, IHTMLTextInputData } from './html/IHTMLTextData'
14
+
15
+ // scroll
16
+
17
+ export { IScrollBar, IScrollBarConfig, IScrollBarTheme } from './scroll/IScrollBar'
@@ -0,0 +1,14 @@
1
+ import { IBoxInputData, IFourNumber, IGroup } from '@leafer-ui/interface'
2
+
3
+ export interface IScrollBarConfig {
4
+ padding?: IFourNumber
5
+ theme?: IScrollBarTheme
6
+ }
7
+
8
+ export type IScrollBarTheme = 'light' | 'dark' | IBoxInputData
9
+
10
+ export interface IScrollBar extends IGroup {
11
+ config: IScrollBarConfig
12
+ changeTheme(theme: IScrollBarTheme): void
13
+ update(check: boolean): void
14
+ }
package/types/index.d.ts CHANGED
@@ -1,6 +1,5 @@
1
- import { IBox, IGroup, IRect, IBoundsData, IKeyEvent, IUI, IRectInputData, IBounds, IEditorBase, ILeafList, IEventListenerId, IEvent, IPointData, IMatrixData, IAround, IDragEvent, IImageData, IImageInputData } from '@leafer-ui/interface';
1
+ import { IBox, IGroup, IRect, IBoundsData, IKeyEvent, IUI, IRectInputData, IBounds, IEditorBase, ILeafList, IEventListenerId, IEvent, IPointData, IMatrixData, IAround, IDragEvent, IImageData, IImageInputData, IFourNumber, IBoxInputData } from '@leafer-ui/interface';
2
2
  export * from '@leafer-ui/interface';
3
- import { IEditor as IEditor$1 } from '@leafer-in/interface';
4
3
 
5
4
  interface IEditPoint extends IBox {
6
5
  direction: IDirection8;
@@ -9,7 +8,7 @@ interface IEditPoint extends IBox {
9
8
  type IEditPointType = 'rotate' | 'resize';
10
9
 
11
10
  interface IEditBox extends IGroup {
12
- editor: IEditor$1;
11
+ editor: IEditor;
13
12
  dragging: boolean;
14
13
  moving: boolean;
15
14
  circle: IEditPoint;
@@ -117,4 +116,15 @@ interface IHTMLTextData extends IHTMLTextAttrData, IImageData {
117
116
  interface IHTMLTextInputData extends IHTMLTextAttrData, IImageInputData {
118
117
  }
119
118
 
120
- export { IDirection8, type IEditBox, type IEditPoint, type IEditPointType, type IEditSelect, type IEditTool, type IEditor, type IEditorEvent, type IEditorMoveEvent, type IEditorRotateEvent, type IEditorScaleEvent, type IEditorSkewEvent, type IHTMLTextData, type IHTMLTextInputData, type ISelectArea, type IStroker };
119
+ interface IScrollBarConfig {
120
+ padding?: IFourNumber;
121
+ theme?: IScrollBarTheme;
122
+ }
123
+ type IScrollBarTheme = 'light' | 'dark' | IBoxInputData;
124
+ interface IScrollBar extends IGroup {
125
+ config: IScrollBarConfig;
126
+ changeTheme(theme: IScrollBarTheme): void;
127
+ update(check: boolean): void;
128
+ }
129
+
130
+ export { IDirection8, type IEditBox, type IEditPoint, type IEditPointType, type IEditSelect, type IEditTool, type IEditor, type IEditorEvent, type IEditorMoveEvent, type IEditorRotateEvent, type IEditorScaleEvent, type IEditorSkewEvent, type IHTMLTextData, type IHTMLTextInputData, type IScrollBar, type IScrollBarConfig, type IScrollBarTheme, type ISelectArea, type IStroker };