UNPKG

ag-charts-community

Version:

Advanced Charting / Charts supporting Javascript / Typescript / React / Angular / Vue

15 lines 435 B
import { Marker } from "./marker"; export class Triangle extends Marker { updatePath() { let { x, y } = this; const { path, size } = this; const s = size * 1.1; path.clear(); path.moveTo(x, y -= s * 0.48); path.lineTo(x += s * 0.5, y += s * 0.87); path.lineTo(x -= s, y); path.closePath(); } } Triangle.className = 'Triangle'; //# sourceMappingURL=triangle.js.map