Skip to content

Commit 63bc0a9

Browse files
committed
Add note
1 parent 092e049 commit 63bc0a9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/api/OpenProcessing.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,11 @@ export const getSketch = memoize(async (
8888
return payload as OpenProcessingSketchResponse;
8989
});
9090

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+
*/
9196
export const getSketchSize = memoize(async (id: string) => {
9297
const sketch = await getSketch(id)
9398
if (sketch.mode !== 'p5js') {

0 commit comments

Comments
 (0)