@leafer-ui/data 1.0.0-rc.16 → 1.0.0-rc.18

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 +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leafer-ui/data",
3
- "version": "1.0.0-rc.16",
3
+ "version": "1.0.0-rc.18",
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.16",
26
- "@leafer-ui/external": "1.0.0-rc.16"
25
+ "@leafer/core": "1.0.0-rc.18",
26
+ "@leafer-ui/external": "1.0.0-rc.18"
27
27
  },
28
28
  "devDependencies": {
29
- "@leafer/interface": "1.0.0-rc.16",
30
- "@leafer-ui/interface": "1.0.0-rc.16"
29
+ "@leafer/interface": "1.0.0-rc.18",
30
+ "@leafer-ui/interface": "1.0.0-rc.18"
31
31
  }
32
32
  }
package/src/UIData.ts CHANGED
@@ -20,7 +20,7 @@ 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.__world
23
+ let { scaleX } = this.__leaf.__nowWorld
24
24
  if (scaleX < 0) scaleX = -scaleX
25
25
  return scaleX > 1 ? strokeWidth / scaleX : strokeWidth
26
26
  } else {