TGML Components
Components are standardized, predefined graphics for defined use.
Component Library
Components are stored the same way as TGML code snippets. Component is the root element and the associated Metadata elements describe the component.
ComponentContent Element
The document type ComponentContent is the root of the document when the content of a component is edited in the TGML graphics editor.
ComponentContent is replaced with Component when the component is stored in the library.
ComponentContent has the following attributes:
- Height
- Opacity
- Visibility
- Width
Width and Height are replaced with (copied to) ContentWidth and ContentHeight of the Component element when the component is stored.
Initial Viewport
Width and Height of the stored Component are the initial viewport, that is, the initial size of the component when it is pasted into a TGML document.