@visactor/react-vchart 1.11.0-alpha.1 → 1.11.0-alpha.3

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 (149) hide show
  1. package/cjs/VChart.d.ts +1 -1
  2. package/cjs/VChart.js.map +1 -1
  3. package/cjs/charts/AreaChart.js +2 -2
  4. package/cjs/charts/AreaChart.js.map +1 -1
  5. package/cjs/charts/Bar3dChart.js +2 -2
  6. package/cjs/charts/Bar3dChart.js.map +1 -1
  7. package/cjs/charts/BarChart.js +2 -2
  8. package/cjs/charts/BarChart.js.map +1 -1
  9. package/cjs/charts/BaseChart.js +8 -5
  10. package/cjs/charts/BaseChart.js.map +1 -1
  11. package/cjs/charts/BoxPlotChart.js +2 -2
  12. package/cjs/charts/BoxPlotChart.js.map +1 -1
  13. package/cjs/charts/CirclePackingChart.js +2 -2
  14. package/cjs/charts/CirclePackingChart.js.map +1 -1
  15. package/cjs/charts/CircularProgressChart.js +2 -2
  16. package/cjs/charts/CircularProgressChart.js.map +1 -1
  17. package/cjs/charts/CorrelationChart.js +2 -2
  18. package/cjs/charts/CorrelationChart.js.map +1 -1
  19. package/cjs/charts/Funnel3dChart.js +2 -2
  20. package/cjs/charts/Funnel3dChart.js.map +1 -1
  21. package/cjs/charts/FunnelChart.js +2 -2
  22. package/cjs/charts/FunnelChart.js.map +1 -1
  23. package/cjs/charts/GaugeChart.js +2 -2
  24. package/cjs/charts/GaugeChart.js.map +1 -1
  25. package/cjs/charts/HeatmapChart.js +2 -2
  26. package/cjs/charts/HeatmapChart.js.map +1 -1
  27. package/cjs/charts/Histogram3dChart.js +2 -2
  28. package/cjs/charts/Histogram3dChart.js.map +1 -1
  29. package/cjs/charts/HistogramChart.js +2 -2
  30. package/cjs/charts/HistogramChart.js.map +1 -1
  31. package/cjs/charts/LineChart.js +2 -2
  32. package/cjs/charts/LineChart.js.map +1 -1
  33. package/cjs/charts/LinearProgressChart.js +2 -2
  34. package/cjs/charts/LinearProgressChart.js.map +1 -1
  35. package/cjs/charts/LiquidChart.js +2 -2
  36. package/cjs/charts/LiquidChart.js.map +1 -1
  37. package/cjs/charts/MapChart.js +2 -2
  38. package/cjs/charts/MapChart.js.map +1 -1
  39. package/cjs/charts/Pie3dChart.js +2 -2
  40. package/cjs/charts/Pie3dChart.js.map +1 -1
  41. package/cjs/charts/PieChart.js +2 -2
  42. package/cjs/charts/PieChart.js.map +1 -1
  43. package/cjs/charts/RadarChart.js +2 -2
  44. package/cjs/charts/RadarChart.js.map +1 -1
  45. package/cjs/charts/RangeColumn3dChart.js +2 -2
  46. package/cjs/charts/RangeColumn3dChart.js.map +1 -1
  47. package/cjs/charts/RangeColumnChart.js +2 -2
  48. package/cjs/charts/RangeColumnChart.js.map +1 -1
  49. package/cjs/charts/RoseChart.js +2 -2
  50. package/cjs/charts/RoseChart.js.map +1 -1
  51. package/cjs/charts/SankeyChart.js +2 -2
  52. package/cjs/charts/SankeyChart.js.map +1 -1
  53. package/cjs/charts/ScatterChart.js +2 -2
  54. package/cjs/charts/ScatterChart.js.map +1 -1
  55. package/cjs/charts/SequenceChart.js +2 -2
  56. package/cjs/charts/SequenceChart.js.map +1 -1
  57. package/cjs/charts/SunburstChart.js +2 -2
  58. package/cjs/charts/SunburstChart.js.map +1 -1
  59. package/cjs/charts/TreemapChart.js +2 -2
  60. package/cjs/charts/TreemapChart.js.map +1 -1
  61. package/cjs/charts/WaterfallChart.js +2 -2
  62. package/cjs/charts/WaterfallChart.js.map +1 -1
  63. package/cjs/charts/WordCloud3dChart.js +2 -2
  64. package/cjs/charts/WordCloud3dChart.js.map +1 -1
  65. package/cjs/charts/WordCloudChart.js +2 -2
  66. package/cjs/charts/WordCloudChart.js.map +1 -1
  67. package/cjs/charts/register.d.ts +3 -0
  68. package/cjs/charts/register.js +12 -0
  69. package/cjs/charts/register.js.map +1 -0
  70. package/cjs/components/Mark.js +1 -1
  71. package/cjs/components/Mark.js.map +1 -1
  72. package/cjs/index.d.ts +1 -1
  73. package/cjs/index.js +1 -1
  74. package/cjs/index.js.map +1 -1
  75. package/esm/VChart.d.ts +1 -1
  76. package/esm/VChart.js.map +1 -1
  77. package/esm/charts/AreaChart.js +4 -2
  78. package/esm/charts/AreaChart.js.map +1 -1
  79. package/esm/charts/Bar3dChart.js +4 -2
  80. package/esm/charts/Bar3dChart.js.map +1 -1
  81. package/esm/charts/BarChart.js +4 -2
  82. package/esm/charts/BarChart.js.map +1 -1
  83. package/esm/charts/BaseChart.js +9 -6
  84. package/esm/charts/BaseChart.js.map +1 -1
  85. package/esm/charts/BoxPlotChart.js +4 -2
  86. package/esm/charts/BoxPlotChart.js.map +1 -1
  87. package/esm/charts/CirclePackingChart.js +4 -2
  88. package/esm/charts/CirclePackingChart.js.map +1 -1
  89. package/esm/charts/CircularProgressChart.js +4 -2
  90. package/esm/charts/CircularProgressChart.js.map +1 -1
  91. package/esm/charts/CorrelationChart.js +3 -1
  92. package/esm/charts/CorrelationChart.js.map +1 -1
  93. package/esm/charts/Funnel3dChart.js +3 -1
  94. package/esm/charts/Funnel3dChart.js.map +1 -1
  95. package/esm/charts/FunnelChart.js +3 -1
  96. package/esm/charts/FunnelChart.js.map +1 -1
  97. package/esm/charts/GaugeChart.js +3 -1
  98. package/esm/charts/GaugeChart.js.map +1 -1
  99. package/esm/charts/HeatmapChart.js +3 -1
  100. package/esm/charts/HeatmapChart.js.map +1 -1
  101. package/esm/charts/Histogram3dChart.js +4 -2
  102. package/esm/charts/Histogram3dChart.js.map +1 -1
  103. package/esm/charts/HistogramChart.js +4 -2
  104. package/esm/charts/HistogramChart.js.map +1 -1
  105. package/esm/charts/LineChart.js +4 -2
  106. package/esm/charts/LineChart.js.map +1 -1
  107. package/esm/charts/LinearProgressChart.js +4 -2
  108. package/esm/charts/LinearProgressChart.js.map +1 -1
  109. package/esm/charts/LiquidChart.js +3 -1
  110. package/esm/charts/LiquidChart.js.map +1 -1
  111. package/esm/charts/MapChart.js +3 -1
  112. package/esm/charts/MapChart.js.map +1 -1
  113. package/esm/charts/Pie3dChart.js +3 -1
  114. package/esm/charts/Pie3dChart.js.map +1 -1
  115. package/esm/charts/PieChart.js +3 -1
  116. package/esm/charts/PieChart.js.map +1 -1
  117. package/esm/charts/RadarChart.js +4 -2
  118. package/esm/charts/RadarChart.js.map +1 -1
  119. package/esm/charts/RangeColumn3dChart.js +4 -2
  120. package/esm/charts/RangeColumn3dChart.js.map +1 -1
  121. package/esm/charts/RangeColumnChart.js +4 -2
  122. package/esm/charts/RangeColumnChart.js.map +1 -1
  123. package/esm/charts/RoseChart.js +4 -2
  124. package/esm/charts/RoseChart.js.map +1 -1
  125. package/esm/charts/SankeyChart.js +3 -1
  126. package/esm/charts/SankeyChart.js.map +1 -1
  127. package/esm/charts/ScatterChart.js +4 -2
  128. package/esm/charts/ScatterChart.js.map +1 -1
  129. package/esm/charts/SequenceChart.js +4 -2
  130. package/esm/charts/SequenceChart.js.map +1 -1
  131. package/esm/charts/SunburstChart.js +3 -1
  132. package/esm/charts/SunburstChart.js.map +1 -1
  133. package/esm/charts/TreemapChart.js +3 -1
  134. package/esm/charts/TreemapChart.js.map +1 -1
  135. package/esm/charts/WaterfallChart.js +4 -2
  136. package/esm/charts/WaterfallChart.js.map +1 -1
  137. package/esm/charts/WordCloud3dChart.js +3 -1
  138. package/esm/charts/WordCloud3dChart.js.map +1 -1
  139. package/esm/charts/WordCloudChart.js +3 -1
  140. package/esm/charts/WordCloudChart.js.map +1 -1
  141. package/esm/charts/register.d.ts +3 -0
  142. package/esm/charts/register.js +8 -0
  143. package/esm/charts/register.js.map +1 -0
  144. package/esm/components/Mark.js +2 -2
  145. package/esm/components/Mark.js.map +1 -1
  146. package/esm/index.d.ts +1 -1
  147. package/esm/index.js +1 -1
  148. package/esm/index.js.map +1 -1
  149. package/package.json +6 -6
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/charts/BaseChart.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAA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AE,CAAC,KAAQ,EAAE,EAAE;QACzF,IAAI,YAAY,EAAE;YAChB,OAAO,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC;SAC3C;QACD,OAAO,KAAK,CAAC;IACf,CAAC,CAAC,CAAC;IACH,GAAG,CAAC,WAAW,GAAG,aAAa,CAAC;IAChC,OAAO,GAAG,CAAC;AACb,CAAC,CAAC","file":"BaseChart.js","sourcesContent":["import type { IVChart, IData, IInitOption, ISpec, IVChartConstructor, IHierarchyData } from '@visactor/vchart';\nimport React, { useState, useEffect, useRef, useImperativeHandle, ReactNode } from 'react';\nimport withContainer, { ContainerProps } from '../containers/withContainer';\nimport RootChartContext, { ChartContextType } from '../context/chart';\nimport type { IView } from '@visactor/vgrammar-core';\nimport { isEqual, isNil, pickWithout } from '@visactor/vutils';\nimport ViewContext from '../context/view';\nimport { toArray } from '../util';\nimport { REACT_PRIVATE_PROPS } from '../constants';\nimport {\n bindEventsToChart,\n EventsProps,\n CHART_EVENTS_KEYS,\n CHART_EVENTS,\n LegendEventProps,\n ScrollBarEventProps,\n BrushEventProps,\n DataZoomEventProps,\n PlayerEventProps,\n DimensionEventProps,\n HierarchyEventProps,\n ChartLifeCycleEventProps\n} from '../eventsUtils';\nimport { IReactTooltipProps } from '../components/tooltip/interface';\nimport { initCustomTooltip } from '../components/tooltip/util';\n\nexport type ChartOptions = Omit<IInitOption, 'dom'>;\n\nexport interface BaseChartProps\n extends EventsProps,\n LegendEventProps,\n ScrollBarEventProps,\n BrushEventProps,\n DataZoomEventProps,\n PlayerEventProps,\n DimensionEventProps,\n HierarchyEventProps,\n ChartLifeCycleEventProps,\n IReactTooltipProps {\n vchartConstrouctor?: IVChartConstructor;\n type?: string;\n /** 上层container */\n container?: HTMLDivElement;\n /**\n * used only by <VChart />\n */\n spec?: ISpec;\n /** 数据 */\n data?: IData | IHierarchyData;\n /** 画布宽度 */\n width?: number;\n /** 画布高度 */\n height?: number;\n /** 图表配置 */\n options?: ChartOptions;\n /** skip function diff when component update */\n skipFunctionDiff?: boolean;\n /** 图表渲染完成事件 */\n onReady?: (instance: IVChart, isInitial: boolean) => void;\n /** throw error when chart run into an error */\n onError?: (err: Error) => void;\n /**\n * use sync render\n *\n * @since 1.8.3\n * @deprecated 1.9.0\n **/\n useSyncRender?: boolean;\n}\n\ntype Props = React.PropsWithChildren<BaseChartProps>;\n\nconst notSpecKeys = [\n ...REACT_PRIVATE_PROPS,\n ...CHART_EVENTS_KEYS,\n 'vchartConstrouctor',\n 'useSyncRender',\n 'skipFunctionDiff',\n 'onError',\n 'onReady',\n 'spec',\n 'container',\n 'options'\n];\n\nconst getComponentId = (child: React.ReactNode, index: number) => {\n const componentName = child && (child as any).type && ((child as any).type.displayName || (child as any).type.name);\n return `${componentName}-${index}`;\n};\n\nconst parseSpecFromChildren = (props: Props) => {\n const specFromChildren: Omit<ISpec, 'type' | 'data' | 'width' | 'height'> = {};\n\n toArray(props.children).map((child, index) => {\n const parseSpec = child && (child as any).type && (child as any).type.parseSpec;\n\n if (parseSpec && (child as any).props) {\n const childProps = isNil((child as any).props.componentId)\n ? {\n ...(child as any).props,\n componentId: getComponentId(child, index)\n }\n : (child as any).props;\n\n const specResult = parseSpec(childProps);\n\n if (specResult.isSingle) {\n specFromChildren[specResult.specName] = specResult.spec;\n } else {\n if (!specFromChildren[specResult.specName]) {\n specFromChildren[specResult.specName] = [];\n }\n\n specFromChildren[specResult.specName].push(specResult.spec);\n }\n }\n });\n\n return specFromChildren;\n};\n\nconst BaseChart: React.FC<Props> = React.forwardRef((props, ref) => {\n const [updateId, setUpdateId] = useState<number>(0);\n const chartContext = useRef<ChartContextType>({});\n useImperativeHandle(ref, () => chartContext.current?.chart);\n const hasSpec = !!props.spec;\n const [view, setView] = useState<IView>(null);\n const isUnmount = useRef<boolean>(false);\n const prevSpec = useRef(pickWithout(props, notSpecKeys));\n const specFromChildren = useRef<Omit<ISpec, 'type' | 'data' | 'width' | 'height'>>(null);\n const eventsBinded = React.useRef<BaseChartProps>(null);\n const skipFunctionDiff = !!props.skipFunctionDiff;\n const [tooltipNode, setTooltipNode] = useState<ReactNode>(null);\n\n const parseSpec = (props: Props) => {\n let spec: ISpec = undefined;\n\n if (hasSpec && props.spec) {\n spec = props.spec;\n } else {\n spec = {\n ...prevSpec.current,\n ...specFromChildren.current\n } as ISpec;\n }\n\n const tooltipSpec = initCustomTooltip(setTooltipNode, props, spec.tooltip);\n if (tooltipSpec) {\n spec.tooltip = tooltipSpec;\n }\n return spec;\n };\n\n const createChart = (props: Props) => {\n const cs = new props.vchartConstrouctor(parseSpec(props), {\n ...props.options,\n onError: props.onError,\n autoFit: true,\n dom: props.container\n });\n chartContext.current = { ...chartContext.current, chart: cs };\n isUnmount.current = false;\n };\n\n const handleChartRender = () => {\n // rebind events after render\n if (!isUnmount.current) {\n if (!chartContext.current || !chartContext.current.chart) {\n return;\n }\n\n bindEventsToChart(chartContext.current.chart, props, eventsBinded.current, CHART_EVENTS);\n\n const newView = chartContext.current.chart.getCompiler().getVGrammarView();\n\n setUpdateId(updateId + 1);\n if (props.onReady) {\n props.onReady(chartContext.current.chart, updateId === 0);\n }\n setView(newView);\n }\n };\n\n const renderChart = () => {\n if (chartContext.current.chart) {\n chartContext.current.chart.renderSync({\n reuse: false\n });\n handleChartRender();\n }\n };\n\n useEffect(() => {\n const newSpecFromChildren = hasSpec ? null : parseSpecFromChildren(props);\n\n if (!chartContext.current?.chart) {\n if (!hasSpec) {\n specFromChildren.current = newSpecFromChildren;\n }\n\n createChart(props);\n renderChart();\n eventsBinded.current = props;\n return;\n }\n\n if (hasSpec) {\n if (!isEqual(eventsBinded.current.spec, props.spec, { skipFunction: skipFunctionDiff })) {\n eventsBinded.current = props;\n chartContext.current.chart.updateSpecSync(parseSpec(props), undefined, {\n morph: false,\n enableExitAnimation: false\n });\n handleChartRender();\n }\n return;\n }\n\n const newSpec = pickWithout(props, notSpecKeys);\n\n if (\n !isEqual(newSpec, prevSpec.current, { skipFunction: skipFunctionDiff }) ||\n !isEqual(newSpecFromChildren, specFromChildren.current)\n ) {\n prevSpec.current = newSpec;\n specFromChildren.current = newSpecFromChildren;\n\n chartContext.current.chart.updateSpecSync(parseSpec(props), undefined, {\n morph: false,\n enableExitAnimation: false\n });\n handleChartRender();\n }\n }, [props]);\n\n useEffect(() => {\n return () => {\n if (chartContext) {\n if (chartContext.current && chartContext.current.chart) {\n chartContext.current.chart.release();\n chartContext.current.chart = null;\n }\n }\n eventsBinded.current = null;\n isUnmount.current = true;\n };\n }, []);\n\n return (\n <RootChartContext.Provider value={chartContext.current}>\n <ViewContext.Provider value={view}>\n {toArray(props.children).map((child, index) => {\n if (typeof child === 'string') {\n return;\n }\n\n const childId = getComponentId(child, index);\n\n return (\n <React.Fragment key={childId}>\n {React.cloneElement(child as React.ReactElement<any, React.JSXElementConstructor<any>>, {\n updateId: updateId,\n componentId: childId\n })}\n </React.Fragment>\n );\n })}\n {tooltipNode}\n </ViewContext.Provider>\n </RootChartContext.Provider>\n );\n});\n\nexport const createChart = <T extends Props>(\n componentName: string,\n defaultProps?: Partial<T>,\n registers?: (() => void)[]\n) => {\n if (registers && registers.length && defaultProps.vchartConstrouctor) {\n defaultProps.vchartConstrouctor.useRegisters(registers);\n }\n\n const Com = withContainer<ContainerProps, T>(BaseChart as any, componentName, (props: T) => {\n if (defaultProps) {\n return Object.assign(props, defaultProps);\n }\n return props;\n });\n Com.displayName = componentName;\n return Com;\n};\n"]}
1
+ {"version":3,"sources":["../src/charts/BaseChart.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,mBAAmB,EAAa,MAAM,OAAO,CAAC;AAC3F,OAAO,aAAiC,MAAM,6BAA6B,CAAC;AAC5E,OAAO,gBAAsC,MAAM,kBAAkB,CAAC;AAEtE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAA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AAM,WAAW,GAAG,CACzB,aAAqB,EACrB,YAAyB,EACzB,SAA0B,EAC1B,EAAE;IACF,IAAI,SAAS,IAAI,SAAS,CAAC,MAAM,IAAI,YAAY,CAAC,kBAAkB,EAAE;QACpE,YAAY,CAAC,kBAAkB,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;KACzD;IAED,MAAM,GAAG,GAAG,aAAa,CAAoB,SAAgB,EAAE,aAAa,EAAE,CAAC,KAAQ,EAAE,EAAE;QACzF,IAAI,YAAY,EAAE;YAChB,OAAO,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC;SAC3C;QACD,OAAO,KAAK,CAAC;IACf,CAAC,CAAC,CAAC;IACH,GAAG,CAAC,WAAW,GAAG,aAAa,CAAC;IAChC,OAAO,GAAG,CAAC;AACb,CAAC,CAAC","file":"BaseChart.js","sourcesContent":["import type { IVChart, IData, IInitOption, ISpec, IVChartConstructor, IHierarchyData } from '@visactor/vchart';\nimport React, { useState, useEffect, useRef, useImperativeHandle, ReactNode } from 'react';\nimport withContainer, { ContainerProps } from '../containers/withContainer';\nimport RootChartContext, { ChartContextType } from '../context/chart';\nimport type { IView } from '@visactor/vgrammar-core';\nimport { isEqual, isNil, isValid, pickWithout } from '@visactor/vutils';\nimport ViewContext from '../context/view';\nimport { toArray } from '../util';\nimport { REACT_PRIVATE_PROPS } from '../constants';\nimport {\n bindEventsToChart,\n EventsProps,\n CHART_EVENTS_KEYS,\n CHART_EVENTS,\n LegendEventProps,\n ScrollBarEventProps,\n BrushEventProps,\n DataZoomEventProps,\n PlayerEventProps,\n DimensionEventProps,\n HierarchyEventProps,\n ChartLifeCycleEventProps\n} from '../eventsUtils';\nimport { IReactTooltipProps } from '../components/tooltip/interface';\nimport { initCustomTooltip } from '../components/tooltip/util';\n\nexport type ChartOptions = Omit<IInitOption, 'dom'>;\n\nexport interface BaseChartProps\n extends EventsProps,\n LegendEventProps,\n ScrollBarEventProps,\n BrushEventProps,\n DataZoomEventProps,\n PlayerEventProps,\n DimensionEventProps,\n HierarchyEventProps,\n ChartLifeCycleEventProps,\n IReactTooltipProps {\n vchartConstrouctor?: IVChartConstructor;\n type?: string;\n /** 上层container */\n container?: HTMLDivElement;\n /**\n * used only by <VChart />\n */\n spec?: ISpec;\n /** 数据 */\n data?: IData | IHierarchyData;\n /** 画布宽度 */\n width?: number;\n /** 画布高度 */\n height?: number;\n /** 图表配置 */\n options?: ChartOptions;\n /** skip function diff when component update */\n skipFunctionDiff?: boolean;\n /** 图表渲染完成事件 */\n onReady?: (instance: IVChart, isInitial: boolean) => void;\n /** throw error when chart run into an error */\n onError?: (err: Error) => void;\n /**\n * use sync render\n *\n * @since 1.8.3\n * @deprecated 1.9.0\n **/\n useSyncRender?: boolean;\n}\n\ntype Props = React.PropsWithChildren<BaseChartProps>;\n\nconst notSpecKeys = [\n ...REACT_PRIVATE_PROPS,\n ...CHART_EVENTS_KEYS,\n 'vchartConstrouctor',\n 'useSyncRender',\n 'skipFunctionDiff',\n 'onError',\n 'onReady',\n 'spec',\n 'container',\n 'options'\n];\n\nconst getComponentId = (child: React.ReactNode, index: number) => {\n const componentName = child && (child as any).type && ((child as any).type.displayName || (child as any).type.name);\n return `${componentName}-${index}`;\n};\n\nconst parseSpecFromChildren = (props: Props) => {\n const specFromChildren: Omit<ISpec, 'type' | 'data' | 'width' | 'height'> = {};\n\n toArray(props.children).map((child, index) => {\n const parseSpec = child && (child as any).type && (child as any).type.parseSpec;\n\n if (parseSpec && (child as any).props) {\n const childProps = isNil((child as any).props.componentId)\n ? {\n ...(child as any).props,\n componentId: getComponentId(child, index)\n }\n : (child as any).props;\n\n const specResult = parseSpec(childProps);\n\n if (specResult.isSingle) {\n specFromChildren[specResult.specName] = specResult.spec;\n } else {\n if (!specFromChildren[specResult.specName]) {\n specFromChildren[specResult.specName] = [];\n }\n\n specFromChildren[specResult.specName].push(specResult.spec);\n }\n }\n });\n\n return specFromChildren;\n};\n\nconst BaseChart: React.FC<Props> = React.forwardRef((props, ref) => {\n const [updateId, setUpdateId] = useState<number>(0);\n const chartContext = useRef<ChartContextType>({});\n useImperativeHandle(ref, () => chartContext.current?.chart);\n const hasSpec = !!props.spec;\n const [view, setView] = useState<IView>(null);\n const isUnmount = useRef<boolean>(false);\n const prevSpec = useRef(pickWithout(props, notSpecKeys));\n const specFromChildren = useRef<Omit<ISpec, 'type' | 'data' | 'width' | 'height'>>(null);\n const eventsBinded = React.useRef<BaseChartProps>(null);\n const skipFunctionDiff = !!props.skipFunctionDiff;\n const [tooltipNode, setTooltipNode] = useState<ReactNode>(null);\n\n const parseSpec = (props: Props) => {\n let spec: ISpec = undefined;\n\n if (hasSpec && props.spec) {\n spec = props.spec;\n\n if (isValid(props.data)) {\n spec = {\n ...props.spec,\n data: props.data\n } as ISpec;\n }\n } else {\n spec = {\n ...prevSpec.current,\n ...specFromChildren.current\n } as ISpec;\n }\n\n const tooltipSpec = initCustomTooltip(setTooltipNode, props, spec.tooltip);\n if (tooltipSpec) {\n spec.tooltip = tooltipSpec;\n }\n return spec;\n };\n\n const createChart = (props: Props) => {\n const cs = new props.vchartConstrouctor(parseSpec(props), {\n ...props.options,\n onError: props.onError,\n autoFit: true,\n dom: props.container\n });\n chartContext.current = { ...chartContext.current, chart: cs };\n isUnmount.current = false;\n };\n\n const handleChartRender = () => {\n // rebind events after render\n if (!isUnmount.current) {\n if (!chartContext.current || !chartContext.current.chart) {\n return;\n }\n\n bindEventsToChart(chartContext.current.chart, props, eventsBinded.current, CHART_EVENTS);\n\n const newView = chartContext.current.chart.getCompiler().getVGrammarView();\n\n setUpdateId(updateId + 1);\n window.vchart = chartContext.current.chart;\n if (props.onReady) {\n props.onReady(chartContext.current.chart, updateId === 0);\n }\n setView(newView);\n }\n };\n\n const renderChart = () => {\n if (chartContext.current.chart) {\n chartContext.current.chart.renderSync({\n reuse: false\n });\n handleChartRender();\n }\n };\n\n useEffect(() => {\n const newSpecFromChildren = hasSpec ? null : parseSpecFromChildren(props);\n\n if (!chartContext.current?.chart) {\n if (!hasSpec) {\n specFromChildren.current = newSpecFromChildren;\n }\n\n createChart(props);\n renderChart();\n eventsBinded.current = props;\n return;\n }\n\n if (hasSpec) {\n if (!isEqual(eventsBinded.current.spec, props.spec, { skipFunction: skipFunctionDiff })) {\n chartContext.current.chart.updateSpecSync(parseSpec(props), undefined, {\n morph: false,\n enableExitAnimation: false\n });\n handleChartRender();\n eventsBinded.current = props;\n } else if (eventsBinded.current.data !== props.data) {\n chartContext.current.chart.updateFullDataSync(props.data as any);\n handleChartRender();\n eventsBinded.current = props;\n }\n return;\n }\n\n const newSpec = pickWithout(props, notSpecKeys);\n\n if (\n !isEqual(newSpec, prevSpec.current, { skipFunction: skipFunctionDiff }) ||\n !isEqual(newSpecFromChildren, specFromChildren.current)\n ) {\n prevSpec.current = newSpec;\n specFromChildren.current = newSpecFromChildren;\n\n chartContext.current.chart.updateSpecSync(parseSpec(props), undefined, {\n morph: false,\n enableExitAnimation: false\n });\n handleChartRender();\n eventsBinded.current = props;\n }\n }, [props]);\n\n useEffect(() => {\n return () => {\n if (chartContext) {\n if (chartContext.current && chartContext.current.chart) {\n chartContext.current.chart.release();\n chartContext.current.chart = null;\n }\n }\n eventsBinded.current = null;\n isUnmount.current = true;\n };\n }, []);\n\n return (\n <RootChartContext.Provider value={chartContext.current}>\n <ViewContext.Provider value={view}>\n {toArray(props.children).map((child, index) => {\n if (typeof child === 'string') {\n return;\n }\n\n const childId = getComponentId(child, index);\n\n return (\n <React.Fragment key={childId}>\n {React.cloneElement(child as React.ReactElement<any, React.JSXElementConstructor<any>>, {\n updateId: updateId,\n componentId: childId\n })}\n </React.Fragment>\n );\n })}\n {tooltipNode}\n </ViewContext.Provider>\n </RootChartContext.Provider>\n );\n});\n\nexport const createChart = <T extends Props>(\n componentName: string,\n defaultProps?: Partial<T>,\n registers?: (() => void)[]\n) => {\n if (registers && registers.length && defaultProps.vchartConstrouctor) {\n defaultProps.vchartConstrouctor.useRegisters(registers);\n }\n\n const Com = withContainer<ContainerProps, T>(BaseChart as any, componentName, (props: T) => {\n if (defaultProps) {\n return Object.assign(props, defaultProps);\n }\n return props;\n });\n Com.displayName = componentName;\n return Com;\n};\n"]}
@@ -1,9 +1,11 @@
1
- import { VChart, registerBoxplotChart, registerCartesianLinearAxis, registerCartesianBandAxis, registerCartesianTimeAxis, registerCartesianLogAxis, registerCartesianCrossHair, registerLabel } from "@visactor/vchart";
1
+ import { VChart, registerBoxplotChart, registerLabel } from "@visactor/vchart";
2
2
 
3
3
  import { createChart } from "./BaseChart";
4
4
 
5
+ import { cartesianComponentsRegisters } from "./register";
6
+
5
7
  export const BoxPlotChart = createChart("BoxPlotChart", {
6
8
  type: "boxPlot",
7
9
  vchartConstrouctor: VChart
8
- }, [ registerBoxplotChart, registerCartesianLinearAxis, registerCartesianBandAxis, registerCartesianTimeAxis, registerCartesianLogAxis, registerCartesianCrossHair, registerLabel ]);
10
+ }, [ registerBoxplotChart, registerLabel, ...cartesianComponentsRegisters ]);
9
11
  //# sourceMappingURL=BoxPlotChart.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/charts/BoxPlotChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,MAAM,EACN,oBAAoB,EACpB,2BAA2B,EAC3B,yBAAyB,EACzB,yBAAyB,EACzB,wBAAwB,EACxB,0BAA0B,EAC1B,aAAa,EACd,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAkB,WAAW,EAAE,MAAM,aAAa,CAAC;AAM1D,MAAM,CAAC,MAAM,YAAY,GAAG,WAAW,CACrC,cAAc,EACd;IACE,IAAI,EAAE,SAAS;IACf,kBAAkB,EAAE,MAA4B;CACjD,EACD;IACE,oBAAoB;IACpB,2BAA2B;IAC3B,yBAAyB;IACzB,yBAAyB;IACzB,wBAAwB;IACxB,0BAA0B;IAC1B,aAAa;CACd,CACF,CAAC","file":"BoxPlotChart.js","sourcesContent":["import React from 'react';\nimport { IBoxPlotChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport {\n VChart,\n registerBoxplotChart,\n registerCartesianLinearAxis,\n registerCartesianBandAxis,\n registerCartesianTimeAxis, // 非必选\n registerCartesianLogAxis, // 非必选\n registerCartesianCrossHair,\n registerLabel\n} from '@visactor/vchart';\nimport { BaseChartProps, createChart } from './BaseChart';\n\nexport interface BoxPlotChartProps\n extends Omit<BaseChartProps, 'spec' | 'container' | 'type' | 'data'>,\n Omit<IBoxPlotChartSpec, 'type'> {}\n\nexport const BoxPlotChart = createChart<React.PropsWithChildren<BoxPlotChartProps> & { type: 'boxPlot' }>(\n 'BoxPlotChart',\n {\n type: 'boxPlot',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [\n registerBoxplotChart,\n registerCartesianLinearAxis,\n registerCartesianBandAxis,\n registerCartesianTimeAxis, // 非必选\n registerCartesianLogAxis, // 非必选\n registerCartesianCrossHair,\n registerLabel\n ]\n);\n"]}
1
+ {"version":3,"sources":["../src/charts/BoxPlotChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC/E,OAAO,EAAkB,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,4BAA4B,EAAE,MAAM,YAAY,CAAC;AAM1D,MAAM,CAAC,MAAM,YAAY,GAAG,WAAW,CACrC,cAAc,EACd;IACE,IAAI,EAAE,SAAS;IACf,kBAAkB,EAAE,MAA4B;CACjD,EACD,CAAC,oBAAoB,EAAE,aAAa,EAAE,GAAG,4BAA4B,CAAC,CACvE,CAAC","file":"BoxPlotChart.js","sourcesContent":["import React from 'react';\nimport { IBoxPlotChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerBoxplotChart, registerLabel } from '@visactor/vchart';\nimport { BaseChartProps, createChart } from './BaseChart';\nimport { cartesianComponentsRegisters } from './register';\n\nexport interface BoxPlotChartProps\n extends Omit<BaseChartProps, 'spec' | 'container' | 'type' | 'data'>,\n Omit<IBoxPlotChartSpec, 'type'> {}\n\nexport const BoxPlotChart = createChart<React.PropsWithChildren<BoxPlotChartProps> & { type: 'boxPlot' }>(\n 'BoxPlotChart',\n {\n type: 'boxPlot',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [registerBoxplotChart, registerLabel, ...cartesianComponentsRegisters]\n);\n"]}
@@ -1,9 +1,11 @@
1
- import { VChart } from "@visactor/vchart";
1
+ import { VChart, registerCirclePackingChart } from "@visactor/vchart";
2
2
 
3
3
  import { createChart } from "./BaseChart";
4
4
 
5
+ import { simpleComponentsRegisters } from "./register";
6
+
5
7
  export const CirclePackingChart = createChart("CirclePackingChart", {
6
8
  type: "circlePacking",
7
9
  vchartConstrouctor: VChart
8
- });
10
+ }, [ registerCirclePackingChart, ...simpleComponentsRegisters ]);
9
11
  //# sourceMappingURL=CirclePackingChart.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/charts/CirclePackingChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAA8B,MAAM,kBAAkB,CAAC;AACtE,OAAO,EAAkB,WAAW,EAAE,MAAM,aAAa,CAAC;AAM1D,MAAM,CAAC,MAAM,kBAAkB,GAAG,WAAW,CAE3C,oBAAoB,EAAE;IACtB,IAAI,EAAE,eAAe;IACrB,kBAAkB,EAAE,MAA4B;CACjD,CAAC,CAAC","file":"CirclePackingChart.js","sourcesContent":["import React from 'react';\nimport { ICirclePackingChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerCirclePackingChart } from '@visactor/vchart';\nimport { BaseChartProps, createChart } from './BaseChart';\n\nexport interface CirclePackingChartProps\n extends Omit<BaseChartProps, 'spec' | 'container' | 'type' | 'data'>,\n Omit<ICirclePackingChartSpec, 'type'> {}\n\nexport const CirclePackingChart = createChart<\n React.PropsWithChildren<CirclePackingChartProps> & { type: 'circlePacking' }\n>('CirclePackingChart', {\n type: 'circlePacking',\n vchartConstrouctor: VChart as IVChartConstructor\n});\n"]}
1
+ {"version":3,"sources":["../src/charts/CirclePackingChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAC;AACtE,OAAO,EAAkB,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,yBAAyB,EAAE,MAAM,YAAY,CAAC;AAMvD,MAAM,CAAC,MAAM,kBAAkB,GAAG,WAAW,CAG3C,oBAAoB,EACpB;IACE,IAAI,EAAE,eAAe;IACrB,kBAAkB,EAAE,MAA4B;CACjD,EACD,CAAC,0BAA0B,EAAE,GAAG,yBAAyB,CAAC,CAC3D,CAAC","file":"CirclePackingChart.js","sourcesContent":["import React from 'react';\nimport { ICirclePackingChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerCirclePackingChart } from '@visactor/vchart';\nimport { BaseChartProps, createChart } from './BaseChart';\nimport { simpleComponentsRegisters } from './register';\n\nexport interface CirclePackingChartProps\n extends Omit<BaseChartProps, 'spec' | 'container' | 'type' | 'data'>,\n Omit<ICirclePackingChartSpec, 'type'> {}\n\nexport const CirclePackingChart = createChart<\n React.PropsWithChildren<CirclePackingChartProps> & { type: 'circlePacking' }\n>(\n 'CirclePackingChart',\n {\n type: 'circlePacking',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [registerCirclePackingChart, ...simpleComponentsRegisters]\n);\n"]}
@@ -1,9 +1,11 @@
1
- import { VChart, registerCircularProgressChart, registerPolarLinearAxis, registerPolarBandAxis, registerPolarCrossHair, registerLabel } from "@visactor/vchart";
1
+ import { VChart, registerCircularProgressChart, registerLabel } from "@visactor/vchart";
2
2
 
3
3
  import { createChart } from "./BaseChart";
4
4
 
5
+ import { polarComponentsRegisters } from "./register";
6
+
5
7
  export const CircularProgressChart = createChart("CircularProgressChart", {
6
8
  type: "circularProgress",
7
9
  vchartConstrouctor: VChart
8
- }, [ registerCircularProgressChart, registerPolarLinearAxis, registerPolarBandAxis, registerPolarCrossHair, registerLabel ]);
10
+ }, [ registerCircularProgressChart, registerLabel, ...polarComponentsRegisters ]);
9
11
  //# sourceMappingURL=CircularProgressChart.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/charts/CircularProgressChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,MAAM,EACN,6BAA6B,EAC7B,uBAAuB,EACvB,qBAAqB,EACrB,sBAAsB,EACtB,aAAa,EACd,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAkB,WAAW,EAAE,MAAM,aAAa,CAAC;AAM1D,MAAM,CAAC,MAAM,qBAAqB,GAAG,WAAW,CAG9C,uBAAuB,EACvB;IACE,IAAI,EAAE,kBAAkB;IACxB,kBAAkB,EAAE,MAA4B;CACjD,EACD;IACE,6BAA6B;IAC7B,uBAAuB;IACvB,qBAAqB;IACrB,sBAAsB;IACtB,aAAa;CACd,CACF,CAAC","file":"CircularProgressChart.js","sourcesContent":["import React from 'react';\nimport { ICircularProgressChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport {\n VChart,\n registerCircularProgressChart,\n registerPolarLinearAxis, // 必选\n registerPolarBandAxis, // 必选\n registerPolarCrossHair,\n registerLabel\n} from '@visactor/vchart';\nimport { BaseChartProps, createChart } from './BaseChart';\n\nexport interface CircularProgressChartProps\n extends Omit<BaseChartProps, 'spec' | 'container' | 'type' | 'data'>,\n Omit<ICircularProgressChartSpec, 'type'> {}\n\nexport const CircularProgressChart = createChart<\n React.PropsWithChildren<CircularProgressChartProps> & { type: 'circularProgress' }\n>(\n 'CircularProgressChart',\n {\n type: 'circularProgress',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [\n registerCircularProgressChart,\n registerPolarLinearAxis, // 必选\n registerPolarBandAxis, // 必选\n registerPolarCrossHair,\n registerLabel\n ]\n);\n"]}
