Search
Theme.styles Property
See Also
 






A dictionary object that maps item type identifiers to Style objects.

Namespace: MindFusion.Diagramming
File: Theme.js

 Syntax

JavaScript  Copy Code

get styles() {}
set styles(value) {}

 Property Value

Map

Maps item types to Style objects.

 Example

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);

 See Also