pptx-react-viewer 4.1.6 → 4.2.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 (154) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/{AiChatPanel-Y2RKSHOO.mjs → AiChatPanel-SEIRQ3XP.mjs} +3 -3
  3. package/dist/AiChatPanel-SEIRQ3XP.mjs.br +0 -0
  4. package/dist/AiChatPanel-SEIRQ3XP.mjs.gz +0 -0
  5. package/dist/{AiChatPanel-DRCY3T2Z.js → AiChatPanel-VVTLQXQ5.js} +27 -27
  6. package/dist/AiChatPanel-VVTLQXQ5.js.br +0 -0
  7. package/dist/AiChatPanel-VVTLQXQ5.js.gz +0 -0
  8. package/dist/{Model3DScene-ITHRMCLT.mjs → Model3DScene-DCTVSK2F.mjs} +1 -1
  9. package/dist/Model3DScene-DCTVSK2F.mjs.br +0 -0
  10. package/dist/Model3DScene-DCTVSK2F.mjs.gz +0 -0
  11. package/dist/{Model3DScene-VJZS726S.js → Model3DScene-SCWQXMEA.js} +2 -2
  12. package/dist/Model3DScene-SCWQXMEA.js.br +0 -0
  13. package/dist/Model3DScene-SCWQXMEA.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-2O66VMWK.js → chunk-3WYNGYB6.js} +5 -5
  21. package/dist/chunk-3WYNGYB6.js.br +0 -0
  22. package/dist/chunk-3WYNGYB6.js.gz +0 -0
  23. package/dist/{chunk-OFSKGB3W.mjs → chunk-4GTDG2FH.mjs} +157 -579
  24. package/dist/chunk-4GTDG2FH.mjs.br +0 -0
  25. package/dist/chunk-4GTDG2FH.mjs.gz +0 -0
  26. package/dist/{chunk-P5LF34BT.js → chunk-5MRNT4V6.js} +173 -173
  27. package/dist/chunk-5MRNT4V6.js.br +0 -0
  28. package/dist/chunk-5MRNT4V6.js.gz +0 -0
  29. package/dist/{chunk-KDTE5JOW.mjs → chunk-B5YZABYX.mjs} +1 -1
  30. package/dist/chunk-B5YZABYX.mjs.br +0 -0
  31. package/dist/chunk-B5YZABYX.mjs.gz +0 -0
  32. package/dist/{chunk-LNSYROED.js → chunk-KTSDPBQZ.js} +1309 -1210
  33. package/dist/chunk-KTSDPBQZ.js.br +0 -0
  34. package/dist/chunk-KTSDPBQZ.js.gz +0 -0
  35. package/dist/{chunk-QEYWSHNE.mjs → chunk-L4XBWL7J.mjs} +1 -1
  36. package/dist/chunk-L4XBWL7J.mjs.br +0 -0
  37. package/dist/chunk-L4XBWL7J.mjs.gz +0 -0
  38. package/dist/{chunk-VWGJXNMR.js → chunk-P2SBIMYF.js} +1645 -2073
  39. package/dist/chunk-P2SBIMYF.js.br +0 -0
  40. package/dist/chunk-P2SBIMYF.js.gz +0 -0
  41. package/dist/{chunk-QMSSDBKN.js → chunk-S65QSO6T.js} +26522 -22546
  42. package/dist/chunk-S65QSO6T.js.br +0 -0
  43. package/dist/chunk-S65QSO6T.js.gz +0 -0
  44. package/dist/{chunk-FT3MMIXW.mjs → chunk-VPJOJJ36.mjs} +26518 -22532
  45. package/dist/chunk-VPJOJJ36.mjs.br +0 -0
  46. package/dist/chunk-VPJOJJ36.mjs.gz +0 -0
  47. package/dist/{chunk-YHTDDCSC.mjs → chunk-ZYIJODUR.mjs} +254 -155
  48. package/dist/chunk-ZYIJODUR.mjs.br +0 -0
  49. package/dist/chunk-ZYIJODUR.mjs.gz +0 -0
  50. package/dist/index.d.ts +65 -18
  51. package/dist/index.js +47 -47
  52. package/dist/index.js.br +0 -0
  53. package/dist/index.js.gz +0 -0
  54. package/dist/index.mjs +5 -5
  55. package/dist/index.mjs.br +0 -0
  56. package/dist/index.mjs.gz +0 -0
  57. package/dist/internals.d.ts +65 -18
  58. package/dist/internals.js +104 -104
  59. package/dist/internals.js.br +0 -0
  60. package/dist/internals.js.gz +0 -0
  61. package/dist/internals.mjs +3 -3
  62. package/dist/internals.mjs.br +0 -0
  63. package/dist/internals.mjs.gz +0 -0
  64. package/dist/pptx-viewer.css +1 -1
  65. package/dist/pptx-viewer.css.br +0 -0
  66. package/dist/pptx-viewer.css.gz +0 -0
  67. package/dist/viewer/index.d.ts +48 -1
  68. package/dist/viewer/index.js +26 -26
  69. package/dist/viewer/index.js.br +0 -0
  70. package/dist/viewer/index.js.gz +0 -0
  71. package/dist/viewer/index.mjs +5 -5
  72. package/dist/viewer/index.mjs.br +0 -0
  73. package/dist/viewer/index.mjs.gz +0 -0
  74. package/package.json +1 -1
  75. package/dist/AiChatPanel-DRCY3T2Z.js.br +0 -0
  76. package/dist/AiChatPanel-DRCY3T2Z.js.gz +0 -0
  77. package/dist/AiChatPanel-Y2RKSHOO.mjs.br +0 -0
  78. package/dist/AiChatPanel-Y2RKSHOO.mjs.gz +0 -0
  79. package/dist/Area3DChartScene-J4LMNSGM.js +0 -64
  80. package/dist/Area3DChartScene-J4LMNSGM.js.br +0 -0
  81. package/dist/Area3DChartScene-J4LMNSGM.js.gz +0 -0
  82. package/dist/Area3DChartScene-TDACCSOI.mjs +0 -62
  83. package/dist/Area3DChartScene-TDACCSOI.mjs.br +0 -0
  84. package/dist/Area3DChartScene-TDACCSOI.mjs.gz +0 -0
  85. package/dist/Bar3DChartScene-AD72DLBJ.mjs +0 -62
  86. package/dist/Bar3DChartScene-AD72DLBJ.mjs.br +0 -0
  87. package/dist/Bar3DChartScene-AD72DLBJ.mjs.gz +0 -0
  88. package/dist/Bar3DChartScene-T7334CTK.js +0 -64
  89. package/dist/Bar3DChartScene-T7334CTK.js.br +0 -0
  90. package/dist/Bar3DChartScene-T7334CTK.js.gz +0 -0
  91. package/dist/Line3DChartScene-2ZQSCHK3.mjs +0 -62
  92. package/dist/Line3DChartScene-2ZQSCHK3.mjs.br +0 -0
  93. package/dist/Line3DChartScene-2ZQSCHK3.mjs.gz +0 -0
  94. package/dist/Line3DChartScene-ELVKCFJZ.js +0 -64
  95. package/dist/Line3DChartScene-ELVKCFJZ.js.br +0 -0
  96. package/dist/Line3DChartScene-ELVKCFJZ.js.gz +0 -0
  97. package/dist/Model3DScene-ITHRMCLT.mjs.br +0 -0
  98. package/dist/Model3DScene-ITHRMCLT.mjs.gz +0 -0
  99. package/dist/Model3DScene-VJZS726S.js.br +0 -0
  100. package/dist/Model3DScene-VJZS726S.js.gz +0 -0
  101. package/dist/OrbitControls-2XOMWUVE.mjs +0 -3
  102. package/dist/OrbitControls-2XOMWUVE.mjs.br +0 -0
  103. package/dist/OrbitControls-2XOMWUVE.mjs.gz +0 -0
  104. package/dist/OrbitControls-CGYUF3BY.js +0 -12
  105. package/dist/OrbitControls-CGYUF3BY.js.br +0 -0
  106. package/dist/OrbitControls-CGYUF3BY.js.gz +0 -0
  107. package/dist/PieChart3DScene-N3DM33FW.js +0 -58
  108. package/dist/PieChart3DScene-N3DM33FW.js.br +0 -0
  109. package/dist/PieChart3DScene-N3DM33FW.js.gz +0 -0
  110. package/dist/PieChart3DScene-PYHOA7BO.mjs +0 -56
  111. package/dist/PieChart3DScene-PYHOA7BO.mjs.br +0 -0
  112. package/dist/PieChart3DScene-PYHOA7BO.mjs.gz +0 -0
  113. package/dist/SmartArt3DScene-D4VNNPHS.mjs +0 -500
  114. package/dist/SmartArt3DScene-D4VNNPHS.mjs.br +0 -0
  115. package/dist/SmartArt3DScene-D4VNNPHS.mjs.gz +0 -0
  116. package/dist/SmartArt3DScene-NHD7CZJ5.js +0 -502
  117. package/dist/SmartArt3DScene-NHD7CZJ5.js.br +0 -0
  118. package/dist/SmartArt3DScene-NHD7CZJ5.js.gz +0 -0
  119. package/dist/SurfaceChart3DScene-IFBUOLNB.mjs +0 -62
  120. package/dist/SurfaceChart3DScene-IFBUOLNB.mjs.br +0 -0
  121. package/dist/SurfaceChart3DScene-IFBUOLNB.mjs.gz +0 -0
  122. package/dist/SurfaceChart3DScene-PUWIMT7V.js +0 -64
  123. package/dist/SurfaceChart3DScene-PUWIMT7V.js.br +0 -0
  124. package/dist/SurfaceChart3DScene-PUWIMT7V.js.gz +0 -0
  125. package/dist/chunk-2O66VMWK.js.br +0 -0
  126. package/dist/chunk-2O66VMWK.js.gz +0 -0
  127. package/dist/chunk-DNR6CH6I.js +0 -30
  128. package/dist/chunk-DNR6CH6I.js.br +0 -0
  129. package/dist/chunk-DNR6CH6I.js.gz +0 -0
  130. package/dist/chunk-FT3MMIXW.mjs.br +0 -0
  131. package/dist/chunk-FT3MMIXW.mjs.gz +0 -0
  132. package/dist/chunk-IXS7DALE.js.br +0 -0
  133. package/dist/chunk-IXS7DALE.js.gz +0 -0
  134. package/dist/chunk-KDTE5JOW.mjs.br +0 -0
  135. package/dist/chunk-KDTE5JOW.mjs.gz +0 -0
  136. package/dist/chunk-LNSYROED.js.br +0 -0
  137. package/dist/chunk-LNSYROED.js.gz +0 -0
  138. package/dist/chunk-MV2GCDBR.mjs.br +0 -0
  139. package/dist/chunk-MV2GCDBR.mjs.gz +0 -0
  140. package/dist/chunk-OFSKGB3W.mjs.br +0 -0
  141. package/dist/chunk-OFSKGB3W.mjs.gz +0 -0
  142. package/dist/chunk-P5LF34BT.js.br +0 -0
  143. package/dist/chunk-P5LF34BT.js.gz +0 -0
  144. package/dist/chunk-QEYWSHNE.mjs.br +0 -0
  145. package/dist/chunk-QEYWSHNE.mjs.gz +0 -0
  146. package/dist/chunk-QMSSDBKN.js.br +0 -0
  147. package/dist/chunk-QMSSDBKN.js.gz +0 -0
  148. package/dist/chunk-T6GFCLSM.mjs +0 -27
  149. package/dist/chunk-T6GFCLSM.mjs.br +0 -4
  150. package/dist/chunk-T6GFCLSM.mjs.gz +0 -0
  151. package/dist/chunk-VWGJXNMR.js.br +0 -0
  152. package/dist/chunk-VWGJXNMR.js.gz +0 -0
  153. package/dist/chunk-YHTDDCSC.mjs.br +0 -0
  154. package/dist/chunk-YHTDDCSC.mjs.gz +0 -0
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var chunkLNSYROED_js = require('../chunk-LNSYROED.js');
4
- require('../chunk-2O66VMWK.js');
5
- var chunkVWGJXNMR_js = require('../chunk-VWGJXNMR.js');
6
- var chunkP5LF34BT_js = require('../chunk-P5LF34BT.js');
7
- var chunkQMSSDBKN_js = require('../chunk-QMSSDBKN.js');
3
+ var chunkKTSDPBQZ_js = require('../chunk-KTSDPBQZ.js');
4
+ require('../chunk-3WYNGYB6.js');
5
+ var chunkP2SBIMYF_js = require('../chunk-P2SBIMYF.js');
6
+ var chunk5MRNT4V6_js = require('../chunk-5MRNT4V6.js');
7
+ var chunkS65QSO6T_js = require('../chunk-S65QSO6T.js');
8
8
  require('../chunk-NXGUR2DO.js');