1
+ {"version":3,"sources":["../src/charts/CircularProgressChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,6BAA6B,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACxF,OAAO,EAAkB,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAMtD,MAAM,CAAC,MAAM,qBAAqB,GAAG,WAAW,CAG9C,uBAAuB,EACvB;IACE,IAAI,EAAE,kBAAkB;IACxB,kBAAkB,EAAE,MAA4B;CACjD,EACD,CAAC,6BAA6B,EAAE,aAAa,EAAE,GAAG,wBAAwB,CAAC,CAC5E,CAAC","file":"CircularProgressChart.js","sourcesContent":["import React from 'react';\nimport { ICircularProgressChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerCircularProgressChart, registerLabel } from '@visactor/vchart';\nimport { BaseChartProps, createChart } from './BaseChart';\nimport { polarComponentsRegisters } from './register';\n\nexport interface CircularProgressChartProps\n extends Omit<BaseChartProps, 'spec' | 'container' | 'type' | 'data'>,\n Omit<ICircularProgressChartSpec, 'type'> {}\n\nexport const CircularProgressChart = createChart<\n React.PropsWithChildren<CircularProgressChartProps> & { type: 'circularProgress' }\n>(\n 'CircularProgressChart',\n {\n type: 'circularProgress',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [registerCircularProgressChart, registerLabel, ...polarComponentsRegisters]\n);\n"]}
@@ -2,8 +2,10 @@ import { VChart, registerCorrelationChart } from "@visactor/vchart";
2
2
 
3
3
  import { createChart } from "./BaseChart";
4
4
 
5
+ import { simpleComponentsRegisters } from "./register";
6
+
5
7
  export const CorrelationChart = createChart("CorrelationChart", {
6
8
  type: "correlation",
7
9
  vchartConstrouctor: VChart
8
- }, [ registerCorrelationChart ]);
10
+ }, [ registerCorrelationChart, ...simpleComponentsRegisters ]);
9
11
  //# sourceMappingURL=CorrelationChart.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/charts/CorrelationChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AACpE,OAAO,EAAkB,WAAW,EAAE,MAAM,aAAa,CAAC;AAM1D,MAAM,CAAC,MAAM,gBAAgB,GAAG,WAAW,CACzC,kBAAkB,EAClB;IACE,IAAI,EAAE,aAAa;IACnB,kBAAkB,EAAE,MAA4B;CACjD,EACD,CAAC,wBAAwB,CAAC,CAC3B,CAAC","file":"CorrelationChart.js","sourcesContent":["import React from 'react';\nimport { ICorrelationChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerCorrelationChart } from '@visactor/vchart';\nimport { BaseChartProps, createChart } from './BaseChart';\n\nexport interface CorrelationChartProps\n extends Omit<BaseChartProps, 'spec' | 'container' | 'type' | 'data'>,\n Omit<ICorrelationChartSpec, 'type'> {}\n\nexport const CorrelationChart = createChart<React.PropsWithChildren<CorrelationChartProps> & { type: 'correlation' }>(\n 'CorrelationChart',\n {\n type: 'correlation',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [registerCorrelationChart]\n);\n"]}
