Skip to content

canvas components

canvas components introductions

componentIntroductionsMinimum version
canvascanvas1.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

attributetypeDefault valueRequiredIntroductionsMinimum version
idstringnoUnique identifier for the canvas component
typestring2Dno
canvas-idstringnocanvas Unique identifier for the component, if specified type You do not need to specify the attribute again
disable-scrollstringnoWhen canvas Disable screen scrolling and pull - down refresh when you move in the
nativebooleanfalsenoRendering with native rendering canvas
bindtouchstarteventhandlenoFinger touch action begins.
bindtouchmoveeventhandlenoMove after finger touch
bindtouchendeventhandlenoFinger touch is over
bindtouchcanceleventhandlenoFinger touch action is interrupted, such as call reminder, pop-up
bindlongtapeventhandlenoLong finger press 500ms Moving after a long press event will not trigger screen scrolling.
binderroreventhandlenoTriggered when an error occurs error Event, detail =
typestringnoDesignation canvas Type, Support 2d (2.9.0) and webgl (2.7.0)Not supported
hidpibooleannoTurn on hidpi renderingPhizClip Exclusive