@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.
Files changed (98) hide show
  1. package/build/es5/index.js +1 -1
  2. package/build/index.es.js +165 -21
  3. package/build/index.js +165 -21
  4. package/build/index.min.js +1 -1
  5. package/build/tsconfig.tsbuildinfo +1 -1
  6. package/cjs/animation/animation-planner.js +1 -1
  7. package/cjs/animation/callback-disappear.js +1 -1
  8. package/cjs/animation/config.js +2 -1
  9. package/cjs/animation/grammar-dector.js +1 -1
  10. package/cjs/animation/index.js +1 -1
  11. package/cjs/animation/interface.js +1 -1
  12. package/cjs/animation/sequential-animate.js +1 -1
  13. package/cjs/animation/spec.js +1 -1
  14. package/cjs/animation/state-transition.js +1 -1
  15. package/cjs/animation/utils.js +1 -1
  16. package/cjs/chart/util.js +1 -2
  17. package/cjs/compile/state-manager.js +2 -1
  18. package/cjs/component/axis/cartesian/axis.d.ts +12 -0
  19. package/cjs/component/axis/cartesian/axis.js +48 -2
  20. package/cjs/component/axis/cartesian/axis.js.map +1 -1
  21. package/cjs/component/axis/cartesian/interface/common.d.ts +1 -1
  22. package/cjs/component/axis/cartesian/interface/common.js.map +1 -1
  23. package/cjs/constant/event.js +1 -2
  24. package/cjs/constant/marker.js +2 -1
  25. package/cjs/core/factory-registry.js +1 -1
  26. package/cjs/core/factory.js +1 -1
  27. package/cjs/core/index.js +1 -2
  28. package/cjs/core/instance-manager.js +1 -1
  29. package/cjs/core/interface.js +1 -1
  30. package/cjs/core/util.js +1 -1
  31. package/cjs/core/vchart.js +4 -2
  32. package/cjs/core/vchart.js.map +1 -1
  33. package/cjs/data/data-view-utils.js +1 -1
  34. package/cjs/data/initialize.js +1 -1
  35. package/cjs/data/register.js +1 -1
  36. package/cjs/mark/component.js +1 -1
  37. package/cjs/mark/component.js.map +1 -1
  38. package/cjs/series/bar/bar.d.ts +4 -0
  39. package/cjs/series/bar/bar.js +17 -6
  40. package/cjs/series/bar/bar.js.map +1 -1
  41. package/cjs/series/funnel/interface.d.ts +6 -1
  42. package/cjs/series/funnel/interface.js.map +1 -1
  43. package/cjs/series/treemap/interface.d.ts +1 -1
  44. package/cjs/series/treemap/interface.js.map +1 -1
  45. package/cjs/theme/builtin/common/series/funnel.js +18 -0
  46. package/cjs/theme/builtin/common/series/funnel.js.map +1 -1
  47. package/cjs/typings/spec/common.d.ts +4 -2
  48. package/cjs/typings/spec/common.js.map +1 -1
  49. package/cjs/util/spec/transform.d.ts +5 -2
  50. package/cjs/util/spec/transform.js +7 -11
  51. package/cjs/util/spec/transform.js.map +1 -1
  52. package/esm/animation/animation-planner.js +1 -1
  53. package/esm/animation/callback-disappear.js +1 -1
  54. package/esm/animation/config.js +2 -1
  55. package/esm/animation/grammar-dector.js +1 -1
  56. package/esm/animation/index.js +1 -1
  57. package/esm/animation/interface.js +1 -1
  58. package/esm/animation/sequential-animate.js +1 -1
  59. package/esm/animation/spec.js +1 -1
  60. package/esm/animation/state-transition.js +1 -1
  61. package/esm/animation/utils.js +1 -1
  62. package/esm/chart/util.js +1 -2
  63. package/esm/compile/state-manager.js +2 -1
  64. package/esm/component/axis/cartesian/axis.d.ts +12 -0
  65. package/esm/component/axis/cartesian/axis.js +48 -1
  66. package/esm/component/axis/cartesian/axis.js.map +1 -1
  67. package/esm/component/axis/cartesian/interface/common.d.ts +1 -1
  68. package/esm/component/axis/cartesian/interface/common.js.map +1 -1
  69. package/esm/constant/event.js +1 -2
  70. package/esm/constant/marker.js +2 -1
  71. package/esm/core/factory-registry.js +1 -1
  72. package/esm/core/factory.js +1 -1
  73. package/esm/core/index.js +1 -2
  74. package/esm/core/instance-manager.js +1 -1
  75. package/esm/core/interface.js +1 -1
  76. package/esm/core/util.js +1 -1
  77. package/esm/core/vchart.js +3 -2
  78. package/esm/core/vchart.js.map +1 -1
  79. package/esm/data/data-view-utils.js +1 -1
  80. package/esm/data/initialize.js +1 -1
  81. package/esm/data/register.js +1 -1
  82. package/esm/mark/component.js +1 -1
  83. package/esm/mark/component.js.map +1 -1
  84. package/esm/series/bar/bar.d.ts +4 -0
  85. package/esm/series/bar/bar.js +16 -5
  86. package/esm/series/bar/bar.js.map +1 -1
  87. package/esm/series/funnel/interface.d.ts +6 -1
  88. package/esm/series/funnel/interface.js.map +1 -1
  89. package/esm/series/treemap/interface.d.ts +1 -1
  90. package/esm/series/treemap/interface.js.map +1 -1
  91. package/esm/theme/builtin/common/series/funnel.js +18 -0
  92. package/esm/theme/builtin/common/series/funnel.js.map +1 -1
  93. package/esm/typings/spec/common.d.ts +4 -2
  94. package/esm/typings/spec/common.js.map +1 -1
  95. package/esm/util/spec/transform.d.ts +5 -2
  96. package/esm/util/spec/transform.js +7 -11
  97. package/esm/util/spec/transform.js.map +1 -1
  98. package/package.json +5 -5
@@ -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
@@ -69,4 +69,4 @@ exports.factoryRegistry = null !== (_a = globalFactoryRegistry[factoryRegistryKe
69
69
  runtimePluginInstallers: {},
70
70
  formatter: void 0
71
71
  };
72
- //# sourceMappingURL=factory-registry.js.map
72
+ //# sourceMappingURL=factory-registry.js.map
@@ -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
@@ -206,5 +206,4 @@ Object.defineProperty(exports, "measureText", {
206
206
  get: function() {
207
207
  return text_1.measureText;
208
208
  }
209
- });
210
- //# sourceMappingURL=index.js.map
209
+ });
@@ -28,4 +28,4 @@ class InstanceManager {
28
28
  }
29
29
 
30
30
  exports.InstanceManager = InstanceManager, InstanceManager.instances = new Map;
31
- //# sourceMappingURL=instance-manager.js.map
31
+ //# sourceMappingURL=instance-manager.js.map
@@ -3,4 +3,4 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: !0
5
5
  });
6
- //# sourceMappingURL=interface.js.map
6
+ //# sourceMappingURL=interface.js.map
package/cjs/core/util.js CHANGED
@@ -9,4 +9,4 @@ const util_1 = require("../util");
9
9
  exports.VCHART_UTILS = {
10
10
  measureText: util_1.measureText
11
11
  };
12
- //# sourceMappingURL=util.js.map
12
+ //# sourceMappingURL=util.js.map
@@ -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