The default value null maps to blend values of normal for SVG and source-over for Canvas. Any valid CSS mix-blend-mode value except for "normal" can be used. The color blend mode for drawing an item on its current background. The miter limit at which to bevel a line join. The pixel offset at which to start the stroke dash array. One of butt (default), round or square.Īn array of lengths for creating dashed or dotted lines. The stroke opacity from 0 (transparent) to 1 (opaque). The fill opacity from 0 (transparent) to 1 (opaque). The mark opacity from 0 (transparent) to 1 (opaque). The height of the mark in pixels, if supported. The width of the mark in pixels, if supported. Additional positioning parameters, including dx, dy, radius, and theta, are applied relative to this point. The x and y properties determine an anchor point for the text. Values for theta follow the same convention of arc marks: angles are measured in radians, with 0 indicating up or “north”. Polar coordinate angle in radians, relative to the origin determined by the x and y properties (default 0). For versions ≥ 5.10, all text lines are white-space trimmed prior to rendering. For versions ≥ 5.7, a string array specifies multiple lines of text. This text may be truncated if the rendered length of the text exceeds the limit parameter. Polar coordinate radial offset in pixels, relative to the origin determined by the x and y properties (default 0). The text value will be automatically truncated if the rendered size exceeds the limit. The maximum length of the text mark in pixels (default 0, indicating no limit). The height, in pixels, of each line of text in a multi-line text mark or a text mark with "line-top" or "line-bottom" baseline. This property will be ignored if the text property is array-valued. The typeface to set the text in (e.g., Helvetica Neue).Ī delimiter, such as a newline character, upon which to break text strings into multiple lines. The ellipsis string for text truncated in response to the limit parameter (default “…”). The vertical offset in pixels (before rotation), between the text and anchor point. The horizontal offset in pixels (before rotation), between the text and anchor point. This property determines on which side is truncated in response to the limit parameter. One of ltr (left-to-right, default) or rtl (right-to-left). The line-top and line-bottom values ≥ 5.10 operate similarly to top and bottom, but are calculated relative to the lineHeight rather than fontSize alone. One of alphabetic (default), top, middle, bottom, line-top, or line-bottom. The rotation angle of the text in degrees (default 0). View Source Export PNG Export SVG Type-Specific Mark Properties Property