交互 | Hit
通用属性
hittable: boolean
是否响应碰撞事件(交互事件),默认为 true。
hitType: IHitType
碰撞类型,默认为 visible
type IHitType =
| 'visible' // 碰撞可见的fill、stroke
| 'fill-visible'
| 'stroke-visible'
| 'all' // 碰撞fill、stroke, 即使不可见
| 'fill'
| 'stroke'
hitChildren: boolean
子元素是否响应碰撞事件(交互事件),默认为 true。
draggable: boolean
是否允许拖拽