@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 +1 -1
- package/src/canvas/ILeaferCanvas.ts +1 -1
- package/src/display/ILeaf.ts +1 -1
- package/types/index.d.ts +2 -2
package/package.json
CHANGED
|
@@ -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
|
package/src/display/ILeaf.ts
CHANGED
|
@@ -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(
|
|
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(
|
|
1584
|
+
forceRender(bounds?: IBoundsData, sync?: boolean): void;
|
|
1585
1585
|
__updateWorldMatrix(): void;
|
|
1586
1586
|
__updateLocalMatrix(): void;
|
|
1587
1587
|
__updateWorldBounds(): void;
|