1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.MaybeTupleX = void 0;
|
4 | const util_1 = require("@antv/util");
|
5 | const helper_1 = require("./utils/helper");
|
6 |
|
7 |
|
8 |
|
9 |
|
10 | const MaybeTupleX = () => {
|
11 | return (I, mark) => {
|
12 | const { data } = mark;
|
13 | if (!Array.isArray(data) || data.some(helper_1.isObject))
|
14 | return [I, mark];
|
15 | return [I, (0, util_1.deepMix)({}, mark, { encode: { x: (0, helper_1.column)(data) } })];
|
16 | };
|
17 | };
|
18 | exports.MaybeTupleX = MaybeTupleX;
|
19 | exports.MaybeTupleX.props = {};
|
20 |
|
\ | No newline at end of file |