UNPKG

@antv/f2

Version:

Charts for mobile visualization.

26 lines 724 B
import { __assign } from "tslib"; import { jsx } from '@antv/f-engine'; import { deepMix } from '@antv/util'; export default (function (props, context) { var theme = props.theme; var _a = deepMix(__assign({}, theme.point), props), points = _a.points, style = _a.style, offsetX = _a.offsetX, offsetY = _a.offsetY, animation = _a.animation; var _b = points[0] || {}, x = _b.x, y = _b.y; var offsetXNum = context.px2hd(offsetX); var offsetYNum = context.px2hd(offsetY); var posX = x + (offsetXNum || 0); var posY = y + (offsetYNum || 0); return jsx("group", null, jsx("circle", { style: __assign({ cx: posX, cy: posY }, style), animation: animation })); });