Debounced label cull — waits for interaction to stop before re-culling.
()
| 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 { |
no test coverage detected