MCPcopy
hub / github.com/opentrace/opentrace / setLayoutMode

Method setLayoutMode

ui/src/components/pixi/PixiRenderer.ts:1644–1651  ·  view source on GitHub ↗

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')

Source from the content-addressed store, hash-verified

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 {

Callers 5

GraphPlaygroundFunction · 0.80
PhysicsPanelContainerFunction · 0.80
GraphControlsBarFunction · 0.80
GraphViewer.tsxFile · 0.80

Calls 1

Tested by

no test coverage detected