MCPcopy Index your code
hub / github.com/cifertech/DisplayKit / getPathOverlay

Function getPathOverlay

app.js:244–259  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

242}
243
244function getPathOverlay() {
245 if (!preview) return null;
246 let ov = preview.querySelector(".path-overlay");
247 if (!ov) {
248 ov = document.createElement("svg");
249 ov.className = "path-overlay";
250 ov.setAttribute("width", "100%");
251 ov.setAttribute("height", "100%");
252 ov.setAttribute("viewBox", `0 0 ${dispWidth} ${dispHeight}`);
253 ov.setAttribute("preserveAspectRatio", "none");
254 preview.appendChild(ov);
255 } else {
256 ov.setAttribute("viewBox", `0 0 ${dispWidth} ${dispHeight}`);
257 }
258 return ov;
259}
260
261// (Pen tool removed)
262

Callers 1

renderElementsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected