@visactor/vchart 2.1.5 → 2.1.6-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.
Files changed (60) hide show
  1. package/build/es5/index.js +1 -1
  2. package/build/index.es.js +1 -1
  3. package/build/index.js +73411 -70131
  4. package/build/index.min.js +2 -2
  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/constant/event.js +1 -2
  19. package/cjs/constant/marker.js +2 -1
  20. package/cjs/core/factory-registry.js +2 -2
  21. package/cjs/core/factory-registry.js.map +1 -1
  22. package/cjs/core/factory.js +1 -1
  23. package/cjs/core/index.d.ts +1 -1
  24. package/cjs/core/index.js +2 -3
  25. package/cjs/core/index.js.map +1 -1
  26. package/cjs/core/instance-manager.js +1 -1
  27. package/cjs/core/interface.js +1 -1
  28. package/cjs/core/util.js +1 -1
  29. package/cjs/core/vchart.js +1 -1
  30. package/cjs/data/data-view-utils.js +1 -1
  31. package/cjs/data/initialize.js +1 -1
  32. package/cjs/data/register.js +1 -1
  33. package/esm/animation/animation-planner.js +1 -1
  34. package/esm/animation/callback-disappear.js +1 -1
  35. package/esm/animation/config.js +2 -1
  36. package/esm/animation/grammar-dector.js +1 -1
  37. package/esm/animation/index.js +1 -1
  38. package/esm/animation/interface.js +1 -1
  39. package/esm/animation/sequential-animate.js +1 -1
  40. package/esm/animation/spec.js +1 -1
  41. package/esm/animation/state-transition.js +1 -1
  42. package/esm/animation/utils.js +1 -1
  43. package/esm/chart/util.js +1 -2
  44. package/esm/compile/state-manager.js +2 -1
  45. package/esm/constant/event.js +1 -2
  46. package/esm/constant/marker.js +2 -1
  47. package/esm/core/factory-registry.js +2 -2
  48. package/esm/core/factory-registry.js.map +1 -1
  49. package/esm/core/factory.js +1 -1
  50. package/esm/core/index.d.ts +1 -1
  51. package/esm/core/index.js +2 -3
  52. package/esm/core/index.js.map +1 -1
  53. package/esm/core/instance-manager.js +1 -1
  54. package/esm/core/interface.js +1 -1
  55. package/esm/core/util.js +1 -1
  56. package/esm/core/vchart.js +1 -1
  57. package/esm/data/data-view-utils.js +1 -1
  58. package/esm/data/initialize.js +1 -1
  59. package/esm/data/register.js +1 -1
  60. package/package.json +10 -10
@@ -50,4 +50,4 @@ class AnimationPlanner {
50
50
  }
51
51
 
52
52
  exports.AnimationPlanner = AnimationPlanner;
53
- //# sourceMappingURL=animation-planner.js.map
53
+ //# sourceMappingURL=animation-planner.js.map
@@ -23,4 +23,4 @@ class CallbackDisappearAnimate extends custom_animate_1.AStageAnimate {
23
23
  }
24
24
 
25
25
  exports.CallbackDisappearAnimate = CallbackDisappearAnimate;
26
- //# sourceMappingURL=callback-disappear.js.map
26
+ //# sourceMappingURL=callback-disappear.js.map
@@ -177,4 +177,5 @@ const registerStageAnimation = () => {
177
177
  animate_executor_1.AnimateExecutor.registerBuiltInAnimate(animate_1.BuiltIn_DISAPPEAR_ANIMATE_NAME, callback_disappear_1.CallbackDisappearAnimate);
178
178
  };
179
179
 
180
- exports.registerStageAnimation = registerStageAnimation;
180
+ exports.registerStageAnimation = registerStageAnimation;
181
+ //# sourceMappingURL=config.js.map
@@ -103,4 +103,4 @@ class GrammarDetector {
103
103
  }
104
104
 
105
105
  exports.GrammarDetector = GrammarDetector;
106
- //# sourceMappingURL=grammar-dector.js.map
106
+ //# sourceMappingURL=grammar-dector.js.map
@@ -87,4 +87,4 @@ Object.defineProperty(exports, "animationConfig", {
87
87
  return utils_1.shouldMarkDoMorph;
88
88
  }
89
89
  });
90
- //# sourceMappingURL=index.js.map
90
+ //# sourceMappingURL=index.js.map
@@ -9,4 +9,4 @@ Object.defineProperty(exports, "__esModule", {
9
9
  AnimationStateEnum.enter = "enter", AnimationStateEnum.update = "update", AnimationStateEnum.state = "state",
10
10
  AnimationStateEnum.exit = "exit", AnimationStateEnum.normal = "normal", AnimationStateEnum.none = "none";
11
11
  }(AnimationStateEnum = exports.AnimationStateEnum || (exports.AnimationStateEnum = {}));
12
- //# sourceMappingURL=interface.js.map
12
+ //# sourceMappingURL=interface.js.map
@@ -39,4 +39,4 @@ function registerSequentialAnimate() {
39
39
  }
40
40
 
41
41
  exports.registerSequentialAnimate = registerSequentialAnimate;
42
- //# sourceMappingURL=sequential-animate.js.map
42
+ //# sourceMappingURL=sequential-animate.js.map
@@ -3,4 +3,4 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: !0
5
5
  });
6
- //# sourceMappingURL=spec.js.map
6
+ //# sourceMappingURL=spec.js.map
@@ -30,4 +30,4 @@ function registerStateTransition() {
30
30
  }
31
31
 
32
32
  exports.registerStateTransition = registerStateTransition;
33
- //# sourceMappingURL=state-transition.js.map
33
+ //# sourceMappingURL=state-transition.js.map
@@ -131,4 +131,4 @@ exports.animationConfig = animationConfig, exports.userAnimationConfig = userAni
131
131
  exports.shouldMarkDoMorph = shouldMarkDoMorph, exports.isTimeLineAnimation = isTimeLineAnimation,
132
132
  exports.isChannelAnimation = isChannelAnimation, exports.uniformAnimationConfig = uniformAnimationConfig,
133
133
  exports.isAnimationEnabledForSeries = isAnimationEnabledForSeries;
134
- //# sourceMappingURL=utils.js.map
134
+ //# sourceMappingURL=utils.js.map
package/cjs/chart/util.js CHANGED
@@ -108,5 +108,4 @@ function getTrimPaddingConfig(chartType, spec) {
108
108
 
109
109
  exports.normalizeUpdateSpecEffects = normalizeUpdateSpecEffects, exports.isUpdateSpecResultLocalOnly = isUpdateSpecResultLocalOnly,
110
110
  exports.isUpdateSpecResultComponentOnly = isUpdateSpecResultComponentOnly, exports.mergeUpdateResult = mergeUpdateResult,
111
- exports.getTrimPaddingConfig = getTrimPaddingConfig;
112
- //# sourceMappingURL=util.js.map
111
+ exports.getTrimPaddingConfig = getTrimPaddingConfig;
@@ -25,4 +25,5 @@ class StateManager extends compilable_base_1.CompilableBase {
25
25
  }
26
26
  }
27
27
 
28
- exports.StateManager = StateManager;
28
+ exports.StateManager = StateManager;
29
+ //# sourceMappingURL=state-manager.js.map
@@ -61,5 +61,4 @@ function(Event_Bubble_Level) {
61
61
  Event_Bubble_Level.vchart = "vchart", Event_Bubble_Level.chart = "chart", Event_Bubble_Level.model = "model",
62
62
  Event_Bubble_Level.mark = "mark";
63
63
  }(Event_Bubble_Level = exports.Event_Bubble_Level || (exports.Event_Bubble_Level = {})),
64
- exports.EventBubbleLevels = [ Event_Bubble_Level.mark, Event_Bubble_Level.model, Event_Bubble_Level.chart, Event_Bubble_Level.vchart ];
65
- //# sourceMappingURL=event.js.map
64
+ exports.EventBubbleLevels = [ Event_Bubble_Level.mark, Event_Bubble_Level.model, Event_Bubble_Level.chart, Event_Bubble_Level.vchart ];
@@ -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
@@ -36,7 +36,7 @@ const vdataset_1 = require("@visactor/vdataset"), createFactoryRegistry = () =>
36
36
  tooltipProcessors: {},
