@visactor/vchart 2.1.3 → 2.1.4-alpha.0
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/es5/index.js +1 -1
- package/build/index.es.js +165 -21
- package/build/index.js +165 -21
- package/build/index.min.js +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/cjs/animation/animation-planner.js +1 -1
- package/cjs/animation/callback-disappear.js +1 -1
- package/cjs/animation/config.js +2 -1
- package/cjs/animation/grammar-dector.js +1 -1
- package/cjs/animation/index.js +1 -1
- package/cjs/animation/interface.js +1 -1
- package/cjs/animation/sequential-animate.js +1 -1
- package/cjs/animation/spec.js +1 -1
- package/cjs/animation/state-transition.js +1 -1
- package/cjs/animation/utils.js +1 -1
- package/cjs/chart/util.js +1 -2
- package/cjs/compile/state-manager.js +2 -1
- package/cjs/component/axis/cartesian/axis.d.ts +12 -0
- package/cjs/component/axis/cartesian/axis.js +48 -2
- package/cjs/component/axis/cartesian/axis.js.map +1 -1
- package/cjs/component/axis/cartesian/interface/common.d.ts +1 -1
- package/cjs/component/axis/cartesian/interface/common.js.map +1 -1
- package/cjs/constant/event.js +1 -2
- package/cjs/constant/marker.js +2 -1
- package/cjs/core/factory-registry.js +1 -1
- package/cjs/core/factory.js +1 -1
- package/cjs/core/index.js +1 -2
- package/cjs/core/instance-manager.js +1 -1
- package/cjs/core/interface.js +1 -1
- package/cjs/core/util.js +1 -1
- package/cjs/core/vchart.js +4 -2
- package/cjs/core/vchart.js.map +1 -1
- package/cjs/data/data-view-utils.js +1 -1
- package/cjs/data/initialize.js +1 -1
- package/cjs/data/register.js +1 -1
- package/cjs/mark/component.js +1 -1
- package/cjs/mark/component.js.map +1 -1
- package/cjs/series/bar/bar.d.ts +4 -0
- package/cjs/series/bar/bar.js +17 -6
- package/cjs/series/bar/bar.js.map +1 -1
- package/cjs/series/funnel/interface.d.ts +6 -1
- package/cjs/series/funnel/interface.js.map +1 -1
- package/cjs/series/treemap/interface.d.ts +1 -1
- package/cjs/series/treemap/interface.js.map +1 -1
- package/cjs/theme/builtin/common/series/funnel.js +18 -0
- package/cjs/theme/builtin/common/series/funnel.js.map +1 -1
- package/cjs/typings/spec/common.d.ts +4 -2
- package/cjs/typings/spec/common.js.map +1 -1
- package/cjs/util/spec/transform.d.ts +5 -2
- package/cjs/util/spec/transform.js +7 -11
- package/cjs/util/spec/transform.js.map +1 -1
- package/esm/animation/animation-planner.js +1 -1
- package/esm/animation/callback-disappear.js +1 -1
- package/esm/animation/config.js +2 -1
- package/esm/animation/grammar-dector.js +1 -1
- package/esm/animation/index.js +1 -1
- package/esm/animation/interface.js +1 -1
- package/esm/animation/sequential-animate.js +1 -1
- package/esm/animation/spec.js +1 -1
- package/esm/animation/state-transition.js +1 -1
- package/esm/animation/utils.js +1 -1
- package/esm/chart/util.js +1 -2
- package/esm/compile/state-manager.js +2 -1
- package/esm/component/axis/cartesian/axis.d.ts +12 -0
- package/esm/component/axis/cartesian/axis.js +48 -1
- package/esm/component/axis/cartesian/axis.js.map +1 -1
- package/esm/component/axis/cartesian/interface/common.d.ts +1 -1
- package/esm/component/axis/cartesian/interface/common.js.map +1 -1
- package/esm/constant/event.js +1 -2
- package/esm/constant/marker.js +2 -1
- package/esm/core/factory-registry.js +1 -1
- package/esm/core/factory.js +1 -1
- package/esm/core/index.js +1 -2
- package/esm/core/instance-manager.js +1 -1
- package/esm/core/interface.js +1 -1
- package/esm/core/util.js +1 -1
- package/esm/core/vchart.js +3 -2
- package/esm/core/vchart.js.map +1 -1
- package/esm/data/data-view-utils.js +1 -1
- package/esm/data/initialize.js +1 -1
- package/esm/data/register.js +1 -1
- package/esm/mark/component.js +1 -1
- package/esm/mark/component.js.map +1 -1
- package/esm/series/bar/bar.d.ts +4 -0
- package/esm/series/bar/bar.js +16 -5
- package/esm/series/bar/bar.js.map +1 -1
- package/esm/series/funnel/interface.d.ts +6 -1
- package/esm/series/funnel/interface.js.map +1 -1
- package/esm/series/treemap/interface.d.ts +1 -1
- package/esm/series/treemap/interface.js.map +1 -1
- package/esm/theme/builtin/common/series/funnel.js +18 -0
- package/esm/theme/builtin/common/series/funnel.js.map +1 -1
- package/esm/typings/spec/common.d.ts +4 -2
- package/esm/typings/spec/common.js.map +1 -1
- package/esm/util/spec/transform.d.ts +5 -2
- package/esm/util/spec/transform.js +7 -11
- package/esm/util/spec/transform.js.map +1 -1
- package/package.json +5 -5
package/cjs/constant/marker.js
CHANGED
|
@@ -3,4 +3,5 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: !0
|
|
5
5
|
}), exports.REGRESS_TYPE = exports.AGGR_TYPE = void 0, exports.AGGR_TYPE = [ "sum", "average", "min", "max", "variance", "standardDeviation", "median" ],
|
|
6
|
-
exports.REGRESS_TYPE = [ "regression" ];
|
|
6
|
+
exports.REGRESS_TYPE = [ "regression" ];
|
|
7
|
+
//# sourceMappingURL=marker.js.map
|
package/cjs/core/factory.js
CHANGED
|
@@ -200,4 +200,4 @@ Factory.registerTooltipProcessor = (type, processor) => {
|
|
|
200
200
|
Factory.registerRuntimePluginInstaller = (type, installer) => {
|
|
201
201
|
Factory._runtimePluginInstallers[type] = installer;
|
|
202
202
|
}, Factory.getRuntimePluginInstaller = type => Factory._runtimePluginInstallers[type];
|
|
203
|
-
//# sourceMappingURL=factory.js.map
|
|
203
|
+
//# sourceMappingURL=factory.js.map
|
package/cjs/core/index.js
CHANGED
package/cjs/core/interface.js
CHANGED
package/cjs/core/util.js
CHANGED
package/cjs/core/vchart.js
CHANGED
|
@@ -171,13 +171,15 @@ class VChart {
|
|
|
171
171
|
if (this._cachedProcessedTheme[cacheKey]) return this._cachedProcessedTheme[cacheKey];
|
|
172
172
|
let theme = this._currentTheme;
|
|
173
173
|
return keys.forEach(((key, index) => {
|
|
174
|
+
var _a;
|
|
174
175
|
if (1 !== index || "series" !== keys[0] && "component" !== keys[0]) theme = null == theme ? void 0 : theme[key]; else {
|
|
175
176
|
const buildInTheme = "series" === keys[0] ? factory_1.Factory.getSeriesBuiltInTheme(key) : factory_1.Factory.getComponentBuiltInTheme(key);
|
|
176
177
|
theme = theme ? (0, vutils_extension_1.mergeSpec)({}, buildInTheme, theme[key]) : buildInTheme;
|
|
177
178
|
}
|
|
178
179
|
index === keys.length - 1 && (0, util_1.isValid)(theme) && (theme = (0, theme_1.preprocessTheme)({
|
|
179
180
|
[key]: theme
|
|
180
|
-
}, this._currentTheme.colorScheme, this._currentTheme.token)[key])
|
|
181
|
+
}, this._currentTheme.colorScheme, this._currentTheme.token)[key], (null === (_a = this.getFunctionList()) || void 0 === _a ? void 0 : _a.length) && (theme = (0,
|
|
182
|
+
util_1.functionTransform)(theme, this)));
|
|
181
183
|
})), this._cachedProcessedTheme[cacheKey] = theme, theme;
|
|
182
184
|
}, (0, util_1.removeUndefined)(options), this._option = Object.assign(Object.assign({}, this._option), options),
|
|
183
185
|
(null == options ? void 0 : options.optimize) && (this._option.optimize = Object.assign(Object.assign({}, this._option.optimize), options.optimize)),
|
|
@@ -981,4 +983,4 @@ const registerVChartCore = () => {
|
|
|
981
983
|
};
|
|
982
984
|
|
|
983
985
|
exports.registerVChartCore = registerVChartCore, (0, exports.registerVChartCore)();
|
|
984
|
-
//# sourceMappingURL=vchart.js.map
|
|
986
|
+
//# sourceMappingURL=vchart.js.map
|