1 | "use strict";
|
2 | var __importDefault = (this && this.__importDefault) || function (mod) {
|
3 | return (mod && mod.__esModule) ? mod : { "default": mod };
|
4 | };
|
5 | Object.defineProperty(exports, "__esModule", { value: true });
|
6 | var clone_1 = __importDefault(require("@antv/util/lib/clone"));
|
7 |
|
8 | exports.default = (function (cfg, keys) {
|
9 | var opt = clone_1.default(cfg);
|
10 | keys.forEach(function (key) {
|
11 | if (opt[key] === true) {
|
12 | opt[key] = {};
|
13 | }
|
14 | else if (opt[key] === false) {
|
15 | opt[key] = null;
|
16 | }
|
17 | });
|
18 | return opt;
|
19 | });
|
20 |
|
\ | No newline at end of file |