37
37
  runtimePluginInstallers: {},
38
38
  formatter: void 0
39
- }), factoryRegistryVersion = "2.1.5", factoryRegistryKey = Symbol.for("@visactor/vchart/factory-registry@2.1.5"), globalFactoryRegistry = globalThis;
39
+ }), factoryRegistryVersion = "2.1.4", factoryRegistryKey = Symbol.for("@visactor/vchart/factory-registry@2.1.4"), globalFactoryRegistry = globalThis;
40
40
 
41
41
  exports.factoryRegistry = null !== (_a = globalFactoryRegistry[factoryRegistryKey]) && void 0 !== _a ? _a : globalFactoryRegistry[factoryRegistryKey] = {
42
42
  charts: {},
@@ -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
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/core/factory-registry.ts"],"names":[],"mappings":";;;;AAEA,iDAA2F;AA+C3F,MAAM,qBAAqB,GAAG,GAAqB,EAAE,CAAC,CAAC;IACrD,MAAM,EAAE,EAAE;IACV,MAAM,EAAE,EAAE;IACV,UAAU,EAAE,EAAE;IACd,iBAAiB,EAAE,EAAE;IACrB,KAAK,EAAE,EAAE;IACT,OAAO,EAAE,EAAE;IACX,UAAU,EAAE,EAAE;IACd,UAAU,EAAE,EAAE;IACd,WAAW,EAAE,EAAE;IACf,YAAY,EAAE,EAAE;IAChB,eAAe,EAAE,EAAE;IACnB,UAAU,EAAE;QAEV,MAAM,EAAN,iBAAM;QACN,MAAM,EAAN,iBAAM;QACN,IAAI,EAAJ,eAAI;KACL;IACD,UAAU,EAAE;QAEV,GAAG,EAAE,oBAAS;QACd,GAAG,EAAE,oBAAS;QACd,GAAG,EAAE,oBAAS;KACf;IACD,MAAM,EAAE,EAAE;IACV,iBAAiB,EAAE,EAAE;IACrB,iBAAiB,EAAE,EAAE;IACrB,mBAAmB,EAAE,EAAE;IACvB,gBAAgB,EAAE,EAAE;IACpB,iBAAiB,EAAE,EAAE;IACrB,uBAAuB,EAAE,EAAE;IAC3B,SAAS,EAAE,SAAS;CACrB,CAAC,CAAC;AAEH,MAAM,sBAAsB,GAAG,OAAO,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC;AACpF,MAAM,kBAAkB,GAAG,MAAM,CAAC,GAAG,CAAC,qCAAqC,sBAAsB,EAAE,CAAC,CAAC;AACrG,MAAM,qBAAqB,GAAG,UAE7B,CAAC;AAEW,QAAA,eAAe,GAC1B,MAAA,qBAAqB,CAAC,kBAAkB,CAAC,mCAAI,CAAC,qBAAqB,CAAC,kBAAkB,CAAC,GAAG,qBAAqB,EAAE,CAAC,CAAC","file":"factory-registry.js","sourcesContent":["import type { Transform, Parser } from '@visactor/vdataset';\n// eslint-disable-next-line no-duplicate-imports\nimport { fields, filter, fold, csvParser, dsvParser, tsvParser } from '@visactor/vdataset';\nimport type { IChartConstructor } from '../chart/interface';\nimport type { ISeriesConstructor } from '../series/interface';\nimport type { IComponentConstructor } from '../component/interface';\nimport type { MarkConstructor } from '../mark/interface';\nimport type { IRegionConstructor } from '../region/interface';\nimport type { ILayoutConstructor } from '../layout/interface';\nimport type { IChartPluginConstructor } from '../plugin/chart/interface';\nimport type { IComponentPluginConstructor } from '../plugin/components/interface';\nimport type { IApp, IGraphic } from '@visactor/vrender-core';\nimport type { GrammarTransformOption, IStageEventPlugin, VRenderComponentOptions } from './interface';\nimport type { MarkAnimationSpec } from '../animation/interface';\nimport type { ITriggerConstructor } from '../interaction/interface/trigger';\nimport type { IComposedEventConstructor } from '../index-harmony-simple';\nimport type { ITooltipProcessorConstructor } from '../component/tooltip/processor/interface';\nimport type { IVChartPluginConstructor } from '../plugin/vchart';\n\nexport interface IFactoryRegistry {\n charts: { [key: string]: IChartConstructor };\n series: { [key: string]: ISeriesConstructor };\n components: {\n [key: string]: {\n cmp: IComponentConstructor;\n alwaysCheck?: boolean;\n createOrder: number;\n };\n };\n graphicComponents: Record<string, (attrs: any, options?: VRenderComponentOptions) => IGraphic>;\n marks: { [key: string]: MarkConstructor };\n regions: { [key: string]: IRegionConstructor };\n animations: { [key: string]: (params?: any, preset?: any) => MarkAnimationSpec };\n implements: { [key: string]: (...args: any) => void };\n chartPlugin: { [key: string]: IChartPluginConstructor };\n vChartPlugin: { [key: string]: IVChartPluginConstructor };\n componentPlugin: { [key: string]: IComponentPluginConstructor };\n transforms: { [key: string]: Transform };\n dataParser: { [key: string]: Parser };\n layout: { [key: string]: ILayoutConstructor };\n grammarTransforms: Record<string, GrammarTransformOption>;\n stageEventPlugins: Record<string, IStageEventPlugin<any>>;\n interactionTriggers: Record<string, ITriggerConstructor>;\n composedEventMap: Record<string, IComposedEventConstructor>;\n tooltipProcessors: Record<string, ITooltipProcessorConstructor>;\n runtimePluginInstallers: Record<string, (app?: IApp) => void>;\n formatter?: (text: string | number | string[] | number[], datum: any, formatter: string | string[]) => any;\n}\n\nconst createFactoryRegistry = (): IFactoryRegistry => ({\n charts: {},\n series: {},\n components: {},\n graphicComponents: {},\n marks: {},\n regions: {},\n animations: {},\n implements: {},\n chartPlugin: {},\n vChartPlugin: {},\n componentPlugin: {},\n transforms: {\n // buildIn transforms\n fields,\n filter,\n fold\n },\n dataParser: {\n // buildIn parser\n csv: csvParser,\n dsv: dsvParser,\n tsv: tsvParser\n },\n layout: {},\n grammarTransforms: {},\n stageEventPlugins: {},\n interactionTriggers: {},\n composedEventMap: {},\n tooltipProcessors: {},\n runtimePluginInstallers: {},\n formatter: undefined\n});\n\nconst factoryRegistryVersion = typeof \"2.1.5\" === 'undefined' ? 'unknown' : \"2.1.5\";\nconst factoryRegistryKey = Symbol.for(`@visactor/vchart/factory-registry@${factoryRegistryVersion}`);\nconst globalFactoryRegistry = globalThis as typeof globalThis & {\n [factoryRegistryKey]?: IFactoryRegistry;\n};\n\nexport const factoryRegistry: IFactoryRegistry =\n globalFactoryRegistry[factoryRegistryKey] ?? (globalFactoryRegistry[factoryRegistryKey] = createFactoryRegistry());\n"]}
1
+ {"version":3,"sources":["../src/core/factory-registry.ts"],"names":[],"mappings":";;;;AAEA,iDAA2F;AA+C3F,MAAM,qBAAqB,GAAG,GAAqB,EAAE,CAAC,CAAC;IACrD,MAAM,EAAE,EAAE;IACV,MAAM,EAAE,EAAE;IACV,UAAU,EAAE,EAAE;IACd,iBAAiB,EAAE,EAAE;IACrB,KAAK,EAAE,EAAE;IACT,OAAO,EAAE,EAAE;IACX,UAAU,EAAE,EAAE;IACd,UAAU,EAAE,EAAE;IACd,WAAW,EAAE,EAAE;IACf,YAAY,EAAE,EAAE;IAChB,eAAe,EAAE,EAAE;IACnB,UAAU,EAAE;QAEV,MAAM,EAAN,iBAAM;QACN,MAAM,EAAN,iBAAM;QACN,IAAI,EAAJ,eAAI;KACL;IACD,UAAU,EAAE;QAEV,GAAG,EAAE,oBAAS;QACd,GAAG,EAAE,oBAAS;QACd,GAAG,EAAE,oBAAS;KACf;IACD,MAAM,EAAE,EAAE;IACV,iBAAiB,EAAE,EAAE;IACrB,iBAAiB,EAAE,EAAE;IACrB,mBAAmB,EAAE,EAAE;IACvB,gBAAgB,EAAE,EAAE;IACpB,iBAAiB,EAAE,EAAE;IACrB,uBAAuB,EAAE,EAAE;IAC3B,SAAS,EAAE,SAAS;CACrB,CAAC,CAAC;AAEH,MAAM,sBAAsB,GAAG,OAAO,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC;AACpF,MAAM,kBAAkB,GAAG,MAAM,CAAC,GAAG,CAAC,qCAAqC,sBAAsB,EAAE,CAAC,CAAC;AACrG,MAAM,qBAAqB,GAAG,UAE7B,CAAC;AAEW,QAAA,eAAe,GAC1B,MAAA,qBAAqB,CAAC,kBAAkB,CAAC,mCAAI,CAAC,qBAAqB,CAAC,kBAAkB,CAAC,GAAG,qBAAqB,EAAE,CAAC,CAAC","file":"factory-registry.js","sourcesContent":["import type { Transform, Parser } from '@visactor/vdataset';\n// eslint-disable-next-line no-duplicate-imports\nimport { fields, filter, fold, csvParser, dsvParser, tsvParser } from '@visactor/vdataset';\nimport type { IChartConstructor } from '../chart/interface';\nimport type { ISeriesConstructor } from '../series/interface';\nimport type { IComponentConstructor } from '../component/interface';\nimport type { MarkConstructor } from '../mark/interface';\nimport type { IRegionConstructor } from '../region/interface';\nimport type { ILayoutConstructor } from '../layout/interface';\nimport type { IChartPluginConstructor } from '../plugin/chart/interface';\nimport type { IComponentPluginConstructor } from '../plugin/components/interface';\nimport type { IApp, IGraphic } from '@visactor/vrender-core';\nimport type { GrammarTransformOption, IStageEventPlugin, VRenderComponentOptions } from './interface';\nimport type { MarkAnimationSpec } from '../animation/interface';\nimport type { ITriggerConstructor } from '../interaction/interface/trigger';\nimport type { IComposedEventConstructor } from '../index-harmony-simple';\nimport type { ITooltipProcessorConstructor } from '../component/tooltip/processor/interface';\nimport type { IVChartPluginConstructor } from '../plugin/vchart';\n\nexport interface IFactoryRegistry {\n charts: { [key: string]: IChartConstructor };\n series: { [key: string]: ISeriesConstructor };\n components: {\n [key: string]: {\n cmp: IComponentConstructor;\n alwaysCheck?: boolean;\n createOrder: number;\n };\n };\n graphicComponents: Record<string, (attrs: any, options?: VRenderComponentOptions) => IGraphic>;\n marks: { [key: string]: MarkConstructor };\n regions: { [key: string]: IRegionConstructor };\n animations: { [key: string]: (params?: any, preset?: any) => MarkAnimationSpec };\n implements: { [key: string]: (...args: any) => void };\n chartPlugin: { [key: string]: IChartPluginConstructor };\n vChartPlugin: { [key: string]: IVChartPluginConstructor };\n componentPlugin: { [key: string]: IComponentPluginConstructor };\n transforms: { [key: string]: Transform };\n dataParser: { [key: string]: Parser };\n layout: { [key: string]: ILayoutConstructor };\n grammarTransforms: Record<string, GrammarTransformOption>;\n stageEventPlugins: Record<string, IStageEventPlugin<any>>;\n interactionTriggers: Record<string, ITriggerConstructor>;\n composedEventMap: Record<string, IComposedEventConstructor>;\n tooltipProcessors: Record<string, ITooltipProcessorConstructor>;\n runtimePluginInstallers: Record<string, (app?: IApp) => void>;\n formatter?: (text: string | number | string[] | number[], datum: any, formatter: string | string[]) => any;\n}\n\nconst createFactoryRegistry = (): IFactoryRegistry => ({\n charts: {},\n series: {},\n components: {},\n graphicComponents: {},\n marks: {},\n regions: {},\n animations: {},\n implements: {},\n chartPlugin: {},\n vChartPlugin: {},\n componentPlugin: {},\n transforms: {\n // buildIn transforms\n fields,\n filter,\n fold\n },\n dataParser: {\n // buildIn parser\n csv: csvParser,\n dsv: dsvParser,\n tsv: tsvParser\n },\n layout: {},\n grammarTransforms: {},\n stageEventPlugins: {},\n interactionTriggers: {},\n composedEventMap: {},\n tooltipProcessors: {},\n runtimePluginInstallers: {},\n formatter: undefined\n});\n\nconst factoryRegistryVersion = typeof \"2.1.4\" === 'undefined' ? 'unknown' : \"2.1.4\";\nconst factoryRegistryKey = Symbol.for(`@visactor/vchart/factory-registry@${factoryRegistryVersion}`);\nconst globalFactoryRegistry = globalThis as typeof globalThis & {\n [factoryRegistryKey]?: IFactoryRegistry;\n};\n\nexport const factoryRegistry: IFactoryRegistry =\n globalFactoryRegistry[factoryRegistryKey] ?? (globalFactoryRegistry[factoryRegistryKey] = createFactoryRegistry());\n"]}
@@ -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
@@ -1,7 +1,7 @@
1
1
  import { VChart } from './vchart';
2
2
  import { Factory } from './factory';
3
3
  export { VChart, Factory };
4
- export declare const version = "2.1.5";
4
+ export declare const version = "2.1.4";
5
5
  export type { IVChart } from './interface';
6
6
  export type { IStateSpec, StateValueType } from '../compile/mark';
7
7
  export type { IRegion } from '../region/interface';
package/cjs/core/index.js CHANGED
@@ -35,7 +35,7 @@ Object.defineProperty(exports, "Factory", {
35
35
  get: function() {
36
36
  return factory_1.Factory;
37
37
  }
38
- }), exports.version = "2.1.5", __exportStar(require("../event/interface"), exports),
38
+ }), exports.version = "2.1.4", __exportStar(require("../event/interface"), exports),
39
39
  __exportStar(require("../theme/interface"), exports), __exportStar(require("../model/interface"), exports),
