@visactor/vchart 2.1.3-alpha.5 → 2.1.3

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 (78) hide show
  1. package/build/es5/index.js +1 -1
  2. package/build/index.es.js +140 -49
  3. package/build/index.js +144 -49
  4. package/build/index.min.js +2 -2
  5. package/build/tsconfig.tsbuildinfo +1 -1
  6. package/cjs/compile/compiler.d.ts +2 -0
  7. package/cjs/compile/compiler.js +23 -8
  8. package/cjs/compile/compiler.js.map +1 -1
  9. package/cjs/compile/interface/compiler.d.ts +1 -0
  10. package/cjs/compile/interface/compiler.js.map +1 -1
  11. package/cjs/component/poptip/index.js +5 -2
  12. package/cjs/component/poptip/index.js.map +1 -1
  13. package/cjs/constant/marker.js +1 -2
  14. package/cjs/constant/scatter.js +2 -1
  15. package/cjs/core/expression-function.js +1 -1
  16. package/cjs/core/factory-registry.d.ts +2 -1
  17. package/cjs/core/factory-registry.js +3 -1
  18. package/cjs/core/factory-registry.js.map +1 -1
  19. package/cjs/core/factory.d.ts +4 -1
  20. package/cjs/core/factory.js +4 -1
  21. package/cjs/core/factory.js.map +1 -1
  22. package/cjs/core/index.d.ts +1 -1
  23. package/cjs/core/index.js +1 -1
  24. package/cjs/core/index.js.map +1 -1
  25. package/cjs/core/vchart.js +9 -3
  26. package/cjs/core/vchart.js.map +1 -1
  27. package/cjs/data/data-view-utils.js +1 -1
  28. package/cjs/data/transforms/funnel.js +9 -4
  29. package/cjs/data/transforms/funnel.js.map +1 -1
  30. package/cjs/interaction/interaction.d.ts +2 -0
  31. package/cjs/interaction/interaction.js +19 -11
  32. package/cjs/interaction/interaction.js.map +1 -1
  33. package/cjs/mark/glyph.d.ts +1 -1
  34. package/cjs/mark/glyph.js +7 -6
  35. package/cjs/mark/glyph.js.map +1 -1
  36. package/cjs/series/base/base-series.js +1 -1
  37. package/cjs/series/base/base-series.js.map +1 -1
  38. package/cjs/series/funnel/interface.js.map +1 -1
  39. package/cjs/series/sankey/sankey.d.ts +3 -0
  40. package/cjs/series/sankey/sankey.js +26 -16
  41. package/cjs/series/sankey/sankey.js.map +1 -1
  42. package/esm/compile/compiler.d.ts +2 -0
  43. package/esm/compile/compiler.js +24 -7
  44. package/esm/compile/compiler.js.map +1 -1
  45. package/esm/compile/interface/compiler.d.ts +1 -0
  46. package/esm/compile/interface/compiler.js.map +1 -1
  47. package/esm/component/poptip/index.js +8 -2
  48. package/esm/component/poptip/index.js.map +1 -1
  49. package/esm/constant/marker.js +1 -2
  50. package/esm/constant/scatter.js +2 -1
  51. package/esm/core/expression-function.js +1 -1
  52. package/esm/core/factory-registry.d.ts +2 -1
  53. package/esm/core/factory-registry.js +3 -1
  54. package/esm/core/factory-registry.js.map +1 -1
  55. package/esm/core/factory.d.ts +4 -1
  56. package/esm/core/factory.js +3 -1
  57. package/esm/core/factory.js.map +1 -1
  58. package/esm/core/index.d.ts +1 -1
  59. package/esm/core/index.js +1 -1
  60. package/esm/core/index.js.map +1 -1
  61. package/esm/core/vchart.js +9 -3
  62. package/esm/core/vchart.js.map +1 -1
  63. package/esm/data/data-view-utils.js +1 -1
  64. package/esm/data/transforms/funnel.js +8 -5
  65. package/esm/data/transforms/funnel.js.map +1 -1
  66. package/esm/interaction/interaction.d.ts +2 -0
  67. package/esm/interaction/interaction.js +19 -11
  68. package/esm/interaction/interaction.js.map +1 -1
  69. package/esm/mark/glyph.d.ts +1 -1
  70. package/esm/mark/glyph.js +7 -6
  71. package/esm/mark/glyph.js.map +1 -1
  72. package/esm/series/base/base-series.js +1 -1
  73. package/esm/series/base/base-series.js.map +1 -1
  74. package/esm/series/funnel/interface.js.map +1 -1
  75. package/esm/series/sankey/sankey.d.ts +3 -0
  76. package/esm/series/sankey/sankey.js +26 -15
  77. package/esm/series/sankey/sankey.js.map +1 -1
  78. package/package.json +9 -9
@@ -268,8 +268,13 @@ export class VChart {
268
268
  renderCanvas && (this._canvas = renderCanvas), stage && (this._stage = stage), "node" !== mode && !this._container && !this._canvas && !this._stage) return void (null === (_b = this._option) || void 0 === _b || _b.onError("please specify container or renderCanvas!"));
269
269
  this._viewBox = this._option.viewBox, this._currentThemeName = ThemeManager.getCurrentThemeName(),
270
270
  this._setNewSpec(spec), this._updateCurrentTheme(), this._currentSize = this.getCurrentSize();
271
- const pluginList = [];
272
- !1 !== poptip && pluginList.push("poptipForText"), "sankey" === spec.type && pluginList.push("scrollbar");
271
+ const pluginList = [], runtimePluginInstallers = [];
272
+ if (!1 !== poptip) {
273
+ const poptipInstaller = Factory.getRuntimePluginInstaller("poptipForText");
274
+ poptipInstaller && (poptipInstaller(), runtimePluginInstallers.push(poptipInstaller)),
275
+ pluginList.push("poptipForText");
276
+ }
277
+ "sankey" === spec.type && pluginList.push("scrollbar");
273
278
  const logger = new Logger(null !== (_c = this._option.logLevel) && void 0 !== _c ? _c : LoggerLevel.Error);
274
279
  Logger.setInstance(logger), (null === (_d = this._option) || void 0 === _d ? void 0 : _d.onError) && logger.addErrorHandler(((...args) => {
275
280
  var _a, _b;
@@ -280,7 +285,8 @@ export class VChart {
280
285
  }, Object.assign(Object.assign({
281
286
  mode: this._option.mode,
282
287
  stage: stage,
283
- pluginList: pluginList
288
+ pluginList: pluginList,
289
+ runtimePluginInstallers: runtimePluginInstallers
284
290
  }, restOptions), {
285
291
  background: this._getBackground(),
286
292
  onError: this._onError