@cardenelabs/cdl 0.116.0 → 0.118.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
@@ -1187,11 +1187,16 @@ var ROW_FONT_GENERIC = 21;
1187
1187
  var STORAGE_TITLE_BASELINE = 86;
1188
1188
  var STORAGE_TITLE_FONT = 34;
1189
1189
  var SUBTITLE_ROW_SHIFT = 46;
1190
+ var STORAGE_SUBTITLE_BASELINE = 118;
1191
+ var STORAGE_SUBTITLE_FONT = 20;
1190
1192
  var STORAGE_ROW_DIVIDER_Y = Math.round(
1191
1193
  (STORAGE_TITLE_BASELINE + (ROW_TOP_STORAGE - ROW_FONT_STORAGE * GLYPH_CAP_RATIO)) / 2
1192
1194
  );
1193
1195
  var ROW_GLYPH_DEPTH_RATIO = 0.4;
1194
1196
  var TITLE_ROW_MIN_GAP = GENERIC_TITLE_FONT * ROW_GLYPH_DEPTH_RATIO + ROW_FONT_GENERIC * GLYPH_CAP_RATIO;
1197
+ var \u547C\u3073\u540D\u3067\u4F38\u3073\u308B\u91CF = Math.round(
1198
+ STORAGE_SUBTITLE_BASELINE - STORAGE_TITLE_BASELINE + (STORAGE_SUBTITLE_FONT - STORAGE_TITLE_FONT) * ROW_GLYPH_DEPTH_RATIO
1199
+ );
1195
1200
  function rowGlyphDepth(kind) {
1196
1201
  if (!rendersRows(kind)) return null;
1197
1202
  const font = kind === "storage" ? ROW_FONT_STORAGE : ROW_FONT_GENERIC;
@@ -6220,6 +6225,9 @@ function visualValidateInner(laid, diag, violations, counts, push, profile, skip
6220
6225
  return { diagramId: safeDiagramId(diag), ok: false, violations, counts, profile, skippedAxes };
6221
6226
  }
6222
6227
  }
6228
+ function \u4F4D\u7F6E\u3092\u624B\u3067\u66F8\u3044\u305F(n) {
6229
+ return n.posX !== void 0 && n.posY !== void 0;
6230
+ }
6223
6231
  function runAxes(laid, diag, violations, counts, push, profile, skippedAxes, \u5668) {
6224
6232
  const LIFELINE_W_THRESHOLD = 8;
6225
6233
  for (const n of laid.nodes) {
@@ -6293,6 +6301,7 @@ function runAxes(laid, diag, violations, counts, push, profile, skippedAxes, \u5
6293
6301
  }
6294
6302
  const byLane = /* @__PURE__ */ new Map();
6295
6303
  for (const n of laid.nodes) {
6304
+ if (\u4F4D\u7F6E\u3092\u624B\u3067\u66F8\u3044\u305F(n)) continue;
6296
6305
  const list = byLane.get(n.lane) ?? [];
6297
6306
  list.push(n);
6298
6307
  byLane.set(n.lane, list);
@@ -6637,6 +6646,7 @@ function runAxes(laid, diag, violations, counts, push, profile, skippedAxes, \u5
6637
6646
  const byLaneCol = /* @__PURE__ */ new Map();
6638
6647
  for (const n of laid.nodes) {
6639
6648
  if (n.id.endsWith("-spacer") || /^s\d+-/.test(n.id)) continue;
6649
+ if (\u4F4D\u7F6E\u3092\u624B\u3067\u66F8\u3044\u305F(n)) continue;
6640
6650
  const list = byLaneCol.get(n.lane) ?? [];
6641
6651
  list.push(n);
6642
6652
  byLaneCol.set(n.lane, list);
@@ -6713,7 +6723,7 @@ function runAxes(laid, diag, violations, counts, push, profile, skippedAxes, \u5
6713
6723
  for (const l of laid.lanes) laneById.set(l.id, l);
6714
6724
  for (const n of laid.nodes) {
6715
6725
  if (n.id.endsWith("-spacer") || /^s\d+-/.test(n.id)) continue;
6716
- if (n.posX !== void 0 && n.posY !== void 0) continue;
6726
+ if (\u4F4D\u7F6E\u3092\u624B\u3067\u66F8\u3044\u305F(n)) continue;
6717
6727
  const lane = laneById.get(n.lane);
6718
6728
  if (!lane) continue;
6719
6729
  const laneCx = lane.x + lane.width / 2;
@@ -10263,7 +10273,9 @@ function autoStorageHeight(n, defaultH) {
10263
10273
  const \u5370\u3042\u308A = n.rowMarks !== void 0;
10264
10274
  const \u547C\u3073\u540D\u306E\u5206 = n.subtitle ? SUBTITLE_ROW_SHIFT : 0;
10265
10275
  const \u7E70\u308A\u4E0A\u3052 = n.eyebrow ? 0 : \u76EE\u5370\u306A\u3057\u306E\u7E70\u308A\u4E0A\u3052("storage");
10266
- if (!n.rows || n.rows.length === 0) return 115 + \u547C\u3073\u540D\u306E\u5206 - \u7E70\u308A\u4E0A\u3052;
10276
+ if (!n.rows || n.rows.length === 0) {
10277
+ return 115 + (n.subtitle ? \u547C\u3073\u540D\u3067\u4F38\u3073\u308B\u91CF : 0) - \u7E70\u308A\u4E0A\u3052;
10278
+ }
10267
10279
  const \u5FC5\u8981 = requiredRowsHeight("storage", n.rows.length) ?? defaultH;
10268
10280
  if (\u5370\u3042\u308A) {
10269
10281
  const \u5E2F\u304B\u3089\u5FC5\u8981 = requiredMarkedRowsHeight("storage", n.rows.length) ?? defaultH;
@@ -12322,9 +12334,9 @@ var ROW_GLYPH_HALF = 7;
12322
12334
  var ROW_GLYPH_CX = ROW_PAD_X_PX + ROW_GLYPH_HALF + 1;
12323
12335
  var ROW_GLYPH_LEAD = 40;
12324
12336
  var ROW_TYPE_FONT = 22;
12325
- var SUBTITLE_BASELINE = 118;
12337
+ var SUBTITLE_BASELINE = STORAGE_SUBTITLE_BASELINE;
12326
12338
  var STRIPE_MIN_ROWS = 2;
12327
- var SUBTITLE_FONT = 20;
12339
+ var SUBTITLE_FONT = STORAGE_SUBTITLE_FONT;
12328
12340
  var UNDERLINE_DROP = 7;
12329
12341
  function RowGlyph({ mark, x, y, color }) {
12330
12342
  const \u534A = ROW_GLYPH_HALF;