@leafer/display-module 1.0.3 → 1.0.5
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 +6 -6
- package/src/LeafBounds.ts +3 -2
- package/src/LeafDataProxy.ts +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leafer/display-module",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
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.
|
|
26
|
-
"@leafer/event": "1.0.
|
|
27
|
-
"@leafer/math": "1.0.
|
|
28
|
-
"@leafer/debug": "1.0.
|
|
25
|
+
"@leafer/helper": "1.0.5",
|
|
26
|
+
"@leafer/event": "1.0.5",
|
|
27
|
+
"@leafer/math": "1.0.5",
|
|
28
|
+
"@leafer/debug": "1.0.5"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@leafer/interface": "1.0.
|
|
31
|
+
"@leafer/interface": "1.0.5"
|
|
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.
|
|
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
|
-
|
|
132
|
+
|
|
133
|
+
if (this.leaferIsReady) this.leafer.layouter.addExtra(this) // add part
|
|
133
134
|
|
|
134
135
|
if (this.__.flow) {
|
|
135
136
|
|
package/src/LeafDataProxy.ts
CHANGED
|
@@ -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.
|
|
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、非有效数字
|