Tell the renderer the current layout mode. After Fix #52 this * no longer drives community-label visibility (which now follows * `showCommunityLabels`), but the renderer still tracks it for * downstream consumers (e.g. label-position recomputes).
(mode: 'spread' | 'compact')
| 1642 | * `showCommunityLabels`), but the renderer still tracks it for |
| 1643 | * downstream consumers (e.g. label-position recomputes). */ |
| 1644 | setLayoutMode(mode: 'spread' | 'compact'): void { |
| 1645 | if (this.currentLayoutMode === mode) return; |
| 1646 | this.currentLayoutMode = mode; |
| 1647 | // Force a fresh cull on the next position update — the visible |
| 1648 | // set is determined by current geometry, which just changed. |
| 1649 | this.communityVisibilityFrozen = false; |
| 1650 | this.updateCommunityLabelPositions(); |
| 1651 | } |
| 1652 | |
| 1653 | /** Show or hide the community wayfinder label layer (Fix #52). */ |
| 1654 | setShowCommunityLabels(show: boolean): void { |
no test coverage detected