@visactor/vchart-extension 2.1.2-alpha.8 → 2.1.2

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 (211) hide show
  1. package/build/index.js +13655 -2799
  2. package/build/index.min.js +2 -2
  3. package/cjs/charts/3d/arc-3d.d.ts +1 -1
  4. package/cjs/charts/3d/arc-3d.js +5 -4
  5. package/cjs/charts/3d/arc-3d.js.map +1 -1
  6. package/cjs/charts/3d/interface.d.ts +3 -1
  7. package/cjs/charts/3d/interface.js.map +1 -1
  8. package/cjs/charts/3d/layout.d.ts +5 -4
  9. package/cjs/charts/3d/layout.js +5 -5
  10. package/cjs/charts/3d/layout.js.map +1 -1
  11. package/cjs/charts/3d/plugin.d.ts +3 -2
  12. package/cjs/charts/3d/plugin.js +4 -4
  13. package/cjs/charts/3d/plugin.js.map +1 -1
  14. package/cjs/charts/3d/pyramid-3d.d.ts +1 -1
  15. package/cjs/charts/3d/pyramid-3d.js +5 -4
  16. package/cjs/charts/3d/pyramid-3d.js.map +1 -1
  17. package/cjs/charts/3d/rect-3d.d.ts +2 -2
  18. package/cjs/charts/3d/rect-3d.js +5 -4
  19. package/cjs/charts/3d/rect-3d.js.map +1 -1
  20. package/cjs/charts/axis-3d/index.js +2 -1
  21. package/cjs/charts/axis-3d/symlog-axis.js +1 -2
  22. package/cjs/charts/bar-3d/chart-spec-transformer.js +1 -1
  23. package/cjs/charts/bar-3d/chart.js +1 -1
  24. package/cjs/charts/bar-3d/constant.js +1 -2
  25. package/cjs/charts/bar-3d/index.js +1 -1
  26. package/cjs/charts/bar-3d/interface.js +1 -1
  27. package/cjs/charts/bar-3d/series-spec-transformer.js +1 -1
  28. package/cjs/charts/bar-3d/series.js +1 -1
  29. package/cjs/charts/bar-3d/theme.js +1 -1
  30. package/cjs/charts/candlestick/candlestick-transformer.js +1 -1
  31. package/cjs/charts/candlestick/candlestick.js +1 -1
  32. package/cjs/charts/candlestick/index.js +1 -1
  33. package/cjs/charts/candlestick/interface.js +1 -1
  34. package/cjs/charts/candlestick/util.js +1 -1
  35. package/cjs/charts/combination-candlestick/combination-candlestick-transformer.js +1 -1
  36. package/cjs/charts/combination-candlestick/combination-candlestick.js +1 -1
  37. package/cjs/charts/combination-candlestick/constant.js +1 -1
  38. package/cjs/charts/combination-candlestick/index.js +1 -1
  39. package/cjs/charts/combination-candlestick/interface.js +1 -1
  40. package/cjs/charts/conversion-funnel/arrow-data-transform.js +1 -1
  41. package/cjs/charts/conversion-funnel/constants.js +1 -1
  42. package/cjs/charts/conversion-funnel/conversion-funnel-transformer.js +1 -1
  43. package/cjs/charts/conversion-funnel/conversion-funnel.js +1 -1
  44. package/cjs/charts/conversion-funnel/index.js +1 -1
  45. package/cjs/charts/conversion-funnel/interface.js +1 -1
  46. package/cjs/charts/conversion-funnel/util.js +1 -1
  47. package/cjs/charts/funnel-3d/chart.js +1 -2
  48. package/cjs/charts/funnel-3d/constant.js +1 -1
  49. package/cjs/charts/funnel-3d/index.js +1 -1
  50. package/cjs/charts/funnel-3d/interface.js +1 -1
  51. package/cjs/charts/funnel-3d/series-spec-transformer.js +1 -1
  52. package/cjs/charts/funnel-3d/series.js +1 -1
  53. package/cjs/charts/funnel-3d/theme.js +1 -1
  54. package/cjs/charts/image-cloud/image-cloud-transformer.js +1 -1
  55. package/cjs/charts/pie-3d/animation.js +6 -6
  56. package/cjs/charts/pie-3d/animation.js.map +1 -1
  57. package/cjs/charts/pie-3d/chart-spec-transformer.d.ts +2 -2
  58. package/cjs/charts/pie-3d/chart-spec-transformer.js +2 -2
  59. package/cjs/charts/pie-3d/chart-spec-transformer.js.map +1 -1
  60. package/cjs/charts/pie-3d/chart.d.ts +2 -2
  61. package/cjs/charts/pie-3d/chart.js +4 -4
  62. package/cjs/charts/pie-3d/chart.js.map +1 -1
  63. package/cjs/charts/pie-3d/constant.d.ts +2 -1
  64. package/cjs/charts/pie-3d/constant.js +2 -2
  65. package/cjs/charts/pie-3d/constant.js.map +1 -1
  66. package/cjs/charts/pie-3d/interface.d.ts +5 -1
  67. package/cjs/charts/pie-3d/interface.js.map +1 -1
  68. package/cjs/charts/pie-3d/series-spec-transformer.d.ts +1 -1
  69. package/cjs/charts/pie-3d/series-spec-transformer.js +2 -2
  70. package/cjs/charts/pie-3d/series-spec-transformer.js.map +1 -1
  71. package/cjs/charts/pie-3d/series.d.ts +3 -2
  72. package/cjs/charts/pie-3d/series.js +5 -5
  73. package/cjs/charts/pie-3d/series.js.map +1 -1
  74. package/cjs/components/bar-link/bar-link.js +1 -1
  75. package/cjs/components/bar-link/constant.js +1 -1
  76. package/cjs/components/bar-link/index.js +1 -1
  77. package/cjs/components/bar-link/type.js +1 -1
  78. package/cjs/components/bar-link/util.js +1 -1
  79. package/cjs/components/bar-regression-line/index.js +1 -1
  80. package/cjs/components/bar-regression-line/type.js +1 -1
  81. package/cjs/components/extension-mark-sync-state/extension-mark-sync-state.js +1 -1
  82. package/cjs/components/extension-mark-sync-state/index.js +1 -1
  83. package/cjs/components/extension-mark-sync-state/type.js +1 -1
  84. package/cjs/components/histogram-regression-line/index.js +1 -1
  85. package/cjs/components/histogram-regression-line/type.js +2 -1
  86. package/cjs/components/map-label/index.js +1 -1
  87. package/cjs/components/map-label/layout.js +1 -1
  88. package/cjs/components/map-label/map-label-transformer.js +1 -1
  89. package/cjs/components/map-label/map-label.js +1 -1
  90. package/cjs/components/map-label/theme.js +1 -1
  91. package/cjs/components/map-label/type.js +1 -1
  92. package/cjs/components/regression-line/index.js +1 -1
  93. package/cjs/components/regression-line/regression-line.js +1 -1
  94. package/cjs/components/regression-line/type.js +1 -1
  95. package/cjs/components/scatter-regression-line/index.js +1 -1
  96. package/cjs/components/scatter-regression-line/type.js +1 -1
  97. package/cjs/components/series-break/constant.js +1 -1
  98. package/cjs/components/series-break/index.js +1 -1
  99. package/cjs/components/series-break/series-break.js +1 -1
  100. package/cjs/components/series-break/type.js +1 -1
  101. package/cjs/components/series-break/util.js +2 -1
  102. package/cjs/components/series-label/constant.js +1 -1
  103. package/cjs/components/series-label/index.js +1 -1
  104. package/cjs/components/series-label/series-label.js +1 -1
  105. package/cjs/components/series-label/type.js +1 -1
  106. package/cjs/components/series-label/util.js +1 -1
  107. package/esm/charts/3d/arc-3d.d.ts +1 -1
  108. package/esm/charts/3d/arc-3d.js +8 -2
  109. package/esm/charts/3d/arc-3d.js.map +1 -1
  110. package/esm/charts/3d/interface.d.ts +3 -1
  111. package/esm/charts/3d/interface.js.map +1 -1
  112. package/esm/charts/3d/layout.d.ts +5 -4
  113. package/esm/charts/3d/layout.js +5 -1
  114. package/esm/charts/3d/layout.js.map +1 -1
  115. package/esm/charts/3d/plugin.d.ts +3 -2
  116. package/esm/charts/3d/plugin.js +4 -2
  117. package/esm/charts/3d/plugin.js.map +1 -1
  118. package/esm/charts/3d/pyramid-3d.d.ts +1 -1
  119. package/esm/charts/3d/pyramid-3d.js +10 -2
  120. package/esm/charts/3d/pyramid-3d.js.map +1 -1
  121. package/esm/charts/3d/rect-3d.d.ts +2 -2
  122. package/esm/charts/3d/rect-3d.js +10 -2
  123. package/esm/charts/3d/rect-3d.js.map +1 -1
  124. package/esm/charts/axis-3d/index.js +2 -1
  125. package/esm/charts/axis-3d/symlog-axis.js +1 -2
  126. package/esm/charts/bar-3d/chart-spec-transformer.js +1 -1
  127. package/esm/charts/bar-3d/chart.js +1 -1
  128. package/esm/charts/bar-3d/constant.js +1 -2
  129. package/esm/charts/bar-3d/index.js +1 -1
  130. package/esm/charts/bar-3d/interface.js +1 -1
  131. package/esm/charts/bar-3d/series-spec-transformer.js +1 -1
  132. package/esm/charts/bar-3d/series.js +1 -1
  133. package/esm/charts/bar-3d/theme.js +1 -1
  134. package/esm/charts/candlestick/candlestick-transformer.js +1 -1
  135. package/esm/charts/candlestick/candlestick.js +1 -1
  136. package/esm/charts/candlestick/index.js +1 -1
  137. package/esm/charts/candlestick/interface.js +1 -1
  138. package/esm/charts/candlestick/util.js +1 -1
  139. package/esm/charts/combination-candlestick/combination-candlestick-transformer.js +1 -1
  140. package/esm/charts/combination-candlestick/combination-candlestick.js +1 -1
  141. package/esm/charts/combination-candlestick/constant.js +1 -1
  142. package/esm/charts/combination-candlestick/index.js +1 -1
  143. package/esm/charts/combination-candlestick/interface.js +1 -1
  144. package/esm/charts/conversion-funnel/arrow-data-transform.js +1 -1
  145. package/esm/charts/conversion-funnel/constants.js +1 -1
  146. package/esm/charts/conversion-funnel/conversion-funnel-transformer.js +1 -1
  147. package/esm/charts/conversion-funnel/conversion-funnel.js +1 -1
  148. package/esm/charts/conversion-funnel/index.js +1 -1
  149. package/esm/charts/conversion-funnel/interface.js +1 -1
  150. package/esm/charts/conversion-funnel/util.js +1 -1
  151. package/esm/charts/funnel-3d/chart.js +1 -2
  152. package/esm/charts/funnel-3d/constant.js +1 -1
  153. package/esm/charts/funnel-3d/index.js +1 -1
  154. package/esm/charts/funnel-3d/interface.js +1 -1
  155. package/esm/charts/funnel-3d/series-spec-transformer.js +1 -1
  156. package/esm/charts/funnel-3d/series.js +1 -1
  157. package/esm/charts/funnel-3d/theme.js +1 -1
  158. package/esm/charts/image-cloud/image-cloud-transformer.js +1 -1
  159. package/esm/charts/pie-3d/animation.js +3 -1
  160. package/esm/charts/pie-3d/animation.js.map +1 -1
  161. package/esm/charts/pie-3d/chart-spec-transformer.d.ts +2 -2
  162. package/esm/charts/pie-3d/chart-spec-transformer.js +1 -1
  163. package/esm/charts/pie-3d/chart-spec-transformer.js.map +1 -1
  164. package/esm/charts/pie-3d/chart.d.ts +2 -2
  165. package/esm/charts/pie-3d/chart.js +5 -1
  166. package/esm/charts/pie-3d/chart.js.map +1 -1
  167. package/esm/charts/pie-3d/constant.d.ts +2 -1
  168. package/esm/charts/pie-3d/constant.js +1 -1
  169. package/esm/charts/pie-3d/constant.js.map +1 -1
  170. package/esm/charts/pie-3d/interface.d.ts +5 -1
  171. package/esm/charts/pie-3d/interface.js.map +1 -1
  172. package/esm/charts/pie-3d/series-spec-transformer.d.ts +1 -1
  173. package/esm/charts/pie-3d/series-spec-transformer.js +1 -1
  174. package/esm/charts/pie-3d/series-spec-transformer.js.map +1 -1
  175. package/esm/charts/pie-3d/series.d.ts +3 -2
  176. package/esm/charts/pie-3d/series.js +5 -1
  177. package/esm/charts/pie-3d/series.js.map +1 -1
  178. package/esm/components/bar-link/bar-link.js +1 -1
  179. package/esm/components/bar-link/constant.js +1 -1
  180. package/esm/components/bar-link/index.js +1 -1
  181. package/esm/components/bar-link/type.js +1 -1
  182. package/esm/components/bar-link/util.js +1 -1
  183. package/esm/components/bar-regression-line/index.js +1 -1
  184. package/esm/components/bar-regression-line/type.js +1 -1
  185. package/esm/components/extension-mark-sync-state/extension-mark-sync-state.js +1 -1
  186. package/esm/components/extension-mark-sync-state/index.js +1 -1
  187. package/esm/components/extension-mark-sync-state/type.js +1 -1
  188. package/esm/components/histogram-regression-line/index.js +1 -1
  189. package/esm/components/histogram-regression-line/type.js +2 -1
  190. package/esm/components/map-label/index.js +1 -1
  191. package/esm/components/map-label/layout.js +1 -1
  192. package/esm/components/map-label/map-label-transformer.js +1 -1
  193. package/esm/components/map-label/map-label.js +1 -1
  194. package/esm/components/map-label/theme.js +1 -1
  195. package/esm/components/map-label/type.js +1 -1
  196. package/esm/components/regression-line/index.js +1 -1
  197. package/esm/components/regression-line/regression-line.js +1 -1
  198. package/esm/components/regression-line/type.js +1 -1
  199. package/esm/components/scatter-regression-line/index.js +1 -1
  200. package/esm/components/scatter-regression-line/type.js +1 -1
  201. package/esm/components/series-break/constant.js +1 -1
  202. package/esm/components/series-break/index.js +1 -1
  203. package/esm/components/series-break/series-break.js +1 -1
  204. package/esm/components/series-break/type.js +1 -1
  205. package/esm/components/series-break/util.js +2 -1
  206. package/esm/components/series-label/constant.js +1 -1
  207. package/esm/components/series-label/index.js +1 -1
  208. package/esm/components/series-label/series-label.js +1 -1
  209. package/esm/components/series-label/type.js +1 -1
  210. package/esm/components/series-label/util.js +1 -1
  211. package/package.json +6 -6
