@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.js CHANGED
@@ -8345,7 +8345,7 @@ var NodeContextMenu_default = (0, import_react74.memo)(function NodeContextMenu(
8345
8345
  ContextMenu5.Item,
8346
8346
  {
8347
8347
  asChild: true,
8348
- className: "text-sm px-2 py-1.5 outline-none cursor-pointer hover:bg-orange-100 rounded-sm flex items-center",
8348
+ 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",
8349
8349
  children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
8350
8350
  "a",
8351
8351
  {
@@ -9564,6 +9564,7 @@ function AllNotesModal({
9564
9564
  var import_dagre3 = __toESM(require("dagre"));
9565
9565
  var import_jsx_runtime42 = require("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
  (0, import_react78.useEffect)(() => {
10280
10283
  setEdges(
10281
10284
  (eds) => eds.map((edge) => ({