@leafer-ui/data 1.0.0-rc.19 → 1.0.0-rc.20

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.
Files changed (2) hide show
  1. package/package.json +5 -5
  2. package/src/UIData.ts +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leafer-ui/data",
3
- "version": "1.0.0-rc.19",
3
+ "version": "1.0.0-rc.20",
4
4
  "description": "@leafer-ui/data",
5
5
  "author": "Chao (Leafer) Wan",
6
6
  "license": "MIT",
@@ -22,11 +22,11 @@
22
22
  "leaferjs"
23
23
  ],
24
24
  "dependencies": {
25
- "@leafer/core": "1.0.0-rc.19",
26
- "@leafer-ui/external": "1.0.0-rc.19"
25
+ "@leafer/core": "1.0.0-rc.20",
26
+ "@leafer-ui/external": "1.0.0-rc.20"
27
27
  },
28
28
  "devDependencies": {
29
- "@leafer/interface": "1.0.0-rc.19",
30
- "@leafer-ui/interface": "1.0.0-rc.19"
29
+ "@leafer/interface": "1.0.0-rc.20",
30
+ "@leafer-ui/interface": "1.0.0-rc.20"
31
31
  }
32
32
  }
package/src/UIData.ts CHANGED
@@ -20,7 +20,8 @@ export class UIData extends LeafData implements IUIData {
20
20
  public get __strokeWidth(): number {
21
21
  const { strokeWidth, strokeWidthFixed } = this as IUIData
22
22
  if (strokeWidthFixed) {
23
- let { scaleX } = this.__leaf.__nowWorld
23
+ const ui = this.__leaf
24
+ let { scaleX } = ui.__nowWorld || ui.__world
24
25
  if (scaleX < 0) scaleX = -scaleX
25
26
  return scaleX > 1 ? strokeWidth / scaleX : strokeWidth
26
27
  } else {