pptx-react-viewer 3.0.1 → 3.0.3

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 (99) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/{AiChatPanel-NLIUZ5RI.js → AiChatPanel-235ZZA3Y.js} +23 -23
  3. package/dist/AiChatPanel-235ZZA3Y.js.br +0 -0
  4. package/dist/AiChatPanel-235ZZA3Y.js.gz +0 -0
  5. package/dist/{AiChatPanel-DMBQPAGB.mjs → AiChatPanel-DYOBY6OG.mjs} +3 -3
  6. package/dist/AiChatPanel-DYOBY6OG.mjs.br +0 -0
  7. package/dist/AiChatPanel-DYOBY6OG.mjs.gz +0 -0
  8. package/dist/{Model3DScene-JNZN42TU.js → Model3DScene-5QDYQF55.js} +2 -2
  9. package/dist/Model3DScene-5QDYQF55.js.br +0 -0
  10. package/dist/Model3DScene-5QDYQF55.js.gz +0 -0
  11. package/dist/{Model3DScene-ZO6U7YVU.mjs → Model3DScene-A3652H7T.mjs} +1 -1
  12. package/dist/Model3DScene-A3652H7T.mjs.br +0 -0
  13. package/dist/Model3DScene-A3652H7T.mjs.gz +0 -0
  14. package/dist/{SurfaceChart3DScene-P6CVRWDQ.mjs → SurfaceChart3DScene-N66TY4SW.mjs} +1 -1
  15. package/dist/SurfaceChart3DScene-N66TY4SW.mjs.br +0 -0
  16. package/dist/SurfaceChart3DScene-N66TY4SW.mjs.gz +0 -0
  17. package/dist/{SurfaceChart3DScene-PGD4ZCLI.js → SurfaceChart3DScene-QHENN3AF.js} +2 -2
  18. package/dist/SurfaceChart3DScene-QHENN3AF.js.br +0 -0
  19. package/dist/SurfaceChart3DScene-QHENN3AF.js.gz +0 -0
  20. package/dist/{chunk-SDOQKSKI.js → chunk-35YJ5RLU.js} +10 -10
  21. package/dist/chunk-35YJ5RLU.js.br +0 -0
  22. package/dist/{chunk-SDOQKSKI.js.gz → chunk-35YJ5RLU.js.gz} +0 -0
  23. package/dist/{chunk-3MW6F3K7.js → chunk-7HUYHWQS.js} +389 -389
  24. package/dist/chunk-7HUYHWQS.js.br +0 -0
  25. package/dist/chunk-7HUYHWQS.js.gz +0 -0
  26. package/dist/{chunk-VGHEHM66.mjs → chunk-CY24IMMZ.mjs} +188 -164
  27. package/dist/chunk-CY24IMMZ.mjs.br +0 -0
  28. package/dist/chunk-CY24IMMZ.mjs.gz +0 -0
  29. package/dist/{chunk-OB4PKKIN.mjs → chunk-EVXT7HLY.mjs} +1 -1
  30. package/dist/chunk-EVXT7HLY.mjs.br +0 -0
  31. package/dist/chunk-EVXT7HLY.mjs.gz +0 -0
  32. package/dist/{chunk-WFMSDYVQ.js → chunk-GJ7E44BG.js} +3 -3
  33. package/dist/chunk-GJ7E44BG.js.br +0 -0
  34. package/dist/chunk-GJ7E44BG.js.gz +0 -0
  35. package/dist/{chunk-OXPD2UYI.mjs → chunk-M2TISD4A.mjs} +10 -10
  36. package/dist/chunk-M2TISD4A.mjs.br +0 -0
  37. package/dist/{chunk-OXPD2UYI.mjs.gz → chunk-M2TISD4A.mjs.gz} +0 -0
  38. package/dist/{chunk-S6PFSR7I.mjs → chunk-QG7TXWXP.mjs} +1 -1
  39. package/dist/chunk-QG7TXWXP.mjs.br +0 -0
  40. package/dist/chunk-QG7TXWXP.mjs.gz +0 -0
  41. package/dist/{chunk-XMLPTDPM.js → chunk-UU6NFFRR.js} +147 -147
  42. package/dist/chunk-UU6NFFRR.js.br +0 -0
  43. package/dist/chunk-UU6NFFRR.js.gz +0 -0
  44. package/dist/{chunk-BGAJLL4N.mjs → chunk-YISXETNN.mjs} +2 -2
  45. package/dist/chunk-YISXETNN.mjs.br +0 -0
  46. package/dist/chunk-YISXETNN.mjs.gz +0 -0
  47. package/dist/{chunk-54SDLPJY.js → chunk-Z4RY432D.js} +1221 -1197
  48. package/dist/chunk-Z4RY432D.js.br +0 -0
  49. package/dist/chunk-Z4RY432D.js.gz +0 -0
  50. package/dist/index.d.ts.map +1 -1
  51. package/dist/index.js +45 -45
  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.js +78 -78
  58. package/dist/internals.js.br +0 -0
  59. package/dist/internals.js.gz +0 -0
  60. package/dist/internals.mjs +3 -3
  61. package/dist/internals.mjs.br +0 -0
  62. package/dist/internals.mjs.gz +0 -0
  63. package/dist/viewer/index.js +26 -26
  64. package/dist/viewer/index.js.br +0 -0
  65. package/dist/viewer/index.js.gz +0 -0
  66. package/dist/viewer/index.mjs +5 -5
  67. package/dist/viewer/index.mjs.br +0 -0
  68. package/dist/viewer/index.mjs.gz +0 -0
  69. package/package.json +2 -2
  70. package/dist/AiChatPanel-DMBQPAGB.mjs.br +0 -0
  71. package/dist/AiChatPanel-DMBQPAGB.mjs.gz +0 -0
  72. package/dist/AiChatPanel-NLIUZ5RI.js.br +0 -0
  73. package/dist/AiChatPanel-NLIUZ5RI.js.gz +0 -0
  74. package/dist/Model3DScene-JNZN42TU.js.br +0 -0
  75. package/dist/Model3DScene-JNZN42TU.js.gz +0 -0
  76. package/dist/Model3DScene-ZO6U7YVU.mjs.br +0 -0
  77. package/dist/Model3DScene-ZO6U7YVU.mjs.gz +0 -0
  78. package/dist/SurfaceChart3DScene-P6CVRWDQ.mjs.br +0 -0
  79. package/dist/SurfaceChart3DScene-P6CVRWDQ.mjs.gz +0 -0
  80. package/dist/SurfaceChart3DScene-PGD4ZCLI.js.br +0 -0
  81. package/dist/SurfaceChart3DScene-PGD4ZCLI.js.gz +0 -0
  82. package/dist/chunk-3MW6F3K7.js.br +0 -0
  83. package/dist/chunk-3MW6F3K7.js.gz +0 -0
  84. package/dist/chunk-54SDLPJY.js.br +0 -0
  85. package/dist/chunk-54SDLPJY.js.gz +0 -0
  86. package/dist/chunk-BGAJLL4N.mjs.br +0 -0
  87. package/dist/chunk-BGAJLL4N.mjs.gz +0 -0
  88. package/dist/chunk-OB4PKKIN.mjs.br +0 -0
  89. package/dist/chunk-OB4PKKIN.mjs.gz +0 -0
  90. package/dist/chunk-OXPD2UYI.mjs.br +0 -0
  91. package/dist/chunk-S6PFSR7I.mjs.br +0 -0
  92. package/dist/chunk-S6PFSR7I.mjs.gz +0 -0
  93. package/dist/chunk-SDOQKSKI.js.br +0 -0
  94. package/dist/chunk-VGHEHM66.mjs.br +0 -0
  95. package/dist/chunk-VGHEHM66.mjs.gz +0 -0
  96. package/dist/chunk-WFMSDYVQ.js.br +0 -0
  97. package/dist/chunk-WFMSDYVQ.js.gz +0 -0
  98. package/dist/chunk-XMLPTDPM.js.br +0 -0
  99. package/dist/chunk-XMLPTDPM.js.gz +0 -0
