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 d165086 commit fdc0074Copy full SHA for fdc0074
lib/index.ts
@@ -10,6 +10,7 @@ export type CreateSvgUrlOptions = {
10
pngDensity?: number
11
entrypoint?: string
12
simulationExperimentId?: string
13
+ showSolderMask?: boolean
14
}
15
16
export function getCompressedBase64SnippetString(text: string) {
@@ -75,6 +76,9 @@ export function createSvgUrl(
75
76
if (options.simulationExperimentId) {
77
search.set("simulation_experiment_id", options.simulationExperimentId)
78
79
+ if (options.showSolderMask !== undefined) {
80
+ search.set("show_solder_mask", options.showSolderMask ? "1" : "0")
81
+ }
82
83
const query = search.toString()
84
return `https://svg.tscircuit.com/?${query}`
0 commit comments