40
40
  __exportStar(require("./interface"), exports), __exportStar(require("../typings"), exports),
41
41
  __exportStar(require("../constant/base"), exports), __exportStar(require("../constant/data"), exports),
@@ -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
+ });
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/core/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAIA,qCAAkC;AAGzB,uFAHA,eAAM,OAGA;AAFf,uCAAoC;AAEnB,wFAFR,iBAAO,OAEQ;AAGX,QAAA,OAAO,GAAG,OAAO,CAAC;AAO/B,qDAAmC;AACnC,qDAAmC;AACnC,qDAAmC;AAEnC,8CAA4B;AAC5B,6CAA2B;AAI3B,mDAAiC;AACjC,mDAAiC;AACjC,qDAAmC;AACnC,mDAAuD;AAA9C,2GAAA,cAAc,OAAA;AACvB,iDAAoD;AAA3C,4GAAA,cAAc,OAAA;AACvB,uDAA6D;AAApD,6GAAA,gBAAgB,OAAA;AACzB,2CAA+C;AAAtC,mGAAA,UAAU,OAAA;AAKnB,wDAAsC;AACtC,oDAAkC;AAGlC,qDAAmC;AAGnC,iDAA+B;AAG/B,oDAA4C;AAAnC,yGAAA,OAAO,OAAA;AAChB,oDAS2B;AARzB,6GAAA,WAAW,OAAA;AACX,gHAAA,cAAc,OAAA;AACd,4GAAA,UAAU,OAAA;AACV,2GAAA,SAAS,OAAA;AACT,4GAAA,UAAU,OAAA;AACV,4GAAA,UAAU,OAAA;AACV,4GAAA,UAAU,OAAA;AACV,8GAAA,YAAY,OAAA;AAEd,gFAA8E;AAArE,6GAAA,YAAY,OAAA;AACrB,4EAA2E;AAAlE,0GAAA,WAAW,OAAA;AAGpB,gDAA8B;AAC9B,uCAAmD;AAA1C,2GAAA,kBAAkB,OAAA;AAC3B,0CAAgD;AAAvC,mGAAA,WAAW,OAAA;AACpB,6CAAmG;AAA1F,yHAAA,6BAA6B,OAAA;AAAE,4HAAA,gCAAgC,OAAA;AACxE,oDAAmD;AAA1C,gGAAA,MAAM,OAAA;AACf,uCAAqC;AAA5B,6FAAA,IAAI,OAAA;AACb,qCAA2C;AAAlC,mGAAA,WAAW,OAAA","file":"index.js","sourcesContent":["/**\n * @description The core module of VChart, containing the necessary interfaces for using VChart.\n */\n\nimport { VChart } from './vchart';\nimport { Factory } from './factory';\n\nexport { VChart, Factory };\n\n// export the version\nexport const version = \"2.1.5\";\n\n// export necessary types\nexport type { IVChart } from './interface';\nexport type { IStateSpec, StateValueType } from '../compile/mark';\nexport type { IRegion } from '../region/interface';\n\nexport * from '../event/interface';\nexport * from '../theme/interface';\nexport * from '../model/interface';\n\nexport * from './interface';\nexport * from '../typings';\nexport type { IMarkGraphic, IGraphicContext } from '../mark/interface/';\n\n// some constants\nexport * from '../constant/base';\nexport * from '../constant/data';\nexport * from '../constant/layout';\nexport { AttributeLevel } from '../constant/attribute';\nexport { TransformLevel } from '../data/initialize';\nexport { STATE_VALUE_ENUM } from '../compile/mark/interface';\nexport { ChartEvent } from '../constant/event';\n\n/**\n * spec\n */\nexport * from '../typings/spec/index';\nexport * from '../typings/visual';\n\n// tooltip\nexport * from '../typings/tooltip';\n\n// theme\nexport * from '../theme/index';\n\n// vrender\nexport { vglobal } from '../vrender-bridge';\nexport {\n createGroup,\n createRichText,\n createText,\n createArc,\n createArea,\n createRect,\n createLine,\n createSymbol\n} from '../vrender-bridge';\nexport { ManualTicker } from '@visactor/vrender-animate/ticker/manual-ticker';\nexport { StreamLight } from '@visactor/vrender-animate/custom/streamLight';\n\n// utils\nexport * from '../util/space';\nexport { transformToGraphic } from '../util/style';\nexport { getSpecInfo } from '../component/util';\nexport { registerDataSetInstanceParser, registerDataSetInstanceTransform } from '../data/register';\nexport { lookup } from '../data/transforms/lookup';\nexport { warn } from '../util/debug';\nexport { measureText } from '../util/text';\n"]}
1
+ {"version":3,"sources":["../src/core/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAIA,qCAAkC;AAGzB,uFAHA,eAAM,OAGA;AAFf,uCAAoC;AAEnB,wFAFR,iBAAO,OAEQ;AAGX,QAAA,OAAO,GAAG,OAAO,CAAC;AAO/B,qDAAmC;AACnC,qDAAmC;AACnC,qDAAmC;AAEnC,8CAA4B;AAC5B,6CAA2B;AAI3B,mDAAiC;AACjC,mDAAiC;AACjC,qDAAmC;AACnC,mDAAuD;AAA9C,2GAAA,cAAc,OAAA;AACvB,iDAAoD;AAA3C,4GAAA,cAAc,OAAA;AACvB,uDAA6D;AAApD,6GAAA,gBAAgB,OAAA;AACzB,2CAA+C;AAAtC,mGAAA,UAAU,OAAA;AAKnB,wDAAsC;AACtC,oDAAkC;AAGlC,qDAAmC;AAGnC,iDAA+B;AAG/B,oDAA4C;AAAnC,yGAAA,OAAO,OAAA;AAChB,oDAS2B;AARzB,6GAAA,WAAW,OAAA;AACX,gHAAA,cAAc,OAAA;AACd,4GAAA,UAAU,OAAA;AACV,2GAAA,SAAS,OAAA;AACT,4GAAA,UAAU,OAAA;AACV,4GAAA,UAAU,OAAA;AACV,4GAAA,UAAU,OAAA;AACV,8GAAA,YAAY,OAAA;AAEd,gFAA8E;AAArE,6GAAA,YAAY,OAAA;AACrB,4EAA2E;AAAlE,0GAAA,WAAW,OAAA;AAGpB,gDAA8B;AAC9B,uCAAmD;AAA1C,2GAAA,kBAAkB,OAAA;AAC3B,0CAAgD;AAAvC,mGAAA,WAAW,OAAA;AACpB,6CAAmG;AAA1F,yHAAA,6BAA6B,OAAA;AAAE,4HAAA,gCAAgC,OAAA;AACxE,oDAAmD;AAA1C,gGAAA,MAAM,OAAA;AACf,uCAAqC;AAA5B,6FAAA,IAAI,OAAA;AACb,qCAA2C;AAAlC,mGAAA,WAAW,OAAA","file":"index.js","sourcesContent":["/**\n * @description The core module of VChart, containing the necessary interfaces for using VChart.\n */\n\nimport { VChart } from './vchart';\nimport { Factory } from './factory';\n\nexport { VChart, Factory };\n\n// export the version\nexport const version = \"2.1.4\";\n\n// export necessary types\nexport type { IVChart } from './interface';\nexport type { IStateSpec, StateValueType } from '../compile/mark';\nexport type { IRegion } from '../region/interface';\n\nexport * from '../event/interface';\nexport * from '../theme/interface';\nexport * from '../model/interface';\n\nexport * from './interface';\nexport * from '../typings';\nexport type { IMarkGraphic, IGraphicContext } from '../mark/interface/';\n\n// some constants\nexport * from '../constant/base';\nexport * from '../constant/data';\nexport * from '../constant/layout';\nexport { AttributeLevel } from '../constant/attribute';\nexport { TransformLevel } from '../data/initialize';\nexport { STATE_VALUE_ENUM } from '../compile/mark/interface';\nexport { ChartEvent } from '../constant/event';\n\n/**\n * spec\n */\nexport * from '../typings/spec/index';\nexport * from '../typings/visual';\n\n// tooltip\nexport * from '../typings/tooltip';\n\n// theme\nexport * from '../theme/index';\n\n// vrender\nexport { vglobal } from '../vrender-bridge';\nexport {\n createGroup,\n createRichText,\n createText,\n createArc,\n createArea,\n createRect,\n createLine,\n createSymbol\n} from '../vrender-bridge';\nexport { ManualTicker } from '@visactor/vrender-animate/ticker/manual-ticker';\nexport { StreamLight } from '@visactor/vrender-animate/custom/streamLight';\n\n// utils\nexport * from '../util/space';\nexport { transformToGraphic } from '../util/style';\nexport { getSpecInfo } from '../component/util';\nexport { registerDataSetInstanceParser, registerDataSetInstanceTransform } from '../data/register';\nexport { lookup } from '../data/transforms/lookup';\nexport { warn } from '../util/debug';\nexport { measureText } from '../util/text';\n"]}
@@ -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
@@ -978,4 +978,4 @@ const registerVChartCore = () => {
978
978
  };
979
979
 
980
980
  exports.registerVChartCore = registerVChartCore, (0, exports.registerVChartCore)();
981
- //# sourceMappingURL=vchart.js.map
981
+ //# sourceMappingURL=vchart.js.map
@@ -55,4 +55,4 @@ const releaseDataViewWithDependencies = (dataView, shouldReleaseDependency) => {
55
55
  };
56
56
 
57
57
  exports.releaseDataViewWithDependencies = releaseDataViewWithDependencies;
58
- //# sourceMappingURL=data-view-utils.js.map
58
+ //# sourceMappingURL=data-view-utils.js.map
@@ -85,4 +85,4 @@ function(TransformLevel) {
85
85
  TransformLevel[TransformLevel.linkDotInfo = -7] = "linkDotInfo", TransformLevel[TransformLevel.sankeyLayout = -7] = "sankeyLayout",
86
86
  TransformLevel[TransformLevel.dataZoomFilter = -6] = "dataZoomFilter", TransformLevel[TransformLevel.legendFilter = -5] = "legendFilter";
87
87
  }(TransformLevel = exports.TransformLevel || (exports.TransformLevel = {}));
88
- //# sourceMappingURL=initialize.js.map
88
+ //# sourceMappingURL=initialize.js.map
@@ -12,4 +12,4 @@ Object.defineProperty(exports, "__esModule", {
12
12
  value: !0
13
13
  }), exports.registerDataSetInstanceParser = exports.registerDataSetInstanceTransform = void 0,
14
14
  exports.registerDataSetInstanceTransform = registerDataSetInstanceTransform, exports.registerDataSetInstanceParser = registerDataSetInstanceParser;
15
- //# sourceMappingURL=register.js.map
15
+ //# sourceMappingURL=register.js.map
@@ -42,4 +42,4 @@ export class AnimationPlanner {
42
42
  }));
