Merlay 0.3.1
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.elementFromPointto 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: noneon.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.
- Please report issues at https://github.com/dev-hashemi/merlay/issues — include Obsidian version, installer version, and a minimal
mermaidblock that reproduces the problem.
Full Changelog: 0.3.0...0.3.1