UNPKG

646 BJavaScriptView Raw
1"use strict";
2var __importDefault = (this && this.__importDefault) || function (mod) {
3 return (mod && mod.__esModule) ? mod : { "default": mod };
4};
5Object.defineProperty(exports, "__esModule", { value: true });
6var clone_1 = __importDefault(require("@antv/util/lib/clone"));
7// g2 的配置项为 xxCfg | null
8exports.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//# sourceMappingURL=transBooleanCfg.js.map
\No newline at end of file