@leafer/layout 1.0.0-alpha.10 → 1.0.0-alpha.21
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 +3 -3
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.21",
|
|
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.21"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@leafer/interface": "1.0.0-alpha.
|
|
25
|
+
"@leafer/interface": "1.0.0-alpha.21"
|
|
26
26
|
}
|
|
27
27
|
}
|
package/src/LeafLayout.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { ILeaf, ILeafLayout, ILayoutLocationType, ILayoutBoundsType, IBoundsData
|
|
|
2
2
|
import { BoundsHelper } from '@leafer/math'
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
const {
|
|
5
|
+
const { toWorld } = BoundsHelper
|
|
6
6
|
|
|
7
7
|
export class LeafLayout implements ILeafLayout {
|
|
8
8
|
|
|
@@ -129,13 +129,13 @@ export class LeafLayout implements ILeafLayout {
|
|
|
129
129
|
|
|
130
130
|
protected getWorldBoxBounds(): IBoundsData {
|
|
131
131
|
this._worldBoxBounds || (this._worldBoxBounds = {} as IBoundsData)
|
|
132
|
-
|
|
132
|
+
toWorld(this.boxBounds, this.leaf.__world, this._worldBoxBounds)
|
|
133
133
|
return this._worldBoxBounds
|
|
134
134
|
}
|
|
135
135
|
|
|
136
136
|
protected getWorldEventBounds(): IBoundsData {
|
|
137
137
|
this._worldEventBounds || (this._worldEventBounds = {} as IBoundsData)
|
|
138
|
-
|
|
138
|
+
toWorld(this.eventBounds, this.leaf.__world, this._worldEventBounds)
|
|
139
139
|
return this._worldEventBounds
|
|
140
140
|
}
|
|
141
141
|
|