@@ -1,7 +1,8 @@
1
1
  import type { IPie3dSeriesSpec } from './interface';
2
2
  import { MarkType3dEnum, SeriesMark3dNameEnum, SeriesType3dEnum } from '../3d/enum';
3
- import type { ITextMark } from '@visactor/vchart';
4
- import { BasePieSeries, type IArcSeries } from '@visactor/vchart';
3
+ import type { ITextMark } from '@visactor/vchart/esm/mark/interface/mark';
4
+ import type { IArcSeries } from '@visactor/vchart/esm/series/interface/series';
5
+ import { BasePieSeries } from '@visactor/vchart/esm/series/pie/pie';
5
6
  export declare class Pie3dSeries<T extends IPie3dSeriesSpec = IPie3dSeriesSpec> extends BasePieSeries<T> implements IArcSeries {
6
7
  static readonly type: string;
7
8
  type: SeriesType3dEnum;
@@ -4,7 +4,11 @@ import { pie3dSeriesMark } from "./constant";
4
4
 
5
5
  import { SeriesType3dEnum } from "../3d/enum";
6
6
 
7
- import { AttributeLevel, BasePieSeries, Factory } from "@visactor/vchart";
7
+ import { AttributeLevel } from "@visactor/vchart/esm/constant/attribute";
8
+
9
+ import { Factory } from "@visactor/vchart/esm/core/factory";
10
+
11
+ import { BasePieSeries } from "@visactor/vchart/esm/series/pie/pie";
8
12
 
9
13
  import { Pie3dSeriesSpecTransformer } from "./series-spec-transformer";
10
14
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/charts/pie-3d/series.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAwC,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAEpF,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,OAAO,EAAmB,MAAM,kBAAkB,CAAC;AAC3F,OAAO,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAErD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,MAAM,OAAO,WAA2D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AAC,CAAC;AACxD,CAAC,CAAC","file":"series.js","sourcesContent":["// eslint-disable-next-line no-duplicate-imports\nimport type { IPie3dSeriesSpec } from './interface';\nimport { registerArc3dMark } from '../3d/arc-3d';\nimport { pie3dSeriesMark } from './constant';\nimport { MarkType3dEnum, SeriesMark3dNameEnum, SeriesType3dEnum } from '../3d/enum';\nimport type { ITextMark } from '@visactor/vchart';\nimport { AttributeLevel, BasePieSeries, Factory, type IArcSeries } from '@visactor/vchart';\nimport { Pie3dSeriesSpecTransformer } from './series-spec-transformer';\nimport { registerPie3dAnimation } from './animation';\nimport { registerLayout3d } from '../3d/layout';\nimport { pie3d } from './theme';\n\nexport class Pie3dSeries<T extends IPie3dSeriesSpec = IPie3dSeriesSpec> extends BasePieSeries<T> implements IArcSeries {\n static readonly type: string = SeriesType3dEnum.pie3d;\n type = SeriesType3dEnum.pie3d;\n protected _pieMarkName = SeriesMark3dNameEnum.pie3d;\n protected _pieMarkType = MarkType3dEnum.arc3d;\n\n static readonly mark = pie3dSeriesMark;\n static readonly builtInTheme = { pie3d };\n static readonly transformerConstructor = Pie3dSeriesSpecTransformer as any;\n readonly transformerConstructor = Pie3dSeriesSpecTransformer as any;\n\n protected _angle3d: number;\n\n setAttrFromSpec(): void {\n super.setAttrFromSpec();\n this._angle3d = this._spec?.angle3d ?? -Math.PI / 3;\n }\n\n initMarkStyle(): void {\n super.initMarkStyle();\n const pieMark = this._pieMark;\n if (pieMark) {\n this.setMarkStyle(\n pieMark,\n {\n beta: () => this._angle3d\n },\n 'normal',\n AttributeLevel.Series\n );\n }\n }\n\n initLabelMarkStyle(textMark: ITextMark, spec: any = {}): void {\n if (!textMark) {\n return;\n }\n super.initLabelMarkStyle(textMark);\n this.setMarkStyle(textMark, { support3d: true }, undefined, AttributeLevel.Mark);\n }\n}\n\nexport const registerPie3dSeries = () => {\n registerPie3dAnimation();\n registerArc3dMark();\n Factory.registerSeries(Pie3dSeries.type, Pie3dSeries);\n};\n"]}
1
+ {"version":3,"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OAAO;SACR;QACD,KAAK,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAC;QACnC,IAAI,CAAC,YAAY,CAAC,QAAQ,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,SAAS,EAAE,cAAc,CAAC,IAAI,CAAC,CAAC;IACnF,CAAC;;AAtCe,gBAAI,GAAW,gBAAgB,CAAC,KAAK,CAAC;AAKtC,gBAAI,GAAG,eAAe,CAAC;AACvB,wBAAY,GAAG,EAAE,KAAK,EAAE,CAAC;AACzB,kCAAsB,GAAG,0BAAiC,CAAC;AAkC7E,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,EAAE;IACtC,sBAAsB,EAAE,CAAC;IACzB,iBAAiB,EAAE,CAAC;IACpB,OAAO,CAAC,cAAc,CAAC,WAAW,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;AACxD,CAAC,CAAC","file":"series.js","sourcesContent":["// eslint-disable-next-line no-duplicate-imports\nimport type { IPie3dSeriesSpec } from './interface';\nimport { registerArc3dMark } from '../3d/arc-3d';\nimport { pie3dSeriesMark } from './constant';\nimport { MarkType3dEnum, SeriesMark3dNameEnum, SeriesType3dEnum } from '../3d/enum';\nimport { AttributeLevel } from '@visactor/vchart/esm/constant/attribute';\nimport { Factory } from '@visactor/vchart/esm/core/factory';\nimport type { ITextMark } from '@visactor/vchart/esm/mark/interface/mark';\nimport type { IArcSeries } from '@visactor/vchart/esm/series/interface/series';\nimport { BasePieSeries } from '@visactor/vchart/esm/series/pie/pie';\nimport { Pie3dSeriesSpecTransformer } from './series-spec-transformer';\nimport { registerPie3dAnimation } from './animation';\nimport { registerLayout3d } from '../3d/layout';\nimport { pie3d } from './theme';\n\nexport class Pie3dSeries<T extends IPie3dSeriesSpec = IPie3dSeriesSpec> extends BasePieSeries<T> implements IArcSeries {\n static readonly type: string = SeriesType3dEnum.pie3d;\n type = SeriesType3dEnum.pie3d;\n protected _pieMarkName = SeriesMark3dNameEnum.pie3d;\n protected _pieMarkType = MarkType3dEnum.arc3d;\n\n static readonly mark = pie3dSeriesMark;\n static readonly builtInTheme = { pie3d };\n static readonly transformerConstructor = Pie3dSeriesSpecTransformer as any;\n readonly transformerConstructor = Pie3dSeriesSpecTransformer as any;\n\n protected _angle3d: number;\n\n setAttrFromSpec(): void {\n super.setAttrFromSpec();\n this._angle3d = this._spec?.angle3d ?? -Math.PI / 3;\n }\n\n initMarkStyle(): void {\n super.initMarkStyle();\n const pieMark = this._pieMark;\n if (pieMark) {\n this.setMarkStyle(\n pieMark,\n {\n beta: () => this._angle3d\n },\n 'normal',\n AttributeLevel.Series\n );\n }\n }\n\n initLabelMarkStyle(textMark: ITextMark, spec: any = {}): void {\n if (!textMark) {\n return;\n }\n super.initLabelMarkStyle(textMark);\n this.setMarkStyle(textMark, { support3d: true }, undefined, AttributeLevel.Mark);\n }\n}\n\nexport const registerPie3dSeries = () => {\n registerPie3dAnimation();\n registerArc3dMark();\n Factory.registerSeries(Pie3dSeries.type, Pie3dSeries);\n};\n"]}
@@ -80,4 +80,4 @@ export class BarLinkComponent extends AbstractComponent {
80
80
  export const registerBarLink = () => {
81
81
  Factory.registerGraphicComponent(BAR_LINK, (attrs => new BarLinkComponent(attrs)));
82
82
  };
83
- //# sourceMappingURL=bar-link.js.map
83
+ //# sourceMappingURL=bar-link.js.map
@@ -1,2 +1,2 @@
1
1
  export const BAR_LINK = "barLink";
2
- //# sourceMappingURL=constant.js.map
2
+ //# sourceMappingURL=constant.js.map
@@ -5,4 +5,4 @@ export * from "./type";
5
5
  export { getBarLinkConfig, appendBarLinkConfig } from "./util";
6
6
 
7
7
  export * from "./constant";
8
- //# sourceMappingURL=index.js.map
8
+ //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
1
  export { };
2
- //# sourceMappingURL=type.js.map
2
+ //# sourceMappingURL=type.js.map
@@ -174,4 +174,4 @@ export function appendBarLinkConfig(rawSpec, barLinkSpec) {
174
174
  rawSpec.customMark = array(rawSpec.customMark).filter((obj => obj.componentType !== BAR_LINK)),
175
175
  rawSpec.customMark.push(getBarLinkConfig(barLinkSpec));
176
176
  }
177
- //# sourceMappingURL=util.js.map
177
+ //# sourceMappingURL=util.js.map
@@ -80,4 +80,4 @@ export function appendBarRegressionLineConfig(chartSpec, spec) {
80
80
  }
81
81
  }));
