MCPcopy Create free account
hub / github.com/MathMan05/Fermi / makeContextHTML

Method makeContextHTML

src/webpage/contextmenu.ts:160–170  ·  view source on GitHub ↗
(obj1: x, obj2: y, menu: HTMLDivElement)

Source from the content-addressed store, hash-verified

158 this.group = group;
159 }
160 makeContextHTML(obj1: x, obj2: y, menu: HTMLDivElement): void {
161 if (!this.visible || this.visible(obj1, obj2)) {
162 if (
163 !menu.children[menu.children.length - 1] ||
164 menu.children[menu.children.length - 1].tagName === "HR"
165 ) {
166 return;
167 }
168 menu.append(document.createElement("hr"));
169 }
170 }
171}
172
173class ContextMenuText<x, y> implements menuPart<x, y> {

Callers

nothing calls this directly

Calls 1

visibleMethod · 0.80

Tested by

no test coverage detected