@visactor/vchart 2.0.7-alpha.0 → 2.0.7-alpha.10

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 (112) hide show
  1. package/build/es5/index.js +1 -1
  2. package/build/index.es.js +5225 -928
  3. package/build/index.js +5630 -946
  4. package/build/index.min.js +2 -3
  5. package/build/tsconfig.tsbuildinfo +1 -1
  6. package/cjs/animation/interface.js +1 -2
  7. package/cjs/chart/box-plot/box-plot.js +3 -2
  8. package/cjs/chart/box-plot/box-plot.js.map +1 -1
  9. package/cjs/chart/histogram/histogram.js +2 -2
  10. package/cjs/chart/histogram/histogram.js.map +1 -1
  11. package/cjs/compile/grammar-item.js +2 -1
  12. package/cjs/component/crosshair/base.d.ts +1 -1
  13. package/cjs/component/crosshair/base.js +10 -6
  14. package/cjs/component/crosshair/base.js.map +1 -1
  15. package/cjs/component/geo/geo-coordinate.js.map +1 -1
  16. package/cjs/component/legend/discrete/util.js +5 -1
  17. package/cjs/component/legend/discrete/util.js.map +1 -1
  18. package/cjs/constant/attribute.js +1 -2
  19. package/cjs/constant/gradient.js +2 -1
  20. package/cjs/constant/sunburst.js +1 -1
  21. package/cjs/constant/waterfall.js +1 -2
  22. package/cjs/constant/word-cloud.js +1 -1
  23. package/cjs/core/expression-function.js +2 -1
  24. package/cjs/core/index.d.ts +1 -1
  25. package/cjs/core/index.js +1 -1
  26. package/cjs/core/index.js.map +1 -1
  27. package/cjs/core/vchart.js +3 -2
  28. package/cjs/core/vchart.js.map +1 -1
  29. package/cjs/data/initialize.js +1 -1
  30. package/cjs/data/register.js +1 -1
  31. package/cjs/index.d.ts +8 -0
  32. package/cjs/index.js +141 -1
  33. package/cjs/index.js.map +1 -1
  34. package/cjs/layout/base-layout.d.ts +2 -2
  35. package/cjs/layout/base-layout.js +12 -7
  36. package/cjs/layout/base-layout.js.map +1 -1
  37. package/cjs/layout/interface.d.ts +1 -0
  38. package/cjs/layout/interface.js.map +1 -1
  39. package/cjs/plugin/chart/index.d.ts +1 -0
  40. package/cjs/plugin/chart/index.js +2 -1
  41. package/cjs/plugin/chart/index.js.map +1 -1
  42. package/cjs/plugin/chart/interface.d.ts +2 -0
  43. package/cjs/plugin/chart/interface.js.map +1 -1
  44. package/cjs/plugin/chart/plugin-service.d.ts +1 -0
  45. package/cjs/plugin/chart/plugin-service.js +5 -0
  46. package/cjs/plugin/chart/plugin-service.js.map +1 -1
  47. package/cjs/plugin/chart/resize-zoom/index.d.ts +1 -0
  48. package/cjs/plugin/chart/resize-zoom/index.js +21 -0
  49. package/cjs/plugin/chart/resize-zoom/index.js.map +1 -0
  50. package/cjs/plugin/chart/resize-zoom/zoom.d.ts +21 -0
  51. package/cjs/plugin/chart/resize-zoom/zoom.js +62 -0
  52. package/cjs/plugin/chart/resize-zoom/zoom.js.map +1 -0
  53. package/cjs/series/index.d.ts +2 -2
  54. package/cjs/series/index.js +6 -1
  55. package/cjs/series/index.js.map +1 -1
  56. package/cjs/series/waterfall/waterfall.d.ts +1 -0
  57. package/cjs/series/waterfall/waterfall.js +7 -3
  58. package/cjs/series/waterfall/waterfall.js.map +1 -1
  59. package/esm/animation/interface.js +1 -2
  60. package/esm/chart/box-plot/box-plot.js +4 -1
  61. package/esm/chart/box-plot/box-plot.js.map +1 -1
  62. package/esm/chart/histogram/histogram.js +4 -1
  63. package/esm/chart/histogram/histogram.js.map +1 -1
  64. package/esm/compile/grammar-item.js +2 -1
  65. package/esm/component/crosshair/base.d.ts +1 -1
  66. package/esm/component/crosshair/base.js +10 -6
  67. package/esm/component/crosshair/base.js.map +1 -1
  68. package/esm/component/geo/geo-coordinate.js.map +1 -1
  69. package/esm/component/legend/discrete/util.js +5 -2
  70. package/esm/component/legend/discrete/util.js.map +1 -1
  71. package/esm/constant/attribute.js +1 -2
  72. package/esm/constant/gradient.js +2 -1
  73. package/esm/constant/sunburst.js +1 -1
  74. package/esm/constant/waterfall.js +1 -2
  75. package/esm/constant/word-cloud.js +1 -1
  76. package/esm/core/expression-function.js +2 -1
  77. package/esm/core/index.d.ts +1 -1
  78. package/esm/core/index.js +1 -1
  79. package/esm/core/index.js.map +1 -1
  80. package/esm/core/vchart.js +3 -2
  81. package/esm/core/vchart.js.map +1 -1
  82. package/esm/data/initialize.js +1 -1
  83. package/esm/data/register.js +1 -1
  84. package/esm/index.d.ts +8 -0
  85. package/esm/index.js +14 -0
  86. package/esm/index.js.map +1 -1
  87. package/esm/layout/base-layout.d.ts +2 -2
  88. package/esm/layout/base-layout.js +12 -7
  89. package/esm/layout/base-layout.js.map +1 -1
  90. package/esm/layout/interface.d.ts +1 -0
  91. package/esm/layout/interface.js.map +1 -1
  92. package/esm/plugin/chart/index.d.ts +1 -0
  93. package/esm/plugin/chart/index.js +2 -0
  94. package/esm/plugin/chart/index.js.map +1 -1
  95. package/esm/plugin/chart/interface.d.ts +2 -0
  96. package/esm/plugin/chart/interface.js.map +1 -1
  97. package/esm/plugin/chart/plugin-service.d.ts +1 -0
  98. package/esm/plugin/chart/plugin-service.js +5 -0
  99. package/esm/plugin/chart/plugin-service.js.map +1 -1
  100. package/esm/plugin/chart/resize-zoom/index.d.ts +1 -0
  101. package/esm/plugin/chart/resize-zoom/index.js +2 -0
  102. package/esm/plugin/chart/resize-zoom/index.js.map +1 -0
  103. package/esm/plugin/chart/resize-zoom/zoom.d.ts +21 -0
  104. package/esm/plugin/chart/resize-zoom/zoom.js +59 -0
  105. package/esm/plugin/chart/resize-zoom/zoom.js.map +1 -0
  106. package/esm/series/index.d.ts +2 -2
  107. package/esm/series/index.js +2 -2
  108. package/esm/series/index.js.map +1 -1
  109. package/esm/series/waterfall/waterfall.d.ts +1 -0
  110. package/esm/series/waterfall/waterfall.js +8 -2
  111. package/esm/series/waterfall/waterfall.js.map +1 -1
  112. package/package.json +12 -12
