A dictionary object that maps item type identifiers to Style objects.
Namespace: MindFusion.Diagramming
Package: Theme.js
JavaScript Copy Code |
---|
get styles() {} |
Map
Maps item types to Style objects.
The 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); |
NetDiagram Programmer's Guide | © 2023 MindFusion |