MCPcopy Create free account
hub / github.com/feiyu563/PrometheusAlert / getRelativePosition

Function getRelativePosition

static/plugins/chart.js/Chart.js:6711–6720  ·  view source on GitHub ↗

* Helper function to get relative position for an event * @param {Event|IEvent} event - The event to get the position for * @param {Chart} chart - The chart * @returns {object} the event position

(e, chart)

Source from the content-addressed store, hash-verified

6709 * @returns {object} the event position
6710 */
6711function getRelativePosition(e, chart) {
6712 if (e.native) {
6713 return {
6714 x: e.x,
6715 y: e.y
6716 };
6717 }
6718
6719 return helpers$1.getRelativePosition(e, chart);
6720}
6721
6722/**
6723 * Helper function to traverse all of the visible elements in the chart

Callers 2

indexModeFunction · 0.70
Chart.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected