MCPcopy Create free account
hub / github.com/openscopeproject/InteractiveHtmlBom / netColorRightClick

Function netColorRightClick

InteractiveHtmlBom/web/ibom.js:296–309  ·  view source on GitHub ↗
(net)

Source from the content-addressed store, hash-verified

294}
295
296function netColorRightClick(net) {
297 return (event) => {
298 if (event.button == 2) {
299 event.preventDefault();
300 event.stopPropagation();
301
302 var style = getComputedStyle(topmostdiv);
303 var defaultNetColor = style.getPropertyValue('--track-color').trim();
304 event.target.value = defaultNetColor;
305 delete settings.netColors[net];
306 updateNetColors();
307 }
308 }
309}
310
311function entryMatches(entry) {
312 if (settings.bommode == "netlist") {

Callers 1

populateBomBodyFunction · 0.85

Calls 1

updateNetColorsFunction · 0.85

Tested by

no test coverage detected