9
9
  require('../chunk-4VNS5WPM.js');
10
10
 
@@ -12,85 +12,85 @@ require('../chunk-4VNS5WPM.js');
12
12
 
13
13
  Object.defineProperty(exports, "CollaborationStatusIndicator", {
14
14
  enumerable: true,
15
- get: function () { return chunkLNSYROED_js.CollaborationStatusIndicator; }
15
+ get: function () { return chunkKTSDPBQZ_js.CollaborationStatusIndicator; }
16
16
  });
17
17
  Object.defineProperty(exports, "PowerPointViewer", {
18
18
  enumerable: true,
19
- get: function () { return chunkLNSYROED_js.PowerPointViewer; }
19
+ get: function () { return chunkKTSDPBQZ_js.PowerPointViewer; }
20
20
  });
21
21
  Object.defineProperty(exports, "UserAvatarBar", {
22
22
  enumerable: true,
23
- get: function () { return chunkLNSYROED_js.UserAvatarBar; }
23
+ get: function () { return chunkKTSDPBQZ_js.UserAvatarBar; }
24
24
  });
25
25
  Object.defineProperty(exports, "CollaborationProvider", {
26
26
  enumerable: true,
27
- get: function () { return chunkVWGJXNMR_js.CollaborationProvider; }
27
+ get: function () { return chunkP2SBIMYF_js.CollaborationProvider; }
28
28
  });
