A dictionary object that maps item type identifiers to Style objects.
Namespace: MindFusion.Diagramming
File: 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); |
JavaScript Pack Programmer's Guide | © 2024 MindFusion |