43
43
  }
44
44
  }
45
- //# sourceMappingURL=animation-planner.js.map
45
+ //# sourceMappingURL=animation-planner.js.map
@@ -15,4 +15,4 @@ export class CallbackDisappearAnimate extends AStageAnimate {
15
15
  return null === (_b = null === (_a = this.params) || void 0 === _a ? void 0 : _a.callBack) || void 0 === _b ? void 0 : _b.call(_a, stage, canvas, this.currentAnimationRatio, this.animationTime);
16
16
  }
17
17
  }
18
- //# sourceMappingURL=callback-disappear.js.map
18
+ //# sourceMappingURL=callback-disappear.js.map
@@ -181,4 +181,5 @@ export const registerPolygonAnimation = () => {
181
181
 
182
182
  export const registerStageAnimation = () => {
183
183
  AnimateExecutor.registerBuiltInAnimate(BuiltIn_DISAPPEAR_ANIMATE_NAME, CallbackDisappearAnimate);
184
- };
184
+ };
185
+ //# sourceMappingURL=config.js.map
@@ -101,4 +101,4 @@ export class GrammarDetector {
101
101
  planners;
102
102
  }
103
103
  }
104
- //# sourceMappingURL=grammar-dector.js.map
104
+ //# sourceMappingURL=grammar-dector.js.map
@@ -9,4 +9,4 @@ export { registerSequentialAnimate } from "./sequential-animate";
9
9
  export { registerPolygonAnimation, registerRectAnimation, registerArcAnimation, registerScaleInOutAnimation, DEFAULT_ANIMATION_CONFIG } from "./config";
