@tscircuit/props 0.0.681 → 0.0.683
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/README.md +13 -10
- package/dist/index.d.ts +568 -483
- package/dist/index.js +1285 -1229
- package/dist/index.js.map +1 -1
- package/lib/assembly/board-mounting.ts +56 -0
- package/lib/assembly/index.ts +1 -0
- package/lib/assembly/motor.ts +11 -0
- package/lib/components/board.ts +26 -15
- package/lib/components/copper-pour.ts +40 -21
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -420,17 +420,16 @@ export interface BoardProps extends Omit<
|
|
|
420
420
|
"subcircuit" | "connections" | "outline"
|
|
421
421
|
> {
|
|
422
422
|
title?: string;
|
|
423
|
-
/**
|
|
424
|
-
* Assembly mounting target, such as "NEMA17.backface". Trimmed; omitted
|
|
425
|
-
* leaves the board unattached. The target face is resolved by the consumer.
|
|
426
|
-
*/
|
|
423
|
+
/** e.g. "NEMA17.backface". */
|
|
427
424
|
mountedTo?: string;
|
|
428
|
-
/**
|
|
429
|
-
* Nonnegative finite clearance between the target mounting face and the
|
|
430
|
-
* nearest PCB surface, in millimeters or a unit string. Parsed to mm.
|
|
431
|
-
* Omitted leaves the gap unset; only meaningful when mountedTo is supplied.
|
|
432
|
-
*/
|
|
425
|
+
/** Clearance from the mounting face, e.g. "6mm". */
|
|
433
426
|
mountGap?: Distance;
|
|
427
|
+
/** e.g. "J_USB" or "rightedge". */
|
|
428
|
+
mountRotationAnchor?: BoardMountRotationAnchor;
|
|
429
|
+
/** e.g. "calc(NEMA17.wireside-90degcw)". */
|
|
430
|
+
mountRotation?: string;
|
|
431
|
+
/** e.g. "top_layer_toward_mount_face". */
|
|
432
|
+
mountOrientation?: BoardMountOrientation;
|
|
434
433
|
/** Fabricator preset, preserved as supplied. Omitted leaves the preset unset. */
|
|
435
434
|
fabricatorPreset?:
|
|
436
435
|
| "jlcpcb_economy"
|
|
@@ -758,10 +757,14 @@ export interface CopperPourProps {
|
|
|
758
757
|
layer: LayerRefInput;
|
|
759
758
|
connectsTo: string;
|
|
760
759
|
/**
|
|
761
|
-
* Fill with a 45-degree crosshatch (0.25mm copper width, 1mm pitch).
|
|
760
|
+
* Fill with a 45-degree crosshatch (defaults: 0.25mm copper width, 1mm pitch).
|
|
762
761
|
* Preserves solid copper around boundaries and connections. Defaults to false.
|
|
763
762
|
*/
|
|
764
763
|
crosshatch?: boolean;
|
|
764
|
+
/** Repeat spacing perpendicular to the hatch strips. Defaults to 1mm when crosshatch is enabled. */
|
|
765
|
+
crosshatchPitch?: Distance;
|
|
766
|
+
/** Copper strip width, also used for the solid rim. Defaults to 0.25mm; must be less than the pitch when crosshatch is enabled. */
|
|
767
|
+
crosshatchWidth?: Distance;
|
|
765
768
|
/**
|
|
766
769
|
* Reserves the pour region during autorouting so unrelated traces do not
|
|
767
770
|
* split it. Vias may still cross the region using antipads.
|