@cardenelabs/cdl 0.40.11 → 0.41.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/index.d.cts CHANGED
@@ -1581,7 +1581,7 @@ interface Violation {
1581
1581
  detail: string;
1582
1582
  severity: "error" | "warn";
1583
1583
  }
1584
- type VisualAxis = "node-visibility" | "edge-label-overlap" | "edge-label-proximity" | "text-readability" | "row-format" | "alignment" | "clearance" | "arrow-endpoint-anchoring" | "label-char-range" | "node-overlap" | "edge-crossing" | "edge-node-cross" | "edge-segment-orthogonality" | "label-inside-viewbox" | "lane-cx-consistency" | "row-vertical-spacing" | "group-boundary-clearance" | "node-vertical-clearance" | "lane-lane-gap" | "arrow-marker-clearance" | "grid-alignment" | "phase-layout-stability" | "responsive-viewport" | "accessibility-basics" | "animation-frame-integrity" | "i18n-cjk-detection" | "contrast-basics" | "print-media-compat" | "color-blind-safety" | "marker-gradient-def-integrity" | "subpixel-precision" | "dom-complexity-budget" | "reduced-motion-compat" | "touch-target-size" | "row-content-typing" | "terminal-safe-text" | "gpu-layer-efficiency" | "memory-budget" | "svg-injection-safety" | "seo-metadata-quality" | "bidi-hyphenation" | "structured-data-extraction" | "diagram-version-semver" | "migration-path-consistency" | "axis-coverage-meta" | "axis-documentation-completeness" | "fixture-drift-detection" | "locale-parity" | "validate-performance-budget" | "node-inside-viewbox" | "shape-label-dropped" | "box-line-dropped" | "node-inside-lane" | "edge-inside-viewbox" | "lane-label-inside-viewbox" | "lane-label-overlap" | "row-alignment" | "column-alignment" | "edge-stubout-min" | "fan-origin-single-point" | "detour-slot-distinct" | "arrow-endpoint-center" | "lane-border-clearance" | "row-gap-uniform" | "column-gap-uniform" | "rows-not-rendered" | "title-row-overlap" | "malformed-input" | "validation-interrupted";
1584
+ type VisualAxis = "node-visibility" | "edge-label-overlap" | "edge-label-proximity" | "text-readability" | "row-format" | "alignment" | "clearance" | "arrow-endpoint-anchoring" | "label-char-range" | "node-overlap" | "edge-crossing" | "edge-node-cross" | "edge-segment-orthogonality" | "label-inside-viewbox" | "lane-cx-consistency" | "row-vertical-spacing" | "group-boundary-clearance" | "node-vertical-clearance" | "lane-lane-gap" | "arrow-marker-clearance" | "grid-alignment" | "phase-layout-stability" | "responsive-viewport" | "accessibility-basics" | "animation-frame-integrity" | "i18n-cjk-detection" | "contrast-basics" | "print-media-compat" | "color-blind-safety" | "marker-gradient-def-integrity" | "subpixel-precision" | "dom-complexity-budget" | "reduced-motion-compat" | "touch-target-size" | "row-content-typing" | "terminal-safe-text" | "gpu-layer-efficiency" | "svg-injection-safety" | "seo-metadata-quality" | "bidi-hyphenation" | "structured-data-extraction" | "diagram-version-semver" | "migration-path-consistency" | "axis-coverage-meta" | "axis-documentation-completeness" | "fixture-drift-detection" | "locale-parity" | "validate-performance-budget" | "node-inside-viewbox" | "shape-label-dropped" | "box-line-dropped" | "node-inside-lane" | "edge-inside-viewbox" | "lane-label-inside-viewbox" | "lane-label-overlap" | "row-alignment" | "column-alignment" | "edge-stubout-min" | "fan-origin-single-point" | "detour-slot-distinct" | "arrow-endpoint-center" | "lane-border-clearance" | "row-gap-uniform" | "column-gap-uniform" | "rows-not-rendered" | "title-row-overlap" | "malformed-input" | "validation-interrupted";
1585
1585
  /**
1586
1586
  * 検査の用途。 用途によって見るべき軸が違う。
1587
1587
  *
package/dist/index.d.ts CHANGED
@@ -1581,7 +1581,7 @@ interface Violation {
1581
1581
  detail: string;
1582
1582
  severity: "error" | "warn";
1583
1583
  }
1584
- type VisualAxis = "node-visibility" | "edge-label-overlap" | "edge-label-proximity" | "text-readability" | "row-format" | "alignment" | "clearance" | "arrow-endpoint-anchoring" | "label-char-range" | "node-overlap" | "edge-crossing" | "edge-node-cross" | "edge-segment-orthogonality" | "label-inside-viewbox" | "lane-cx-consistency" | "row-vertical-spacing" | "group-boundary-clearance" | "node-vertical-clearance" | "lane-lane-gap" | "arrow-marker-clearance" | "grid-alignment" | "phase-layout-stability" | "responsive-viewport" | "accessibility-basics" | "animation-frame-integrity" | "i18n-cjk-detection" | "contrast-basics" | "print-media-compat" | "color-blind-safety" | "marker-gradient-def-integrity" | "subpixel-precision" | "dom-complexity-budget" | "reduced-motion-compat" | "touch-target-size" | "row-content-typing" | "terminal-safe-text" | "gpu-layer-efficiency" | "memory-budget" | "svg-injection-safety" | "seo-metadata-quality" | "bidi-hyphenation" | "structured-data-extraction" | "diagram-version-semver" | "migration-path-consistency" | "axis-coverage-meta" | "axis-documentation-completeness" | "fixture-drift-detection" | "locale-parity" | "validate-performance-budget" | "node-inside-viewbox" | "shape-label-dropped" | "box-line-dropped" | "node-inside-lane" | "edge-inside-viewbox" | "lane-label-inside-viewbox" | "lane-label-overlap" | "row-alignment" | "column-alignment" | "edge-stubout-min" | "fan-origin-single-point" | "detour-slot-distinct" | "arrow-endpoint-center" | "lane-border-clearance" | "row-gap-uniform" | "column-gap-uniform" | "rows-not-rendered" | "title-row-overlap" | "malformed-input" | "validation-interrupted";
1584
+ type VisualAxis = "node-visibility" | "edge-label-overlap" | "edge-label-proximity" | "text-readability" | "row-format" | "alignment" | "clearance" | "arrow-endpoint-anchoring" | "label-char-range" | "node-overlap" | "edge-crossing" | "edge-node-cross" | "edge-segment-orthogonality" | "label-inside-viewbox" | "lane-cx-consistency" | "row-vertical-spacing" | "group-boundary-clearance" | "node-vertical-clearance" | "lane-lane-gap" | "arrow-marker-clearance" | "grid-alignment" | "phase-layout-stability" | "responsive-viewport" | "accessibility-basics" | "animation-frame-integrity" | "i18n-cjk-detection" | "contrast-basics" | "print-media-compat" | "color-blind-safety" | "marker-gradient-def-integrity" | "subpixel-precision" | "dom-complexity-budget" | "reduced-motion-compat" | "touch-target-size" | "row-content-typing" | "terminal-safe-text" | "gpu-layer-efficiency" | "svg-injection-safety" | "seo-metadata-quality" | "bidi-hyphenation" | "structured-data-extraction" | "diagram-version-semver" | "migration-path-consistency" | "axis-coverage-meta" | "axis-documentation-completeness" | "fixture-drift-detection" | "locale-parity" | "validate-performance-budget" | "node-inside-viewbox" | "shape-label-dropped" | "box-line-dropped" | "node-inside-lane" | "edge-inside-viewbox" | "lane-label-inside-viewbox" | "lane-label-overlap" | "row-alignment" | "column-alignment" | "edge-stubout-min" | "fan-origin-single-point" | "detour-slot-distinct" | "arrow-endpoint-center" | "lane-border-clearance" | "row-gap-uniform" | "column-gap-uniform" | "rows-not-rendered" | "title-row-overlap" | "malformed-input" | "validation-interrupted";
1585
1585
  /**
1586
1586
  * 検査の用途。 用途によって見るべき軸が違う。
1587
1587
  *
package/dist/index.js CHANGED
@@ -15540,7 +15540,6 @@ function emptyCounts() {
15540
15540
  "row-content-typing": 0,
15541
15541
  "terminal-safe-text": 0,
15542
15542
  "gpu-layer-efficiency": 0,
15543
- "memory-budget": 0,
15544
15543
  "svg-injection-safety": 0,
15545
15544
  "seo-metadata-quality": 0,
15546
15545
  "bidi-hyphenation": 0,
@@ -17212,7 +17211,9 @@ function runAxes(laid, diag, violations, counts, push, profile, skippedAxes) {
17212
17211
  const SCHEMA_KEYWORDS = /^(string|number|boolean|text|enum|timestamp|date|datetime|json|blob|PK|FK|UUID|BIGINT|INT|FLOAT|VARCHAR|TEXT|DATETIME)$|^enum\(|^varchar\(/i;
17213
17212
  for (const n of diag.nodes) {
17214
17213
  if (!n.rows) continue;
17215
- for (const row of n.rows) {
17214
+ for (let i = 0; i < n.rows.length; i++) {
17215
+ const row = n.rows[i];
17216
+ if (n.rowMarks?.[i] != null) continue;
17216
17217
  const m = row.match(/^([^:]+):\s*(.+)$/);
17217
17218
  if (!m) continue;
17218
17219
  const [, key, value] = m;
@@ -17281,24 +17282,6 @@ function runAxes(laid, diag, violations, counts, push, profile, skippedAxes) {
17281
17282
  "warn"
17282
17283
  );
17283
17284
  }
17284
- const MEMORY_BUDGET = 1e6;
17285
- let nodeMemUnit = 0;
17286
- for (const n of laid.nodes) nodeMemUnit += n.w * n.h;
17287
- let edgeMemUnit = 0;
17288
- for (const e of laid.edges) {
17289
- const segs = extractPathSegments(e.d);
17290
- edgeMemUnit += segs.length * 100;
17291
- }
17292
- let phaseMemUnit = 0;
17293
- for (const p of diag.phases) phaseMemUnit += (p.tweens.length + p.sets.length) * 50;
17294
- const totalMemUnit = nodeMemUnit + edgeMemUnit + phaseMemUnit;
17295
- if (totalMemUnit > MEMORY_BUDGET) {
17296
- push(
17297
- "memory-budget",
17298
- `diagram memory unit \u63A8\u5B9A ${totalMemUnit.toFixed(0)} > budget ${MEMORY_BUDGET} (nodes=${nodeMemUnit.toFixed(0)} edges=${edgeMemUnit.toFixed(0)} phases=${phaseMemUnit.toFixed(0)})`,
17299
- "warn"
17300
- );
17301
- }
17302
17285
  const XSS_PATTERNS = [
17303
17286
  { re: /<script\b/i, label: "<script> tag" },
17304
17287
  { re: /javascript:/i, label: "javascript: URI" },
@@ -17805,7 +17788,6 @@ function validateMetaAxes(totalCounts, diagrams = [], durations = [], reports =
17805
17788
  "row-content-typing",
17806
17789
  "terminal-safe-text",
17807
17790
  "gpu-layer-efficiency",
17808
- "memory-budget",
17809
17791
  "svg-injection-safety",
17810
17792
  "seo-metadata-quality",
17811
17793
  "bidi-hyphenation",
@@ -17875,7 +17857,6 @@ function validateMetaAxes(totalCounts, diagrams = [], durations = [], reports =
17875
17857
  "row-content-typing",
17876
17858
  "terminal-safe-text",
17877
17859
  "gpu-layer-efficiency",
17878
- "memory-budget",
17879
17860
  "svg-injection-safety",
17880
17861
  "seo-metadata-quality",
17881
17862
  "bidi-hyphenation",
@@ -17917,7 +17898,7 @@ function validateMetaAxes(totalCounts, diagrams = [], durations = [], reports =
17917
17898
  });
17918
17899
  }
17919
17900
  }
17920
- const EXPECTED_AXIS_COUNT = 68;
17901
+ const EXPECTED_AXIS_COUNT = 67;
17921
17902
  if (allAxes.length !== EXPECTED_AXIS_COUNT) {
17922
17903
  out.push({
17923
17904
  axis: "axis-documentation-completeness",