/* tslint:disable */ /** * This file was automatically generated by json-schema-to-typescript. * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, * and run json-schema-to-typescript to regenerate this file. */ export interface Canvas { /** * 组件唯一标识符。 * 注意:同一页面中的 id 不可重复。 */ id?: string; /** * - */ style?: string; /** * - */ class?: string; width?: string; height?: string; /** * 禁止屏幕滚动以及下拉刷新。 */ "disable-scroll"?: boolean; /** * 点击。 */ onTap?: () => void; /** * 触摸动作开始。 */ onTouchStart?: () => void; /** * 触摸后移动。 */ onTouchMove?: () => void; /** * 触摸动作结束。 */ onTouchEnd?: () => void; /** * 触摸动作被打断,如来电提醒,弹窗。 */ onTouchCancel?: () => void; /** * 长按 500ms 之后触发,触发了长按事件后进行移动将不会触发屏幕的滚动。 */ onLongTap?: () => void; /** * 类型。设置 type 属性后,会渲染成 native canvas。 * 可选值:2d、webgl */ type?: string; /** * canvas 组件初始化成功触发。 */ onReady?: () => void; }