Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions ogc/bblocks/entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 11 additions & 0 deletions ogc/bblocks/schemas/bblocks-config.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down