Skip to content

Commit

Permalink
fixed NaN in sot23 silkscreen Blocking core PR (#208)
Browse files Browse the repository at this point in the history
* fixed NaN in sot23 silkscreen Blocking core PR

* removed console logs
  • Loading branch information
Abse2001 authored Feb 19, 2025
1 parent 42b1ffd commit f077072
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/fn/sot23.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,9 @@ export const sot23WithoutParsing = (parameters: z.infer<typeof sot23_def>) => {
),
)
}

const silkscreenRefText: SilkscreenRef = silkscreenRef(
0,
Number(parameters.h),
parseInt(parameters.h),
0.3,
)
return [...pads, silkscreenRefText as AnySoupElement]
Expand Down
2 changes: 1 addition & 1 deletion tests/__snapshots__/sot23.snap.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion tests/__snapshots__/sot23_w3_h1.5_p0.95mm.snap.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f077072

Please sign in to comment.