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

Method drawCaret

src/plugins/plugin.tooltip.js:691–697  ·  src/plugins/plugin.tooltip.js::Tooltip.drawCaret
(tooltipPoint, ctx, size, options)

Source from the content-addressed store, hash-verified

689 }
690
691 drawCaret(tooltipPoint, ctx, size, options) {
692 const caretPosition = this.getCaretPosition(tooltipPoint, size, options);
693
694 ctx.lineTo(caretPosition.x1, caretPosition.y1);
695 ctx.lineTo(caretPosition.x2, caretPosition.y2);
696 ctx.lineTo(caretPosition.x3, caretPosition.y3);
697 }
698
699 getCaretPosition(tooltipPoint, size, options) {
700 const {xAlign, yAlign} = this;

Callers 1

drawBackgroundMethod · 0.95

Calls 1

getCaretPositionMethod · 0.95

Tested by

no test coverage detected