MCPcopy
hub / github.com/julianshapiro/velocity / getTarget

Function getTarget

test/src/utilities.ts:99–116  ·  view source on GitHub ↗
(startValues?: { [name: string]: string })

Source from the content-addressed store, hash-verified

97}
98
99export function getTarget(startValues?: { [name: string]: string }): HTMLDivElement {
100 const div = document.createElement("div") as HTMLDivElement;
101
102 div.className = "target";
103 div.style.opacity = String(defaultStyles.opacity);
104 div.style.color = `rgb(125, ${defaultStyles.colorGreen}, 125)`;
105 div.style.width = defaultStyles.width + "px";
106 div.style.height = defaultStyles.height + "px";
107 div.style.marginBottom = defaultStyles.marginBottom + "px";
108 div.style.textShadow = `0px 0px ${defaultStyles.textShadowBlur}px red`;
109 $qunitStage.appendChild(div);
110 targets.push(div);
111 if (startValues) {
112 applyStartValues(div, startValues);
113 }
114
115 return div;
116}
117
118export function once(func): typeof func {
119 let done: boolean,

Calls 1

applyStartValuesFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…