@visactor/react-vchart 2.0.23-alpha.8 → 2.0.23-alpha.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.js +10 -13
- package/build/index.min.js +2 -2
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/esm/index.d.ts +1 -1
- package/esm/index.js +1 -1
- package/esm/index.js.map +1 -1
- package/package.json +5 -5
package/build/index.js
CHANGED
|
@@ -46492,20 +46492,16 @@
|
|
|
46492
46492
|
}
|
|
46493
46493
|
return isArray$1(spec) ? spec.map(s => specTransform(s, special)) : spec;
|
|
46494
46494
|
}
|
|
46495
|
-
function functionTransform(
|
|
46496
|
-
|
|
46497
|
-
if (
|
|
46495
|
+
function functionTransform(value, registry) {
|
|
46496
|
+
var _a;
|
|
46497
|
+
if (!value) return value;
|
|
46498
|
+
if (isString$1(value)) return null !== (_a = registry.getFunction(value)) && void 0 !== _a ? _a : value;
|
|
46499
|
+
if (isPlainObject$1(value)) {
|
|
46498
46500
|
const result = {};
|
|
46499
|
-
for (const key in
|
|
46500
|
-
if (isString$1(spec[key]) && VChart.getFunction(spec[key])) {
|
|
46501
|
-
result[key] = VChart.getFunction(spec[key]);
|
|
46502
|
-
continue;
|
|
46503
|
-
}
|
|
46504
|
-
result[key] = functionTransform(spec[key], VChart);
|
|
46505
|
-
}
|
|
46501
|
+
for (const key in value) Object.prototype.hasOwnProperty.call(value, key) && (result[key] = functionTransform(value[key], registry));
|
|
46506
46502
|
return result;
|
|
46507
46503
|
}
|
|
46508
|
-
return isArray$1(
|
|
46504
|
+
return isArray$1(value) ? value.map(item => functionTransform(item, registry)) : value;
|
|
46509
46505
|
}
|
|
46510
46506
|
function transformFunctionAttribute(att, ...args) {
|
|
46511
46507
|
return isFunction$1(att) ? att(...args) : att;
|
|
@@ -51444,13 +51440,14 @@
|
|
|
51444
51440
|
if (this._cachedProcessedTheme[cacheKey]) return this._cachedProcessedTheme[cacheKey];
|
|
51445
51441
|
let theme = this._currentTheme;
|
|
51446
51442
|
return keys.forEach((key, index) => {
|
|
51443
|
+
var _a;
|
|
51447
51444
|
if (1 !== index || "series" !== keys[0] && "component" !== keys[0]) theme = null == theme ? void 0 : theme[key];else {
|
|
51448
51445
|
const buildInTheme = "series" === keys[0] ? Factory.getSeriesBuiltInTheme(key) : Factory.getComponentBuiltInTheme(key);
|
|
51449
51446
|
theme = theme ? mergeSpec({}, buildInTheme, theme[key]) : buildInTheme;
|
|
51450
51447
|
}
|
|
51451
51448
|
index === keys.length - 1 && isValid$1(theme) && (theme = preprocessTheme({
|
|
51452
51449
|
[key]: theme
|
|
51453
|
-
}, this._currentTheme.colorScheme, this._currentTheme.token)[key]);
|
|
51450
|
+
}, this._currentTheme.colorScheme, this._currentTheme.token)[key], (null === (_a = this.getFunctionList()) || void 0 === _a ? void 0 : _a.length) && (theme = functionTransform(theme, this)));
|
|
51454
51451
|
}), this._cachedProcessedTheme[cacheKey] = theme, theme;
|
|
51455
51452
|
}, removeUndefined(options), this._option = Object.assign(Object.assign({}, this._option), options), (null == options ? void 0 : options.optimize) && (this._option.optimize = Object.assign(Object.assign({}, this._option.optimize), options.optimize)), this._onError = null === (_a = this._option) || void 0 === _a ? void 0 : _a.onError;
|
|
51456
51453
|
const _k = this._option,
|
|
@@ -89290,7 +89287,7 @@
|
|
|
89290
89287
|
|
|
89291
89288
|
const VChartSimple = createChart('VChartSimple');
|
|
89292
89289
|
|
|
89293
|
-
const version = "2.0.
|
|
89290
|
+
const version = "2.0.23-alpha.8";
|
|
89294
89291
|
|
|
89295
89292
|
exports.Area = Area;
|
|
89296
89293
|
exports.AreaChart = AreaChart;
|