@leafer/display-module 1.0.4 → 1.0.6

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": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "@leafer/display-module",
5
5
  "author": "Chao (Leafer) Wan",
6
6
  "license": "MIT",
@@ -22,12 +22,12 @@
22
22
  "leaferjs"
23
23
  ],
24
24
  "dependencies": {
25
- "@leafer/helper": "1.0.4",
26
- "@leafer/event": "1.0.4",
27
- "@leafer/math": "1.0.4",
28
- "@leafer/debug": "1.0.4"
25
+ "@leafer/helper": "1.0.6",
26
+ "@leafer/event": "1.0.6",
27
+ "@leafer/math": "1.0.6",
28
+ "@leafer/debug": "1.0.6"
29
29
  },
30
30
  "devDependencies": {
31
- "@leafer/interface": "1.0.4"
31
+ "@leafer/interface": "1.0.6"
32
32
  }
33
33
  }
package/src/LeafBounds.ts CHANGED
@@ -116,7 +116,7 @@ export const LeafBounds: ILeafBoundsModule = {
116
116
  const b = this.__layout.boxBounds
117
117
  const data = this.__
118
118
  if (data.__pathInputed) {
119
- toBounds(data.__pathForRender, b)
119
+ toBounds(data.path, b)
120
120
  } else {
121
121
  b.x = 0
122
122
  b.y = 0
@@ -129,7 +129,8 @@ export const LeafBounds: ILeafBoundsModule = {
129
129
  __updateAutoLayout(): void {
130
130
  this.__layout.matrixChanged = true
131
131
  if (this.isBranch) {
132
- if (this.leafer && this.leafer.ready) this.leafer.layouter.addExtra(this) // add part
132
+
133
+ if (this.leaferIsReady) this.leafer.layouter.addExtra(this) // add part
133
134
 
134
135
  if (this.__.flow) {
135
136
 
@@ -9,7 +9,8 @@ const debug = Debug.get('setAttr')
9
9
  export const LeafDataProxy: ILeafDataProxyModule = {
10
10
 
11
11
  __setAttr(name: string, newValue: IValue, checkFiniteNumber?: boolean): boolean {
12
- if (this.leafer && this.leafer.created) {
12
+ if (this.leaferIsCreated) {
13
+
13
14
  const oldValue = this.__.__getInput(name)
14
15
 
15
16
  if (checkFiniteNumber && !isFinite(newValue) && newValue !== undefined) { // 警告 NaN、Infinity、-Infinity、null、非有效数字
package/src/LeafRender.ts CHANGED
@@ -37,7 +37,7 @@ export const LeafRender: ILeafRenderModule = {
37
37
  if (this.__worldOpacity) {
38
38
  canvas.setWorld(this.__nowWorld = this.__getNowWorld(options))
39
39
  this.__drawRenderPath(canvas)
40
- this.__.windingRule ? canvas.clip(this.__.windingRule) : canvas.clip()
40
+ this.windingRule ? canvas.clip(this.windingRule) : canvas.clip()
41
41
  }
42
42
  },
43
43