1
+ {"version":3,"sources":["../src/charts/CorrelationChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AACpE,OAAO,EAAkB,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,yBAAyB,EAAE,MAAM,YAAY,CAAC;AAMvD,MAAM,CAAC,MAAM,gBAAgB,GAAG,WAAW,CACzC,kBAAkB,EAClB;IACE,IAAI,EAAE,aAAa;IACnB,kBAAkB,EAAE,MAA4B;CACjD,EACD,CAAC,wBAAwB,EAAE,GAAG,yBAAyB,CAAC,CACzD,CAAC","file":"CorrelationChart.js","sourcesContent":["import React from 'react';\nimport { ICorrelationChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerCorrelationChart } from '@visactor/vchart';\nimport { BaseChartProps, createChart } from './BaseChart';\nimport { simpleComponentsRegisters } from './register';\n\nexport interface CorrelationChartProps\n extends Omit<BaseChartProps, 'spec' | 'container' | 'type' | 'data'>,\n Omit<ICorrelationChartSpec, 'type'> {}\n\nexport const CorrelationChart = createChart<React.PropsWithChildren<CorrelationChartProps> & { type: 'correlation' }>(\n 'CorrelationChart',\n {\n type: 'correlation',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [registerCorrelationChart, ...simpleComponentsRegisters]\n);\n"]}
@@ -2,8 +2,10 @@ import { VChart, registerFunnel3dChart, registerLabel } from "@visactor/vchart";
2
2
 
3
3
  import { createChart } from "./BaseChart";
4
4
 
5
+ import { simpleComponentsRegisters } from "./register";
6
+
5
7
  export const Funnel3dChart = createChart("Funnel3dChart", {
6
8
  type: "funnel3d",
7
9
  vchartConstrouctor: VChart
8
- }, [ registerFunnel3dChart, registerLabel ]);
10
+ }, [ registerFunnel3dChart, registerLabel, ...simpleComponentsRegisters ]);
9
11
  //# sourceMappingURL=Funnel3dChart.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/charts/Funnel3dChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAChF,OAAO,EAAkB,WAAW,EAAE,MAAM,aAAa,CAAC;AAM1D,MAAM,CAAC,MAAM,aAAa,GAAG,WAAW,CACtC,eAAe,EACf;IACE,IAAI,EAAE,UAAU;IAChB,kBAAkB,EAAE,MAA4B;CACjD,EACD,CAAC,qBAAqB,EAAE,aAAa,CAAC,CACvC,CAAC","file":"Funnel3dChart.js","sourcesContent":["import React from 'react';\nimport { IFunnel3dChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerFunnel3dChart, registerLabel } from '@visactor/vchart';\nimport { BaseChartProps, createChart } from './BaseChart';\n\nexport interface Funnel3dChartProps\n extends Omit<BaseChartProps, 'spec' | 'container' | 'type' | 'data'>,\n Omit<IFunnel3dChartSpec, 'type'> {}\n\nexport const Funnel3dChart = createChart<React.PropsWithChildren<Funnel3dChartProps> & { type: 'funnel3d' }>(\n 'Funnel3dChart',\n {\n type: 'funnel3d',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [registerFunnel3dChart, registerLabel]\n);\n"]}