82
82
  }
83
- //# sourceMappingURL=index.js.map
83
+ //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
1
  export { };
2
- //# sourceMappingURL=type.js.map
2
+ //# sourceMappingURL=type.js.map
@@ -70,4 +70,4 @@ ExtensionMarkSyncStatePlugin.pluginType = "chart", ExtensionMarkSyncStatePlugin.
70
70
  export const registerExtensionMarkSyncStatePlugin = () => {
71
71
  registerChartPlugin(ExtensionMarkSyncStatePlugin);
72
72
  };
73
- //# sourceMappingURL=extension-mark-sync-state.js.map
73
+ //# sourceMappingURL=extension-mark-sync-state.js.map
@@ -1,4 +1,4 @@
1
1
  export { ExtensionMarkSyncStatePlugin, registerExtensionMarkSyncStatePlugin } from "./extension-mark-sync-state";
2
2
 
3
3
  export * from "./type";
4
- //# sourceMappingURL=index.js.map
4
+ //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
1
  export { };
2
- //# sourceMappingURL=type.js.map
2
+ //# sourceMappingURL=type.js.map
@@ -75,4 +75,4 @@ export function appendHistogramRegressionLineConfig(chartSpec, spec) {
75
75
  }
76
76
  }));
77
77
  }
78
- //# sourceMappingURL=index.js.map
78
+ //# sourceMappingURL=index.js.map
@@ -1 +1,2 @@
1
- export { };
1
+ export { };
2
+ //# sourceMappingURL=type.js.map
@@ -1,4 +1,4 @@
1
1
  export * from "./map-label";
