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

Function syncConnectionUi

assets/main.js:429–433  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

427 connectionSlider.max = String(sliderMax);
428
429 const syncConnectionUi = (value) => {
430 const normalized = Number.isFinite(value) ? value : neuralScene.options.maxConnectionsPerNeuron;
431 connectionSlider.value = String(normalized);
432 connectionValue.textContent = `${normalized}`;
433 };
434
435 const applyConnectionLimit = (rawValue, { emit = true } = {}) => {
436 let parsed = Number.parseInt(rawValue, 10);

Callers 1

applyConnectionLimitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected