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