Search results

Circular3DSvgRenderer API in JavaScript Circular3d API control

The Circular3DSvgRenderer class provides methods for rendering SVG graphics in a 3D context.

Methods

checkColorFormat

Checks if a given color string is in a valid format (hex or rgba).

Parameter Type Description
color string The color string to check.

Returns boolean

drawText

Draws text on an SVG element.

Parameter Type Description
options SVGCanvasAttributes The options for drawing the text.
label string | string[] The text label.
font FontModel The font settings for the text.
chart Circular3D The circular 3D chart instance.

Returns Element

getStringBuilder

Gets a Circular3DStringBuilder instance for constructing strings.

Returns Circular3DStringBuilder

hexColor

Converts a Circular3DColorFormat object to its corresponding color string.

Parameter Type Description
color Circular3DColorFormat The color in Circular3DColorFormat.

Returns string

hexToValue

Parses a hex color code and returns its Red green Blue values.

Parameter Type Description
hexColorCode string The hex color code.

Returns Circular3DColorFormat | null