@leafer-ui/display 1.2.0 → 1.2.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 +8 -8
- package/src/Leafer.ts +6 -3
- package/types/index.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leafer-ui/display",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "@leafer-ui/display",
|
|
5
5
|
"author": "Chao (Leafer) Wan",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,14 +22,14 @@
|
|
|
22
22
|
"leaferjs"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@leafer/core": "1.2.
|
|
26
|
-
"@leafer-ui/data": "1.2.
|
|
27
|
-
"@leafer-ui/display-module": "1.2.
|
|
28
|
-
"@leafer-ui/decorator": "1.2.
|
|
29
|
-
"@leafer-ui/external": "1.2.
|
|
25
|
+
"@leafer/core": "1.2.1",
|
|
26
|
+
"@leafer-ui/data": "1.2.1",
|
|
27
|
+
"@leafer-ui/display-module": "1.2.1",
|
|
28
|
+
"@leafer-ui/decorator": "1.2.1",
|
|
29
|
+
"@leafer-ui/external": "1.2.1"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@leafer/interface": "1.2.
|
|
33
|
-
"@leafer-ui/interface": "1.2.
|
|
32
|
+
"@leafer/interface": "1.2.1",
|
|
33
|
+
"@leafer-ui/interface": "1.2.1"
|
|
34
34
|
}
|
|
35
35
|
}
|
package/src/Leafer.ts
CHANGED
|
@@ -195,9 +195,12 @@ export class Leafer extends Group implements ILeafer {
|
|
|
195
195
|
Object.keys(data).forEach(key => (this as any)[key] = data[key])
|
|
196
196
|
}
|
|
197
197
|
|
|
198
|
-
override forceRender(bounds?: IBoundsData): void {
|
|
199
|
-
|
|
200
|
-
if (
|
|
198
|
+
override forceRender(bounds?: IBoundsData, sync?: boolean): void {
|
|
199
|
+
const { renderer } = this
|
|
200
|
+
if (renderer) {
|
|
201
|
+
renderer.addBlock(bounds ? new Bounds(bounds) : this.canvas.bounds)
|
|
202
|
+
if (this.viewReady) sync ? renderer.render() : renderer.update()
|
|
203
|
+
}
|
|
201
204
|
}
|
|
202
205
|
|
|
203
206
|
public requestRender(change = false): void {
|
package/types/index.d.ts
CHANGED
|
@@ -219,7 +219,7 @@ declare class Leafer extends Group implements ILeafer {
|
|
|
219
219
|
unlockLayout(): void;
|
|
220
220
|
lockLayout(): void;
|
|
221
221
|
resize(size: IScreenSizeData): void;
|
|
222
|
-
forceRender(bounds?: IBoundsData): void;
|
|
222
|
+
forceRender(bounds?: IBoundsData, sync?: boolean): void;
|
|
223
223
|
requestRender(change?: boolean): void;
|
|
224
224
|
updateCursor(cursor?: ICursorType): void;
|
|
225
225
|
updateLazyBounds(): void;
|