Lines Matching refs:area
10 * @param area
13 function selectDiagram(area) {
14 const selection = DWgetSelection(area);
18 const max = area.value.length;
24 const start = area.value.lastIndexOf(open, selection.start);
25 const end = area.value.indexOf(close, selection.end);
28 const prev = area.value.lastIndexOf(close, selection.start - close.length);
29 const next = area.value.indexOf(open, selection.start + open.length);
38 selection.start = area.value.indexOf('>', start) + 1;
49 const area = document.getElementById(edid);
50 const selection = selectDiagram(area);
52 const origSvg = area.value.substring(selection.start, selection.end);
59 area.value = area.value.substring(0, selection.start) +
61 area.value.substring(selection.end, area.value.length);