hitStroke 
进一步定义元素 stroke 的可交互性。
关键属性 
hitStroke: IHitType 
stroke 的交互类型,默认为 path。
设置 pixel 可以进行 PNG / SVG 图片的像素级检测,过滤掉透明像素。
ts
type IHitType =
  | 'path' // 碰撞可见 stroke 的路径形状
  | 'pixel' // 碰撞可见 stroke 的像素点(排除 PNG/SVG 图片中的透明像素)
  | 'all' // 总是碰撞 stroke, 即使不可见
  | 'none' // 不碰撞 stroke归属 
UI 元素 
示例 
只有 stroke 能响应交互 
拖动矩形试一试。
ts
// #交互功能 [只有 stroke 能响应交互]
import { Leafer, Rect } from 'leafer-ui'
const leafer = new Leafer({ view: window })
const rect = new Rect({
    width: 100,
    height: 100,
    fill: '#FEB02730',
    stroke: {
        type: "radial",
        stops: [{ offset: 0, color: '#FF4A2C' }, { offset: 1, color: '#FEB027' }]
    },
    strokeWidth: 10,
    draggable: true,
    hitFill: 'none' // // 只有 stroke 能响应交互
})
leafer.add(rect)