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