@leafer/layout 1.0.0-alpha.7 → 1.0.0-alpha.9
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 +3 -3
- package/src/LeafLayout.ts +8 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leafer/layout",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.9",
|
|
4
4
|
"description": "@leafer/layout",
|
|
5
5
|
"author": "Chao (Leafer) Wan",
|
|
6
6
|
"license": "MIT",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"leaferjs"
|
|
20
20
|
],
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@leafer/math": "1.0.0-alpha.
|
|
22
|
+
"@leafer/math": "1.0.0-alpha.9"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@leafer/interface": "1.0.0-alpha.
|
|
25
|
+
"@leafer/interface": "1.0.0-alpha.9"
|
|
26
26
|
}
|
|
27
27
|
}
|
package/src/LeafLayout.ts
CHANGED
|
@@ -169,24 +169,24 @@ export class LeafLayout implements ILeafLayout {
|
|
|
169
169
|
public boxBoundsChange(): void {
|
|
170
170
|
this.boxBoundsChanged = true
|
|
171
171
|
this.localBoxBoundsChanged || this.localBoxBoundsChange()
|
|
172
|
-
this.hitCanvasChanged
|
|
172
|
+
this.hitCanvasChanged = true
|
|
173
173
|
}
|
|
174
174
|
|
|
175
175
|
public localBoxBoundsChange(): void {
|
|
176
176
|
this.localBoxBoundsChanged = true
|
|
177
|
-
this.boundsChanged
|
|
177
|
+
this.boundsChanged = true
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
public eventBoundsChange(): void {
|
|
181
181
|
this.eventBoundsChanged = true
|
|
182
182
|
this.eventBoundsSpreadWidth || (this.eventBoundsSpreadWidth = 1)
|
|
183
|
-
this.boundsChanged
|
|
183
|
+
this.boundsChanged = true
|
|
184
184
|
}
|
|
185
185
|
|
|
186
186
|
public renderBoundsChange(): void {
|
|
187
187
|
this.renderBoundsChanged = true
|
|
188
188
|
this.renderBoundsSpreadWidth || (this.renderBoundsSpreadWidth = 1)
|
|
189
|
-
this.boundsChanged
|
|
189
|
+
this.boundsChanged = true
|
|
190
190
|
}
|
|
191
191
|
|
|
192
192
|
|
|
@@ -194,7 +194,7 @@ export class LeafLayout implements ILeafLayout {
|
|
|
194
194
|
|
|
195
195
|
public positionChange(): void {
|
|
196
196
|
this.positionChanged = true
|
|
197
|
-
this.matrixChanged
|
|
197
|
+
this.matrixChanged = true
|
|
198
198
|
this.localBoxBoundsChanged || this.localBoxBoundsChange()
|
|
199
199
|
}
|
|
200
200
|
|
|
@@ -205,13 +205,13 @@ export class LeafLayout implements ILeafLayout {
|
|
|
205
205
|
|
|
206
206
|
public rotationChange(): void {
|
|
207
207
|
this.rotationChanged = true
|
|
208
|
-
this.affectRotation
|
|
208
|
+
this.affectRotation = true
|
|
209
209
|
this._scaleOrRotationChange()
|
|
210
210
|
}
|
|
211
211
|
|
|
212
212
|
protected _scaleOrRotationChange() {
|
|
213
|
-
this.affectScaleOrRotation
|
|
214
|
-
this.matrixChanged
|
|
213
|
+
this.affectScaleOrRotation = true
|
|
214
|
+
this.matrixChanged = true
|
|
215
215
|
this.localBoxBoundsChanged || this.localBoxBoundsChange()
|
|
216
216
|
}
|
|
217
217
|
|