Skip to content

Interpret explicit undefined engine option value as "dot"#393

Merged
mdaines merged 3 commits into
v3from
undefined-viz-options
Jul 7, 2026
Merged

Interpret explicit undefined engine option value as "dot"#393
mdaines merged 3 commits into
v3from
undefined-viz-options

Conversation

@mdaines

@mdaines mdaines commented Jul 7, 2026

Copy link
Copy Markdown
Owner

Addresses #386

mdaines added 3 commits July 6, 2026 22:12
Passing undefined for the engine render option would previously result in a RuntimeError or similar. Instead, the default of "dot" should have been used.

This would only happen if the options object actually had an entry for "engine" with the value undefined. For example, the engine might be determined by the value of a select element.

  render(src, {}) // default "dot" engine used

  render(src, { engine: undefined }) // unlikely that the API would be used this way, would throw

  render(src, { engine: parseEngine(...) }) // more likely, would throw if parseEngine returned undefined
@mdaines mdaines changed the title Interpret explicit undefined engine option value as "dot" (#386) Interpret explicit undefined engine option value as "dot" Jul 7, 2026
@mdaines
mdaines merged commit 52bb61f into v3 Jul 7, 2026
4 checks passed
@mdaines
mdaines deleted the undefined-viz-options branch July 7, 2026 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant