Struct dsntk_model::DmnStyle
source · pub struct DmnStyle {
pub id: String,
pub fill_color: Option<DcColor>,
pub stroke_color: Option<DcColor>,
pub font_color: Option<DcColor>,
pub font_family: Option<String>,
pub font_size: Option<f64>,
pub font_italic: Option<bool>,
pub font_bold: Option<bool>,
pub font_underline: Option<bool>,
pub font_strike_through: Option<bool>,
pub label_horizontal_alignment: Option<DcAlignmentKind>,
pub label_vertical_alignment: Option<DcAlignmentKind>,
}Expand description
DmnStyle is used to keep some non-normative visual attributes such as color and font.
Fields§
§id: StringA unique identifier for this style so it can be referenced. Only styles defined in the Dmndi can be referenced by DmnDiagramElement and DmnDiagram.
fill_color: Option<DcColor>The color use to fill the shape.Does not apply to DmnEdge. Default is white.
stroke_color: Option<DcColor>The color use to draw the shape borders. Default is black.
font_color: Option<DcColor>The color use to draw the label. Default is black.
font_family: Option<String>A comma-separated list of Font Name that can be used to display the text. Default is Arial.
font_size: Option<f64>The size in points of the font to use to display the text. Default is 8 points.
font_italic: Option<bool>If the text should be displayed in Italic. Default is false.
font_bold: Option<bool>If the text should be displayed in Bold. Default is false.
font_underline: Option<bool>If the text should be underlined. Default is false.
font_strike_through: Option<bool>If the text should be stroke through. Default is false.
label_horizontal_alignment: Option<DcAlignmentKind>How text should be positioned horizontally within the Label bounds. Default depends of the DmnDiagramElement the label is attached to (see 13.5).
label_vertical_alignment: Option<DcAlignmentKind>How the text should be positioned vertically inside the Label bounds.
Default depends of the DmnDiagramElement the label is attached to (see 13.5).
Start means top and end means bottom.