UNPKG

ag-charts-community

Version:

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

28 lines 816 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const marker_1 = require("./marker"); class Plus extends marker_1.Marker { updatePath() { let { x, y } = this; const { path, size } = this; const s = size / 3; const hs = s / 2; path.clear(); path.moveTo(x -= hs, y -= hs); path.lineTo(x, y -= s); path.lineTo(x += s, y); path.lineTo(x, y += s); path.lineTo(x += s, y); path.lineTo(x, y += s); path.lineTo(x -= s, y); path.lineTo(x, y += s); path.lineTo(x -= s, y); path.lineTo(x, y -= s); path.lineTo(x -= s, y); path.lineTo(x, y -= s); path.closePath(); } } exports.Plus = Plus; Plus.className = 'Plus'; //# sourceMappingURL=plus.js.map