@visactor/react-vchart 1.15.5-alpha.8 → 2.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -26
- package/cjs/VChart.d.ts +1 -1
- package/cjs/VChartSimple.d.ts +1 -1
- package/cjs/charts/AreaChart.d.ts +1 -1
- package/cjs/charts/Bar3dChart.d.ts +2 -2
- package/cjs/charts/Bar3dChart.js +2 -2
- package/cjs/charts/Bar3dChart.js.map +1 -1
- package/cjs/charts/BarChart.d.ts +1 -1
- package/cjs/charts/BaseChart.d.ts +1 -2
- package/cjs/charts/BaseChart.js +16 -17
- package/cjs/charts/BaseChart.js.map +1 -1
- package/cjs/charts/BoxPlotChart.d.ts +1 -1
- package/cjs/charts/CirclePackingChart.d.ts +1 -1
- package/cjs/charts/CircularProgressChart.d.ts +1 -1
- package/cjs/charts/CommonChart.d.ts +1 -1
- package/cjs/charts/CorrelationChart.d.ts +1 -1
- package/cjs/charts/Funnel3dChart.d.ts +2 -2
- package/cjs/charts/Funnel3dChart.js +2 -2
- package/cjs/charts/Funnel3dChart.js.map +1 -1
- package/cjs/charts/FunnelChart.d.ts +1 -1
- package/cjs/charts/GaugeChart.d.ts +1 -1
- package/cjs/charts/HeatmapChart.d.ts +1 -1
- package/cjs/charts/Histogram3dChart.d.ts +2 -2
- package/cjs/charts/Histogram3dChart.js +2 -2
- package/cjs/charts/Histogram3dChart.js.map +1 -1
- package/cjs/charts/HistogramChart.d.ts +1 -1
- package/cjs/charts/LineChart.d.ts +1 -1
- package/cjs/charts/LinearProgressChart.d.ts +1 -1
- package/cjs/charts/LiquidChart.d.ts +1 -1
- package/cjs/charts/MapChart.d.ts +1 -1
- package/cjs/charts/MosaicChart.d.ts +1 -1
- package/cjs/charts/PictogramChart.d.ts +1 -1
- package/cjs/charts/Pie3dChart.d.ts +2 -2
- package/cjs/charts/Pie3dChart.js +2 -2
- package/cjs/charts/Pie3dChart.js.map +1 -1
- package/cjs/charts/PieChart.d.ts +1 -1
- package/cjs/charts/RadarChart.d.ts +1 -1
- package/cjs/charts/RangeAreaChart.d.ts +1 -1
- package/cjs/charts/RangeColumn3dChart.d.ts +2 -2
- package/cjs/charts/RangeColumn3dChart.js +2 -2
- package/cjs/charts/RangeColumn3dChart.js.map +1 -1
- package/cjs/charts/RangeColumnChart.d.ts +1 -1
- package/cjs/charts/RoseChart.d.ts +1 -1
- package/cjs/charts/SankeyChart.d.ts +1 -1
- package/cjs/charts/ScatterChart.d.ts +1 -1
- package/cjs/charts/SequenceChart.d.ts +1 -1
- package/cjs/charts/SunburstChart.d.ts +1 -1
- package/cjs/charts/TreemapChart.d.ts +1 -1
- package/cjs/charts/TreemapChart.js +2 -2
- package/cjs/charts/TreemapChart.js.map +1 -1
- package/cjs/charts/VennChart.d.ts +1 -1
- package/cjs/charts/WaterfallChart.d.ts +1 -1
- package/cjs/charts/WordCloud3dChart.d.ts +2 -2
- package/cjs/charts/WordCloud3dChart.js +2 -2
- package/cjs/charts/WordCloud3dChart.js.map +1 -1
- package/cjs/charts/WordCloudChart.d.ts +1 -1
- package/cjs/charts/index.d.ts +1 -0
- package/cjs/charts/index.js +2 -1
- package/cjs/charts/index.js.map +1 -1
- package/cjs/components/BaseComponent.js +1 -1
- package/cjs/components/BaseComponent.js.map +1 -1
- package/cjs/containers/withContainer.d.ts +1 -1
- package/cjs/containers/withContainer.js +1 -1
- package/cjs/containers/withContainer.js.map +1 -1
- package/cjs/context/chart.d.ts +3 -1
- package/cjs/context/chart.js +5 -4
- package/cjs/context/chart.js.map +1 -1
- package/cjs/context/stage.d.ts +5 -1
- package/cjs/context/stage.js +17 -6
- package/cjs/context/stage.js.map +1 -1
- package/cjs/index.d.ts +3 -2
- package/cjs/index.js +1 -1
- package/cjs/index.js.map +1 -1
- package/cjs/series/Bar3d.d.ts +2 -2
- package/cjs/series/Bar3d.js +2 -2
- package/cjs/series/Bar3d.js.map +1 -1
- package/cjs/series/Funnel3d.d.ts +2 -2
- package/cjs/series/Funnel3d.js +2 -2
- package/cjs/series/Funnel3d.js.map +1 -1
- package/cjs/series/Pie3d.d.ts +2 -2
- package/cjs/series/Pie3d.js +2 -2
- package/cjs/series/Pie3d.js.map +1 -1
- package/cjs/series/RangeColumn3d.d.ts +2 -2
- package/cjs/series/RangeColumn3d.js +2 -2
- package/cjs/series/RangeColumn3d.js.map +1 -1
- package/cjs/series/WordCloud3d.d.ts +2 -2
- package/cjs/series/WordCloud3d.js +2 -2
- package/cjs/series/WordCloud3d.js.map +1 -1
- package/esm/VChart.d.ts +1 -1
- package/esm/VChartSimple.d.ts +1 -1
- package/esm/charts/AreaChart.d.ts +1 -1
- package/esm/charts/Bar3dChart.d.ts +2 -2
- package/esm/charts/Bar3dChart.js +3 -1
- package/esm/charts/Bar3dChart.js.map +1 -1
- package/esm/charts/BarChart.d.ts +1 -1
- package/esm/charts/BaseChart.d.ts +1 -2
- package/esm/charts/BaseChart.js +14 -17
- package/esm/charts/BaseChart.js.map +1 -1
- package/esm/charts/BoxPlotChart.d.ts +1 -1
- package/esm/charts/CirclePackingChart.d.ts +1 -1
- package/esm/charts/CircularProgressChart.d.ts +1 -1
- package/esm/charts/CommonChart.d.ts +1 -1
- package/esm/charts/CorrelationChart.d.ts +1 -1
- package/esm/charts/Funnel3dChart.d.ts +2 -2
- package/esm/charts/Funnel3dChart.js +3 -1
- package/esm/charts/Funnel3dChart.js.map +1 -1
- package/esm/charts/FunnelChart.d.ts +1 -1
- package/esm/charts/GaugeChart.d.ts +1 -1
- package/esm/charts/HeatmapChart.d.ts +1 -1
- package/esm/charts/Histogram3dChart.d.ts +2 -2
- package/esm/charts/Histogram3dChart.js +3 -1
- package/esm/charts/Histogram3dChart.js.map +1 -1
- package/esm/charts/HistogramChart.d.ts +1 -1
- package/esm/charts/LineChart.d.ts +1 -1
- package/esm/charts/LinearProgressChart.d.ts +1 -1
- package/esm/charts/LiquidChart.d.ts +1 -1
- package/esm/charts/MapChart.d.ts +1 -1
- package/esm/charts/MosaicChart.d.ts +1 -1
- package/esm/charts/PictogramChart.d.ts +1 -1
- package/esm/charts/Pie3dChart.d.ts +2 -2
- package/esm/charts/Pie3dChart.js +3 -1
- package/esm/charts/Pie3dChart.js.map +1 -1
- package/esm/charts/PieChart.d.ts +1 -1
- package/esm/charts/RadarChart.d.ts +1 -1
- package/esm/charts/RangeAreaChart.d.ts +1 -1
- package/esm/charts/RangeColumn3dChart.d.ts +2 -2
- package/esm/charts/RangeColumn3dChart.js +3 -1
- package/esm/charts/RangeColumn3dChart.js.map +1 -1
- package/esm/charts/RangeColumnChart.d.ts +1 -1
- package/esm/charts/RoseChart.d.ts +1 -1
- package/esm/charts/SankeyChart.d.ts +1 -1
- package/esm/charts/ScatterChart.d.ts +1 -1
- package/esm/charts/SequenceChart.d.ts +1 -1
- package/esm/charts/SunburstChart.d.ts +1 -1
- package/esm/charts/TreemapChart.d.ts +1 -1
- package/esm/charts/TreemapChart.js +1 -3
- package/esm/charts/TreemapChart.js.map +1 -1
- package/esm/charts/VennChart.d.ts +1 -1
- package/esm/charts/WaterfallChart.d.ts +1 -1
- package/esm/charts/WordCloud3dChart.d.ts +2 -2
- package/esm/charts/WordCloud3dChart.js +3 -1
- package/esm/charts/WordCloud3dChart.js.map +1 -1
- package/esm/charts/WordCloudChart.d.ts +1 -1
- package/esm/charts/index.d.ts +1 -0
- package/esm/charts/index.js +2 -0
- package/esm/charts/index.js.map +1 -1
- package/esm/components/BaseComponent.js +1 -1
- package/esm/components/BaseComponent.js.map +1 -1
- package/esm/containers/withContainer.d.ts +1 -1
- package/esm/containers/withContainer.js +1 -1
- package/esm/containers/withContainer.js.map +1 -1
- package/esm/context/chart.d.ts +3 -1
- package/esm/context/chart.js +5 -4
- package/esm/context/chart.js.map +1 -1
- package/esm/context/stage.d.ts +5 -1
- package/esm/context/stage.js +18 -5
- package/esm/context/stage.js.map +1 -1
- package/esm/index.d.ts +3 -2
- package/esm/index.js +1 -1
- package/esm/index.js.map +1 -1
- package/esm/series/Bar3d.d.ts +2 -2
- package/esm/series/Bar3d.js +1 -1
- package/esm/series/Bar3d.js.map +1 -1
- package/esm/series/Funnel3d.d.ts +2 -2
- package/esm/series/Funnel3d.js +1 -1
- package/esm/series/Funnel3d.js.map +1 -1
- package/esm/series/Pie3d.d.ts +2 -2
- package/esm/series/Pie3d.js +1 -1
- package/esm/series/Pie3d.js.map +1 -1
- package/esm/series/RangeColumn3d.d.ts +2 -2
- package/esm/series/RangeColumn3d.js +1 -1
- package/esm/series/RangeColumn3d.js.map +1 -1
- package/esm/series/WordCloud3d.d.ts +2 -2
- package/esm/series/WordCloud3d.js +1 -1
- package/esm/series/WordCloud3d.js.map +1 -1
- package/package.json +6 -6
- package/cjs/context/view.d.ts +0 -5
- package/cjs/context/view.js +0 -24
- package/cjs/context/view.js.map +0 -1
- package/esm/context/view.d.ts +0 -5
- package/esm/context/view.js +0 -16
- package/esm/context/view.js.map +0 -1
package/esm/charts/index.d.ts
CHANGED
|
@@ -34,5 +34,6 @@ export * from './WordCloudChart';
|
|
|
34
34
|
export * from './WordCloud3dChart';
|
|
35
35
|
export * from './WordCloudChart';
|
|
36
36
|
export * from './VennChart';
|
|
37
|
+
export * from './WaterfallChart';
|
|
37
38
|
export type { ChartOptions } from './BaseChart';
|
|
38
39
|
export type { IData, IChartSpec } from '@visactor/vchart';
|
package/esm/charts/index.js
CHANGED
package/esm/charts/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/charts/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAE/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AAEnC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AAEjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAE9B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AAEjC,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,aAAa,CAAC;AAE5B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAEhC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC","file":"index.js","sourcesContent":["export * from './AreaChart';\nexport * from './BarChart';\nexport * from './Bar3dChart';\nexport * from './BoxPlotChart';\n\nexport * from './CirclePackingChart';\nexport * from './CircularProgressChart';\nexport * from './CommonChart';\nexport * from './CorrelationChart';\n\nexport * from './FunnelChart';\nexport * from './Funnel3dChart';\nexport * from './GaugeChart';\nexport * from './HeatmapChart';\nexport * from './Histogram3dChart';\nexport * from './HistogramChart';\n\nexport * from './LinearProgressChart';\nexport * from './LineChart';\nexport * from './LiquidChart';\n\nexport * from './MapChart';\nexport * from './MosaicChart';\nexport * from './PictogramChart';\n\nexport * from './PieChart';\nexport * from './Pie3dChart';\nexport * from './RadarChart';\nexport * from './RangeAreaChart';\nexport * from './RangeColumnChart';\nexport * from './RangeColumn3dChart';\nexport * from './RoseChart';\n\nexport * from './SankeyChart';\nexport * from './ScatterChart';\nexport * from './SequenceChart';\nexport * from './SunburstChart';\n\nexport * from './TreemapChart';\nexport * from './WordCloudChart';\nexport * from './WordCloud3dChart';\nexport * from './WordCloudChart';\nexport * from './VennChart';\n\nexport type { ChartOptions } from './BaseChart';\nexport type { IData, IChartSpec } from '@visactor/vchart';\n"]}
|
|
1
|
+
{"version":3,"sources":["../src/charts/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAE/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AAEnC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AAEjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAE9B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AAEjC,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,aAAa,CAAC;AAE5B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAEhC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC","file":"index.js","sourcesContent":["export * from './AreaChart';\nexport * from './BarChart';\nexport * from './Bar3dChart';\nexport * from './BoxPlotChart';\n\nexport * from './CirclePackingChart';\nexport * from './CircularProgressChart';\nexport * from './CommonChart';\nexport * from './CorrelationChart';\n\nexport * from './FunnelChart';\nexport * from './Funnel3dChart';\nexport * from './GaugeChart';\nexport * from './HeatmapChart';\nexport * from './Histogram3dChart';\nexport * from './HistogramChart';\n\nexport * from './LinearProgressChart';\nexport * from './LineChart';\nexport * from './LiquidChart';\n\nexport * from './MapChart';\nexport * from './MosaicChart';\nexport * from './PictogramChart';\n\nexport * from './PieChart';\nexport * from './Pie3dChart';\nexport * from './RadarChart';\nexport * from './RangeAreaChart';\nexport * from './RangeColumnChart';\nexport * from './RangeColumn3dChart';\nexport * from './RoseChart';\n\nexport * from './SankeyChart';\nexport * from './ScatterChart';\nexport * from './SequenceChart';\nexport * from './SunburstChart';\n\nexport * from './TreemapChart';\nexport * from './WordCloudChart';\nexport * from './WordCloud3dChart';\nexport * from './WordCloudChart';\nexport * from './VennChart';\nexport * from './WaterfallChart';\n\nexport type { ChartOptions } from './BaseChart';\nexport type { IData, IChartSpec } from '@visactor/vchart';\n"]}
|
|
@@ -10,7 +10,7 @@ import { VChart } from "@visactor/vchart";
|
|
|
10
10
|
|
|
11
11
|
export const createComponent = (componentName, specName, supportedEvents, isSingle, registers) => {
|
|
12
12
|
registers && registers.length && VChart.useRegisters(registers);
|
|
13
|
-
const ignoreKeys = [ "updateId", "componentId" ], notSpecKeys = supportedEvents ? Object.keys(supportedEvents).concat(ignoreKeys) : ignoreKeys, Comp = props => {
|
|
13
|
+
const ignoreKeys = [ "updateId", "componentId", "children" ], notSpecKeys = supportedEvents ? Object.keys(supportedEvents).concat(ignoreKeys) : ignoreKeys, Comp = props => {
|
|
14
14
|
const context = useContext(RootChartContext), eventsBinded = React.useRef(null), updateId = React.useRef(props.updateId);
|
|
15
15
|
if (props.updateId !== updateId.current) {
|
|
16
16
|
updateId.current = props.updateId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/BaseComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,OAAO,gBAAgB,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAQ1C,MAAM,CAAC,MAAM,eAAe,GAAG,CAC7B,aAAqB,EACrB,QAAgB,EAChB,eAA+C,EAC/C,QAAkB,EAClB,SAA0B,EAC1B,EAAE;IACF,IAAI,SAAS,IAAI,SAAS,CAAC,MAAM,EAAE;QACjC,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;KAChC;
|
|
1
|
+
{"version":3,"sources":["../src/components/BaseComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,OAAO,gBAAgB,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAQ1C,MAAM,CAAC,MAAM,eAAe,GAAG,CAC7B,aAAqB,EACrB,QAAgB,EAChB,eAA+C,EAC/C,QAAkB,EAClB,SAA0B,EAC1B,EAAE;IACF,IAAI,SAAS,IAAI,SAAS,CAAC,MAAM,EAAE;QACjC,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;KAChC;IAGD,MAAM,UAAU,GAAG,CAAC,UAAU,EAAE,aAAa,EAAE,UAAU,CAAC,CAAC;IAC3D,MAAM,WAAW,GAAG,eAAe,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC;IAEnG,MAAM,IAAI,GAAgB,CAAC,KAAQ,EAAE,EAAE;QACrC,MAAM,OAAO,GAAG,UAAU,CAAC,gBAAgB,CAAC,CAAC;QAC7C,MAAM,YAAY,GAAG,KAAK,CAAC,MAAM,CAAI,IAAI,CAAC,CAAC;QAC3C,MAAM,QAAQ,GAAG,KAAK,CAAC,MAAM,CAAS,KAAK,CAAC,QAAQ,CAAC,CAAC;QACtD,IAAI,KAAK,CAAC,QAAQ,KAAK,QAAQ,CAAC,OAAO,EAAE;YAEvC,QAAQ,CAAC,OAAO,GAAG,KAAK,CAAC,QAAQ,CAAC;YAGlC,MAAM,mBAAmB,GAAG,eAAe;gBACzC,CAAC,CAAC,iBAAiB,CAAC,OAAO,CAAC,KAAK,EAAE,KAAK,EAAE,YAAY,CAAC,OAAO,EAAE,eAAe,CAAC;gBAChF,CAAC,CAAC,KAAK,CAAC;YACV,IAAI,mBAAmB,EAAE;gBACvB,YAAY,CAAC,OAAO,GAAG,KAAK,CAAC;aAC9B;SACF;QAED,SAAS,CAAC,GAAG,EAAE;YACb,OAAO,GAAG,EAAE;gBACV,IAAI,eAAe,EAAE;oBACnB,iBAAiB,CAAC,OAAO,CAAC,KAAK,EAAE,IAAI,EAAE,YAAY,CAAC,OAAO,EAAE,eAAe,CAAC,CAAC;iBAC/E;YACH,CAAC,CAAC;QACJ,CAAC,EAAE,EAAE,CAAC,CAAC;QAEP,OAAO,IAAI,CAAC;IACd,CAAC,CAAC;IAEF,IAAI,CAAC,WAAW,GAAG,aAAa,CAAC;IAChC,IAAY,CAAC,SAAS,GAAG,CAAC,KAAsD,EAAE,EAAE;QACnF,MAAM,gBAAgB,GAAe,WAAW,CAAI,KAAK,EAAE,WAAW,CAAC,CAAC;QAExE,OAAO;YACL,IAAI,EAAE,gBAAgB;YACtB,QAAQ;YACR,QAAQ;SACT,CAAC;IACJ,CAAC,CAAC;IAEF,OAAO,IAAI,CAAC;AACd,CAAC,CAAC","file":"BaseComponent.js","sourcesContent":["import React, { useContext, useEffect } from 'react';\nimport { pickWithout } from '@visactor/vutils';\n\nimport RootChartContext from '../context/chart';\nimport { bindEventsToChart } from '../eventsUtils';\nimport { VChart } from '@visactor/vchart';\n\nexport interface BaseComponentProps {\n id?: string | number;\n}\n\ntype ComponentProps = BaseComponentProps & { updateId?: number; componentId?: number };\n\nexport const createComponent = <T extends ComponentProps>(\n componentName: string,\n specName: string,\n supportedEvents?: Record<string, string> | null,\n isSingle?: boolean,\n registers?: (() => void)[]\n) => {\n if (registers && registers.length) {\n VChart.useRegisters(registers);\n }\n\n // tooltip component 不支持 children,其他组件暂时也都不支持\n const ignoreKeys = ['updateId', 'componentId', 'children'];\n const notSpecKeys = supportedEvents ? Object.keys(supportedEvents).concat(ignoreKeys) : ignoreKeys;\n\n const Comp: React.FC<T> = (props: T) => {\n const context = useContext(RootChartContext);\n const eventsBinded = React.useRef<T>(null);\n const updateId = React.useRef<number>(props.updateId);\n if (props.updateId !== updateId.current) {\n // update triggered by chart when chart is rendered\n updateId.current = props.updateId;\n\n // rebind events after chart render\n const hasPrevEventsBinded = supportedEvents\n ? bindEventsToChart(context.chart, props, eventsBinded.current, supportedEvents)\n : false;\n if (hasPrevEventsBinded) {\n eventsBinded.current = props;\n }\n }\n\n useEffect(() => {\n return () => {\n if (supportedEvents) {\n bindEventsToChart(context.chart, null, eventsBinded.current, supportedEvents);\n }\n };\n }, []);\n\n return null;\n };\n\n Comp.displayName = componentName;\n (Comp as any).parseSpec = (props: T & { updateId?: number; componentId?: string }) => {\n const newComponentSpec: Partial<T> = pickWithout<T>(props, notSpecKeys);\n\n return {\n spec: newComponentSpec,\n specName,\n isSingle\n };\n };\n\n return Comp;\n};\n"]}
|
|
@@ -5,4 +5,4 @@ export interface ContainerProps {
|
|
|
5
5
|
width?: number | string;
|
|
6
6
|
height?: number | string;
|
|
7
7
|
}
|
|
8
|
-
export default function withContainer<
|
|
8
|
+
export default function withContainer<P extends ContainerProps>(Comp: React.ComponentType<any>, name?: string, getProps?: (props: any) => any): React.ForwardRefExoticComponent<React.PropsWithoutRef<P> & React.RefAttributes<any>>;
|
|
@@ -12,7 +12,7 @@ import React, { useRef, useState, useLayoutEffect } from "react";
|
|
|
12
12
|
|
|
13
13
|
export default function withContainer(Comp, name = "ChartContainer", getProps) {
|
|
14
14
|
const Cls = React.forwardRef(((props, ref) => {
|
|
15
|
-
const container = useRef(), [inited, setInited] = useState(!1), {className: className, style: style, width: width} = props, options = __rest(props, [ "className", "style", "width" ]);
|
|
15
|
+
const container = useRef(null), [inited, setInited] = useState(!1), {className: className, style: style, width: width} = props, options = __rest(props, [ "className", "style", "width" ]);
|
|
16
16
|
return useLayoutEffect((() => {
|
|
17
17
|
setInited(!0);
|
|
18
18
|
}), []), React.createElement("div", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/containers/withContainer.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,OAAO,CAAC;AASjE,MAAM,CAAC,OAAO,UAAU,aAAa,CACnC,
|
|
1
|
+
{"version":3,"sources":["../src/containers/withContainer.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,OAAO,CAAC;AASjE,MAAM,CAAC,OAAO,UAAU,aAAa,CACnC,IAA8B,EAC9B,IAAI,GAAG,gBAAgB,EACvB,QAA8B;IAE9B,MAAM,GAAG,GAAG,KAAK,CAAC,UAAU,CAAS,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;QAClD,MAAM,SAAS,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;QAC/C,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;QAC5C,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,KAAiB,KAAK,EAAjB,OAAO,UAAK,KAAK,EAA/C,+BAAuC,CAAQ,CAAC;QAEtD,eAAe,CAAC,GAAG,EAAE;YACnB,SAAS,CAAC,IAAI,CAAC,CAAC;QAClB,CAAC,EAAE,EAAE,CAAC,CAAC;QAEP,OAAO,CACL,6BACE,GAAG,EAAE,SAAS,EACd,SAAS,EAAE,SAAS,EACpB,KAAK,kBACH,QAAQ,EAAE,UAAU,EACpB,MAAM,EAAE,KAAK,CAAC,MAAM,IAAI,MAAM,EAC9B,KAAK,EAAE,KAAK,CAAC,KAAK,IAAI,MAAM,IACzB,KAAK,KAGT,MAAM,CAAC,CAAC,CAAC,CACR,oBAAC,IAAI,kBAAC,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,SAAS,CAAC,OAAO,IAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,EAAI,CAC/F,CAAC,CAAC,CAAC,CACF,yCAAK,CACN,CACG,CACP,CAAC;IACJ,CAAC,CAAC,CAAC;IACH,GAAG,CAAC,WAAW,GAAG,IAAI,IAAI,IAAI,CAAC,IAAI,CAAC;IACpC,OAAO,GAAG,CAAC;AACb,CAAC","file":"withContainer.js","sourcesContent":["import React, { useRef, useState, useLayoutEffect } from 'react';\n\nexport interface ContainerProps {\n style?: React.CSSProperties;\n className?: string;\n width?: number | string;\n height?: number | string;\n}\n\nexport default function withContainer<P extends ContainerProps>(\n Comp: React.ComponentType<any>,\n name = 'ChartContainer',\n getProps?: (props: any) => any\n) {\n const Cls = React.forwardRef<any, P>((props, ref) => {\n const container = useRef<HTMLDivElement>(null);\n const [inited, setInited] = useState(false);\n const { className, style, width, ...options } = props;\n\n useLayoutEffect(() => {\n setInited(true);\n }, []);\n\n return (\n <div\n ref={container}\n className={className}\n style={{\n position: 'relative',\n height: props.height || '100%',\n width: props.width || '100%',\n ...style\n }}\n >\n {inited ? (\n <Comp ref={ref} container={container.current} {...(getProps ? getProps(options) : options)} />\n ) : (\n <></>\n )}\n </div>\n );\n });\n Cls.displayName = name || Comp.name;\n return Cls;\n}\n"]}
|
package/esm/context/chart.d.ts
CHANGED
|
@@ -5,5 +5,7 @@ export interface ChartContextType {
|
|
|
5
5
|
isChildrenUpdated?: boolean;
|
|
6
6
|
}
|
|
7
7
|
declare const ChartContext: React.Context<ChartContextType>;
|
|
8
|
-
export declare function withChartInstance<T>(Component:
|
|
8
|
+
export declare function withChartInstance<T>(Component: React.ComponentType<T & {
|
|
9
|
+
chart?: IVChart;
|
|
10
|
+
}>): React.ForwardRefExoticComponent<React.PropsWithoutRef<T> & React.RefAttributes<any>>;
|
|
9
11
|
export default ChartContext;
|
package/esm/context/chart.js
CHANGED
|
@@ -5,11 +5,12 @@ const ChartContext = React.createContext(null);
|
|
|
5
5
|
ChartContext.displayName = "ChartContext";
|
|
6
6
|
|
|
7
7
|
export function withChartInstance(Component) {
|
|
8
|
-
const Com = React.forwardRef(((props, ref) => React.createElement(ChartContext.Consumer, null, (ctx => React.createElement(Component, Object.assign({
|
|
9
|
-
ref: ref,
|
|
8
|
+
const Com = React.forwardRef(((props, ref) => React.createElement(ChartContext.Consumer, null, (ctx => React.createElement(Component, Object.assign({}, props, {
|
|
10
9
|
chart: ctx.chart
|
|
11
|
-
},
|
|
12
|
-
|
|
10
|
+
}, ref ? {
|
|
11
|
+
ref: ref
|
|
12
|
+
} : {}))))));
|
|
13
|
+
return Com.displayName = Component.displayName || Component.name, Com;
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
export default ChartContext;
|
package/esm/context/chart.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/context/chart.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,MAAM,YAAY,GAAG,KAAK,CAAC,aAAa,CAAmB,IAAI,CAAC,CAAC;AACjE,YAAY,CAAC,WAAW,GAAG,cAAc,CAAC;AAE1C,MAAM,UAAU,iBAAiB,CAAI,
|
|
1
|
+
{"version":3,"sources":["../src/context/chart.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,MAAM,YAAY,GAAG,KAAK,CAAC,aAAa,CAAmB,IAAI,CAAC,CAAC;AACjE,YAAY,CAAC,WAAW,GAAG,cAAc,CAAC;AAE1C,MAAM,UAAU,iBAAiB,CAAI,SAAuD;IAC1F,MAAM,GAAG,GAAG,KAAK,CAAC,UAAU,CAAS,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;QAClD,OAAO,CACL,oBAAC,YAAY,CAAC,QAAQ,QACnB,CAAC,GAAqB,EAAE,EAAE,CAAC,CAG1B,oBAAC,SAAS,oBAAM,KAAW,IAAE,KAAK,EAAE,GAAG,CAAC,KAAK,IAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAI,CAC5E,CACqB,CACzB,CAAC;IACJ,CAAC,CAAC,CAAC;IACH,GAAG,CAAC,WAAW,GAAG,SAAS,CAAC,WAAW,IAAI,SAAS,CAAC,IAAI,CAAC;IAC1D,OAAO,GAAG,CAAC;AACb,CAAC;AAED,eAAe,YAAY,CAAC","file":"chart.js","sourcesContent":["import React from 'react';\nimport type { IVChart } from '@visactor/vchart';\n\nexport interface ChartContextType {\n chart?: IVChart;\n isChildrenUpdated?: boolean;\n}\n\nconst ChartContext = React.createContext<ChartContextType>(null);\nChartContext.displayName = 'ChartContext';\n\nexport function withChartInstance<T>(Component: React.ComponentType<T & { chart?: IVChart }>) {\n const Com = React.forwardRef<any, T>((props, ref) => {\n return (\n <ChartContext.Consumer>\n {(ctx: ChartContextType) => (\n // Only pass ref if Component supports it (i.e., is a forwardRef component)\n // Otherwise, omit ref to avoid type errors\n <Component {...(props as T)} chart={ctx.chart} {...(ref ? { ref } : {})} />\n )}\n </ChartContext.Consumer>\n );\n });\n Com.displayName = Component.displayName || Component.name;\n return Com;\n}\n\nexport default ChartContext;\n"]}
|
package/esm/context/stage.d.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { IStage } from '@visactor/vrender-core';
|
|
3
3
|
declare const StageContext: React.Context<IStage>;
|
|
4
|
-
export declare function withStage<T>(Component:
|
|
4
|
+
export declare function withStage<T>(Component: React.ComponentType<T & {
|
|
5
|
+
stage: IStage;
|
|
6
|
+
}>): React.ForwardRefExoticComponent<React.PropsWithoutRef<T & {
|
|
7
|
+
stage?: IStage;
|
|
8
|
+
}> & React.RefAttributes<any>>;
|
|
5
9
|
export default StageContext;
|
package/esm/context/stage.js
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
var __rest = this && this.__rest || function(s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0 && (t[p] = s[p]);
|
|
4
|
+
if (null != s && "function" == typeof Object.getOwnPropertySymbols) {
|
|
5
|
+
var i = 0;
|
|
6
|
+
for (p = Object.getOwnPropertySymbols(s); i < p.length; i++) e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]) && (t[p[i]] = s[p[i]]);
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
|
|
1
11
|
import React from "react";
|
|
2
12
|
|
|
3
13
|
const StageContext = React.createContext(null);
|
|
@@ -5,11 +15,14 @@ const StageContext = React.createContext(null);
|
|
|
5
15
|
StageContext.displayName = "StageContext";
|
|
6
16
|
|
|
7
17
|
export function withStage(Component) {
|
|
8
|
-
const Com = React.forwardRef(((props, ref) => React.createElement(StageContext.Consumer, null, (ctx =>
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
18
|
+
const Com = React.forwardRef(((props, ref) => React.createElement(StageContext.Consumer, null, (ctx => {
|
|
19
|
+
const _a = props, {stage: stage} = _a, restProps = __rest(_a, [ "stage" ]);
|
|
20
|
+
return React.createElement(Component, Object.assign({}, restProps, {
|
|
21
|
+
stage: ctx,
|
|
22
|
+
ref: ref
|
|
23
|
+
}));
|
|
24
|
+
}))));
|
|
25
|
+
return Com.displayName = Component.displayName || Component.name, Com;
|
|
13
26
|
}
|
|
14
27
|
|
|
15
28
|
export default StageContext;
|
package/esm/context/stage.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/context/stage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,YAAY,GAAG,KAAK,CAAC,aAAa,CAAS,IAAI,CAAC,CAAC;AACvD,YAAY,CAAC,WAAW,GAAG,cAAc,CAAC;AAE1C,MAAM,UAAU,SAAS,CAAI,
|
|
1
|
+
{"version":3,"sources":["../src/context/stage.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,YAAY,GAAG,KAAK,CAAC,aAAa,CAAS,IAAI,CAAC,CAAC;AACvD,YAAY,CAAC,WAAW,GAAG,cAAc,CAAC;AAE1C,MAAM,UAAU,SAAS,CAAI,SAAqD;IAChF,MAAM,GAAG,GAAG,KAAK,CAAC,UAAU,CAA8B,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;QACvE,OAAO,CACL,oBAAC,YAAY,CAAC,QAAQ,QACnB,GAAG,CAAC,EAAE;YAEL,MAAM,KAA0B,KAA2B,EAArD,EAAE,KAAK,OAA8C,EAAzC,SAAS,cAArB,SAAuB,CAA8B,CAAC;YAC5D,OAAO,oBAAC,SAAS,oBAAM,SAAe,IAAE,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;QACnE,CAAC,CACqB,CACzB,CAAC;IACJ,CAAC,CAAC,CAAC;IACH,GAAG,CAAC,WAAW,GAAG,SAAS,CAAC,WAAW,IAAI,SAAS,CAAC,IAAI,CAAC;IAC1D,OAAO,GAAG,CAAC;AACb,CAAC;AAED,eAAe,YAAY,CAAC","file":"stage.js","sourcesContent":["import React from 'react';\nimport type { IStage } from '@visactor/vrender-core';\n\nconst StageContext = React.createContext<IStage>(null);\nStageContext.displayName = 'StageContext';\n\nexport function withStage<T>(Component: React.ComponentType<T & { stage: IStage }>) {\n const Com = React.forwardRef<any, T & { stage?: IStage }>((props, ref) => {\n return (\n <StageContext.Consumer>\n {ctx => {\n // Omit 'stage' from props to avoid prop type conflicts\n const { stage, ...restProps } = props as { stage?: IStage };\n return <Component {...(restProps as T)} stage={ctx} ref={ref} />;\n }}\n </StageContext.Consumer>\n );\n });\n Com.displayName = Component.displayName || Component.name;\n return Com;\n}\n\nexport default StageContext;\n"]}
|
package/esm/index.d.ts
CHANGED
|
@@ -4,5 +4,6 @@ export * from './components';
|
|
|
4
4
|
export * from './VChart';
|
|
5
5
|
export * from './VChartSimple';
|
|
6
6
|
export { VChart as VChartCore } from '@visactor/vchart';
|
|
7
|
-
export declare const version = "
|
|
8
|
-
export type { IAreaChartSpec, IBarChartSpec,
|
|
7
|
+
export declare const version = "2.0.0-alpha.1";
|
|
8
|
+
export type { IAreaChartSpec, IBarChartSpec, IBoxPlotChartSpec, ICirclePackingChartSpec, ICommonChartSpec, IFunnelChartSpec, IGaugeChartSpec, IHeatmapChartSpec, IHistogramChartSpec, ILineChartSpec, IMapChartSpec, IPieChartSpec, ICircularProgressChartSpec, ILinearProgressChartSpec, IRadarChartSpec, IRangeColumnChartSpec, IRangeAreaChartSpec, IRoseChartSpec, IScatterChartSpec, ISankeyChartSpec, ISequenceChartSpec, ISunburstChartSpec, ITreemapChartSpec, IWaterfallChartSpec, ICorrelationChartSpec, ILiquidChartSpec, IWordCloudChartSpec, IPolarChartSpec, ICartesianChartSpec, ITheme, IInitOption, ISpec, IVChart } from '@visactor/vchart';
|
|
9
|
+
export type { IBar3dChartSpec, IFunnel3dChartSpec, IHistogram3dChartSpec, IPie3dChartSpec, IRangeColumn3dChartSpec, IWordCloud3dChartSpec } from '@visactor/vchart-extension';
|
package/esm/index.js
CHANGED
package/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAGxD,MAAM,CAAC,MAAM,OAAO,GAAG,
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAGxD,MAAM,CAAC,MAAM,OAAO,GAAG,eAAe,CAAC","file":"index.js","sourcesContent":["export * from './charts';\nexport * from './series';\nexport * from './components';\nexport * from './VChart';\nexport * from './VChartSimple';\nexport { VChart as VChartCore } from '@visactor/vchart';\n\n// export the version, since @1.8.3\nexport const version = \"2.0.0-alpha.1\";\n\nexport type {\n IAreaChartSpec,\n IBarChartSpec,\n IBoxPlotChartSpec,\n ICirclePackingChartSpec,\n ICommonChartSpec,\n IFunnelChartSpec,\n IGaugeChartSpec,\n IHeatmapChartSpec,\n IHistogramChartSpec,\n ILineChartSpec,\n IMapChartSpec,\n IPieChartSpec,\n ICircularProgressChartSpec,\n ILinearProgressChartSpec,\n IRadarChartSpec,\n IRangeColumnChartSpec,\n IRangeAreaChartSpec,\n IRoseChartSpec,\n IScatterChartSpec,\n ISankeyChartSpec,\n ISequenceChartSpec,\n ISunburstChartSpec,\n ITreemapChartSpec,\n IWaterfallChartSpec,\n ICorrelationChartSpec,\n ILiquidChartSpec,\n IWordCloudChartSpec,\n IPolarChartSpec,\n ICartesianChartSpec,\n ITheme,\n IInitOption,\n ISpec,\n IVChart\n} from '@visactor/vchart';\n\nexport type {\n IBar3dChartSpec,\n IFunnel3dChartSpec,\n IHistogram3dChartSpec,\n IPie3dChartSpec,\n IRangeColumn3dChartSpec,\n IWordCloud3dChartSpec\n} from '@visactor/vchart-extension';\n"]}
|
package/esm/series/Bar3d.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BaseSeriesProps } from './BaseSeries';
|
|
2
|
-
import type { IBar3dSeriesSpec } from '@visactor/vchart';
|
|
1
|
+
import type { BaseSeriesProps } from './BaseSeries';
|
|
2
|
+
import type { IBar3dSeriesSpec } from '@visactor/vchart-extension';
|
|
3
3
|
export type Bar3dProps = BaseSeriesProps & Omit<IBar3dSeriesSpec, 'type'>;
|
|
4
4
|
export declare const Bar3d: import("react").FC<BaseSeriesProps & Omit<IBar3dSeriesSpec, "type"> & {
|
|
5
5
|
updateId?: number;
|
package/esm/series/Bar3d.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createSeries } from "./BaseSeries";
|
|
2
2
|
|
|
3
|
-
import { registerBar3dSeries } from "@visactor/vchart";
|
|
3
|
+
import { registerBar3dSeries } from "@visactor/vchart-extension";
|
|
4
4
|
|
|
5
5
|
export const Bar3d = createSeries("Bar3d", [ "bar" ], "bar3d", [ registerBar3dSeries ]);
|
|
6
6
|
//# sourceMappingURL=Bar3d.js.map
|
package/esm/series/Bar3d.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/series/Bar3d.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/series/Bar3d.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAIjE,MAAM,CAAC,MAAM,KAAK,GAAG,YAAY,CAAa,OAAO,EAAE,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,mBAAmB,CAAC,CAAC,CAAC","file":"Bar3d.js","sourcesContent":["import type { BaseSeriesProps } from './BaseSeries';\nimport { createSeries } from './BaseSeries';\nimport type { IBar3dSeriesSpec } from '@visactor/vchart-extension';\nimport { registerBar3dSeries } from '@visactor/vchart-extension';\n\nexport type Bar3dProps = BaseSeriesProps & Omit<IBar3dSeriesSpec, 'type'>;\n\nexport const Bar3d = createSeries<Bar3dProps>('Bar3d', ['bar'], 'bar3d', [registerBar3dSeries]);\n"]}
|
package/esm/series/Funnel3d.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BaseSeriesProps } from './BaseSeries';
|
|
2
|
-
import type { IFunnel3dSeriesSpec } from '@visactor/vchart';
|
|
1
|
+
import type { BaseSeriesProps } from './BaseSeries';
|
|
2
|
+
import type { IFunnel3dSeriesSpec } from '@visactor/vchart-extension';
|
|
3
3
|
export type Funnel3dProps = BaseSeriesProps & Omit<IFunnel3dSeriesSpec, 'type'>;
|
|
4
4
|
export declare const Funnel3d: import("react").FC<BaseSeriesProps & Omit<IFunnel3dSeriesSpec, "type"> & {
|
|
5
5
|
updateId?: number;
|
package/esm/series/Funnel3d.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createSeries } from "./BaseSeries";
|
|
2
2
|
|
|
3
|
-
import { registerFunnel3dSeries } from "@visactor/vchart";
|
|
3
|
+
import { registerFunnel3dSeries } from "@visactor/vchart-extension";
|
|
4
4
|
|
|
5
5
|
export const Funnel3d = createSeries("Funnel3d", [ "funnel" ], "funnel3d", [ registerFunnel3dSeries ]);
|
|
6
6
|
//# sourceMappingURL=Funnel3d.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/series/Funnel3d.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/series/Funnel3d.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAIpE,MAAM,CAAC,MAAM,QAAQ,GAAG,YAAY,CAAgB,UAAU,EAAE,CAAC,QAAQ,CAAC,EAAE,UAAU,EAAE,CAAC,sBAAsB,CAAC,CAAC,CAAC","file":"Funnel3d.js","sourcesContent":["import type { BaseSeriesProps } from './BaseSeries';\nimport { createSeries } from './BaseSeries';\nimport type { IFunnel3dSeriesSpec } from '@visactor/vchart-extension';\nimport { registerFunnel3dSeries } from '@visactor/vchart-extension';\n\nexport type Funnel3dProps = BaseSeriesProps & Omit<IFunnel3dSeriesSpec, 'type'>;\n\nexport const Funnel3d = createSeries<Funnel3dProps>('Funnel3d', ['funnel'], 'funnel3d', [registerFunnel3dSeries]);\n"]}
|
package/esm/series/Pie3d.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BaseSeriesProps } from './BaseSeries';
|
|
2
|
-
import type { IPie3dSeriesSpec } from '@visactor/vchart';
|
|
1
|
+
import type { BaseSeriesProps } from './BaseSeries';
|
|
2
|
+
import type { IPie3dSeriesSpec } from '@visactor/vchart-extension';
|
|
3
3
|
export type Pie3dProps = BaseSeriesProps & Omit<IPie3dSeriesSpec, 'type'>;
|
|
4
4
|
export declare const Pie3d: import("react").FC<BaseSeriesProps & Omit<IPie3dSeriesSpec, "type"> & {
|
|
5
5
|
updateId?: number;
|
package/esm/series/Pie3d.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createSeries } from "./BaseSeries";
|
|
2
2
|
|
|
3
|
-
import { registerPie3dSeries } from "@visactor/vchart";
|
|
3
|
+
import { registerPie3dSeries } from "@visactor/vchart-extension";
|
|
4
4
|
|
|
5
5
|
export const Pie3d = createSeries("Pie3d", [ "pie" ], "pie3d", [ registerPie3dSeries ]);
|
|
6
6
|
//# sourceMappingURL=Pie3d.js.map
|
package/esm/series/Pie3d.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/series/Pie3d.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/series/Pie3d.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAIjE,MAAM,CAAC,MAAM,KAAK,GAAG,YAAY,CAAa,OAAO,EAAE,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,mBAAmB,CAAC,CAAC,CAAC","file":"Pie3d.js","sourcesContent":["import type { BaseSeriesProps } from './BaseSeries';\nimport { createSeries } from './BaseSeries';\nimport type { IPie3dSeriesSpec } from '@visactor/vchart-extension';\nimport { registerPie3dSeries } from '@visactor/vchart-extension';\n\nexport type Pie3dProps = BaseSeriesProps & Omit<IPie3dSeriesSpec, 'type'>;\n\nexport const Pie3d = createSeries<Pie3dProps>('Pie3d', ['pie'], 'pie3d', [registerPie3dSeries]);\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BaseSeriesProps } from './BaseSeries';
|
|
2
|
-
import type { IRangeColumn3dSeriesSpec } from '@visactor/vchart';
|
|
1
|
+
import type { BaseSeriesProps } from './BaseSeries';
|
|
2
|
+
import type { IRangeColumn3dSeriesSpec } from '@visactor/vchart-extension';
|
|
3
3
|
export type RangeColumn3dProps = BaseSeriesProps & Omit<IRangeColumn3dSeriesSpec, 'type'>;
|
|
4
4
|
export declare const RangeColumn3d: import("react").FC<BaseSeriesProps & Omit<IRangeColumn3dSeriesSpec, "type"> & {
|
|
5
5
|
updateId?: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createSeries } from "./BaseSeries";
|
|
2
2
|
|
|
3
|
-
import { registerRangeColumn3dSeries } from "@visactor/vchart";
|
|
3
|
+
import { registerRangeColumn3dSeries } from "@visactor/vchart-extension";
|
|
4
4
|
|
|
5
5
|
export const RangeColumn3d = createSeries("RangeColumn3d", [ "rangeColumn" ], "rangeColumn3d", [ registerRangeColumn3dSeries ]);
|
|
6
6
|
//# sourceMappingURL=RangeColumn3d.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/series/RangeColumn3d.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/series/RangeColumn3d.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C,OAAO,EAAE,2BAA2B,EAAE,MAAM,4BAA4B,CAAC;AAIzE,MAAM,CAAC,MAAM,aAAa,GAAG,YAAY,CAAqB,eAAe,EAAE,CAAC,aAAa,CAAC,EAAE,eAAe,EAAE;IAC/G,2BAA2B;CAC5B,CAAC,CAAC","file":"RangeColumn3d.js","sourcesContent":["import type { BaseSeriesProps } from './BaseSeries';\nimport { createSeries } from './BaseSeries';\nimport type { IRangeColumn3dSeriesSpec } from '@visactor/vchart-extension';\nimport { registerRangeColumn3dSeries } from '@visactor/vchart-extension';\n\nexport type RangeColumn3dProps = BaseSeriesProps & Omit<IRangeColumn3dSeriesSpec, 'type'>;\n\nexport const RangeColumn3d = createSeries<RangeColumn3dProps>('RangeColumn3d', ['rangeColumn'], 'rangeColumn3d', [\n registerRangeColumn3dSeries\n]);\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BaseSeriesProps } from './BaseSeries';
|
|
2
|
-
import type { IWordCloud3dSeriesSpec } from '@visactor/vchart';
|
|
1
|
+
import type { BaseSeriesProps } from './BaseSeries';
|
|
2
|
+
import type { IWordCloud3dSeriesSpec } from '@visactor/vchart-extension';
|
|
3
3
|
export type WordCloud3dProps = BaseSeriesProps & Omit<IWordCloud3dSeriesSpec, 'type'>;
|
|
4
4
|
export declare const WordCloud3d: import("react").FC<BaseSeriesProps & Omit<IWordCloud3dSeriesSpec, "type"> & {
|
|
5
5
|
updateId?: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createSeries } from "./BaseSeries";
|
|
2
2
|
|
|
3
|
-
import { registerWordCloud3dSeries } from "@visactor/vchart";
|
|
3
|
+
import { registerWordCloud3dSeries } from "@visactor/vchart-extension";
|
|
4
4
|
|
|
5
5
|
export const WordCloud3d = createSeries("WordCloud3d", [ "wordCloud" ], "wordCloud3d", [ registerWordCloud3dSeries ]);
|
|
6
6
|
//# sourceMappingURL=WordCloud3d.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/series/WordCloud3d.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/series/WordCloud3d.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE5C,OAAO,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAC;AAIvE,MAAM,CAAC,MAAM,WAAW,GAAG,YAAY,CAAmB,aAAa,EAAE,CAAC,WAAW,CAAC,EAAE,aAAa,EAAE;IACrG,yBAAyB;CAC1B,CAAC,CAAC","file":"WordCloud3d.js","sourcesContent":["import type { BaseSeriesProps } from './BaseSeries';\nimport { createSeries } from './BaseSeries';\nimport type { IWordCloud3dSeriesSpec } from '@visactor/vchart-extension';\nimport { registerWordCloud3dSeries } from '@visactor/vchart-extension';\n\nexport type WordCloud3dProps = BaseSeriesProps & Omit<IWordCloud3dSeriesSpec, 'type'>;\n\nexport const WordCloud3d = createSeries<WordCloud3dProps>('WordCloud3d', ['wordCloud'], 'wordCloud3d', [\n registerWordCloud3dSeries\n]);\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visactor/react-vchart",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-alpha.1",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"description": "The react version of VChart 4.x",
|
|
6
6
|
"keywords": [
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
"dist"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@visactor/vchart": "
|
|
27
|
-
"@visactor/
|
|
28
|
-
"@visactor/
|
|
29
|
-
"@visactor/vrender-
|
|
30
|
-
"@visactor/
|
|
26
|
+
"@visactor/vchart": "2.0.0-alpha.1",
|
|
27
|
+
"@visactor/vchart-extension": "2.0.0-alpha.1",
|
|
28
|
+
"@visactor/vutils": "~1.0.6",
|
|
29
|
+
"@visactor/vrender-core": "1.0.0-alpha.17",
|
|
30
|
+
"@visactor/vrender-kits": "1.0.0-alpha.17",
|
|
31
31
|
"react-is": "^18.2.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
package/cjs/context/view.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { IView } from '@visactor/vgrammar-core';
|
|
3
|
-
declare const ViewContext: React.Context<IView>;
|
|
4
|
-
export declare function withView<T>(Component: typeof React.Component): React.ForwardRefExoticComponent<React.PropsWithoutRef<T> & React.RefAttributes<any>>;
|
|
5
|
-
export default ViewContext;
|
package/cjs/context/view.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var __importDefault = this && this.__importDefault || function(mod) {
|
|
4
|
-
return mod && mod.__esModule ? mod : {
|
|
5
|
-
default: mod
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
Object.defineProperty(exports, "__esModule", {
|
|
10
|
-
value: !0
|
|
11
|
-
}), exports.withView = void 0;
|
|
12
|
-
|
|
13
|
-
const react_1 = __importDefault(require("react")), ViewContext = react_1.default.createContext(null);
|
|
14
|
-
|
|
15
|
-
function withView(Component) {
|
|
16
|
-
const Com = react_1.default.forwardRef(((props, ref) => react_1.default.createElement(ViewContext.Consumer, null, (ctx => react_1.default.createElement(Component, Object.assign({
|
|
17
|
-
ref: ref,
|
|
18
|
-
view: ctx
|
|
19
|
-
}, props))))));
|
|
20
|
-
return Com.displayName = Component.name, Com;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
ViewContext.displayName = "ViewContext", exports.withView = withView, exports.default = ViewContext;
|
|
24
|
-
//# sourceMappingURL=view.js.map
|
package/cjs/context/view.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/context/view.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAG1B,MAAM,WAAW,GAAG,eAAK,CAAC,aAAa,CAAQ,IAAI,CAAC,CAAC;AACrD,WAAW,CAAC,WAAW,GAAG,aAAa,CAAC;AAExC,SAAgB,QAAQ,CAAI,SAAiC;IAC3D,MAAM,GAAG,GAAG,eAAK,CAAC,UAAU,CAAS,CAAC,KAAQ,EAAE,GAAG,EAAE,EAAE;QACrD,OAAO,8BAAC,WAAW,CAAC,QAAQ,QAAE,GAAG,CAAC,EAAE,CAAC,8BAAC,SAAS,kBAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,IAAM,KAAK,EAAI,CAAwB,CAAC;IAC7G,CAAC,CAAC,CAAC;IACH,GAAG,CAAC,WAAW,GAAG,SAAS,CAAC,IAAI,CAAC;IACjC,OAAO,GAAG,CAAC;AACb,CAAC;AAND,4BAMC;AAED,kBAAe,WAAW,CAAC","file":"view.js","sourcesContent":["import React from 'react';\nimport type { IView } from '@visactor/vgrammar-core';\n\nconst ViewContext = React.createContext<IView>(null);\nViewContext.displayName = 'ViewContext';\n\nexport function withView<T>(Component: typeof React.Component) {\n const Com = React.forwardRef<any, T>((props: T, ref) => {\n return <ViewContext.Consumer>{ctx => <Component ref={ref} view={ctx} {...props} />}</ViewContext.Consumer>;\n });\n Com.displayName = Component.name;\n return Com;\n}\n\nexport default ViewContext;\n"]}
|
package/esm/context/view.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { IView } from '@visactor/vgrammar-core';
|
|
3
|
-
declare const ViewContext: React.Context<IView>;
|
|
4
|
-
export declare function withView<T>(Component: typeof React.Component): React.ForwardRefExoticComponent<React.PropsWithoutRef<T> & React.RefAttributes<any>>;
|
|
5
|
-
export default ViewContext;
|
package/esm/context/view.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
|
|
3
|
-
const ViewContext = React.createContext(null);
|
|
4
|
-
|
|
5
|
-
ViewContext.displayName = "ViewContext";
|
|
6
|
-
|
|
7
|
-
export function withView(Component) {
|
|
8
|
-
const Com = React.forwardRef(((props, ref) => React.createElement(ViewContext.Consumer, null, (ctx => React.createElement(Component, Object.assign({
|
|
9
|
-
ref: ref,
|
|
10
|
-
view: ctx
|
|
11
|
-
}, props))))));
|
|
12
|
-
return Com.displayName = Component.name, Com;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export default ViewContext;
|
|
16
|
-
//# sourceMappingURL=view.js.map
|
package/esm/context/view.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/context/view.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,MAAM,WAAW,GAAG,KAAK,CAAC,aAAa,CAAQ,IAAI,CAAC,CAAC;AACrD,WAAW,CAAC,WAAW,GAAG,aAAa,CAAC;AAExC,MAAM,UAAU,QAAQ,CAAI,SAAiC;IAC3D,MAAM,GAAG,GAAG,KAAK,CAAC,UAAU,CAAS,CAAC,KAAQ,EAAE,GAAG,EAAE,EAAE;QACrD,OAAO,oBAAC,WAAW,CAAC,QAAQ,QAAE,GAAG,CAAC,EAAE,CAAC,oBAAC,SAAS,kBAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,IAAM,KAAK,EAAI,CAAwB,CAAC;IAC7G,CAAC,CAAC,CAAC;IACH,GAAG,CAAC,WAAW,GAAG,SAAS,CAAC,IAAI,CAAC;IACjC,OAAO,GAAG,CAAC;AACb,CAAC;AAED,eAAe,WAAW,CAAC","file":"view.js","sourcesContent":["import React from 'react';\nimport type { IView } from '@visactor/vgrammar-core';\n\nconst ViewContext = React.createContext<IView>(null);\nViewContext.displayName = 'ViewContext';\n\nexport function withView<T>(Component: typeof React.Component) {\n const Com = React.forwardRef<any, T>((props: T, ref) => {\n return <ViewContext.Consumer>{ctx => <Component ref={ref} view={ctx} {...props} />}</ViewContext.Consumer>;\n });\n Com.displayName = Component.name;\n return Com;\n}\n\nexport default ViewContext;\n"]}
|