MCPcopy Create free account
hub / github.com/OpenSignLabs/OpenSign / toDataUrl

Function toDataUrl

apps/OpenSign/src/constant/Utils.js:280–288  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

278 "#cc9900"
279];
280export const toDataUrl = (file) => {
281 return new Promise((resolve) => {
282 const reader = new FileReader();
283 reader.readAsDataURL(file);
284 reader.onloadend = (e) => {
285 resolve(e.target.result);
286 };
287 });
288};
289
290//function for getting document details for getDrive cloud function
291export const getDrive = async (documentId, skip = 0, limit = 50) => {

Callers 4

FormsFunction · 0.90
onImageChangeFunction · 0.90
onImgInitialsChangeFunction · 0.90
onStampChangeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected