Preparation
In Browser
canvas
Canvas needed for rendering
The width of the rendering canvas, the width of the design draft,
height
transparent
Whether the background is transparent, the default is false
Resolution, if the design draft is 2 times (750*1334), you can use window.devicePixelRatio / 2
enableScroll
renderType
Use WebGL or Canvas to render by default to automatically determine whether to support WebGL
background color