@visactor/vchart 2.1.3-alpha.4 → 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.
- package/build/es5/index.js +1 -1
- package/build/index.es.js +140 -49
- package/build/index.js +160 -52
- package/build/index.min.js +2 -2
- package/build/tsconfig.tsbuildinfo +1 -1
- package/cjs/chart/index.js +1 -1
- package/cjs/chart/stack.js +1 -1
- package/cjs/chart/util.js +1 -1
- package/cjs/compile/compiler.d.ts +2 -0
- package/cjs/compile/compiler.js +23 -8
- package/cjs/compile/compiler.js.map +1 -1
- package/cjs/compile/interface/compiler.d.ts +1 -0
- package/cjs/compile/interface/compiler.js.map +1 -1
- package/cjs/compile/state-manager.js +1 -2
- package/cjs/component/poptip/index.js +5 -2
- package/cjs/component/poptip/index.js.map +1 -1
- package/cjs/component/util.js +2 -1
- package/cjs/constant/marker.js +1 -2
- package/cjs/constant/scroll-bar.js +2 -1
- package/cjs/core/factory-registry.d.ts +2 -1
- package/cjs/core/factory-registry.js +4 -2
- package/cjs/core/factory-registry.js.map +1 -1
- package/cjs/core/factory.d.ts +4 -1
- package/cjs/core/factory.js +5 -2
- package/cjs/core/factory.js.map +1 -1
- package/cjs/core/index.d.ts +1 -1
- package/cjs/core/index.js +2 -2
- package/cjs/core/index.js.map +1 -1
- package/cjs/core/vchart.js +9 -3
- package/cjs/core/vchart.js.map +1 -1
- package/cjs/data/transforms/funnel.js +9 -4
- package/cjs/data/transforms/funnel.js.map +1 -1
- package/cjs/interaction/interaction.d.ts +2 -0
- package/cjs/interaction/interaction.js +19 -11
- package/cjs/interaction/interaction.js.map +1 -1
- package/cjs/mark/glyph.d.ts +1 -1
- package/cjs/mark/glyph.js +7 -6
- package/cjs/mark/glyph.js.map +1 -1
- package/cjs/series/base/base-series.js +1 -1
- package/cjs/series/base/base-series.js.map +1 -1
- package/cjs/series/funnel/interface.js.map +1 -1
- package/cjs/series/sankey/sankey.d.ts +3 -0
- package/cjs/series/sankey/sankey.js +26 -16
- package/cjs/series/sankey/sankey.js.map +1 -1
- package/esm/chart/index.js +1 -1
- package/esm/chart/stack.js +1 -1
- package/esm/chart/util.js +1 -1
- package/esm/compile/compiler.d.ts +2 -0
- package/esm/compile/compiler.js +24 -7
- package/esm/compile/compiler.js.map +1 -1
- package/esm/compile/interface/compiler.d.ts +1 -0
- package/esm/compile/interface/compiler.js.map +1 -1
- package/esm/compile/state-manager.js +1 -2
- package/esm/component/poptip/index.js +8 -2
- package/esm/component/poptip/index.js.map +1 -1
- package/esm/component/util.js +2 -1
- package/esm/constant/marker.js +1 -2
- package/esm/constant/scroll-bar.js +2 -1
- package/esm/core/factory-registry.d.ts +2 -1
- package/esm/core/factory-registry.js +4 -2
- package/esm/core/factory-registry.js.map +1 -1
- package/esm/core/factory.d.ts +4 -1
- package/esm/core/factory.js +4 -2
- package/esm/core/factory.js.map +1 -1
- package/esm/core/index.d.ts +1 -1
- package/esm/core/index.js +2 -2
- package/esm/core/index.js.map +1 -1
- package/esm/core/vchart.js +9 -3
- package/esm/core/vchart.js.map +1 -1
- package/esm/data/transforms/funnel.js +8 -5
- package/esm/data/transforms/funnel.js.map +1 -1
- package/esm/interaction/interaction.d.ts +2 -0
- package/esm/interaction/interaction.js +19 -11
- package/esm/interaction/interaction.js.map +1 -1
- package/esm/mark/glyph.d.ts +1 -1
- package/esm/mark/glyph.js +7 -6
- package/esm/mark/glyph.js.map +1 -1
- package/esm/series/base/base-series.js +1 -1
- package/esm/series/base/base-series.js.map +1 -1
- package/esm/series/funnel/interface.js.map +1 -1
- package/esm/series/sankey/sankey.d.ts +3 -0
- package/esm/series/sankey/sankey.js +26 -15
- package/esm/series/sankey/sankey.js.map +1 -1
- package/package.json +9 -9
package/esm/core/vchart.js
CHANGED
|
@@ -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
|
|
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
|