2
2
 
3
3
  export * from "./type";
4
- //# sourceMappingURL=index.js.map
4
+ //# sourceMappingURL=index.js.map
@@ -140,4 +140,4 @@ export function candidatesByOrient(positions, anchor, rect, offset = 0) {
140
140
  });
141
141
  })), candidates;
142
142
  }
143
- //# sourceMappingURL=layout.js.map
143
+ //# sourceMappingURL=layout.js.map
@@ -7,4 +7,4 @@ export class MapLabelSpecTransformer extends BaseComponentSpecTransformer {
7
7
  return mapLabel;
8
8
  }
9
9
  }
10
- //# sourceMappingURL=map-label-transformer.js.map
10
+ //# sourceMappingURL=map-label-transformer.js.map
@@ -260,4 +260,4 @@ export const registerMapLabel = option => {
260
260
  const vchartConstructor = (null == option ? void 0 : option.VChart) || VChart;
261
261
  vchartConstructor && vchartConstructor.useComponent([ MapLabelComponent ]);
262
262
  };
263
- //# sourceMappingURL=map-label.js.map
263
+ //# sourceMappingURL=map-label.js.map
@@ -54,4 +54,4 @@ export const mapLabel = {
54
54
  }
55
55
  }
56
56
  };
57
- //# sourceMappingURL=theme.js.map
57
+ //# sourceMappingURL=theme.js.map
@@ -1,2 +1,2 @@
1
1
  export { };
