UNPKG

ag-charts-community

Version:

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

24 lines 741 B
import { Marker } from "./marker"; export class Cross extends Marker { updatePath() { let { x, y } = this; const { path, size } = this; const s = size / 4.2; path.clear(); path.moveTo(x -= s, y); path.lineTo(x -= s, y -= s); path.lineTo(x += s, y -= s); path.lineTo(x += s, y += s); path.lineTo(x += s, y -= s); path.lineTo(x += s, y += s); path.lineTo(x -= s, y += s); path.lineTo(x += s, y += s); path.lineTo(x -= s, y += s); path.lineTo(x -= s, y -= s); path.lineTo(x -= s, y += s); path.lineTo(x -= s, y -= s); path.closePath(); } } Cross.className = 'Cross'; //# sourceMappingURL=cross.js.map