10
10
 
11
11
  export { animationConfig, userAnimationConfig, shouldMarkDoMorph } from "./utils";
12
- //# sourceMappingURL=index.js.map
12
+ //# sourceMappingURL=index.js.map
@@ -5,4 +5,4 @@ export var AnimationStateEnum;
5
5
  AnimationStateEnum.enter = "enter", AnimationStateEnum.update = "update", AnimationStateEnum.state = "state",
6
6
  AnimationStateEnum.exit = "exit", AnimationStateEnum.normal = "normal", AnimationStateEnum.none = "none";
7
7
  }(AnimationStateEnum || (AnimationStateEnum = {}));
8
- //# sourceMappingURL=interface.js.map
8
+ //# sourceMappingURL=interface.js.map
@@ -34,4 +34,4 @@ class SequentialAnimate {
34
34
  export function registerSequentialAnimate() {
35
35
  mixin(BaseMark, SequentialAnimate);
36
36
  }
37
- //# sourceMappingURL=sequential-animate.js.map
37
+ //# sourceMappingURL=sequential-animate.js.map
@@ -1,2 +1,2 @@
1
1
  export { };
2
- //# sourceMappingURL=spec.js.map
2
+ //# sourceMappingURL=spec.js.map
@@ -22,4 +22,4 @@ export function registerStateTransition() {
22
22
  stopOriginalTransition: !0
23
23
  })));
24
24
  }
25
- //# sourceMappingURL=state-transition.js.map
25
+ //# sourceMappingURL=state-transition.js.map
@@ -125,4 +125,4 @@ export function isAnimationEnabledForSeries(series) {
125
125
  config.progressiveThreshold && (animationThreshold = Math.min(animationThreshold, config.progressiveThreshold)));
126
126
  })), !((null === (_f = null === (_e = series.getRawData()) || void 0 === _e ? void 0 : _e.latestData) || void 0 === _f ? void 0 : _f.length) >= animationThreshold);
127
127
  }
128
- //# sourceMappingURL=utils.js.map
128
+ //# sourceMappingURL=utils.js.map
package/esm/chart/util.js CHANGED
@@ -100,5 +100,4 @@ export function getTrimPaddingConfig(chartType, spec) {
100
100
  } : {
101
101
  paddingOuter: 0
102
102
  };
103
- }
104
- //# sourceMappingURL=util.js.map
103
+ }
@@ -19,4 +19,5 @@ export class StateManager extends CompilableBase {
19
19
  updateState(newState, noRender) {
20
20
  if (newState && (merge(this._stateMap, newState), !noRender)) return this.getCompiler().renderNextTick();
21
21
  }
22
- }
22
+ }
23
+ //# sourceMappingURL=state-manager.js.map
@@ -69,5 +69,4 @@ export var Event_Bubble_Level;
69
69
  Event_Bubble_Level.mark = "mark";
70
70
  }(Event_Bubble_Level || (Event_Bubble_Level = {}));
71
71
 
72
- export const EventBubbleLevels = [ Event_Bubble_Level.mark, Event_Bubble_Level.model, Event_Bubble_Level.chart, Event_Bubble_Level.vchart ];
73
- //# sourceMappingURL=event.js.map
72
+ export const EventBubbleLevels = [ Event_Bubble_Level.mark, Event_Bubble_Level.model, Event_Bubble_Level.chart, Event_Bubble_Level.vchart ];
@@ -1,3 +1,4 @@
1
1
  export const AGGR_TYPE = [ "sum", "average", "min", "max", "variance", "standardDeviation", "median" ];
2
2
 
3
- export const REGRESS_TYPE = [ "regression" ];
3
+ export const REGRESS_TYPE = [ "regression" ];
4
+ //# sourceMappingURL=marker.js.map
@@ -32,7 +32,7 @@ const createFactoryRegistry = () => ({
32
32
  tooltipProcessors: {},
33
33
  runtimePluginInstallers: {},
34
34
  formatter: void 0
35
- }), factoryRegistryVersion = "2.1.5", factoryRegistryKey = Symbol.for("@visactor/vchart/factory-registry@2.1.5"), globalFactoryRegistry = globalThis;
35
+ }), factoryRegistryVersion = "2.1.4", factoryRegistryKey = Symbol.for("@visactor/vchart/factory-registry@2.1.4"), globalFactoryRegistry = globalThis;
36
36
 