2
- //# sourceMappingURL=type.js.map
2
+ //# sourceMappingURL=type.js.map
@@ -1,4 +1,4 @@
1
1
  export * from "./regression-line";
2
2
 
3
3
  export * from "./type";
4
- //# sourceMappingURL=index.js.map
4
+ //# sourceMappingURL=index.js.map
@@ -49,4 +49,4 @@ export class RegressionLine extends AbstractComponent {
49
49
  export const registerRegressionLine = () => {
50
50
  Factory.registerGraphicComponent(REGRESSION_LINE, (attrs => new RegressionLine(attrs)));
51
51
  };
52
- //# sourceMappingURL=regression-line.js.map
52
+ //# sourceMappingURL=regression-line.js.map
@@ -1,2 +1,2 @@
1
1
  export { };
2
- //# sourceMappingURL=type.js.map
2
+ //# sourceMappingURL=type.js.map
@@ -99,4 +99,4 @@ export function appendScatterRegressionLineConfig(chartSpec, spec) {
99
99
  }
100
100
  }));
101
101
  }
102
- //# sourceMappingURL=index.js.map
102
+ //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
1
  export { };
2
- //# sourceMappingURL=type.js.map
2
+ //# sourceMappingURL=type.js.map
@@ -1,2 +1,2 @@
1
1
  export const SERIES_BREAK = "seriesBreak";
