MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / callDropFunc

Function callDropFunc

wasm/reset_events.js:86–93  ·  view source on GitHub ↗
(length, filenamesPtr)

Source from the content-addressed store, hash-verified

84
85var drop_files_or_dir = function (event) {
86 var callDropFunc = function (length, filenamesPtr) {
87 if (typeof (dynCall_viii) == 'function')
88 dynCall_viii(GLFW.active.dropFunc, GLFW.active.id, length, filenamesPtr);
89 else if (typeof (dynCall_vjij) == 'function')
90 dynCall_vjij(GLFW.active.dropFunc, BigInt(GLFW.active.id), length, BigInt(filenamesPtr));
91 else
92 getWasmTableEntry(GLFW.active.dropFunc)(toPointer(GLFW.active.id), length, filenamesPtr);
93 };
94
95 if (!GLFW.active || !GLFW.active.dropFunc) return;
96 if (!event.dataTransfer || !event.dataTransfer.files || event.dataTransfer.files.length == 0) return callDropFunc(0, 0);

Callers 2

drop_files_or_dirFunction · 0.85
saveFunction · 0.85

Calls 1

toPointerFunction · 0.70

Tested by

no test coverage detected