pptx-react-viewer 4.1.5 → 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 (153) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/{AiChatPanel-UF3TZGAQ.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-ZBT7PKJR.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-KBKADDJH.mjs → Model3DScene-DCTVSK2F.mjs} +1 -1
  9. package/dist/{Model3DScene-KBKADDJH.mjs.br → Model3DScene-DCTVSK2F.mjs.br} +0 -0
  10. package/dist/Model3DScene-DCTVSK2F.mjs.gz +0 -0
  11. package/dist/{Model3DScene-IFAV52XV.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-D6K76ELX.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-OKDFNVIT.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-GUXPTFLX.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-YFZPV7QM.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-Q7PKJ6AQ.js → chunk-KTSDPBQZ.js} +1315 -1212
  33. package/dist/chunk-KTSDPBQZ.js.br +0 -0
  34. package/dist/chunk-KTSDPBQZ.js.gz +0 -0
  35. package/dist/{chunk-GUNIJ6LG.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-IIRZO7I2.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-RAZKPNMR.js → chunk-S65QSO6T.js} +26532 -22545
  42. package/dist/chunk-S65QSO6T.js.br +0 -0
  43. package/dist/chunk-S65QSO6T.js.gz +0 -0
  44. package/dist/{chunk-UVMS5TV6.mjs → chunk-VPJOJJ36.mjs} +26526 -22531
  45. package/dist/chunk-VPJOJJ36.mjs.br +0 -0
  46. package/dist/chunk-VPJOJJ36.mjs.gz +0 -0
  47. package/dist/{chunk-TIJQMK3M.mjs → chunk-ZYIJODUR.mjs} +264 -161
  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-UF3TZGAQ.mjs.br +0 -0
  76. package/dist/AiChatPanel-UF3TZGAQ.mjs.gz +0 -0
  77. package/dist/AiChatPanel-ZBT7PKJR.js.br +0 -0
  78. package/dist/AiChatPanel-ZBT7PKJR.js.gz +0 -0
  79. package/dist/Area3DChartScene-FEXGRMWJ.mjs +0 -62
  80. package/dist/Area3DChartScene-FEXGRMWJ.mjs.br +0 -0
  81. package/dist/Area3DChartScene-FEXGRMWJ.mjs.gz +0 -0
  82. package/dist/Area3DChartScene-JTROOJSK.js +0 -64
  83. package/dist/Area3DChartScene-JTROOJSK.js.br +0 -0
  84. package/dist/Area3DChartScene-JTROOJSK.js.gz +0 -0
  85. package/dist/Bar3DChartScene-P4U4BRVA.mjs +0 -62
  86. package/dist/Bar3DChartScene-P4U4BRVA.mjs.br +0 -0
  87. package/dist/Bar3DChartScene-P4U4BRVA.mjs.gz +0 -0
  88. package/dist/Bar3DChartScene-QX5RUSRA.js +0 -64
  89. package/dist/Bar3DChartScene-QX5RUSRA.js.br +0 -0
  90. package/dist/Bar3DChartScene-QX5RUSRA.js.gz +0 -0
  91. package/dist/Line3DChartScene-6NCPU5DB.mjs +0 -62
  92. package/dist/Line3DChartScene-6NCPU5DB.mjs.br +0 -0
  93. package/dist/Line3DChartScene-6NCPU5DB.mjs.gz +0 -0
  94. package/dist/Line3DChartScene-BWTS264J.js +0 -64
  95. package/dist/Line3DChartScene-BWTS264J.js.br +0 -0
  96. package/dist/Line3DChartScene-BWTS264J.js.gz +0 -0
  97. package/dist/Model3DScene-IFAV52XV.js.br +0 -0
  98. package/dist/Model3DScene-IFAV52XV.js.gz +0 -0
  99. package/dist/Model3DScene-KBKADDJH.mjs.gz +0 -0
  100. package/dist/OrbitControls-2XOMWUVE.mjs +0 -3
  101. package/dist/OrbitControls-2XOMWUVE.mjs.br +0 -0
  102. package/dist/OrbitControls-2XOMWUVE.mjs.gz +0 -0
  103. package/dist/OrbitControls-CGYUF3BY.js +0 -12
  104. package/dist/OrbitControls-CGYUF3BY.js.br +0 -0
  105. package/dist/OrbitControls-CGYUF3BY.js.gz +0 -0
  106. package/dist/PieChart3DScene-BJNUS5VB.js +0 -58
  107. package/dist/PieChart3DScene-BJNUS5VB.js.br +0 -0
  108. package/dist/PieChart3DScene-BJNUS5VB.js.gz +0 -0
  109. package/dist/PieChart3DScene-RPKCSINA.mjs +0 -56
  110. package/dist/PieChart3DScene-RPKCSINA.mjs.br +0 -0
  111. package/dist/PieChart3DScene-RPKCSINA.mjs.gz +0 -0
  112. package/dist/SmartArt3DScene-D4VNNPHS.mjs +0 -500
  113. package/dist/SmartArt3DScene-D4VNNPHS.mjs.br +0 -0
  114. package/dist/SmartArt3DScene-D4VNNPHS.mjs.gz +0 -0
  115. package/dist/SmartArt3DScene-NHD7CZJ5.js +0 -502
  116. package/dist/SmartArt3DScene-NHD7CZJ5.js.br +0 -0
  117. package/dist/SmartArt3DScene-NHD7CZJ5.js.gz +0 -0
  118. package/dist/SurfaceChart3DScene-FOU6J6ZR.js +0 -64
  119. package/dist/SurfaceChart3DScene-FOU6J6ZR.js.br +0 -0
  120. package/dist/SurfaceChart3DScene-FOU6J6ZR.js.gz +0 -0
  121. package/dist/SurfaceChart3DScene-HI35BLTV.mjs +0 -62
  122. package/dist/SurfaceChart3DScene-HI35BLTV.mjs.br +0 -0
  123. package/dist/SurfaceChart3DScene-HI35BLTV.mjs.gz +0 -0
  124. package/dist/chunk-D6K76ELX.js.br +0 -0
  125. package/dist/chunk-D6K76ELX.js.gz +0 -0
  126. package/dist/chunk-DNR6CH6I.js +0 -30
  127. package/dist/chunk-DNR6CH6I.js.br +0 -0
  128. package/dist/chunk-DNR6CH6I.js.gz +0 -0
  129. package/dist/chunk-GUNIJ6LG.mjs.br +0 -0
  130. package/dist/chunk-GUNIJ6LG.mjs.gz +0 -0
  131. package/dist/chunk-GUXPTFLX.js.br +0 -0
  132. package/dist/chunk-GUXPTFLX.js.gz +0 -0
  133. package/dist/chunk-IIRZO7I2.js.br +0 -0
  134. package/dist/chunk-IIRZO7I2.js.gz +0 -0
  135. package/dist/chunk-IXS7DALE.js.br +0 -0
  136. package/dist/chunk-IXS7DALE.js.gz +0 -0
  137. package/dist/chunk-MV2GCDBR.mjs.br +0 -0
  138. package/dist/chunk-MV2GCDBR.mjs.gz +0 -0
  139. package/dist/chunk-OKDFNVIT.mjs.br +0 -0
  140. package/dist/chunk-OKDFNVIT.mjs.gz +0 -0
  141. package/dist/chunk-Q7PKJ6AQ.js.br +0 -0
  142. package/dist/chunk-Q7PKJ6AQ.js.gz +0 -0
  143. package/dist/chunk-RAZKPNMR.js.br +0 -0
  144. package/dist/chunk-RAZKPNMR.js.gz +0 -0
  145. package/dist/chunk-T6GFCLSM.mjs +0 -27
  146. package/dist/chunk-T6GFCLSM.mjs.br +0 -4
  147. package/dist/chunk-T6GFCLSM.mjs.gz +0 -0
  148. package/dist/chunk-TIJQMK3M.mjs.br +0 -0
  149. package/dist/chunk-TIJQMK3M.mjs.gz +0 -0
  150. package/dist/chunk-UVMS5TV6.mjs.br +0 -0
  151. package/dist/chunk-UVMS5TV6.mjs.gz +0 -0
  152. package/dist/chunk-YFZPV7QM.mjs.br +0 -0
  153. package/dist/chunk-YFZPV7QM.mjs.gz +0 -0
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var chunkQ7PKJ6AQ_js = require('../chunk-Q7PKJ6AQ.js');
4
- require('../chunk-D6K76ELX.js');
5
- var chunkIIRZO7I2_js = require('../chunk-IIRZO7I2.js');
6
- var chunkGUXPTFLX_js = require('../chunk-GUXPTFLX.js');
7
- var chunkRAZKPNMR_js = require('../chunk-RAZKPNMR.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 chunkQ7PKJ6AQ_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 chunkQ7PKJ6AQ_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 chunkQ7PKJ6AQ_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 chunkIIRZO7I2_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 chunkIIRZO7I2_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 chunkIIRZO7I2_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 chunkIIRZO7I2_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 chunkIIRZO7I2_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 chunkIIRZO7I2_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 chunkIIRZO7I2_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 chunkIIRZO7I2_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 chunkIIRZO7I2_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 chunkGUXPTFLX_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 chunkRAZKPNMR_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 chunkRAZKPNMR_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 chunkRAZKPNMR_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 chunkRAZKPNMR_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 chunkRAZKPNMR_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 chunkRAZKPNMR_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 chunkRAZKPNMR_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 chunkRAZKPNMR_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-TIJQMK3M.mjs';
2
- import '../chunk-GUNIJ6LG.mjs';
3
- export { CollaborationProvider, RemoteUserCursors, isAudienceTab, parseAudienceNonce, useCollaborativeHistory, useCollaborativeState, usePresenceTracking, useThemeSwitching, useYjsProvider } from '../chunk-OKDFNVIT.mjs';
4
- export { getAnimationInitialStyle } from '../chunk-YFZPV7QM.mjs';
5
- export { clearAudienceContent, forgetSessionDeck, getSessionTabId, loadAudienceContent, loadSessionDeck, rememberSessionDeck, restoreSessionDeck, storeAudienceContent } from '../chunk-UVMS5TV6.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.5",
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,62 +0,0 @@
1
- import { useStableChart3DInteraction, useLatestRef } from './chunk-T6GFCLSM.mjs';
2
- import { mountAreaChart3D } from './chunk-UVMS5TV6.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,64 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkDNR6CH6I_js = require('./chunk-DNR6CH6I.js');
4
- var chunkRAZKPNMR_js = require('./chunk-RAZKPNMR.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 chunkRAZKPNMR_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 { mountBarChart3D } from './chunk-UVMS5TV6.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 chunkRAZKPNMR_js = require('./chunk-RAZKPNMR.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 chunkRAZKPNMR_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-UVMS5TV6.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 chunkRAZKPNMR_js = require('./chunk-RAZKPNMR.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 chunkRAZKPNMR_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
@@ -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 chunkRAZKPNMR_js = require('./chunk-RAZKPNMR.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 chunkRAZKPNMR_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;