MCPcopy Create free account
hub / github.com/JKPotato-Computer/SignMaker / LineEditor

Function LineEditor

js/main copy.js:1289–1298  ·  view source on GitHub ↗
(line)

Source from the content-addressed store, hash-verified

1287 // Remove and re-add the controlText text
1288
1289 function LineEditor(line) {
1290 if (line.includes("</>")) {
1291 line = line.split("</>");
1292 controlTextElmt.appendChild(document.createTextNode(line[0] + "⠀⠀⠀⠀⠀⠀⠀⠀⠀" + line[1]));
1293 } else if (line.includes("<-->")) {
1294 // Line elmt
1295 } else {
1296 controlTextElmt.appendChild(document.createTextNode(line));
1297 }
1298 }
1299
1300 const controlTextArray = panel.sign.controlText.split("\n");
1301 for (let lineNum = 0, length = controlTextArray.length - 1; lineNum < length; lineNum++) {

Callers 1

redrawFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected