DrawingOptions interface

Options for customizing the drawing routines

Signature:

export declare interface DrawingOptions 

Properties

Property Type Description
color string | CanvasGradient | CanvasPattern | Callback<LandmarkData, string | CanvasGradient | CanvasPattern> The color that is used to draw the shape. Defaults to white.
fillColor string | CanvasGradient | CanvasPattern | Callback<LandmarkData, string | CanvasGradient | CanvasPattern> The color that is used to fill the shape. Defaults to .color (or black if color is not set).
lineWidth number | Callback<LandmarkData, number> The width of the line boundary of the shape. Defaults to 4.
radius number | Callback<LandmarkData, number> The radius of location marker. Defaults to 6.

DrawingOptions.color

The color that is used to draw the shape. Defaults to white.

Signature:

color?: string | CanvasGradient | CanvasPattern | Callback<LandmarkData, string | CanvasGradient | CanvasPattern>;

DrawingOptions.fillColor

The color that is used to fill the shape. Defaults to .color (or black if color is not set).

Signature:

fillColor?: string | CanvasGradient | CanvasPattern | Callback<LandmarkData, string | CanvasGradient | CanvasPattern>;

DrawingOptions.lineWidth

The width of the line boundary of the shape. Defaults to 4.

Signature:

lineWidth?: number | Callback<LandmarkData, number>;

DrawingOptions.radius

The radius of location marker. Defaults to 6.

Signature:

radius?: number | Callback<LandmarkData, number>;