@visactor/react-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 +39 -15
- package/build/index.min.js +3 -3
- package/cjs/index.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/esm/index.d.ts +1 -1
- package/esm/index.js +1 -1
- package/esm/index.js.map +1 -1
- package/package.json +5 -5
package/build/index.js
CHANGED
|
@@ -30806,6 +30806,37 @@
|
|
|
30806
30806
|
});
|
|
30807
30807
|
}
|
|
30808
30808
|
|
|
30809
|
+
const factoryRegistry = {
|
|
30810
|
+
charts: {},
|
|
30811
|
+
series: {},
|
|
30812
|
+
components: {},
|
|
30813
|
+
graphicComponents: {},
|
|
30814
|
+
marks: {},
|
|
30815
|
+
regions: {},
|
|
30816
|
+
animations: {},
|
|
30817
|
+
implements: {},
|
|
30818
|
+
chartPlugin: {},
|
|
30819
|
+
vChartPlugin: {},
|
|
30820
|
+
componentPlugin: {},
|
|
30821
|
+
transforms: {
|
|
30822
|
+
fields: fields,
|
|
30823
|
+
filter: filter,
|
|
30824
|
+
fold: fold
|
|
30825
|
+
},
|
|
30826
|
+
dataParser: {
|
|
30827
|
+
csv: csvParser,
|
|
30828
|
+
dsv: dsvParser,
|
|
30829
|
+
tsv: tsvParser
|
|
30830
|
+
},
|
|
30831
|
+
layout: {},
|
|
30832
|
+
grammarTransforms: {},
|
|
30833
|
+
stageEventPlugins: {},
|
|
30834
|
+
interactionTriggers: {},
|
|
30835
|
+
composedEventMap: {},
|
|
30836
|
+
tooltipProcessors: {},
|
|
30837
|
+
formatter: void 0
|
|
30838
|
+
};
|
|
30839
|
+
|
|
30809
30840
|
class Factory {
|
|
30810
30841
|
static registerChart(key, chart) {
|
|
30811
30842
|
Factory._charts[key] = chart;
|
|
@@ -30954,10 +30985,11 @@
|
|
|
30954
30985
|
return Factory._componentPlugin[type];
|
|
30955
30986
|
}
|
|
30956
30987
|
static registerFormatter(func) {
|
|
30957
|
-
this._formatter = func;
|
|
30988
|
+
this._formatter = func, factoryRegistry.formatter = func;
|
|
30958
30989
|
}
|
|
30959
30990
|
static getFormatter() {
|
|
30960
|
-
|
|
30991
|
+
var _a;
|
|
30992
|
+
return null !== (_a = factoryRegistry.formatter) && void 0 !== _a ? _a : this._formatter;
|
|
30961
30993
|
}
|
|
30962
30994
|
static createInteractionTrigger(interactionType, options) {
|
|
30963
30995
|
const Ctor = Factory._interactionTriggers[interactionType];
|
|
@@ -30970,21 +31002,13 @@
|
|
|
30970
31002
|
return Factory._composedEventMap[eType];
|
|
30971
31003
|
}
|
|
30972
31004
|
}
|
|
30973
|
-
Factory._charts =
|
|
30974
|
-
fields: fields,
|
|
30975
|
-
filter: filter,
|
|
30976
|
-
fold: fold
|
|
30977
|
-
}, Factory.dataParser = {
|
|
30978
|
-
csv: csvParser,
|
|
30979
|
-
dsv: dsvParser,
|
|
30980
|
-
tsv: tsvParser
|
|
30981
|
-
}, Factory._layout = {}, Factory._grammarTransforms = {}, Factory._stageEventPlugins = {}, Factory.registerStageEventPlugin = (type, Plugin) => {
|
|
31005
|
+
Factory._charts = factoryRegistry.charts, Factory._series = factoryRegistry.series, Factory._components = factoryRegistry.components, Factory._graphicComponents = factoryRegistry.graphicComponents, Factory._marks = factoryRegistry.marks, Factory._regions = factoryRegistry.regions, Factory._animations = factoryRegistry.animations, Factory._implements = factoryRegistry.implements, Factory._chartPlugin = factoryRegistry.chartPlugin, Factory._vChartPlugin = factoryRegistry.vChartPlugin, Factory._componentPlugin = factoryRegistry.componentPlugin, Factory.transforms = factoryRegistry.transforms, Factory.dataParser = factoryRegistry.dataParser, Factory._layout = factoryRegistry.layout, Factory._grammarTransforms = factoryRegistry.grammarTransforms, Factory._stageEventPlugins = factoryRegistry.stageEventPlugins, Factory.registerStageEventPlugin = (type, Plugin) => {
|
|
30982
31006
|
Factory._stageEventPlugins[type] = Plugin;
|
|
30983
|
-
}, Factory.getStageEventPlugin = type => Factory._stageEventPlugins[type], Factory._interactionTriggers =
|
|
31007
|
+
}, Factory.getStageEventPlugin = type => Factory._stageEventPlugins[type], Factory._interactionTriggers = factoryRegistry.interactionTriggers, Factory.registerInteractionTrigger = (interactionType, interaction) => {
|
|
30984
31008
|
Factory._interactionTriggers[interactionType] = interaction;
|
|
30985
|
-
}, Factory._composedEventMap =
|
|
31009
|
+
}, Factory._composedEventMap = factoryRegistry.composedEventMap, Factory.registerComposedEvent = (eType, composedEvent) => {
|
|
30986
31010
|
Factory._composedEventMap[eType] = composedEvent;
|
|
30987
|
-
}, Factory._tooltipProcessors =
|
|
31011
|
+
}, Factory._tooltipProcessors = factoryRegistry.tooltipProcessors, Factory.registerTooltipProcessor = (type, processor) => {
|
|
30988
31012
|
Factory._tooltipProcessors[type] = processor;
|
|
30989
31013
|
}, Factory.createTooltipProcessor = (type, tooltip) => {
|
|
30990
31014
|
const Cror = Factory._tooltipProcessors[type];
|
|
@@ -100920,7 +100944,7 @@
|
|
|
100920
100944
|
|
|
100921
100945
|
const VChartSimple = createChart('VChartSimple');
|
|
100922
100946
|
|
|
100923
|
-
const version = "2.1.
|
|
100947
|
+
const version = "2.1.1";
|
|
100924
100948
|
|
|
100925
100949
|
exports.Area = Area;
|
|
100926
100950
|
exports.AreaChart = AreaChart;
|