29
29
  Object.defineProperty(exports, "RemoteUserCursors", {
30
30
  enumerable: true,
31
- get: function () { return chunkVWGJXNMR_js.RemoteUserCursors; }
31
+ get: function () { return chunkP2SBIMYF_js.RemoteUserCursors; }
32
32
  });
33
33
  Object.defineProperty(exports, "isAudienceTab", {
34
34
  enumerable: true,
35
- get: function () { return chunkVWGJXNMR_js.isAudienceTab; }
35
+ get: function () { return chunkP2SBIMYF_js.isAudienceTab; }
36
36
  });
37
37
  Object.defineProperty(exports, "parseAudienceNonce", {
38
38
  enumerable: true,
39
- get: function () { return chunkVWGJXNMR_js.parseAudienceNonce; }
39
+ get: function () { return chunkP2SBIMYF_js.parseAudienceNonce; }
40
40
  });
41
41
  Object.defineProperty(exports, "useCollaborativeHistory", {
42
42
  enumerable: true,
43
- get: function () { return chunkVWGJXNMR_js.useCollaborativeHistory; }
43
+ get: function () { return chunkP2SBIMYF_js.useCollaborativeHistory; }
44
44
  });
45
45
  Object.defineProperty(exports, "useCollaborativeState", {
46
46
  enumerable: true,
47
- get: function () { return chunkVWGJXNMR_js.useCollaborativeState; }
47
+ get: function () { return chunkP2SBIMYF_js.useCollaborativeState; }
48
48
  });
