MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / atom

Function atom

lib/web/CodeMirror/test/test.js:1803–1814  ·  view source on GitHub ↗
(ll, cl, lr, cr, li, ri, ls, rs)

Source from the content-addressed store, hash-verified

1801 addDoc(cm, 10, 10);
1802
1803 function atom(ll, cl, lr, cr, li, ri, ls, rs) {
1804 var options = {
1805 atomic: true,
1806 inclusiveLeft: li,
1807 inclusiveRight: ri
1808 };
1809
1810 if (ls === true || ls === false) options["selectLeft"] = ls;
1811 if (rs === true || rs === false) options["selectRight"] = rs;
1812
1813 return cm.markText(Pos(ll, cl), Pos(lr, cr), options);
1814 }
1815
1816 // Can cursor to the left and right of a normal marker by jumping across it
1817 var m = atom(0, 1, 0, 5);

Callers 1

test.jsFile · 0.85

Calls 1

PosFunction · 0.50

Tested by

no test coverage detected