Type class
Paper class which when instantiated will create an SVG element as well as some of the sub-elements like <desc>
, <defs>
.
Use its methods like addGroup
and append
to add elements to the paper.
Sources
Paper can be used (imported) via one of the following packages.
/** * -------------------------------------------------------- * Import from: "core.ts" * Use like: am4core.Paper * -------------------------------------------------------- */ import * as am4core from "@amcharts/amcharts4/core";
/** * -------------------------------------------------------- * Include via: <script src="core.js"></script> * Access items like: am4.Paper * -------------------------------------------------------- */
Inheritance
Paper does not extend any other symbol.
Paper is not extended by any other symbol.
Properties
container # |
Type A reference to the HTML container the |
---|---|
defs # |
Type A reference to the |
id # |
Type An id of the element. |
svg # |
Type A reference |
Methods
add( elementName: ) |
Returns Creates and returns a new element. Does not attach it to Paper yet. |
---|---|
addGroup( groupName: ) |
Returns Creates and returns a new Group element. Does not attach it to Paper. |
append( element: ) |
Returns Appends an element to Paper. |
appendDef( element: ) |
Returns Appends an element to |
constructor( container: ) |
Returns Creates main |
foreignObject() |
Returns Creates and returns new |
supportsForeignObject() |
Returns Checks if browser supports |
Events
Paper does not have any events.
Adapters
Paper does not have any adapters.