49
49
  Object.defineProperty(exports, "usePresenceTracking", {
50
50
  enumerable: true,
51
- get: function () { return chunkVWGJXNMR_js.usePresenceTracking; }
51
+ get: function () { return chunkP2SBIMYF_js.usePresenceTracking; }
52
52
  });
53
53
  Object.defineProperty(exports, "useThemeSwitching", {
54
54
  enumerable: true,
55
- get: function () { return chunkVWGJXNMR_js.useThemeSwitching; }
55
+ get: function () { return chunkP2SBIMYF_js.useThemeSwitching; }
56
56
  });
57
57
  Object.defineProperty(exports, "useYjsProvider", {
58
58
  enumerable: true,
59
- get: function () { return chunkVWGJXNMR_js.useYjsProvider; }
59
+ get: function () { return chunkP2SBIMYF_js.useYjsProvider; }
60
60
  });
61
61
  Object.defineProperty(exports, "getAnimationInitialStyle", {
62
62
  enumerable: true,
63
- get: function () { return chunkP5LF34BT_js.getAnimationInitialStyle; }
63
+ get: function () { return chunk5MRNT4V6_js.getAnimationInitialStyle; }
64
64
  });
65
65
  Object.defineProperty(exports, "clearAudienceContent", {
66
66
  enumerable: true,
67
- get: function () { return chunkQMSSDBKN_js.clearAudienceContent; }
67
+ get: function () { return chunkS65QSO6T_js.clearAudienceContent; }
68
68
  });
