@leafer-ui/interface 1.1.0 → 1.1.1

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-ui/interface",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
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.1.0"
25
+ "@leafer/interface": "1.1.1"
26
26
  }
27
27
  }
@@ -1,4 +1,4 @@
1
- import { IControl, ILeaferAttrData, ILeaferConfig, ILeaferType } from '@leafer/interface'
1
+ import { IControl, ILeaferAttrData, ILeaferType } from '@leafer/interface'
2
2
  import { IApp } from './IApp'
3
3
  import { IGroup } from '../IUI'
4
4
  import { IEditorBase } from '../editor/IEditor'
@@ -6,6 +6,7 @@ import { IEditorBase } from '../editor/IEditor'
6
6
  export interface ILeafer extends IGroup, ILeaferAttrData, IControl {
7
7
  readonly isApp: boolean
8
8
  readonly app: ILeafer
9
+ parentApp?: IApp
9
10
  parent?: IApp
10
11
  zoomLayer: IGroup
11
12
  editor: IEditorBase
@@ -14,8 +15,6 @@ export interface ILeafer extends IGroup, ILeaferAttrData, IControl {
14
15
  tree?: ILeafer
15
16
  sky?: ILeafer
16
17
 
17
- userConfig?: ILeaferConfig
18
-
19
18
  onInit(): void
20
19
  initType(type: ILeaferType): void
21
20
  destroy(sync?: boolean): void
package/types/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { IBlendMode, IAlign, IUnitPointData, IExportFileType, IFourNumber, IPointData, ISizeData, IPathCommandData, IWindingRule, IObject, IMatrixData, ILeaferImage, ITaskItem, IBoolean, INumber, IString, IUnitData, IEventer, IEventMap, IPercentData, IBoundsData as IBoundsData$1, IPathCreator, ILeaferCanvas, ICanvasContext2D, ICanvasContext2DSettings, IRenderOptions, IPickOptions, IPickResult, ILeaf as ILeaf$1, IFindCondition, IJSONOptions, IValue, IPathString, IPathDrawer, IExportOptions, IExportResult, IAnswer, ILeafData, ILeafComputedData, ILeafInputData, ILeaferAttrData, IControl, ILeaferConfig, ILeaferType, ILeafRender, ILeafBounds, ILeafHit, ICachedLeaf, IBooleanMap, IAround } from '@leafer/interface';
1
+ import { IBlendMode, IAlign, IUnitPointData, IExportFileType, IFourNumber, IPointData, ISizeData, IPathCommandData, IWindingRule, IObject, IMatrixData, ILeaferImage, ITaskItem, IBoolean, INumber, IString, IUnitData, IEventer, IEventMap, IPercentData, IBoundsData as IBoundsData$1, IPathCreator, ILeaferCanvas, ICanvasContext2D, ICanvasContext2DSettings, IRenderOptions, IPickOptions, IPickResult, ILeaf as ILeaf$1, IFindCondition, IJSONOptions, IValue, IPathString, IPathDrawer, IExportOptions, IExportResult, IAnswer, ILeafData, ILeafComputedData, ILeafInputData, ILeaferAttrData, IControl, ILeaferType, ILeaferConfig, ILeafRender, ILeafBounds, ILeafHit, ICachedLeaf, IBooleanMap, IAround } from '@leafer/interface';
2
2
  export * from '@leafer/interface';
3
3
  import { IGroup as IGroup$1, ISelectorProxy, IUI as IUI$1, ILeafList, IObject as IObject$1, ILeaf, IEditSize, IDragEvent, IZoomEvent, IRotateEvent, IGroupInputData as IGroupInputData$1, IStroke as IStroke$1, IFill as IFill$1, IBoxInputData as IBoxInputData$1, IRectInputData as IRectInputData$1, IColorString as IColorString$1, IDirection4, ICursorType, IImageCursor, IAlign as IAlign$1, IUnitPointData as IUnitPointData$1, IUIInputData as IUIInputData$1, IBox as IBox$1, IRect as IRect$1, IBoundsData, IKeyEvent, IStateName as IStateName$1, IString as IString$1, IBoolean as IBoolean$1, IStateStyle as IStateStyle$1 } from '@leafer-ui/interface';
4
4
 
@@ -923,13 +923,13 @@ interface IUIJSONData extends IUIInputData {
923
923
  interface ILeafer extends IGroup, ILeaferAttrData, IControl {
924
924
  readonly isApp: boolean;
925
925
  readonly app: ILeafer;
926
+ parentApp?: IApp;
926
927
  parent?: IApp;
927
928
  zoomLayer: IGroup;
928
929
  editor: IEditorBase;
929
930
  ground?: ILeafer;
930
931
  tree?: ILeafer;
931
932
  sky?: ILeafer;
932
- userConfig?: ILeaferConfig;
933
933
  onInit(): void;
934
934
  initType(type: ILeaferType): void;
935
935
  destroy(sync?: boolean): void;