@leafer/decorator 1.5.3 → 1.6.0

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/data.ts +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leafer/decorator",
3
- "version": "1.5.3",
3
+ "version": "1.6.0",
4
4
  "description": "@leafer/decorator",
5
5
  "author": "Chao (Leafer) Wan",
6
6
  "license": "MIT",
@@ -22,11 +22,11 @@
22
22
  "leaferjs"
23
23
  ],
24
24
  "dependencies": {
25
- "@leafer/platform": "1.5.3",
26
- "@leafer/data": "1.5.3",
27
- "@leafer/debug": "1.5.3"
25
+ "@leafer/platform": "1.6.0",
26
+ "@leafer/data": "1.6.0",
27
+ "@leafer/debug": "1.6.0"
28
28
  },
29
29
  "devDependencies": {
30
- "@leafer/interface": "1.5.3"
30
+ "@leafer/interface": "1.6.0"
31
31
  }
32
32
  }
package/src/data.ts CHANGED
@@ -211,7 +211,7 @@ export function hitType(defaultValue?: IValue) {
211
211
  set(value: IValue) {
212
212
  if (this.__setAttr(key, value)) {
213
213
  this.__layout.hitCanvasChanged = true
214
- if (Debug.showHitView) { this.__layout.surfaceChanged || this.__layout.surfaceChange() }
214
+ if (Debug.showBounds === 'hit') this.__layout.surfaceChanged || this.__layout.surfaceChange()
215
215
  if (this.leafer) this.leafer.updateCursor()
216
216
  }
217
217
  }