MCPcopy
hub / github.com/codedogQBY/ReadAny / createExpanderIcon

Function createExpanderIcon

packages/foliate-js/ui/tree.js:3–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1const createSVGElement = (tag) => document.createElementNS("http://www.w3.org/2000/svg", tag);
2
3const createExpanderIcon = () => {
4 const svg = createSVGElement("svg");
5 svg.setAttribute("viewBox", "0 0 13 10");
6 svg.setAttribute("width", "13");
7 svg.setAttribute("height", "13");
8 const polygon = createSVGElement("polygon");
9 polygon.setAttribute("points", "2 1, 12 1, 7 9");
10 svg.append(polygon);
11 return svg;
12};
13
14const createTOCItemElement = (list, map, onclick) => {
15 let count = 0;

Callers 1

createItemFunction · 0.85

Calls 3

setAttributeMethod · 0.80
createSVGElementFunction · 0.70
appendMethod · 0.65

Tested by

no test coverage detected