@diagrammo/dgmo 0.8.26 → 0.8.27

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diagrammo/dgmo",
3
- "version": "0.8.26",
3
+ "version": "0.8.27",
4
4
  "description": "DGMO diagram markup language — parser, renderer, and color system",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -33,7 +33,7 @@ const POSITION_ORDER: readonly QuadrantPosition[] = [
33
33
  /** Known tech-radar options (key-value). */
34
34
  const KNOWN_OPTIONS = new Set<string>([]);
35
35
  /** Known tech-radar boolean options (bare keyword). */
36
- const KNOWN_BOOLEANS = new Set<string>([]);
36
+ const KNOWN_BOOLEANS = new Set<string>(['show-blip-legend']);
37
37
 
38
38
  export function parseTechRadar(content: string): ParsedTechRadar {
39
39
  const result: ParsedTechRadar = {
@@ -111,8 +111,10 @@ export function renderTechRadar(
111
111
  return;
112
112
  }
113
113
 
114
- // Determine if listing is visible — always show for export (blip legend is essential)
115
- const showListing = exportDims ? true : (options?.showListing ?? false);
114
+ // Determine if listing is visible — always show for export (blip legend is essential).
115
+ // Otherwise: runtime option wins; falls back to the `show-blip-legend` directive in source.
116
+ const directiveOn = parsed.options['show-blip-legend'] === 'on';
117
+ const showListing = exportDims ? true : (options?.showListing ?? directiveOn);
116
118
  const listingHeight = showListing ? estimateListingHeight(parsed) : 0;
117
119
 
118
120
  const init = initRadarSvg(container, palette, exportDims);