@leafer-ui/paint 1.11.2 → 1.12.1

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/Compute.ts +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leafer-ui/paint",
3
- "version": "1.11.2",
3
+ "version": "1.12.1",
4
4
  "description": "@leafer-ui/paint",
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.11.2",
26
- "@leafer-ui/draw": "1.11.2"
25
+ "@leafer/core": "1.12.1",
26
+ "@leafer-ui/draw": "1.12.1"
27
27
  },
28
28
  "devDependencies": {
29
- "@leafer/interface": "1.11.2",
30
- "@leafer-ui/interface": "1.11.2"
29
+ "@leafer/interface": "1.12.1",
30
+ "@leafer-ui/interface": "1.12.1"
31
31
  }
32
32
  }
package/src/Compute.ts CHANGED
@@ -62,6 +62,7 @@ function getLeafPaint(attrName: string, paint: IPaint, ui: IUI): ILeafPaint {
62
62
 
63
63
  switch (paint.type) {
64
64
  case 'image':
65
+ if (!paint.url) return undefined
65
66
  leafPaint = PaintImage.image(ui, attrName, paint, boxBounds, !recycleMap || !recycleMap[paint.url])
66
67
  break
67
68
  case 'linear':