chartjs-plugin-zoom / Point
Type Alias: Point
ts
type Point = object;Defined in: types.ts:10
A position in canvas pixels.
Chart.js 4.5 widened its own Point to { x: number | null; y: number | null } so that it can also describe a gap in a dataset. Everything this plugin measures or moves -- a zoom centre, a drag corner, a pan delta -- is a real coordinate, so the geometry here keeps its own non-nullable type rather than null checking values that are never null.
Properties
x
ts
x: number;Defined in: types.ts:10
y
ts
y: number;Defined in: types.ts:10