@leafer/interface 1.2.0 → 1.2.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.2.0",
3
+ "version": "1.2.2",
4
4
  "description": "@leafer/interface",
5
5
  "author": "Chao (Leafer) Wan",
6
6
  "license": "MIT",
@@ -191,7 +191,7 @@ export interface ILeaferCanvas extends ICanvasAttr, ICanvasMethod, IPathDrawer {
191
191
  startAutoLayout(autoBounds: IAutoBounds, listener: IResizeEventListener): void
192
192
  stopAutoLayout(): void
193
193
 
194
- resize(size: IScreenSizeData): void
194
+ resize(size: IScreenSizeData, safeResize?: boolean): void
195
195
  updateViewSize(): void
196
196
  updateClientBounds(): void
197
197
  getClientBounds(update?: boolean): IBoundsData
@@ -547,7 +547,7 @@ export interface ILeaf extends ILeafRender, ILeafHit, ILeafBounds, ILeafMatrix,
547
547
  updateState(): void
548
548
  updateLayout(): void
549
549
  forceUpdate(attrName?: string): void
550
- forceRender(_bounds?: IBoundsData): void
550
+ forceRender(bounds?: IBoundsData, sync?: boolean): void
551
551
 
552
552
  // ILeafMatrix ->
553
553
  __updateWorldMatrix(): void
package/types/index.d.ts CHANGED
@@ -1080,7 +1080,7 @@ interface ILeaferCanvas extends ICanvasAttr, ICanvasMethod, IPathDrawer {
1080
1080
  saveAs(filename: string, quality?: number): Promise<boolean>;
1081
1081
  startAutoLayout(autoBounds: IAutoBounds, listener: IResizeEventListener): void;
1082
1082
  stopAutoLayout(): void;
1083
- resize(size: IScreenSizeData): void;
1083
+ resize(size: IScreenSizeData, safeResize?: boolean): void;
1084
1084
  updateViewSize(): void;
1085
1085
  updateClientBounds(): void;
1086
1086
  getClientBounds(update?: boolean): IBoundsData;
@@ -1581,7 +1581,7 @@ interface ILeaf extends ILeafRender, ILeafHit, ILeafBounds, ILeafMatrix, ILeafDa
1581
1581
  updateState(): void;
1582
1582
  updateLayout(): void;
1583
1583
  forceUpdate(attrName?: string): void;
1584
- forceRender(_bounds?: IBoundsData): void;
1584
+ forceRender(bounds?: IBoundsData, sync?: boolean): void;
1585
1585
  __updateWorldMatrix(): void;
1586
1586
  __updateLocalMatrix(): void;
1587
1587
  __updateWorldBounds(): void;