@leafer-ui/display 1.0.0-alpha.10 → 1.0.0-alpha.21

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leafer-ui/display",
3
- "version": "1.0.0-alpha.10",
3
+ "version": "1.0.0-alpha.21",
4
4
  "description": "@leafer-ui/display",
5
5
  "author": "Chao (Leafer) Wan",
6
6
  "license": "MIT",
@@ -19,13 +19,13 @@
19
19
  "leaferjs"
20
20
  ],
21
21
  "dependencies": {
22
- "@leafer/core": "1.0.0-alpha.10",
23
- "@leafer-ui/data": "1.0.0-alpha.10",
24
- "@leafer-ui/display-module": "1.0.0-alpha.10",
25
- "@leafer-ui/decorator": "1.0.0-alpha.10"
22
+ "@leafer/core": "1.0.0-alpha.21",
23
+ "@leafer-ui/data": "1.0.0-alpha.21",
24
+ "@leafer-ui/display-module": "1.0.0-alpha.21",
25
+ "@leafer-ui/decorator": "1.0.0-alpha.21"
26
26
  },
27
27
  "devDependencies": {
28
- "@leafer/interface": "1.0.0-alpha.10",
29
- "@leafer-ui/interface": "1.0.0-alpha.10"
28
+ "@leafer/interface": "1.0.0-alpha.21",
29
+ "@leafer-ui/interface": "1.0.0-alpha.21"
30
30
  }
31
31
  }
package/src/Image.ts CHANGED
@@ -34,6 +34,4 @@ export class Image extends Rect implements IImage {
34
34
 
35
35
  }
36
36
 
37
-
38
-
39
37
  }
package/src/UI.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ILeaferCanvas, IPathDrawer, IPathCommandData, IMatrixData, IBoundsData, __Number, __Boolean, __String } from '@leafer/interface'
1
+ import { ILeaferCanvas, IPathDrawer, IPathCommandData, IMatrixData, IBoundsData, IHitType, __Number, __Boolean, __String } from '@leafer/interface'
2
2
  import { Leaf, PathHelper, affectEventBoundsType, surfaceType, dataType, positionType, boundsType, pathType, scaleType, rotationType, opacityType, sortType, dataProcessor, useModule, rewrite, rewriteAble } from '@leafer/core'
3
3
 
4
4
  import { IUI, IShadowEffect, IBlurEffect, IPaint, IStrokeAlign, IStrokeJoin, IStrokeCap, IBlendMode, IPaintString, IDashPatternString, IShadowString, IGrayscaleEffect, IUIData, IGroup, IStrokeWidthString, ICornerRadiusString } from '@leafer-ui/interface'
@@ -79,8 +79,20 @@ export class UI extends Leaf implements IUI {
79
79
  @rotationType(0)
80
80
  public skewY: __Number
81
81
 
82
+
83
+ @dataType(false)
82
84
  public draggable: __Boolean
83
85
 
86
+ // hit
87
+ @dataType(true)
88
+ public hittable: __Boolean
89
+
90
+ @dataType('visible')
91
+ public hitType: IHitType
92
+
93
+ @dataType(true)
94
+ public hitChildren: __Boolean
95
+
84
96
  // ---
85
97
 
86
98