# Two.Element

Extends: Two.Events

The foundational object for the Two.js scenegraph.

# renderer

Object access to store relevant renderer specific variables. Warning: manipulating this object can create unintended consequences.


With the Two.SvgRenderer you can access the underlying SVG element created via shape.renderer.elem.

# id

Session specific unique identifier.


In the Two.SvgRenderer change this to change the underlying SVG element's id too.

# className

A class to be applied to the element to be compatible with CSS styling.


Only available for the SVG renderer.

# classList

A list of class strings stored if imported / interpreted from an SVG element.

# flagReset

Called internally by Two.js's renderer to reset all flags. Ensures that only properties that change are updated before being sent to the renderer.