Skip to content

charton API


charton API / @chart-on/core / index / fillOf

Function: fillOf() ​

fillOf(s, tint): string

Defined in: packages/core/src/drawing/draw.ts:38

The color a tool fills its background with: the style's fill, else the tool's own tint, and 'transparent' when showFill is false. A tool whose fill is opt-in passes 'transparent' as its tint and skips filling when it gets it back.

Parameters ​

s ​

DrawingStyle

tint ​

string

Returns ​

string