2
- //# sourceMappingURL=constant.js.map
2
+ //# sourceMappingURL=constant.js.map
@@ -5,4 +5,4 @@ export { getSeriesBreakConfig, appendSeriesBreakConfig } from "./util";
5
5
  export * from "./type";
6
6
 
7
7
  export * from "./constant";
8
- //# sourceMappingURL=index.js.map
8
+ //# sourceMappingURL=index.js.map
@@ -110,4 +110,4 @@ export class SeriesBreakComponent extends AbstractComponent {
110
110
  export const registerSeriesBreak = () => {
111
111
  Factory.registerGraphicComponent("seriesBreak", (attrs => new SeriesBreakComponent(attrs)));
112
112
  };
113
- //# sourceMappingURL=series-break.js.map
113
+ //# sourceMappingURL=series-break.js.map
@@ -1,2 +1,2 @@
1
1
  export { };
2
- //# sourceMappingURL=type.js.map
2
+ //# sourceMappingURL=type.js.map
@@ -240,4 +240,5 @@ export const appendSeriesBreakConfig = rawSpec => {
240
240
  !0;
241
241
  }
242
242
  return !1;
243
- };
243
+ };
244
+ //# sourceMappingURL=util.js.map
@@ -1,2 +1,2 @@
1
1
  export const SERIES_LABEL = "seriesLabel";