package/CHANGELOG.md CHANGED
@@ -7,6 +7,24 @@ A release listed with no entries carried no Conventional Commit in this package'
7
7
  scope: scripts/release-plan.mjs re-releases a package whenever any of its files
8
8
  change, not only on conventional ones.
9
9
 
10
+ ## [3.0.2](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-react-viewer@3.0.2) - 2026-08-22
11
+
12
+ ### Bug Fixes
13
+
14
+ - **react:** Host selection handles in a stage-level overlay, as the other bindings do (by @ChristopherVR) ([d06780a](https://github.com/ChristopherVR/pptx-viewer/commit/d06780a63a074e77201076b9c7dd2d0bd5690b9b))
15
+ - **shared,angular:** Stop the stroke overlay inventing outlines, and finish the Angular whitespace fix (by @ChristopherVR) ([20d4d17](https://github.com/ChristopherVR/pptx-viewer/commit/20d4d177fee97b5f4452a0da739fd51ebaa9e183))
16
+
17
+ ### Reverts
18
+
19
+ - **react:** Restore the element renderer's DOM structure (by @ChristopherVR) ([b75440e](https://github.com/ChristopherVR/pptx-viewer/commit/b75440e7091579ea5dde6d76e8d350f808e9a447))
20
+
21
+ ## [3.0.1](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-react-viewer@3.0.1) - 2026-08-22
22
+
23
+ ### Bug Fixes
24
+
25
+ - **core:** Spell the SmartArt role sentinel as a unicode escape (by @ChristopherVR) ([a2d4993](https://github.com/ChristopherVR/pptx-viewer/commit/a2d4993390bcdc28a3b24c1bf501c64f638f68d9))
26
+ - **react,angular:** Unclip selection handles and stop Angular text runs leaking whitespace (by @ChristopherVR) ([18eebb6](https://github.com/ChristopherVR/pptx-viewer/commit/18eebb6fd8451e1f1d46d0c248c1e0a5b0d94a53))
27
+
10
28
  ## [3.0.0](https://github.com/ChristopherVR/pptx-viewer/releases/tag/pptx-react-viewer@3.0.0) - 2026-08-22
11
29
 
12
30
  ### Features
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var chunkWFMSDYVQ_js = require('./chunk-WFMSDYVQ.js');
4
- var chunkXMLPTDPM_js = require('./chunk-XMLPTDPM.js');
3
+ var chunkGJ7E44BG_js = require('./chunk-GJ7E44BG.js');
4
+ var chunkUU6NFFRR_js = require('./chunk-UU6NFFRR.js');
5
5
  require('./chunk-U6A5FWWE.js');
6
- require('./chunk-SDOQKSKI.js');
6
+ require('./chunk-35YJ5RLU.js');
7
7
  require('./chunk-4VNS5WPM.js');
8
8
  var react = require('react');
9
9
  var reactI18next = require('react-i18next');
@@ -23,7 +23,7 @@ function useAiChat(bridge, config) {
23
23
  setInitError(void 0);
24
24
  void (async () => {
25
25
  try {
26
- const available = await chunkWFMSDYVQ_js.isAiAvailable();
26
+ const available = await chunkGJ7E44BG_js.isAiAvailable();
27
27
  if (cancelled) {
28
28
  return;
29
29
  }
@@ -31,7 +31,7 @@ function useAiChat(bridge, config) {
31
31
  setState("unavailable");
32
32
  return;
33
33
  }
34
- const built = await chunkWFMSDYVQ_js.createAiChatSession(bridge, configRef.current);
34
+ const built = await chunkGJ7E44BG_js.createAiChatSession(bridge, configRef.current);
35
35
  if (cancelled) {
36
36
  return;
37
37
  }
@@ -137,7 +137,7 @@ function withDeckContext(inner, bridge, strategy) {
137
137
  }
138
138
  let context = "";
139
139
  try {
140
- context = await chunkWFMSDYVQ_js.buildDeckContext(bridge, { strategy, focus: {} });
140
+ context = await chunkGJ7E44BG_js.buildDeckContext(bridge, { strategy, focus: {} });
141
141
  } catch {
142
142
  context = "";
143
143
  }
@@ -200,7 +200,7 @@ function useAiConversation(useChat, session, config, bridge, options = {}) {
200
200
  continue;
201
201
  }
202
202
  seen.add(call.toolCallId);
203
- onToolTargetRef.current?.(chunkWFMSDYVQ_js.toolCanvasTarget(call.toolName, call.input));
203
+ onToolTargetRef.current?.(chunkGJ7E44BG_js.toolCanvasTarget(call.toolName, call.input));
204
204
  }
205
205
  }, [chat.messages]);
206
206
  const send = react.useCallback(
@@ -276,7 +276,7 @@ function deriveTitle(messages) {
276
276
  }
277
277
  function useAiHistory(input) {
278
278
  const { deckId, messages, setMessages } = input;
279
- const store = react.useMemo(() => input.store ?? chunkWFMSDYVQ_js.createChatHistoryStore(), [input.store]);
279
+ const store = react.useMemo(() => input.store ?? chunkGJ7E44BG_js.createChatHistoryStore(), [input.store]);
280
280
  const [activeChatId, setActiveChatId] = react.useState(newChatId);
281
281
  const [chats, setChats] = react.useState([]);
282
282
  const createdAtRef = react.useRef(Date.now());
@@ -419,7 +419,7 @@ function AiComposer({
419
419
  disabled: value.trim().length === 0,
420
420
  title: t("pptx.ai.send"),
421
421
  "aria-label": t("pptx.ai.send"),
422
- className: chunkXMLPTDPM_js.cn(
422
+ className: chunkUU6NFFRR_js.cn(
423
423
  "shrink-0 rounded-sm p-1.5 transition-colors",
424
424
  value.trim().length === 0 ? "text-muted-foreground/50" : "bg-primary text-primary-foreground hover:bg-primary/90"
425
425
  ),
@@ -445,15 +445,15 @@ function AiFocusBar({
445
445
  onClearPicks
446
446
  }) {
447
447
  const { t } = reactI18next.useTranslation();
448
- const chips = chunkWFMSDYVQ_js.focusTargetChips(targets, slides);
449
- const twoTables = chunkWFMSDYVQ_js.isTwoTableFocus(targets, slides);
448
+ const chips = chunkGJ7E44BG_js.focusTargetChips(targets, slides);
449
+ const twoTables = chunkGJ7E44BG_js.isTwoTableFocus(targets, slides);
450
450
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "border-b border-border bg-secondary/30", children: [
451
451
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap items-center gap-1 px-2.5 py-1.5", children: [
452
452
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-[10px] font-semibold uppercase tracking-wide text-muted-foreground", children: t("pptx.ai.focusScope") }),
453
453
  chips.map((chip) => /* @__PURE__ */ jsxRuntime.jsx(
454
454
  "span",
455
455
  {
456
- className: chunkXMLPTDPM_js.cn(
456
+ className: chunkUU6NFFRR_js.cn(
457
457
  "inline-flex max-w-[10rem] items-center rounded-full px-2 py-0.5 text-[11px]",
458
458
  hasPicks || isPinned ? "bg-primary/15 text-primary" : "bg-muted text-muted-foreground"
459
459
  ),
@@ -486,7 +486,7 @@ function AiFocusBar({
486
486
  title: t("pptx.ai.pickElement"),
487
487
  "aria-label": t("pptx.ai.pickAria"),
488
488
  "aria-pressed": pickMode,
489
- className: chunkXMLPTDPM_js.cn(
489
+ className: chunkUU6NFFRR_js.cn(
490
490
  "rounded-sm p-1",
491
491
  pickMode ? "bg-primary text-primary-foreground" : "text-muted-foreground hover:bg-accent"
492
492
  ),
@@ -565,7 +565,7 @@ function AiHistoryList({ chats, activeChatId, onResume, onDelete }) {
565
565
  {
566
566
  type: "button",
567
567
  onClick: () => onResume(chat.id),
568
- className: chunkXMLPTDPM_js.cn(
568
+ className: chunkUU6NFFRR_js.cn(
569
569
  "flex min-w-0 flex-1 items-start gap-2 rounded-sm px-2 py-1.5 text-left hover:bg-accent",
570
570
  chat.id === activeChatId && "bg-accent/60"
571
571
  ),
@@ -720,26 +720,26 @@ function AiToolCallCard({ part }) {
720
720
  const failed = part.state === "output-error";
721
721
  const done = part.state === "output-available";
722
722
  const running = !failed && !done;
723
- const activity = chunkWFMSDYVQ_js.describeToolActivity(part.toolName, part.input, running ? "present" : "past");
723
+ const activity = chunkGJ7E44BG_js.describeToolActivity(part.toolName, part.input, running ? "present" : "past");
724
724
  const Icon = ICONS[activity.icon] ?? lu.LuWrench;
725
- const rawSummary = chunkWFMSDYVQ_js.summarizeToolArgs(part.input);
725
+ const rawSummary = chunkGJ7E44BG_js.summarizeToolArgs(part.input);
726
726
  const statusLabel = failed ? t("pptx.ai.toolFailed") : done ? t("pptx.ai.toolDone") : t("pptx.ai.toolRunning");
727
727
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-[12px]", children: [
728
728
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-1.5", children: [
729
729
  /* @__PURE__ */ jsxRuntime.jsx(
730
730
  Icon,
731
731
  {
732
- className: chunkXMLPTDPM_js.cn(
732
+ className: chunkUU6NFFRR_js.cn(
733
733
  "w-3.5 h-3.5 shrink-0",
734
734
  failed ? "text-destructive" : "text-muted-foreground"
735
735
  )
736
736
  }
737
737
  ),
738
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: chunkXMLPTDPM_js.cn("truncate", failed ? "text-destructive" : "text-foreground"), children: activity.label }),
738
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: chunkUU6NFFRR_js.cn("truncate", failed ? "text-destructive" : "text-foreground"), children: activity.label }),
739
739
  /* @__PURE__ */ jsxRuntime.jsxs(
740
740
  "span",
741
741
  {
742
- className: chunkXMLPTDPM_js.cn(
742
+ className: chunkUU6NFFRR_js.cn(
743
743
  "ml-auto inline-flex items-center gap-1 rounded-sm px-1.5 py-0.5 text-[10px]",
744
744
  failed ? "bg-destructive/15 text-destructive" : done ? "bg-primary/10 text-primary" : "bg-muted text-muted-foreground"
745
745
  ),
@@ -756,7 +756,7 @@ function AiToolCallCard({ part }) {
756
756
  rawSummary && /* @__PURE__ */ jsxRuntime.jsxs("details", { className: "group mt-0.5 pl-5", children: [
757
757
  /* @__PURE__ */ jsxRuntime.jsx("summary", { className: "cursor-pointer list-none text-[10px] text-muted-foreground/70 hover:text-muted-foreground", children: t("pptx.ai.toolDetails") }),
758
758
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-0.5 break-words font-mono text-[10px] text-muted-foreground/80", children: [
759
- chunkWFMSDYVQ_js.toolLabel(part.toolName),
759
+ chunkGJ7E44BG_js.toolLabel(part.toolName),
760
760
  ": ",
761
761
  rawSummary
762
762
  ] })
@@ -787,7 +787,7 @@ function AiMessageList({ messages, isStreaming, bridge }) {
787
787
  /* @__PURE__ */ jsxRuntime.jsx(
788
788
  "div",
789
789
  {
790
- className: chunkXMLPTDPM_js.cn(
790
+ className: chunkUU6NFFRR_js.cn(
791
791
  "mt-0.5 flex h-6 w-6 shrink-0 items-center justify-center rounded-full",
792
792
  isUser ? "bg-secondary text-muted-foreground" : "bg-primary/15 text-primary"
793
793
  ),
@@ -834,7 +834,7 @@ function AiMessageList({ messages, isStreaming, bridge }) {
834
834
  }
835
835
  function AiProposalCard({ proposal, onAccept, onReject }) {
836
836
  const { t } = reactI18next.useTranslation();
837
- const lines = proposal.summary.map(chunkWFMSDYVQ_js.humanizeDiffLine);
837
+ const lines = proposal.summary.map(chunkGJ7E44BG_js.humanizeDiffLine);
838
838
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "rounded-md border border-primary/40 bg-primary/5 p-2.5", children: [
839
839
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-1.5 text-[11px] font-semibold uppercase tracking-wide text-primary", children: t("pptx.ai.proposedChange") }),
840
840
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-[12px] font-medium text-foreground", children: proposal.label }),
@@ -1042,7 +1042,7 @@ function AiChatPanel({
1042
1042
  }) {
1043
1043
  const { t } = reactI18next.useTranslation();
1044
1044
  const { state, session, initError } = useAiChat(bridge, config);
1045
- const deckId = react.useMemo(() => chunkWFMSDYVQ_js.deckIdFromBridge(bridge), [bridge]);
1045
+ const deckId = react.useMemo(() => chunkGJ7E44BG_js.deckIdFromBridge(bridge), [bridge]);
1046
1046
  return /* @__PURE__ */ jsxRuntime.jsxs(
1047
1047
  "div",
1048
1048
  {
Binary file
Binary file
@@ -1,7 +1,7 @@
1
- import { deckIdFromBridge, isAiAvailable, createAiChatSession, toolCanvasTarget, createChatHistoryStore, focusTargetChips, isTwoTableFocus, humanizeDiffLine, buildDeckContext, describeToolActivity, summarizeToolArgs, toolLabel } from './chunk-OB4PKKIN.mjs';
2
- import { cn } from './chunk-S6PFSR7I.mjs';
1
+ import { deckIdFromBridge, isAiAvailable, createAiChatSession, toolCanvasTarget, createChatHistoryStore, focusTargetChips, isTwoTableFocus, humanizeDiffLine, buildDeckContext, describeToolActivity, summarizeToolArgs, toolLabel } from './chunk-EVXT7HLY.mjs';
2
+ import { cn } from './chunk-QG7TXWXP.mjs';
3
3
  import './chunk-L5MNLIQF.mjs';
4
- import './chunk-OXPD2UYI.mjs';
4
+ import './chunk-M2TISD4A.mjs';
5
5
  import './chunk-XGB3TDIC.mjs';
6
6
  import { useMemo, useRef, useState, useEffect, useReducer, useCallback } from 'react';
7
7
  import { useTranslation } from 'react-i18next';
Binary file
Binary file
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkSDOQKSKI_js = require('./chunk-SDOQKSKI.js');
3
+ var chunk35YJ5RLU_js = require('./chunk-35YJ5RLU.js');
4
4
  require('./chunk-4VNS5WPM.js');
5
5
  var react = require('react');
6
6
  var jsxRuntime = require('react/jsx-runtime');
@@ -14,7 +14,7 @@ function Model3DScene({ modelUrl, interactive, width, height }) {
14
14
  return;
15
15
  }
16
16
  let disposed = false;
17
- void chunkSDOQKSKI_js.mountModel3D(container, modelUrl, { width, height, interactive }).then((handle) => {
17
+ void chunk35YJ5RLU_js.mountModel3D(container, modelUrl, { width, height, interactive }).then((handle) => {
18
18
  if (disposed) {
19
19
  handle.dispose();
20
20
  } else {
Binary file
Binary file
@@ -1,4 +1,4 @@
1
- import { mountModel3D } from './chunk-OXPD2UYI.mjs';
1
+ import { mountModel3D } from './chunk-M2TISD4A.mjs';
2
2
  import './chunk-XGB3TDIC.mjs';
3
3
  import { useRef, useEffect } from 'react';
4
4
  import { jsx } from 'react/jsx-runtime';
@@ -1,4 +1,4 @@
1
- import { mountSurfaceChart3D } from './chunk-OXPD2UYI.mjs';
1
+ import { mountSurfaceChart3D } from './chunk-M2TISD4A.mjs';
2
2
  import './chunk-XGB3TDIC.mjs';
3
3
  import { useRef, useEffect } from 'react';
4
4
  import { jsx } from 'react/jsx-runtime';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkSDOQKSKI_js = require('./chunk-SDOQKSKI.js');
3
+ var chunk35YJ5RLU_js = require('./chunk-35YJ5RLU.js');
4
4
  require('./chunk-4VNS5WPM.js');
5
5
  var react = require('react');
6
6
  var jsxRuntime = require('react/jsx-runtime');
@@ -16,7 +16,7 @@ function SurfaceChart3DScene({
16
16
  return;
17
17
  }
18
18
  let disposed = false;
19
- void chunkSDOQKSKI_js.mountSurfaceChart3D(container, options).then((handle) => {
19
+ void chunk35YJ5RLU_js.mountSurfaceChart3D(container, options).then((handle) => {
20
20
  if (disposed) {
21
21
  handle.dispose();
22
22
  } else {
@@ -99818,6 +99818,15 @@ function strokeOnlyPresetPathData(element) {
99818
99818
  const stroked = paths.filter((path) => path.stroke !== false).map((path) => path.d);
99819
99819
  return stroked.length > 0 ? stroked.join(" ") : void 0;
99820
99820
  }
99821
+ function hasStrokePaint(style) {
99822
+ if (!style || Math.max(0, style.strokeWidth ?? 0) <= 0) {
99823
+ return false;
99824
+ }
99825
+ return style.strokeColor !== void 0 || style.strokeFillMode !== void 0;
99826
+ }
99827
+ function paintedStrokeWidth(style) {
99828
+ return hasStrokePaint(style) ? Math.max(0, style?.strokeWidth ?? 0) : 0;
99829
+ }
99821
99830
  function clampUnit(value) {
99822
99831
  return value < 0 ? 0 : value > 1 ? 1 : value;
99823
99832
  }
@@ -100391,7 +100400,7 @@ function outlineStrands(compoundLine, strokeWidth) {
100391
100400
  return offsets.map((offset, idx) => ({ strokeWidth: widths[idx] ?? strokeWidth, offset }));
100392
100401
  }
100393
100402
  function needsCenteredStrokeOverlay(element, style, declaredWidth) {
100394
- if (!style || declaredWidth <= 0 || element.type === "connector") {
100403
+ if (!style || declaredWidth <= 0 || element.type === "connector" || !hasStrokePaint(style)) {
100395
100404
  return false;
100396
100405
  }
100397
100406
  const shapeType = getShapeType(element.shapeType);
@@ -100542,15 +100551,6 @@ function resolveShapeGeometry(element) {
100542
100551
  }
100543
100552
  return { kind: "none" };
100544
100553
  }
100545
- function hasStrokePaint(style) {
100546
- if (!style || Math.max(0, style.strokeWidth ?? 0) <= 0) {
100547
- return false;
100548
- }
100549
- return style.strokeColor !== void 0 || style.strokeFillMode !== void 0;
100550
- }
100551
- function paintedStrokeWidth(style) {
100552
- return hasStrokePaint(style) ? Math.max(0, style?.strokeWidth ?? 0) : 0;
100553
- }
100554
100554
  var NO_STROKE = {
100555
100555
  borderWidth: 0,
100556
100556
  borderStyle: void 0,
Binary file