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

Function syncConnectionThicknessUi

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

Source from the content-addressed store, hash-verified

556 const max = Number.parseFloat(connectionThicknessSlider.max) || 0.1;
557 const formatThickness = (value) => `${value.toFixed(3)}`;
558 const syncConnectionThicknessUi = (value) => {
559 connectionThicknessSlider.value = String(value);
560 connectionThicknessValue.textContent = formatThickness(value);
561 };
562 const applyConnectionThickness = (rawValue, { emit = true } = {}) => {
563 let parsed = Number.parseFloat(rawValue);
564 if (!Number.isFinite(parsed)) {

Callers 1

applyConnectionThicknessFunction · 0.85

Calls 1

formatThicknessFunction · 0.85

Tested by

no test coverage detected