1
+ {"version":3,"sources":["../src/charts/Funnel3dChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAChF,OAAO,EAAkB,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,yBAAyB,EAAE,MAAM,YAAY,CAAC;AAMvD,MAAM,CAAC,MAAM,aAAa,GAAG,WAAW,CACtC,eAAe,EACf;IACE,IAAI,EAAE,UAAU;IAChB,kBAAkB,EAAE,MAA4B;CACjD,EACD,CAAC,qBAAqB,EAAE,aAAa,EAAE,GAAG,yBAAyB,CAAC,CACrE,CAAC","file":"Funnel3dChart.js","sourcesContent":["import React from 'react';\nimport { IFunnel3dChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerFunnel3dChart, registerLabel } from '@visactor/vchart';\nimport { BaseChartProps, createChart } from './BaseChart';\nimport { simpleComponentsRegisters } from './register';\n\nexport interface Funnel3dChartProps\n extends Omit<BaseChartProps, 'spec' | 'container' | 'type' | 'data'>,\n Omit<IFunnel3dChartSpec, 'type'> {}\n\nexport const Funnel3dChart = createChart<React.PropsWithChildren<Funnel3dChartProps> & { type: 'funnel3d' }>(\n 'Funnel3dChart',\n {\n type: 'funnel3d',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [registerFunnel3dChart, registerLabel, ...simpleComponentsRegisters]\n);\n"]}
@@ -2,8 +2,10 @@ import { VChart, registerFunnelChart, registerLabel } from "@visactor/vchart";
2
2
 
3
3
  import { createChart } from "./BaseChart";
4
4
 
5
+ import { simpleComponentsRegisters } from "./register";
6
+
5
7
  export const FunnelChart = createChart("FunnelChart", {
6
8
  type: "funnel",
7
9
  vchartConstrouctor: VChart
8
- }, [ registerFunnelChart, registerLabel ]);
10
+ }, [ registerFunnelChart, registerLabel, ...simpleComponentsRegisters ]);
9
11
  //# sourceMappingURL=FunnelChart.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/charts/FunnelChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC9E,OAAO,EAAkB,WAAW,EAAE,MAAM,aAAa,CAAC;AAM1D,MAAM,CAAC,MAAM,WAAW,GAAG,WAAW,CACpC,aAAa,EACb;IACE,IAAI,EAAE,QAAQ;IACd,kBAAkB,EAAE,MAA4B;CACjD,EACD,CAAC,mBAAmB,EAAE,aAAa,CAAC,CACrC,CAAC","file":"FunnelChart.js","sourcesContent":["import React from 'react';\nimport { IFunnelChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerFunnelChart, registerLabel } from '@visactor/vchart';\nimport { BaseChartProps, createChart } from './BaseChart';\n\nexport interface FunnelChartProps\n extends Omit<BaseChartProps, 'spec' | 'container' | 'type' | 'data'>,\n Omit<IFunnelChartSpec, 'type'> {}\n\nexport const FunnelChart = createChart<React.PropsWithChildren<FunnelChartProps> & { type: 'funnel' }>(\n 'FunnelChart',\n {\n type: 'funnel',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [registerFunnelChart, registerLabel]\n);\n"]}
