@leafer-ui/display 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 +8 -8
  2. package/src/UI.ts +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leafer-ui/display",
3
- "version": "1.0.0-rc.3",
3
+ "version": "1.0.0-rc.4",
4
4
  "description": "@leafer-ui/display",
5
5
  "author": "Chao (Leafer) Wan",
6
6
  "license": "MIT",
@@ -22,14 +22,14 @@
22
22
  "leaferjs"
23
23
  ],
24
24
  "dependencies": {
25
- "@leafer/core": "1.0.0-rc.3",
26
- "@leafer-ui/data": "1.0.0-rc.3",
27
- "@leafer-ui/display-module": "1.0.0-rc.3",
28
- "@leafer-ui/decorator": "1.0.0-rc.3",
29
- "@leafer-ui/external": "1.0.0-rc.3"
25
+ "@leafer/core": "1.0.0-rc.4",
26
+ "@leafer-ui/data": "1.0.0-rc.4",
27
+ "@leafer-ui/display-module": "1.0.0-rc.4",
28
+ "@leafer-ui/decorator": "1.0.0-rc.4",
29
+ "@leafer-ui/external": "1.0.0-rc.4"
30
30
  },
31
31
  "devDependencies": {
32
- "@leafer/interface": "1.0.0-rc.3",
33
- "@leafer-ui/interface": "1.0.0-rc.3"
32
+ "@leafer/interface": "1.0.0-rc.4",
33
+ "@leafer-ui/interface": "1.0.0-rc.4"
34
34
  }
35
35
  }
package/src/UI.ts CHANGED
@@ -116,7 +116,7 @@ export class UI extends Leaf implements IUI {
116
116
  @hitType()
117
117
  public hitRadius: __Number
118
118
 
119
- @cursorType('default')
119
+ @cursorType('')
120
120
  public cursor: ICursorType | ICursorType[]
121
121
 
122
122
  // ---
@@ -223,8 +223,8 @@ export class UI extends Leaf implements IUI {
223
223
  public __onUpdateSize(): void {
224
224
  if (this.__.__input) {
225
225
  const { fill, stroke } = this.__.__input
226
- if (fill) Paint.compute(this, 'fill')
227
- if (stroke) Paint.compute(this, 'stroke')
226
+ if (fill) Paint.compute('fill', this)
227
+ if (stroke) Paint.compute('stroke', this)
228
228
  }
229
229
  }
230
230