A dictionary object that maps item type identifiers to Style objects.
Namespace: MindFusion.Diagramming
File: Theme.js
SyntaxJavaScript
Copy Code
|
|---|
get styles() {} |
Map
Maps item types to Style objects.
ExampleThe following code sets default white background of ShapeNode objects when the theme is applied.
JavaScript
Copy Code
|
|---|
| var shapeNodeStyle = new Style(); shapeNodeStyle.brush = "white"; theme.styles.set("std:ShapeNode", shapeNodeStyle); |
See Also