Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents SVG elements of the TextContent category

Hierarchy

  • ISvgElementAttrs
  • Pick<ISvgPresentationAttrs, "colorInterpolation" | "direction" | "dominantBaseline" | "fill" | "fillOpacity" | "fillRule" | "fontFamily" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "fontWeight" | "letterSpacing" | "pointerEvents" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "textDecoration" | "unicodeBidi" | "vectorEffect" | "visibility" | "wordSpacing" | "writingMode">

Index

Properties

Optional aria

aria?: IAriaset

Combines aria-* properties into one object, so that it is easier (less verbose) to specify them. When this object is serialized to HTML element, each property name is converted to dash-style and prefixed with the aria- string. The values are always converted to strings according to the following rules:

  • strings are returned as is.
  • arrays are converted by converting their items using these rules and joining them with spaces.
  • everything else is converted by calling the toString method.

Optional class

class?: ClassMoniker

Optional color

color?: "inherit" | CssColor

Optional colorInterpolation

colorInterpolation?: "inherit" | ColorInterpolation_StyleType

Optional dataset

dataset?: DatasetPropType

Combines data-* properties into one object, so that it is easier (less verbose) to specify them. When this object is serialized to HTML element, each property name is converted to dash-style and prefixed with the data- string. The values are always converted to strings according to the following rules:

  • strings are returned as is.
  • arrays are converted by converting their items using these rules and joining them with spaces.
  • everything else is converted by calling the toString method.

Optional direction

direction?: "inherit" | Direction

Optional display

display?: Display_StyleType

Optional dominantBaseline

dominantBaseline?: "inherit" | DominantBaseline_StyleType

Optional draggable

draggable?: "true" | "false"

Optional fill

fill?: SvgPaint

Optional fillOpacity

fillOpacity?: SvgPercent

Optional fillRule

fillRule?: "inherit" | FillRule

Optional fontFamily

fontFamily?: string

Optional fontSize

fontSize?: "inherit" | SvgLength | FontSizeKeyword

Optional fontSizeAdjust

fontSizeAdjust?: number | "none" | "inherit"

Optional fontStretch

fontStretch?: "inherit" | SvgPercent | FontStretchKeyword

Optional fontStyle

fontStyle?: "normal" | "italic" | "oblique"

Optional fontVariant

fontVariant?: string

Optional fontWeight

fontWeight?: number | "bold" | "inherit" | "normal" | "bolder" | "lighter"

Optional id

Optional lang

lang?: string

Optional letterSpacing

letterSpacing?: "inherit" | "normal" | SvgLength

Optional pointerEvents

pointerEvents?: PointerEvents_StyleType

Optional role

role?: string

Optional stroke

stroke?: SvgPaint

Optional strokeDasharray

strokeDasharray?: "none" | OneOrMany<SvgLength>

Optional strokeDashoffset

strokeDashoffset?: SvgLength

Optional strokeLinecap

strokeLinecap?: StrokeLinecap_StyleType

Optional strokeLinejoin

strokeLinejoin?: StrokeLinejoin_StyleType

Optional strokeMiterlimit

strokeMiterlimit?: number

Optional strokeOpacity

strokeOpacity?: SvgPercent

Optional strokeWidth

strokeWidth?: SvgLength

Optional style

style?: string | Styleset

Optional tabindex

tabindex?: number

Optional textAnchor

textAnchor?: "inherit" | TextAnchor_StyleType

Optional textDecoration

textDecoration?: "blink" | "none" | "inherit" | "underline" | "overline" | "line-through"

Optional transform

transform?: Transform_StyleType

Optional transformOrigin

transformOrigin?: number | "bottom" | "left" | "right" | "top" | `${number}%` | `${number}in` | `${number}fr` | `${number}Q` | `${number}ch` | `${number}cm` | `${number}em` | `${number}ex` | `${number}ic` | `${number}lh` | `${number}mm` | `${number}pc` | `${number}pt` | `${number}px` | `${number}vb` | `${number}vh` | `${number}vi` | `${number}vw` | `${number}rem` | `${number}rlh` | `${number}vmax` | `${number}vmin` | "center" | [SvgLength | HorizontalPositionKeyword, SvgLength | VerticalPositionKeyword, SvgLength?]

Optional unicodeBidi

unicodeBidi?: UnicodeBidi_StyleType

Optional vectorEffect

vectorEffect?: VectorEffect_StyleType

Optional visibility

visibility?: "inherit" | Visibility_StyleType

Optional wordSpacing

wordSpacing?: "inherit" | SvgLength

Optional writingMode

writingMode?: "inherit" | WritingMode_StyleType

Optional xmlns

xmlns?: string