/** * SVG canvas for the flow chart editor. * * Owns an mounted into the supplied container. * Subscribes to the store; re-renders on every change. Listens for pointer * events on nodes/edges to drive drag, label-edit, and context-menu actions. * * Hand-rolled SVG — no D3, no Konva. Hit-testing via `data-node-id` / * `data-edge-id` attributes. Pure DOM module: no globals. * * @module flowchart-canvas */ 'use strict'; // v4.9.6 — CommonJS sibling import when running under Node (the renderer.js // sidebar panel still uses require()), browser global fallback when loaded as // a