@cardenelabs/cdl 0.115.0 → 0.117.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.
package/dist/react.cjs CHANGED
@@ -4701,6 +4701,8 @@ var PAD_TOP = 40;
4701
4701
  var PAD_RIGHT = 24;
4702
4702
  var PAD_BOTTOM = 40;
4703
4703
  var PAD_LEFT = 24;
4704
+ var \u7BB1\u306E\u6700\u5927\u5E45 = 140;
4705
+ var \u7BB1\u306E\u6700\u5927\u9AD8\u3055 = 38;
4704
4706
  var \u6728\u306E\u679D\u306E\u592A\u3055 = (\u6BB5) => Math.max(1.1, 2.6 - \u6BB5 * 0.45);
4705
4707
  function \u6728\u306E\u4E2D\u8EAB(node, stateValues = {}) {
4706
4708
  const treeNodes = resolveTreeData(node.treeData ?? [], stateValues);
@@ -4904,8 +4906,8 @@ function computeTreeLayout(treeNodes, canvasW, canvasH) {
4904
4906
  );
4905
4907
  const depthGap = canvasH / Math.max(maxDepth + 1, 1);
4906
4908
  const slotW = canvasW / totalLeaves;
4907
- const nodeH = Math.min(38, depthGap * 0.7);
4908
- const nodeW = Math.min(140, slotW * 0.85);
4909
+ const nodeH = Math.min(\u7BB1\u306E\u6700\u5927\u9AD8\u3055, depthGap * 0.7);
4910
+ const nodeW = Math.min(\u7BB1\u306E\u6700\u5927\u5E45, slotW * 0.85);
4909
4911
  const \u7BB1\u306E\u5E45 = (n, depth) => {
4910
4912
  const \u6750\u6599 = \u6728\u306E\u884C({ ...n, depth });
4911
4913
  const \u540D\u524D = \u6750\u6599[0];
@@ -6218,6 +6220,9 @@ function visualValidateInner(laid, diag, violations, counts, push, profile, skip
6218
6220
  return { diagramId: safeDiagramId(diag), ok: false, violations, counts, profile, skippedAxes };
6219
6221
  }
6220
6222
  }
6223
+ function \u4F4D\u7F6E\u3092\u624B\u3067\u66F8\u3044\u305F(n) {
6224
+ return n.posX !== void 0 && n.posY !== void 0;
6225
+ }
6221
6226
  function runAxes(laid, diag, violations, counts, push, profile, skippedAxes, \u5668) {
6222
6227
  const LIFELINE_W_THRESHOLD = 8;
6223
6228
  for (const n of laid.nodes) {
@@ -6291,6 +6296,7 @@ function runAxes(laid, diag, violations, counts, push, profile, skippedAxes, \u5
6291
6296
  }
6292
6297
  const byLane = /* @__PURE__ */ new Map();
6293
6298
  for (const n of laid.nodes) {
6299
+ if (\u4F4D\u7F6E\u3092\u624B\u3067\u66F8\u3044\u305F(n)) continue;
6294
6300
  const list = byLane.get(n.lane) ?? [];
6295
6301
  list.push(n);
6296
6302
  byLane.set(n.lane, list);
@@ -6635,6 +6641,7 @@ function runAxes(laid, diag, violations, counts, push, profile, skippedAxes, \u5
6635
6641
  const byLaneCol = /* @__PURE__ */ new Map();
6636
6642
  for (const n of laid.nodes) {
6637
6643
  if (n.id.endsWith("-spacer") || /^s\d+-/.test(n.id)) continue;
6644
+ if (\u4F4D\u7F6E\u3092\u624B\u3067\u66F8\u3044\u305F(n)) continue;
6638
6645
  const list = byLaneCol.get(n.lane) ?? [];
6639
6646
  list.push(n);
6640
6647
  byLaneCol.set(n.lane, list);
@@ -6711,7 +6718,7 @@ function runAxes(laid, diag, violations, counts, push, profile, skippedAxes, \u5
6711
6718
  for (const l of laid.lanes) laneById.set(l.id, l);
6712
6719
  for (const n of laid.nodes) {
6713
6720
  if (n.id.endsWith("-spacer") || /^s\d+-/.test(n.id)) continue;
6714
- if (n.posX !== void 0 && n.posY !== void 0) continue;
6721
+ if (\u4F4D\u7F6E\u3092\u624B\u3067\u66F8\u3044\u305F(n)) continue;
6715
6722
  const lane = laneById.get(n.lane);
6716
6723
  if (!lane) continue;
6717
6724
  const laneCx = lane.x + lane.width / 2;