diff --git a/ogc/bblocks/entrypoint.py b/ogc/bblocks/entrypoint.py index 09b91ff..f18269f 100644 --- a/ogc/bblocks/entrypoint.py +++ b/ogc/bblocks/entrypoint.py @@ -269,6 +269,8 @@ viewer_config['showImported'] = raw_viewer['show-imported-depth'] if raw_viewer.get('view-plugins'): viewer_config['viewPlugins'] = raw_viewer['view-plugins'] + if raw_viewer.get('dependency-graph-height'): + viewer_config['dependencyGraphHeight'] = raw_viewer['dependency-graph-height'] bb_local_config_file = Path('bblocks-config-local.yml') local_url_mappings = None diff --git a/ogc/bblocks/schemas/bblocks-config.schema.yaml b/ogc/bblocks/schemas/bblocks-config.schema.yaml index a0600d5..4058518 100644 --- a/ogc/bblocks/schemas/bblocks-config.schema.yaml +++ b/ogc/bblocks/schemas/bblocks-config.schema.yaml @@ -114,6 +114,17 @@ properties: snippets or transform outputs. items: $ref: '#/$defs/view-plugin-entry' + dependency-graph-height: + description: > + Default height, in pixels, of the per-building-block dependency graph shown on + each Building Block's page. Optional: if omitted, the viewer keeps using its own + built-in default (currently 400). The viewer additionally never renders the graph + shorter than 200px regardless of this setting, so values below that have no visible + effect - the minimum here is only meant to reject clearly-invalid values (e.g. 0 or + negative), not to document the viewer's actual effective floor. + type: integer + minimum: 100 + default: 400 plugins: type: object