@leafer/display-module 2.1.0 → 2.1.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/display-module",
3
- "version": "2.1.0",
3
+ "version": "2.1.2",
4
4
  "description": "@leafer/display-module",
5
5
  "author": "Chao (Leafer) Wan",
6
6
  "license": "MIT",
@@ -22,13 +22,13 @@
22
22
  "leaferjs"
23
23
  ],
24
24
  "dependencies": {
25
- "@leafer/helper": "2.1.0",
26
- "@leafer/event": "2.1.0",
27
- "@leafer/math": "2.1.0",
28
- "@leafer/data": "2.1.0",
29
- "@leafer/debug": "2.1.0"
25
+ "@leafer/helper": "2.1.2",
26
+ "@leafer/event": "2.1.2",
27
+ "@leafer/math": "2.1.2",
28
+ "@leafer/data": "2.1.2",
29
+ "@leafer/debug": "2.1.2"
30
30
  },
31
31
  "devDependencies": {
32
- "@leafer/interface": "2.1.0"
32
+ "@leafer/interface": "2.1.2"
33
33
  }
34
34
  }
package/src/LeafBounds.ts CHANGED
@@ -32,15 +32,17 @@ export const LeafBounds: ILeafBoundsModule = {
32
32
 
33
33
  __updateLocalBounds(): void {
34
34
 
35
- const layout = this.__layout
35
+ const layout = this.__layout, data = this.__
36
36
 
37
37
  if (layout.boxChanged) {
38
38
 
39
- if (!this.__.__pathInputed) this.__updatePath()
39
+ if (!data.__pathInputed) this.__updatePath()
40
40
  this.__updateRenderPath()
41
41
 
42
42
  this.__updateBoxBounds()
43
43
  layout.resized = 'inner'
44
+
45
+ if (data.__strokeGeometry) data.__strokeGeometry = undefined
44
46
  }
45
47
 
46
48
 
@@ -78,6 +80,8 @@ export const LeafBounds: ILeafBoundsModule = {
78
80
 
79
81
  if (this.parent) this.parent.__layout.strokeChange()
80
82
  layout.resized = 'inner'
83
+
84
+ if (data.__strokeGeometry) data.__strokeGeometry = undefined
81
85
  }
82
86
 
83
87