1
+ {"version":3,"sources":["../src/charts/FunnelChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC9E,OAAO,EAAkB,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,yBAAyB,EAAE,MAAM,YAAY,CAAC;AAMvD,MAAM,CAAC,MAAM,WAAW,GAAG,WAAW,CACpC,aAAa,EACb;IACE,IAAI,EAAE,QAAQ;IACd,kBAAkB,EAAE,MAA4B;CACjD,EACD,CAAC,mBAAmB,EAAE,aAAa,EAAE,GAAG,yBAAyB,CAAC,CACnE,CAAC","file":"FunnelChart.js","sourcesContent":["import React from 'react';\nimport { IFunnelChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerFunnelChart, registerLabel } from '@visactor/vchart';\nimport { BaseChartProps, createChart } from './BaseChart';\nimport { simpleComponentsRegisters } from './register';\n\nexport interface FunnelChartProps\n extends Omit<BaseChartProps, 'spec' | 'container' | 'type' | 'data'>,\n Omit<IFunnelChartSpec, 'type'> {}\n\nexport const FunnelChart = createChart<React.PropsWithChildren<FunnelChartProps> & { type: 'funnel' }>(\n 'FunnelChart',\n {\n type: 'funnel',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [registerFunnelChart, registerLabel, ...simpleComponentsRegisters]\n);\n"]}
@@ -2,8 +2,10 @@ import { VChart, registerGaugeChart } from "@visactor/vchart";
2
2
 
3
3
  import { createChart } from "./BaseChart";
4
4
 
5
+ import { simpleComponentsRegisters } from "./register";
6
+
5
7
  export const GaugeChart = createChart("GaugeChart", {
6
8
  type: "gauge",
7
9
  vchartConstrouctor: VChart
8
- }, [ registerGaugeChart ]);
10
+ }, [ registerGaugeChart, ...simpleComponentsRegisters ]);
9
11
  //# sourceMappingURL=GaugeChart.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/charts/GaugeChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAkB,WAAW,EAAE,MAAM,aAAa,CAAC;AAM1D,MAAM,CAAC,MAAM,UAAU,GAAG,WAAW,CACnC,YAAY,EACZ;IACE,IAAI,EAAE,OAAO;IACb,kBAAkB,EAAE,MAA4B;CACjD,EACD,CAAC,kBAAkB,CAAC,CACrB,CAAC","file":"GaugeChart.js","sourcesContent":["import React from 'react';\nimport type { IGaugeChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerGaugeChart } from '@visactor/vchart';\nimport { BaseChartProps, createChart } from './BaseChart';\n\nexport interface GaugeChartProps\n extends Omit<BaseChartProps, 'spec' | 'container' | 'type' | 'data'>,\n Omit<IGaugeChartSpec, 'type'> {}\n\nexport const GaugeChart = createChart<React.PropsWithChildren<GaugeChartProps> & { type: 'gauge' }>(\n 'GaugeChart',\n {\n type: 'gauge',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [registerGaugeChart]\n);\n"]}
1
+ {"version":3,"sources":["../src/charts/GaugeChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAkB,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,yBAAyB,EAAE,MAAM,YAAY,CAAC;AAMvD,MAAM,CAAC,MAAM,UAAU,GAAG,WAAW,CACnC,YAAY,EACZ;IACE,IAAI,EAAE,OAAO;IACb,kBAAkB,EAAE,MAA4B;CACjD,EACD,CAAC,kBAAkB,EAAE,GAAG,yBAAyB,CAAC,CACnD,CAAC","file":"GaugeChart.js","sourcesContent":["import React from 'react';\nimport type { IGaugeChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerGaugeChart } from '@visactor/vchart';\nimport { BaseChartProps, createChart } from './BaseChart';\nimport { simpleComponentsRegisters } from './register';\n\nexport interface GaugeChartProps\n extends Omit<BaseChartProps, 'spec' | 'container' | 'type' | 'data'>,\n Omit<IGaugeChartSpec, 'type'> {}\n\nexport const GaugeChart = createChart<React.PropsWithChildren<GaugeChartProps> & { type: 'gauge' }>(\n 'GaugeChart',\n {\n type: 'gauge',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [registerGaugeChart, ...simpleComponentsRegisters]\n);\n"]}
@@ -2,8 +2,10 @@ import { VChart, registerHeatmapChart, registerCartesianBandAxis, registerCartes
2
2
 
3
3
  import { createChart } from "./BaseChart";
4
4
 
5
+ import { cartesianComponentsRegisters } from "./register";
6
+
5
7
  export const HeatmapChart = createChart("HeatmapChart", {
6
8
  type: "heatmap",
7
9
  vchartConstrouctor: VChart
8
- }, [ registerHeatmapChart, registerCartesianBandAxis, registerCartesianCrossHair, registerLabel ]);
10
+ }, [ registerHeatmapChart, registerCartesianBandAxis, registerCartesianCrossHair, registerLabel, ...cartesianComponentsRegisters ]);
9
11
  //# sourceMappingURL=HeatmapChart.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/charts/HeatmapChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,MAAM,EACN,oBAAoB,EACpB,yBAAyB,EACzB,0BAA0B,EAC1B,aAAa,EACd,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAkB,WAAW,EAAE,MAAM,aAAa,CAAC;AAQ1D,MAAM,CAAC,MAAM,YAAY,GAAG,WAAW,CACrC,cAAc,EACd;IACE,IAAI,EAAE,SAAS;IACf,kBAAkB,EAAE,MAA4B;CACjD,EACD,CAAC,oBAAoB,EAAE,yBAAyB,EAAE,0BAA0B,EAAE,aAAa,CAAC,CAC7F,CAAC","file":"HeatmapChart.js","sourcesContent":["import React from 'react';\nimport type { IHeatmapChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport {\n VChart,\n registerHeatmapChart,\n registerCartesianBandAxis,\n registerCartesianCrossHair,\n registerLabel\n} from '@visactor/vchart';\nimport { BaseChartProps, createChart } from './BaseChart';\n\nexport interface HeatmapChartProps\n extends Omit<BaseChartProps, 'spec' | 'container' | 'type' | 'data'>,\n Omit<IHeatmapChartSpec, 'type'> {\n //\n}\n\nexport const HeatmapChart = createChart<React.PropsWithChildren<HeatmapChartProps> & { type: 'heatmap' }>(\n 'HeatmapChart',\n {\n type: 'heatmap',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [registerHeatmapChart, registerCartesianBandAxis, registerCartesianCrossHair, registerLabel]\n);\n"]}
1
+ {"version":3,"sources":["../src/charts/HeatmapChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,MAAM,EACN,oBAAoB,EACpB,yBAAyB,EACzB,0BAA0B,EAC1B,aAAa,EACd,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAkB,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,4BAA4B,EAAE,MAAM,YAAY,CAAC;AAQ1D,MAAM,CAAC,MAAM,YAAY,GAAG,WAAW,CACrC,cAAc,EACd;IACE,IAAI,EAAE,SAAS;IACf,kBAAkB,EAAE,MAA4B;CACjD,EACD;IACE,oBAAoB;IACpB,yBAAyB;IACzB,0BAA0B;IAC1B,aAAa;IACb,GAAG,4BAA4B;CAChC,CACF,CAAC","file":"HeatmapChart.js","sourcesContent":["import React from 'react';\nimport type { IHeatmapChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport {\n VChart,\n registerHeatmapChart,\n registerCartesianBandAxis,\n registerCartesianCrossHair,\n registerLabel\n} from '@visactor/vchart';\nimport { BaseChartProps, createChart } from './BaseChart';\nimport { cartesianComponentsRegisters } from './register';\n\nexport interface HeatmapChartProps\n extends Omit<BaseChartProps, 'spec' | 'container' | 'type' | 'data'>,\n Omit<IHeatmapChartSpec, 'type'> {\n //\n}\n\nexport const HeatmapChart = createChart<React.PropsWithChildren<HeatmapChartProps> & { type: 'heatmap' }>(\n 'HeatmapChart',\n {\n type: 'heatmap',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [\n registerHeatmapChart,\n registerCartesianBandAxis,\n registerCartesianCrossHair,\n registerLabel,\n ...cartesianComponentsRegisters\n ]\n);\n"]}
@@ -1,9 +1,11 @@
1
- import { VChart, registerHistogram3dChart, registerCartesianLinearAxis, registerCartesianBandAxis, registerCartesianTimeAxis, registerCartesianLogAxis, registerCartesianCrossHair, registerLabel } from "@visactor/vchart";
1
+ import { VChart, registerHistogram3dChart, registerLabel } from "@visactor/vchart";
2
2
 
3
3
  import { createChart } from "./BaseChart";
4
4
 
5
+ import { cartesianComponentsRegisters } from "./register";
6
+
5
7
  export const Histogram3dChart = createChart("Histogram3dChart", {
6
8
  type: "histogram3d",
7
9
  vchartConstrouctor: VChart
8
- }, [ registerHistogram3dChart, registerCartesianLinearAxis, registerCartesianBandAxis, registerCartesianTimeAxis, registerCartesianLogAxis, registerCartesianCrossHair, registerLabel ]);
10
+ }, [ registerHistogram3dChart, registerLabel, ...cartesianComponentsRegisters ]);
9
11
  //# sourceMappingURL=Histogram3dChart.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/charts/Histogram3dChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,MAAM,EACN,wBAAwB,EACxB,2BAA2B,EAC3B,yBAAyB,EACzB,yBAAyB,EACzB,wBAAwB,EACxB,0BAA0B,EAC1B,aAAa,EACd,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAkB,WAAW,EAAE,MAAM,aAAa,CAAC;AAM1D,MAAM,CAAC,MAAM,gBAAgB,GAAG,WAAW,CACzC,kBAAkB,EAClB;IACE,IAAI,EAAE,aAAa;IACnB,kBAAkB,EAAE,MAA4B;CACjD,EACD;IACE,wBAAwB;IACxB,2BAA2B;IAC3B,yBAAyB;IACzB,yBAAyB;IACzB,wBAAwB;IACxB,0BAA0B;IAC1B,aAAa;CACd,CACF,CAAC","file":"Histogram3dChart.js","sourcesContent":["import React from 'react';\nimport { IHistogram3dChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport {\n VChart,\n registerHistogram3dChart,\n registerCartesianLinearAxis,\n registerCartesianBandAxis,\n registerCartesianTimeAxis, // 非必选\n registerCartesianLogAxis, // 非必选\n registerCartesianCrossHair,\n registerLabel\n} from '@visactor/vchart';\nimport { BaseChartProps, createChart } from './BaseChart';\n\nexport interface Histogram3dChartProps\n extends Omit<BaseChartProps, 'spec' | 'container' | 'type' | 'data'>,\n Omit<IHistogram3dChartSpec, 'type'> {}\n\nexport const Histogram3dChart = createChart<React.PropsWithChildren<Histogram3dChartProps> & { type: 'histogram3d' }>(\n 'Histogram3dChart',\n {\n type: 'histogram3d',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [\n registerHistogram3dChart,\n registerCartesianLinearAxis,\n registerCartesianBandAxis,\n registerCartesianTimeAxis, // 非必选\n registerCartesianLogAxis, // 非必选\n registerCartesianCrossHair,\n registerLabel\n ]\n);\n"]}
