@visactor/react-vchart 1.13.11-alpha.0 → 1.13.11-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/components/tooltip/BaseTooltip.d.ts +13 -0
- package/cjs/components/tooltip/BaseTooltip.js +36 -0
- package/cjs/components/tooltip/BaseTooltip.js.map +1 -0
- package/cjs/components/tooltip/CanvasTooltip.d.ts +1 -1
- package/cjs/components/tooltip/CanvasTooltip.js +2 -2
- package/cjs/components/tooltip/CanvasTooltip.js.map +1 -1
- package/cjs/components/tooltip/Tooltip.d.ts +1 -1
- package/cjs/components/tooltip/Tooltip.js +2 -2
- package/cjs/components/tooltip/Tooltip.js.map +1 -1
- package/cjs/components/tooltip/util.d.ts +2 -2
- package/cjs/components/tooltip/util.js +3 -7
- package/cjs/components/tooltip/util.js.map +1 -1
- package/cjs/containers/withContainer.d.ts +1 -0
- package/cjs/containers/withContainer.js +4 -3
- package/cjs/containers/withContainer.js.map +1 -1
- package/cjs/index.d.ts +2 -1
- package/cjs/index.js +3 -2
- package/cjs/index.js.map +1 -1
- package/cjs/register.d.ts +2 -0
- package/cjs/register.js +355 -0
- package/cjs/register.js.map +1 -0
- package/esm/components/tooltip/BaseTooltip.d.ts +13 -0
- package/esm/components/tooltip/BaseTooltip.js +27 -0
- package/esm/components/tooltip/BaseTooltip.js.map +1 -0
- package/esm/components/tooltip/CanvasTooltip.d.ts +1 -1
- package/esm/components/tooltip/CanvasTooltip.js +2 -2
- package/esm/components/tooltip/CanvasTooltip.js.map +1 -1
- package/esm/components/tooltip/Tooltip.d.ts +1 -1
- package/esm/components/tooltip/Tooltip.js +2 -2
- package/esm/components/tooltip/Tooltip.js.map +1 -1
- package/esm/components/tooltip/util.d.ts +2 -2
- package/esm/components/tooltip/util.js +2 -7
- package/esm/components/tooltip/util.js.map +1 -1
- package/esm/containers/withContainer.d.ts +1 -0
- package/esm/containers/withContainer.js +4 -3
- package/esm/containers/withContainer.js.map +1 -1
- package/esm/index.d.ts +2 -1
- package/esm/index.js +3 -1
- package/esm/index.js.map +1 -1
- package/esm/register.d.ts +2 -0
- package/esm/register.js +4 -0
- package/esm/register.js.map +1 -0
- package/package.json +5 -5
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { TooltipRender } from './interface';
|
|
3
|
+
export interface BaseTooltipProps {
|
|
4
|
+
id?: string | number;
|
|
5
|
+
tooltipRender?: TooltipRender;
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
type TooltipProps = BaseTooltipProps & {
|
|
9
|
+
updateId?: number;
|
|
10
|
+
componentId?: number;
|
|
11
|
+
};
|
|
12
|
+
export declare const createTooltip: <T extends TooltipProps>(componentName: string, specName: string, registers?: (() => void)[]) => React.FC<T>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
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.createTooltip = void 0;
|
|
12
|
+
|
|
13
|
+
const react_1 = __importDefault(require("react")), vutils_1 = require("@visactor/vutils"), vchart_1 = require("@visactor/vchart"), createTooltip = (componentName, specName, registers) => {
|
|
14
|
+
registers && registers.length && vchart_1.VChart.useRegisters(registers);
|
|
15
|
+
const ignoreKeys = [ "updateId", "componentId", "children" ], Comp = props => {
|
|
16
|
+
const updateId = react_1.default.useRef(props.updateId);
|
|
17
|
+
return props.updateId !== updateId.current && (updateId.current = props.updateId),
|
|
18
|
+
null;
|
|
19
|
+
};
|
|
20
|
+
return Comp.displayName = componentName, Comp.parseSpec = props => {
|
|
21
|
+
const newTooltipSpec = (0, vutils_1.pickWithout)(props, ignoreKeys);
|
|
22
|
+
return !props.tooltipRender && props.children && (newTooltipSpec.tooltipRender = (tooltipElement, actualTooltip, params) => react_1.default.Children.map(props.children, (child => (0,
|
|
23
|
+
vutils_1.isObject)(child) ? react_1.default.cloneElement(child, {
|
|
24
|
+
tooltipElement: tooltipElement,
|
|
25
|
+
actualTooltip: actualTooltip,
|
|
26
|
+
params: params
|
|
27
|
+
}) : child))), {
|
|
28
|
+
spec: newTooltipSpec,
|
|
29
|
+
specName: specName,
|
|
30
|
+
isSingle: !0
|
|
31
|
+
};
|
|
32
|
+
}, Comp;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
exports.createTooltip = createTooltip;
|
|
36
|
+
//# sourceMappingURL=BaseTooltip.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/tooltip/BaseTooltip.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAC1B,6CAAyD;AACzD,6CAA0C;AAWnC,MAAM,aAAa,GAAG,CAC3B,aAAqB,EACrB,QAAgB,EAChB,SAA0B,EAC1B,EAAE;IACF,IAAI,SAAS,IAAI,SAAS,CAAC,MAAM,EAAE;QACjC,eAAM,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;KAChC;IAGD,MAAM,UAAU,GAAG,CAAC,UAAU,EAAE,aAAa,EAAE,UAAU,CAAC,CAAC;IAE3D,MAAM,IAAI,GAAgB,CAAC,KAAQ,EAAE,EAAE;QACrC,MAAM,QAAQ,GAAG,eAAK,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;SACnC;QAED,OAAO,IAAI,CAAC;IACd,CAAC,CAAC;IAEF,IAAI,CAAC,WAAW,GAAG,aAAa,CAAC;IAChC,IAAY,CAAC,SAAS,GAAG,CAAC,KAAsD,EAAE,EAAE;QACnF,MAAM,cAAc,GAAe,IAAA,oBAAW,EAAI,KAAK,EAAE,UAAU,CAAC,CAAC;QAErE,IAAI,CAAC,KAAK,CAAC,aAAa,IAAI,KAAK,CAAC,QAAQ,EAAE;YAC1C,cAAc,CAAC,aAAa,GAAG,CAAC,cAAc,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,CACvE,eAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,CAAC,EAAE,CACzC,IAAA,iBAAQ,EAAC,KAAK,CAAC;gBACb,CAAC,CAAC,eAAK,CAAC,YAAY,CAAC,KAAkE,EAAE;oBACrF,cAAc;oBACd,aAAa;oBACb,MAAM;iBACP,CAAC;gBACJ,CAAC,CAAC,KAAK,CACV,CAAC;SACL;QAED,OAAO;YACL,IAAI,EAAE,cAAc;YACpB,QAAQ;YACR,QAAQ,EAAE,IAAI;SACf,CAAC;IACJ,CAAC,CAAC;IAEF,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AA/CW,QAAA,aAAa,iBA+CxB","file":"BaseTooltip.js","sourcesContent":["import React from 'react';\nimport { isObject, pickWithout } from '@visactor/vutils';\nimport { VChart } from '@visactor/vchart';\nimport type { TooltipRender } from './interface';\n\nexport interface BaseTooltipProps {\n id?: string | number;\n tooltipRender?: TooltipRender;\n children?: React.ReactNode;\n}\n\ntype TooltipProps = BaseTooltipProps & { updateId?: number; componentId?: number };\n\nexport const createTooltip = <T extends TooltipProps>(\n componentName: string,\n specName: string,\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\n const Comp: React.FC<T> = (props: T) => {\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\n return null;\n };\n\n Comp.displayName = componentName;\n (Comp as any).parseSpec = (props: T & { updateId?: number; componentId?: string }) => {\n const newTooltipSpec: Partial<T> = pickWithout<T>(props, ignoreKeys);\n\n if (!props.tooltipRender && props.children) {\n newTooltipSpec.tooltipRender = (tooltipElement, actualTooltip, params) =>\n React.Children.map(props.children, child =>\n isObject(child)\n ? React.cloneElement(child as React.ReactElement<any, React.JSXElementConstructor<any>>, {\n tooltipElement,\n actualTooltip,\n params\n })\n : child\n );\n }\n\n return {\n spec: newTooltipSpec,\n specName,\n isSingle: true\n };\n };\n\n return Comp;\n};\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TooltipProps } from './interface';
|
|
1
|
+
import type { TooltipProps } from './interface';
|
|
2
2
|
export declare const CanvasTooltip: import("react").FC<TooltipProps>;
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: !0
|
|
5
5
|
}), exports.CanvasTooltip = void 0;
|
|
6
6
|
|
|
7
|
-
const
|
|
7
|
+
const BaseTooltip_1 = require("./BaseTooltip"), vchart_1 = require("@visactor/vchart");
|
|
8
8
|
|
|
9
|
-
exports.CanvasTooltip = (0,
|
|
9
|
+
exports.CanvasTooltip = (0, BaseTooltip_1.createTooltip)("CanvasTooltip", "tooltip", [ vchart_1.registerTooltip, vchart_1.registerCanvasTooltipHandler ]);
|
|
10
10
|
//# sourceMappingURL=CanvasTooltip.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/tooltip/CanvasTooltip.tsx"],"names":[],"mappings":";;;AAAA
|
|
1
|
+
{"version":3,"sources":["../src/components/tooltip/CanvasTooltip.tsx"],"names":[],"mappings":";;;AAAA,+CAA8C;AAE9C,6CAAiF;AAEpE,QAAA,aAAa,GAAG,IAAA,2BAAa,EAAe,eAAe,EAAE,SAAS,EAAE;IACnF,wBAAe;IACf,qCAA4B;CAC7B,CAAC,CAAC","file":"CanvasTooltip.js","sourcesContent":["import { createTooltip } from './BaseTooltip';\nimport type { TooltipProps } from './interface';\nimport { registerTooltip, registerCanvasTooltipHandler } from '@visactor/vchart';\n\nexport const CanvasTooltip = createTooltip<TooltipProps>('CanvasTooltip', 'tooltip', [\n registerTooltip,\n registerCanvasTooltipHandler\n]);\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TooltipProps } from './interface';
|
|
1
|
+
import type { TooltipProps } from './interface';
|
|
2
2
|
export declare const Tooltip: import("react").FC<TooltipProps>;
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: !0
|
|
5
5
|
}), exports.Tooltip = void 0;
|
|
6
6
|
|
|
7
|
-
const
|
|
7
|
+
const BaseTooltip_1 = require("./BaseTooltip"), vchart_1 = require("@visactor/vchart");
|
|
8
8
|
|
|
9
|
-
exports.Tooltip = (0,
|
|
9
|
+
exports.Tooltip = (0, BaseTooltip_1.createTooltip)("Tooltip", "tooltip", [ vchart_1.registerTooltip, vchart_1.registerDomTooltipHandler ]);
|
|
10
10
|
//# sourceMappingURL=Tooltip.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/tooltip/Tooltip.tsx"],"names":[],"mappings":";;;AAAA
|
|
1
|
+
{"version":3,"sources":["../src/components/tooltip/Tooltip.tsx"],"names":[],"mappings":";;;AAAA,+CAA8C;AAE9C,6CAA8E;AAEjE,QAAA,OAAO,GAAG,IAAA,2BAAa,EAAe,SAAS,EAAE,SAAS,EAAE,CAAC,wBAAe,EAAE,kCAAyB,CAAC,CAAC,CAAC","file":"Tooltip.js","sourcesContent":["import { createTooltip } from './BaseTooltip';\nimport type { TooltipProps } from './interface';\nimport { registerTooltip, registerDomTooltipHandler } from '@visactor/vchart';\n\nexport const Tooltip = createTooltip<TooltipProps>('Tooltip', 'tooltip', [registerTooltip, registerDomTooltipHandler]);\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { BaseChartProps } from '../../charts/BaseChart';
|
|
3
|
-
import { TooltipProps } from './interface';
|
|
4
|
-
import { ITooltipSpec } from '@visactor/vchart';
|
|
3
|
+
import type { TooltipProps } from './interface';
|
|
4
|
+
import type { ITooltipSpec } from '@visactor/vchart';
|
|
5
5
|
export declare const initCustomTooltip: (setTooltipNode: React.Dispatch<React.SetStateAction<React.ReactNode>>, props: BaseChartProps, spec?: TooltipProps) => ITooltipSpec;
|
|
@@ -10,15 +10,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
10
10
|
value: !0
|
|
11
11
|
}), exports.initCustomTooltip = void 0;
|
|
12
12
|
|
|
13
|
-
const react_1 = __importDefault(require("react")),
|
|
13
|
+
const react_1 = __importDefault(require("react")), constant_1 = require("./constant"), react_dom_1 = require("react-dom"), initCustomTooltip = (setTooltipNode, props, spec) => {
|
|
14
14
|
let render;
|
|
15
15
|
if ((null == spec ? void 0 : spec.tooltipRender) ? (render = spec.tooltipRender,
|
|
16
|
-
delete spec.tooltipRender) :
|
|
17
|
-
|
|
18
|
-
tooltipElement: tooltipElement,
|
|
19
|
-
actualTooltip: actualTooltip,
|
|
20
|
-
params: params
|
|
21
|
-
}) : child)) : props.tooltipRender && (render = props.tooltipRender), render) {
|
|
16
|
+
delete spec.tooltipRender) : props.tooltipRender && (render = props.tooltipRender),
|
|
17
|
+
render) {
|
|
22
18
|
let reserve;
|
|
23
19
|
return (null == spec ? void 0 : spec.reserveDefaultTooltip) ? (reserve = spec.reserveDefaultTooltip,
|
|
24
20
|
delete spec.reserveDefaultTooltip) : reserve = props.reserveDefaultTooltip, Object.assign(Object.assign({}, spec), {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/tooltip/util.tsx"],"names":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"sources":["../src/components/tooltip/util.tsx"],"names":[],"mappings":";;;;;;AACA,kDAA0B;AAI1B,yCAAsD;AACtD,yCAAyC;AAGlC,MAAM,iBAAiB,GAAG,CAC/B,cAAqE,EACrE,KAAqB,EACrB,IAAmB,EACnB,EAAE;IACF,IAAI,MAAqB,CAAC;IAC1B,IAAI,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,aAAa,EAAE;QACvB,MAAM,GAAG,IAAI,CAAC,aAAa,CAAC;QAC5B,OAAO,IAAI,CAAC,aAAa,CAAC;KAC3B;SAAM,IAAI,KAAK,CAAC,aAAa,EAAE;QAC9B,MAAM,GAAG,KAAK,CAAC,aAAa,CAAC;KAC9B;IAED,IAAI,MAAM,EAAE;QACV,IAAI,OAAgB,CAAC;QACrB,IAAI,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,qBAAqB,EAAE;YAC/B,OAAO,GAAG,IAAI,CAAC,qBAAqB,CAAC;YACrC,OAAO,IAAI,CAAC,qBAAqB,CAAC;SACnC;aAAM;YACL,OAAO,GAAG,KAAK,CAAC,qBAAqB,CAAC;SACvC;QACD,OAAO,gCACF,IAAI,KACP,aAAa,EAAE,CAAC,EAAE,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE;gBAC3C,MAAM,EAAE,kBAAkB,EAAE,GAAG,MAAM,CAAC;gBACtC,IAAI,kBAAkB,EAAE;oBACtB,OAAO;iBACR;gBACD,IAAI,CAAC,OAAO,EAAE;oBACZ,EAAE,CAAC,KAAK,CAAC,KAAK,GAAG,MAAM,CAAC;oBACxB,EAAE,CAAC,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC;oBACzB,EAAE,CAAC,KAAK,CAAC,SAAS,GAAG,MAAM,CAAC;oBAC5B,EAAE,CAAC,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC;oBACzB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;wBAC3C,MAAM,SAAS,GAAG,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAgB,CAAC;wBAChD,IAAI,SAAS,CAAC,SAAS,KAAK,mCAAwB,IAAI,SAAS,CAAC,KAAK,CAAC,OAAO,KAAK,MAAM,EAAE;4BAC1F,SAAS,CAAC,KAAK,CAAC,OAAO,GAAG,MAAM,CAAC;yBAClC;qBACF;iBACF;gBAED,cAAc,CACZ,IAAA,wBAAY,EAAC,uCAAK,SAAS,EAAE,mCAAwB,IAAG,MAAM,CAAC,EAAE,EAAE,aAAa,EAAE,MAAM,CAAC,CAAO,EAAE,EAAE,CAAC,CACtG,CAAC;YACJ,CAAC,GACc,CAAC;KACnB;IAED,OAAO,IAAoB,CAAC;AAC9B,CAAC,CAAC;AAjDW,QAAA,iBAAiB,qBAiD5B","file":"util.js","sourcesContent":["// eslint-disable-next-line @typescript-eslint/consistent-type-imports\nimport React from 'react';\nimport type { BaseChartProps } from '../../charts/BaseChart';\nimport type { TooltipProps, TooltipRender } from './interface';\nimport type { ITooltipSpec } from '@visactor/vchart';\nimport { REACT_TOOLTIP_ClASS_NAME } from './constant';\nimport { createPortal } from 'react-dom';\n\n/** tooltip 自定义插槽 */\nexport const initCustomTooltip = (\n setTooltipNode: React.Dispatch<React.SetStateAction<React.ReactNode>>,\n props: BaseChartProps,\n spec?: TooltipProps\n) => {\n let render: TooltipRender;\n if (spec?.tooltipRender) {\n render = spec.tooltipRender;\n delete spec.tooltipRender;\n } else if (props.tooltipRender) {\n render = props.tooltipRender;\n }\n\n if (render) {\n let reserve: boolean;\n if (spec?.reserveDefaultTooltip) {\n reserve = spec.reserveDefaultTooltip;\n delete spec.reserveDefaultTooltip;\n } else {\n reserve = props.reserveDefaultTooltip;\n }\n return {\n ...spec,\n updateElement: (el, actualTooltip, params) => {\n const { changePositionOnly } = params;\n if (changePositionOnly) {\n return;\n }\n if (!reserve) {\n el.style.width = 'auto';\n el.style.height = 'auto';\n el.style.minHeight = 'auto';\n el.style.padding = '0px';\n for (let i = 0; i < el.children.length; i++) {\n const childNode = el.children[i] as HTMLElement;\n if (childNode.className !== REACT_TOOLTIP_ClASS_NAME && childNode.style.display !== 'none') {\n childNode.style.display = 'none';\n }\n }\n }\n\n setTooltipNode(\n createPortal(<div className={REACT_TOOLTIP_ClASS_NAME}>{render(el, actualTooltip, params)}</div>, el)\n );\n }\n } as ITooltipSpec;\n }\n\n return spec as ITooltipSpec;\n};\n"]}
|
|
@@ -4,5 +4,6 @@ export interface ContainerProps {
|
|
|
4
4
|
className?: string;
|
|
5
5
|
width?: number | string;
|
|
6
6
|
height?: number | string;
|
|
7
|
+
id?: string;
|
|
7
8
|
}
|
|
8
9
|
export default function withContainer<Props extends ContainerProps, CompProps>(Comp: any, name?: string, getProps?: (props: any) => CompProps): React.ForwardRefExoticComponent<React.PropsWithoutRef<CompProps & Props> & React.RefAttributes<any>>;
|
|
@@ -41,16 +41,17 @@ const react_1 = __importStar(require("react"));
|
|
|
41
41
|
|
|
42
42
|
function withContainer(Comp, name = "ChartContainer", getProps) {
|
|
43
43
|
const Cls = react_1.default.forwardRef(((props, ref) => {
|
|
44
|
-
const container = (0, react_1.useRef)(), [inited, setInited] = (0, react_1.useState)(!1), {className: className, style: style, width: width} = props, options = __rest(props, [ "className", "style", "width" ]);
|
|
44
|
+
const container = (0, react_1.useRef)(), [inited, setInited] = (0, react_1.useState)(!1), {className: className, style: style, width: width, height: height, id: id} = props, options = __rest(props, [ "className", "style", "width", "height", "id" ]);
|
|
45
45
|
return (0, react_1.useLayoutEffect)((() => {
|
|
46
46
|
setInited(!0);
|
|
47
47
|
}), []), react_1.default.createElement("div", {
|
|
48
48
|
ref: container,
|
|
49
|
+
id: id,
|
|
49
50
|
className: className,
|
|
50
51
|
style: Object.assign({
|
|
51
52
|
position: "relative",
|
|
52
|
-
height:
|
|
53
|
-
width:
|
|
53
|
+
height: height || "100%",
|
|
54
|
+
width: width || "100%"
|
|
54
55
|
}, style)
|
|
55
56
|
}, inited ? react_1.default.createElement(Comp, Object.assign({
|
|
56
57
|
ref: ref,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/containers/withContainer.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAiE;
|
|
1
|
+
{"version":3,"sources":["../src/containers/withContainer.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAiE;AAUjE,SAAwB,aAAa,CACnC,IAAS,EACT,IAAI,GAAG,gBAAgB,EACvB,QAAoC;IAEpC,MAAM,GAAG,GAAG,eAAK,CAAC,UAAU,CAAyB,CAAC,KAAwB,EAAE,GAAG,EAAE,EAAE;QACrF,MAAM,SAAS,GAAG,IAAA,cAAM,GAAE,CAAC;QAC3B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,CAAC;QAC5C,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,KAAiB,KAAK,EAAjB,OAAO,UAAK,KAAK,EAA3D,+CAAmD,CAAQ,CAAC;QAElE,IAAA,uBAAe,EAAC,GAAG,EAAE;YACnB,SAAS,CAAC,IAAI,CAAC,CAAC;QAClB,CAAC,EAAE,EAAE,CAAC,CAAC;QAEP,OAAO,CACL,uCACE,GAAG,EAAE,SAAS,EACd,EAAE,EAAE,EAAE,EACN,SAAS,EAAE,SAAS,EACpB,KAAK,kBACH,QAAQ,EAAE,UAAU,EACpB,MAAM,EAAE,MAAM,IAAI,MAAM,EACxB,KAAK,EAAE,KAAK,IAAI,MAAM,IACnB,KAAK,KAGT,MAAM,CAAC,CAAC,CAAC,CACR,8BAAC,IAAI,kBAAC,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,SAAS,CAAC,OAAO,IAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAE,OAAqB,CAAC,EAAI,CAC9G,CAAC,CAAC,CAAC,CACF,6DAAK,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;AApCD,gCAoCC","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 id?: string;\n}\n\nexport default function withContainer<Props extends ContainerProps, CompProps>(\n Comp: any,\n name = 'ChartContainer',\n getProps?: (props: any) => CompProps\n) {\n const Cls = React.forwardRef<any, CompProps & Props>((props: CompProps & Props, ref) => {\n const container = useRef();\n const [inited, setInited] = useState(false);\n const { className, style, width, height, id, ...options } = props;\n\n useLayoutEffect(() => {\n setInited(true);\n }, []);\n\n return (\n <div\n ref={container}\n id={id}\n className={className}\n style={{\n position: 'relative',\n height: height || '100%',\n width: width || '100%',\n ...style\n }}\n >\n {inited ? (\n <Comp ref={ref} container={container.current} {...(getProps ? getProps(options) : (options as CompProps))} />\n ) : (\n <></>\n )}\n </div>\n );\n });\n Cls.displayName = name || Comp.name;\n return Cls;\n}\n"]}
|
package/cjs/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export * from './series';
|
|
|
3
3
|
export * from './components';
|
|
4
4
|
export * from './VChart';
|
|
5
5
|
export * from './VChartSimple';
|
|
6
|
+
export * from './register';
|
|
6
7
|
export { VChart as VChartCore } from '@visactor/vchart';
|
|
7
|
-
export declare const version = "1.13.11-alpha.
|
|
8
|
+
export declare const version = "1.13.11-alpha.2";
|
|
8
9
|
export type { IAreaChartSpec, IBarChartSpec, IBar3dChartSpec, IBoxPlotChartSpec, ICirclePackingChartSpec, ICommonChartSpec, IFunnelChartSpec, IFunnel3dChartSpec, IGaugeChartSpec, IHeatmapChartSpec, IHistogramChartSpec, IHistogram3dChartSpec, ILineChartSpec, IMapChartSpec, IPieChartSpec, IPie3dChartSpec, ICircularProgressChartSpec, ILinearProgressChartSpec, IRadarChartSpec, IRangeColumnChartSpec, IRangeColumn3dChartSpec, IRangeAreaChartSpec, IRoseChartSpec, IScatterChartSpec, ISankeyChartSpec, ISequenceChartSpec, ISunburstChartSpec, ITreemapChartSpec, IWaterfallChartSpec, ICorrelationChartSpec, ILiquidChartSpec, IWordCloud3dChartSpec, IWordCloudChartSpec, IPolarChartSpec, ICartesianChartSpec, ITheme, IInitOption, ISpec, IVChart } from '@visactor/vchart';
|
package/cjs/index.js
CHANGED
|
@@ -19,7 +19,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
19
19
|
value: !0
|
|
20
20
|
}), exports.version = exports.VChartCore = void 0, __exportStar(require("./charts"), exports),
|
|
21
21
|
__exportStar(require("./series"), exports), __exportStar(require("./components"), exports),
|
|
22
|
-
__exportStar(require("./VChart"), exports), __exportStar(require("./VChartSimple"), exports)
|
|
22
|
+
__exportStar(require("./VChart"), exports), __exportStar(require("./VChartSimple"), exports),
|
|
23
|
+
__exportStar(require("./register"), exports);
|
|
23
24
|
|
|
24
25
|
var vchart_1 = require("@visactor/vchart");
|
|
25
26
|
|
|
@@ -28,5 +29,5 @@ Object.defineProperty(exports, "VChartCore", {
|
|
|
28
29
|
get: function() {
|
|
29
30
|
return vchart_1.VChart;
|
|
30
31
|
}
|
|
31
|
-
}), exports.version = "1.13.11-alpha.
|
|
32
|
+
}), exports.version = "1.13.11-alpha.2";
|
|
32
33
|
//# sourceMappingURL=index.js.map
|
package/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,2CAAyB;AACzB,+CAA6B;AAC7B,2CAAyB;AACzB,iDAA+B;AAC/B,2CAAwD;AAA/C,oGAAA,MAAM,OAAc;AAGhB,QAAA,OAAO,GAAG,iBAAiB,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 = \"1.13.11-alpha.
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,2CAAyB;AACzB,+CAA6B;AAC7B,2CAAyB;AACzB,iDAA+B;AAC/B,6CAA2B;AAC3B,2CAAwD;AAA/C,oGAAA,MAAM,OAAc;AAGhB,QAAA,OAAO,GAAG,iBAAiB,CAAC","file":"index.js","sourcesContent":["export * from './charts';\nexport * from './series';\nexport * from './components';\nexport * from './VChart';\nexport * from './VChartSimple';\nexport * from './register';\nexport { VChart as VChartCore } from '@visactor/vchart';\n\n// export the version, since @1.8.3\nexport const version = \"1.13.11-alpha.2\";\n\nexport type {\n IAreaChartSpec,\n IBarChartSpec,\n IBar3dChartSpec,\n IBoxPlotChartSpec,\n ICirclePackingChartSpec,\n ICommonChartSpec,\n IFunnelChartSpec,\n IFunnel3dChartSpec,\n IGaugeChartSpec,\n IHeatmapChartSpec,\n IHistogramChartSpec,\n IHistogram3dChartSpec,\n ILineChartSpec,\n IMapChartSpec,\n IPieChartSpec,\n IPie3dChartSpec,\n ICircularProgressChartSpec,\n ILinearProgressChartSpec,\n IRadarChartSpec,\n IRangeColumnChartSpec,\n IRangeColumn3dChartSpec,\n IRangeAreaChartSpec,\n IRoseChartSpec,\n IScatterChartSpec,\n ISankeyChartSpec,\n ISequenceChartSpec,\n ISunburstChartSpec,\n ITreemapChartSpec,\n IWaterfallChartSpec,\n ICorrelationChartSpec,\n ILiquidChartSpec,\n IWordCloud3dChartSpec,\n IWordCloudChartSpec,\n IPolarChartSpec,\n ICartesianChartSpec,\n ITheme,\n IInitOption,\n ISpec,\n IVChart\n} from '@visactor/vchart';\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { registerBrush, registerScrollBar, registerTitle, registerTooltip, registerCartesianBandAxis, registerCartesianCrossHair, registerCartesianLinearAxis, registerCartesianLogAxis, registerCartesianSymlogAxis, registerCartesianTimeAxis, registerContinuousLegend, registerCustomMark, registerDataZoom, registerDiscreteLegend, registerGeoCoordinate, registerIndicator, registerLabel, registerTotalLabel, registerMapLabel, registerMarkLine, registerMarkArea, registerMarkPoint, registerPolarMarkLine, registerPolarMarkArea, registerPolarMarkPoint, registerGeoMarkPoint, registerPlayer, registerPolarBandAxis, registerPolarCrossHair, registerPolarLinearAxis, registerPoptip } from '@visactor/vchart';
|
|
2
|
+
export { registerLineChart, registerAreaChart, registerBarChart, registerBar3dChart, registerBoxplotChart, registerCirclePackingChart, registerCircularProgressChart, registerCommonChart, registerFunnelChart, registerFunnel3dChart, registerGaugeChart, registerHeatmapChart, registerHistogramChart, registerHistogram3dChart, registerLinearProgressChart, registerMapChart, registerPie3dChart, registerPieChart, registerRadarChart, registerRangeAreaChart, registerRangeColumn3dChart, registerRangeColumnChart, registerRoseChart, registerSankeyChart, registerScatterChart, registerSequenceChart, registerSunburstChart, registerTreemapChart, registerWaterfallChart, registerWordCloud3dChart, registerWordCloudChart, registerCorrelationChart, registerLiquidChart, registerWordCloudShapeChart, registerVennChart, registerMosaicChart, registerPictogramChart } from '@visactor/vchart';
|
package/cjs/register.js
ADDED
|
@@ -0,0 +1,355 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
}), exports.registerRadarChart = exports.registerPieChart = exports.registerPie3dChart = exports.registerMapChart = exports.registerLinearProgressChart = exports.registerHistogram3dChart = exports.registerHistogramChart = exports.registerHeatmapChart = exports.registerGaugeChart = exports.registerFunnel3dChart = exports.registerFunnelChart = exports.registerCommonChart = exports.registerCircularProgressChart = exports.registerCirclePackingChart = exports.registerBoxplotChart = exports.registerBar3dChart = exports.registerBarChart = exports.registerAreaChart = exports.registerLineChart = exports.registerPoptip = exports.registerPolarLinearAxis = exports.registerPolarCrossHair = exports.registerPolarBandAxis = exports.registerPlayer = exports.registerGeoMarkPoint = exports.registerPolarMarkPoint = exports.registerPolarMarkArea = exports.registerPolarMarkLine = exports.registerMarkPoint = exports.registerMarkArea = exports.registerMarkLine = exports.registerMapLabel = exports.registerTotalLabel = exports.registerLabel = exports.registerIndicator = exports.registerGeoCoordinate = exports.registerDiscreteLegend = exports.registerDataZoom = exports.registerCustomMark = exports.registerContinuousLegend = exports.registerCartesianTimeAxis = exports.registerCartesianSymlogAxis = exports.registerCartesianLogAxis = exports.registerCartesianLinearAxis = exports.registerCartesianCrossHair = exports.registerCartesianBandAxis = exports.registerTooltip = exports.registerTitle = exports.registerScrollBar = exports.registerBrush = void 0,
|
|
6
|
+
exports.registerPictogramChart = exports.registerMosaicChart = exports.registerVennChart = exports.registerWordCloudShapeChart = exports.registerLiquidChart = exports.registerCorrelationChart = exports.registerWordCloudChart = exports.registerWordCloud3dChart = exports.registerWaterfallChart = exports.registerTreemapChart = exports.registerSunburstChart = exports.registerSequenceChart = exports.registerScatterChart = exports.registerSankeyChart = exports.registerRoseChart = exports.registerRangeColumnChart = exports.registerRangeColumn3dChart = exports.registerRangeAreaChart = void 0;
|
|
7
|
+
|
|
8
|
+
var vchart_1 = require("@visactor/vchart");
|
|
9
|
+
|
|
10
|
+
Object.defineProperty(exports, "registerBrush", {
|
|
11
|
+
enumerable: !0,
|
|
12
|
+
get: function() {
|
|
13
|
+
return vchart_1.registerBrush;
|
|
14
|
+
}
|
|
15
|
+
}), Object.defineProperty(exports, "registerScrollBar", {
|
|
16
|
+
enumerable: !0,
|
|
17
|
+
get: function() {
|
|
18
|
+
return vchart_1.registerScrollBar;
|
|
19
|
+
}
|
|
20
|
+
}), Object.defineProperty(exports, "registerTitle", {
|
|
21
|
+
enumerable: !0,
|
|
22
|
+
get: function() {
|
|
23
|
+
return vchart_1.registerTitle;
|
|
24
|
+
}
|
|
25
|
+
}), Object.defineProperty(exports, "registerTooltip", {
|
|
26
|
+
enumerable: !0,
|
|
27
|
+
get: function() {
|
|
28
|
+
return vchart_1.registerTooltip;
|
|
29
|
+
}
|
|
30
|
+
}), Object.defineProperty(exports, "registerCartesianBandAxis", {
|
|
31
|
+
enumerable: !0,
|
|
32
|
+
get: function() {
|
|
33
|
+
return vchart_1.registerCartesianBandAxis;
|
|
34
|
+
}
|
|
35
|
+
}), Object.defineProperty(exports, "registerCartesianCrossHair", {
|
|
36
|
+
enumerable: !0,
|
|
37
|
+
get: function() {
|
|
38
|
+
return vchart_1.registerCartesianCrossHair;
|
|
39
|
+
}
|
|
40
|
+
}), Object.defineProperty(exports, "registerCartesianLinearAxis", {
|
|
41
|
+
enumerable: !0,
|
|
42
|
+
get: function() {
|
|
43
|
+
return vchart_1.registerCartesianLinearAxis;
|
|
44
|
+
}
|
|
45
|
+
}), Object.defineProperty(exports, "registerCartesianLogAxis", {
|
|
46
|
+
enumerable: !0,
|
|
47
|
+
get: function() {
|
|
48
|
+
return vchart_1.registerCartesianLogAxis;
|
|
49
|
+
}
|
|
50
|
+
}), Object.defineProperty(exports, "registerCartesianSymlogAxis", {
|
|
51
|
+
enumerable: !0,
|
|
52
|
+
get: function() {
|
|
53
|
+
return vchart_1.registerCartesianSymlogAxis;
|
|
54
|
+
}
|
|
55
|
+
}), Object.defineProperty(exports, "registerCartesianTimeAxis", {
|
|
56
|
+
enumerable: !0,
|
|
57
|
+
get: function() {
|
|
58
|
+
return vchart_1.registerCartesianTimeAxis;
|
|
59
|
+
}
|
|
60
|
+
}), Object.defineProperty(exports, "registerContinuousLegend", {
|
|
61
|
+
enumerable: !0,
|
|
62
|
+
get: function() {
|
|
63
|
+
return vchart_1.registerContinuousLegend;
|
|
64
|
+
}
|
|
65
|
+
}), Object.defineProperty(exports, "registerCustomMark", {
|
|
66
|
+
enumerable: !0,
|
|
67
|
+
get: function() {
|
|
68
|
+
return vchart_1.registerCustomMark;
|
|
69
|
+
}
|
|
70
|
+
}), Object.defineProperty(exports, "registerDataZoom", {
|
|
71
|
+
enumerable: !0,
|
|
72
|
+
get: function() {
|
|
73
|
+
return vchart_1.registerDataZoom;
|
|
74
|
+
}
|
|
75
|
+
}), Object.defineProperty(exports, "registerDiscreteLegend", {
|
|
76
|
+
enumerable: !0,
|
|
77
|
+
get: function() {
|
|
78
|
+
return vchart_1.registerDiscreteLegend;
|
|
79
|
+
}
|
|
80
|
+
}), Object.defineProperty(exports, "registerGeoCoordinate", {
|
|
81
|
+
enumerable: !0,
|
|
82
|
+
get: function() {
|
|
83
|
+
return vchart_1.registerGeoCoordinate;
|
|
84
|
+
}
|
|
85
|
+
}), Object.defineProperty(exports, "registerIndicator", {
|
|
86
|
+
enumerable: !0,
|
|
87
|
+
get: function() {
|
|
88
|
+
return vchart_1.registerIndicator;
|
|
89
|
+
}
|
|
90
|
+
}), Object.defineProperty(exports, "registerLabel", {
|
|
91
|
+
enumerable: !0,
|
|
92
|
+
get: function() {
|
|
93
|
+
return vchart_1.registerLabel;
|
|
94
|
+
}
|
|
95
|
+
}), Object.defineProperty(exports, "registerTotalLabel", {
|
|
96
|
+
enumerable: !0,
|
|
97
|
+
get: function() {
|
|
98
|
+
return vchart_1.registerTotalLabel;
|
|
99
|
+
}
|
|
100
|
+
}), Object.defineProperty(exports, "registerMapLabel", {
|
|
101
|
+
enumerable: !0,
|
|
102
|
+
get: function() {
|
|
103
|
+
return vchart_1.registerMapLabel;
|
|
104
|
+
}
|
|
105
|
+
}), Object.defineProperty(exports, "registerMarkLine", {
|
|
106
|
+
enumerable: !0,
|
|
107
|
+
get: function() {
|
|
108
|
+
return vchart_1.registerMarkLine;
|
|
109
|
+
}
|
|
110
|
+
}), Object.defineProperty(exports, "registerMarkArea", {
|
|
111
|
+
enumerable: !0,
|
|
112
|
+
get: function() {
|
|
113
|
+
return vchart_1.registerMarkArea;
|
|
114
|
+
}
|
|
115
|
+
}), Object.defineProperty(exports, "registerMarkPoint", {
|
|
116
|
+
enumerable: !0,
|
|
117
|
+
get: function() {
|
|
118
|
+
return vchart_1.registerMarkPoint;
|
|
119
|
+
}
|
|
120
|
+
}), Object.defineProperty(exports, "registerPolarMarkLine", {
|
|
121
|
+
enumerable: !0,
|
|
122
|
+
get: function() {
|
|
123
|
+
return vchart_1.registerPolarMarkLine;
|
|
124
|
+
}
|
|
125
|
+
}), Object.defineProperty(exports, "registerPolarMarkArea", {
|
|
126
|
+
enumerable: !0,
|
|
127
|
+
get: function() {
|
|
128
|
+
return vchart_1.registerPolarMarkArea;
|
|
129
|
+
}
|
|
130
|
+
}), Object.defineProperty(exports, "registerPolarMarkPoint", {
|
|
131
|
+
enumerable: !0,
|
|
132
|
+
get: function() {
|
|
133
|
+
return vchart_1.registerPolarMarkPoint;
|
|
134
|
+
}
|
|
135
|
+
}), Object.defineProperty(exports, "registerGeoMarkPoint", {
|
|
136
|
+
enumerable: !0,
|
|
137
|
+
get: function() {
|
|
138
|
+
return vchart_1.registerGeoMarkPoint;
|
|
139
|
+
}
|
|
140
|
+
}), Object.defineProperty(exports, "registerPlayer", {
|
|
141
|
+
enumerable: !0,
|
|
142
|
+
get: function() {
|
|
143
|
+
return vchart_1.registerPlayer;
|
|
144
|
+
}
|
|
145
|
+
}), Object.defineProperty(exports, "registerPolarBandAxis", {
|
|
146
|
+
enumerable: !0,
|
|
147
|
+
get: function() {
|
|
148
|
+
return vchart_1.registerPolarBandAxis;
|
|
149
|
+
}
|
|
150
|
+
}), Object.defineProperty(exports, "registerPolarCrossHair", {
|
|
151
|
+
enumerable: !0,
|
|
152
|
+
get: function() {
|
|
153
|
+
return vchart_1.registerPolarCrossHair;
|
|
154
|
+
}
|
|
155
|
+
}), Object.defineProperty(exports, "registerPolarLinearAxis", {
|
|
156
|
+
enumerable: !0,
|
|
157
|
+
get: function() {
|
|
158
|
+
return vchart_1.registerPolarLinearAxis;
|
|
159
|
+
}
|
|
160
|
+
}), Object.defineProperty(exports, "registerPoptip", {
|
|
161
|
+
enumerable: !0,
|
|
162
|
+
get: function() {
|
|
163
|
+
return vchart_1.registerPoptip;
|
|
164
|
+
}
|
|
165
|
+
});
|
|
166
|
+
|
|
167
|
+
var vchart_2 = require("@visactor/vchart");
|
|
168
|
+
|
|
169
|
+
Object.defineProperty(exports, "registerLineChart", {
|
|
170
|
+
enumerable: !0,
|
|
171
|
+
get: function() {
|
|
172
|
+
return vchart_2.registerLineChart;
|
|
173
|
+
}
|
|
174
|
+
}), Object.defineProperty(exports, "registerAreaChart", {
|
|
175
|
+
enumerable: !0,
|
|
176
|
+
get: function() {
|
|
177
|
+
return vchart_2.registerAreaChart;
|
|
178
|
+
}
|
|
179
|
+
}), Object.defineProperty(exports, "registerBarChart", {
|
|
180
|
+
enumerable: !0,
|
|
181
|
+
get: function() {
|
|
182
|
+
return vchart_2.registerBarChart;
|
|
183
|
+
}
|
|
184
|
+
}), Object.defineProperty(exports, "registerBar3dChart", {
|
|
185
|
+
enumerable: !0,
|
|
186
|
+
get: function() {
|
|
187
|
+
return vchart_2.registerBar3dChart;
|
|
188
|
+
}
|
|
189
|
+
}), Object.defineProperty(exports, "registerBoxplotChart", {
|
|
190
|
+
enumerable: !0,
|
|
191
|
+
get: function() {
|
|
192
|
+
return vchart_2.registerBoxplotChart;
|
|
193
|
+
}
|
|
194
|
+
}), Object.defineProperty(exports, "registerCirclePackingChart", {
|
|
195
|
+
enumerable: !0,
|
|
196
|
+
get: function() {
|
|
197
|
+
return vchart_2.registerCirclePackingChart;
|
|
198
|
+
}
|
|
199
|
+
}), Object.defineProperty(exports, "registerCircularProgressChart", {
|
|
200
|
+
enumerable: !0,
|
|
201
|
+
get: function() {
|
|
202
|
+
return vchart_2.registerCircularProgressChart;
|
|
203
|
+
}
|
|
204
|
+
}), Object.defineProperty(exports, "registerCommonChart", {
|
|
205
|
+
enumerable: !0,
|
|
206
|
+
get: function() {
|
|
207
|
+
return vchart_2.registerCommonChart;
|
|
208
|
+
}
|
|
209
|
+
}), Object.defineProperty(exports, "registerFunnelChart", {
|
|
210
|
+
enumerable: !0,
|
|
211
|
+
get: function() {
|
|
212
|
+
return vchart_2.registerFunnelChart;
|
|
213
|
+
}
|
|
214
|
+
}), Object.defineProperty(exports, "registerFunnel3dChart", {
|
|
215
|
+
enumerable: !0,
|
|
216
|
+
get: function() {
|
|
217
|
+
return vchart_2.registerFunnel3dChart;
|
|
218
|
+
}
|
|
219
|
+
}), Object.defineProperty(exports, "registerGaugeChart", {
|
|
220
|
+
enumerable: !0,
|
|
221
|
+
get: function() {
|
|
222
|
+
return vchart_2.registerGaugeChart;
|
|
223
|
+
}
|
|
224
|
+
}), Object.defineProperty(exports, "registerHeatmapChart", {
|
|
225
|
+
enumerable: !0,
|
|
226
|
+
get: function() {
|
|
227
|
+
return vchart_2.registerHeatmapChart;
|
|
228
|
+
}
|
|
229
|
+
}), Object.defineProperty(exports, "registerHistogramChart", {
|
|
230
|
+
enumerable: !0,
|
|
231
|
+
get: function() {
|
|
232
|
+
return vchart_2.registerHistogramChart;
|
|
233
|
+
}
|
|
234
|
+
}), Object.defineProperty(exports, "registerHistogram3dChart", {
|
|
235
|
+
enumerable: !0,
|
|
236
|
+
get: function() {
|
|
237
|
+
return vchart_2.registerHistogram3dChart;
|
|
238
|
+
}
|
|
239
|
+
}), Object.defineProperty(exports, "registerLinearProgressChart", {
|
|
240
|
+
enumerable: !0,
|
|
241
|
+
get: function() {
|
|
242
|
+
return vchart_2.registerLinearProgressChart;
|
|
243
|
+
}
|
|
244
|
+
}), Object.defineProperty(exports, "registerMapChart", {
|
|
245
|
+
enumerable: !0,
|
|
246
|
+
get: function() {
|
|
247
|
+
return vchart_2.registerMapChart;
|
|
248
|
+
}
|
|
249
|
+
}), Object.defineProperty(exports, "registerPie3dChart", {
|
|
250
|
+
enumerable: !0,
|
|
251
|
+
get: function() {
|
|
252
|
+
return vchart_2.registerPie3dChart;
|
|
253
|
+
}
|
|
254
|
+
}), Object.defineProperty(exports, "registerPieChart", {
|
|
255
|
+
enumerable: !0,
|
|
256
|
+
get: function() {
|
|
257
|
+
return vchart_2.registerPieChart;
|
|
258
|
+
}
|
|
259
|
+
}), Object.defineProperty(exports, "registerRadarChart", {
|
|
260
|
+
enumerable: !0,
|
|
261
|
+
get: function() {
|
|
262
|
+
return vchart_2.registerRadarChart;
|
|
263
|
+
}
|
|
264
|
+
}), Object.defineProperty(exports, "registerRangeAreaChart", {
|
|
265
|
+
enumerable: !0,
|
|
266
|
+
get: function() {
|
|
267
|
+
return vchart_2.registerRangeAreaChart;
|
|
268
|
+
}
|
|
269
|
+
}), Object.defineProperty(exports, "registerRangeColumn3dChart", {
|
|
270
|
+
enumerable: !0,
|
|
271
|
+
get: function() {
|
|
272
|
+
return vchart_2.registerRangeColumn3dChart;
|
|
273
|
+
}
|
|
274
|
+
}), Object.defineProperty(exports, "registerRangeColumnChart", {
|
|
275
|
+
enumerable: !0,
|
|
276
|
+
get: function() {
|
|
277
|
+
return vchart_2.registerRangeColumnChart;
|
|
278
|
+
}
|
|
279
|
+
}), Object.defineProperty(exports, "registerRoseChart", {
|
|
280
|
+
enumerable: !0,
|
|
281
|
+
get: function() {
|
|
282
|
+
return vchart_2.registerRoseChart;
|
|
283
|
+
}
|
|
284
|
+
}), Object.defineProperty(exports, "registerSankeyChart", {
|
|
285
|
+
enumerable: !0,
|
|
286
|
+
get: function() {
|
|
287
|
+
return vchart_2.registerSankeyChart;
|
|
288
|
+
}
|
|
289
|
+
}), Object.defineProperty(exports, "registerScatterChart", {
|
|
290
|
+
enumerable: !0,
|
|
291
|
+
get: function() {
|
|
292
|
+
return vchart_2.registerScatterChart;
|
|
293
|
+
}
|
|
294
|
+
}), Object.defineProperty(exports, "registerSequenceChart", {
|
|
295
|
+
enumerable: !0,
|
|
296
|
+
get: function() {
|
|
297
|
+
return vchart_2.registerSequenceChart;
|
|
298
|
+
}
|
|
299
|
+
}), Object.defineProperty(exports, "registerSunburstChart", {
|
|
300
|
+
enumerable: !0,
|
|
301
|
+
get: function() {
|
|
302
|
+
return vchart_2.registerSunburstChart;
|
|
303
|
+
}
|
|
304
|
+
}), Object.defineProperty(exports, "registerTreemapChart", {
|
|
305
|
+
enumerable: !0,
|
|
306
|
+
get: function() {
|
|
307
|
+
return vchart_2.registerTreemapChart;
|
|
308
|
+
}
|
|
309
|
+
}), Object.defineProperty(exports, "registerWaterfallChart", {
|
|
310
|
+
enumerable: !0,
|
|
311
|
+
get: function() {
|
|
312
|
+
return vchart_2.registerWaterfallChart;
|
|
313
|
+
}
|
|
314
|
+
}), Object.defineProperty(exports, "registerWordCloud3dChart", {
|
|
315
|
+
enumerable: !0,
|
|
316
|
+
get: function() {
|
|
317
|
+
return vchart_2.registerWordCloud3dChart;
|
|
318
|
+
}
|
|
319
|
+
}), Object.defineProperty(exports, "registerWordCloudChart", {
|
|
320
|
+
enumerable: !0,
|
|
321
|
+
get: function() {
|
|
322
|
+
return vchart_2.registerWordCloudChart;
|
|
323
|
+
}
|
|
324
|
+
}), Object.defineProperty(exports, "registerCorrelationChart", {
|
|
325
|
+
enumerable: !0,
|
|
326
|
+
get: function() {
|
|
327
|
+
return vchart_2.registerCorrelationChart;
|
|
328
|
+
}
|
|
329
|
+
}), Object.defineProperty(exports, "registerLiquidChart", {
|
|
330
|
+
enumerable: !0,
|
|
331
|
+
get: function() {
|
|
332
|
+
return vchart_2.registerLiquidChart;
|
|
333
|
+
}
|
|
334
|
+
}), Object.defineProperty(exports, "registerWordCloudShapeChart", {
|
|
335
|
+
enumerable: !0,
|
|
336
|
+
get: function() {
|
|
337
|
+
return vchart_2.registerWordCloudShapeChart;
|
|
338
|
+
}
|
|
339
|
+
}), Object.defineProperty(exports, "registerVennChart", {
|
|
340
|
+
enumerable: !0,
|
|
341
|
+
get: function() {
|
|
342
|
+
return vchart_2.registerVennChart;
|
|
343
|
+
}
|
|
344
|
+
}), Object.defineProperty(exports, "registerMosaicChart", {
|
|
345
|
+
enumerable: !0,
|
|
346
|
+
get: function() {
|
|
347
|
+
return vchart_2.registerMosaicChart;
|
|
348
|
+
}
|
|
349
|
+
}), Object.defineProperty(exports, "registerPictogramChart", {
|
|
350
|
+
enumerable: !0,
|
|
351
|
+
get: function() {
|
|
352
|
+
return vchart_2.registerPictogramChart;
|
|
353
|
+
}
|
|
354
|
+
});
|
|
355
|
+
//# sourceMappingURL=register.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/register.ts"],"names":[],"mappings":";;;;AACA,2CAgC0B;AA/BxB,uGAAA,aAAa,OAAA;AACb,2GAAA,iBAAiB,OAAA;AACjB,uGAAA,aAAa,OAAA;AACb,yGAAA,eAAe,OAAA;AACf,mHAAA,yBAAyB,OAAA;AACzB,oHAAA,0BAA0B,OAAA;AAC1B,qHAAA,2BAA2B,OAAA;AAC3B,kHAAA,wBAAwB,OAAA;AACxB,qHAAA,2BAA2B,OAAA;AAC3B,mHAAA,yBAAyB,OAAA;AACzB,kHAAA,wBAAwB,OAAA;AACxB,4GAAA,kBAAkB,OAAA;AAClB,0GAAA,gBAAgB,OAAA;AAChB,gHAAA,sBAAsB,OAAA;AACtB,+GAAA,qBAAqB,OAAA;AACrB,2GAAA,iBAAiB,OAAA;AACjB,uGAAA,aAAa,OAAA;AACb,4GAAA,kBAAkB,OAAA;AAClB,0GAAA,gBAAgB,OAAA;AAChB,0GAAA,gBAAgB,OAAA;AAChB,0GAAA,gBAAgB,OAAA;AAChB,2GAAA,iBAAiB,OAAA;AACjB,+GAAA,qBAAqB,OAAA;AACrB,+GAAA,qBAAqB,OAAA;AACrB,gHAAA,sBAAsB,OAAA;AACtB,8GAAA,oBAAoB,OAAA;AACpB,wGAAA,cAAc,OAAA;AACd,+GAAA,qBAAqB,OAAA;AACrB,gHAAA,sBAAsB,OAAA;AACtB,iHAAA,uBAAuB,OAAA;AACvB,wGAAA,cAAc,OAAA;AAIhB,2CAsC0B;AArCxB,2GAAA,iBAAiB,OAAA;AACjB,2GAAA,iBAAiB,OAAA;AACjB,0GAAA,gBAAgB,OAAA;AAChB,4GAAA,kBAAkB,OAAA;AAClB,8GAAA,oBAAoB,OAAA;AACpB,oHAAA,0BAA0B,OAAA;AAC1B,uHAAA,6BAA6B,OAAA;AAC7B,6GAAA,mBAAmB,OAAA;AACnB,6GAAA,mBAAmB,OAAA;AACnB,+GAAA,qBAAqB,OAAA;AACrB,4GAAA,kBAAkB,OAAA;AAClB,8GAAA,oBAAoB,OAAA;AACpB,gHAAA,sBAAsB,OAAA;AACtB,kHAAA,wBAAwB,OAAA;AACxB,qHAAA,2BAA2B,OAAA;AAC3B,0GAAA,gBAAgB,OAAA;AAChB,4GAAA,kBAAkB,OAAA;AAClB,0GAAA,gBAAgB,OAAA;AAChB,4GAAA,kBAAkB,OAAA;AAClB,gHAAA,sBAAsB,OAAA;AACtB,oHAAA,0BAA0B,OAAA;AAC1B,kHAAA,wBAAwB,OAAA;AACxB,2GAAA,iBAAiB,OAAA;AACjB,6GAAA,mBAAmB,OAAA;AACnB,8GAAA,oBAAoB,OAAA;AACpB,+GAAA,qBAAqB,OAAA;AACrB,+GAAA,qBAAqB,OAAA;AACrB,8GAAA,oBAAoB,OAAA;AACpB,gHAAA,sBAAsB,OAAA;AACtB,kHAAA,wBAAwB,OAAA;AACxB,gHAAA,sBAAsB,OAAA;AACtB,kHAAA,wBAAwB,OAAA;AACxB,6GAAA,mBAAmB,OAAA;AACnB,qHAAA,2BAA2B,OAAA;AAC3B,2GAAA,iBAAiB,OAAA;AACjB,6GAAA,mBAAmB,OAAA;AACnB,gHAAA,sBAAsB,OAAA","file":"register.js","sourcesContent":["// Components\nexport {\n registerBrush,\n registerScrollBar,\n registerTitle,\n registerTooltip,\n registerCartesianBandAxis,\n registerCartesianCrossHair,\n registerCartesianLinearAxis,\n registerCartesianLogAxis,\n registerCartesianSymlogAxis,\n registerCartesianTimeAxis,\n registerContinuousLegend,\n registerCustomMark,\n registerDataZoom,\n registerDiscreteLegend,\n registerGeoCoordinate,\n registerIndicator,\n registerLabel,\n registerTotalLabel,\n registerMapLabel,\n registerMarkLine,\n registerMarkArea,\n registerMarkPoint,\n registerPolarMarkLine,\n registerPolarMarkArea,\n registerPolarMarkPoint,\n registerGeoMarkPoint,\n registerPlayer,\n registerPolarBandAxis,\n registerPolarCrossHair,\n registerPolarLinearAxis,\n registerPoptip\n} from '@visactor/vchart';\n\n// Charts\nexport {\n registerLineChart,\n registerAreaChart,\n registerBarChart,\n registerBar3dChart,\n registerBoxplotChart,\n registerCirclePackingChart,\n registerCircularProgressChart,\n registerCommonChart,\n registerFunnelChart,\n registerFunnel3dChart,\n registerGaugeChart,\n registerHeatmapChart,\n registerHistogramChart,\n registerHistogram3dChart,\n registerLinearProgressChart,\n registerMapChart,\n registerPie3dChart,\n registerPieChart,\n registerRadarChart,\n registerRangeAreaChart,\n registerRangeColumn3dChart,\n registerRangeColumnChart,\n registerRoseChart,\n registerSankeyChart,\n registerScatterChart,\n registerSequenceChart,\n registerSunburstChart,\n registerTreemapChart,\n registerWaterfallChart,\n registerWordCloud3dChart,\n registerWordCloudChart,\n registerCorrelationChart,\n registerLiquidChart,\n registerWordCloudShapeChart,\n registerVennChart,\n registerMosaicChart,\n registerPictogramChart\n} from '@visactor/vchart';\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { TooltipRender } from './interface';
|
|
3
|
+
export interface BaseTooltipProps {
|
|
4
|
+
id?: string | number;
|
|
5
|
+
tooltipRender?: TooltipRender;
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
type TooltipProps = BaseTooltipProps & {
|
|
9
|
+
updateId?: number;
|
|
10
|
+
componentId?: number;
|
|
11
|
+
};
|
|
12
|
+
export declare const createTooltip: <T extends TooltipProps>(componentName: string, specName: string, registers?: (() => void)[]) => React.FC<T>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
|
|
3
|
+
import { isObject, pickWithout } from "@visactor/vutils";
|
|
4
|
+
|
|
5
|
+
import { VChart } from "@visactor/vchart";
|
|
6
|
+
|
|
7
|
+
export const createTooltip = (componentName, specName, registers) => {
|
|
8
|
+
registers && registers.length && VChart.useRegisters(registers);
|
|
9
|
+
const ignoreKeys = [ "updateId", "componentId", "children" ], Comp = props => {
|
|
10
|
+
const updateId = React.useRef(props.updateId);
|
|
11
|
+
return props.updateId !== updateId.current && (updateId.current = props.updateId),
|
|
12
|
+
null;
|
|
13
|
+
};
|
|
14
|
+
return Comp.displayName = componentName, Comp.parseSpec = props => {
|
|
15
|
+
const newTooltipSpec = pickWithout(props, ignoreKeys);
|
|
16
|
+
return !props.tooltipRender && props.children && (newTooltipSpec.tooltipRender = (tooltipElement, actualTooltip, params) => React.Children.map(props.children, (child => isObject(child) ? React.cloneElement(child, {
|
|
17
|
+
tooltipElement: tooltipElement,
|
|
18
|
+
actualTooltip: actualTooltip,
|
|
19
|
+
params: params
|
|
20
|
+
}) : child))), {
|
|
21
|
+
spec: newTooltipSpec,
|
|
22
|
+
specName: specName,
|
|
23
|
+
isSingle: !0
|
|
24
|
+
};
|
|
25
|
+
}, Comp;
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=BaseTooltip.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/tooltip/BaseTooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAW1C,MAAM,CAAC,MAAM,aAAa,GAAG,CAC3B,aAAqB,EACrB,QAAgB,EAChB,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;IAE3D,MAAM,IAAI,GAAgB,CAAC,KAAQ,EAAE,EAAE;QACrC,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;SACnC;QAED,OAAO,IAAI,CAAC;IACd,CAAC,CAAC;IAEF,IAAI,CAAC,WAAW,GAAG,aAAa,CAAC;IAChC,IAAY,CAAC,SAAS,GAAG,CAAC,KAAsD,EAAE,EAAE;QACnF,MAAM,cAAc,GAAe,WAAW,CAAI,KAAK,EAAE,UAAU,CAAC,CAAC;QAErE,IAAI,CAAC,KAAK,CAAC,aAAa,IAAI,KAAK,CAAC,QAAQ,EAAE;YAC1C,cAAc,CAAC,aAAa,GAAG,CAAC,cAAc,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,CACvE,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,CAAC,EAAE,CACzC,QAAQ,CAAC,KAAK,CAAC;gBACb,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,KAAkE,EAAE;oBACrF,cAAc;oBACd,aAAa;oBACb,MAAM;iBACP,CAAC;gBACJ,CAAC,CAAC,KAAK,CACV,CAAC;SACL;QAED,OAAO;YACL,IAAI,EAAE,cAAc;YACpB,QAAQ;YACR,QAAQ,EAAE,IAAI;SACf,CAAC;IACJ,CAAC,CAAC;IAEF,OAAO,IAAI,CAAC;AACd,CAAC,CAAC","file":"BaseTooltip.js","sourcesContent":["import React from 'react';\nimport { isObject, pickWithout } from '@visactor/vutils';\nimport { VChart } from '@visactor/vchart';\nimport type { TooltipRender } from './interface';\n\nexport interface BaseTooltipProps {\n id?: string | number;\n tooltipRender?: TooltipRender;\n children?: React.ReactNode;\n}\n\ntype TooltipProps = BaseTooltipProps & { updateId?: number; componentId?: number };\n\nexport const createTooltip = <T extends TooltipProps>(\n componentName: string,\n specName: string,\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\n const Comp: React.FC<T> = (props: T) => {\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\n return null;\n };\n\n Comp.displayName = componentName;\n (Comp as any).parseSpec = (props: T & { updateId?: number; componentId?: string }) => {\n const newTooltipSpec: Partial<T> = pickWithout<T>(props, ignoreKeys);\n\n if (!props.tooltipRender && props.children) {\n newTooltipSpec.tooltipRender = (tooltipElement, actualTooltip, params) =>\n React.Children.map(props.children, child =>\n isObject(child)\n ? React.cloneElement(child as React.ReactElement<any, React.JSXElementConstructor<any>>, {\n tooltipElement,\n actualTooltip,\n params\n })\n : child\n );\n }\n\n return {\n spec: newTooltipSpec,\n specName,\n isSingle: true\n };\n };\n\n return Comp;\n};\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TooltipProps } from './interface';
|
|
1
|
+
import type { TooltipProps } from './interface';
|
|
2
2
|
export declare const CanvasTooltip: import("react").FC<TooltipProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createTooltip } from "./BaseTooltip";
|
|
2
2
|
|
|
3
3
|
import { registerTooltip, registerCanvasTooltipHandler } from "@visactor/vchart";
|
|
4
4
|
|
|
5
|
-
export const CanvasTooltip =
|
|
5
|
+
export const CanvasTooltip = createTooltip("CanvasTooltip", "tooltip", [ registerTooltip, registerCanvasTooltipHandler ]);
|
|
6
6
|
//# sourceMappingURL=CanvasTooltip.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/tooltip/CanvasTooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"sources":["../src/components/tooltip/CanvasTooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,4BAA4B,EAAE,MAAM,kBAAkB,CAAC;AAEjF,MAAM,CAAC,MAAM,aAAa,GAAG,aAAa,CAAe,eAAe,EAAE,SAAS,EAAE;IACnF,eAAe;IACf,4BAA4B;CAC7B,CAAC,CAAC","file":"CanvasTooltip.js","sourcesContent":["import { createTooltip } from './BaseTooltip';\nimport type { TooltipProps } from './interface';\nimport { registerTooltip, registerCanvasTooltipHandler } from '@visactor/vchart';\n\nexport const CanvasTooltip = createTooltip<TooltipProps>('CanvasTooltip', 'tooltip', [\n registerTooltip,\n registerCanvasTooltipHandler\n]);\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TooltipProps } from './interface';
|
|
1
|
+
import type { TooltipProps } from './interface';
|
|
2
2
|
export declare const Tooltip: import("react").FC<TooltipProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createTooltip } from "./BaseTooltip";
|
|
2
2
|
|
|
3
3
|
import { registerTooltip, registerDomTooltipHandler } from "@visactor/vchart";
|
|
4
4
|
|
|
5
|
-
export const Tooltip =
|
|
5
|
+
export const Tooltip = createTooltip("Tooltip", "tooltip", [ registerTooltip, registerDomTooltipHandler ]);
|
|
6
6
|
//# sourceMappingURL=Tooltip.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/tooltip/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"sources":["../src/components/tooltip/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AAE9E,MAAM,CAAC,MAAM,OAAO,GAAG,aAAa,CAAe,SAAS,EAAE,SAAS,EAAE,CAAC,eAAe,EAAE,yBAAyB,CAAC,CAAC,CAAC","file":"Tooltip.js","sourcesContent":["import { createTooltip } from './BaseTooltip';\nimport type { TooltipProps } from './interface';\nimport { registerTooltip, registerDomTooltipHandler } from '@visactor/vchart';\n\nexport const Tooltip = createTooltip<TooltipProps>('Tooltip', 'tooltip', [registerTooltip, registerDomTooltipHandler]);\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { BaseChartProps } from '../../charts/BaseChart';
|
|
3
|
-
import { TooltipProps } from './interface';
|
|
4
|
-
import { ITooltipSpec } from '@visactor/vchart';
|
|
3
|
+
import type { TooltipProps } from './interface';
|
|
4
|
+
import type { ITooltipSpec } from '@visactor/vchart';
|
|
5
5
|
export declare const initCustomTooltip: (setTooltipNode: React.Dispatch<React.SetStateAction<React.ReactNode>>, props: BaseChartProps, spec?: TooltipProps) => ITooltipSpec;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
|
|
3
|
-
import { isObject } from "@visactor/vutils";
|
|
4
|
-
|
|
5
3
|
import { REACT_TOOLTIP_ClASS_NAME } from "./constant";
|
|
6
4
|
|
|
7
5
|
import { createPortal } from "react-dom";
|
|
@@ -9,11 +7,8 @@ import { createPortal } from "react-dom";
|
|
|
9
7
|
export const initCustomTooltip = (setTooltipNode, props, spec) => {
|
|
10
8
|
let render;
|
|
11
9
|
if ((null == spec ? void 0 : spec.tooltipRender) ? (render = spec.tooltipRender,
|
|
12
|
-
delete spec.tooltipRender) :
|
|
13
|
-
|
|
14
|
-
actualTooltip: actualTooltip,
|
|
15
|
-
params: params
|
|
16
|
-
}) : child)) : props.tooltipRender && (render = props.tooltipRender), render) {
|
|
10
|
+
delete spec.tooltipRender) : props.tooltipRender && (render = props.tooltipRender),
|
|
11
|
+
render) {
|
|
17
12
|
let reserve;
|
|
18
13
|
return (null == spec ? void 0 : spec.reserveDefaultTooltip) ? (reserve = spec.reserveDefaultTooltip,
|
|
19
14
|
delete spec.reserveDefaultTooltip) : reserve = props.reserveDefaultTooltip, Object.assign(Object.assign({}, spec), {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/tooltip/util.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/components/tooltip/util.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAGzC,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAC/B,cAAqE,EACrE,KAAqB,EACrB,IAAmB,EACnB,EAAE;IACF,IAAI,MAAqB,CAAC;IAC1B,IAAI,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,aAAa,EAAE;QACvB,MAAM,GAAG,IAAI,CAAC,aAAa,CAAC;QAC5B,OAAO,IAAI,CAAC,aAAa,CAAC;KAC3B;SAAM,IAAI,KAAK,CAAC,aAAa,EAAE;QAC9B,MAAM,GAAG,KAAK,CAAC,aAAa,CAAC;KAC9B;IAED,IAAI,MAAM,EAAE;QACV,IAAI,OAAgB,CAAC;QACrB,IAAI,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,qBAAqB,EAAE;YAC/B,OAAO,GAAG,IAAI,CAAC,qBAAqB,CAAC;YACrC,OAAO,IAAI,CAAC,qBAAqB,CAAC;SACnC;aAAM;YACL,OAAO,GAAG,KAAK,CAAC,qBAAqB,CAAC;SACvC;QACD,OAAO,gCACF,IAAI,KACP,aAAa,EAAE,CAAC,EAAE,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE;gBAC3C,MAAM,EAAE,kBAAkB,EAAE,GAAG,MAAM,CAAC;gBACtC,IAAI,kBAAkB,EAAE;oBACtB,OAAO;iBACR;gBACD,IAAI,CAAC,OAAO,EAAE;oBACZ,EAAE,CAAC,KAAK,CAAC,KAAK,GAAG,MAAM,CAAC;oBACxB,EAAE,CAAC,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC;oBACzB,EAAE,CAAC,KAAK,CAAC,SAAS,GAAG,MAAM,CAAC;oBAC5B,EAAE,CAAC,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC;oBACzB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;wBAC3C,MAAM,SAAS,GAAG,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAgB,CAAC;wBAChD,IAAI,SAAS,CAAC,SAAS,KAAK,wBAAwB,IAAI,SAAS,CAAC,KAAK,CAAC,OAAO,KAAK,MAAM,EAAE;4BAC1F,SAAS,CAAC,KAAK,CAAC,OAAO,GAAG,MAAM,CAAC;yBAClC;qBACF;iBACF;gBAED,cAAc,CACZ,YAAY,CAAC,6BAAK,SAAS,EAAE,wBAAwB,IAAG,MAAM,CAAC,EAAE,EAAE,aAAa,EAAE,MAAM,CAAC,CAAO,EAAE,EAAE,CAAC,CACtG,CAAC;YACJ,CAAC,GACc,CAAC;KACnB;IAED,OAAO,IAAoB,CAAC;AAC9B,CAAC,CAAC","file":"util.js","sourcesContent":["// eslint-disable-next-line @typescript-eslint/consistent-type-imports\nimport React from 'react';\nimport type { BaseChartProps } from '../../charts/BaseChart';\nimport type { TooltipProps, TooltipRender } from './interface';\nimport type { ITooltipSpec } from '@visactor/vchart';\nimport { REACT_TOOLTIP_ClASS_NAME } from './constant';\nimport { createPortal } from 'react-dom';\n\n/** tooltip 自定义插槽 */\nexport const initCustomTooltip = (\n setTooltipNode: React.Dispatch<React.SetStateAction<React.ReactNode>>,\n props: BaseChartProps,\n spec?: TooltipProps\n) => {\n let render: TooltipRender;\n if (spec?.tooltipRender) {\n render = spec.tooltipRender;\n delete spec.tooltipRender;\n } else if (props.tooltipRender) {\n render = props.tooltipRender;\n }\n\n if (render) {\n let reserve: boolean;\n if (spec?.reserveDefaultTooltip) {\n reserve = spec.reserveDefaultTooltip;\n delete spec.reserveDefaultTooltip;\n } else {\n reserve = props.reserveDefaultTooltip;\n }\n return {\n ...spec,\n updateElement: (el, actualTooltip, params) => {\n const { changePositionOnly } = params;\n if (changePositionOnly) {\n return;\n }\n if (!reserve) {\n el.style.width = 'auto';\n el.style.height = 'auto';\n el.style.minHeight = 'auto';\n el.style.padding = '0px';\n for (let i = 0; i < el.children.length; i++) {\n const childNode = el.children[i] as HTMLElement;\n if (childNode.className !== REACT_TOOLTIP_ClASS_NAME && childNode.style.display !== 'none') {\n childNode.style.display = 'none';\n }\n }\n }\n\n setTooltipNode(\n createPortal(<div className={REACT_TOOLTIP_ClASS_NAME}>{render(el, actualTooltip, params)}</div>, el)\n );\n }\n } as ITooltipSpec;\n }\n\n return spec as ITooltipSpec;\n};\n"]}
|
|
@@ -4,5 +4,6 @@ export interface ContainerProps {
|
|
|
4
4
|
className?: string;
|
|
5
5
|
width?: number | string;
|
|
6
6
|
height?: number | string;
|
|
7
|
+
id?: string;
|
|
7
8
|
}
|
|
8
9
|
export default function withContainer<Props extends ContainerProps, CompProps>(Comp: any, name?: string, getProps?: (props: any) => CompProps): React.ForwardRefExoticComponent<React.PropsWithoutRef<CompProps & Props> & React.RefAttributes<any>>;
|
|
@@ -12,16 +12,17 @@ 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(), [inited, setInited] = useState(!1), {className: className, style: style, width: width, height: height, id: id} = props, options = __rest(props, [ "className", "style", "width", "height", "id" ]);
|
|
16
16
|
return useLayoutEffect((() => {
|
|
17
17
|
setInited(!0);
|
|
18
18
|
}), []), React.createElement("div", {
|
|
19
19
|
ref: container,
|
|
20
|
+
id: id,
|
|
20
21
|
className: className,
|
|
21
22
|
style: Object.assign({
|
|
22
23
|
position: "relative",
|
|
23
|
-
height:
|
|
24
|
-
width:
|
|
24
|
+
height: height || "100%",
|
|
25
|
+
width: width || "100%"
|
|
25
26
|
}, style)
|
|
26
27
|
}, inited ? React.createElement(Comp, Object.assign({
|
|
27
28
|
ref: ref,
|
|
@@ -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;
|
|
1
|
+
{"version":3,"sources":["../src/containers/withContainer.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,OAAO,CAAC;AAUjE,MAAM,CAAC,OAAO,UAAU,aAAa,CACnC,IAAS,EACT,IAAI,GAAG,gBAAgB,EACvB,QAAoC;IAEpC,MAAM,GAAG,GAAG,KAAK,CAAC,UAAU,CAAyB,CAAC,KAAwB,EAAE,GAAG,EAAE,EAAE;QACrF,MAAM,SAAS,GAAG,MAAM,EAAE,CAAC;QAC3B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;QAC5C,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,KAAiB,KAAK,EAAjB,OAAO,UAAK,KAAK,EAA3D,+CAAmD,CAAQ,CAAC;QAElE,eAAe,CAAC,GAAG,EAAE;YACnB,SAAS,CAAC,IAAI,CAAC,CAAC;QAClB,CAAC,EAAE,EAAE,CAAC,CAAC;QAEP,OAAO,CACL,6BACE,GAAG,EAAE,SAAS,EACd,EAAE,EAAE,EAAE,EACN,SAAS,EAAE,SAAS,EACpB,KAAK,kBACH,QAAQ,EAAE,UAAU,EACpB,MAAM,EAAE,MAAM,IAAI,MAAM,EACxB,KAAK,EAAE,KAAK,IAAI,MAAM,IACnB,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,CAAE,OAAqB,CAAC,EAAI,CAC9G,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 id?: string;\n}\n\nexport default function withContainer<Props extends ContainerProps, CompProps>(\n Comp: any,\n name = 'ChartContainer',\n getProps?: (props: any) => CompProps\n) {\n const Cls = React.forwardRef<any, CompProps & Props>((props: CompProps & Props, ref) => {\n const container = useRef();\n const [inited, setInited] = useState(false);\n const { className, style, width, height, id, ...options } = props;\n\n useLayoutEffect(() => {\n setInited(true);\n }, []);\n\n return (\n <div\n ref={container}\n id={id}\n className={className}\n style={{\n position: 'relative',\n height: height || '100%',\n width: width || '100%',\n ...style\n }}\n >\n {inited ? (\n <Comp ref={ref} container={container.current} {...(getProps ? getProps(options) : (options as CompProps))} />\n ) : (\n <></>\n )}\n </div>\n );\n });\n Cls.displayName = name || Comp.name;\n return Cls;\n}\n"]}
|
package/esm/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export * from './series';
|
|
|
3
3
|
export * from './components';
|
|
4
4
|
export * from './VChart';
|
|
5
5
|
export * from './VChartSimple';
|
|
6
|
+
export * from './register';
|
|
6
7
|
export { VChart as VChartCore } from '@visactor/vchart';
|
|
7
|
-
export declare const version = "1.13.11-alpha.
|
|
8
|
+
export declare const version = "1.13.11-alpha.2";
|
|
8
9
|
export type { IAreaChartSpec, IBarChartSpec, IBar3dChartSpec, IBoxPlotChartSpec, ICirclePackingChartSpec, ICommonChartSpec, IFunnelChartSpec, IFunnel3dChartSpec, IGaugeChartSpec, IHeatmapChartSpec, IHistogramChartSpec, IHistogram3dChartSpec, ILineChartSpec, IMapChartSpec, IPieChartSpec, IPie3dChartSpec, ICircularProgressChartSpec, ILinearProgressChartSpec, IRadarChartSpec, IRangeColumnChartSpec, IRangeColumn3dChartSpec, IRangeAreaChartSpec, IRoseChartSpec, IScatterChartSpec, ISankeyChartSpec, ISequenceChartSpec, ISunburstChartSpec, ITreemapChartSpec, IWaterfallChartSpec, ICorrelationChartSpec, ILiquidChartSpec, IWordCloud3dChartSpec, IWordCloudChartSpec, IPolarChartSpec, ICartesianChartSpec, ITheme, IInitOption, ISpec, IVChart } from '@visactor/vchart';
|
package/esm/index.js
CHANGED
|
@@ -8,7 +8,9 @@ export * from "./VChart";
|
|
|
8
8
|
|
|
9
9
|
export * from "./VChartSimple";
|
|
10
10
|
|
|
11
|
+
export * from "./register";
|
|
12
|
+
|
|
11
13
|
export { VChart as VChartCore } from "@visactor/vchart";
|
|
12
14
|
|
|
13
|
-
export const version = "1.13.11-alpha.
|
|
15
|
+
export const version = "1.13.11-alpha.2";
|
|
14
16
|
//# sourceMappingURL=index.js.map
|
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,iBAAiB,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 = \"1.13.11-alpha.
|
|
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,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAGxD,MAAM,CAAC,MAAM,OAAO,GAAG,iBAAiB,CAAC","file":"index.js","sourcesContent":["export * from './charts';\nexport * from './series';\nexport * from './components';\nexport * from './VChart';\nexport * from './VChartSimple';\nexport * from './register';\nexport { VChart as VChartCore } from '@visactor/vchart';\n\n// export the version, since @1.8.3\nexport const version = \"1.13.11-alpha.2\";\n\nexport type {\n IAreaChartSpec,\n IBarChartSpec,\n IBar3dChartSpec,\n IBoxPlotChartSpec,\n ICirclePackingChartSpec,\n ICommonChartSpec,\n IFunnelChartSpec,\n IFunnel3dChartSpec,\n IGaugeChartSpec,\n IHeatmapChartSpec,\n IHistogramChartSpec,\n IHistogram3dChartSpec,\n ILineChartSpec,\n IMapChartSpec,\n IPieChartSpec,\n IPie3dChartSpec,\n ICircularProgressChartSpec,\n ILinearProgressChartSpec,\n IRadarChartSpec,\n IRangeColumnChartSpec,\n IRangeColumn3dChartSpec,\n IRangeAreaChartSpec,\n IRoseChartSpec,\n IScatterChartSpec,\n ISankeyChartSpec,\n ISequenceChartSpec,\n ISunburstChartSpec,\n ITreemapChartSpec,\n IWaterfallChartSpec,\n ICorrelationChartSpec,\n ILiquidChartSpec,\n IWordCloud3dChartSpec,\n IWordCloudChartSpec,\n IPolarChartSpec,\n ICartesianChartSpec,\n ITheme,\n IInitOption,\n ISpec,\n IVChart\n} from '@visactor/vchart';\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { registerBrush, registerScrollBar, registerTitle, registerTooltip, registerCartesianBandAxis, registerCartesianCrossHair, registerCartesianLinearAxis, registerCartesianLogAxis, registerCartesianSymlogAxis, registerCartesianTimeAxis, registerContinuousLegend, registerCustomMark, registerDataZoom, registerDiscreteLegend, registerGeoCoordinate, registerIndicator, registerLabel, registerTotalLabel, registerMapLabel, registerMarkLine, registerMarkArea, registerMarkPoint, registerPolarMarkLine, registerPolarMarkArea, registerPolarMarkPoint, registerGeoMarkPoint, registerPlayer, registerPolarBandAxis, registerPolarCrossHair, registerPolarLinearAxis, registerPoptip } from '@visactor/vchart';
|
|
2
|
+
export { registerLineChart, registerAreaChart, registerBarChart, registerBar3dChart, registerBoxplotChart, registerCirclePackingChart, registerCircularProgressChart, registerCommonChart, registerFunnelChart, registerFunnel3dChart, registerGaugeChart, registerHeatmapChart, registerHistogramChart, registerHistogram3dChart, registerLinearProgressChart, registerMapChart, registerPie3dChart, registerPieChart, registerRadarChart, registerRangeAreaChart, registerRangeColumn3dChart, registerRangeColumnChart, registerRoseChart, registerSankeyChart, registerScatterChart, registerSequenceChart, registerSunburstChart, registerTreemapChart, registerWaterfallChart, registerWordCloud3dChart, registerWordCloudChart, registerCorrelationChart, registerLiquidChart, registerWordCloudShapeChart, registerVennChart, registerMosaicChart, registerPictogramChart } from '@visactor/vchart';
|
package/esm/register.js
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { registerBrush, registerScrollBar, registerTitle, registerTooltip, registerCartesianBandAxis, registerCartesianCrossHair, registerCartesianLinearAxis, registerCartesianLogAxis, registerCartesianSymlogAxis, registerCartesianTimeAxis, registerContinuousLegend, registerCustomMark, registerDataZoom, registerDiscreteLegend, registerGeoCoordinate, registerIndicator, registerLabel, registerTotalLabel, registerMapLabel, registerMarkLine, registerMarkArea, registerMarkPoint, registerPolarMarkLine, registerPolarMarkArea, registerPolarMarkPoint, registerGeoMarkPoint, registerPlayer, registerPolarBandAxis, registerPolarCrossHair, registerPolarLinearAxis, registerPoptip } from "@visactor/vchart";
|
|
2
|
+
|
|
3
|
+
export { registerLineChart, registerAreaChart, registerBarChart, registerBar3dChart, registerBoxplotChart, registerCirclePackingChart, registerCircularProgressChart, registerCommonChart, registerFunnelChart, registerFunnel3dChart, registerGaugeChart, registerHeatmapChart, registerHistogramChart, registerHistogram3dChart, registerLinearProgressChart, registerMapChart, registerPie3dChart, registerPieChart, registerRadarChart, registerRangeAreaChart, registerRangeColumn3dChart, registerRangeColumnChart, registerRoseChart, registerSankeyChart, registerScatterChart, registerSequenceChart, registerSunburstChart, registerTreemapChart, registerWaterfallChart, registerWordCloud3dChart, registerWordCloudChart, registerCorrelationChart, registerLiquidChart, registerWordCloudShapeChart, registerVennChart, registerMosaicChart, registerPictogramChart } from "@visactor/vchart";
|
|
4
|
+
//# sourceMappingURL=register.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/register.ts"],"names":[],"mappings":"AACA,OAAO,EACL,aAAa,EACb,iBAAiB,EACjB,aAAa,EACb,eAAe,EACf,yBAAyB,EACzB,0BAA0B,EAC1B,2BAA2B,EAC3B,wBAAwB,EACxB,2BAA2B,EAC3B,yBAAyB,EACzB,wBAAwB,EACxB,kBAAkB,EAClB,gBAAgB,EAChB,sBAAsB,EACtB,qBAAqB,EACrB,iBAAiB,EACjB,aAAa,EACb,kBAAkB,EAClB,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,qBAAqB,EACrB,qBAAqB,EACrB,sBAAsB,EACtB,oBAAoB,EACpB,cAAc,EACd,qBAAqB,EACrB,sBAAsB,EACtB,uBAAuB,EACvB,cAAc,EACf,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EAClB,oBAAoB,EACpB,0BAA0B,EAC1B,6BAA6B,EAC7B,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,kBAAkB,EAClB,oBAAoB,EACpB,sBAAsB,EACtB,wBAAwB,EACxB,2BAA2B,EAC3B,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAClB,sBAAsB,EACtB,0BAA0B,EAC1B,wBAAwB,EACxB,iBAAiB,EACjB,mBAAmB,EACnB,oBAAoB,EACpB,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,sBAAsB,EACtB,wBAAwB,EACxB,sBAAsB,EACtB,wBAAwB,EACxB,mBAAmB,EACnB,2BAA2B,EAC3B,iBAAiB,EACjB,mBAAmB,EACnB,sBAAsB,EACvB,MAAM,kBAAkB,CAAC","file":"register.js","sourcesContent":["// Components\nexport {\n registerBrush,\n registerScrollBar,\n registerTitle,\n registerTooltip,\n registerCartesianBandAxis,\n registerCartesianCrossHair,\n registerCartesianLinearAxis,\n registerCartesianLogAxis,\n registerCartesianSymlogAxis,\n registerCartesianTimeAxis,\n registerContinuousLegend,\n registerCustomMark,\n registerDataZoom,\n registerDiscreteLegend,\n registerGeoCoordinate,\n registerIndicator,\n registerLabel,\n registerTotalLabel,\n registerMapLabel,\n registerMarkLine,\n registerMarkArea,\n registerMarkPoint,\n registerPolarMarkLine,\n registerPolarMarkArea,\n registerPolarMarkPoint,\n registerGeoMarkPoint,\n registerPlayer,\n registerPolarBandAxis,\n registerPolarCrossHair,\n registerPolarLinearAxis,\n registerPoptip\n} from '@visactor/vchart';\n\n// Charts\nexport {\n registerLineChart,\n registerAreaChart,\n registerBarChart,\n registerBar3dChart,\n registerBoxplotChart,\n registerCirclePackingChart,\n registerCircularProgressChart,\n registerCommonChart,\n registerFunnelChart,\n registerFunnel3dChart,\n registerGaugeChart,\n registerHeatmapChart,\n registerHistogramChart,\n registerHistogram3dChart,\n registerLinearProgressChart,\n registerMapChart,\n registerPie3dChart,\n registerPieChart,\n registerRadarChart,\n registerRangeAreaChart,\n registerRangeColumn3dChart,\n registerRangeColumnChart,\n registerRoseChart,\n registerSankeyChart,\n registerScatterChart,\n registerSequenceChart,\n registerSunburstChart,\n registerTreemapChart,\n registerWaterfallChart,\n registerWordCloud3dChart,\n registerWordCloudChart,\n registerCorrelationChart,\n registerLiquidChart,\n registerWordCloudShapeChart,\n registerVennChart,\n registerMosaicChart,\n registerPictogramChart\n} from '@visactor/vchart';\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visactor/react-vchart",
|
|
3
|
-
"version": "1.13.11-alpha.
|
|
3
|
+
"version": "1.13.11-alpha.2",
|
|
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": "1.13.11-alpha.
|
|
26
|
+
"@visactor/vchart": "1.13.11-alpha.2",
|
|
27
27
|
"@visactor/vutils": "~0.19.5",
|
|
28
|
-
"@visactor/vrender-core": "0.22.
|
|
29
|
-
"@visactor/vrender-kits": "0.22.
|
|
30
|
-
"@visactor/vgrammar-core": "0.16.
|
|
28
|
+
"@visactor/vrender-core": "0.22.10",
|
|
29
|
+
"@visactor/vrender-kits": "0.22.10",
|
|
30
|
+
"@visactor/vgrammar-core": "0.16.7",
|
|
31
31
|
"react-is": "^18.2.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|