UNPKG

730 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.MaybeZeroY1 = void 0;
4const util_1 = require("@antv/util");
5const helper_1 = require("./utils/helper");
6/**
7 * Add zero constant encode for y1 channel.
8 */
9const 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};
23exports.MaybeZeroY1 = MaybeZeroY1;
24exports.MaybeZeroY1.props = {};
25//# sourceMappingURL=maybeZeroY1.js.map
\No newline at end of file