1
+ {"version":3,"sources":["../src/charts/Histogram3dChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,wBAAwB,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACnF,OAAO,EAAkB,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,4BAA4B,EAAE,MAAM,YAAY,CAAC;AAM1D,MAAM,CAAC,MAAM,gBAAgB,GAAG,WAAW,CACzC,kBAAkB,EAClB;IACE,IAAI,EAAE,aAAa;IACnB,kBAAkB,EAAE,MAA4B;CACjD,EACD,CAAC,wBAAwB,EAAE,aAAa,EAAE,GAAG,4BAA4B,CAAC,CAC3E,CAAC","file":"Histogram3dChart.js","sourcesContent":["import React from 'react';\nimport { IHistogram3dChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerHistogram3dChart, registerLabel } from '@visactor/vchart';\nimport { BaseChartProps, createChart } from './BaseChart';\nimport { cartesianComponentsRegisters } from './register';\n\nexport interface Histogram3dChartProps\n extends Omit<BaseChartProps, 'spec' | 'container' | 'type' | 'data'>,\n Omit<IHistogram3dChartSpec, 'type'> {}\n\nexport const Histogram3dChart = createChart<React.PropsWithChildren<Histogram3dChartProps> & { type: 'histogram3d' }>(\n 'Histogram3dChart',\n {\n type: 'histogram3d',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [registerHistogram3dChart, registerLabel, ...cartesianComponentsRegisters]\n);\n"]}
@@ -1,8 +1,10 @@
1
- import { VChart, registerHistogramChart, registerCartesianLinearAxis, registerCartesianBandAxis, registerCartesianTimeAxis, registerCartesianLogAxis, registerCartesianCrossHair, registerLabel } from "@visactor/vchart";
1
+ import { VChart, registerHistogramChart, registerLabel } from "@visactor/vchart";
2
2
 
3
3
  import { createChart } from "./BaseChart";
4
4
 
5
+ import { cartesianComponentsRegisters } from "./register";
6
+
5
7
  export const HistogramChart = createChart("HistogramChart", {
6
8
  type: "histogram",
7
9
  vchartConstrouctor: VChart
8
- }, [ registerHistogramChart, registerCartesianLinearAxis, registerCartesianBandAxis, registerCartesianTimeAxis, registerCartesianLogAxis, registerCartesianCrossHair, registerLabel ]);
10
+ }, [ registerHistogramChart, registerLabel, ...cartesianComponentsRegisters ]);
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/charts/HistogramChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,MAAM,EACN,sBAAsB,EACtB,2BAA2B,EAC3B,yBAAyB,EACzB,yBAAyB,EACzB,wBAAwB,EACxB,0BAA0B,EAC1B,aAAa,EACd,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAkB,WAAW,EAAE,MAAM,aAAa,CAAC;AAM1D,MAAM,CAAC,MAAM,cAAc,GAAG,WAAW,CACvC,gBAAgB,EAChB;IACE,IAAI,EAAE,WAAW;IACjB,kBAAkB,EAAE,MAA4B;CACjD,EACD;IACE,sBAAsB;IACtB,2BAA2B;IAC3B,yBAAyB;IACzB,yBAAyB;IACzB,wBAAwB;IACxB,0BAA0B;IAC1B,aAAa;CACd,CACF,CAAC","file":"HistogramChart.js","sourcesContent":["import React from 'react';\nimport { IHistogramChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport {\n VChart,\n registerHistogramChart,\n registerCartesianLinearAxis,\n registerCartesianBandAxis,\n registerCartesianTimeAxis, // 非必选\n registerCartesianLogAxis, // 非必选\n registerCartesianCrossHair,\n registerLabel\n} from '@visactor/vchart';\nimport { BaseChartProps, createChart } from './BaseChart';\n\nexport interface HistogramChartProps\n extends Omit<BaseChartProps, 'spec' | 'container' | 'type' | 'data'>,\n Omit<IHistogramChartSpec, 'type'> {}\n\nexport const HistogramChart = createChart<React.PropsWithChildren<HistogramChartProps> & { type: 'histogram' }>(\n 'HistogramChart',\n {\n type: 'histogram',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [\n registerHistogramChart,\n registerCartesianLinearAxis,\n registerCartesianBandAxis,\n registerCartesianTimeAxis, // 非必选\n registerCartesianLogAxis, // 非必选\n registerCartesianCrossHair,\n registerLabel\n ]\n);\n"]}
1
+ {"version":3,"sources":["../src/charts/HistogramChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,sBAAsB,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjF,OAAO,EAAkB,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,4BAA4B,EAAE,MAAM,YAAY,CAAC;AAM1D,MAAM,CAAC,MAAM,cAAc,GAAG,WAAW,CACvC,gBAAgB,EAChB;IACE,IAAI,EAAE,WAAW;IACjB,kBAAkB,EAAE,MAA4B;CACjD,EACD,CAAC,sBAAsB,EAAE,aAAa,EAAE,GAAG,4BAA4B,CAAC,CACzE,CAAC","file":"HistogramChart.js","sourcesContent":["import React from 'react';\nimport { IHistogramChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerHistogramChart, registerLabel } from '@visactor/vchart';\nimport { BaseChartProps, createChart } from './BaseChart';\nimport { cartesianComponentsRegisters } from './register';\n\nexport interface HistogramChartProps\n extends Omit<BaseChartProps, 'spec' | 'container' | 'type' | 'data'>,\n Omit<IHistogramChartSpec, 'type'> {}\n\nexport const HistogramChart = createChart<React.PropsWithChildren<HistogramChartProps> & { type: 'histogram' }>(\n 'HistogramChart',\n {\n type: 'histogram',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [registerHistogramChart, registerLabel, ...cartesianComponentsRegisters]\n);\n"]}
@@ -1,9 +1,11 @@
1
- import { VChart, registerLineChart, registerCartesianLinearAxis, registerCartesianBandAxis, registerCartesianTimeAxis, registerCartesianLogAxis, registerCartesianCrossHair, registerLabel, registerTotalLabel } from "@visactor/vchart";
1
+ import { VChart, registerLineChart, registerLabel, registerTotalLabel } from "@visactor/vchart";
2
2
 
3
3
  import { createChart } from "./BaseChart";
4
4
 
5
+ import { cartesianComponentsRegisters } from "./register";
6
+
5
7
  export const LineChart = createChart("LineChart", {
6
8
  type: "line",
7
9
  vchartConstrouctor: VChart
8
- }, [ registerLineChart, registerCartesianLinearAxis, registerCartesianBandAxis, registerCartesianTimeAxis, registerCartesianLogAxis, registerCartesianCrossHair, registerLabel, registerTotalLabel ]);
10
+ }, [ registerLineChart, registerLabel, registerTotalLabel, ...cartesianComponentsRegisters ]);
9
11
  //# sourceMappingURL=LineChart.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/charts/LineChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,MAAM,EACN,iBAAiB,EACjB,2BAA2B,EAC3B,yBAAyB,EACzB,yBAAyB,EACzB,wBAAwB,EACxB,0BAA0B,EAC1B,aAAa,EACb,kBAAkB,EACnB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAkB,WAAW,EAAE,MAAM,aAAa,CAAC;AAM1D,MAAM,CAAC,MAAM,SAAS,GAAG,WAAW,CAClC,WAAW,EACX;IACE,IAAI,EAAE,MAAM;IACZ,kBAAkB,EAAE,MAA4B;CACjD,EACD;IACE,iBAAiB;IACjB,2BAA2B;IAC3B,yBAAyB;IACzB,yBAAyB;IACzB,wBAAwB;IACxB,0BAA0B;IAC1B,aAAa;IACb,kBAAkB;CACnB,CACF,CAAC","file":"LineChart.js","sourcesContent":["import React from 'react';\nimport type { ILineChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport {\n VChart,\n registerLineChart,\n registerCartesianLinearAxis,\n registerCartesianBandAxis,\n registerCartesianTimeAxis, // 非必选\n registerCartesianLogAxis, // 非必选\n registerCartesianCrossHair,\n registerLabel,\n registerTotalLabel\n} from '@visactor/vchart';\nimport { BaseChartProps, createChart } from './BaseChart';\n\nexport interface LineChartProps\n extends Omit<BaseChartProps, 'spec' | 'container' | 'type' | 'data'>,\n Omit<ILineChartSpec, 'type'> {}\n\nexport const LineChart = createChart<React.PropsWithChildren<LineChartProps> & { type: 'line' }>(\n 'LineChart',\n {\n type: 'line',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [\n registerLineChart,\n registerCartesianLinearAxis,\n registerCartesianBandAxis,\n registerCartesianTimeAxis, // 非必选\n registerCartesianLogAxis, // 非必选\n registerCartesianCrossHair,\n registerLabel,\n registerTotalLabel\n ]\n);\n"]}
1
+ {"version":3,"sources":["../src/charts/LineChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,iBAAiB,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAChG,OAAO,EAAkB,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,4BAA4B,EAAE,MAAM,YAAY,CAAC;AAM1D,MAAM,CAAC,MAAM,SAAS,GAAG,WAAW,CAClC,WAAW,EACX;IACE,IAAI,EAAE,MAAM;IACZ,kBAAkB,EAAE,MAA4B;CACjD,EACD,CAAC,iBAAiB,EAAE,aAAa,EAAE,kBAAkB,EAAE,GAAG,4BAA4B,CAAC,CACxF,CAAC","file":"LineChart.js","sourcesContent":["import React from 'react';\nimport type { ILineChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerLineChart, registerLabel, registerTotalLabel } from '@visactor/vchart';\nimport { BaseChartProps, createChart } from './BaseChart';\nimport { cartesianComponentsRegisters } from './register';\n\nexport interface LineChartProps\n extends Omit<BaseChartProps, 'spec' | 'container' | 'type' | 'data'>,\n Omit<ILineChartSpec, 'type'> {}\n\nexport const LineChart = createChart<React.PropsWithChildren<LineChartProps> & { type: 'line' }>(\n 'LineChart',\n {\n type: 'line',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [registerLineChart, registerLabel, registerTotalLabel, ...cartesianComponentsRegisters]\n);\n"]}
@@ -1,9 +1,11 @@
1
- import { VChart, registerLinearProgressChart, registerCartesianLinearAxis, registerCartesianBandAxis, registerCartesianTimeAxis, registerCartesianLogAxis, registerCartesianCrossHair, registerLabel } from "@visactor/vchart";
1
+ import { VChart, registerLinearProgressChart, registerLabel } from "@visactor/vchart";
2
2
 
3
3
  import { createChart } from "./BaseChart";
4
4
 
5
+ import { cartesianComponentsRegisters } from "./register";
6
+
5
7
  export const LinearProgressChart = createChart("LinearProgressChart", {
6
8
  type: "linearProgress",
7
9
  vchartConstrouctor: VChart
8
- }, [ registerLinearProgressChart, registerCartesianLinearAxis, registerCartesianBandAxis, registerCartesianTimeAxis, registerCartesianLogAxis, registerCartesianCrossHair, registerLabel ]);
10
+ }, [ registerLinearProgressChart, registerLabel, ...cartesianComponentsRegisters ]);
9
11
  //# sourceMappingURL=LinearProgressChart.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/charts/LinearProgressChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,MAAM,EACN,2BAA2B,EAC3B,2BAA2B,EAC3B,yBAAyB,EACzB,yBAAyB,EACzB,wBAAwB,EACxB,0BAA0B,EAC1B,aAAa,EACd,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAkB,WAAW,EAAE,MAAM,aAAa,CAAC;AAM1D,MAAM,CAAC,MAAM,mBAAmB,GAAG,WAAW,CAG5C,qBAAqB,EACrB;IACE,IAAI,EAAE,gBAAgB;IACtB,kBAAkB,EAAE,MAA4B;CACjD,EACD;IACE,2BAA2B;IAC3B,2BAA2B;IAC3B,yBAAyB;IACzB,yBAAyB;IACzB,wBAAwB;IACxB,0BAA0B;IAC1B,aAAa;CACd,CACF,CAAC","file":"LinearProgressChart.js","sourcesContent":["import React from 'react';\nimport { ILinearProgressChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport {\n VChart,\n registerLinearProgressChart,\n registerCartesianLinearAxis,\n registerCartesianBandAxis,\n registerCartesianTimeAxis, // 非必选\n registerCartesianLogAxis, // 非必选\n registerCartesianCrossHair,\n registerLabel\n} from '@visactor/vchart';\nimport { BaseChartProps, createChart } from './BaseChart';\n\nexport interface LinearProgressChartProps\n extends Omit<BaseChartProps, 'spec' | 'container' | 'type' | 'data'>,\n Omit<ILinearProgressChartSpec, 'type'> {}\n\nexport const LinearProgressChart = createChart<\n React.PropsWithChildren<LinearProgressChartProps> & { type: 'linearProgress' }\n>(\n 'LinearProgressChart',\n {\n type: 'linearProgress',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [\n registerLinearProgressChart,\n registerCartesianLinearAxis,\n registerCartesianBandAxis,\n registerCartesianTimeAxis, // 非必选\n registerCartesianLogAxis, // 非必选\n registerCartesianCrossHair,\n registerLabel\n ]\n);\n"]}
1
+ {"version":3,"sources":["../src/charts/LinearProgressChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,2BAA2B,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtF,OAAO,EAAkB,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,4BAA4B,EAAE,MAAM,YAAY,CAAC;AAM1D,MAAM,CAAC,MAAM,mBAAmB,GAAG,WAAW,CAG5C,qBAAqB,EACrB;IACE,IAAI,EAAE,gBAAgB;IACtB,kBAAkB,EAAE,MAA4B;CACjD,EACD,CAAC,2BAA2B,EAAE,aAAa,EAAE,GAAG,4BAA4B,CAAC,CAC9E,CAAC","file":"LinearProgressChart.js","sourcesContent":["import React from 'react';\nimport { ILinearProgressChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerLinearProgressChart, registerLabel } from '@visactor/vchart';\nimport { BaseChartProps, createChart } from './BaseChart';\nimport { cartesianComponentsRegisters } from './register';\n\nexport interface LinearProgressChartProps\n extends Omit<BaseChartProps, 'spec' | 'container' | 'type' | 'data'>,\n Omit<ILinearProgressChartSpec, 'type'> {}\n\nexport const LinearProgressChart = createChart<\n React.PropsWithChildren<LinearProgressChartProps> & { type: 'linearProgress' }\n>(\n 'LinearProgressChart',\n {\n type: 'linearProgress',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [registerLinearProgressChart, registerLabel, ...cartesianComponentsRegisters]\n);\n"]}
@@ -2,8 +2,10 @@ import { VChart, registerLiquidChart } from "@visactor/vchart";
2
2
 
3
3
  import { createChart } from "./BaseChart";
4
4
 
5
+ import { simpleComponentsRegisters } from "./register";
6
+
5
7
  export const LiquidChart = createChart("LiquidChart", {
6
8
  type: "liquid",
7
9
  vchartConstrouctor: VChart
8
- }, [ registerLiquidChart ]);
10
+ }, [ registerLiquidChart, ...simpleComponentsRegisters ]);
9
11
  //# sourceMappingURL=LiquidChart.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/charts/LiquidChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EAAkB,WAAW,EAAE,MAAM,aAAa,CAAC;AAM1D,MAAM,CAAC,MAAM,WAAW,GAAG,WAAW,CACpC,aAAa,EACb;IACE,IAAI,EAAE,QAAQ;IACd,kBAAkB,EAAE,MAA4B;CACjD,EACD,CAAC,mBAAmB,CAAC,CACtB,CAAC","file":"LiquidChart.js","sourcesContent":["import React from 'react';\nimport type { ILiquidChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerLiquidChart } from '@visactor/vchart';\nimport { BaseChartProps, createChart } from './BaseChart';\n\nexport interface LiquidChartProps\n extends Omit<BaseChartProps, 'spec' | 'container' | 'type' | 'data' | 'data'>,\n Omit<ILiquidChartSpec, 'type'> {}\n\nexport const LiquidChart = createChart<React.PropsWithChildren<LiquidChartProps> & { type: 'liquid' }>(\n 'LiquidChart',\n {\n type: 'liquid',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [registerLiquidChart]\n);\n"]}
