@eventcatalog/visualiser 3.18.2 → 3.18.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -8328,7 +8328,7 @@ var NodeContextMenu_default = memo33(function NodeContextMenu({
8328
8328
  ContextMenu5.Item,
8329
8329
  {
8330
8330
  asChild: true,
8331
- className: "text-sm px-2 py-1.5 outline-none cursor-pointer hover:bg-orange-100 rounded-sm flex items-center",
8331
+ className: "text-sm px-2 py-1.5 outline-none cursor-pointer hover:bg-orange-100 rounded-sm flex items-center text-gray-900 hover:text-gray-900 visited:text-gray-900 no-underline hover:no-underline visited:no-underline",
8332
8332
  children: /* @__PURE__ */ jsx40(
8333
8333
  "a",
8334
8334
  {
@@ -9564,6 +9564,7 @@ function AllNotesModal({
9564
9564
  import dagre3 from "dagre";
9565
9565
  import { Fragment as Fragment11, jsx as jsx42, jsxs as jsxs40 } from "react/jsx-runtime";
9566
9566
  var POSITION_CHANGE_THRESHOLD = 1;
9567
+ var LARGE_GRAPH_NODE_THRESHOLD = 30;
9567
9568
  var NODE_ORIGIN = [0.1, 0.1];
9568
9569
  var MINIMAP_STYLE = {
9569
9570
  backgroundColor: "rgb(var(--ec-page-bg))",
@@ -10273,9 +10274,11 @@ var NodeGraphBuilder = ({
10273
10274
  );
10274
10275
  if (storedAnimateMessages !== null) {
10275
10276
  setAnimateMessages(storedAnimateMessages === "true");
10277
+ } else {
10278
+ setAnimateMessages(initialNodes.length <= LARGE_GRAPH_NODE_THRESHOLD);
10276
10279
  }
10277
10280
  }
10278
- }, [animated]);
10281
+ }, [animated, initialNodes.length]);
10279
10282
  useEffect8(() => {
10280
10283
  setEdges(
10281
10284
  (eds) => eds.map((edge) => ({