@tscircuit/footprinter 0.0.300 → 0.0.301
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +18 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8310,8 +8310,8 @@ var m2host = (raw_params) => {
|
|
|
8310
8310
|
};
|
|
8311
8311
|
|
|
8312
8312
|
// src/fn/mountedpcbmodule.ts
|
|
8313
|
-
import { z as z76 } from "zod";
|
|
8314
8313
|
import { length as length58 } from "circuit-json";
|
|
8314
|
+
import { z as z76 } from "zod";
|
|
8315
8315
|
var mountedpcbmodule_def = base_def.extend({
|
|
8316
8316
|
fn: z76.string(),
|
|
8317
8317
|
numPins: z76.number().optional().default(0),
|
|
@@ -8351,7 +8351,15 @@ var mountedpcbmodule_def = base_def.extend({
|
|
|
8351
8351
|
holeXDist: length58.optional(),
|
|
8352
8352
|
holeYDist: length58.optional(),
|
|
8353
8353
|
holeInset: length58.default("1mm"),
|
|
8354
|
-
pinrow: z76.union([z76.string(), z76.number()]).optional()
|
|
8354
|
+
pinrow: z76.union([z76.string(), z76.number()]).optional(),
|
|
8355
|
+
usbposition: z76.enum(["left", "right", "top", "bottom"]).optional().default("left"),
|
|
8356
|
+
usbleft: z76.boolean().optional().default(false),
|
|
8357
|
+
usbtop: z76.boolean().optional().default(false),
|
|
8358
|
+
usbright: z76.boolean().optional().default(false),
|
|
8359
|
+
usbbottom: z76.boolean().optional().default(false),
|
|
8360
|
+
usbtype: z76.enum(["micro", "c"]).optional(),
|
|
8361
|
+
usbmicro: z76.boolean().optional().default(false),
|
|
8362
|
+
usbc: z76.boolean().optional().default(false)
|
|
8355
8363
|
}).transform((data) => {
|
|
8356
8364
|
const pinlabelAnchorSide = determinePinlabelAnchorSide(data);
|
|
8357
8365
|
let pinRowSide = data.pinRowSide;
|
|
@@ -8359,6 +8367,14 @@ var mountedpcbmodule_def = base_def.extend({
|
|
|
8359
8367
|
if (data.pinrowright) pinRowSide = "right";
|
|
8360
8368
|
if (data.pinrowtop) pinRowSide = "top";
|
|
8361
8369
|
if (data.pinrowbottom) pinRowSide = "bottom";
|
|
8370
|
+
let usbposition = data.usbposition;
|
|
8371
|
+
if (data.usbleft) usbposition = "left";
|
|
8372
|
+
if (data.usbtop) usbposition = "top";
|
|
8373
|
+
if (data.usbright) usbposition = "right";
|
|
8374
|
+
if (data.usbbottom) usbposition = "bottom";
|
|
8375
|
+
let usbtype = data.usbtype;
|
|
8376
|
+
if (data.usbmicro) usbtype = "micro";
|
|
8377
|
+
if (data.usbc) usbtype = "c";
|
|
8362
8378
|
if (data.pinrow !== void 0) {
|
|
8363
8379
|
data.numPins = Number(data.pinrow);
|
|
8364
8380
|
}
|