@leafer-ui/data 1.9.8 → 1.9.10

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/ImageData.ts +4 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leafer-ui/data",
3
- "version": "1.9.8",
3
+ "version": "1.9.10",
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.9.8",
26
- "@leafer-ui/external": "1.9.8"
25
+ "@leafer/core": "1.9.10",
26
+ "@leafer-ui/external": "1.9.10"
27
27
  },
28
28
  "devDependencies": {
29
- "@leafer/interface": "1.9.8",
30
- "@leafer-ui/interface": "1.9.8"
29
+ "@leafer/interface": "1.9.10",
30
+ "@leafer-ui/interface": "1.9.10"
31
31
  }
32
32
  }
package/src/ImageData.ts CHANGED
@@ -19,14 +19,14 @@ export class ImageData extends RectData implements IImageData {
19
19
  }
20
20
 
21
21
  public __getData(): IObject {
22
- const data = super.__getData()
23
- delete data.fill
22
+ const data: IImageInputData = super.__getData()
23
+ if (data.url) delete data.fill
24
24
  return data
25
25
  }
26
26
 
27
27
  public __getInputData(names?: string[] | IObject, options?: IJSONOptions): IObject {
28
- const data = super.__getInputData(names, options)
29
- delete data.fill
28
+ const data: IImageInputData = super.__getInputData(names, options)
29
+ if (data.url) delete data.fill
30
30
  return data
31
31
  }
32
32
  }