@leafer/helper 1.9.4 → 1.9.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/helper",
3
- "version": "1.9.4",
3
+ "version": "1.9.6",
4
4
  "description": "@leafer/helper",
5
5
  "author": "Chao (Leafer) Wan",
6
6
  "license": "MIT",
@@ -22,11 +22,11 @@
22
22
  "leaferjs"
23
23
  ],
24
24
  "dependencies": {
25
- "@leafer/data": "1.9.4",
26
- "@leafer/math": "1.9.4",
27
- "@leafer/platform": "1.9.4"
25
+ "@leafer/data": "1.9.6",
26
+ "@leafer/math": "1.9.6",
27
+ "@leafer/platform": "1.9.6"
28
28
  },
29
29
  "devDependencies": {
30
- "@leafer/interface": "1.9.4"
30
+ "@leafer/interface": "1.9.6"
31
31
  }
32
32
  }
package/src/LeafHelper.ts CHANGED
@@ -250,6 +250,7 @@ export const LeafHelper = {
250
250
  const L = LeafHelper
251
251
  const { updateAllMatrix, updateMatrix, updateAllWorldOpacity, updateAllChange, updateChange } = L
252
252
 
253
- function getTempLocal(t: ILeaf, world: IPointData): IPointData {
254
- return t.parent ? PointHelper.tempToInnerOf(world, t.parent.scrollWorldTransform) : world
253
+ function getTempLocal(t: ILeaf, worldPoint: IPointData): IPointData {
254
+ t.updateLayout() // must
255
+ return t.parent ? PointHelper.tempToInnerOf(worldPoint, t.parent.scrollWorldTransform) : worldPoint
255
256
  }