Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/fn/mountedpcbmodule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ export const mountedpcbmodule_def = base_def
id: length.default("1.0mm").describe("inner diameter"),
od: length.default("1.5mm").describe("outer diameter"),
male: z.boolean().optional().describe("the module uses male headers"),
nopin: z
.boolean()
.optional()
.default(false)
.describe("omit pins rendering"),
Comment on lines +26 to +30
Copy link

Copilot AI Jan 31, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The nopin property is defined in the schema but is never extracted from the parameters object or used in the rendering logic. This means setting nopin: true will have no effect on the output.

To implement this feature properly, you need to:

  1. Extract nopin from the parameters object (around line 226-254)
  2. Use it to conditionally skip pin rendering in the addPin function (around line 271-332) and the pin rendering loops (around lines 410-481)

For example, the addPin function should check if (parameters.nopin) return; at the beginning, or the calls to addPin should be wrapped in a condition like if (!parameters.nopin) { addPin(...); }.

Suggested change
nopin: z
.boolean()
.optional()
.default(false)
.describe("omit pins rendering"),

Copilot uses AI. Check for mistakes.
female: z.boolean().optional().describe("the module uses female headers"),
smd: z.boolean().optional().describe("surface mount device"),
pinlabeltextalignleft: z.boolean().optional().default(false),
Expand Down