1
+ {"version":3,"sources":["../src/charts/LiquidChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EAAkB,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,yBAAyB,EAAE,MAAM,YAAY,CAAC;AAMvD,MAAM,CAAC,MAAM,WAAW,GAAG,WAAW,CACpC,aAAa,EACb;IACE,IAAI,EAAE,QAAQ;IACd,kBAAkB,EAAE,MAA4B;CACjD,EACD,CAAC,mBAAmB,EAAE,GAAG,yBAAyB,CAAC,CACpD,CAAC","file":"LiquidChart.js","sourcesContent":["import React from 'react';\nimport type { ILiquidChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerLiquidChart } from '@visactor/vchart';\nimport { BaseChartProps, createChart } from './BaseChart';\nimport { simpleComponentsRegisters } from './register';\n\nexport interface LiquidChartProps\n extends Omit<BaseChartProps, 'spec' | 'container' | 'type' | 'data' | 'data'>,\n Omit<ILiquidChartSpec, 'type'> {}\n\nexport const LiquidChart = createChart<React.PropsWithChildren<LiquidChartProps> & { type: 'liquid' }>(\n 'LiquidChart',\n {\n type: 'liquid',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [registerLiquidChart, ...simpleComponentsRegisters]\n);\n"]}
@@ -2,8 +2,10 @@ import { VChart, registerMapChart, registerLabel } from "@visactor/vchart";
2
2
 
3
3
  import { createChart } from "./BaseChart";
4
4
 
5
+ import { simpleComponentsRegisters } from "./register";
6
+
5
7
  export const MapChart = createChart("MapChart", {
6
8
  type: "map",
7
9
  vchartConstrouctor: VChart
8
- }, [ registerMapChart, registerLabel ]);
10
+ }, [ registerMapChart, registerLabel, ...simpleComponentsRegisters ]);
9
11
  //# sourceMappingURL=MapChart.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/charts/MapChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC3E,OAAO,EAAkB,WAAW,EAAE,MAAM,aAAa,CAAC;AAM1D,MAAM,CAAC,MAAM,QAAQ,GAAG,WAAW,CACjC,UAAU,EACV;IACE,IAAI,EAAE,KAAK;IACX,kBAAkB,EAAE,MAA4B;CACjD,EACD,CAAC,gBAAgB,EAAE,aAAa,CAAC,CAClC,CAAC","file":"MapChart.js","sourcesContent":["import React from 'react';\nimport type { IMapChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerMapChart, registerLabel } from '@visactor/vchart';\nimport { BaseChartProps, createChart } from './BaseChart';\n\nexport interface MapChartProps\n extends Omit<BaseChartProps, 'spec' | 'container' | 'type' | 'data'>,\n Omit<IMapChartSpec, 'type'> {}\n\nexport const MapChart = createChart<React.PropsWithChildren<MapChartProps> & { type: 'map' }>(\n 'MapChart',\n {\n type: 'map',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [registerMapChart, registerLabel]\n);\n"]}
1
+ {"version":3,"sources":["../src/charts/MapChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC3E,OAAO,EAAkB,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,yBAAyB,EAAE,MAAM,YAAY,CAAC;AAMvD,MAAM,CAAC,MAAM,QAAQ,GAAG,WAAW,CACjC,UAAU,EACV;IACE,IAAI,EAAE,KAAK;IACX,kBAAkB,EAAE,MAA4B;CACjD,EACD,CAAC,gBAAgB,EAAE,aAAa,EAAE,GAAG,yBAAyB,CAAC,CAChE,CAAC","file":"MapChart.js","sourcesContent":["import React from 'react';\nimport type { IMapChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerMapChart, registerLabel } from '@visactor/vchart';\nimport { BaseChartProps, createChart } from './BaseChart';\nimport { simpleComponentsRegisters } from './register';\n\nexport interface MapChartProps\n extends Omit<BaseChartProps, 'spec' | 'container' | 'type' | 'data'>,\n Omit<IMapChartSpec, 'type'> {}\n\nexport const MapChart = createChart<React.PropsWithChildren<MapChartProps> & { type: 'map' }>(\n 'MapChart',\n {\n type: 'map',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [registerMapChart, registerLabel, ...simpleComponentsRegisters]\n);\n"]}
@@ -2,8 +2,10 @@ import { VChart, registerPie3dChart, registerLabel } from "@visactor/vchart";
2
2
 
3
3
  import { createChart } from "./BaseChart";
4
4
 
5
+ import { simpleComponentsRegisters } from "./register";
6
+
5
7
  export const Pie3dChart = createChart("Pie3dChart", {
6
8
  type: "pie3d",
7
9
  vchartConstrouctor: VChart
8
- }, [ registerPie3dChart, registerLabel ]);
10
+ }, [ registerPie3dChart, registerLabel, ...simpleComponentsRegisters ]);
9
11
  //# sourceMappingURL=Pie3dChart.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/charts/Pie3dChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC7E,OAAO,EAAkB,WAAW,EAAE,MAAM,aAAa,CAAC;AAM1D,MAAM,CAAC,MAAM,UAAU,GAAG,WAAW,CACnC,YAAY,EACZ;IACE,IAAI,EAAE,OAAO;IACb,kBAAkB,EAAE,MAA4B;CACjD,EACD,CAAC,kBAAkB,EAAE,aAAa,CAAC,CACpC,CAAC","file":"Pie3dChart.js","sourcesContent":["import React from 'react';\nimport type { IPie3dChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerPie3dChart, registerLabel } from '@visactor/vchart';\nimport { BaseChartProps, createChart } from './BaseChart';\n\nexport interface Pie3dChartProps\n extends Omit<BaseChartProps, 'spec' | 'container' | 'type' | 'data'>,\n Omit<IPie3dChartSpec, 'type'> {}\n\nexport const Pie3dChart = createChart<React.PropsWithChildren<Pie3dChartProps> & { type: 'pie3d' }>(\n 'Pie3dChart',\n {\n type: 'pie3d',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [registerPie3dChart, registerLabel]\n);\n"]}
1
+ {"version":3,"sources":["../src/charts/Pie3dChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC7E,OAAO,EAAkB,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,yBAAyB,EAAE,MAAM,YAAY,CAAC;AAMvD,MAAM,CAAC,MAAM,UAAU,GAAG,WAAW,CACnC,YAAY,EACZ;IACE,IAAI,EAAE,OAAO;IACb,kBAAkB,EAAE,MAA4B;CACjD,EACD,CAAC,kBAAkB,EAAE,aAAa,EAAE,GAAG,yBAAyB,CAAC,CAClE,CAAC","file":"Pie3dChart.js","sourcesContent":["import React from 'react';\nimport type { IPie3dChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerPie3dChart, registerLabel } from '@visactor/vchart';\nimport { BaseChartProps, createChart } from './BaseChart';\nimport { simpleComponentsRegisters } from './register';\n\nexport interface Pie3dChartProps\n extends Omit<BaseChartProps, 'spec' | 'container' | 'type' | 'data'>,\n Omit<IPie3dChartSpec, 'type'> {}\n\nexport const Pie3dChart = createChart<React.PropsWithChildren<Pie3dChartProps> & { type: 'pie3d' }>(\n 'Pie3dChart',\n {\n type: 'pie3d',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [registerPie3dChart, registerLabel, ...simpleComponentsRegisters]\n);\n"]}
@@ -2,8 +2,10 @@ import { VChart, registerPieChart, registerLabel } from "@visactor/vchart";
2
2
 
3
3
  import { createChart } from "./BaseChart";
4
4
 
5
+ import { simpleComponentsRegisters } from "./register";
6
+
5
7
  export const PieChart = createChart("PieChart", {
6
8
  type: "pie",
7
9
  vchartConstrouctor: VChart
8
- }, [ registerPieChart, registerLabel ]);
10
+ }, [ registerPieChart, registerLabel, ...simpleComponentsRegisters ]);
9
11
  //# sourceMappingURL=PieChart.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/charts/PieChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC3E,OAAO,EAAkB,WAAW,EAAE,MAAM,aAAa,CAAC;AAM1D,MAAM,CAAC,MAAM,QAAQ,GAAG,WAAW,CACjC,UAAU,EACV;IACE,IAAI,EAAE,KAAK;IACX,kBAAkB,EAAE,MAA4B;CACjD,EACD,CAAC,gBAAgB,EAAE,aAAa,CAAC,CAClC,CAAC","file":"PieChart.js","sourcesContent":["import React from 'react';\nimport type { IPieChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerPieChart, registerLabel } from '@visactor/vchart';\nimport { BaseChartProps, createChart } from './BaseChart';\n\nexport interface PieChartProps\n extends Omit<BaseChartProps, 'spec' | 'container' | 'type' | 'data'>,\n Omit<IPieChartSpec, 'type'> {}\n\nexport const PieChart = createChart<React.PropsWithChildren<PieChartProps> & { type: 'pie' }>(\n 'PieChart',\n {\n type: 'pie',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [registerPieChart, registerLabel]\n);\n"]}
1
+ {"version":3,"sources":["../src/charts/PieChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC3E,OAAO,EAAkB,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,yBAAyB,EAAE,MAAM,YAAY,CAAC;AAMvD,MAAM,CAAC,MAAM,QAAQ,GAAG,WAAW,CACjC,UAAU,EACV;IACE,IAAI,EAAE,KAAK;IACX,kBAAkB,EAAE,MAA4B;CACjD,EACD,CAAC,gBAAgB,EAAE,aAAa,EAAE,GAAG,yBAAyB,CAAC,CAChE,CAAC","file":"PieChart.js","sourcesContent":["import React from 'react';\nimport type { IPieChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerPieChart, registerLabel } from '@visactor/vchart';\nimport { BaseChartProps, createChart } from './BaseChart';\nimport { simpleComponentsRegisters } from './register';\n\nexport interface PieChartProps\n extends Omit<BaseChartProps, 'spec' | 'container' | 'type' | 'data'>,\n Omit<IPieChartSpec, 'type'> {}\n\nexport const PieChart = createChart<React.PropsWithChildren<PieChartProps> & { type: 'pie' }>(\n 'PieChart',\n {\n type: 'pie',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [registerPieChart, registerLabel, ...simpleComponentsRegisters]\n);\n"]}
@@ -1,9 +1,11 @@
1
- import { VChart, registerRadarChart, registerPolarLinearAxis, registerPolarBandAxis, registerPolarCrossHair, registerLabel } from "@visactor/vchart";
1
+ import { VChart, registerRadarChart, registerLabel } from "@visactor/vchart";
2
2
 
3
3
  import { createChart } from "./BaseChart";
4
4
 
5
+ import { polarComponentsRegisters } from "./register";
6
+
5
7
  export const RadarChart = createChart("RadarChart", {
6
8
  type: "radar",
7
9
  vchartConstrouctor: VChart
8
- }, [ registerRadarChart, registerPolarLinearAxis, registerPolarBandAxis, registerPolarCrossHair, registerLabel ]);
10
+ }, [ registerRadarChart, registerLabel, ...polarComponentsRegisters ]);
9
11
  //# sourceMappingURL=RadarChart.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/charts/RadarChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,MAAM,EACN,kBAAkB,EAClB,uBAAuB,EACvB,qBAAqB,EACrB,sBAAsB,EACtB,aAAa,EACd,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAkB,WAAW,EAAE,MAAM,aAAa,CAAC;AAM1D,MAAM,CAAC,MAAM,UAAU,GAAG,WAAW,CACnC,YAAY,EACZ;IACE,IAAI,EAAE,OAAO;IACb,kBAAkB,EAAE,MAA4B;CACjD,EACD;IACE,kBAAkB;IAClB,uBAAuB;IACvB,qBAAqB;IACrB,sBAAsB;IACtB,aAAa;CACd,CACF,CAAC","file":"RadarChart.js","sourcesContent":["import React from 'react';\nimport type { IRadarChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport {\n VChart,\n registerRadarChart,\n registerPolarLinearAxis, // 必选\n registerPolarBandAxis, // 必选\n registerPolarCrossHair,\n registerLabel\n} from '@visactor/vchart';\nimport { BaseChartProps, createChart } from './BaseChart';\n\nexport interface RadarChartProps\n extends Omit<BaseChartProps, 'spec' | 'container' | 'type' | 'data'>,\n Omit<IRadarChartSpec, 'type'> {}\n\nexport const RadarChart = createChart<React.PropsWithChildren<RadarChartProps> & { type: 'radar' }>(\n 'RadarChart',\n {\n type: 'radar',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [\n registerRadarChart,\n registerPolarLinearAxis, // 必选\n registerPolarBandAxis, // 必选\n registerPolarCrossHair,\n registerLabel\n ]\n);\n"]}
