@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/dist/cli.cjs +34 -34
- package/dist/index.cjs +3 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/tech-radar/parser.ts +1 -1
- package/src/tech-radar/renderer.ts +4 -2
package/package.json
CHANGED
package/src/tech-radar/parser.ts
CHANGED
|
@@ -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
|
-
|
|
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);
|