69
69
  Object.defineProperty(exports, "forgetSessionDeck", {
70
70
  enumerable: true,
71
- get: function () { return chunkQMSSDBKN_js.forgetSessionDeck; }
71
+ get: function () { return chunkS65QSO6T_js.forgetSessionDeck; }
72
72
  });
73
73
  Object.defineProperty(exports, "getSessionTabId", {
74
74
  enumerable: true,
75
- get: function () { return chunkQMSSDBKN_js.getSessionTabId; }
75
+ get: function () { return chunkS65QSO6T_js.getSessionTabId; }
76
76
  });
77
77
  Object.defineProperty(exports, "loadAudienceContent", {
78
78
  enumerable: true,
79
- get: function () { return chunkQMSSDBKN_js.loadAudienceContent; }
79
+ get: function () { return chunkS65QSO6T_js.loadAudienceContent; }
80
80
  });
81
81
  Object.defineProperty(exports, "loadSessionDeck", {
82
82
  enumerable: true,
83
- get: function () { return chunkQMSSDBKN_js.loadSessionDeck; }
83
+ get: function () { return chunkS65QSO6T_js.loadSessionDeck; }
84
84
  });
85
85
  Object.defineProperty(exports, "rememberSessionDeck", {
86
86
  enumerable: true,
87
- get: function () { return chunkQMSSDBKN_js.rememberSessionDeck; }
87
+ get: function () { return chunkS65QSO6T_js.rememberSessionDeck; }
88
88
  });
89
89
  Object.defineProperty(exports, "restoreSessionDeck", {
90
90
  enumerable: true,
91
- get: function () { return chunkQMSSDBKN_js.restoreSessionDeck; }
91
+ get: function () { return chunkS65QSO6T_js.restoreSessionDeck; }
92
92
  });
93
93
  Object.defineProperty(exports, "storeAudienceContent", {
94
94
  enumerable: true,
95
- get: function () { return chunkQMSSDBKN_js.storeAudienceContent; }
95
+ get: function () { return chunkS65QSO6T_js.storeAudienceContent; }
96
96
  });
Binary file
Binary file
@@ -1,7 +1,7 @@
1
- export { CollaborationStatusIndicator, PowerPointViewer, UserAvatarBar } from '../chunk-YHTDDCSC.mjs';
2
- import '../chunk-QEYWSHNE.mjs';
3
- export { CollaborationProvider, RemoteUserCursors, isAudienceTab, parseAudienceNonce, useCollaborativeHistory, useCollaborativeState, usePresenceTracking, useThemeSwitching, useYjsProvider } from '../chunk-OFSKGB3W.mjs';
4
- export { getAnimationInitialStyle } from '../chunk-KDTE5JOW.mjs';
5
- export { clearAudienceContent, forgetSessionDeck, getSessionTabId, loadAudienceContent, loadSessionDeck, rememberSessionDeck, restoreSessionDeck, storeAudienceContent } from '../chunk-FT3MMIXW.mjs';
1
+ export { CollaborationStatusIndicator, PowerPointViewer, UserAvatarBar } from '../chunk-ZYIJODUR.mjs';
2
+ import '../chunk-L4XBWL7J.mjs';
3
+ export { CollaborationProvider, RemoteUserCursors, isAudienceTab, parseAudienceNonce, useCollaborativeHistory, useCollaborativeState, usePresenceTracking, useThemeSwitching, useYjsProvider } from '../chunk-4GTDG2FH.mjs';
4
+ export { getAnimationInitialStyle } from '../chunk-B5YZABYX.mjs';
5
+ export { clearAudienceContent, forgetSessionDeck, getSessionTabId, loadAudienceContent, loadSessionDeck, rememberSessionDeck, restoreSessionDeck, storeAudienceContent } from '../chunk-VPJOJJ36.mjs';
6
6
  import '../chunk-PC7H3C5W.mjs';
7
7
  import '../chunk-XGB3TDIC.mjs';
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pptx-react-viewer",
3
- "version": "4.1.6",
3
+ "version": "4.2.0",
4
4
  "description": "React PowerPoint viewer and editor component: render, edit, and export PPTX slides in the browser.",
5
5
  "keywords": [
6
6
  "editor",
Binary file
Binary file
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 Area3DChartScene({
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.mountAreaChart3D(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 = Area3DChartScene;
@@ -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