{
  "title": "canvas",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "组件唯一标识符。\n注意：同一页面中的 id 不可重复。"
    },
    "style": {
      "type": "string",
      "description": "-"
    },
    "class": {
      "type": "string",
      "description": "-"
    },
    "width": {
      "type": "string",
      "defaultValue": "300px"
    },
    "height": {
      "type": "string",
      "defaultValue": "225px"
    },
    "disable-scroll": {
      "type": "boolean",
      "description": "禁止屏幕滚动以及下拉刷新。",
      "defaultValue": false
    },
    "onTap": {
      "tsType": "() => void",
      "description": "点击。"
    },
    "onTouchStart": {
      "tsType": "() => void",
      "description": "触摸动作开始。"
    },
    "onTouchMove": {
      "tsType": "() => void",
      "description": "触摸后移动。"
    },
    "onTouchEnd": {
      "tsType": "() => void",
      "description": "触摸动作结束。"
    },
    "onTouchCancel": {
      "tsType": "() => void",
      "description": "触摸动作被打断，如来电提醒，弹窗。"
    },
    "onLongTap": {
      "tsType": "() => void",
      "description": "长按 500ms 之后触发，触发了长按事件后进行移动将不会触发屏幕的滚动。"
    },
    "type": {
      "type": "string",
      "description": "类型。设置 type 属性后，会渲染成 native canvas。\n可选值：2d、webgl"
    },
    "onReady": {
      "tsType": "() => void",
      "description": "canvas 组件初始化成功触发。"
    }
  },
  "additionalProperties": false
}