37
37
  export const factoryRegistry = null !== (_a = globalFactoryRegistry[factoryRegistryKey]) && void 0 !== _a ? _a : globalFactoryRegistry[factoryRegistryKey] = {
38
38
  charts: {},
@@ -65,4 +65,4 @@ export const factoryRegistry = null !== (_a = globalFactoryRegistry[factoryRegis
65
65
  runtimePluginInstallers: {},
66
66
  formatter: void 0
67
67
  };
68
- //# sourceMappingURL=factory-registry.js.map
68
+ //# sourceMappingURL=factory-registry.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/core/factory-registry.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AA+C3F,MAAM,qBAAqB,GAAG,GAAqB,EAAE,CAAC,CAAC;IACrD,MAAM,EAAE,EAAE;IACV,MAAM,EAAE,EAAE;IACV,UAAU,EAAE,EAAE;IACd,iBAAiB,EAAE,EAAE;IACrB,KAAK,EAAE,EAAE;IACT,OAAO,EAAE,EAAE;IACX,UAAU,EAAE,EAAE;IACd,UAAU,EAAE,EAAE;IACd,WAAW,EAAE,EAAE;IACf,YAAY,EAAE,EAAE;IAChB,eAAe,EAAE,EAAE;IACnB,UAAU,EAAE;QAEV,MAAM;QACN,MAAM;QACN,IAAI;KACL;IACD,UAAU,EAAE;QAEV,GAAG,EAAE,SAAS;QACd,GAAG,EAAE,SAAS;QACd,GAAG,EAAE,SAAS;KACf;IACD,MAAM,EAAE,EAAE;IACV,iBAAiB,EAAE,EAAE;IACrB,iBAAiB,EAAE,EAAE;IACrB,mBAAmB,EAAE,EAAE;IACvB,gBAAgB,EAAE,EAAE;IACpB,iBAAiB,EAAE,EAAE;IACrB,uBAAuB,EAAE,EAAE;IAC3B,SAAS,EAAE,SAAS;CACrB,CAAC,CAAC;AAEH,MAAM,sBAAsB,GAAG,OAAO,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC;AACpF,MAAM,kBAAkB,GAAG,MAAM,CAAC,GAAG,CAAC,qCAAqC,sBAAsB,EAAE,CAAC,CAAC;AACrG,MAAM,qBAAqB,GAAG,UAE7B,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAC1B,MAAA,qBAAqB,CAAC,kBAAkB,CAAC,mCAAI,CAAC,qBAAqB,CAAC,kBAAkB,CAAC,GAAG,qBAAqB,EAAE,CAAC,CAAC","file":"factory-registry.js","sourcesContent":["import type { Transform, Parser } from '@visactor/vdataset';\n// eslint-disable-next-line no-duplicate-imports\nimport { fields, filter, fold, csvParser, dsvParser, tsvParser } from '@visactor/vdataset';\nimport type { IChartConstructor } from '../chart/interface';\nimport type { ISeriesConstructor } from '../series/interface';\nimport type { IComponentConstructor } from '../component/interface';\nimport type { MarkConstructor } from '../mark/interface';\nimport type { IRegionConstructor } from '../region/interface';\nimport type { ILayoutConstructor } from '../layout/interface';\nimport type { IChartPluginConstructor } from '../plugin/chart/interface';\nimport type { IComponentPluginConstructor } from '../plugin/components/interface';\nimport type { IApp, IGraphic } from '@visactor/vrender-core';\nimport type { GrammarTransformOption, IStageEventPlugin, VRenderComponentOptions } from './interface';\nimport type { MarkAnimationSpec } from '../animation/interface';\nimport type { ITriggerConstructor } from '../interaction/interface/trigger';\nimport type { IComposedEventConstructor } from '../index-harmony-simple';\nimport type { ITooltipProcessorConstructor } from '../component/tooltip/processor/interface';\nimport type { IVChartPluginConstructor } from '../plugin/vchart';\n\nexport interface IFactoryRegistry {\n charts: { [key: string]: IChartConstructor };\n series: { [key: string]: ISeriesConstructor };\n components: {\n [key: string]: {\n cmp: IComponentConstructor;\n alwaysCheck?: boolean;\n createOrder: number;\n };\n };\n graphicComponents: Record<string, (attrs: any, options?: VRenderComponentOptions) => IGraphic>;\n marks: { [key: string]: MarkConstructor };\n regions: { [key: string]: IRegionConstructor };\n animations: { [key: string]: (params?: any, preset?: any) => MarkAnimationSpec };\n implements: { [key: string]: (...args: any) => void };\n chartPlugin: { [key: string]: IChartPluginConstructor };\n vChartPlugin: { [key: string]: IVChartPluginConstructor };\n componentPlugin: { [key: string]: IComponentPluginConstructor };\n transforms: { [key: string]: Transform };\n dataParser: { [key: string]: Parser };\n layout: { [key: string]: ILayoutConstructor };\n grammarTransforms: Record<string, GrammarTransformOption>;\n stageEventPlugins: Record<string, IStageEventPlugin<any>>;\n interactionTriggers: Record<string, ITriggerConstructor>;\n composedEventMap: Record<string, IComposedEventConstructor>;\n tooltipProcessors: Record<string, ITooltipProcessorConstructor>;\n runtimePluginInstallers: Record<string, (app?: IApp) => void>;\n formatter?: (text: string | number | string[] | number[], datum: any, formatter: string | string[]) => any;\n}\n\nconst createFactoryRegistry = (): IFactoryRegistry => ({\n charts: {},\n series: {},\n components: {},\n graphicComponents: {},\n marks: {},\n regions: {},\n animations: {},\n implements: {},\n chartPlugin: {},\n vChartPlugin: {},\n componentPlugin: {},\n transforms: {\n // buildIn transforms\n fields,\n filter,\n fold\n },\n dataParser: {\n // buildIn parser\n csv: csvParser,\n dsv: dsvParser,\n tsv: tsvParser\n },\n layout: {},\n grammarTransforms: {},\n stageEventPlugins: {},\n interactionTriggers: {},\n composedEventMap: {},\n tooltipProcessors: {},\n runtimePluginInstallers: {},\n formatter: undefined\n});\n\nconst factoryRegistryVersion = typeof \"2.1.5\" === 'undefined' ? 'unknown' : \"2.1.5\";\nconst factoryRegistryKey = Symbol.for(`@visactor/vchart/factory-registry@${factoryRegistryVersion}`);\nconst globalFactoryRegistry = globalThis as typeof globalThis & {\n [factoryRegistryKey]?: IFactoryRegistry;\n};\n\nexport const factoryRegistry: IFactoryRegistry =\n globalFactoryRegistry[factoryRegistryKey] ?? (globalFactoryRegistry[factoryRegistryKey] = createFactoryRegistry());\n"]}
1
+ {"version":3,"sources":["../src/core/factory-registry.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AA+C3F,MAAM,qBAAqB,GAAG,GAAqB,EAAE,CAAC,CAAC;IACrD,MAAM,EAAE,EAAE;IACV,MAAM,EAAE,EAAE;IACV,UAAU,EAAE,EAAE;IACd,iBAAiB,EAAE,EAAE;IACrB,KAAK,EAAE,EAAE;IACT,OAAO,EAAE,EAAE;IACX,UAAU,EAAE,EAAE;IACd,UAAU,EAAE,EAAE;IACd,WAAW,EAAE,EAAE;IACf,YAAY,EAAE,EAAE;IAChB,eAAe,EAAE,EAAE;IACnB,UAAU,EAAE;QAEV,MAAM;QACN,MAAM;QACN,IAAI;KACL;IACD,UAAU,EAAE;QAEV,GAAG,EAAE,SAAS;QACd,GAAG,EAAE,SAAS;QACd,GAAG,EAAE,SAAS;KACf;IACD,MAAM,EAAE,EAAE;IACV,iBAAiB,EAAE,EAAE;IACrB,iBAAiB,EAAE,EAAE;IACrB,mBAAmB,EAAE,EAAE;IACvB,gBAAgB,EAAE,EAAE;IACpB,iBAAiB,EAAE,EAAE;IACrB,uBAAuB,EAAE,EAAE;IAC3B,SAAS,EAAE,SAAS;CACrB,CAAC,CAAC;AAEH,MAAM,sBAAsB,GAAG,OAAO,OAAO,KAAK,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC;AACpF,MAAM,kBAAkB,GAAG,MAAM,CAAC,GAAG,CAAC,qCAAqC,sBAAsB,EAAE,CAAC,CAAC;AACrG,MAAM,qBAAqB,GAAG,UAE7B,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAC1B,MAAA,qBAAqB,CAAC,kBAAkB,CAAC,mCAAI,CAAC,qBAAqB,CAAC,kBAAkB,CAAC,GAAG,qBAAqB,EAAE,CAAC,CAAC","file":"factory-registry.js","sourcesContent":["import type { Transform, Parser } from '@visactor/vdataset';\n// eslint-disable-next-line no-duplicate-imports\nimport { fields, filter, fold, csvParser, dsvParser, tsvParser } from '@visactor/vdataset';\nimport type { IChartConstructor } from '../chart/interface';\nimport type { ISeriesConstructor } from '../series/interface';\nimport type { IComponentConstructor } from '../component/interface';\nimport type { MarkConstructor } from '../mark/interface';\nimport type { IRegionConstructor } from '../region/interface';\nimport type { ILayoutConstructor } from '../layout/interface';\nimport type { IChartPluginConstructor } from '../plugin/chart/interface';\nimport type { IComponentPluginConstructor } from '../plugin/components/interface';\nimport type { IApp, IGraphic } from '@visactor/vrender-core';\nimport type { GrammarTransformOption, IStageEventPlugin, VRenderComponentOptions } from './interface';\nimport type { MarkAnimationSpec } from '../animation/interface';\nimport type { ITriggerConstructor } from '../interaction/interface/trigger';\nimport type { IComposedEventConstructor } from '../index-harmony-simple';\nimport type { ITooltipProcessorConstructor } from '../component/tooltip/processor/interface';\nimport type { IVChartPluginConstructor } from '../plugin/vchart';\n\nexport interface IFactoryRegistry {\n charts: { [key: string]: IChartConstructor };\n series: { [key: string]: ISeriesConstructor };\n components: {\n [key: string]: {\n cmp: IComponentConstructor;\n alwaysCheck?: boolean;\n createOrder: number;\n };\n };\n graphicComponents: Record<string, (attrs: any, options?: VRenderComponentOptions) => IGraphic>;\n marks: { [key: string]: MarkConstructor };\n regions: { [key: string]: IRegionConstructor };\n animations: { [key: string]: (params?: any, preset?: any) => MarkAnimationSpec };\n implements: { [key: string]: (...args: any) => void };\n chartPlugin: { [key: string]: IChartPluginConstructor };\n vChartPlugin: { [key: string]: IVChartPluginConstructor };\n componentPlugin: { [key: string]: IComponentPluginConstructor };\n transforms: { [key: string]: Transform };\n dataParser: { [key: string]: Parser };\n layout: { [key: string]: ILayoutConstructor };\n grammarTransforms: Record<string, GrammarTransformOption>;\n stageEventPlugins: Record<string, IStageEventPlugin<any>>;\n interactionTriggers: Record<string, ITriggerConstructor>;\n composedEventMap: Record<string, IComposedEventConstructor>;\n tooltipProcessors: Record<string, ITooltipProcessorConstructor>;\n runtimePluginInstallers: Record<string, (app?: IApp) => void>;\n formatter?: (text: string | number | string[] | number[], datum: any, formatter: string | string[]) => any;\n}\n\nconst createFactoryRegistry = (): IFactoryRegistry => ({\n charts: {},\n series: {},\n components: {},\n graphicComponents: {},\n marks: {},\n regions: {},\n animations: {},\n implements: {},\n chartPlugin: {},\n vChartPlugin: {},\n componentPlugin: {},\n transforms: {\n // buildIn transforms\n fields,\n filter,\n fold\n },\n dataParser: {\n // buildIn parser\n csv: csvParser,\n dsv: dsvParser,\n tsv: tsvParser\n },\n layout: {},\n grammarTransforms: {},\n stageEventPlugins: {},\n interactionTriggers: {},\n composedEventMap: {},\n tooltipProcessors: {},\n runtimePluginInstallers: {},\n formatter: undefined\n});\n\nconst factoryRegistryVersion = typeof \"2.1.4\" === 'undefined' ? 'unknown' : \"2.1.4\";\nconst factoryRegistryKey = Symbol.for(`@visactor/vchart/factory-registry@${factoryRegistryVersion}`);\nconst globalFactoryRegistry = globalThis as typeof globalThis & {\n [factoryRegistryKey]?: IFactoryRegistry;\n};\n\nexport const factoryRegistry: IFactoryRegistry =\n globalFactoryRegistry[factoryRegistryKey] ?? (globalFactoryRegistry[factoryRegistryKey] = createFactoryRegistry());\n"]}
@@ -189,4 +189,4 @@ Factory.registerInteractionTrigger = (interactionType, interaction) => {
189
189
  }, Factory._runtimePluginInstallers = factoryRegistry.runtimePluginInstallers, Factory.registerRuntimePluginInstaller = (type, installer) => {
190
190
  Factory._runtimePluginInstallers[type] = installer;
191
191
  }, Factory.getRuntimePluginInstaller = type => Factory._runtimePluginInstallers[type];
192
- //# sourceMappingURL=factory.js.map
192
+ //# sourceMappingURL=factory.js.map
@@ -1,7 +1,7 @@
1
1
  import { VChart } from './vchart';
2
2
  import { Factory } from './factory';
3
3
  export { VChart, Factory };
4
- export declare const version = "2.1.5";
4
+ export declare const version = "2.1.4";
5
5
  export type { IVChart } from './interface';
6
6
  export type { IStateSpec, StateValueType } from '../compile/mark';
7
7
  export type { IRegion } from '../region/interface';
package/esm/core/index.js CHANGED
@@ -4,7 +4,7 @@ import { Factory } from "./factory";
4
4
 
5
5
  export { VChart, Factory };
6
6
 
7
- export const version = "2.1.5";
7
+ export const version = "2.1.4";
8
8
 
9
9
  export * from "../event/interface";
10
10
 
@@ -58,5 +58,4 @@ export { lookup } from "../data/transforms/lookup";
58
58
 
59
59
  export { warn } from "../util/debug";
60
60
 
61
- export { measureText } from "../util/text";
62
- //# sourceMappingURL=index.js.map
61
+ export { measureText } from "../util/text";
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/core/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;AAG3B,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC;AAO/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AAEnC,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAI3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAK/C,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAGlC,cAAc,oBAAoB,CAAC;AAGnC,cAAc,gBAAgB,CAAC;AAG/B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EACL,WAAW,EACX,cAAc,EACd,UAAU,EACV,SAAS,EACT,UAAU,EACV,UAAU,EACV,UAAU,EACV,YAAY,EACb,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,YAAY,EAAE,MAAM,gDAAgD,CAAC;AAC9E,OAAO,EAAE,WAAW,EAAE,MAAM,8CAA8C,CAAC;AAG3E,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,6BAA6B,EAAE,gCAAgC,EAAE,MAAM,kBAAkB,CAAC;AACnG,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC","file":"index.js","sourcesContent":["/**\n * @description The core module of VChart, containing the necessary interfaces for using VChart.\n */\n\nimport { VChart } from './vchart';\nimport { Factory } from './factory';\n\nexport { VChart, Factory };\n\n// export the version\nexport const version = \"2.1.5\";\n\n// export necessary types\nexport type { IVChart } from './interface';\nexport type { IStateSpec, StateValueType } from '../compile/mark';\nexport type { IRegion } from '../region/interface';\n\nexport * from '../event/interface';\nexport * from '../theme/interface';\nexport * from '../model/interface';\n\nexport * from './interface';\nexport * from '../typings';\nexport type { IMarkGraphic, IGraphicContext } from '../mark/interface/';\n\n// some constants\nexport * from '../constant/base';\nexport * from '../constant/data';\nexport * from '../constant/layout';\nexport { AttributeLevel } from '../constant/attribute';\nexport { TransformLevel } from '../data/initialize';\nexport { STATE_VALUE_ENUM } from '../compile/mark/interface';\nexport { ChartEvent } from '../constant/event';\n\n/**\n * spec\n */\nexport * from '../typings/spec/index';\nexport * from '../typings/visual';\n\n// tooltip\nexport * from '../typings/tooltip';\n\n// theme\nexport * from '../theme/index';\n\n// vrender\nexport { vglobal } from '../vrender-bridge';\nexport {\n createGroup,\n createRichText,\n createText,\n createArc,\n createArea,\n createRect,\n createLine,\n createSymbol\n} from '../vrender-bridge';\nexport { ManualTicker } from '@visactor/vrender-animate/ticker/manual-ticker';\nexport { StreamLight } from '@visactor/vrender-animate/custom/streamLight';\n\n// utils\nexport * from '../util/space';\nexport { transformToGraphic } from '../util/style';\nexport { getSpecInfo } from '../component/util';\nexport { registerDataSetInstanceParser, registerDataSetInstanceTransform } from '../data/register';\nexport { lookup } from '../data/transforms/lookup';\nexport { warn } from '../util/debug';\nexport { measureText } from '../util/text';\n"]}
1
+ {"version":3,"sources":["../src/core/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;AAG3B,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC;AAO/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AAEnC,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAI3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAK/C,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAGlC,cAAc,oBAAoB,CAAC;AAGnC,cAAc,gBAAgB,CAAC;AAG/B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EACL,WAAW,EACX,cAAc,EACd,UAAU,EACV,SAAS,EACT,UAAU,EACV,UAAU,EACV,UAAU,EACV,YAAY,EACb,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,YAAY,EAAE,MAAM,gDAAgD,CAAC;AAC9E,OAAO,EAAE,WAAW,EAAE,MAAM,8CAA8C,CAAC;AAG3E,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,6BAA6B,EAAE,gCAAgC,EAAE,MAAM,kBAAkB,CAAC;AACnG,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC","file":"index.js","sourcesContent":["/**\n * @description The core module of VChart, containing the necessary interfaces for using VChart.\n */\n\nimport { VChart } from './vchart';\nimport { Factory } from './factory';\n\nexport { VChart, Factory };\n\n// export the version\nexport const version = \"2.1.4\";\n\n// export necessary types\nexport type { IVChart } from './interface';\nexport type { IStateSpec, StateValueType } from '../compile/mark';\nexport type { IRegion } from '../region/interface';\n\nexport * from '../event/interface';\nexport * from '../theme/interface';\nexport * from '../model/interface';\n\nexport * from './interface';\nexport * from '../typings';\nexport type { IMarkGraphic, IGraphicContext } from '../mark/interface/';\n\n// some constants\nexport * from '../constant/base';\nexport * from '../constant/data';\nexport * from '../constant/layout';\nexport { AttributeLevel } from '../constant/attribute';\nexport { TransformLevel } from '../data/initialize';\nexport { STATE_VALUE_ENUM } from '../compile/mark/interface';\nexport { ChartEvent } from '../constant/event';\n\n/**\n * spec\n */\nexport * from '../typings/spec/index';\nexport * from '../typings/visual';\n\n// tooltip\nexport * from '../typings/tooltip';\n\n// theme\nexport * from '../theme/index';\n\n// vrender\nexport { vglobal } from '../vrender-bridge';\nexport {\n createGroup,\n createRichText,\n createText,\n createArc,\n createArea,\n createRect,\n createLine,\n createSymbol\n} from '../vrender-bridge';\nexport { ManualTicker } from '@visactor/vrender-animate/ticker/manual-ticker';\nexport { StreamLight } from '@visactor/vrender-animate/custom/streamLight';\n\n// utils\nexport * from '../util/space';\nexport { transformToGraphic } from '../util/style';\nexport { getSpecInfo } from '../component/util';\nexport { registerDataSetInstanceParser, registerDataSetInstanceTransform } from '../data/register';\nexport { lookup } from '../data/transforms/lookup';\nexport { warn } from '../util/debug';\nexport { measureText } from '../util/text';\n"]}
@@ -22,4 +22,4 @@ export class InstanceManager {
22
22
  }
23
23
 
24
24
  InstanceManager.instances = new Map;
25
- //# sourceMappingURL=instance-manager.js.map
25
+ //# sourceMappingURL=instance-manager.js.map
@@ -1,2 +1,2 @@
1
1
  export { };
2
- //# sourceMappingURL=interface.js.map
2
+ //# sourceMappingURL=interface.js.map
package/esm/core/util.js CHANGED
@@ -3,4 +3,4 @@ import { measureText } from "../util";
3
3
  export const VCHART_UTILS = {
4
4
  measureText: measureText
5
5
  };
6
- //# sourceMappingURL=util.js.map
6
+ //# sourceMappingURL=util.js.map
@@ -1045,4 +1045,4 @@ export const registerVChartCore = () => {
1045
1045
  Factory.registerRegion("region", Region), Factory.registerLayout("base", Layout),
1046
1046
  registerGroupMark(), registerGesturePlugin(), registerElementHighlight(), registerElementSelect(),
1047
1047
  registerTheme(darkTheme.name, darkTheme);
1048
- //# sourceMappingURL=vchart.js.map
1048
+ //# sourceMappingURL=vchart.js.map
@@ -43,4 +43,4 @@ export const releaseDataViewWithDependencies = (dataView, shouldReleaseDependenc
43
43
  };
44
44
  collectReleaseDependencies(dataView), releaseDataViews([ dataView, ...releaseDependencies ]);
45
45
  };
46
- //# sourceMappingURL=data-view-utils.js.map
46
+ //# sourceMappingURL=data-view-utils.js.map
@@ -81,4 +81,4 @@ export var TransformLevel;
81
81
  TransformLevel[TransformLevel.linkDotInfo = -7] = "linkDotInfo", TransformLevel[TransformLevel.sankeyLayout = -7] = "sankeyLayout",
82
82
  TransformLevel[TransformLevel.dataZoomFilter = -6] = "dataZoomFilter", TransformLevel[TransformLevel.legendFilter = -5] = "legendFilter";
83
83
  }(TransformLevel || (TransformLevel = {}));
84
- //# sourceMappingURL=initialize.js.map
84
+ //# sourceMappingURL=initialize.js.map
@@ -5,4 +5,4 @@ export function registerDataSetInstanceTransform(dataSet, name, transform) {
5
5
  export function registerDataSetInstanceParser(dataSet, name, parse) {
6
6
  dataSet.getParser(name) || dataSet.registerParser(name, parse);
7
7
  }
8
- //# sourceMappingURL=register.js.map
8
+ //# sourceMappingURL=register.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visactor/vchart",
3
- "version": "2.1.5",
3
+ "version": "2.1.6-alpha.1",
4
4
  "description": "charts lib based @visactor/VGrammar",
5
5
  "main": "cjs/index.js",
6
6
  "module": "esm/index.js",
@@ -85,22 +85,22 @@
85
85
  "@size-limit/file": "9.0.0",
86
86
  "rimraf": "3.0.2",
87
87
  "cross-env": "^7.0.3",
88
- "@internal/typescript-json-schema": "0.0.1",
89
- "@internal/bundler": "0.0.1",
88
+ "@internal/eslint-config": "0.0.1",
90
89
  "@internal/ts-config": "0.0.1",
91
- "@internal/eslint-config": "0.0.1"
90
+ "@internal/typescript-json-schema": "0.0.1",
91
+ "@internal/bundler": "0.0.1"
92
92
  },
93
93
  "dependencies": {
94
94
  "@visactor/vutils": "~1.0.23",
95
95
  "@visactor/vdataset": "~1.0.23",
96
96
  "@visactor/vscale": "~1.0.23",
97
97
  "@visactor/vlayouts": "~1.0.23",
98
- "@visactor/vrender": "~1.1.4",
99
- "@visactor/vrender-core": "~1.1.4",
100
- "@visactor/vrender-kits": "~1.1.4",
101
- "@visactor/vrender-components": "~1.1.4",
102
- "@visactor/vrender-animate": "~1.1.4",
103
- "@visactor/vutils-extension": "2.1.5"
98
+ "@visactor/vrender": "~1.1.8-alpha.0",
99
+ "@visactor/vrender-core": "~1.1.8-alpha.0",
100
+ "@visactor/vrender-kits": "~1.1.8-alpha.0",
101
+ "@visactor/vrender-components": "~1.1.8-alpha.0",
102
+ "@visactor/vrender-animate": "~1.1.8-alpha.0",
103
+ "@visactor/vutils-extension": "2.1.6-alpha.1"
104
104
  },
105
105
  "publishConfig": {
106
106
  "access": "public",