This commit is contained in:
weirany 2025-04-23 18:19:10 +00:00 committed by GitHub
commit a41570ac11
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -15,10 +15,12 @@ If you want to overwrite the `source` field in the `JSON` string, you can set `w
**_Signature_**
<pre>
serializeAsJSON(&#123;<br/>&nbsp;
serializeAsJSON(<br/>&nbsp;
elements: <a href="https://github.com/excalidraw/excalidraw/blob/master/packages/excalidraw/element/types.ts#L114">ExcalidrawElement[]</a>,<br/>&nbsp;
appState: <a href="https://github.com/excalidraw/excalidraw/blob/master/packages/excalidraw/types.ts#L95">AppState</a>,<br/>
}): string
appState: <a href="https://github.com/excalidraw/excalidraw/blob/master/packages/excalidraw/types.ts#L95">AppState</a>,<br/>&nbsp;
files: <a href="https://github.com/excalidraw/excalidraw/blob/master/packages/excalidraw/types.ts#L97">BinaryFiles</a>,<br/>&nbsp;
type: "local" | "database"<br/>
): string
</pre>
**How to use**