@visactor/vchart 2.1.2 → 2.1.3-alpha.1

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 CHANGED
@@ -30717,6 +30717,37 @@
30717
30717
  });
30718
30718
  }
30719
30719
 
30720
+ const factoryRegistry = {
30721
+ charts: {},
30722
+ series: {},
30723
+ components: {},
30724
+ graphicComponents: {},
30725
+ marks: {},
30726
+ regions: {},
30727
+ animations: {},
30728
+ implements: {},
30729
+ chartPlugin: {},
30730
+ vChartPlugin: {},
30731
+ componentPlugin: {},
30732
+ transforms: {
30733
+ fields,
30734
+ filter,
30735
+ fold
30736
+ },
30737
+ dataParser: {
30738
+ csv: csvParser,
30739
+ dsv: dsvParser,
30740
+ tsv: tsvParser
30741
+ },
30742
+ layout: {},
30743
+ grammarTransforms: {},
30744
+ stageEventPlugins: {},
30745
+ interactionTriggers: {},
30746
+ composedEventMap: {},
30747
+ tooltipProcessors: {},
30748
+ formatter: undefined
30749
+ };
30750
+
30720
30751
  class Factory {
30721
30752
  static registerChart(key, chart) {
30722
30753
  Factory._charts[key] = chart;
@@ -30894,9 +30925,11 @@
30894
30925
  }
30895
30926
  static registerFormatter(func) {
30896
30927
  this._formatter = func;
30928
+ factoryRegistry.formatter = func;
30897
30929
  }
30898
30930
  static getFormatter() {
30899
- return this._formatter;
30931
+ var _a;
30932
+ return (_a = factoryRegistry.formatter) !== null && _a !== void 0 ? _a : this._formatter;
30900
30933
  }
30901
30934
  static createInteractionTrigger(interactionType, options) {
30902
30935
  const Ctor = Factory._interactionTriggers[interactionType];
@@ -30912,45 +30945,37 @@
30912
30945
  return Factory._composedEventMap[eType];
30913
30946
  }
30914
30947
  }
30915
- Factory._charts = {};
30916
- Factory._series = {};
30917
- Factory._components = {};
30918
- Factory._graphicComponents = {};
30919
- Factory._marks = {};
30920
- Factory._regions = {};
30921
- Factory._animations = {};
30922
- Factory._implements = {};
30923
- Factory._chartPlugin = {};
30924
- Factory._vChartPlugin = {};
30925
- Factory._componentPlugin = {};
30926
- Factory.transforms = {
30927
- fields: fields,
30928
- filter: filter,
30929
- fold: fold
30930
- };
30931
- Factory.dataParser = {
30932
- csv: csvParser,
30933
- dsv: dsvParser,
30934
- tsv: tsvParser
30935
- };
30936
- Factory._layout = {};
30937
- Factory._grammarTransforms = {};
30938
- Factory._stageEventPlugins = {};
30948
+ Factory._charts = factoryRegistry.charts;
30949
+ Factory._series = factoryRegistry.series;
30950
+ Factory._components = factoryRegistry.components;
30951
+ Factory._graphicComponents = factoryRegistry.graphicComponents;
30952
+ Factory._marks = factoryRegistry.marks;
30953
+ Factory._regions = factoryRegistry.regions;
30954
+ Factory._animations = factoryRegistry.animations;
30955
+ Factory._implements = factoryRegistry.implements;
30956
+ Factory._chartPlugin = factoryRegistry.chartPlugin;
30957
+ Factory._vChartPlugin = factoryRegistry.vChartPlugin;
30958
+ Factory._componentPlugin = factoryRegistry.componentPlugin;
30959
+ Factory.transforms = factoryRegistry.transforms;
30960
+ Factory.dataParser = factoryRegistry.dataParser;
30961
+ Factory._layout = factoryRegistry.layout;
30962
+ Factory._grammarTransforms = factoryRegistry.grammarTransforms;
30963
+ Factory._stageEventPlugins = factoryRegistry.stageEventPlugins;
30939
30964
  Factory.registerStageEventPlugin = (type, Plugin) => {
30940
30965
  Factory._stageEventPlugins[type] = Plugin;
30941
30966
  };
30942
30967
  Factory.getStageEventPlugin = (type) => {
30943
30968
  return Factory._stageEventPlugins[type];
30944
30969
  };
30945
- Factory._interactionTriggers = {};
30970
+ Factory._interactionTriggers = factoryRegistry.interactionTriggers;
30946
30971
  Factory.registerInteractionTrigger = (interactionType, interaction) => {
30947
30972
  Factory._interactionTriggers[interactionType] = interaction;
30948
30973
  };
30949
- Factory._composedEventMap = {};
30974
+ Factory._composedEventMap = factoryRegistry.composedEventMap;
30950
30975
  Factory.registerComposedEvent = (eType, composedEvent) => {
30951
30976
  Factory._composedEventMap[eType] = composedEvent;
30952
30977
  };
30953
- Factory._tooltipProcessors = {};
30978
+ Factory._tooltipProcessors = factoryRegistry.tooltipProcessors;
30954
30979
  Factory.registerTooltipProcessor = (type, processor) => {
30955
30980
  Factory._tooltipProcessors[type] = processor;
30956
30981
  };
@@ -49227,7 +49252,7 @@
49227
49252
  });
49228
49253
  };
49229
49254
 
49230
- const version = "2.1.2";
49255
+ const version = "2.1.1";
49231
49256
 
49232
49257
  const addVChartProperty = (data, op) => {
49233
49258
  const context = op.beforeCall();