@@ -26,4 +26,5 @@ class ExpressionFunction {
26
26
  }
27
27
  }
28
28
 
29
- exports.ExpressionFunction = ExpressionFunction;
29
+ exports.ExpressionFunction = ExpressionFunction;
30
+ //# sourceMappingURL=expression-function.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.0.7-alpha.0";
4
+ export declare const version = "2.0.7-alpha.10";
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.0.7-alpha.0", __exportStar(require("../event/interface"), exports),
38
+ }), exports.version = "2.0.7-alpha.10", __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),
@@ -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,eAAe,CAAC;AAOvC,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,uDAUgC;AAT9B,uGAAA,OAAO,OAAA;AACP,2GAAA,WAAW,OAAA;AACX,8GAAA,cAAc,OAAA;AACd,0GAAA,UAAU,OAAA;AACV,yGAAA,SAAS,OAAA;AACT,0GAAA,UAAU,OAAA;AACV,0GAAA,UAAU,OAAA;AACV,0GAAA,UAAU,OAAA;AACV,4GAAA,YAAY,OAAA;AAEd,6DAAsE;AAA7D,+GAAA,YAAY,OAAA;AAAE,8GAAA,WAAW,OAAA;AAGlC,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.0.7-alpha.0\";\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 {\n vglobal,\n createGroup,\n createRichText,\n createText,\n createArc,\n createArea,\n createRect,\n createLine,\n createSymbol\n} from '@visactor/vrender-core';\nexport { ManualTicker, StreamLight } from '@visactor/vrender-animate';\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,gBAAgB,CAAC;AAOxC,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,uDAUgC;AAT9B,uGAAA,OAAO,OAAA;AACP,2GAAA,WAAW,OAAA;AACX,8GAAA,cAAc,OAAA;AACd,0GAAA,UAAU,OAAA;AACV,yGAAA,SAAS,OAAA;AACT,0GAAA,UAAU,OAAA;AACV,0GAAA,UAAU,OAAA;AACV,0GAAA,UAAU,OAAA;AACV,4GAAA,YAAY,OAAA;AAEd,6DAAsE;AAA7D,+GAAA,YAAY,OAAA;AAAE,8GAAA,WAAW,OAAA;AAGlC,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.0.7-alpha.10\";\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 {\n vglobal,\n createGroup,\n createRichText,\n createText,\n createArc,\n createArea,\n createRect,\n createLine,\n createSymbol\n} from '@visactor/vrender-core';\nexport { ManualTicker, StreamLight } from '@visactor/vrender-animate';\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"]}
@@ -332,7 +332,8 @@ class VChart {
332
332
  return transformSpec && this._initChartSpec(this._spec, "render"), this._chartPluginApply("onBeforeInitChart", this._spec, actionSource),
333
333
  null === (_b = null === (_a = this._option.performanceHook) || void 0 === _a ? void 0 : _a.beforeInitializeChart) || void 0 === _b || _b.call(_a, this),
334
334
  this._initChart(this._spec), null === (_d = null === (_c = this._option.performanceHook) || void 0 === _c ? void 0 : _c.afterInitializeChart) || void 0 === _d || _d.call(_c, this),
335
- !(!this._chart || !this._compiler) && (null === (_f = null === (_e = this._option.performanceHook) || void 0 === _e ? void 0 : _e.beforeCompileToVGrammar) || void 0 === _f || _f.call(_e, this),
335
+ !(!this._chart || !this._compiler) && (this._chartPluginApply("onAfterInitChart", this._spec, actionSource),
336
+ null === (_f = null === (_e = this._option.performanceHook) || void 0 === _e ? void 0 : _e.beforeCompileToVGrammar) || void 0 === _f || _f.call(_e, this),
336
337
  this._compiler.compile({
337
338
  chart: this._chart,
338
339
  vChart: this
@@ -926,4 +927,4 @@ const registerVChartCore = () => {
926
927
  };
927
928
 
928
929
  exports.registerVChartCore = registerVChartCore, (0, exports.registerVChartCore)();
929
- //# sourceMappingURL=vchart.js.map
930
+ //# sourceMappingURL=vchart.js.map