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.
Files changed (194) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/dist/{AiChatPanel-DRCY3T2Z.js → AiChatPanel-7UQA25FA.js} +28 -28
  3. package/dist/AiChatPanel-7UQA25FA.js.br +0 -0
  4. package/dist/AiChatPanel-7UQA25FA.js.gz +0 -0
  5. package/dist/{AiChatPanel-Y2RKSHOO.mjs → AiChatPanel-UCEK3ZTD.mjs} +4 -4
  6. package/dist/AiChatPanel-UCEK3ZTD.mjs.br +0 -0
  7. package/dist/AiChatPanel-UCEK3ZTD.mjs.gz +0 -0
  8. package/dist/{Model3DScene-ITHRMCLT.mjs → Model3DScene-AI2JTBQM.mjs} +1 -1
  9. package/dist/Model3DScene-AI2JTBQM.mjs.br +0 -0
  10. package/dist/Model3DScene-AI2JTBQM.mjs.gz +0 -0
  11. package/dist/{Model3DScene-VJZS726S.js → Model3DScene-X3DS3ELB.js} +2 -2
  12. package/dist/Model3DScene-X3DS3ELB.js.br +0 -0
  13. package/dist/Model3DScene-X3DS3ELB.js.gz +0 -0
  14. package/dist/{chunk-IXS7DALE.js → OrbitControls-4TDJCTBA.js} +1 -0
  15. package/dist/OrbitControls-4TDJCTBA.js.br +0 -0
  16. package/dist/OrbitControls-4TDJCTBA.js.gz +0 -0
  17. package/dist/{chunk-MV2GCDBR.mjs → OrbitControls-WCOIJFFL.mjs} +1 -0
  18. package/dist/OrbitControls-WCOIJFFL.mjs.br +0 -0
  19. package/dist/OrbitControls-WCOIJFFL.mjs.gz +0 -0
  20. package/dist/{chunk-FT3MMIXW.mjs → chunk-3UWJWJCR.mjs} +69243 -56884
  21. package/dist/chunk-3UWJWJCR.mjs.br +0 -0
  22. package/dist/chunk-3UWJWJCR.mjs.gz +0 -0
  23. package/dist/{chunk-LNSYROED.js → chunk-42XEZVUQ.js} +1322 -1216
  24. package/dist/chunk-42XEZVUQ.js.br +0 -0
  25. package/dist/chunk-42XEZVUQ.js.gz +0 -0
  26. package/dist/{chunk-P5LF34BT.js → chunk-E7O4HTS5.js} +195 -187
  27. package/dist/chunk-E7O4HTS5.js.br +0 -0
  28. package/dist/chunk-E7O4HTS5.js.gz +0 -0
  29. package/dist/{chunk-2O66VMWK.js → chunk-KAO5USPE.js} +5 -5
  30. package/dist/chunk-KAO5USPE.js.br +0 -0
  31. package/dist/chunk-KAO5USPE.js.gz +0 -0
  32. package/dist/{chunk-PC7H3C5W.mjs → chunk-OBQ453H6.mjs} +2 -2
  33. package/dist/chunk-OBQ453H6.mjs.br +0 -0
  34. package/dist/chunk-OBQ453H6.mjs.gz +0 -0
  35. package/dist/{chunk-KDTE5JOW.mjs → chunk-PLDG3CXW.mjs} +18 -10
  36. package/dist/chunk-PLDG3CXW.mjs.br +0 -0
  37. package/dist/chunk-PLDG3CXW.mjs.gz +0 -0
  38. package/dist/{chunk-YHTDDCSC.mjs → chunk-RXYLPESV.mjs} +265 -159
  39. package/dist/chunk-RXYLPESV.mjs.br +0 -0
  40. package/dist/chunk-RXYLPESV.mjs.gz +0 -0
  41. package/dist/{chunk-OFSKGB3W.mjs → chunk-SKTZSG7Q.mjs} +531 -748
  42. package/dist/chunk-SKTZSG7Q.mjs.br +0 -0
  43. package/dist/chunk-SKTZSG7Q.mjs.gz +0 -0
  44. package/dist/{chunk-QMSSDBKN.js → chunk-UTI4CLYJ.js} +69255 -56897
  45. package/dist/chunk-UTI4CLYJ.js.br +0 -0
  46. package/dist/chunk-UTI4CLYJ.js.gz +0 -0
  47. package/dist/{chunk-NXGUR2DO.js → chunk-W5KLLGVH.js} +2 -2
  48. package/dist/chunk-W5KLLGVH.js.br +0 -0
  49. package/dist/chunk-W5KLLGVH.js.gz +0 -0
  50. package/dist/{chunk-VWGJXNMR.js → chunk-Y7LI2JIR.js} +1992 -2215
  51. package/dist/chunk-Y7LI2JIR.js.br +0 -0
  52. package/dist/chunk-Y7LI2JIR.js.gz +0 -0
  53. package/dist/{chunk-QEYWSHNE.mjs → chunk-YQJOCGOK.mjs} +1 -1
  54. package/dist/chunk-YQJOCGOK.mjs.br +0 -0
  55. package/dist/chunk-YQJOCGOK.mjs.gz +0 -0
  56. package/dist/i18n/de.cjs +2 -2
  57. package/dist/i18n/de.cjs.br +0 -0
  58. package/dist/i18n/de.cjs.gz +0 -0
  59. package/dist/i18n/de.mjs +2 -2
  60. package/dist/i18n/de.mjs.br +0 -0
  61. package/dist/i18n/de.mjs.gz +0 -0
  62. package/dist/i18n/es.cjs +2 -2
  63. package/dist/i18n/es.cjs.br +0 -0
  64. package/dist/i18n/es.cjs.gz +0 -0
  65. package/dist/i18n/es.mjs +2 -2
  66. package/dist/i18n/es.mjs.br +0 -0
  67. package/dist/i18n/es.mjs.gz +0 -0
  68. package/dist/i18n/fr.cjs +2 -2
  69. package/dist/i18n/fr.cjs.br +0 -0
  70. package/dist/i18n/fr.cjs.gz +0 -0
  71. package/dist/i18n/fr.mjs +2 -2
  72. package/dist/i18n/fr.mjs.br +0 -0
  73. package/dist/i18n/fr.mjs.gz +0 -0
  74. package/dist/i18n/zh-CN.cjs +2 -2
  75. package/dist/i18n/zh-CN.cjs.br +0 -0
  76. package/dist/i18n/zh-CN.cjs.gz +0 -0
  77. package/dist/i18n/zh-CN.mjs +2 -2
  78. package/dist/i18n/zh-CN.mjs.br +0 -0
  79. package/dist/i18n/zh-CN.mjs.gz +0 -0
  80. package/dist/i18n.js +4 -4
  81. package/dist/i18n.js.br +0 -0
  82. package/dist/i18n.js.gz +0 -0
  83. package/dist/i18n.mjs +1 -1
  84. package/dist/i18n.mjs.br +0 -0
  85. package/dist/i18n.mjs.gz +0 -0
  86. package/dist/index.d.ts +310 -22
  87. package/dist/index.js +49 -49
  88. package/dist/index.js.br +0 -0
  89. package/dist/index.js.gz +0 -0
  90. package/dist/index.mjs +6 -6
  91. package/dist/index.mjs.br +0 -0
  92. package/dist/index.mjs.gz +0 -0
  93. package/dist/internals.d.ts +358 -22
  94. package/dist/internals.js +105 -105
  95. package/dist/internals.js.br +0 -0
  96. package/dist/internals.js.gz +0 -0
  97. package/dist/internals.mjs +4 -4
  98. package/dist/internals.mjs.br +0 -0
  99. package/dist/internals.mjs.gz +0 -0
  100. package/dist/pptx-viewer.css +1 -1
  101. package/dist/pptx-viewer.css.br +0 -0
  102. package/dist/pptx-viewer.css.gz +0 -0
  103. package/dist/viewer/index.d.ts +278 -3
  104. package/dist/viewer/index.js +27 -27
  105. package/dist/viewer/index.js.br +0 -0
  106. package/dist/viewer/index.js.gz +0 -0
  107. package/dist/viewer/index.mjs +6 -6
  108. package/dist/viewer/index.mjs.br +0 -0
  109. package/dist/viewer/index.mjs.gz +0 -0
  110. package/package.json +1 -1
  111. package/dist/AiChatPanel-DRCY3T2Z.js.br +0 -0
  112. package/dist/AiChatPanel-DRCY3T2Z.js.gz +0 -0
  113. package/dist/AiChatPanel-Y2RKSHOO.mjs.br +0 -0
  114. package/dist/AiChatPanel-Y2RKSHOO.mjs.gz +0 -0
  115. package/dist/Area3DChartScene-J4LMNSGM.js +0 -64
  116. package/dist/Area3DChartScene-J4LMNSGM.js.br +0 -0
  117. package/dist/Area3DChartScene-J4LMNSGM.js.gz +0 -0
  118. package/dist/Area3DChartScene-TDACCSOI.mjs +0 -62
  119. package/dist/Area3DChartScene-TDACCSOI.mjs.br +0 -0
  120. package/dist/Area3DChartScene-TDACCSOI.mjs.gz +0 -0
  121. package/dist/Bar3DChartScene-AD72DLBJ.mjs +0 -62
  122. package/dist/Bar3DChartScene-AD72DLBJ.mjs.br +0 -0
  123. package/dist/Bar3DChartScene-AD72DLBJ.mjs.gz +0 -0
  124. package/dist/Bar3DChartScene-T7334CTK.js +0 -64
  125. package/dist/Bar3DChartScene-T7334CTK.js.br +0 -0
  126. package/dist/Bar3DChartScene-T7334CTK.js.gz +0 -0
  127. package/dist/Line3DChartScene-2ZQSCHK3.mjs +0 -62
  128. package/dist/Line3DChartScene-2ZQSCHK3.mjs.br +0 -0
  129. package/dist/Line3DChartScene-2ZQSCHK3.mjs.gz +0 -0
  130. package/dist/Line3DChartScene-ELVKCFJZ.js +0 -64
  131. package/dist/Line3DChartScene-ELVKCFJZ.js.br +0 -0
  132. package/dist/Line3DChartScene-ELVKCFJZ.js.gz +0 -0
  133. package/dist/Model3DScene-ITHRMCLT.mjs.br +0 -0
  134. package/dist/Model3DScene-ITHRMCLT.mjs.gz +0 -0
  135. package/dist/Model3DScene-VJZS726S.js.br +0 -0
  136. package/dist/Model3DScene-VJZS726S.js.gz +0 -0
  137. package/dist/OrbitControls-2XOMWUVE.mjs +0 -3
  138. package/dist/OrbitControls-2XOMWUVE.mjs.br +0 -0
  139. package/dist/OrbitControls-2XOMWUVE.mjs.gz +0 -0
  140. package/dist/OrbitControls-CGYUF3BY.js +0 -12
  141. package/dist/OrbitControls-CGYUF3BY.js.br +0 -0
  142. package/dist/OrbitControls-CGYUF3BY.js.gz +0 -0
  143. package/dist/PieChart3DScene-N3DM33FW.js +0 -58
  144. package/dist/PieChart3DScene-N3DM33FW.js.br +0 -0
  145. package/dist/PieChart3DScene-N3DM33FW.js.gz +0 -0
  146. package/dist/PieChart3DScene-PYHOA7BO.mjs +0 -56
  147. package/dist/PieChart3DScene-PYHOA7BO.mjs.br +0 -0
  148. package/dist/PieChart3DScene-PYHOA7BO.mjs.gz +0 -0
  149. package/dist/SmartArt3DScene-D4VNNPHS.mjs +0 -500
  150. package/dist/SmartArt3DScene-D4VNNPHS.mjs.br +0 -0
  151. package/dist/SmartArt3DScene-D4VNNPHS.mjs.gz +0 -0
  152. package/dist/SmartArt3DScene-NHD7CZJ5.js +0 -502
  153. package/dist/SmartArt3DScene-NHD7CZJ5.js.br +0 -0
  154. package/dist/SmartArt3DScene-NHD7CZJ5.js.gz +0 -0
  155. package/dist/SurfaceChart3DScene-IFBUOLNB.mjs +0 -62
  156. package/dist/SurfaceChart3DScene-IFBUOLNB.mjs.br +0 -0
  157. package/dist/SurfaceChart3DScene-IFBUOLNB.mjs.gz +0 -0
  158. package/dist/SurfaceChart3DScene-PUWIMT7V.js +0 -64
  159. package/dist/SurfaceChart3DScene-PUWIMT7V.js.br +0 -0
  160. package/dist/SurfaceChart3DScene-PUWIMT7V.js.gz +0 -0
  161. package/dist/chunk-2O66VMWK.js.br +0 -0
  162. package/dist/chunk-2O66VMWK.js.gz +0 -0
  163. package/dist/chunk-DNR6CH6I.js +0 -30
  164. package/dist/chunk-DNR6CH6I.js.br +0 -0
  165. package/dist/chunk-DNR6CH6I.js.gz +0 -0
  166. package/dist/chunk-FT3MMIXW.mjs.br +0 -0
  167. package/dist/chunk-FT3MMIXW.mjs.gz +0 -0
  168. package/dist/chunk-IXS7DALE.js.br +0 -0
  169. package/dist/chunk-IXS7DALE.js.gz +0 -0
  170. package/dist/chunk-KDTE5JOW.mjs.br +0 -0
  171. package/dist/chunk-KDTE5JOW.mjs.gz +0 -0
  172. package/dist/chunk-LNSYROED.js.br +0 -0
  173. package/dist/chunk-LNSYROED.js.gz +0 -0
  174. package/dist/chunk-MV2GCDBR.mjs.br +0 -0
  175. package/dist/chunk-MV2GCDBR.mjs.gz +0 -0
  176. package/dist/chunk-NXGUR2DO.js.br +0 -0
  177. package/dist/chunk-NXGUR2DO.js.gz +0 -0
  178. package/dist/chunk-OFSKGB3W.mjs.br +0 -0
  179. package/dist/chunk-OFSKGB3W.mjs.gz +0 -0
  180. package/dist/chunk-P5LF34BT.js.br +0 -0
  181. package/dist/chunk-P5LF34BT.js.gz +0 -0
  182. package/dist/chunk-PC7H3C5W.mjs.br +0 -0
  183. package/dist/chunk-PC7H3C5W.mjs.gz +0 -0
  184. package/dist/chunk-QEYWSHNE.mjs.br +0 -0
  185. package/dist/chunk-QEYWSHNE.mjs.gz +0 -0
  186. package/dist/chunk-QMSSDBKN.js.br +0 -0
  187. package/dist/chunk-QMSSDBKN.js.gz +0 -0
  188. package/dist/chunk-T6GFCLSM.mjs +0 -27
  189. package/dist/chunk-T6GFCLSM.mjs.br +0 -4
  190. package/dist/chunk-T6GFCLSM.mjs.gz +0 -0
  191. package/dist/chunk-VWGJXNMR.js.br +0 -0
  192. package/dist/chunk-VWGJXNMR.js.gz +0 -0
  193. package/dist/chunk-YHTDDCSC.mjs.br +0 -0
  194. 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 };
@@ -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 };
@@ -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 };
@@ -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
@@ -1,3 +0,0 @@
1
- export { OrbitControls } from './chunk-MV2GCDBR.mjs';
2
- import './chunk-7TAWW5QQ.mjs';
3
- import './chunk-XGB3TDIC.mjs';
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 };