MCPcopy
hub / github.com/opentrace/opentrace / debouncedLabelCull

Method debouncedLabelCull

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

Debounced label cull — waits for interaction to stop before re-culling.

()

Source from the content-addressed store, hash-verified

2091
2092 /** Debounced label cull — waits for interaction to stop before re-culling. */
2093 private debouncedLabelCull(): void {
2094 if (this.labelCullDebounceTimer !== null) {
2095 clearTimeout(this.labelCullDebounceTimer);
2096 }
2097 this.labelCullDebounceTimer = setTimeout(() => {
2098 this.labelCullDebounceTimer = null;
2099 this.runLabelCull();
2100 }, this.LABEL_CULL_DEBOUNCE);
2101 }
2102
2103 /** Actually run the label cull. */
2104 private runLabelCull(): void {

Callers 1

setupInteractionMethod · 0.95

Calls 1

runLabelCullMethod · 0.95

Tested by

no test coverage detected