@leafer-ui/interface 1.0.0-rc.27 → 1.0.0-rc.28
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 +2 -2
- package/src/editor/IEditor.ts +2 -1
- package/types/index.d.ts +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leafer-ui/interface",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.28",
|
|
4
4
|
"description": "@leafer-ui/interface",
|
|
5
5
|
"author": "Chao (Leafer) Wan",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,6 +22,6 @@
|
|
|
22
22
|
"leaferjs"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@leafer/interface": "1.0.0-rc.
|
|
25
|
+
"@leafer/interface": "1.0.0-rc.28"
|
|
26
26
|
}
|
|
27
27
|
}
|
package/src/editor/IEditor.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { IGroup, IUI, IBox, IRectInputData, ISelectorProxy, IEditSize, ICursorTy
|
|
|
2
2
|
|
|
3
3
|
export interface IEditorBase extends IGroup, ISelectorProxy {
|
|
4
4
|
config: IEditorConfig
|
|
5
|
-
mergeConfig: IEditorConfig // 实际使用,合并了选中元素上的editConfig
|
|
5
|
+
readonly mergeConfig: IEditorConfig // 实际使用,合并了选中元素上的editConfig
|
|
6
6
|
|
|
7
7
|
hoverTarget: IUI
|
|
8
8
|
target: IUI | IUI[]
|
|
@@ -37,6 +37,7 @@ export interface IEditorBase extends IGroup, ISelectorProxy {
|
|
|
37
37
|
removeItem(item: IUI): void
|
|
38
38
|
|
|
39
39
|
update(): void
|
|
40
|
+
updateEditBox(): void
|
|
40
41
|
updateEditTool(): void
|
|
41
42
|
|
|
42
43
|
getEditSize(ui: ILeaf): IEditSize
|
package/types/index.d.ts
CHANGED
|
@@ -303,7 +303,7 @@ interface IEffectComputedData {
|
|
|
303
303
|
|
|
304
304
|
interface IEditorBase extends IGroup$1, ISelectorProxy {
|
|
305
305
|
config: IEditorConfig;
|
|
306
|
-
mergeConfig: IEditorConfig;
|
|
306
|
+
readonly mergeConfig: IEditorConfig;
|
|
307
307
|
hoverTarget: IUI$1;
|
|
308
308
|
target: IUI$1 | IUI$1[];
|
|
309
309
|
readonly list: IUI$1[];
|
|
@@ -328,6 +328,7 @@ interface IEditorBase extends IGroup$1, ISelectorProxy {
|
|
|
328
328
|
addItem(item: IUI$1): void;
|
|
329
329
|
removeItem(item: IUI$1): void;
|
|
330
330
|
update(): void;
|
|
331
|
+
updateEditBox(): void;
|
|
331
332
|
updateEditTool(): void;
|
|
332
333
|
getEditSize(ui: ILeaf): IEditSize;
|
|
333
334
|
onMove(e: IDragEvent): void;
|