Create Visual Components
These operations instantiate new visual elements.
msc.layout(type, params)
Creates a layout.
type: layout typeparams(Object): contains layout properties- Return type: Layout
msc.linearGradient(params)
Creates a linear gradient.
params(Object): containsx1,y1,x2, andy2properties- Return type: LinearGradient
scene.mark(type, params)
msc.renderer(type, domId)
Creates a renderer.
type(String): type of renderer; possible values are"svg"and"webgl"domId(String): ID of the SVG or Canvas element- Return type: Renderer
msc.scene(params)
Creates a scene.
params(Object, optional):fillColor: background color of the scene
- Return type: Scene