Skip to content

charton API


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

Function: crisp() ​

crisp(value, lineWidth?, pixelRatio?): number

Defined in: packages/core/src/primitives.ts:313

Coordinate of a line lineWidth css px wide that lands on whole device pixels at pixelRatio, so it renders sharp instead of blurred.

Parameters ​

value ​

number

lineWidth? ​

number = 1

pixelRatio? ​

number = 1

Returns ​

number