UNPKG

765 BJavaScriptView Raw
1import { __assign } from "tslib";
2import { jsx } from '@antv/f-engine';
3import { deepMix } from '@antv/util';
4export default (function (props, context) {
5 var theme = props.theme;
6 var _a = deepMix(__assign({}, theme.point), props),
7 points = _a.points,
8 style = _a.style,
9 offsetX = _a.offsetX,
10 offsetY = _a.offsetY,
11 animation = _a.animation;
12 var _b = points[0] || {},
13 x = _b.x,
14 y = _b.y;
15 if (isNaN(x) || isNaN(y)) return null;
16 var offsetXNum = context.px2hd(offsetX);
17 var offsetYNum = context.px2hd(offsetY);
18 var posX = x + (offsetXNum || 0);
19 var posY = y + (offsetYNum || 0);
20 return jsx("group", null, jsx("circle", {
21 style: __assign({
22 cx: posX,
23 cy: posY
24 }, style),
25 animation: animation
26 }));
27});
\No newline at end of file