pptx-react-viewer 4.1.6 → 4.3.0
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/CHANGELOG.md +38 -0
- package/dist/{AiChatPanel-DRCY3T2Z.js → AiChatPanel-7UQA25FA.js} +28 -28
- package/dist/AiChatPanel-7UQA25FA.js.br +0 -0
- package/dist/AiChatPanel-7UQA25FA.js.gz +0 -0
- package/dist/{AiChatPanel-Y2RKSHOO.mjs → AiChatPanel-UCEK3ZTD.mjs} +4 -4
- package/dist/AiChatPanel-UCEK3ZTD.mjs.br +0 -0
- package/dist/AiChatPanel-UCEK3ZTD.mjs.gz +0 -0
- package/dist/{Model3DScene-ITHRMCLT.mjs → Model3DScene-AI2JTBQM.mjs} +1 -1
- package/dist/Model3DScene-AI2JTBQM.mjs.br +0 -0
- package/dist/Model3DScene-AI2JTBQM.mjs.gz +0 -0
- package/dist/{Model3DScene-VJZS726S.js → Model3DScene-X3DS3ELB.js} +2 -2
- package/dist/Model3DScene-X3DS3ELB.js.br +0 -0
- package/dist/Model3DScene-X3DS3ELB.js.gz +0 -0
- package/dist/{chunk-IXS7DALE.js → OrbitControls-4TDJCTBA.js} +1 -0
- package/dist/OrbitControls-4TDJCTBA.js.br +0 -0
- package/dist/OrbitControls-4TDJCTBA.js.gz +0 -0
- package/dist/{chunk-MV2GCDBR.mjs → OrbitControls-WCOIJFFL.mjs} +1 -0
- package/dist/OrbitControls-WCOIJFFL.mjs.br +0 -0
- package/dist/OrbitControls-WCOIJFFL.mjs.gz +0 -0
- package/dist/{chunk-FT3MMIXW.mjs → chunk-3UWJWJCR.mjs} +69243 -56884
- package/dist/chunk-3UWJWJCR.mjs.br +0 -0
- package/dist/chunk-3UWJWJCR.mjs.gz +0 -0
- package/dist/{chunk-LNSYROED.js → chunk-42XEZVUQ.js} +1322 -1216
- package/dist/chunk-42XEZVUQ.js.br +0 -0
- package/dist/chunk-42XEZVUQ.js.gz +0 -0
- package/dist/{chunk-P5LF34BT.js → chunk-E7O4HTS5.js} +195 -187
- package/dist/chunk-E7O4HTS5.js.br +0 -0
- package/dist/chunk-E7O4HTS5.js.gz +0 -0
- package/dist/{chunk-2O66VMWK.js → chunk-KAO5USPE.js} +5 -5
- package/dist/chunk-KAO5USPE.js.br +0 -0
- package/dist/chunk-KAO5USPE.js.gz +0 -0
- package/dist/{chunk-PC7H3C5W.mjs → chunk-OBQ453H6.mjs} +2 -2
- package/dist/chunk-OBQ453H6.mjs.br +0 -0
- package/dist/chunk-OBQ453H6.mjs.gz +0 -0
- package/dist/{chunk-KDTE5JOW.mjs → chunk-PLDG3CXW.mjs} +18 -10
- package/dist/chunk-PLDG3CXW.mjs.br +0 -0
- package/dist/chunk-PLDG3CXW.mjs.gz +0 -0
- package/dist/{chunk-YHTDDCSC.mjs → chunk-RXYLPESV.mjs} +265 -159
- package/dist/chunk-RXYLPESV.mjs.br +0 -0
- package/dist/chunk-RXYLPESV.mjs.gz +0 -0
- package/dist/{chunk-OFSKGB3W.mjs → chunk-SKTZSG7Q.mjs} +531 -748
- package/dist/chunk-SKTZSG7Q.mjs.br +0 -0
- package/dist/chunk-SKTZSG7Q.mjs.gz +0 -0
- package/dist/{chunk-QMSSDBKN.js → chunk-UTI4CLYJ.js} +69255 -56897
- package/dist/chunk-UTI4CLYJ.js.br +0 -0
- package/dist/chunk-UTI4CLYJ.js.gz +0 -0
- package/dist/{chunk-NXGUR2DO.js → chunk-W5KLLGVH.js} +2 -2
- package/dist/chunk-W5KLLGVH.js.br +0 -0
- package/dist/chunk-W5KLLGVH.js.gz +0 -0
- package/dist/{chunk-VWGJXNMR.js → chunk-Y7LI2JIR.js} +1992 -2215
- package/dist/chunk-Y7LI2JIR.js.br +0 -0
- package/dist/chunk-Y7LI2JIR.js.gz +0 -0
- package/dist/{chunk-QEYWSHNE.mjs → chunk-YQJOCGOK.mjs} +1 -1
- package/dist/chunk-YQJOCGOK.mjs.br +0 -0
- package/dist/chunk-YQJOCGOK.mjs.gz +0 -0
- package/dist/i18n/de.cjs +2 -2
- package/dist/i18n/de.cjs.br +0 -0
- package/dist/i18n/de.cjs.gz +0 -0
- package/dist/i18n/de.mjs +2 -2
- package/dist/i18n/de.mjs.br +0 -0
- package/dist/i18n/de.mjs.gz +0 -0
- package/dist/i18n/es.cjs +2 -2
- package/dist/i18n/es.cjs.br +0 -0
- package/dist/i18n/es.cjs.gz +0 -0
- package/dist/i18n/es.mjs +2 -2
- package/dist/i18n/es.mjs.br +0 -0
- package/dist/i18n/es.mjs.gz +0 -0
- package/dist/i18n/fr.cjs +2 -2
- package/dist/i18n/fr.cjs.br +0 -0
- package/dist/i18n/fr.cjs.gz +0 -0
- package/dist/i18n/fr.mjs +2 -2
- package/dist/i18n/fr.mjs.br +0 -0
- package/dist/i18n/fr.mjs.gz +0 -0
- package/dist/i18n/zh-CN.cjs +2 -2
- package/dist/i18n/zh-CN.cjs.br +0 -0
- package/dist/i18n/zh-CN.cjs.gz +0 -0
- package/dist/i18n/zh-CN.mjs +2 -2
- package/dist/i18n/zh-CN.mjs.br +0 -0
- package/dist/i18n/zh-CN.mjs.gz +0 -0
- package/dist/i18n.js +4 -4
- package/dist/i18n.js.br +0 -0
- package/dist/i18n.js.gz +0 -0
- package/dist/i18n.mjs +1 -1
- package/dist/i18n.mjs.br +0 -0
- package/dist/i18n.mjs.gz +0 -0
- package/dist/index.d.ts +310 -22
- package/dist/index.js +49 -49
- package/dist/index.js.br +0 -0
- package/dist/index.js.gz +0 -0
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.br +0 -0
- package/dist/index.mjs.gz +0 -0
- package/dist/internals.d.ts +358 -22
- package/dist/internals.js +105 -105
- package/dist/internals.js.br +0 -0
- package/dist/internals.js.gz +0 -0
- package/dist/internals.mjs +4 -4
- package/dist/internals.mjs.br +0 -0
- package/dist/internals.mjs.gz +0 -0
- package/dist/pptx-viewer.css +1 -1
- package/dist/pptx-viewer.css.br +0 -0
- package/dist/pptx-viewer.css.gz +0 -0
- package/dist/viewer/index.d.ts +278 -3
- package/dist/viewer/index.js +27 -27
- package/dist/viewer/index.js.br +0 -0
- package/dist/viewer/index.js.gz +0 -0
- package/dist/viewer/index.mjs +6 -6
- package/dist/viewer/index.mjs.br +0 -0
- package/dist/viewer/index.mjs.gz +0 -0
- package/package.json +1 -1
- package/dist/AiChatPanel-DRCY3T2Z.js.br +0 -0
- package/dist/AiChatPanel-DRCY3T2Z.js.gz +0 -0
- package/dist/AiChatPanel-Y2RKSHOO.mjs.br +0 -0
- package/dist/AiChatPanel-Y2RKSHOO.mjs.gz +0 -0
- package/dist/Area3DChartScene-J4LMNSGM.js +0 -64
- package/dist/Area3DChartScene-J4LMNSGM.js.br +0 -0
- package/dist/Area3DChartScene-J4LMNSGM.js.gz +0 -0
- package/dist/Area3DChartScene-TDACCSOI.mjs +0 -62
- package/dist/Area3DChartScene-TDACCSOI.mjs.br +0 -0
- package/dist/Area3DChartScene-TDACCSOI.mjs.gz +0 -0
- package/dist/Bar3DChartScene-AD72DLBJ.mjs +0 -62
- package/dist/Bar3DChartScene-AD72DLBJ.mjs.br +0 -0
- package/dist/Bar3DChartScene-AD72DLBJ.mjs.gz +0 -0
- package/dist/Bar3DChartScene-T7334CTK.js +0 -64
- package/dist/Bar3DChartScene-T7334CTK.js.br +0 -0
- package/dist/Bar3DChartScene-T7334CTK.js.gz +0 -0
- package/dist/Line3DChartScene-2ZQSCHK3.mjs +0 -62
- package/dist/Line3DChartScene-2ZQSCHK3.mjs.br +0 -0
- package/dist/Line3DChartScene-2ZQSCHK3.mjs.gz +0 -0
- package/dist/Line3DChartScene-ELVKCFJZ.js +0 -64
- package/dist/Line3DChartScene-ELVKCFJZ.js.br +0 -0
- package/dist/Line3DChartScene-ELVKCFJZ.js.gz +0 -0
- package/dist/Model3DScene-ITHRMCLT.mjs.br +0 -0
- package/dist/Model3DScene-ITHRMCLT.mjs.gz +0 -0
- package/dist/Model3DScene-VJZS726S.js.br +0 -0
- package/dist/Model3DScene-VJZS726S.js.gz +0 -0
- package/dist/OrbitControls-2XOMWUVE.mjs +0 -3
- package/dist/OrbitControls-2XOMWUVE.mjs.br +0 -0
- package/dist/OrbitControls-2XOMWUVE.mjs.gz +0 -0
- package/dist/OrbitControls-CGYUF3BY.js +0 -12
- package/dist/OrbitControls-CGYUF3BY.js.br +0 -0
- package/dist/OrbitControls-CGYUF3BY.js.gz +0 -0
- package/dist/PieChart3DScene-N3DM33FW.js +0 -58
- package/dist/PieChart3DScene-N3DM33FW.js.br +0 -0
- package/dist/PieChart3DScene-N3DM33FW.js.gz +0 -0
- package/dist/PieChart3DScene-PYHOA7BO.mjs +0 -56
- package/dist/PieChart3DScene-PYHOA7BO.mjs.br +0 -0
- package/dist/PieChart3DScene-PYHOA7BO.mjs.gz +0 -0
- package/dist/SmartArt3DScene-D4VNNPHS.mjs +0 -500
- package/dist/SmartArt3DScene-D4VNNPHS.mjs.br +0 -0
- package/dist/SmartArt3DScene-D4VNNPHS.mjs.gz +0 -0
- package/dist/SmartArt3DScene-NHD7CZJ5.js +0 -502
- package/dist/SmartArt3DScene-NHD7CZJ5.js.br +0 -0
- package/dist/SmartArt3DScene-NHD7CZJ5.js.gz +0 -0
- package/dist/SurfaceChart3DScene-IFBUOLNB.mjs +0 -62
- package/dist/SurfaceChart3DScene-IFBUOLNB.mjs.br +0 -0
- package/dist/SurfaceChart3DScene-IFBUOLNB.mjs.gz +0 -0
- package/dist/SurfaceChart3DScene-PUWIMT7V.js +0 -64
- package/dist/SurfaceChart3DScene-PUWIMT7V.js.br +0 -0
- package/dist/SurfaceChart3DScene-PUWIMT7V.js.gz +0 -0
- package/dist/chunk-2O66VMWK.js.br +0 -0
- package/dist/chunk-2O66VMWK.js.gz +0 -0
- package/dist/chunk-DNR6CH6I.js +0 -30
- package/dist/chunk-DNR6CH6I.js.br +0 -0
- package/dist/chunk-DNR6CH6I.js.gz +0 -0
- package/dist/chunk-FT3MMIXW.mjs.br +0 -0
- package/dist/chunk-FT3MMIXW.mjs.gz +0 -0
- package/dist/chunk-IXS7DALE.js.br +0 -0
- package/dist/chunk-IXS7DALE.js.gz +0 -0
- package/dist/chunk-KDTE5JOW.mjs.br +0 -0
- package/dist/chunk-KDTE5JOW.mjs.gz +0 -0
- package/dist/chunk-LNSYROED.js.br +0 -0
- package/dist/chunk-LNSYROED.js.gz +0 -0
- package/dist/chunk-MV2GCDBR.mjs.br +0 -0
- package/dist/chunk-MV2GCDBR.mjs.gz +0 -0
- package/dist/chunk-NXGUR2DO.js.br +0 -0
- package/dist/chunk-NXGUR2DO.js.gz +0 -0
- package/dist/chunk-OFSKGB3W.mjs.br +0 -0
- package/dist/chunk-OFSKGB3W.mjs.gz +0 -0
- package/dist/chunk-P5LF34BT.js.br +0 -0
- package/dist/chunk-P5LF34BT.js.gz +0 -0
- package/dist/chunk-PC7H3C5W.mjs.br +0 -0
- package/dist/chunk-PC7H3C5W.mjs.gz +0 -0
- package/dist/chunk-QEYWSHNE.mjs.br +0 -0
- package/dist/chunk-QEYWSHNE.mjs.gz +0 -0
- package/dist/chunk-QMSSDBKN.js.br +0 -0
- package/dist/chunk-QMSSDBKN.js.gz +0 -0
- package/dist/chunk-T6GFCLSM.mjs +0 -27
- package/dist/chunk-T6GFCLSM.mjs.br +0 -4
- package/dist/chunk-T6GFCLSM.mjs.gz +0 -0
- package/dist/chunk-VWGJXNMR.js.br +0 -0
- package/dist/chunk-VWGJXNMR.js.gz +0 -0
- package/dist/chunk-YHTDDCSC.mjs.br +0 -0
- package/dist/chunk-YHTDDCSC.mjs.gz +0 -0
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { useStableChart3DInteraction, useLatestRef } from './chunk-T6GFCLSM.mjs';
|
|
2
|
-
import { mountAreaChart3D } from './chunk-FT3MMIXW.mjs';
|
|
3
|
-
import './chunk-XGB3TDIC.mjs';
|
|
4
|
-
import { useRef, useEffect } from 'react';
|
|
5
|
-
import { jsx } from 'react/jsx-runtime';
|
|
6
|
-
|
|
7
|
-
function Area3DChartScene({
|
|
8
|
-
options,
|
|
9
|
-
interaction,
|
|
10
|
-
selectedPart = null,
|
|
11
|
-
textStyle
|
|
12
|
-
}) {
|
|
13
|
-
const containerRef = useRef(null);
|
|
14
|
-
const handleRef = useRef(null);
|
|
15
|
-
const stableInteraction = useStableChart3DInteraction(interaction);
|
|
16
|
-
const selectedPartRef = useLatestRef(selectedPart);
|
|
17
|
-
const textStyleRef = useLatestRef(textStyle);
|
|
18
|
-
useEffect(() => {
|
|
19
|
-
const container = containerRef.current;
|
|
20
|
-
if (!container) {
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
23
|
-
let disposed = false;
|
|
24
|
-
void mountAreaChart3D(container, options, stableInteraction).then((handle) => {
|
|
25
|
-
if (disposed) {
|
|
26
|
-
handle.dispose();
|
|
27
|
-
} else {
|
|
28
|
-
handleRef.current = handle;
|
|
29
|
-
handle.setSelectedPart(selectedPartRef.current);
|
|
30
|
-
handle.setTextStyle(textStyleRef.current);
|
|
31
|
-
}
|
|
32
|
-
return void 0;
|
|
33
|
-
});
|
|
34
|
-
return () => {
|
|
35
|
-
disposed = true;
|
|
36
|
-
handleRef.current?.dispose();
|
|
37
|
-
handleRef.current = null;
|
|
38
|
-
};
|
|
39
|
-
}, [options, stableInteraction]);
|
|
40
|
-
useEffect(() => {
|
|
41
|
-
handleRef.current?.resize(options.width, options.height);
|
|
42
|
-
}, [options.width, options.height]);
|
|
43
|
-
useEffect(() => {
|
|
44
|
-
handleRef.current?.setSelectedPart(selectedPart);
|
|
45
|
-
}, [selectedPart]);
|
|
46
|
-
useEffect(() => {
|
|
47
|
-
handleRef.current?.setTextStyle(textStyle);
|
|
48
|
-
}, [textStyle]);
|
|
49
|
-
return /* @__PURE__ */ jsx(
|
|
50
|
-
"div",
|
|
51
|
-
{
|
|
52
|
-
ref: containerRef,
|
|
53
|
-
style: {
|
|
54
|
-
width: options.width,
|
|
55
|
-
height: options.height,
|
|
56
|
-
willChange: "transform"
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export { Area3DChartScene as default };
|
|
Binary file
|
|
Binary file
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { useStableChart3DInteraction, useLatestRef } from './chunk-T6GFCLSM.mjs';
|
|
2
|
-
import { mountBarChart3D } from './chunk-FT3MMIXW.mjs';
|
|
3
|
-
import './chunk-XGB3TDIC.mjs';
|
|
4
|
-
import { useRef, useEffect } from 'react';
|
|
5
|
-
import { jsx } from 'react/jsx-runtime';
|
|
6
|
-
|
|
7
|
-
function Bar3DChartScene({
|
|
8
|
-
options,
|
|
9
|
-
interaction,
|
|
10
|
-
selectedPart = null,
|
|
11
|
-
textStyle
|
|
12
|
-
}) {
|
|
13
|
-
const containerRef = useRef(null);
|
|
14
|
-
const handleRef = useRef(null);
|
|
15
|
-
const stableInteraction = useStableChart3DInteraction(interaction);
|
|
16
|
-
const selectedPartRef = useLatestRef(selectedPart);
|
|
17
|
-
const textStyleRef = useLatestRef(textStyle);
|
|
18
|
-
useEffect(() => {
|
|
19
|
-
const container = containerRef.current;
|
|
20
|
-
if (!container) {
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
23
|
-
let disposed = false;
|
|
24
|
-
void mountBarChart3D(container, options, stableInteraction).then((handle) => {
|
|
25
|
-
if (disposed) {
|
|
26
|
-
handle.dispose();
|
|
27
|
-
} else {
|
|
28
|
-
handleRef.current = handle;
|
|
29
|
-
handle.setSelectedPart(selectedPartRef.current);
|
|
30
|
-
handle.setTextStyle(textStyleRef.current);
|
|
31
|
-
}
|
|
32
|
-
return void 0;
|
|
33
|
-
});
|
|
34
|
-
return () => {
|
|
35
|
-
disposed = true;
|
|
36
|
-
handleRef.current?.dispose();
|
|
37
|
-
handleRef.current = null;
|
|
38
|
-
};
|
|
39
|
-
}, [options, stableInteraction]);
|
|
40
|
-
useEffect(() => {
|
|
41
|
-
handleRef.current?.resize(options.width, options.height);
|
|
42
|
-
}, [options.width, options.height]);
|
|
43
|
-
useEffect(() => {
|
|
44
|
-
handleRef.current?.setSelectedPart(selectedPart);
|
|
45
|
-
}, [selectedPart]);
|
|
46
|
-
useEffect(() => {
|
|
47
|
-
handleRef.current?.setTextStyle(textStyle);
|
|
48
|
-
}, [textStyle]);
|
|
49
|
-
return /* @__PURE__ */ jsx(
|
|
50
|
-
"div",
|
|
51
|
-
{
|
|
52
|
-
ref: containerRef,
|
|
53
|
-
style: {
|
|
54
|
-
width: options.width,
|
|
55
|
-
height: options.height,
|
|
56
|
-
willChange: "transform"
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export { Bar3DChartScene as default };
|
|
Binary file
|
|
Binary file
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkDNR6CH6I_js = require('./chunk-DNR6CH6I.js');
|
|
4
|
-
var chunkQMSSDBKN_js = require('./chunk-QMSSDBKN.js');
|
|
5
|
-
require('./chunk-4VNS5WPM.js');
|
|
6
|
-
var react = require('react');
|
|
7
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
8
|
-
|
|
9
|
-
function Bar3DChartScene({
|
|
10
|
-
options,
|
|
11
|
-
interaction,
|
|
12
|
-
selectedPart = null,
|
|
13
|
-
textStyle
|
|
14
|
-
}) {
|
|
15
|
-
const containerRef = react.useRef(null);
|
|
16
|
-
const handleRef = react.useRef(null);
|
|
17
|
-
const stableInteraction = chunkDNR6CH6I_js.useStableChart3DInteraction(interaction);
|
|
18
|
-
const selectedPartRef = chunkDNR6CH6I_js.useLatestRef(selectedPart);
|
|
19
|
-
const textStyleRef = chunkDNR6CH6I_js.useLatestRef(textStyle);
|
|
20
|
-
react.useEffect(() => {
|
|
21
|
-
const container = containerRef.current;
|
|
22
|
-
if (!container) {
|
|
23
|
-
return;
|
|
24
|
-
}
|
|
25
|
-
let disposed = false;
|
|
26
|
-
void chunkQMSSDBKN_js.mountBarChart3D(container, options, stableInteraction).then((handle) => {
|
|
27
|
-
if (disposed) {
|
|
28
|
-
handle.dispose();
|
|
29
|
-
} else {
|
|
30
|
-
handleRef.current = handle;
|
|
31
|
-
handle.setSelectedPart(selectedPartRef.current);
|
|
32
|
-
handle.setTextStyle(textStyleRef.current);
|
|
33
|
-
}
|
|
34
|
-
return void 0;
|
|
35
|
-
});
|
|
36
|
-
return () => {
|
|
37
|
-
disposed = true;
|
|
38
|
-
handleRef.current?.dispose();
|
|
39
|
-
handleRef.current = null;
|
|
40
|
-
};
|
|
41
|
-
}, [options, stableInteraction]);
|
|
42
|
-
react.useEffect(() => {
|
|
43
|
-
handleRef.current?.resize(options.width, options.height);
|
|
44
|
-
}, [options.width, options.height]);
|
|
45
|
-
react.useEffect(() => {
|
|
46
|
-
handleRef.current?.setSelectedPart(selectedPart);
|
|
47
|
-
}, [selectedPart]);
|
|
48
|
-
react.useEffect(() => {
|
|
49
|
-
handleRef.current?.setTextStyle(textStyle);
|
|
50
|
-
}, [textStyle]);
|
|
51
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
52
|
-
"div",
|
|
53
|
-
{
|
|
54
|
-
ref: containerRef,
|
|
55
|
-
style: {
|
|
56
|
-
width: options.width,
|
|
57
|
-
height: options.height,
|
|
58
|
-
willChange: "transform"
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
module.exports = Bar3DChartScene;
|
|
Binary file
|
|
Binary file
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { useStableChart3DInteraction, useLatestRef } from './chunk-T6GFCLSM.mjs';
|
|
2
|
-
import { mountLineChart3D } from './chunk-FT3MMIXW.mjs';
|
|
3
|
-
import './chunk-XGB3TDIC.mjs';
|
|
4
|
-
import { useRef, useEffect } from 'react';
|
|
5
|
-
import { jsx } from 'react/jsx-runtime';
|
|
6
|
-
|
|
7
|
-
function Line3DChartScene({
|
|
8
|
-
options,
|
|
9
|
-
interaction,
|
|
10
|
-
selectedPart = null,
|
|
11
|
-
textStyle
|
|
12
|
-
}) {
|
|
13
|
-
const containerRef = useRef(null);
|
|
14
|
-
const handleRef = useRef(null);
|
|
15
|
-
const stableInteraction = useStableChart3DInteraction(interaction);
|
|
16
|
-
const selectedPartRef = useLatestRef(selectedPart);
|
|
17
|
-
const textStyleRef = useLatestRef(textStyle);
|
|
18
|
-
useEffect(() => {
|
|
19
|
-
const container = containerRef.current;
|
|
20
|
-
if (!container) {
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
23
|
-
let disposed = false;
|
|
24
|
-
void mountLineChart3D(container, options, stableInteraction).then((handle) => {
|
|
25
|
-
if (disposed) {
|
|
26
|
-
handle.dispose();
|
|
27
|
-
} else {
|
|
28
|
-
handleRef.current = handle;
|
|
29
|
-
handle.setSelectedPart(selectedPartRef.current);
|
|
30
|
-
handle.setTextStyle(textStyleRef.current);
|
|
31
|
-
}
|
|
32
|
-
return void 0;
|
|
33
|
-
});
|
|
34
|
-
return () => {
|
|
35
|
-
disposed = true;
|
|
36
|
-
handleRef.current?.dispose();
|
|
37
|
-
handleRef.current = null;
|
|
38
|
-
};
|
|
39
|
-
}, [options, stableInteraction]);
|
|
40
|
-
useEffect(() => {
|
|
41
|
-
handleRef.current?.resize(options.width, options.height);
|
|
42
|
-
}, [options.width, options.height]);
|
|
43
|
-
useEffect(() => {
|
|
44
|
-
handleRef.current?.setSelectedPart(selectedPart);
|
|
45
|
-
}, [selectedPart]);
|
|
46
|
-
useEffect(() => {
|
|
47
|
-
handleRef.current?.setTextStyle(textStyle);
|
|
48
|
-
}, [textStyle]);
|
|
49
|
-
return /* @__PURE__ */ jsx(
|
|
50
|
-
"div",
|
|
51
|
-
{
|
|
52
|
-
ref: containerRef,
|
|
53
|
-
style: {
|
|
54
|
-
width: options.width,
|
|
55
|
-
height: options.height,
|
|
56
|
-
willChange: "transform"
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export { Line3DChartScene as default };
|
|
Binary file
|
|
Binary file
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkDNR6CH6I_js = require('./chunk-DNR6CH6I.js');
|
|
4
|
-
var chunkQMSSDBKN_js = require('./chunk-QMSSDBKN.js');
|
|
5
|
-
require('./chunk-4VNS5WPM.js');
|
|
6
|
-
var react = require('react');
|
|
7
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
8
|
-
|
|
9
|
-
function Line3DChartScene({
|
|
10
|
-
options,
|
|
11
|
-
interaction,
|
|
12
|
-
selectedPart = null,
|
|
13
|
-
textStyle
|
|
14
|
-
}) {
|
|
15
|
-
const containerRef = react.useRef(null);
|
|
16
|
-
const handleRef = react.useRef(null);
|
|
17
|
-
const stableInteraction = chunkDNR6CH6I_js.useStableChart3DInteraction(interaction);
|
|
18
|
-
const selectedPartRef = chunkDNR6CH6I_js.useLatestRef(selectedPart);
|
|
19
|
-
const textStyleRef = chunkDNR6CH6I_js.useLatestRef(textStyle);
|
|
20
|
-
react.useEffect(() => {
|
|
21
|
-
const container = containerRef.current;
|
|
22
|
-
if (!container) {
|
|
23
|
-
return;
|
|
24
|
-
}
|
|
25
|
-
let disposed = false;
|
|
26
|
-
void chunkQMSSDBKN_js.mountLineChart3D(container, options, stableInteraction).then((handle) => {
|
|
27
|
-
if (disposed) {
|
|
28
|
-
handle.dispose();
|
|
29
|
-
} else {
|
|
30
|
-
handleRef.current = handle;
|
|
31
|
-
handle.setSelectedPart(selectedPartRef.current);
|
|
32
|
-
handle.setTextStyle(textStyleRef.current);
|
|
33
|
-
}
|
|
34
|
-
return void 0;
|
|
35
|
-
});
|
|
36
|
-
return () => {
|
|
37
|
-
disposed = true;
|
|
38
|
-
handleRef.current?.dispose();
|
|
39
|
-
handleRef.current = null;
|
|
40
|
-
};
|
|
41
|
-
}, [options, stableInteraction]);
|
|
42
|
-
react.useEffect(() => {
|
|
43
|
-
handleRef.current?.resize(options.width, options.height);
|
|
44
|
-
}, [options.width, options.height]);
|
|
45
|
-
react.useEffect(() => {
|
|
46
|
-
handleRef.current?.setSelectedPart(selectedPart);
|
|
47
|
-
}, [selectedPart]);
|
|
48
|
-
react.useEffect(() => {
|
|
49
|
-
handleRef.current?.setTextStyle(textStyle);
|
|
50
|
-
}, [textStyle]);
|
|
51
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
52
|
-
"div",
|
|
53
|
-
{
|
|
54
|
-
ref: containerRef,
|
|
55
|
-
style: {
|
|
56
|
-
width: options.width,
|
|
57
|
-
height: options.height,
|
|
58
|
-
willChange: "transform"
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
module.exports = Line3DChartScene;
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkIXS7DALE_js = require('./chunk-IXS7DALE.js');
|
|
4
|
-
require('./chunk-3N6AC4HA.js');
|
|
5
|
-
require('./chunk-4VNS5WPM.js');
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
Object.defineProperty(exports, "OrbitControls", {
|
|
10
|
-
enumerable: true,
|
|
11
|
-
get: function () { return chunkIXS7DALE_js.OrbitControls; }
|
|
12
|
-
});
|
|
Binary file
|
|
Binary file
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkDNR6CH6I_js = require('./chunk-DNR6CH6I.js');
|
|
4
|
-
var chunkQMSSDBKN_js = require('./chunk-QMSSDBKN.js');
|
|
5
|
-
require('./chunk-4VNS5WPM.js');
|
|
6
|
-
var react = require('react');
|
|
7
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
8
|
-
|
|
9
|
-
function PieChart3DScene({
|
|
10
|
-
options,
|
|
11
|
-
interaction,
|
|
12
|
-
selectedPart = null
|
|
13
|
-
}) {
|
|
14
|
-
const containerRef = react.useRef(null);
|
|
15
|
-
const handleRef = react.useRef(null);
|
|
16
|
-
const stableInteraction = chunkDNR6CH6I_js.useStableChart3DInteraction(interaction);
|
|
17
|
-
const selectedPartRef = chunkDNR6CH6I_js.useLatestRef(selectedPart);
|
|
18
|
-
react.useEffect(() => {
|
|
19
|
-
const container = containerRef.current;
|
|
20
|
-
if (!container) {
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
23
|
-
let disposed = false;
|
|
24
|
-
void chunkQMSSDBKN_js.mountPieChart3D(container, options, stableInteraction).then((handle) => {
|
|
25
|
-
if (disposed) {
|
|
26
|
-
handle.dispose();
|
|
27
|
-
} else {
|
|
28
|
-
handleRef.current = handle;
|
|
29
|
-
handle.setSelectedPart(selectedPartRef.current);
|
|
30
|
-
}
|
|
31
|
-
return void 0;
|
|
32
|
-
});
|
|
33
|
-
return () => {
|
|
34
|
-
disposed = true;
|
|
35
|
-
handleRef.current?.dispose();
|
|
36
|
-
handleRef.current = null;
|
|
37
|
-
};
|
|
38
|
-
}, [options, stableInteraction]);
|
|
39
|
-
react.useEffect(() => {
|
|
40
|
-
handleRef.current?.resize(options.width, options.height);
|
|
41
|
-
}, [options.width, options.height]);
|
|
42
|
-
react.useEffect(() => {
|
|
43
|
-
handleRef.current?.setSelectedPart(selectedPart);
|
|
44
|
-
}, [selectedPart]);
|
|
45
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
46
|
-
"div",
|
|
47
|
-
{
|
|
48
|
-
ref: containerRef,
|
|
49
|
-
style: {
|
|
50
|
-
width: options.width,
|
|
51
|
-
height: options.height,
|
|
52
|
-
willChange: "transform"
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
module.exports = PieChart3DScene;
|
|
Binary file
|
|
Binary file
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { useStableChart3DInteraction, useLatestRef } from './chunk-T6GFCLSM.mjs';
|
|
2
|
-
import { mountPieChart3D } from './chunk-FT3MMIXW.mjs';
|
|
3
|
-
import './chunk-XGB3TDIC.mjs';
|
|
4
|
-
import { useRef, useEffect } from 'react';
|
|
5
|
-
import { jsx } from 'react/jsx-runtime';
|
|
6
|
-
|
|
7
|
-
function PieChart3DScene({
|
|
8
|
-
options,
|
|
9
|
-
interaction,
|
|
10
|
-
selectedPart = null
|
|
11
|
-
}) {
|
|
12
|
-
const containerRef = useRef(null);
|
|
13
|
-
const handleRef = useRef(null);
|
|
14
|
-
const stableInteraction = useStableChart3DInteraction(interaction);
|
|
15
|
-
const selectedPartRef = useLatestRef(selectedPart);
|
|
16
|
-
useEffect(() => {
|
|
17
|
-
const container = containerRef.current;
|
|
18
|
-
if (!container) {
|
|
19
|
-
return;
|
|
20
|
-
}
|
|
21
|
-
let disposed = false;
|
|
22
|
-
void mountPieChart3D(container, options, stableInteraction).then((handle) => {
|
|
23
|
-
if (disposed) {
|
|
24
|
-
handle.dispose();
|
|
25
|
-
} else {
|
|
26
|
-
handleRef.current = handle;
|
|
27
|
-
handle.setSelectedPart(selectedPartRef.current);
|
|
28
|
-
}
|
|
29
|
-
return void 0;
|
|
30
|
-
});
|
|
31
|
-
return () => {
|
|
32
|
-
disposed = true;
|
|
33
|
-
handleRef.current?.dispose();
|
|
34
|
-
handleRef.current = null;
|
|
35
|
-
};
|
|
36
|
-
}, [options, stableInteraction]);
|
|
37
|
-
useEffect(() => {
|
|
38
|
-
handleRef.current?.resize(options.width, options.height);
|
|
39
|
-
}, [options.width, options.height]);
|
|
40
|
-
useEffect(() => {
|
|
41
|
-
handleRef.current?.setSelectedPart(selectedPart);
|
|
42
|
-
}, [selectedPart]);
|
|
43
|
-
return /* @__PURE__ */ jsx(
|
|
44
|
-
"div",
|
|
45
|
-
{
|
|
46
|
-
ref: containerRef,
|
|
47
|
-
style: {
|
|
48
|
-
width: options.width,
|
|
49
|
-
height: options.height,
|
|
50
|
-
willChange: "transform"
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export { PieChart3DScene as default };
|
|
Binary file
|
|
Binary file
|