Initializes a new style manager.
instance id.
Holds current UI styles.
For cases when you need to add the stylesheet to anything
other than document.head (default), set this property
befor calling MarkerArea.show()
.
Example: here we set the rendering/placement root (targetRoot)
to the shadowRoot
of a web componet and set styleSheetRoot
to the same value as well.
const markerArea = new markerjs2.MarkerArea(target);
markerArea.targetRoot = this.shadowRoot;
markerArea.styles.styleSheetRoot = this.shadowRoot;
markerArea.show();
Prefix used for all internally created CSS classes.
Static CSS class name used for the wrapper element.
Returns default UI styles.
Returns global fade-in animation class name.
Returns global fade-out animation class name.
Adds a CSS class declaration.
class to add.
Add arbitrary CSS rule
CSS rule to add.
Generated using TypeDoc
Simple utility CSS-in-JS implementation.