OptionalfontThe font face of the text, which can be a CSS font-family string (e.g., 'Arial', 'Helvetica', 'Times New Roman') or undefined for a default font. If the font face is undefined, the rendering logic may choose a default font based on the node's properties or theme.
OptionalsizeThe font size of the text, which can be a number representing the size in pixels or undefined for a default size. If the font size is undefined, the rendering logic may choose a default size based on the node's properties or theme.
OptionalcolorThe color of the text, which can be a CSS color string (e.g., '#000000' for black) or undefined for a default color. If the color is undefined, the rendering logic may choose a default text color based on the node's properties or theme.
OptionalhaloThe color of a halo rendered around text to improve its visibility against complex backgrounds, which can be a CSS color string (e.g., '#ffffff' for white) or undefined for no halo. Use 'inherit' to use the same color as the node's fillstyle or diagram background.
OptionalalignThe alignment of the text relative to its anchor point, which can be 'left', 'center', or 'right'.
OptionalbaselineThe baseline of the text relative to its anchor point, which can be 'top', 'middle', or 'bottom'.
OptionalorientationThe orientation of the text, which can be 'horizontal' for normal left-to-right text or 'vertical' for text that is rotated 90 degrees clockwise.
OptionalweightOptionalitalicWhether the text is italicized, which can be true for italic text, false for normal style, or undefined for a default style.
TextStyle defines the properties of text that can be rendered on nodes in the diagram, including font, size, alignment, and color.