Skip to content

Commit fdc0074

Browse files
authored
Add showSolderMask for CreateSvgUrlOptions (#9)
1 parent d165086 commit fdc0074

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export type CreateSvgUrlOptions = {
1010
pngDensity?: number
1111
entrypoint?: string
1212
simulationExperimentId?: string
13+
showSolderMask?: boolean
1314
}
1415

1516
export function getCompressedBase64SnippetString(text: string) {
@@ -75,6 +76,9 @@ export function createSvgUrl(
7576
if (options.simulationExperimentId) {
7677
search.set("simulation_experiment_id", options.simulationExperimentId)
7778
}
79+
if (options.showSolderMask !== undefined) {
80+
search.set("show_solder_mask", options.showSolderMask ? "1" : "0")
81+
}
7882

7983
const query = search.toString()
8084
return `https://svg.tscircuit.com/?${query}`

0 commit comments

Comments
 (0)