@leafer/layout 1.8.0 → 1.9.0
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 -5
- package/src/LeafLayout.ts +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leafer/layout",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.0",
|
|
4
4
|
"description": "@leafer/layout",
|
|
5
5
|
"author": "Chao (Leafer) Wan",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,11 +22,12 @@
|
|
|
22
22
|
"leaferjs"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@leafer/
|
|
26
|
-
"@leafer/
|
|
27
|
-
"@leafer/
|
|
25
|
+
"@leafer/data": "1.9.0",
|
|
26
|
+
"@leafer/math": "1.9.0",
|
|
27
|
+
"@leafer/helper": "1.9.0",
|
|
28
|
+
"@leafer/platform": "1.9.0"
|
|
28
29
|
},
|
|
29
30
|
"devDependencies": {
|
|
30
|
-
"@leafer/interface": "1.
|
|
31
|
+
"@leafer/interface": "1.9.0"
|
|
31
32
|
}
|
|
32
33
|
}
|
package/src/LeafLayout.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ILeaf, ILeafLayout, ILocationType, IBoundsType, IBoundsData, IMatrixData, ILayoutBoundsData, IPointData } from '@leafer/interface'
|
|
2
2
|
import { Bounds, BoundsHelper, MatrixHelper, PointHelper } from '@leafer/math'
|
|
3
|
+
import { isUndefined } from '@leafer/data'
|
|
3
4
|
import { LeafHelper } from '@leafer/helper'
|
|
4
5
|
import { Platform } from '@leafer/platform'
|
|
5
6
|
|
|
@@ -268,7 +269,7 @@ export class LeafLayout implements ILeafLayout {
|
|
|
268
269
|
default:
|
|
269
270
|
relativeLeaf = relative
|
|
270
271
|
}
|
|
271
|
-
if (relativeLeaf
|
|
272
|
+
if (!isUndefined(relativeLeaf)) points.forEach(point => leaf.innerToWorld(point, null, false, relativeLeaf))
|
|
272
273
|
return points
|
|
273
274
|
}
|
|
274
275
|
|