You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merlay 0.3.1 — Fix drag-connect hit-testing and subgraph inner-node priority
Mermaid, your way. A native visual overlay editor for Mermaid diagrams in Obsidian.
Fixes & Improvements
Drag-to-Connect Hit Testing:
Fixed an issue where drag-connect stopped creating edges between nodes inside subgraphs or across different subgraphs.
Bypassed pointer capture on mouse pointers to preserve natural DOM event routing and visual hit-testing.
Used document.elementFromPoint to accurately detect the visual target under the cursor or finger during connection dragging.
Subgraph Inner-Node Priority:
Prioritized inner nodes over enclosing subgraph containers within the 50px snap radius so container clusters never steal drops or hover halos from child nodes.
Restored edge drop hit-testing to cleanly split flows when intermediate nodes are dropped onto connection lines.
Fixed overlay container pointer interception by setting pointer-events: none on .mermaid-native-overlay.
Install
BRAT (beta): add https://github.com/dev-hashemi/merlay in BRAT → Add Beta plugin.
Manual: download main.js, manifest.json, styles.css below into .obsidian/plugins/merlay/, then enable Merlay under Settings → Community plugins.
Requires Obsidian 1.4.0 or newer. Desktop and mobile supported.
Notes
Flowchart and state diagrams are fully visual; other diagram types open view-only with selection.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Merlay 0.3.1 — Fix drag-connect hit-testing and subgraph inner-node priority
Fixes & Improvements
document.elementFromPointto accurately detect the visual target under the cursor or finger during connection dragging.pointer-events: noneon.mermaid-native-overlay.Install
BRAT (beta): add
https://github.com/dev-hashemi/merlayin BRAT → Add Beta plugin.Manual: download
main.js,manifest.json,styles.cssbelow into.obsidian/plugins/merlay/, then enable Merlay under Settings → Community plugins.Requires Obsidian
1.4.0or newer. Desktop and mobile supported.Notes
mermaidblock that reproduces the problem.Full Changelog: 0.3.0...0.3.1
This discussion was created from the release Merlay 0.3.1.
All reactions