We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 092e049 commit 63bc0a9Copy full SHA for 63bc0a9
src/api/OpenProcessing.ts
@@ -88,6 +88,11 @@ export const getSketch = memoize(async (
88
return payload as OpenProcessingSketchResponse;
89
});
90
91
+/**
92
+ * Note: this currently calls `/api/sketch/:id/code`
93
+ * But only uses the width and height properties from this call
94
+ * Width and height should instead be added to properties for `/api/sketch/:id` or `api/curation/:curationId/sketches` instead
95
+ */
96
export const getSketchSize = memoize(async (id: string) => {
97
const sketch = await getSketch(id)
98
if (sketch.mode !== 'p5js') {
0 commit comments