Skip to main content
Module

x/fresh_charts/deps.ts>ChartJs.RenderTextOpts

A server-side-rendered charting library for Fresh
Go to Latest
interface ChartJs.RenderTextOpts
import { type ChartJs } from "https://deno.land/x/fresh_charts@0.3.0/deps.ts";
const { RenderTextOpts } = ChartJs;

Properties

optional
color: Color

The fill color of the text. If unset, the existing fillStyle property of the canvas is unchanged.

optional
decorationWidth: number

The width of the strikethrough / underline

optional
maxWidth: number

The max width of the text in pixels

optional
rotation: number

A rotation to be applied to the canvas This is applied after the translation is applied

optional
strikethrough: boolean

Apply a strikethrough effect to the text

optional
strokeColor: Color

The color of the text stroke. If unset, the existing strokeStyle property of the context is unchanged

optional
strokeWidth: number

The text stroke width. If unset, the existing lineWidth property of the context is unchanged

optional
textAlign: CanvasTextAlign

The text alignment to use. If unset, the existing textAlign property of the context is unchanged

optional
textBaseline: CanvasTextBaseline

The text baseline to use. If unset, the existing textBaseline property of the context is unchanged

optional
translation: [number, number]

If specified, a translation to apply to the context

optional
underline: boolean

Underline the text

optional
backdrop: BackdropOptions

Dimensions for drawing the label backdrop