@leafer-ui/data 1.0.0-rc.3 → 1.0.0-rc.4

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 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leafer-ui/data",
3
- "version": "1.0.0-rc.3",
3
+ "version": "1.0.0-rc.4",
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.3",
26
- "@leafer-ui/external": "1.0.0-rc.3"
25
+ "@leafer/core": "1.0.0-rc.4",
26
+ "@leafer-ui/external": "1.0.0-rc.4"
27
27
  },
28
28
  "devDependencies": {
29
- "@leafer/interface": "1.0.0-rc.3",
30
- "@leafer-ui/interface": "1.0.0-rc.3"
29
+ "@leafer/interface": "1.0.0-rc.4",
30
+ "@leafer-ui/interface": "1.0.0-rc.4"
31
31
  }
32
32
  }
package/src/UIData.ts CHANGED
@@ -59,7 +59,7 @@ export class UIData extends LeafData implements IUIData {
59
59
  if (typeof value === 'string' || !value) {
60
60
  if (this.__isFills) {
61
61
  this.__removeInput('fill')
62
- Paint.recycleImage(this, 'fill')
62
+ Paint.recycleImage('fill', this)
63
63
  this.__isFills = false
64
64
  }
65
65
  this._fill = value
@@ -75,7 +75,7 @@ export class UIData extends LeafData implements IUIData {
75
75
  if (typeof value === 'string' || !value) {
76
76
  if (this.__isStrokes) {
77
77
  this.__removeInput('stroke')
78
- Paint.recycleImage(this, 'stroke')
78
+ Paint.recycleImage('stroke', this)
79
79
  this.__isStrokes = false
80
80
  }
81
81
  this._stroke = value