@leafer/canvas 1.0.0-rc.23 → 1.0.0-rc.25
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 +9 -9
- package/src/LeaferCanvasBase.ts +4 -0
- package/types/index.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leafer/canvas",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.25",
|
|
4
4
|
"description": "@leafer/canvas",
|
|
5
5
|
"author": "Chao (Leafer) Wan",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,15 +22,15 @@
|
|
|
22
22
|
"leaferjs"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@leafer/file": "1.0.0-rc.
|
|
26
|
-
"@leafer/list": "1.0.0-rc.
|
|
27
|
-
"@leafer/math": "1.0.0-rc.
|
|
28
|
-
"@leafer/data": "1.0.0-rc.
|
|
29
|
-
"@leafer/path": "1.0.0-rc.
|
|
30
|
-
"@leafer/debug": "1.0.0-rc.
|
|
31
|
-
"@leafer/platform": "1.0.0-rc.
|
|
25
|
+
"@leafer/file": "1.0.0-rc.25",
|
|
26
|
+
"@leafer/list": "1.0.0-rc.25",
|
|
27
|
+
"@leafer/math": "1.0.0-rc.25",
|
|
28
|
+
"@leafer/data": "1.0.0-rc.25",
|
|
29
|
+
"@leafer/path": "1.0.0-rc.25",
|
|
30
|
+
"@leafer/debug": "1.0.0-rc.25",
|
|
31
|
+
"@leafer/platform": "1.0.0-rc.25"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@leafer/interface": "1.0.0-rc.
|
|
34
|
+
"@leafer/interface": "1.0.0-rc.25"
|
|
35
35
|
}
|
|
36
36
|
}
|
package/src/LeaferCanvasBase.ts
CHANGED
|
@@ -116,6 +116,10 @@ export class LeaferCanvasBase extends Canvas implements ILeaferCanvas {
|
|
|
116
116
|
|
|
117
117
|
public updateViewSize(): void { }
|
|
118
118
|
public updateClientBounds(): void { }
|
|
119
|
+
public getClientBounds(update?: boolean): IBoundsData {
|
|
120
|
+
if (update) this.updateClientBounds()
|
|
121
|
+
return this.clientBounds || this.bounds
|
|
122
|
+
}
|
|
119
123
|
|
|
120
124
|
public startAutoLayout(_autoBounds: IAutoBounds, _listener: IResizeEventListener): void { }
|
|
121
125
|
public stopAutoLayout(): void { }
|
package/types/index.d.ts
CHANGED
|
@@ -112,6 +112,7 @@ declare class LeaferCanvasBase extends Canvas implements ILeaferCanvas {
|
|
|
112
112
|
resize(size: IScreenSizeData): void;
|
|
113
113
|
updateViewSize(): void;
|
|
114
114
|
updateClientBounds(): void;
|
|
115
|
+
getClientBounds(update?: boolean): IBoundsData;
|
|
115
116
|
startAutoLayout(_autoBounds: IAutoBounds, _listener: IResizeEventListener): void;
|
|
116
117
|
stopAutoLayout(): void;
|
|
117
118
|
setCursor(_cursor: ICursorType | ICursorType[]): void;
|