1
+ {"version":3,"sources":["../src/charts/RadarChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC7E,OAAO,EAAkB,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAMtD,MAAM,CAAC,MAAM,UAAU,GAAG,WAAW,CACnC,YAAY,EACZ;IACE,IAAI,EAAE,OAAO;IACb,kBAAkB,EAAE,MAA4B;CACjD,EACD,CAAC,kBAAkB,EAAE,aAAa,EAAE,GAAG,wBAAwB,CAAC,CACjE,CAAC","file":"RadarChart.js","sourcesContent":["import React from 'react';\nimport type { IRadarChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerRadarChart, registerLabel } from '@visactor/vchart';\nimport { BaseChartProps, createChart } from './BaseChart';\nimport { polarComponentsRegisters } from './register';\n\nexport interface RadarChartProps\n extends Omit<BaseChartProps, 'spec' | 'container' | 'type' | 'data'>,\n Omit<IRadarChartSpec, 'type'> {}\n\nexport const RadarChart = createChart<React.PropsWithChildren<RadarChartProps> & { type: 'radar' }>(\n 'RadarChart',\n {\n type: 'radar',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [registerRadarChart, registerLabel, ...polarComponentsRegisters]\n);\n"]}
@@ -1,9 +1,11 @@
1
- import { VChart, registerRangeColumn3dChart, registerCartesianLinearAxis, registerCartesianBandAxis, registerCartesianTimeAxis, registerCartesianLogAxis, registerCartesianCrossHair, registerScrollBar, registerLabel } from "@visactor/vchart";
1
+ import { VChart, registerRangeColumn3dChart, registerLabel } from "@visactor/vchart";
2
2
 
3
3
  import { createChart } from "./BaseChart";
4
4
 
5
+ import { cartesianComponentsRegisters } from "./register";
6
+
5
7
  export const RangeColumn3dChart = createChart("RangeColumn3dChart", {
6
8
  type: "rangeColumn3d",
7
9
  vchartConstrouctor: VChart
8
- }, [ registerRangeColumn3dChart, registerCartesianLinearAxis, registerCartesianBandAxis, registerCartesianTimeAxis, registerCartesianLogAxis, registerCartesianCrossHair, registerScrollBar, registerLabel ]);
10
+ }, [ registerRangeColumn3dChart, registerLabel, ...cartesianComponentsRegisters ]);
9
11
  //# sourceMappingURL=RangeColumn3dChart.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/charts/RangeColumn3dChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,MAAM,EACN,0BAA0B,EAC1B,2BAA2B,EAC3B,yBAAyB,EACzB,yBAAyB,EACzB,wBAAwB,EACxB,0BAA0B,EAC1B,iBAAiB,EACjB,aAAa,EACd,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAkB,WAAW,EAAE,MAAM,aAAa,CAAC;AAM1D,MAAM,CAAC,MAAM,kBAAkB,GAAG,WAAW,CAG3C,oBAAoB,EACpB;IACE,IAAI,EAAE,eAAe;IACrB,kBAAkB,EAAE,MAA4B;CACjD,EACD;IACE,0BAA0B;IAC1B,2BAA2B;IAC3B,yBAAyB;IACzB,yBAAyB;IACzB,wBAAwB;IACxB,0BAA0B;IAC1B,iBAAiB;IACjB,aAAa;CACd,CACF,CAAC","file":"RangeColumn3dChart.js","sourcesContent":["import React from 'react';\nimport type { IRangeColumn3dChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport {\n VChart,\n registerRangeColumn3dChart,\n registerCartesianLinearAxis,\n registerCartesianBandAxis,\n registerCartesianTimeAxis, // 非必选\n registerCartesianLogAxis, // 非必选\n registerCartesianCrossHair,\n registerScrollBar,\n registerLabel\n} from '@visactor/vchart';\nimport { BaseChartProps, createChart } from './BaseChart';\n\nexport interface RangeColumn3dChartProps\n extends Omit<BaseChartProps, 'spec' | 'container' | 'type' | 'data'>,\n Omit<IRangeColumn3dChartSpec, 'type'> {}\n\nexport const RangeColumn3dChart = createChart<\n React.PropsWithChildren<RangeColumn3dChartProps> & { type: 'rangeColumn3d' }\n>(\n 'RangeColumn3dChart',\n {\n type: 'rangeColumn3d',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [\n registerRangeColumn3dChart,\n registerCartesianLinearAxis,\n registerCartesianBandAxis,\n registerCartesianTimeAxis, // 非必选\n registerCartesianLogAxis, // 非必选\n registerCartesianCrossHair,\n registerScrollBar,\n registerLabel\n ]\n);\n"]}
1
+ {"version":3,"sources":["../src/charts/RangeColumn3dChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,0BAA0B,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACrF,OAAO,EAAkB,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,4BAA4B,EAAE,MAAM,YAAY,CAAC;AAM1D,MAAM,CAAC,MAAM,kBAAkB,GAAG,WAAW,CAG3C,oBAAoB,EACpB;IACE,IAAI,EAAE,eAAe;IACrB,kBAAkB,EAAE,MAA4B;CACjD,EACD,CAAC,0BAA0B,EAAE,aAAa,EAAE,GAAG,4BAA4B,CAAC,CAC7E,CAAC","file":"RangeColumn3dChart.js","sourcesContent":["import React from 'react';\nimport type { IRangeColumn3dChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerRangeColumn3dChart, registerLabel } from '@visactor/vchart';\nimport { BaseChartProps, createChart } from './BaseChart';\nimport { cartesianComponentsRegisters } from './register';\n\nexport interface RangeColumn3dChartProps\n extends Omit<BaseChartProps, 'spec' | 'container' | 'type' | 'data'>,\n Omit<IRangeColumn3dChartSpec, 'type'> {}\n\nexport const RangeColumn3dChart = createChart<\n React.PropsWithChildren<RangeColumn3dChartProps> & { type: 'rangeColumn3d' }\n>(\n 'RangeColumn3dChart',\n {\n type: 'rangeColumn3d',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [registerRangeColumn3dChart, registerLabel, ...cartesianComponentsRegisters]\n);\n"]}
@@ -1,9 +1,11 @@
1
- import { VChart, registerRangeColumnChart, registerCartesianLinearAxis, registerCartesianBandAxis, registerCartesianTimeAxis, registerCartesianLogAxis, registerCartesianCrossHair, registerScrollBar, registerLabel } from "@visactor/vchart";
1
+ import { VChart, registerRangeColumnChart, registerLabel } from "@visactor/vchart";
2
2
 
3
3
  import { createChart } from "./BaseChart";
4
4
 
5
+ import { cartesianComponentsRegisters } from "./register";
6
+
5
7
  export const RangeColumnChart = createChart("RangeColumnChart", {
6
8
  type: "rangeColumn",
7
9
  vchartConstrouctor: VChart
8
- }, [ registerRangeColumnChart, registerCartesianLinearAxis, registerCartesianBandAxis, registerCartesianTimeAxis, registerCartesianLogAxis, registerCartesianCrossHair, registerScrollBar, registerLabel ]);
10
+ }, [ registerRangeColumnChart, registerLabel, ...cartesianComponentsRegisters ]);
9
11
  //# sourceMappingURL=RangeColumnChart.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/charts/RangeColumnChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,MAAM,EACN,wBAAwB,EACxB,2BAA2B,EAC3B,yBAAyB,EACzB,yBAAyB,EACzB,wBAAwB,EACxB,0BAA0B,EAC1B,iBAAiB,EACjB,aAAa,EACd,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAkB,WAAW,EAAE,MAAM,aAAa,CAAC;AAM1D,MAAM,CAAC,MAAM,gBAAgB,GAAG,WAAW,CACzC,kBAAkB,EAClB;IACE,IAAI,EAAE,aAAa;IACnB,kBAAkB,EAAE,MAA4B;CACjD,EACD;IACE,wBAAwB;IACxB,2BAA2B;IAC3B,yBAAyB;IACzB,yBAAyB;IACzB,wBAAwB;IACxB,0BAA0B;IAC1B,iBAAiB;IACjB,aAAa;CACd,CACF,CAAC","file":"RangeColumnChart.js","sourcesContent":["import React from 'react';\nimport type { IRangeColumnChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport {\n VChart,\n registerRangeColumnChart,\n registerCartesianLinearAxis,\n registerCartesianBandAxis,\n registerCartesianTimeAxis, // 非必选\n registerCartesianLogAxis, // 非必选\n registerCartesianCrossHair,\n registerScrollBar,\n registerLabel\n} from '@visactor/vchart';\nimport { BaseChartProps, createChart } from './BaseChart';\n\nexport interface RangeColumnChartProps\n extends Omit<BaseChartProps, 'spec' | 'container' | 'type' | 'data'>,\n Omit<IRangeColumnChartSpec, 'type'> {}\n\nexport const RangeColumnChart = createChart<React.PropsWithChildren<RangeColumnChartProps> & { type: 'rangeColumn' }>(\n 'RangeColumnChart',\n {\n type: 'rangeColumn',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [\n registerRangeColumnChart,\n registerCartesianLinearAxis,\n registerCartesianBandAxis,\n registerCartesianTimeAxis, // 非必选\n registerCartesianLogAxis, // 非必选\n registerCartesianCrossHair,\n registerScrollBar,\n registerLabel\n ]\n);\n"]}
1
+ {"version":3,"sources":["../src/charts/RangeColumnChart.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,wBAAwB,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACnF,OAAO,EAAkB,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,4BAA4B,EAAE,MAAM,YAAY,CAAC;AAM1D,MAAM,CAAC,MAAM,gBAAgB,GAAG,WAAW,CACzC,kBAAkB,EAClB;IACE,IAAI,EAAE,aAAa;IACnB,kBAAkB,EAAE,MAA4B;CACjD,EACD,CAAC,wBAAwB,EAAE,aAAa,EAAE,GAAG,4BAA4B,CAAC,CAC3E,CAAC","file":"RangeColumnChart.js","sourcesContent":["import React from 'react';\nimport type { IRangeColumnChartSpec, IVChartConstructor } from '@visactor/vchart';\nimport { VChart, registerRangeColumnChart, registerLabel } from '@visactor/vchart';\nimport { BaseChartProps, createChart } from './BaseChart';\nimport { cartesianComponentsRegisters } from './register';\n\nexport interface RangeColumnChartProps\n extends Omit<BaseChartProps, 'spec' | 'container' | 'type' | 'data'>,\n Omit<IRangeColumnChartSpec, 'type'> {}\n\nexport const RangeColumnChart = createChart<React.PropsWithChildren<RangeColumnChartProps> & { type: 'rangeColumn' }>(\n 'RangeColumnChart',\n {\n type: 'rangeColumn',\n vchartConstrouctor: VChart as IVChartConstructor\n },\n [registerRangeColumnChart, registerLabel, ...cartesianComponentsRegisters]\n);\n"]}
@@ -1,9 +1,11 @@
1
- import { VChart, registerRoseChart, registerPolarLinearAxis, registerPolarBandAxis, registerPolarCrossHair, registerLabel } from "@visactor/vchart";
1
+ import { VChart, registerRoseChart, registerLabel } from "@visactor/vchart";
2
2
 
3
3
  import { createChart } from "./BaseChart";
4
4
 
5
+ import { polarComponentsRegisters } from "./register";
6
+
5
7
  export const RoseChart = createChart("RoseChart", {
6
8
  type: "rose",
7
9
  vchartConstrouctor: VChart
8
- }, [ registerRoseChart, registerPolarLinearAxis, registerPolarBandAxis, registerPolarCrossHair, registerLabel ]);
10
+ }, [ registerRoseChart, registerLabel, ...polarComponentsRegisters ]);
9
11
  //# sourceMappingURL=RoseChart.js.map