MCPcopy Create free account
hub / github.com/chartjs/Chart.js / getCenterPoint

Method getCenterPoint

src/elements/element.point.ts:76–79  ·  view source on GitHub ↗
(useFinalPosition?: boolean)

Source from the content-addressed store, hash-verified

74 }
75
76 getCenterPoint(useFinalPosition?: boolean) {
77 const {x, y} = this.getProps(['x', 'y'], useFinalPosition);
78 return {x, y};
79 }
80
81 size(options?: Partial<PointOptions & PointHoverOptions>) {
82 options = options || this.options || {};

Callers

nothing calls this directly

Calls 1

getPropsMethod · 0.80

Tested by

no test coverage detected