canvas components
canvas components introductions
| component | Introductions | Minimum version |
|---|---|---|
| canvas | canvas | 1.0.0 |
Basic library 2.12.1, iOS/ Android 2.35.1 support a new set of Canvas 2D interface, support to enable native rendering (need to configure native properties). Related api:Get canvas instance。
canvas
| attribute | type | Default value | Required | Introductions | Minimum version |
|---|---|---|---|---|---|
| id | string | no | Unique identifier for the canvas component | ||
| type | string | 2D | no | ||
| canvas-id | string | no | canvas Unique identifier for the component, if specified type You do not need to specify the attribute again | ||
| disable-scroll | string | no | When canvas Disable screen scrolling and pull - down refresh when you move in the | ||
| native | boolean | false | no | Rendering with native rendering canvas | |
| bindtouchstart | eventhandle | no | Finger touch action begins. | ||
| bindtouchmove | eventhandle | no | Move after finger touch | ||
| bindtouchend | eventhandle | no | Finger touch is over | ||
| bindtouchcancel | eventhandle | no | Finger touch action is interrupted, such as call reminder, pop-up | ||
| bindlongtap | eventhandle | no | Long finger press 500ms Moving after a long press event will not trigger screen scrolling. | ||
| binderror | eventhandle | no | Triggered when an error occurs error Event, detail = | ||
| type | string | no | Designation canvas Type, Support 2d (2.9.0) and webgl (2.7.0) | Not supported | |
| hidpi | boolean | no | Turn on hidpi rendering | PhizClip Exclusive |