Re-cull labels if enough time has passed. For immediate needs (e.g. toggle).
()
| 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 { |