mirror of
https://github.com/apache/superset.git
synced 2026-05-30 04:39:20 +00:00
Click a region: viewport zooms in (4x) centered on its centroid. Click again or click the empty background: zoom back out. 600ms CSS transition on the SVG group. Implementation note: zoom state lives on the DOM (zoomedFeature local + group transform attribute) rather than React state. Two reasons: - Cleaner unmount (the transition completes naturally; no orphaned React state) - Avoids a re-render cycle on every click that would re-fit the projection and undo the zoom Background rect added to capture clicks outside any feature. Cross-filter integration intentionally NOT added in this commit — that needs the chart props' setDataMask path and a settings UI for which feature property to use as the filter key. Separate concern, follow-up commit. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>