1 | import { __assign, __extends } from "tslib";
|
2 | import { jsx } from '@antv/f-engine';
|
3 | import { withInterval } from '../interval';
|
4 | var Pictorial = function (_super) {
|
5 | __extends(Pictorial, _super);
|
6 | function Pictorial() {
|
7 | return _super !== null && _super.apply(this, arguments) || this;
|
8 | }
|
9 | Pictorial.prototype.render = function () {
|
10 | var _a = this,
|
11 | props = _a.props,
|
12 | context = _a.context;
|
13 | var px2hd = context.px2hd;
|
14 | var _Symbol = px2hd(props).symbol;
|
15 | var records = this.mapping();
|
16 | return jsx("group", null, records.map(function (record) {
|
17 | var key = record.key,
|
18 | children = record.children;
|
19 | return jsx("group", {
|
20 | key: key
|
21 | }, children.map(function (item) {
|
22 | var xMax = item.xMax,
|
23 | xMin = item.xMin,
|
24 | yMax = item.yMax,
|
25 | yMin = item.yMin;
|
26 | return jsx(_Symbol, __assign({}, item, {
|
27 | width: xMax - xMin,
|
28 | height: yMax - yMin,
|
29 | px2hd: px2hd
|
30 | }));
|
31 | }));
|
32 | }));
|
33 | };
|
34 | return Pictorial;
|
35 | }(withInterval({}));
|
36 | export default Pictorial; |
\ | No newline at end of file |