()
| 2026 | } |
| 2027 | |
| 2028 | clearSelection() { |
| 2029 | if (!this.selectedNeuron) return; |
| 2030 | this.selectedNeuron = null; |
| 2031 | this.selectionConnectionData = null; |
| 2032 | this.currentSelectionDetail = null; |
| 2033 | this.disposeSelectionConnectionMeshes(); |
| 2034 | this.updateConnectionVisibility(); |
| 2035 | this.hideSelectionGlow(); |
| 2036 | if (typeof this.focusChangeCallback === "function") { |
| 2037 | this.focusChangeCallback(null); |
| 2038 | } |
| 2039 | if (this.lastDisplayActivations && this.lastNetworkActivations) { |
| 2040 | this.update(this.lastDisplayActivations, this.lastNetworkActivations, this.lastPreActivations); |
| 2041 | } else if (typeof this.requestRender === "function") { |
| 2042 | this.requestRender(); |
| 2043 | } |
| 2044 | } |
| 2045 | |
| 2046 | updateConnectionVisibility() { |
| 2047 | const showDefaultConnections = !this.selectedNeuron; |
no test coverage detected