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