@leafer/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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leafer/display",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "@leafer/display",
5
5
  "author": "Chao (Leafer) Wan",
6
6
  "license": "MIT",
@@ -22,17 +22,17 @@
22
22
  "leaferjs"
23
23
  ],
24
24
  "dependencies": {
25
- "@leafer/math": "1.2.0",
26
- "@leafer/data": "1.2.0",
27
- "@leafer/layout": "1.2.0",
28
- "@leafer/display-module": "1.2.0",
29
- "@leafer/event": "1.2.0",
30
- "@leafer/decorator": "1.2.0",
31
- "@leafer/helper": "1.2.0",
32
- "@leafer/debug": "1.2.0",
33
- "@leafer/platform": "1.2.0"
25
+ "@leafer/math": "1.2.1",
26
+ "@leafer/data": "1.2.1",
27
+ "@leafer/layout": "1.2.1",
28
+ "@leafer/display-module": "1.2.1",
29
+ "@leafer/event": "1.2.1",
30
+ "@leafer/decorator": "1.2.1",
31
+ "@leafer/helper": "1.2.1",
32
+ "@leafer/debug": "1.2.1",
33
+ "@leafer/platform": "1.2.1"
34
34
  },
35
35
  "devDependencies": {
36
- "@leafer/interface": "1.2.0"
36
+ "@leafer/interface": "1.2.1"
37
37
  }
38
38
  }
package/src/Leaf.ts CHANGED
@@ -250,7 +250,7 @@ export class Leaf implements ILeaf {
250
250
  (this as any)[attrName] = value
251
251
  }
252
252
 
253
- public forceRender(_bounds?: IBoundsData): void {
253
+ public forceRender(_bounds?: IBoundsData, _sync?: boolean): void {
254
254
  this.forceUpdate('surface')
255
255
  }
256
256
 
package/types/index.d.ts CHANGED
@@ -83,7 +83,7 @@ declare class Leaf implements ILeaf {
83
83
  updateState(): void;
84
84
  updateLayout(): void;
85
85
  forceUpdate(attrName?: string): void;
86
- forceRender(_bounds?: IBoundsData): void;
86
+ forceRender(_bounds?: IBoundsData, _sync?: boolean): void;
87
87
  __updateWorldMatrix(): void;
88
88
  __updateLocalMatrix(): void;
89
89
  __updateWorldBounds(): void;