MCPcopy
hub / github.com/opentrace/opentrace / throttledLabelCull

Method throttledLabelCull

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

Re-cull labels if enough time has passed. For immediate needs (e.g. toggle).

()

Source from the content-addressed store, hash-verified

2084
2085 /** Re-cull labels if enough time has passed. For immediate needs (e.g. toggle). */
2086 private throttledLabelCull(): void {
2087 const now = performance.now();
2088 if (now - this.lastLabelCull < this.LABEL_CULL_INTERVAL) return;
2089 this.runLabelCull();
2090 }
2091
2092 /** Debounced label cull — waits for interaction to stop before re-culling. */
2093 private debouncedLabelCull(): void {

Callers 1

set3DModeMethod · 0.95

Calls 1

runLabelCullMethod · 0.95

Tested by

no test coverage detected