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