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

Method drawCaret

src/plugins/plugin.tooltip.js:749–755  ·  view source on GitHub ↗
(tooltipPoint, ctx, size, options)

Source from the content-addressed store, hash-verified

747 }
748
749 drawCaret(tooltipPoint, ctx, size, options) {
750 const caretPosition = this.getCaretPosition(tooltipPoint, size, options);
751
752 ctx.lineTo(caretPosition.x1, caretPosition.y1);
753 ctx.lineTo(caretPosition.x2, caretPosition.y2);
754 ctx.lineTo(caretPosition.x3, caretPosition.y3);
755 }
756
757 getCaretPosition(tooltipPoint, size, options) {
758 const {xAlign, yAlign} = this;

Callers 1

drawBackgroundMethod · 0.95

Calls 1

getCaretPositionMethod · 0.95

Tested by

no test coverage detected