UNPKG

979 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3var base_1 = require("../base");
4var util_1 = require("./util");
5/**
6 * 描边但不填充的区域图
7 */
8(0, base_1.registerShape)('area', 'line', {
9 draw: function (cfg, container) {
10 var attrs = (0, util_1.getShapeAttrs)(cfg, true, false, this);
11 var shape = container.addShape({
12 type: 'path',
13 attrs: attrs,
14 name: 'area',
15 });
16 return shape;
17 },
18 getMarker: function (markerCfg) {
19 var color = markerCfg.color;
20 return {
21 symbol: function (x, y, r) {
22 if (r === void 0) { r = 5.5; }
23 return [['M', x - r, y - 4], ['L', x + r, y - 4], ['L', x + r, y + 4], ['L', x - r, y + 4], ['Z']];
24 },
25 style: {
26 r: 5,
27 stroke: color,
28 fill: null,
29 },
30 };
31 },
32});
33//# sourceMappingURL=line.js.map
\No newline at end of file