MCPcopy Create free account
hub / github.com/DFin/Neural-Network-Visualisation / clearSelection

Method clearSelection

assets/main.js:2028–2044  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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;

Callers 4

initializeVisualizerFunction · 0.95
initThreeSceneMethod · 0.95
trySelectNeuronMethod · 0.95
setSelectedNeuronMethod · 0.95

Calls 4

hideSelectionGlowMethod · 0.95
updateMethod · 0.95

Tested by

no test coverage detected