MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / disablePickMode

Function disablePickMode

packages/core/src/runtime/picker.ts:242–258  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

240 }
241
242 function disablePickMode(): void {
243 if (!pickModeActive) return;
244 pickModeActive = false;
245 if (pickModeHighlightEl) {
246 pickModeHighlightEl.classList.remove("__hf-pick-highlight");
247 pickModeHighlightEl = null;
248 }
249 if (pickModeStyleEl) {
250 pickModeStyleEl.remove();
251 pickModeStyleEl = null;
252 }
253 document.body.classList.remove("__hf-pick-active");
254 document.removeEventListener("mousemove", onPickMouseMove, true);
255 document.removeEventListener("click", onPickClick, true);
256 document.removeEventListener("keydown", onPickKeyDown, true);
257 emitPickerRuntimeEvent("hyperframe:picker:mode", { isPickMode: false, timestamp: Date.now() });
258 }
259
260 function installPickerApi(): void {
261 window.__HF_PICKER_API = {

Callers 2

onPickKeyDownFunction · 0.85
installPickerApiFunction · 0.85

Calls 2

emitPickerRuntimeEventFunction · 0.85
nowMethod · 0.80

Tested by

no test coverage detected