MCPcopy
hub / github.com/excalidraw/excalidraw / push

Method push

packages/excalidraw/queue.ts:35–45  ·  view source on GitHub ↗
(
    jobFactory: Job<TValue, TArgs>,
    ...args: TArgs
  )

Source from the content-addressed store, hash-verified

33 }
34
35 push<TValue, TArgs extends unknown[]>(
36 jobFactory: Job<TValue, TArgs>,
37 ...args: TArgs
38 ): Promise<TValue> {
39 const promise = resolvablePromise<TValue>();
40 this.jobs.push({ jobFactory, promise, args });
41
42 this.tick();
43
44 return promise;
45 }
46}

Callers 15

parseSceneDataFunction · 0.45
DebugClass · 0.45
getFilesMethod · 0.45
saveFilesToFirebaseFunction · 0.45
loadFilesFromFirebaseFunction · 0.45
encodeFilesForUploadFunction · 0.45
PortalClass · 0.45
polyLineFromCurveFunction · 0.45
getCurveShapeFunction · 0.45
polylineFromPointsFunction · 0.45
getClosedCurveShapeFunction · 0.45
getFrameChildrenFunction · 0.45

Calls 2

tickMethod · 0.95
resolvablePromiseFunction · 0.90

Tested by 5

createJobFactoryFunction · 0.36
reorderElementsFunction · 0.36
makeElementsFunction · 0.36
createBoundTextElementFunction · 0.36
idsToElementsFunction · 0.36