2
- //# sourceMappingURL=constant.js.map
2
+ //# sourceMappingURL=constant.js.map
@@ -3,4 +3,4 @@ export { SeriesLabelComponent, registerSeriesLabel } from "./series-label";
3
3
  export * from "./type";
4
4
 
5
5
  export { getSeriesLabelConfig, appendSeriesLabelConfig } from "./util";
6
- //# sourceMappingURL=index.js.map
6
+ //# sourceMappingURL=index.js.map
@@ -105,4 +105,4 @@ export class SeriesLabelComponent extends AbstractComponent {
105
105
  export const registerSeriesLabel = () => {
106
106
  Factory.registerGraphicComponent("seriesLabel", (attrs => new SeriesLabelComponent(attrs)));
107
107
  };
108
- //# sourceMappingURL=series-label.js.map
108
+ //# sourceMappingURL=series-label.js.map
@@ -1,2 +1,2 @@
1
1
  export { };
2
- //# sourceMappingURL=type.js.map
2
+ //# sourceMappingURL=type.js.map
@@ -141,4 +141,4 @@ export function appendSeriesLabelConfig(rawSpec, seriesLabelSpec) {
141
141
  rawSpec.customMark.push(getSeriesLabelConfig(position, rest));
142
142
  }
143
143
  }
144
- //# sourceMappingURL=util.js.map
144
+ //# sourceMappingURL=util.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visactor/vchart-extension",
3
- "version": "2.1.2-alpha.8",
3
+ "version": "2.1.2",
4
4
  "description": "vchart extension package, including extension plugins and components",
5
5
  "sideEffects": false,
6
6
  "main": "cjs/index.js",
@@ -17,11 +17,11 @@
17
17
  "build"
18
18
  ],
19
19
  "dependencies": {
20
- "@visactor/vrender-core": "1.1.3-alpha.2",
21
- "@visactor/vrender-kits": "1.1.3-alpha.2",
22
- "@visactor/vrender-components": "1.1.3-alpha.2",
23
- "@visactor/vrender-animate": "1.1.3-alpha.2",
24
- "@visactor/vchart": "2.1.2-alpha.8",
20
+ "@visactor/vrender-core": "^1.1.3",
21
+ "@visactor/vrender-kits": "^1.1.3",
22
+ "@visactor/vrender-components": "^1.1.3",
23
+ "@visactor/vrender-animate": "^1.1.3",
24
+ "@visactor/vchart": "2.1.2",
25
25
  "@visactor/vutils": "~1.0.23",
26
26
  "@visactor/vdataset": "~1.0.23",
27
27
  "@visactor/vlayouts": "~1.0.23"