@cardenelabs/cdl 0.40.12 → 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,
@@ -17283,24 +17282,6 @@ function runAxes(laid, diag, violations, counts, push, profile, skippedAxes) {
17283
17282
  "warn"
17284
17283
  );
17285
17284
  }
17286
- const MEMORY_BUDGET = 1e6;
17287
- let nodeMemUnit = 0;
17288
- for (const n of laid.nodes) nodeMemUnit += n.w * n.h;
17289
- let edgeMemUnit = 0;
17290
- for (const e of laid.edges) {
17291
- const segs = extractPathSegments(e.d);
17292
- edgeMemUnit += segs.length * 100;
17293
- }
17294
- let phaseMemUnit = 0;
17295
- for (const p of diag.phases) phaseMemUnit += (p.tweens.length + p.sets.length) * 50;
17296
- const totalMemUnit = nodeMemUnit + edgeMemUnit + phaseMemUnit;
17297
- if (totalMemUnit > MEMORY_BUDGET) {
17298
- push(
17299
- "memory-budget",
17300
- `diagram memory unit \u63A8\u5B9A ${totalMemUnit.toFixed(0)} > budget ${MEMORY_BUDGET} (nodes=${nodeMemUnit.toFixed(0)} edges=${edgeMemUnit.toFixed(0)} phases=${phaseMemUnit.toFixed(0)})`,
17301
- "warn"
17302
- );
17303
- }
17304
17285
  const XSS_PATTERNS = [
17305
17286
  { re: /<script\b/i, label: "<script> tag" },
17306
17287
  { re: /javascript:/i, label: "javascript: URI" },
@@ -17807,7 +17788,6 @@ function validateMetaAxes(totalCounts, diagrams = [], durations = [], reports =
17807
17788
  "row-content-typing",
17808
17789
  "terminal-safe-text",
17809
17790
  "gpu-layer-efficiency",
17810
- "memory-budget",
17811
17791
  "svg-injection-safety",
17812
17792
  "seo-metadata-quality",
17813
17793
  "bidi-hyphenation",
@@ -17877,7 +17857,6 @@ function validateMetaAxes(totalCounts, diagrams = [], durations = [], reports =
17877
17857
  "row-content-typing",
17878
17858
  "terminal-safe-text",
17879
17859
  "gpu-layer-efficiency",
17880
- "memory-budget",
17881
17860
  "svg-injection-safety",
17882
17861
  "seo-metadata-quality",
17883
17862
  "bidi-hyphenation",
@@ -17919,7 +17898,7 @@ function validateMetaAxes(totalCounts, diagrams = [], durations = [], reports =
17919
17898
  });
17920
17899
  }
17921
17900
  }
17922
- const EXPECTED_AXIS_COUNT = 68;
17901
+ const EXPECTED_AXIS_COUNT = 67;
17923
17902
  if (allAxes.length !== EXPECTED_AXIS_COUNT) {
17924
17903
  out.push({
17925
17904
  axis: "axis-documentation-completeness",