Protected
_colorsStores a collection of color settings grouped by context (type or module name).
Protected
_contextStores arbitrary string settings grouped by context (eg. some module, stencil type, etc.).
Protected
_fontA collection of font family settings for different contexts (type or module names).
Default background color.
Default color.
Default fill color.
Default font family.
Default font size.
Default stroke (line) color.
Default stroke width.
Default text (font) color.
Returns a color setting by provided context and type of color.
type or module name
color kind (text, fill, stroke, etc.)
CSS color string for the context-type pair or the default color for the type.
Returns an arbitrary string setting for provided context and setting name.
dashhArray = settings.getContextString('DiamondStencil', 'strokeDashArray');
type or module name (or other context collection)
setting name
string setting for context-name pair or undefined, if not found.
Gets the stroke dash array setting for the provided type (context) or the default stroke dash array, if not found.
type or module name (or other context)
stroke dash array for the context or the defaultStrokeDasharray.
Returns special font family for the provided context or the default font family.
type or module name (or other context)
custom font family for the context or defaultFontFamily
Returns a custom font size for the specified context or the default font size.
type or module name
custom font size or defaultFontSize
Returns stroke width for the specified context (type or module name) or the default stroke width.
type or module name
stroke width for the context or defaultStrokeWidth
Sets contextual color setting value.
setting group (stencil or connector type, etc.)
type of color (text, stroke, fill, etc.)
string color value.
Sets custom font size for the supplied context.
type or module name
font size value
Generated using TypeDoc
Diagram settings represent a collection of core and custom settings for a diagram.