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 de51f21 commit 64fd066Copy full SHA for 64fd066
lib/index.ts
@@ -33,6 +33,14 @@ export function createSvgUrl(
33
return `https://svg.tscircuit.com/?svg_type=${svgType}&code=${encodeURIComponent(base64Data)}`
34
}
35
36
+export function createBrowserPreviewUrl(
37
+ tscircuitCode: string,
38
+ view?: "pcb" | "schematic" | "3d",
39
+) {
40
+ const base64Data = getCompressedBase64SnippetString(tscircuitCode)
41
+ return `https://browser-preview.tscircuit.com/?view=${view}&code=${encodeURIComponent(base64Data)}`
42
+}
43
+
44
export function createPngUrl(
45
tscircuitCode: string,
46
view: "pcb" | "schematic" | "3d",
0 commit comments