@leafer-ui/image 1.0.0-rc.26 → 1.0.0-rc.28

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/check.ts +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leafer-ui/image",
3
- "version": "1.0.0-rc.26",
3
+ "version": "1.0.0-rc.28",
4
4
  "description": "@leafer-ui/image",
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.26",
26
- "@leafer-ui/draw": "1.0.0-rc.26"
25
+ "@leafer/core": "1.0.0-rc.28",
26
+ "@leafer-ui/draw": "1.0.0-rc.28"
27
27
  },
28
28
  "devDependencies": {
29
- "@leafer/interface": "1.0.0-rc.26",
30
- "@leafer-ui/interface": "1.0.0-rc.26"
29
+ "@leafer/interface": "1.0.0-rc.28",
30
+ "@leafer-ui/interface": "1.0.0-rc.28"
31
31
  }
32
32
  }
package/src/check.ts CHANGED
@@ -27,7 +27,7 @@ export function checkImage(ui: IUI, canvas: ILeaferCanvas, paint: ILeafPaint, al
27
27
  width *= data.scaleX
28
28
  height *= data.scaleY
29
29
  }
30
- allowPaint = width * height > Platform.image.maxCacheSize
30
+ allowPaint = (width * height > Platform.image.maxCacheSize) || Export.running
31
31
  } else {
32
32
  allowPaint = false
33
33
  }