Repository navigation
release: HyperMarkDown for VS Code 0.8.1 and hmd 0.6.1, with a higher Mermaid layout limit - #19
Merged
Merged
Conversation
… Mermaid layout limit A flowchart of 14 nodes and 21 edges was refused with "resource limit `max_layout_work_units` exceeded". merman-cli's constrained profile stops the layout at 125,000 units, and the flowchart needs 127,582. Both tools keep the profile and pass --resource-limit max_layout_work_units=250000. In the extension the number is the setting hyperMarkdown.diagram.mermaidLayoutLimit, the preview redraws when it changes, and a diagram over the limit names the setting. The 2-second render bound is unchanged. The decision is recorded in issue 0120 and stated in HMD-0034.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The problem
A
mermaid#showflowchart of 14 nodes and 21 edges was not drawn. The preview showed the renderer's message:Both tools run
merman-cliwith--resource-profile constrained, and that profile stops the layout at 125,000 units. No change to the source that keeps the diagram's meaning gets it under the limit.The change
constrainedprofile and add--resource-limit max_layout_work_units=250000. Every other budget stays as it is, and so does the 2-second render bound.hyperMarkdown.diagram.mermaidLayoutLimit, default 250,000. The preview redraws when it changes. A value that is not a whole number of at least 1 means the default.hmdhas the number as a constant,diagram.MAX_LAYOUT_WORK_UNITS. The site build has no option for it yet.Versions
hmd0.6.1@hypermarkdown/coredoes not change.Records
doc/issues/archive/.hmd, and an entry on the roadmap page.Tests
MERMAN_BINset to the bundledmerman-cli0.11.0.PATH.hmd lintindoc/is clean.