MCPcopy
hub / github.com/chartjs/Chart.js / useOffsetPos

Function useOffsetPos

src/helpers/helpers.dom.ts:65–66  ·  view source on GitHub ↗
(x: number, y: number, target: HTMLElement | EventTarget)

Source from the content-addressed store, hash-verified

63}
64
65const useOffsetPos = (x: number, y: number, target: HTMLElement | EventTarget) =>
66 (x > 0 || y > 0) && (!target || !(target as HTMLElement).shadowRoot);
67
68/**
69 * @param e

Callers 1

getCanvasPositionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected