@tscircuit/core 0.0.779 → 0.0.781
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.d.ts +256 -87
- package/dist/index.js +105 -7
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as circuit_json from 'circuit-json';
|
|
2
2
|
import { PcbTraceError, PcbPlacementError, PcbManualEditConflictWarning, PcbViaClearanceError, LayerRef, AnyCircuitElement, Size, AnySourceComponent, PcbTraceRoutePoint, PcbTrace as PcbTrace$1, PcbVia, SchematicPort, SchematicComponent, RouteHintPoint, CircuitJson } from 'circuit-json';
|
|
3
3
|
import * as _tscircuit_props from '@tscircuit/props';
|
|
4
|
-
import { PlatformConfig, subcircuitGroupProps, AutorouterConfig, traceProps, SupplierPartNumbers, CadModelProp, SchematicPortArrangement, groupProps, boardProps, capacitorProps, chipProps, pinoutProps, diodeProps, fuseProps, jumperProps, solderjumperProps, ledProps, powerSourceProps, CommonComponentProps, resistorProps, constraintProps, fabricationNotePathProps, fabricationNoteTextProps, footprintProps, subcircuitProps, breakoutProps, breakoutPointProps, holeProps, pcbKeepoutProps, netLabelProps, cadmodelProps, cadassemblyProps, platedHoleProps, silkscreenCircleProps, silkscreenPathProps, silkscreenRectProps, silkscreenTextProps, silkscreenLineProps, smtPadProps, traceHintProps, viaProps, copperPourProps, cutoutProps, batteryProps, pinHeaderProps, resonatorProps, inductorProps, potentiometerProps, pushButtonProps, crystalProps, transistorProps, mosfetProps, switchProps, SwitchProps, testpointProps, schematicTextProps, schematicLineProps, schematicRectProps, schematicArcProps, schematicCircleProps, schematicBoxProps, schematicTableProps, schematicRowProps, schematicCellProps, symbolProps, analogSimulationProps, CapacitorProps, ChipProps, DiodeProps, ResistorProps, ManualEditEvent, ManualEditsFile, ChipConnections, manual_edits_file } from '@tscircuit/props';
|
|
4
|
+
import { PlatformConfig, subcircuitGroupProps, AutorouterConfig, traceProps, SupplierPartNumbers, CadModelProp, SchematicPortArrangement, groupProps, boardProps, capacitorProps, chipProps, pinoutProps, diodeProps, fuseProps, jumperProps, solderjumperProps, ledProps, powerSourceProps, CommonComponentProps, resistorProps, constraintProps, fabricationNoteRectProps, fabricationNotePathProps, fabricationNoteTextProps, pcbNoteLineProps, footprintProps, subcircuitProps, breakoutProps, breakoutPointProps, holeProps, pcbKeepoutProps, netLabelProps, cadmodelProps, cadassemblyProps, platedHoleProps, silkscreenCircleProps, silkscreenPathProps, silkscreenRectProps, silkscreenTextProps, silkscreenLineProps, smtPadProps, traceHintProps, viaProps, copperPourProps, cutoutProps, batteryProps, pinHeaderProps, resonatorProps, inductorProps, potentiometerProps, pushButtonProps, crystalProps, transistorProps, mosfetProps, switchProps, SwitchProps, testpointProps, schematicTextProps, schematicLineProps, schematicRectProps, schematicArcProps, schematicCircleProps, schematicBoxProps, schematicTableProps, schematicRowProps, schematicCellProps, symbolProps, analogSimulationProps, CapacitorProps, ChipProps, DiodeProps, ResistorProps, ManualEditEvent, ManualEditsFile, ChipConnections, manual_edits_file } from '@tscircuit/props';
|
|
5
5
|
import * as react from 'react';
|
|
6
6
|
import react__default, { ReactElement, DetailedHTMLProps, SVGProps } from 'react';
|
|
7
7
|
export { createElement } from 'react';
|
|
@@ -1306,7 +1306,6 @@ declare class Board extends Group<typeof boardProps> {
|
|
|
1306
1306
|
pcbX: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
1307
1307
|
pcbY: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
1308
1308
|
pcbRotation: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
1309
|
-
pcbPositionAnchor: zod.ZodOptional<zod.ZodString>;
|
|
1310
1309
|
pcbMarginTop: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
1311
1310
|
pcbMarginRight: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
1312
1311
|
pcbMarginBottom: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
@@ -1616,6 +1615,7 @@ declare class Board extends Group<typeof boardProps> {
|
|
|
1616
1615
|
pcbPaddingRight: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
1617
1616
|
pcbPaddingTop: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
1618
1617
|
pcbPaddingBottom: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
1618
|
+
pcbPositionAnchor: zod.ZodOptional<zod.ZodType<_tscircuit_props.AutocompleteString<"top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right">, zod.ZodTypeDef, _tscircuit_props.AutocompleteString<"top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right">>>;
|
|
1619
1619
|
layoutMode: zod.ZodOptional<zod.ZodEnum<["grid", "flex", "match-adapt", "relative", "none"]>>;
|
|
1620
1620
|
position: zod.ZodOptional<zod.ZodEnum<["absolute", "relative"]>>;
|
|
1621
1621
|
gridCols: zod.ZodOptional<zod.ZodUnion<[zod.ZodNumber, zod.ZodString]>>;
|
|
@@ -2003,7 +2003,7 @@ declare class Board extends Group<typeof boardProps> {
|
|
|
2003
2003
|
pcbX?: number | undefined;
|
|
2004
2004
|
pcbY?: number | undefined;
|
|
2005
2005
|
pcbRotation?: number | undefined;
|
|
2006
|
-
pcbPositionAnchor?:
|
|
2006
|
+
pcbPositionAnchor?: _tscircuit_props.AutocompleteString<"top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right"> | undefined;
|
|
2007
2007
|
layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
2008
2008
|
pcbMarginTop?: number | undefined;
|
|
2009
2009
|
pcbMarginRight?: number | undefined;
|
|
@@ -2189,44 +2189,6 @@ declare class Board extends Group<typeof boardProps> {
|
|
|
2189
2189
|
pcbPaddingRight?: number | undefined;
|
|
2190
2190
|
pcbPaddingTop?: number | undefined;
|
|
2191
2191
|
pcbPaddingBottom?: number | undefined;
|
|
2192
|
-
pcbGrid?: boolean | undefined;
|
|
2193
|
-
pcbGridCols?: string | number | undefined;
|
|
2194
|
-
pcbGridRows?: string | number | undefined;
|
|
2195
|
-
pcbGridTemplateRows?: string | undefined;
|
|
2196
|
-
pcbGridTemplateColumns?: string | undefined;
|
|
2197
|
-
pcbGridTemplate?: string | undefined;
|
|
2198
|
-
pcbGridGap?: string | number | undefined;
|
|
2199
|
-
pcbGridRowGap?: string | number | undefined;
|
|
2200
|
-
pcbGridColumnGap?: string | number | undefined;
|
|
2201
|
-
pcbFlex?: string | boolean | undefined;
|
|
2202
|
-
pcbFlexGap?: string | number | undefined;
|
|
2203
|
-
pcbFlexDirection?: "row" | "column" | undefined;
|
|
2204
|
-
pcbAlignItems?: "center" | "start" | "end" | "stretch" | undefined;
|
|
2205
|
-
pcbJustifyContent?: "center" | "start" | "end" | "stretch" | "space-between" | "space-around" | "space-evenly" | undefined;
|
|
2206
|
-
pcbFlexRow?: boolean | undefined;
|
|
2207
|
-
pcbFlexColumn?: boolean | undefined;
|
|
2208
|
-
pcbGap?: string | number | undefined;
|
|
2209
|
-
pcbPack?: boolean | undefined;
|
|
2210
|
-
pcbPackGap?: string | number | undefined;
|
|
2211
|
-
schGrid?: boolean | undefined;
|
|
2212
|
-
schGridCols?: string | number | undefined;
|
|
2213
|
-
schGridRows?: string | number | undefined;
|
|
2214
|
-
schGridTemplateRows?: string | undefined;
|
|
2215
|
-
schGridTemplateColumns?: string | undefined;
|
|
2216
|
-
schGridTemplate?: string | undefined;
|
|
2217
|
-
schGridGap?: string | number | undefined;
|
|
2218
|
-
schGridRowGap?: string | number | undefined;
|
|
2219
|
-
schGridColumnGap?: string | number | undefined;
|
|
2220
|
-
schFlex?: string | boolean | undefined;
|
|
2221
|
-
schFlexGap?: string | number | undefined;
|
|
2222
|
-
schFlexDirection?: "row" | "column" | undefined;
|
|
2223
|
-
schAlignItems?: "center" | "start" | "end" | "stretch" | undefined;
|
|
2224
|
-
schJustifyContent?: "center" | "start" | "end" | "stretch" | "space-between" | "space-around" | "space-evenly" | undefined;
|
|
2225
|
-
schFlexRow?: boolean | undefined;
|
|
2226
|
-
schFlexColumn?: boolean | undefined;
|
|
2227
|
-
schGap?: string | number | undefined;
|
|
2228
|
-
schPack?: boolean | undefined;
|
|
2229
|
-
schMatchAdapt?: boolean | undefined;
|
|
2230
2192
|
manualEdits?: {
|
|
2231
2193
|
pcb_placements?: {
|
|
2232
2194
|
center: {
|
|
@@ -2267,6 +2229,44 @@ declare class Board extends Group<typeof boardProps> {
|
|
|
2267
2229
|
square?: boolean | undefined;
|
|
2268
2230
|
emptyArea?: string | undefined;
|
|
2269
2231
|
filledArea?: string | undefined;
|
|
2232
|
+
pcbGrid?: boolean | undefined;
|
|
2233
|
+
pcbGridCols?: string | number | undefined;
|
|
2234
|
+
pcbGridRows?: string | number | undefined;
|
|
2235
|
+
pcbGridTemplateRows?: string | undefined;
|
|
2236
|
+
pcbGridTemplateColumns?: string | undefined;
|
|
2237
|
+
pcbGridTemplate?: string | undefined;
|
|
2238
|
+
pcbGridGap?: string | number | undefined;
|
|
2239
|
+
pcbGridRowGap?: string | number | undefined;
|
|
2240
|
+
pcbGridColumnGap?: string | number | undefined;
|
|
2241
|
+
pcbFlex?: string | boolean | undefined;
|
|
2242
|
+
pcbFlexGap?: string | number | undefined;
|
|
2243
|
+
pcbFlexDirection?: "row" | "column" | undefined;
|
|
2244
|
+
pcbAlignItems?: "center" | "start" | "end" | "stretch" | undefined;
|
|
2245
|
+
pcbJustifyContent?: "center" | "start" | "end" | "stretch" | "space-between" | "space-around" | "space-evenly" | undefined;
|
|
2246
|
+
pcbFlexRow?: boolean | undefined;
|
|
2247
|
+
pcbFlexColumn?: boolean | undefined;
|
|
2248
|
+
pcbGap?: string | number | undefined;
|
|
2249
|
+
pcbPack?: boolean | undefined;
|
|
2250
|
+
pcbPackGap?: string | number | undefined;
|
|
2251
|
+
schGrid?: boolean | undefined;
|
|
2252
|
+
schGridCols?: string | number | undefined;
|
|
2253
|
+
schGridRows?: string | number | undefined;
|
|
2254
|
+
schGridTemplateRows?: string | undefined;
|
|
2255
|
+
schGridTemplateColumns?: string | undefined;
|
|
2256
|
+
schGridTemplate?: string | undefined;
|
|
2257
|
+
schGridGap?: string | number | undefined;
|
|
2258
|
+
schGridRowGap?: string | number | undefined;
|
|
2259
|
+
schGridColumnGap?: string | number | undefined;
|
|
2260
|
+
schFlex?: string | boolean | undefined;
|
|
2261
|
+
schFlexGap?: string | number | undefined;
|
|
2262
|
+
schFlexDirection?: "row" | "column" | undefined;
|
|
2263
|
+
schAlignItems?: "center" | "start" | "end" | "stretch" | undefined;
|
|
2264
|
+
schJustifyContent?: "center" | "start" | "end" | "stretch" | "space-between" | "space-around" | "space-evenly" | undefined;
|
|
2265
|
+
schFlexRow?: boolean | undefined;
|
|
2266
|
+
schFlexColumn?: boolean | undefined;
|
|
2267
|
+
schGap?: string | number | undefined;
|
|
2268
|
+
schPack?: boolean | undefined;
|
|
2269
|
+
schMatchAdapt?: boolean | undefined;
|
|
2270
2270
|
outline?: {
|
|
2271
2271
|
x: number;
|
|
2272
2272
|
y: number;
|
|
@@ -2293,7 +2293,7 @@ declare class Board extends Group<typeof boardProps> {
|
|
|
2293
2293
|
pcbX?: string | number | undefined;
|
|
2294
2294
|
pcbY?: string | number | undefined;
|
|
2295
2295
|
pcbRotation?: string | number | undefined;
|
|
2296
|
-
pcbPositionAnchor?:
|
|
2296
|
+
pcbPositionAnchor?: _tscircuit_props.AutocompleteString<"top_left" | "top_center" | "top_right" | "center_left" | "center" | "center_right" | "bottom_left" | "bottom_center" | "bottom_right"> | undefined;
|
|
2297
2297
|
layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
2298
2298
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
2299
2299
|
} | undefined;
|
|
@@ -2481,44 +2481,6 @@ declare class Board extends Group<typeof boardProps> {
|
|
|
2481
2481
|
pcbPaddingRight?: string | number | undefined;
|
|
2482
2482
|
pcbPaddingTop?: string | number | undefined;
|
|
2483
2483
|
pcbPaddingBottom?: string | number | undefined;
|
|
2484
|
-
pcbGrid?: boolean | undefined;
|
|
2485
|
-
pcbGridCols?: string | number | undefined;
|
|
2486
|
-
pcbGridRows?: string | number | undefined;
|
|
2487
|
-
pcbGridTemplateRows?: string | undefined;
|
|
2488
|
-
pcbGridTemplateColumns?: string | undefined;
|
|
2489
|
-
pcbGridTemplate?: string | undefined;
|
|
2490
|
-
pcbGridGap?: string | number | undefined;
|
|
2491
|
-
pcbGridRowGap?: string | number | undefined;
|
|
2492
|
-
pcbGridColumnGap?: string | number | undefined;
|
|
2493
|
-
pcbFlex?: string | boolean | undefined;
|
|
2494
|
-
pcbFlexGap?: string | number | undefined;
|
|
2495
|
-
pcbFlexDirection?: "row" | "column" | undefined;
|
|
2496
|
-
pcbAlignItems?: "center" | "start" | "end" | "stretch" | undefined;
|
|
2497
|
-
pcbJustifyContent?: "center" | "start" | "end" | "stretch" | "space-between" | "space-around" | "space-evenly" | undefined;
|
|
2498
|
-
pcbFlexRow?: boolean | undefined;
|
|
2499
|
-
pcbFlexColumn?: boolean | undefined;
|
|
2500
|
-
pcbGap?: string | number | undefined;
|
|
2501
|
-
pcbPack?: boolean | undefined;
|
|
2502
|
-
pcbPackGap?: string | number | undefined;
|
|
2503
|
-
schGrid?: boolean | undefined;
|
|
2504
|
-
schGridCols?: string | number | undefined;
|
|
2505
|
-
schGridRows?: string | number | undefined;
|
|
2506
|
-
schGridTemplateRows?: string | undefined;
|
|
2507
|
-
schGridTemplateColumns?: string | undefined;
|
|
2508
|
-
schGridTemplate?: string | undefined;
|
|
2509
|
-
schGridGap?: string | number | undefined;
|
|
2510
|
-
schGridRowGap?: string | number | undefined;
|
|
2511
|
-
schGridColumnGap?: string | number | undefined;
|
|
2512
|
-
schFlex?: string | boolean | undefined;
|
|
2513
|
-
schFlexGap?: string | number | undefined;
|
|
2514
|
-
schFlexDirection?: "row" | "column" | undefined;
|
|
2515
|
-
schAlignItems?: "center" | "start" | "end" | "stretch" | undefined;
|
|
2516
|
-
schJustifyContent?: "center" | "start" | "end" | "stretch" | "space-between" | "space-around" | "space-evenly" | undefined;
|
|
2517
|
-
schFlexRow?: boolean | undefined;
|
|
2518
|
-
schFlexColumn?: boolean | undefined;
|
|
2519
|
-
schGap?: string | number | undefined;
|
|
2520
|
-
schPack?: boolean | undefined;
|
|
2521
|
-
schMatchAdapt?: boolean | undefined;
|
|
2522
2484
|
manualEdits?: {
|
|
2523
2485
|
pcb_placements?: {
|
|
2524
2486
|
center: {
|
|
@@ -2561,6 +2523,44 @@ declare class Board extends Group<typeof boardProps> {
|
|
|
2561
2523
|
square?: boolean | undefined;
|
|
2562
2524
|
emptyArea?: string | undefined;
|
|
2563
2525
|
filledArea?: string | undefined;
|
|
2526
|
+
pcbGrid?: boolean | undefined;
|
|
2527
|
+
pcbGridCols?: string | number | undefined;
|
|
2528
|
+
pcbGridRows?: string | number | undefined;
|
|
2529
|
+
pcbGridTemplateRows?: string | undefined;
|
|
2530
|
+
pcbGridTemplateColumns?: string | undefined;
|
|
2531
|
+
pcbGridTemplate?: string | undefined;
|
|
2532
|
+
pcbGridGap?: string | number | undefined;
|
|
2533
|
+
pcbGridRowGap?: string | number | undefined;
|
|
2534
|
+
pcbGridColumnGap?: string | number | undefined;
|
|
2535
|
+
pcbFlex?: string | boolean | undefined;
|
|
2536
|
+
pcbFlexGap?: string | number | undefined;
|
|
2537
|
+
pcbFlexDirection?: "row" | "column" | undefined;
|
|
2538
|
+
pcbAlignItems?: "center" | "start" | "end" | "stretch" | undefined;
|
|
2539
|
+
pcbJustifyContent?: "center" | "start" | "end" | "stretch" | "space-between" | "space-around" | "space-evenly" | undefined;
|
|
2540
|
+
pcbFlexRow?: boolean | undefined;
|
|
2541
|
+
pcbFlexColumn?: boolean | undefined;
|
|
2542
|
+
pcbGap?: string | number | undefined;
|
|
2543
|
+
pcbPack?: boolean | undefined;
|
|
2544
|
+
pcbPackGap?: string | number | undefined;
|
|
2545
|
+
schGrid?: boolean | undefined;
|
|
2546
|
+
schGridCols?: string | number | undefined;
|
|
2547
|
+
schGridRows?: string | number | undefined;
|
|
2548
|
+
schGridTemplateRows?: string | undefined;
|
|
2549
|
+
schGridTemplateColumns?: string | undefined;
|
|
2550
|
+
schGridTemplate?: string | undefined;
|
|
2551
|
+
schGridGap?: string | number | undefined;
|
|
2552
|
+
schGridRowGap?: string | number | undefined;
|
|
2553
|
+
schGridColumnGap?: string | number | undefined;
|
|
2554
|
+
schFlex?: string | boolean | undefined;
|
|
2555
|
+
schFlexGap?: string | number | undefined;
|
|
2556
|
+
schFlexDirection?: "row" | "column" | undefined;
|
|
2557
|
+
schAlignItems?: "center" | "start" | "end" | "stretch" | undefined;
|
|
2558
|
+
schJustifyContent?: "center" | "start" | "end" | "stretch" | "space-between" | "space-around" | "space-evenly" | undefined;
|
|
2559
|
+
schFlexRow?: boolean | undefined;
|
|
2560
|
+
schFlexColumn?: boolean | undefined;
|
|
2561
|
+
schGap?: string | number | undefined;
|
|
2562
|
+
schPack?: boolean | undefined;
|
|
2563
|
+
schMatchAdapt?: boolean | undefined;
|
|
2564
2564
|
outline?: {
|
|
2565
2565
|
x: string | number;
|
|
2566
2566
|
y: string | number;
|
|
@@ -14601,8 +14601,8 @@ declare const voltageSourceProps: z.ZodObject<{
|
|
|
14601
14601
|
pcbX?: number | undefined;
|
|
14602
14602
|
voltage?: number | undefined;
|
|
14603
14603
|
frequency?: number | undefined;
|
|
14604
|
-
pcbY?: number | undefined;
|
|
14605
14604
|
pcbPositionAnchor?: string | undefined;
|
|
14605
|
+
pcbY?: number | undefined;
|
|
14606
14606
|
pcbMarginTop?: number | undefined;
|
|
14607
14607
|
pcbMarginRight?: number | undefined;
|
|
14608
14608
|
pcbMarginBottom?: number | undefined;
|
|
@@ -14781,8 +14781,8 @@ declare const voltageSourceProps: z.ZodObject<{
|
|
|
14781
14781
|
pcbX?: string | number | undefined;
|
|
14782
14782
|
voltage?: string | number | undefined;
|
|
14783
14783
|
frequency?: string | number | undefined;
|
|
14784
|
-
pcbY?: string | number | undefined;
|
|
14785
14784
|
pcbPositionAnchor?: string | undefined;
|
|
14785
|
+
pcbY?: string | number | undefined;
|
|
14786
14786
|
pcbMarginTop?: string | number | undefined;
|
|
14787
14787
|
pcbMarginRight?: string | number | undefined;
|
|
14788
14788
|
pcbMarginBottom?: string | number | undefined;
|
|
@@ -15602,8 +15602,8 @@ declare class VoltageSource extends NormalComponent<typeof voltageSourceProps, "
|
|
|
15602
15602
|
pcbX?: number | undefined;
|
|
15603
15603
|
voltage?: number | undefined;
|
|
15604
15604
|
frequency?: number | undefined;
|
|
15605
|
-
pcbY?: number | undefined;
|
|
15606
15605
|
pcbPositionAnchor?: string | undefined;
|
|
15606
|
+
pcbY?: number | undefined;
|
|
15607
15607
|
pcbMarginTop?: number | undefined;
|
|
15608
15608
|
pcbMarginRight?: number | undefined;
|
|
15609
15609
|
pcbMarginBottom?: number | undefined;
|
|
@@ -15782,8 +15782,8 @@ declare class VoltageSource extends NormalComponent<typeof voltageSourceProps, "
|
|
|
15782
15782
|
pcbX?: string | number | undefined;
|
|
15783
15783
|
voltage?: string | number | undefined;
|
|
15784
15784
|
frequency?: string | number | undefined;
|
|
15785
|
-
pcbY?: string | number | undefined;
|
|
15786
15785
|
pcbPositionAnchor?: string | undefined;
|
|
15786
|
+
pcbY?: string | number | undefined;
|
|
15787
15787
|
pcbMarginTop?: string | number | undefined;
|
|
15788
15788
|
pcbMarginRight?: string | number | undefined;
|
|
15789
15789
|
pcbMarginBottom?: string | number | undefined;
|
|
@@ -17055,6 +17055,91 @@ declare class Constraint extends PrimitiveComponent<typeof constraintProps> {
|
|
|
17055
17055
|
};
|
|
17056
17056
|
}
|
|
17057
17057
|
|
|
17058
|
+
declare class FabricationNoteRect extends PrimitiveComponent<typeof fabricationNoteRectProps> {
|
|
17059
|
+
fabrication_note_rect_id: string | null;
|
|
17060
|
+
get config(): {
|
|
17061
|
+
componentName: string;
|
|
17062
|
+
zodProps: zod.ZodObject<Omit<{
|
|
17063
|
+
pcbX: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
17064
|
+
pcbY: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
17065
|
+
pcbRotation: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
17066
|
+
pcbPositionAnchor: zod.ZodOptional<zod.ZodString>;
|
|
17067
|
+
layer: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>, zod.ZodObject<{
|
|
17068
|
+
name: zod.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>;
|
|
17069
|
+
}, "strip", zod.ZodTypeAny, {
|
|
17070
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
17071
|
+
}, {
|
|
17072
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
17073
|
+
}>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
17074
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
17075
|
+
}>>;
|
|
17076
|
+
pcbMarginTop: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
17077
|
+
pcbMarginRight: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
17078
|
+
pcbMarginBottom: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
17079
|
+
pcbMarginLeft: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
17080
|
+
pcbMarginX: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
17081
|
+
pcbMarginY: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
17082
|
+
pcbRelative: zod.ZodOptional<zod.ZodBoolean>;
|
|
17083
|
+
relative: zod.ZodOptional<zod.ZodBoolean>;
|
|
17084
|
+
}, "pcbRotation"> & {
|
|
17085
|
+
width: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
17086
|
+
height: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
17087
|
+
strokeWidth: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
17088
|
+
isFilled: zod.ZodOptional<zod.ZodBoolean>;
|
|
17089
|
+
hasStroke: zod.ZodOptional<zod.ZodBoolean>;
|
|
17090
|
+
isStrokeDashed: zod.ZodOptional<zod.ZodBoolean>;
|
|
17091
|
+
color: zod.ZodOptional<zod.ZodString>;
|
|
17092
|
+
}, "strip", zod.ZodTypeAny, {
|
|
17093
|
+
width: number;
|
|
17094
|
+
height: number;
|
|
17095
|
+
pcbX?: number | undefined;
|
|
17096
|
+
pcbY?: number | undefined;
|
|
17097
|
+
pcbPositionAnchor?: string | undefined;
|
|
17098
|
+
layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
17099
|
+
pcbMarginTop?: number | undefined;
|
|
17100
|
+
pcbMarginRight?: number | undefined;
|
|
17101
|
+
pcbMarginBottom?: number | undefined;
|
|
17102
|
+
pcbMarginLeft?: number | undefined;
|
|
17103
|
+
pcbMarginX?: number | undefined;
|
|
17104
|
+
pcbMarginY?: number | undefined;
|
|
17105
|
+
pcbRelative?: boolean | undefined;
|
|
17106
|
+
relative?: boolean | undefined;
|
|
17107
|
+
strokeWidth?: number | undefined;
|
|
17108
|
+
color?: string | undefined;
|
|
17109
|
+
isFilled?: boolean | undefined;
|
|
17110
|
+
hasStroke?: boolean | undefined;
|
|
17111
|
+
isStrokeDashed?: boolean | undefined;
|
|
17112
|
+
}, {
|
|
17113
|
+
width: string | number;
|
|
17114
|
+
height: string | number;
|
|
17115
|
+
pcbX?: string | number | undefined;
|
|
17116
|
+
pcbY?: string | number | undefined;
|
|
17117
|
+
pcbPositionAnchor?: string | undefined;
|
|
17118
|
+
layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
17119
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
17120
|
+
} | undefined;
|
|
17121
|
+
pcbMarginTop?: string | number | undefined;
|
|
17122
|
+
pcbMarginRight?: string | number | undefined;
|
|
17123
|
+
pcbMarginBottom?: string | number | undefined;
|
|
17124
|
+
pcbMarginLeft?: string | number | undefined;
|
|
17125
|
+
pcbMarginX?: string | number | undefined;
|
|
17126
|
+
pcbMarginY?: string | number | undefined;
|
|
17127
|
+
pcbRelative?: boolean | undefined;
|
|
17128
|
+
relative?: boolean | undefined;
|
|
17129
|
+
strokeWidth?: string | number | undefined;
|
|
17130
|
+
color?: string | undefined;
|
|
17131
|
+
isFilled?: boolean | undefined;
|
|
17132
|
+
hasStroke?: boolean | undefined;
|
|
17133
|
+
isStrokeDashed?: boolean | undefined;
|
|
17134
|
+
}>;
|
|
17135
|
+
};
|
|
17136
|
+
doInitialPcbPrimitiveRender(): void;
|
|
17137
|
+
getPcbSize(): {
|
|
17138
|
+
width: number;
|
|
17139
|
+
height: number;
|
|
17140
|
+
};
|
|
17141
|
+
}
|
|
17142
|
+
|
|
17058
17143
|
declare class FabricationNotePath extends PrimitiveComponent<typeof fabricationNotePathProps> {
|
|
17059
17144
|
fabrication_note_path_id: string | null;
|
|
17060
17145
|
get config(): {
|
|
@@ -17238,6 +17323,88 @@ declare class FabricationNoteText extends PrimitiveComponent<typeof fabricationN
|
|
|
17238
17323
|
doInitialPcbPrimitiveRender(): void;
|
|
17239
17324
|
}
|
|
17240
17325
|
|
|
17326
|
+
declare class PcbNoteLine extends PrimitiveComponent<typeof pcbNoteLineProps> {
|
|
17327
|
+
pcb_note_line_id: string | null;
|
|
17328
|
+
isPcbPrimitive: boolean;
|
|
17329
|
+
get config(): {
|
|
17330
|
+
componentName: string;
|
|
17331
|
+
zodProps: zod.ZodObject<Omit<{
|
|
17332
|
+
pcbX: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
17333
|
+
pcbY: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
17334
|
+
pcbRotation: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
17335
|
+
pcbPositionAnchor: zod.ZodOptional<zod.ZodString>;
|
|
17336
|
+
layer: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>, zod.ZodObject<{
|
|
17337
|
+
name: zod.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>;
|
|
17338
|
+
}, "strip", zod.ZodTypeAny, {
|
|
17339
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
17340
|
+
}, {
|
|
17341
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
17342
|
+
}>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
17343
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
17344
|
+
}>>;
|
|
17345
|
+
pcbMarginTop: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
17346
|
+
pcbMarginRight: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
17347
|
+
pcbMarginBottom: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
17348
|
+
pcbMarginLeft: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
17349
|
+
pcbMarginX: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
17350
|
+
pcbMarginY: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
17351
|
+
pcbRelative: zod.ZodOptional<zod.ZodBoolean>;
|
|
17352
|
+
relative: zod.ZodOptional<zod.ZodBoolean>;
|
|
17353
|
+
}, "pcbRotation" | "pcbX" | "pcbY"> & {
|
|
17354
|
+
x1: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
17355
|
+
y1: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
17356
|
+
x2: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
17357
|
+
y2: zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>;
|
|
17358
|
+
strokeWidth: zod.ZodOptional<zod.ZodEffects<zod.ZodUnion<[zod.ZodString, zod.ZodNumber]>, number, string | number>>;
|
|
17359
|
+
color: zod.ZodOptional<zod.ZodString>;
|
|
17360
|
+
isDashed: zod.ZodOptional<zod.ZodBoolean>;
|
|
17361
|
+
}, "strip", zod.ZodTypeAny, {
|
|
17362
|
+
x1: number;
|
|
17363
|
+
y1: number;
|
|
17364
|
+
x2: number;
|
|
17365
|
+
y2: number;
|
|
17366
|
+
pcbPositionAnchor?: string | undefined;
|
|
17367
|
+
layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
17368
|
+
pcbMarginTop?: number | undefined;
|
|
17369
|
+
pcbMarginRight?: number | undefined;
|
|
17370
|
+
pcbMarginBottom?: number | undefined;
|
|
17371
|
+
pcbMarginLeft?: number | undefined;
|
|
17372
|
+
pcbMarginX?: number | undefined;
|
|
17373
|
+
pcbMarginY?: number | undefined;
|
|
17374
|
+
pcbRelative?: boolean | undefined;
|
|
17375
|
+
relative?: boolean | undefined;
|
|
17376
|
+
strokeWidth?: number | undefined;
|
|
17377
|
+
color?: string | undefined;
|
|
17378
|
+
isDashed?: boolean | undefined;
|
|
17379
|
+
}, {
|
|
17380
|
+
x1: string | number;
|
|
17381
|
+
y1: string | number;
|
|
17382
|
+
x2: string | number;
|
|
17383
|
+
y2: string | number;
|
|
17384
|
+
pcbPositionAnchor?: string | undefined;
|
|
17385
|
+
layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
17386
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
17387
|
+
} | undefined;
|
|
17388
|
+
pcbMarginTop?: string | number | undefined;
|
|
17389
|
+
pcbMarginRight?: string | number | undefined;
|
|
17390
|
+
pcbMarginBottom?: string | number | undefined;
|
|
17391
|
+
pcbMarginLeft?: string | number | undefined;
|
|
17392
|
+
pcbMarginX?: string | number | undefined;
|
|
17393
|
+
pcbMarginY?: string | number | undefined;
|
|
17394
|
+
pcbRelative?: boolean | undefined;
|
|
17395
|
+
relative?: boolean | undefined;
|
|
17396
|
+
strokeWidth?: string | number | undefined;
|
|
17397
|
+
color?: string | undefined;
|
|
17398
|
+
isDashed?: boolean | undefined;
|
|
17399
|
+
}>;
|
|
17400
|
+
};
|
|
17401
|
+
doInitialPcbPrimitiveRender(): void;
|
|
17402
|
+
getPcbSize(): {
|
|
17403
|
+
width: number;
|
|
17404
|
+
height: number;
|
|
17405
|
+
};
|
|
17406
|
+
}
|
|
17407
|
+
|
|
17241
17408
|
declare class Footprint extends PrimitiveComponent<typeof footprintProps> {
|
|
17242
17409
|
get config(): {
|
|
17243
17410
|
componentName: string;
|
|
@@ -19725,7 +19892,6 @@ declare class TraceHint extends PrimitiveComponent<typeof traceHintProps> {
|
|
|
19725
19892
|
toLayer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
19726
19893
|
}[] | undefined;
|
|
19727
19894
|
for?: string | undefined;
|
|
19728
|
-
order?: number | undefined;
|
|
19729
19895
|
offset?: {
|
|
19730
19896
|
x: number;
|
|
19731
19897
|
y: number;
|
|
@@ -19738,6 +19904,7 @@ declare class TraceHint extends PrimitiveComponent<typeof traceHintProps> {
|
|
|
19738
19904
|
via?: boolean | undefined;
|
|
19739
19905
|
toLayer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
19740
19906
|
} | undefined;
|
|
19907
|
+
order?: number | undefined;
|
|
19741
19908
|
traceWidth?: number | undefined;
|
|
19742
19909
|
}, {
|
|
19743
19910
|
offsets?: {
|
|
@@ -19757,7 +19924,6 @@ declare class TraceHint extends PrimitiveComponent<typeof traceHintProps> {
|
|
|
19757
19924
|
} | undefined;
|
|
19758
19925
|
}[] | undefined;
|
|
19759
19926
|
for?: string | undefined;
|
|
19760
|
-
order?: number | undefined;
|
|
19761
19927
|
offset?: {
|
|
19762
19928
|
x: string | number;
|
|
19763
19929
|
y: string | number;
|
|
@@ -19774,6 +19940,7 @@ declare class TraceHint extends PrimitiveComponent<typeof traceHintProps> {
|
|
|
19774
19940
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
19775
19941
|
} | undefined;
|
|
19776
19942
|
} | undefined;
|
|
19943
|
+
order?: number | undefined;
|
|
19777
19944
|
traceWidth?: number | undefined;
|
|
19778
19945
|
}>;
|
|
19779
19946
|
};
|
|
@@ -33474,6 +33641,8 @@ interface TscircuitElements {
|
|
|
33474
33641
|
silkscreencircle: _tscircuit_props.SilkscreenCircleProps;
|
|
33475
33642
|
tracehint: _tscircuit_props.TraceHintProps;
|
|
33476
33643
|
pcbtrace: _tscircuit_props.PcbTraceProps;
|
|
33644
|
+
fabricationnoterect: _tscircuit_props.FabricationNoteRectProps;
|
|
33645
|
+
pcbnoteline: _tscircuit_props.PcbNoteLineProps;
|
|
33477
33646
|
fabricationnotetext: _tscircuit_props.FabricationNoteTextProps;
|
|
33478
33647
|
fabricationnotepath: _tscircuit_props.FabricationNotePathProps;
|
|
33479
33648
|
constraint: _tscircuit_props.ConstraintProps;
|
|
@@ -33505,4 +33674,4 @@ declare module "react/jsx-runtime" {
|
|
|
33505
33674
|
}
|
|
33506
33675
|
}
|
|
33507
33676
|
|
|
33508
|
-
export { AnalogSimulation, type AsyncEffect, type AutorouterCompleteEvent, type AutorouterErrorEvent, type AutorouterEvent, type AutorouterProgressEvent, type AutoroutingEndEvent, type AutoroutingErrorEvent, type AutoroutingProgressEvent, type AutoroutingStartEvent, Battery, Board, Breakout, BreakoutPoint, CadAssembly, CadModel, Capacitor, Chip, Circuit, type ComponentWithPins, Constraint, CopperPour, Crystal, Cutout, type DebugLogOutputEvent, Diode, FabricationNotePath, FabricationNoteText, Footprint, Fuse, type GenericConnectionsAndSelectorsSel, type GenericLocalAutorouter, Group, Hole, type IRenderable, Inductor, Jumper, Keepout, Led, type LocalCacheEngine, Mosfet, Net, NetLabel, NormalComponent, type Obstacle, PcbTrace, PinHeader, type PinLabelSpec, Pinout, PlatedHole, Port, Potentiometer, PowerSource, PrimitiveComponent, Project, PushButton, type RenderPhase, type RenderPhaseFn, type RenderPhaseFunctions, type RenderPhaseStates, Renderable, Resistor, Resonator, RootCircuit, type RootCircuitEventName, SchematicArc, SchematicBox, SchematicCell, SchematicCircle, SchematicLine, SchematicRect, SchematicRow, SchematicTable, SchematicText, type Sel, SilkscreenCircle, SilkscreenLine, SilkscreenPath, SilkscreenRect, SilkscreenText, type SimpleRouteConnection, type SimpleRouteJson, type SimplifiedPcbTrace, SmtPad, SolderJumper, Subcircuit, Switch, SymbolComponent as Symbol, TestPoint, Trace, TraceHint, Transistor, Via, VoltageSource, applyEditEvents, applyEditEventsToManualEditsFile, applyPcbEditEventsToManualEditsFile, applySchematicEditEventsToManualEditsFile, createUseComponent, getPhaseTimingsFromRenderEvents, getSimpleRouteJsonFromCircuitJson, normalizePinLabels, orderedRenderPhases, sel, useCapacitor, useChip, useDiode, useLed, useRenderedCircuit, useResistor };
|
|
33677
|
+
export { AnalogSimulation, type AsyncEffect, type AutorouterCompleteEvent, type AutorouterErrorEvent, type AutorouterEvent, type AutorouterProgressEvent, type AutoroutingEndEvent, type AutoroutingErrorEvent, type AutoroutingProgressEvent, type AutoroutingStartEvent, Battery, Board, Breakout, BreakoutPoint, CadAssembly, CadModel, Capacitor, Chip, Circuit, type ComponentWithPins, Constraint, CopperPour, Crystal, Cutout, type DebugLogOutputEvent, Diode, FabricationNotePath, FabricationNoteRect, FabricationNoteText, Footprint, Fuse, type GenericConnectionsAndSelectorsSel, type GenericLocalAutorouter, Group, Hole, type IRenderable, Inductor, Jumper, Keepout, Led, type LocalCacheEngine, Mosfet, Net, NetLabel, NormalComponent, type Obstacle, PcbNoteLine, PcbTrace, PinHeader, type PinLabelSpec, Pinout, PlatedHole, Port, Potentiometer, PowerSource, PrimitiveComponent, Project, PushButton, type RenderPhase, type RenderPhaseFn, type RenderPhaseFunctions, type RenderPhaseStates, Renderable, Resistor, Resonator, RootCircuit, type RootCircuitEventName, SchematicArc, SchematicBox, SchematicCell, SchematicCircle, SchematicLine, SchematicRect, SchematicRow, SchematicTable, SchematicText, type Sel, SilkscreenCircle, SilkscreenLine, SilkscreenPath, SilkscreenRect, SilkscreenText, type SimpleRouteConnection, type SimpleRouteJson, type SimplifiedPcbTrace, SmtPad, SolderJumper, Subcircuit, Switch, SymbolComponent as Symbol, TestPoint, Trace, TraceHint, Transistor, Via, VoltageSource, applyEditEvents, applyEditEventsToManualEditsFile, applyPcbEditEventsToManualEditsFile, applySchematicEditEventsToManualEditsFile, createUseComponent, getPhaseTimingsFromRenderEvents, getSimpleRouteJsonFromCircuitJson, normalizePinLabels, orderedRenderPhases, sel, useCapacitor, useChip, useDiode, useLed, useRenderedCircuit, useResistor };
|
package/dist/index.js
CHANGED
|
@@ -22,6 +22,7 @@ __export(components_exports, {
|
|
|
22
22
|
Cutout: () => Cutout,
|
|
23
23
|
Diode: () => Diode,
|
|
24
24
|
FabricationNotePath: () => FabricationNotePath,
|
|
25
|
+
FabricationNoteRect: () => FabricationNoteRect,
|
|
25
26
|
FabricationNoteText: () => FabricationNoteText,
|
|
26
27
|
Footprint: () => Footprint,
|
|
27
28
|
Fuse: () => Fuse,
|
|
@@ -35,6 +36,7 @@ __export(components_exports, {
|
|
|
35
36
|
Net: () => Net,
|
|
36
37
|
NetLabel: () => NetLabel,
|
|
37
38
|
NormalComponent: () => NormalComponent3,
|
|
39
|
+
PcbNoteLine: () => PcbNoteLine,
|
|
38
40
|
PcbTrace: () => PcbTrace,
|
|
39
41
|
PinHeader: () => PinHeader,
|
|
40
42
|
Pinout: () => Pinout,
|
|
@@ -14207,9 +14209,58 @@ var Constraint3 = class extends PrimitiveComponent2 {
|
|
|
14207
14209
|
}
|
|
14208
14210
|
};
|
|
14209
14211
|
|
|
14212
|
+
// lib/components/primitive-components/FabricationNoteRect.ts
|
|
14213
|
+
import { fabricationNoteRectProps } from "@tscircuit/props";
|
|
14214
|
+
import "transformation-matrix";
|
|
14215
|
+
var FabricationNoteRect = class extends PrimitiveComponent2 {
|
|
14216
|
+
fabrication_note_rect_id = null;
|
|
14217
|
+
get config() {
|
|
14218
|
+
return {
|
|
14219
|
+
componentName: "FabricationNoteRect",
|
|
14220
|
+
zodProps: fabricationNoteRectProps
|
|
14221
|
+
};
|
|
14222
|
+
}
|
|
14223
|
+
doInitialPcbPrimitiveRender() {
|
|
14224
|
+
if (this.root?.pcbDisabled) return;
|
|
14225
|
+
const { db } = this.root;
|
|
14226
|
+
const { _parsedProps: props } = this;
|
|
14227
|
+
const { maybeFlipLayer } = this._getPcbPrimitiveFlippedHelpers();
|
|
14228
|
+
const layer = maybeFlipLayer(props.layer ?? "top");
|
|
14229
|
+
if (layer !== "top" && layer !== "bottom") {
|
|
14230
|
+
throw new Error(
|
|
14231
|
+
`Invalid layer "${layer}" for FabricationNoteRect. Must be "top" or "bottom".`
|
|
14232
|
+
);
|
|
14233
|
+
}
|
|
14234
|
+
const pcb_component_id = this.parent?.pcb_component_id ?? this.getPrimitiveContainer()?.pcb_component_id;
|
|
14235
|
+
const subcircuit = this.getSubcircuit();
|
|
14236
|
+
const fabrication_note_rect = db.pcb_fabrication_note_rect.insert({
|
|
14237
|
+
pcb_component_id,
|
|
14238
|
+
layer,
|
|
14239
|
+
color: props.color,
|
|
14240
|
+
center: {
|
|
14241
|
+
x: props.pcbX ?? 0,
|
|
14242
|
+
y: props.pcbY ?? 0
|
|
14243
|
+
},
|
|
14244
|
+
width: props.width,
|
|
14245
|
+
height: props.height,
|
|
14246
|
+
stroke_width: props.strokeWidth ?? 1,
|
|
14247
|
+
is_filled: props.isFilled ?? false,
|
|
14248
|
+
has_stroke: props.hasStroke ?? false,
|
|
14249
|
+
is_stroke_dashed: props.isStrokeDashed ?? false,
|
|
14250
|
+
subcircuit_id: subcircuit?.subcircuit_id ?? void 0,
|
|
14251
|
+
pcb_group_id: this.getGroup()?.pcb_group_id ?? void 0
|
|
14252
|
+
});
|
|
14253
|
+
this.fabrication_note_rect_id = fabrication_note_rect.pcb_fabrication_note_rect_id;
|
|
14254
|
+
}
|
|
14255
|
+
getPcbSize() {
|
|
14256
|
+
const { _parsedProps: props } = this;
|
|
14257
|
+
return { width: props.width, height: props.height };
|
|
14258
|
+
}
|
|
14259
|
+
};
|
|
14260
|
+
|
|
14210
14261
|
// lib/components/primitive-components/FabricationNotePath.ts
|
|
14211
14262
|
import { fabricationNotePathProps } from "@tscircuit/props";
|
|
14212
|
-
import { applyToPoint as
|
|
14263
|
+
import { applyToPoint as applyToPoint9 } from "transformation-matrix";
|
|
14213
14264
|
var FabricationNotePath = class extends PrimitiveComponent2 {
|
|
14214
14265
|
fabrication_note_path_id = null;
|
|
14215
14266
|
get config() {
|
|
@@ -14236,7 +14287,7 @@ var FabricationNotePath = class extends PrimitiveComponent2 {
|
|
|
14236
14287
|
layer,
|
|
14237
14288
|
color: props.color,
|
|
14238
14289
|
route: props.route.map((p) => {
|
|
14239
|
-
const transformedPosition =
|
|
14290
|
+
const transformedPosition = applyToPoint9(transform, {
|
|
14240
14291
|
x: p.x,
|
|
14241
14292
|
y: p.y
|
|
14242
14293
|
});
|
|
@@ -14286,6 +14337,51 @@ var FabricationNoteText = class extends PrimitiveComponent2 {
|
|
|
14286
14337
|
}
|
|
14287
14338
|
};
|
|
14288
14339
|
|
|
14340
|
+
// lib/components/primitive-components/PcbNoteLine.ts
|
|
14341
|
+
import { pcbNoteLineProps } from "@tscircuit/props";
|
|
14342
|
+
import { applyToPoint as applyToPoint10 } from "transformation-matrix";
|
|
14343
|
+
var PcbNoteLine = class extends PrimitiveComponent2 {
|
|
14344
|
+
pcb_note_line_id = null;
|
|
14345
|
+
isPcbPrimitive = true;
|
|
14346
|
+
get config() {
|
|
14347
|
+
return {
|
|
14348
|
+
componentName: "PcbNoteLine",
|
|
14349
|
+
zodProps: pcbNoteLineProps
|
|
14350
|
+
};
|
|
14351
|
+
}
|
|
14352
|
+
doInitialPcbPrimitiveRender() {
|
|
14353
|
+
if (this.root?.pcbDisabled) return;
|
|
14354
|
+
const { db } = this.root;
|
|
14355
|
+
const { _parsedProps: props } = this;
|
|
14356
|
+
const subcircuit = this.getSubcircuit();
|
|
14357
|
+
const group = this.getGroup();
|
|
14358
|
+
const transform = this._computePcbGlobalTransformBeforeLayout();
|
|
14359
|
+
const start = applyToPoint10(transform, { x: props.x1, y: props.y1 });
|
|
14360
|
+
const end = applyToPoint10(transform, { x: props.x2, y: props.y2 });
|
|
14361
|
+
const pcb_component_id = this.parent?.pcb_component_id ?? this.getPrimitiveContainer()?.pcb_component_id ?? void 0;
|
|
14362
|
+
const pcb_note_line = db.pcb_note_line.insert({
|
|
14363
|
+
pcb_component_id,
|
|
14364
|
+
subcircuit_id: subcircuit?.subcircuit_id ?? void 0,
|
|
14365
|
+
pcb_group_id: group?.pcb_group_id ?? void 0,
|
|
14366
|
+
x1: start.x,
|
|
14367
|
+
y1: start.y,
|
|
14368
|
+
x2: end.x,
|
|
14369
|
+
y2: end.y,
|
|
14370
|
+
stroke_width: props.strokeWidth ?? 0.1,
|
|
14371
|
+
color: props.color,
|
|
14372
|
+
is_dashed: props.isDashed
|
|
14373
|
+
});
|
|
14374
|
+
this.pcb_note_line_id = pcb_note_line.pcb_note_line_id;
|
|
14375
|
+
}
|
|
14376
|
+
getPcbSize() {
|
|
14377
|
+
const { _parsedProps: props } = this;
|
|
14378
|
+
return {
|
|
14379
|
+
width: Math.abs(props.x2 - props.x1),
|
|
14380
|
+
height: Math.abs(props.y2 - props.y1)
|
|
14381
|
+
};
|
|
14382
|
+
}
|
|
14383
|
+
};
|
|
14384
|
+
|
|
14289
14385
|
// lib/components/primitive-components/Group/Subcircuit.ts
|
|
14290
14386
|
import "@tscircuit/props";
|
|
14291
14387
|
var Subcircuit = class extends Group6 {
|
|
@@ -14410,7 +14506,7 @@ var BreakoutPoint = class extends PrimitiveComponent2 {
|
|
|
14410
14506
|
// lib/components/primitive-components/NetLabel.ts
|
|
14411
14507
|
import { netLabelProps } from "@tscircuit/props";
|
|
14412
14508
|
import {
|
|
14413
|
-
applyToPoint as
|
|
14509
|
+
applyToPoint as applyToPoint11,
|
|
14414
14510
|
identity as identity5,
|
|
14415
14511
|
translate as translate6
|
|
14416
14512
|
} from "transformation-matrix";
|
|
@@ -14461,7 +14557,7 @@ var NetLabel = class extends PrimitiveComponent2 {
|
|
|
14461
14557
|
const connectedPorts = this._getConnectedPorts();
|
|
14462
14558
|
if (connectedPorts.length > 0) {
|
|
14463
14559
|
const portPos = connectedPorts[0]._getGlobalSchematicPositionBeforeLayout();
|
|
14464
|
-
const parentCenter =
|
|
14560
|
+
const parentCenter = applyToPoint11(
|
|
14465
14561
|
this.parent?.computeSchematicGlobalTransform?.() ?? identity5(),
|
|
14466
14562
|
{ x: 0, y: 0 }
|
|
14467
14563
|
);
|
|
@@ -16268,7 +16364,7 @@ import { identity as identity6 } from "transformation-matrix";
|
|
|
16268
16364
|
var package_default = {
|
|
16269
16365
|
name: "@tscircuit/core",
|
|
16270
16366
|
type: "module",
|
|
16271
|
-
version: "0.0.
|
|
16367
|
+
version: "0.0.780",
|
|
16272
16368
|
types: "dist/index.d.ts",
|
|
16273
16369
|
main: "dist/index.js",
|
|
16274
16370
|
module: "dist/index.js",
|
|
@@ -16299,7 +16395,7 @@ var package_default = {
|
|
|
16299
16395
|
"@biomejs/biome": "^1.8.3",
|
|
16300
16396
|
"@tscircuit/capacity-autorouter": "^0.0.131",
|
|
16301
16397
|
"@tscircuit/checks": "^0.0.85",
|
|
16302
|
-
"@tscircuit/circuit-json-util": "^0.0.
|
|
16398
|
+
"@tscircuit/circuit-json-util": "^0.0.72",
|
|
16303
16399
|
"@tscircuit/common": "^0.0.9",
|
|
16304
16400
|
"@tscircuit/footprinter": "^0.0.236",
|
|
16305
16401
|
"@tscircuit/import-snippet": "^0.0.4",
|
|
@@ -16308,7 +16404,7 @@ var package_default = {
|
|
|
16308
16404
|
"@tscircuit/matchpack": "^0.0.16",
|
|
16309
16405
|
"@tscircuit/math-utils": "^0.0.21",
|
|
16310
16406
|
"@tscircuit/miniflex": "^0.0.4",
|
|
16311
|
-
"@tscircuit/props": "0.0.
|
|
16407
|
+
"@tscircuit/props": "0.0.360",
|
|
16312
16408
|
"@tscircuit/schematic-autolayout": "^0.0.6",
|
|
16313
16409
|
"@tscircuit/schematic-match-adapt": "^0.0.16",
|
|
16314
16410
|
"@tscircuit/schematic-trace-solver": "^0.0.41",
|
|
@@ -16791,6 +16887,7 @@ export {
|
|
|
16791
16887
|
Cutout,
|
|
16792
16888
|
Diode,
|
|
16793
16889
|
FabricationNotePath,
|
|
16890
|
+
FabricationNoteRect,
|
|
16794
16891
|
FabricationNoteText,
|
|
16795
16892
|
Footprint,
|
|
16796
16893
|
Fuse,
|
|
@@ -16804,6 +16901,7 @@ export {
|
|
|
16804
16901
|
Net,
|
|
16805
16902
|
NetLabel,
|
|
16806
16903
|
NormalComponent3 as NormalComponent,
|
|
16904
|
+
PcbNoteLine,
|
|
16807
16905
|
PcbTrace,
|
|
16808
16906
|
PinHeader,
|
|
16809
16907
|
Pinout,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tscircuit/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.781",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@biomejs/biome": "^1.8.3",
|
|
33
33
|
"@tscircuit/capacity-autorouter": "^0.0.131",
|
|
34
34
|
"@tscircuit/checks": "^0.0.85",
|
|
35
|
-
"@tscircuit/circuit-json-util": "^0.0.
|
|
35
|
+
"@tscircuit/circuit-json-util": "^0.0.72",
|
|
36
36
|
"@tscircuit/common": "^0.0.9",
|
|
37
37
|
"@tscircuit/footprinter": "^0.0.236",
|
|
38
38
|
"@tscircuit/import-snippet": "^0.0.4",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@tscircuit/matchpack": "^0.0.16",
|
|
42
42
|
"@tscircuit/math-utils": "^0.0.21",
|
|
43
43
|
"@tscircuit/miniflex": "^0.0.4",
|
|
44
|
-
"@tscircuit/props": "0.0.
|
|
44
|
+
"@tscircuit/props": "0.0.360",
|
|
45
45
|
"@tscircuit/schematic-autolayout": "^0.0.6",
|
|
46
46
|
"@tscircuit/schematic-match-adapt": "^0.0.16",
|
|
47
47
|
"@tscircuit/schematic-trace-solver": "^0.0.41",
|