@tscircuit/core 0.0.1036 → 0.0.1038

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 CHANGED
@@ -1317,6 +1317,7 @@ declare class Trace extends PrimitiveComponent<typeof traceProps> implements Tra
1317
1317
  declare const portProps: z.ZodObject<{
1318
1318
  name: z.ZodOptional<z.ZodString>;
1319
1319
  pinNumber: z.ZodOptional<z.ZodNumber>;
1320
+ schStemLength: z.ZodOptional<z.ZodNumber>;
1320
1321
  aliases: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1321
1322
  layer: z.ZodOptional<z.ZodString>;
1322
1323
  layers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -1329,6 +1330,7 @@ declare const portProps: z.ZodObject<{
1329
1330
  layers?: string[] | undefined;
1330
1331
  name?: string | undefined;
1331
1332
  pinNumber?: number | undefined;
1333
+ schStemLength?: number | undefined;
1332
1334
  aliases?: string[] | undefined;
1333
1335
  schX?: number | undefined;
1334
1336
  schY?: number | undefined;
@@ -1339,6 +1341,7 @@ declare const portProps: z.ZodObject<{
1339
1341
  layers?: string[] | undefined;
1340
1342
  name?: string | undefined;
1341
1343
  pinNumber?: number | undefined;
1344
+ schStemLength?: number | undefined;
1342
1345
  aliases?: string[] | undefined;
1343
1346
  schX?: number | undefined;
1344
1347
  schY?: number | undefined;
@@ -1358,6 +1361,7 @@ declare class Port extends PrimitiveComponent<typeof portProps> {
1358
1361
  zodProps: z.ZodObject<{
1359
1362
  name: z.ZodOptional<z.ZodString>;
1360
1363
  pinNumber: z.ZodOptional<z.ZodNumber>;
1364
+ schStemLength: z.ZodOptional<z.ZodNumber>;
1361
1365
  aliases: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1362
1366
  layer: z.ZodOptional<z.ZodString>;
1363
1367
  layers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -1370,6 +1374,7 @@ declare class Port extends PrimitiveComponent<typeof portProps> {
1370
1374
  layers?: string[] | undefined;
1371
1375
  name?: string | undefined;
1372
1376
  pinNumber?: number | undefined;
1377
+ schStemLength?: number | undefined;
1373
1378
  aliases?: string[] | undefined;
1374
1379
  schX?: number | undefined;
1375
1380
  schY?: number | undefined;
@@ -1380,6 +1385,7 @@ declare class Port extends PrimitiveComponent<typeof portProps> {
1380
1385
  layers?: string[] | undefined;
1381
1386
  name?: string | undefined;
1382
1387
  pinNumber?: number | undefined;
1388
+ schStemLength?: number | undefined;
1383
1389
  aliases?: string[] | undefined;
1384
1390
  schX?: number | undefined;
1385
1391
  schY?: number | undefined;
@@ -4047,6 +4053,147 @@ declare class MountedBoard extends Subcircuit {
4047
4053
  outlineOffsetY: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
4048
4054
  circuitJson: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
4049
4055
  } & {
4056
+ manufacturerPartNumber: z.ZodOptional<z.ZodString>;
4057
+ pinLabels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodReadonly<z.ZodArray<z.ZodString, "many">>]>, z.ZodArray<z.ZodString, "many">]>>>;
4058
+ showPinAliases: z.ZodOptional<z.ZodBoolean>;
4059
+ pcbPinLabels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4060
+ schPortArrangement: z.ZodOptional<z.ZodObject<{
4061
+ leftSize: z.ZodOptional<z.ZodNumber>;
4062
+ topSize: z.ZodOptional<z.ZodNumber>;
4063
+ rightSize: z.ZodOptional<z.ZodNumber>;
4064
+ bottomSize: z.ZodOptional<z.ZodNumber>;
4065
+ leftPinCount: z.ZodOptional<z.ZodNumber>;
4066
+ rightPinCount: z.ZodOptional<z.ZodNumber>;
4067
+ topPinCount: z.ZodOptional<z.ZodNumber>;
4068
+ bottomPinCount: z.ZodOptional<z.ZodNumber>;
4069
+ leftSide: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodObject<{
4070
+ pins: z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>, "many">;
4071
+ direction: z.ZodUnion<[z.ZodLiteral<"top-to-bottom">, z.ZodLiteral<"left-to-right">, z.ZodLiteral<"bottom-to-top">, z.ZodLiteral<"right-to-left">]>;
4072
+ }, "strip", z.ZodTypeAny, {
4073
+ pins: (string | number)[];
4074
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
4075
+ }, {
4076
+ pins: (string | number)[];
4077
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
4078
+ }>, z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>, "many">]>, {
4079
+ pins: (string | number)[];
4080
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
4081
+ }, (string | number)[] | {
4082
+ pins: (string | number)[];
4083
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
4084
+ }>>;
4085
+ rightSide: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodObject<{
4086
+ pins: z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>, "many">;
4087
+ direction: z.ZodUnion<[z.ZodLiteral<"top-to-bottom">, z.ZodLiteral<"left-to-right">, z.ZodLiteral<"bottom-to-top">, z.ZodLiteral<"right-to-left">]>;
4088
+ }, "strip", z.ZodTypeAny, {
4089
+ pins: (string | number)[];
4090
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
4091
+ }, {
4092
+ pins: (string | number)[];
4093
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
4094
+ }>, z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>, "many">]>, {
4095
+ pins: (string | number)[];
4096
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
4097
+ }, (string | number)[] | {
4098
+ pins: (string | number)[];
4099
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
4100
+ }>>;
4101
+ topSide: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodObject<{
4102
+ pins: z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>, "many">;
4103
+ direction: z.ZodUnion<[z.ZodLiteral<"top-to-bottom">, z.ZodLiteral<"left-to-right">, z.ZodLiteral<"bottom-to-top">, z.ZodLiteral<"right-to-left">]>;
4104
+ }, "strip", z.ZodTypeAny, {
4105
+ pins: (string | number)[];
4106
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
4107
+ }, {
4108
+ pins: (string | number)[];
4109
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
4110
+ }>, z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>, "many">]>, {
4111
+ pins: (string | number)[];
4112
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
4113
+ }, (string | number)[] | {
4114
+ pins: (string | number)[];
4115
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
4116
+ }>>;
4117
+ bottomSide: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodObject<{
4118
+ pins: z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>, "many">;
4119
+ direction: z.ZodUnion<[z.ZodLiteral<"top-to-bottom">, z.ZodLiteral<"left-to-right">, z.ZodLiteral<"bottom-to-top">, z.ZodLiteral<"right-to-left">]>;
4120
+ }, "strip", z.ZodTypeAny, {
4121
+ pins: (string | number)[];
4122
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
4123
+ }, {
4124
+ pins: (string | number)[];
4125
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
4126
+ }>, z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString]>, "many">]>, {
4127
+ pins: (string | number)[];
4128
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
4129
+ }, (string | number)[] | {
4130
+ pins: (string | number)[];
4131
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
4132
+ }>>;
4133
+ }, "strip", z.ZodTypeAny, {
4134
+ leftSize?: number | undefined;
4135
+ topSize?: number | undefined;
4136
+ rightSize?: number | undefined;
4137
+ bottomSize?: number | undefined;
4138
+ leftSide?: {
4139
+ pins: (string | number)[];
4140
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
4141
+ } | undefined;
4142
+ topSide?: {
4143
+ pins: (string | number)[];
4144
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
4145
+ } | undefined;
4146
+ rightSide?: {
4147
+ pins: (string | number)[];
4148
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
4149
+ } | undefined;
4150
+ bottomSide?: {
4151
+ pins: (string | number)[];
4152
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
4153
+ } | undefined;
4154
+ leftPinCount?: number | undefined;
4155
+ rightPinCount?: number | undefined;
4156
+ topPinCount?: number | undefined;
4157
+ bottomPinCount?: number | undefined;
4158
+ }, {
4159
+ leftSize?: number | undefined;
4160
+ topSize?: number | undefined;
4161
+ rightSize?: number | undefined;
4162
+ bottomSize?: number | undefined;
4163
+ leftSide?: (string | number)[] | {
4164
+ pins: (string | number)[];
4165
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
4166
+ } | undefined;
4167
+ topSide?: (string | number)[] | {
4168
+ pins: (string | number)[];
4169
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
4170
+ } | undefined;
4171
+ rightSide?: (string | number)[] | {
4172
+ pins: (string | number)[];
4173
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
4174
+ } | undefined;
4175
+ bottomSide?: (string | number)[] | {
4176
+ pins: (string | number)[];
4177
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
4178
+ } | undefined;
4179
+ leftPinCount?: number | undefined;
4180
+ rightPinCount?: number | undefined;
4181
+ topPinCount?: number | undefined;
4182
+ bottomPinCount?: number | undefined;
4183
+ }>>;
4184
+ pinCompatibleVariants: z.ZodOptional<z.ZodArray<z.ZodObject<{
4185
+ manufacturerPartNumber: z.ZodOptional<z.ZodString>;
4186
+ supplierPartNumber: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
4187
+ }, "strip", z.ZodTypeAny, {
4188
+ manufacturerPartNumber?: string | undefined;
4189
+ supplierPartNumber?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
4190
+ }, {
4191
+ manufacturerPartNumber?: string | undefined;
4192
+ supplierPartNumber?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
4193
+ }>, "many">>;
4194
+ noSchematicRepresentation: z.ZodOptional<z.ZodBoolean>;
4195
+ internallyConnectedPins: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">, "many">>;
4196
+ externallyConnectedPins: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">>;
4050
4197
  boardToBoardDistance: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
4051
4198
  mountOrientation: z.ZodOptional<z.ZodEnum<["faceDown", "faceUp"]>>;
4052
4199
  }, "strip", z.ZodTypeAny, {
@@ -4100,6 +4247,7 @@ declare class MountedBoard extends Subcircuit {
4100
4247
  } | undefined;
4101
4248
  schRelative?: boolean | undefined;
4102
4249
  children?: any;
4250
+ manufacturerPartNumber?: string | undefined;
4103
4251
  grid?: boolean | undefined;
4104
4252
  flex?: string | boolean | undefined;
4105
4253
  layoutMode?: "none" | "relative" | "grid" | "flex" | "match-adapt" | undefined;
@@ -4355,6 +4503,42 @@ declare class MountedBoard extends Subcircuit {
4355
4503
  outlineOffsetX?: number | undefined;
4356
4504
  outlineOffsetY?: number | undefined;
4357
4505
  circuitJson?: any[] | undefined;
4506
+ pinLabels?: Record<string, string | readonly string[] | string[]> | undefined;
4507
+ showPinAliases?: boolean | undefined;
4508
+ pcbPinLabels?: Record<string, string> | undefined;
4509
+ internallyConnectedPins?: (string | number)[][] | undefined;
4510
+ externallyConnectedPins?: string[][] | undefined;
4511
+ schPortArrangement?: {
4512
+ leftSize?: number | undefined;
4513
+ topSize?: number | undefined;
4514
+ rightSize?: number | undefined;
4515
+ bottomSize?: number | undefined;
4516
+ leftSide?: {
4517
+ pins: (string | number)[];
4518
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
4519
+ } | undefined;
4520
+ topSide?: {
4521
+ pins: (string | number)[];
4522
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
4523
+ } | undefined;
4524
+ rightSide?: {
4525
+ pins: (string | number)[];
4526
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
4527
+ } | undefined;
4528
+ bottomSide?: {
4529
+ pins: (string | number)[];
4530
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
4531
+ } | undefined;
4532
+ leftPinCount?: number | undefined;
4533
+ rightPinCount?: number | undefined;
4534
+ topPinCount?: number | undefined;
4535
+ bottomPinCount?: number | undefined;
4536
+ } | undefined;
4537
+ pinCompatibleVariants?: {
4538
+ manufacturerPartNumber?: string | undefined;
4539
+ supplierPartNumber?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
4540
+ }[] | undefined;
4541
+ noSchematicRepresentation?: boolean | undefined;
4358
4542
  boardToBoardDistance?: number | undefined;
4359
4543
  mountOrientation?: "faceDown" | "faceUp" | undefined;
4360
4544
  }, {
@@ -4410,6 +4594,7 @@ declare class MountedBoard extends Subcircuit {
4410
4594
  } | undefined;
4411
4595
  schRelative?: boolean | undefined;
4412
4596
  children?: any;
4597
+ manufacturerPartNumber?: string | undefined;
4413
4598
  grid?: boolean | undefined;
4414
4599
  flex?: string | boolean | undefined;
4415
4600
  layoutMode?: "none" | "relative" | "grid" | "flex" | "match-adapt" | undefined;
@@ -4667,6 +4852,42 @@ declare class MountedBoard extends Subcircuit {
4667
4852
  outlineOffsetX?: string | number | undefined;
4668
4853
  outlineOffsetY?: string | number | undefined;
4669
4854
  circuitJson?: any[] | undefined;
4855
+ pinLabels?: Record<string, string | readonly string[] | string[]> | undefined;
4856
+ showPinAliases?: boolean | undefined;
4857
+ pcbPinLabels?: Record<string, string> | undefined;
4858
+ internallyConnectedPins?: (string | number)[][] | undefined;
4859
+ externallyConnectedPins?: string[][] | undefined;
4860
+ schPortArrangement?: {
4861
+ leftSize?: number | undefined;
4862
+ topSize?: number | undefined;
4863
+ rightSize?: number | undefined;
4864
+ bottomSize?: number | undefined;
4865
+ leftSide?: (string | number)[] | {
4866
+ pins: (string | number)[];
4867
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
4868
+ } | undefined;
4869
+ topSide?: (string | number)[] | {
4870
+ pins: (string | number)[];
4871
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
4872
+ } | undefined;
4873
+ rightSide?: (string | number)[] | {
4874
+ pins: (string | number)[];
4875
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
4876
+ } | undefined;
4877
+ bottomSide?: (string | number)[] | {
4878
+ pins: (string | number)[];
4879
+ direction: "top-to-bottom" | "left-to-right" | "bottom-to-top" | "right-to-left";
4880
+ } | undefined;
4881
+ leftPinCount?: number | undefined;
4882
+ rightPinCount?: number | undefined;
4883
+ topPinCount?: number | undefined;
4884
+ bottomPinCount?: number | undefined;
4885
+ } | undefined;
4886
+ pinCompatibleVariants?: {
4887
+ manufacturerPartNumber?: string | undefined;
4888
+ supplierPartNumber?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
4889
+ }[] | undefined;
4890
+ noSchematicRepresentation?: boolean | undefined;
4670
4891
  boardToBoardDistance?: string | number | undefined;
4671
4892
  mountOrientation?: "faceDown" | "faceUp" | undefined;
4672
4893
  }>;
@@ -10038,6 +10259,7 @@ declare class Capacitor extends NormalComponent<typeof capacitorProps, Polarized
10038
10259
  children: zod.ZodOptional<zod.ZodAny>;
10039
10260
  symbolName: zod.ZodOptional<zod.ZodString>;
10040
10261
  doNotPlace: zod.ZodOptional<zod.ZodBoolean>;
10262
+ allowOffBoard: zod.ZodOptional<zod.ZodBoolean>;
10041
10263
  obstructsWithinBounds: zod.ZodOptional<zod.ZodBoolean>;
10042
10264
  showAsTranslucentModel: zod.ZodOptional<zod.ZodBoolean>;
10043
10265
  pinAttributes: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
@@ -10584,6 +10806,7 @@ declare class Capacitor extends NormalComponent<typeof capacitorProps, Polarized
10584
10806
  } | undefined;
10585
10807
  children?: any;
10586
10808
  doNotPlace?: boolean | undefined;
10809
+ allowOffBoard?: boolean | undefined;
10587
10810
  obstructsWithinBounds?: boolean | undefined;
10588
10811
  showAsTranslucentModel?: boolean | undefined;
10589
10812
  mfn?: string | undefined;
@@ -11092,6 +11315,7 @@ declare class Capacitor extends NormalComponent<typeof capacitorProps, Polarized
11092
11315
  } | undefined;
11093
11316
  children?: any;
11094
11317
  doNotPlace?: boolean | undefined;
11318
+ allowOffBoard?: boolean | undefined;
11095
11319
  obstructsWithinBounds?: boolean | undefined;
11096
11320
  showAsTranslucentModel?: boolean | undefined;
11097
11321
  mfn?: string | undefined;
@@ -14147,6 +14371,7 @@ declare class Chip<PinLabels extends string = never> extends NormalComponent<typ
14147
14371
  children: z.ZodOptional<z.ZodAny>;
14148
14372
  symbolName: z.ZodOptional<z.ZodString>;
14149
14373
  doNotPlace: z.ZodOptional<z.ZodBoolean>;
14374
+ allowOffBoard: z.ZodOptional<z.ZodBoolean>;
14150
14375
  obstructsWithinBounds: z.ZodOptional<z.ZodBoolean>;
14151
14376
  showAsTranslucentModel: z.ZodOptional<z.ZodBoolean>;
14152
14377
  pinAttributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -14974,6 +15199,7 @@ declare class Chip<PinLabels extends string = never> extends NormalComponent<typ
14974
15199
  } | undefined;
14975
15200
  children?: any;
14976
15201
  doNotPlace?: boolean | undefined;
15202
+ allowOffBoard?: boolean | undefined;
14977
15203
  obstructsWithinBounds?: boolean | undefined;
14978
15204
  showAsTranslucentModel?: boolean | undefined;
14979
15205
  mfn?: string | undefined;
@@ -15548,6 +15774,7 @@ declare class Chip<PinLabels extends string = never> extends NormalComponent<typ
15548
15774
  } | undefined;
15549
15775
  children?: any;
15550
15776
  doNotPlace?: boolean | undefined;
15777
+ allowOffBoard?: boolean | undefined;
15551
15778
  obstructsWithinBounds?: boolean | undefined;
15552
15779
  showAsTranslucentModel?: boolean | undefined;
15553
15780
  mfn?: string | undefined;
@@ -18668,6 +18895,7 @@ declare class Pinout<PinLabels extends string = never> extends Chip<PinLabels> {
18668
18895
  children: z.ZodOptional<z.ZodAny>;
18669
18896
  symbolName: z.ZodOptional<z.ZodString>;
18670
18897
  doNotPlace: z.ZodOptional<z.ZodBoolean>;
18898
+ allowOffBoard: z.ZodOptional<z.ZodBoolean>;
18671
18899
  obstructsWithinBounds: z.ZodOptional<z.ZodBoolean>;
18672
18900
  showAsTranslucentModel: z.ZodOptional<z.ZodBoolean>;
18673
18901
  pinAttributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -19495,6 +19723,7 @@ declare class Pinout<PinLabels extends string = never> extends Chip<PinLabels> {
19495
19723
  } | undefined;
19496
19724
  children?: any;
19497
19725
  doNotPlace?: boolean | undefined;
19726
+ allowOffBoard?: boolean | undefined;
19498
19727
  obstructsWithinBounds?: boolean | undefined;
19499
19728
  showAsTranslucentModel?: boolean | undefined;
19500
19729
  mfn?: string | undefined;
@@ -20069,6 +20298,7 @@ declare class Pinout<PinLabels extends string = never> extends Chip<PinLabels> {
20069
20298
  } | undefined;
20070
20299
  children?: any;
20071
20300
  doNotPlace?: boolean | undefined;
20301
+ allowOffBoard?: boolean | undefined;
20072
20302
  obstructsWithinBounds?: boolean | undefined;
20073
20303
  showAsTranslucentModel?: boolean | undefined;
20074
20304
  mfn?: string | undefined;
@@ -23186,6 +23416,7 @@ declare class Diode extends NormalComponent<typeof diodeProps, PolarizedPassiveP
23186
23416
  children: zod.ZodOptional<zod.ZodAny>;
23187
23417
  symbolName: zod.ZodOptional<zod.ZodString>;
23188
23418
  doNotPlace: zod.ZodOptional<zod.ZodBoolean>;
23419
+ allowOffBoard: zod.ZodOptional<zod.ZodBoolean>;
23189
23420
  obstructsWithinBounds: zod.ZodOptional<zod.ZodBoolean>;
23190
23421
  showAsTranslucentModel: zod.ZodOptional<zod.ZodBoolean>;
23191
23422
  pinAttributes: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
@@ -23727,6 +23958,7 @@ declare class Diode extends NormalComponent<typeof diodeProps, PolarizedPassiveP
23727
23958
  } | undefined;
23728
23959
  children?: any;
23729
23960
  doNotPlace?: boolean | undefined;
23961
+ allowOffBoard?: boolean | undefined;
23730
23962
  obstructsWithinBounds?: boolean | undefined;
23731
23963
  showAsTranslucentModel?: boolean | undefined;
23732
23964
  mfn?: string | undefined;
@@ -24233,6 +24465,7 @@ declare class Diode extends NormalComponent<typeof diodeProps, PolarizedPassiveP
24233
24465
  } | undefined;
24234
24466
  children?: any;
24235
24467
  doNotPlace?: boolean | undefined;
24468
+ allowOffBoard?: boolean | undefined;
24236
24469
  obstructsWithinBounds?: boolean | undefined;
24237
24470
  showAsTranslucentModel?: boolean | undefined;
24238
24471
  mfn?: string | undefined;
@@ -24739,6 +24972,7 @@ declare class Diode extends NormalComponent<typeof diodeProps, PolarizedPassiveP
24739
24972
  } | undefined;
24740
24973
  children?: any;
24741
24974
  doNotPlace?: boolean | undefined;
24975
+ allowOffBoard?: boolean | undefined;
24742
24976
  obstructsWithinBounds?: boolean | undefined;
24743
24977
  showAsTranslucentModel?: boolean | undefined;
24744
24978
  mfn?: string | undefined;
@@ -25245,6 +25479,7 @@ declare class Diode extends NormalComponent<typeof diodeProps, PolarizedPassiveP
25245
25479
  } | undefined;
25246
25480
  children?: any;
25247
25481
  doNotPlace?: boolean | undefined;
25482
+ allowOffBoard?: boolean | undefined;
25248
25483
  obstructsWithinBounds?: boolean | undefined;
25249
25484
  showAsTranslucentModel?: boolean | undefined;
25250
25485
  mfn?: string | undefined;
@@ -25757,6 +25992,7 @@ declare class Diode extends NormalComponent<typeof diodeProps, PolarizedPassiveP
25757
25992
  } | undefined;
25758
25993
  children?: any;
25759
25994
  doNotPlace?: boolean | undefined;
25995
+ allowOffBoard?: boolean | undefined;
25760
25996
  obstructsWithinBounds?: boolean | undefined;
25761
25997
  showAsTranslucentModel?: boolean | undefined;
25762
25998
  mfn?: string | undefined;
@@ -26257,6 +26493,7 @@ declare class Diode extends NormalComponent<typeof diodeProps, PolarizedPassiveP
26257
26493
  } | undefined;
26258
26494
  children?: any;
26259
26495
  doNotPlace?: boolean | undefined;
26496
+ allowOffBoard?: boolean | undefined;
26260
26497
  obstructsWithinBounds?: boolean | undefined;
26261
26498
  showAsTranslucentModel?: boolean | undefined;
26262
26499
  mfn?: string | undefined;
@@ -29312,6 +29549,7 @@ declare class Fuse extends NormalComponent<typeof fuseProps, PassivePorts> {
29312
29549
  children: zod.ZodOptional<zod.ZodAny>;
29313
29550
  symbolName: zod.ZodOptional<zod.ZodString>;
29314
29551
  doNotPlace: zod.ZodOptional<zod.ZodBoolean>;
29552
+ allowOffBoard: zod.ZodOptional<zod.ZodBoolean>;
29315
29553
  obstructsWithinBounds: zod.ZodOptional<zod.ZodBoolean>;
29316
29554
  showAsTranslucentModel: zod.ZodOptional<zod.ZodBoolean>;
29317
29555
  pinAttributes: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
@@ -29849,6 +30087,7 @@ declare class Fuse extends NormalComponent<typeof fuseProps, PassivePorts> {
29849
30087
  } | undefined;
29850
30088
  children?: any;
29851
30089
  doNotPlace?: boolean | undefined;
30090
+ allowOffBoard?: boolean | undefined;
29852
30091
  obstructsWithinBounds?: boolean | undefined;
29853
30092
  showAsTranslucentModel?: boolean | undefined;
29854
30093
  mfn?: string | undefined;
@@ -30352,6 +30591,7 @@ declare class Fuse extends NormalComponent<typeof fuseProps, PassivePorts> {
30352
30591
  } | undefined;
30353
30592
  children?: any;
30354
30593
  doNotPlace?: boolean | undefined;
30594
+ allowOffBoard?: boolean | undefined;
30355
30595
  obstructsWithinBounds?: boolean | undefined;
30356
30596
  showAsTranslucentModel?: boolean | undefined;
30357
30597
  mfn?: string | undefined;
@@ -33397,6 +33637,7 @@ declare class Jumper<PinLabels extends string = never> extends NormalComponent<t
33397
33637
  children: zod.ZodOptional<zod.ZodAny>;
33398
33638
  symbolName: zod.ZodOptional<zod.ZodString>;
33399
33639
  doNotPlace: zod.ZodOptional<zod.ZodBoolean>;
33640
+ allowOffBoard: zod.ZodOptional<zod.ZodBoolean>;
33400
33641
  obstructsWithinBounds: zod.ZodOptional<zod.ZodBoolean>;
33401
33642
  showAsTranslucentModel: zod.ZodOptional<zod.ZodBoolean>;
33402
33643
  pinAttributes: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
@@ -34213,6 +34454,7 @@ declare class Jumper<PinLabels extends string = never> extends NormalComponent<t
34213
34454
  } | undefined;
34214
34455
  children?: any;
34215
34456
  doNotPlace?: boolean | undefined;
34457
+ allowOffBoard?: boolean | undefined;
34216
34458
  obstructsWithinBounds?: boolean | undefined;
34217
34459
  showAsTranslucentModel?: boolean | undefined;
34218
34460
  mfn?: string | undefined;
@@ -34782,6 +35024,7 @@ declare class Jumper<PinLabels extends string = never> extends NormalComponent<t
34782
35024
  } | undefined;
34783
35025
  children?: any;
34784
35026
  doNotPlace?: boolean | undefined;
35027
+ allowOffBoard?: boolean | undefined;
34785
35028
  obstructsWithinBounds?: boolean | undefined;
34786
35029
  showAsTranslucentModel?: boolean | undefined;
34787
35030
  mfn?: string | undefined;
@@ -37896,6 +38139,7 @@ declare class Interconnect extends NormalComponent<typeof interconnectProps> {
37896
38139
  children: zod.ZodOptional<zod.ZodAny>;
37897
38140
  symbolName: zod.ZodOptional<zod.ZodString>;
37898
38141
  doNotPlace: zod.ZodOptional<zod.ZodBoolean>;
38142
+ allowOffBoard: zod.ZodOptional<zod.ZodBoolean>;
37899
38143
  obstructsWithinBounds: zod.ZodOptional<zod.ZodBoolean>;
37900
38144
  showAsTranslucentModel: zod.ZodOptional<zod.ZodBoolean>;
37901
38145
  pinAttributes: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
@@ -38430,6 +38674,7 @@ declare class Interconnect extends NormalComponent<typeof interconnectProps> {
38430
38674
  } | undefined;
38431
38675
  children?: any;
38432
38676
  doNotPlace?: boolean | undefined;
38677
+ allowOffBoard?: boolean | undefined;
38433
38678
  obstructsWithinBounds?: boolean | undefined;
38434
38679
  showAsTranslucentModel?: boolean | undefined;
38435
38680
  mfn?: string | undefined;
@@ -38931,6 +39176,7 @@ declare class Interconnect extends NormalComponent<typeof interconnectProps> {
38931
39176
  } | undefined;
38932
39177
  children?: any;
38933
39178
  doNotPlace?: boolean | undefined;
39179
+ allowOffBoard?: boolean | undefined;
38934
39180
  obstructsWithinBounds?: boolean | undefined;
38935
39181
  showAsTranslucentModel?: boolean | undefined;
38936
39182
  mfn?: string | undefined;
@@ -41989,6 +42235,7 @@ declare class SolderJumper<PinLabels extends string = never> extends NormalCompo
41989
42235
  children: zod.ZodOptional<zod.ZodAny>;
41990
42236
  symbolName: zod.ZodOptional<zod.ZodString>;
41991
42237
  doNotPlace: zod.ZodOptional<zod.ZodBoolean>;
42238
+ allowOffBoard: zod.ZodOptional<zod.ZodBoolean>;
41992
42239
  obstructsWithinBounds: zod.ZodOptional<zod.ZodBoolean>;
41993
42240
  showAsTranslucentModel: zod.ZodOptional<zod.ZodBoolean>;
41994
42241
  pinAttributes: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
@@ -42808,6 +43055,7 @@ declare class SolderJumper<PinLabels extends string = never> extends NormalCompo
42808
43055
  } | undefined;
42809
43056
  children?: any;
42810
43057
  doNotPlace?: boolean | undefined;
43058
+ allowOffBoard?: boolean | undefined;
42811
43059
  obstructsWithinBounds?: boolean | undefined;
42812
43060
  showAsTranslucentModel?: boolean | undefined;
42813
43061
  mfn?: string | undefined;
@@ -43379,6 +43627,7 @@ declare class SolderJumper<PinLabels extends string = never> extends NormalCompo
43379
43627
  } | undefined;
43380
43628
  children?: any;
43381
43629
  doNotPlace?: boolean | undefined;
43630
+ allowOffBoard?: boolean | undefined;
43382
43631
  obstructsWithinBounds?: boolean | undefined;
43383
43632
  showAsTranslucentModel?: boolean | undefined;
43384
43633
  mfn?: string | undefined;
@@ -46496,6 +46745,7 @@ declare class Led extends NormalComponent<typeof ledProps, PolarizedPassivePorts
46496
46745
  children: zod.ZodOptional<zod.ZodAny>;
46497
46746
  symbolName: zod.ZodOptional<zod.ZodString>;
46498
46747
  doNotPlace: zod.ZodOptional<zod.ZodBoolean>;
46748
+ allowOffBoard: zod.ZodOptional<zod.ZodBoolean>;
46499
46749
  obstructsWithinBounds: zod.ZodOptional<zod.ZodBoolean>;
46500
46750
  showAsTranslucentModel: zod.ZodOptional<zod.ZodBoolean>;
46501
46751
  pinAttributes: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
@@ -47033,6 +47283,7 @@ declare class Led extends NormalComponent<typeof ledProps, PolarizedPassivePorts
47033
47283
  } | undefined;
47034
47284
  children?: any;
47035
47285
  doNotPlace?: boolean | undefined;
47286
+ allowOffBoard?: boolean | undefined;
47036
47287
  obstructsWithinBounds?: boolean | undefined;
47037
47288
  showAsTranslucentModel?: boolean | undefined;
47038
47289
  mfn?: string | undefined;
@@ -47537,6 +47788,7 @@ declare class Led extends NormalComponent<typeof ledProps, PolarizedPassivePorts
47537
47788
  } | undefined;
47538
47789
  children?: any;
47539
47790
  doNotPlace?: boolean | undefined;
47791
+ allowOffBoard?: boolean | undefined;
47540
47792
  obstructsWithinBounds?: boolean | undefined;
47541
47793
  showAsTranslucentModel?: boolean | undefined;
47542
47794
  mfn?: string | undefined;
@@ -50591,6 +50843,7 @@ declare class PowerSource extends NormalComponent<typeof powerSourceProps, Polar
50591
50843
  children: zod.ZodOptional<zod.ZodAny>;
50592
50844
  symbolName: zod.ZodOptional<zod.ZodString>;
50593
50845
  doNotPlace: zod.ZodOptional<zod.ZodBoolean>;
50846
+ allowOffBoard: zod.ZodOptional<zod.ZodBoolean>;
50594
50847
  obstructsWithinBounds: zod.ZodOptional<zod.ZodBoolean>;
50595
50848
  showAsTranslucentModel: zod.ZodOptional<zod.ZodBoolean>;
50596
50849
  pinAttributes: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
@@ -51124,6 +51377,7 @@ declare class PowerSource extends NormalComponent<typeof powerSourceProps, Polar
51124
51377
  } | undefined;
51125
51378
  children?: any;
51126
51379
  doNotPlace?: boolean | undefined;
51380
+ allowOffBoard?: boolean | undefined;
51127
51381
  obstructsWithinBounds?: boolean | undefined;
51128
51382
  showAsTranslucentModel?: boolean | undefined;
51129
51383
  mfn?: string | undefined;
@@ -51623,6 +51877,7 @@ declare class PowerSource extends NormalComponent<typeof powerSourceProps, Polar
51623
51877
  } | undefined;
51624
51878
  children?: any;
51625
51879
  doNotPlace?: boolean | undefined;
51880
+ allowOffBoard?: boolean | undefined;
51626
51881
  obstructsWithinBounds?: boolean | undefined;
51627
51882
  showAsTranslucentModel?: boolean | undefined;
51628
51883
  mfn?: string | undefined;
@@ -54669,6 +54924,7 @@ declare class VoltageSource extends NormalComponent<typeof voltageSourceProps, "
54669
54924
  children: zod.ZodOptional<zod.ZodAny>;
54670
54925
  symbolName: zod.ZodOptional<zod.ZodString>;
54671
54926
  doNotPlace: zod.ZodOptional<zod.ZodBoolean>;
54927
+ allowOffBoard: zod.ZodOptional<zod.ZodBoolean>;
54672
54928
  obstructsWithinBounds: zod.ZodOptional<zod.ZodBoolean>;
54673
54929
  showAsTranslucentModel: zod.ZodOptional<zod.ZodBoolean>;
54674
54930
  pinAttributes: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
@@ -55207,6 +55463,7 @@ declare class VoltageSource extends NormalComponent<typeof voltageSourceProps, "
55207
55463
  } | undefined;
55208
55464
  children?: any;
55209
55465
  doNotPlace?: boolean | undefined;
55466
+ allowOffBoard?: boolean | undefined;
55210
55467
  obstructsWithinBounds?: boolean | undefined;
55211
55468
  showAsTranslucentModel?: boolean | undefined;
55212
55469
  mfn?: string | undefined;
@@ -55712,6 +55969,7 @@ declare class VoltageSource extends NormalComponent<typeof voltageSourceProps, "
55712
55969
  } | undefined;
55713
55970
  children?: any;
55714
55971
  doNotPlace?: boolean | undefined;
55972
+ allowOffBoard?: boolean | undefined;
55715
55973
  obstructsWithinBounds?: boolean | undefined;
55716
55974
  showAsTranslucentModel?: boolean | undefined;
55717
55975
  mfn?: string | undefined;
@@ -58767,6 +59025,7 @@ declare class CurrentSource extends NormalComponent<typeof currentSourceProps, "
58767
59025
  children: zod.ZodOptional<zod.ZodAny>;
58768
59026
  symbolName: zod.ZodOptional<zod.ZodString>;
58769
59027
  doNotPlace: zod.ZodOptional<zod.ZodBoolean>;
59028
+ allowOffBoard: zod.ZodOptional<zod.ZodBoolean>;
58770
59029
  obstructsWithinBounds: zod.ZodOptional<zod.ZodBoolean>;
58771
59030
  showAsTranslucentModel: zod.ZodOptional<zod.ZodBoolean>;
58772
59031
  pinAttributes: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
@@ -59305,6 +59564,7 @@ declare class CurrentSource extends NormalComponent<typeof currentSourceProps, "
59305
59564
  } | undefined;
59306
59565
  children?: any;
59307
59566
  doNotPlace?: boolean | undefined;
59567
+ allowOffBoard?: boolean | undefined;
59308
59568
  obstructsWithinBounds?: boolean | undefined;
59309
59569
  showAsTranslucentModel?: boolean | undefined;
59310
59570
  mfn?: string | undefined;
@@ -59810,6 +60070,7 @@ declare class CurrentSource extends NormalComponent<typeof currentSourceProps, "
59810
60070
  } | undefined;
59811
60071
  children?: any;
59812
60072
  doNotPlace?: boolean | undefined;
60073
+ allowOffBoard?: boolean | undefined;
59813
60074
  obstructsWithinBounds?: boolean | undefined;
59814
60075
  showAsTranslucentModel?: boolean | undefined;
59815
60076
  mfn?: string | undefined;
@@ -62866,6 +63127,7 @@ declare class Resistor extends NormalComponent<typeof resistorProps, PassivePort
62866
63127
  children: zod.ZodOptional<zod.ZodAny>;
62867
63128
  symbolName: zod.ZodOptional<zod.ZodString>;
62868
63129
  doNotPlace: zod.ZodOptional<zod.ZodBoolean>;
63130
+ allowOffBoard: zod.ZodOptional<zod.ZodBoolean>;
62869
63131
  obstructsWithinBounds: zod.ZodOptional<zod.ZodBoolean>;
62870
63132
  showAsTranslucentModel: zod.ZodOptional<zod.ZodBoolean>;
62871
63133
  pinAttributes: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
@@ -63407,6 +63669,7 @@ declare class Resistor extends NormalComponent<typeof resistorProps, PassivePort
63407
63669
  } | undefined;
63408
63670
  children?: any;
63409
63671
  doNotPlace?: boolean | undefined;
63672
+ allowOffBoard?: boolean | undefined;
63410
63673
  obstructsWithinBounds?: boolean | undefined;
63411
63674
  showAsTranslucentModel?: boolean | undefined;
63412
63675
  mfn?: string | undefined;
@@ -63914,6 +64177,7 @@ declare class Resistor extends NormalComponent<typeof resistorProps, PassivePort
63914
64177
  } | undefined;
63915
64178
  children?: any;
63916
64179
  doNotPlace?: boolean | undefined;
64180
+ allowOffBoard?: boolean | undefined;
63917
64181
  obstructsWithinBounds?: boolean | undefined;
63918
64182
  showAsTranslucentModel?: boolean | undefined;
63919
64183
  mfn?: string | undefined;
@@ -73632,6 +73896,7 @@ declare class Fiducial extends PrimitiveComponent<typeof fiducialProps> {
73632
73896
  children: z.ZodOptional<z.ZodAny>;
73633
73897
  symbolName: z.ZodOptional<z.ZodString>;
73634
73898
  doNotPlace: z.ZodOptional<z.ZodBoolean>;
73899
+ allowOffBoard: z.ZodOptional<z.ZodBoolean>;
73635
73900
  obstructsWithinBounds: z.ZodOptional<z.ZodBoolean>;
73636
73901
  showAsTranslucentModel: z.ZodOptional<z.ZodBoolean>;
73637
73902
  pinAttributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -74165,6 +74430,7 @@ declare class Fiducial extends PrimitiveComponent<typeof fiducialProps> {
74165
74430
  } | undefined;
74166
74431
  children?: any;
74167
74432
  doNotPlace?: boolean | undefined;
74433
+ allowOffBoard?: boolean | undefined;
74168
74434
  obstructsWithinBounds?: boolean | undefined;
74169
74435
  showAsTranslucentModel?: boolean | undefined;
74170
74436
  mfn?: string | undefined;
@@ -74665,6 +74931,7 @@ declare class Fiducial extends PrimitiveComponent<typeof fiducialProps> {
74665
74931
  } | undefined;
74666
74932
  children?: any;
74667
74933
  doNotPlace?: boolean | undefined;
74934
+ allowOffBoard?: boolean | undefined;
74668
74935
  obstructsWithinBounds?: boolean | undefined;
74669
74936
  showAsTranslucentModel?: boolean | undefined;
74670
74937
  mfn?: string | undefined;
@@ -79104,6 +79371,7 @@ declare class Battery extends NormalComponent<typeof batteryProps, PassivePorts>
79104
79371
  children: zod.ZodOptional<zod.ZodAny>;
79105
79372
  symbolName: zod.ZodOptional<zod.ZodString>;
79106
79373
  doNotPlace: zod.ZodOptional<zod.ZodBoolean>;
79374
+ allowOffBoard: zod.ZodOptional<zod.ZodBoolean>;
79107
79375
  obstructsWithinBounds: zod.ZodOptional<zod.ZodBoolean>;
79108
79376
  showAsTranslucentModel: zod.ZodOptional<zod.ZodBoolean>;
79109
79377
  pinAttributes: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
@@ -79639,6 +79907,7 @@ declare class Battery extends NormalComponent<typeof batteryProps, PassivePorts>
79639
79907
  } | undefined;
79640
79908
  children?: any;
79641
79909
  doNotPlace?: boolean | undefined;
79910
+ allowOffBoard?: boolean | undefined;
79642
79911
  obstructsWithinBounds?: boolean | undefined;
79643
79912
  showAsTranslucentModel?: boolean | undefined;
79644
79913
  mfn?: string | undefined;
@@ -80141,6 +80410,7 @@ declare class Battery extends NormalComponent<typeof batteryProps, PassivePorts>
80141
80410
  } | undefined;
80142
80411
  children?: any;
80143
80412
  doNotPlace?: boolean | undefined;
80413
+ allowOffBoard?: boolean | undefined;
80144
80414
  obstructsWithinBounds?: boolean | undefined;
80145
80415
  showAsTranslucentModel?: boolean | undefined;
80146
80416
  mfn?: string | undefined;
@@ -83187,6 +83457,7 @@ declare class PinHeader extends NormalComponent<typeof pinHeaderProps> {
83187
83457
  children: zod.ZodOptional<zod.ZodAny>;
83188
83458
  symbolName: zod.ZodOptional<zod.ZodString>;
83189
83459
  doNotPlace: zod.ZodOptional<zod.ZodBoolean>;
83460
+ allowOffBoard: zod.ZodOptional<zod.ZodBoolean>;
83190
83461
  obstructsWithinBounds: zod.ZodOptional<zod.ZodBoolean>;
83191
83462
  showAsTranslucentModel: zod.ZodOptional<zod.ZodBoolean>;
83192
83463
  pinAttributes: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
@@ -83889,6 +84160,7 @@ declare class PinHeader extends NormalComponent<typeof pinHeaderProps> {
83889
84160
  } | undefined;
83890
84161
  children?: any;
83891
84162
  doNotPlace?: boolean | undefined;
84163
+ allowOffBoard?: boolean | undefined;
83892
84164
  obstructsWithinBounds?: boolean | undefined;
83893
84165
  showAsTranslucentModel?: boolean | undefined;
83894
84166
  mfn?: string | undefined;
@@ -84439,6 +84711,7 @@ declare class PinHeader extends NormalComponent<typeof pinHeaderProps> {
84439
84711
  } | undefined;
84440
84712
  children?: any;
84441
84713
  doNotPlace?: boolean | undefined;
84714
+ allowOffBoard?: boolean | undefined;
84442
84715
  obstructsWithinBounds?: boolean | undefined;
84443
84716
  showAsTranslucentModel?: boolean | undefined;
84444
84717
  mfn?: string | undefined;
@@ -87535,6 +87808,7 @@ declare class Resonator extends NormalComponent<typeof resonatorProps> {
87535
87808
  children: zod.ZodOptional<zod.ZodAny>;
87536
87809
  symbolName: zod.ZodOptional<zod.ZodString>;
87537
87810
  doNotPlace: zod.ZodOptional<zod.ZodBoolean>;
87811
+ allowOffBoard: zod.ZodOptional<zod.ZodBoolean>;
87538
87812
  obstructsWithinBounds: zod.ZodOptional<zod.ZodBoolean>;
87539
87813
  showAsTranslucentModel: zod.ZodOptional<zod.ZodBoolean>;
87540
87814
  pinAttributes: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
@@ -88071,6 +88345,7 @@ declare class Resonator extends NormalComponent<typeof resonatorProps> {
88071
88345
  } | undefined;
88072
88346
  children?: any;
88073
88347
  doNotPlace?: boolean | undefined;
88348
+ allowOffBoard?: boolean | undefined;
88074
88349
  obstructsWithinBounds?: boolean | undefined;
88075
88350
  showAsTranslucentModel?: boolean | undefined;
88076
88351
  mfn?: string | undefined;
@@ -88572,6 +88847,7 @@ declare class Resonator extends NormalComponent<typeof resonatorProps> {
88572
88847
  } | undefined;
88573
88848
  children?: any;
88574
88849
  doNotPlace?: boolean | undefined;
88850
+ allowOffBoard?: boolean | undefined;
88575
88851
  obstructsWithinBounds?: boolean | undefined;
88576
88852
  showAsTranslucentModel?: boolean | undefined;
88577
88853
  mfn?: string | undefined;
@@ -91616,6 +91892,7 @@ declare class Inductor extends NormalComponent<typeof inductorProps, PassivePort
91616
91892
  children: zod.ZodOptional<zod.ZodAny>;
91617
91893
  symbolName: zod.ZodOptional<zod.ZodString>;
91618
91894
  doNotPlace: zod.ZodOptional<zod.ZodBoolean>;
91895
+ allowOffBoard: zod.ZodOptional<zod.ZodBoolean>;
91619
91896
  obstructsWithinBounds: zod.ZodOptional<zod.ZodBoolean>;
91620
91897
  showAsTranslucentModel: zod.ZodOptional<zod.ZodBoolean>;
91621
91898
  pinAttributes: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
@@ -92152,6 +92429,7 @@ declare class Inductor extends NormalComponent<typeof inductorProps, PassivePort
92152
92429
  } | undefined;
92153
92430
  children?: any;
92154
92431
  doNotPlace?: boolean | undefined;
92432
+ allowOffBoard?: boolean | undefined;
92155
92433
  obstructsWithinBounds?: boolean | undefined;
92156
92434
  showAsTranslucentModel?: boolean | undefined;
92157
92435
  mfn?: string | undefined;
@@ -92654,6 +92932,7 @@ declare class Inductor extends NormalComponent<typeof inductorProps, PassivePort
92654
92932
  } | undefined;
92655
92933
  children?: any;
92656
92934
  doNotPlace?: boolean | undefined;
92935
+ allowOffBoard?: boolean | undefined;
92657
92936
  obstructsWithinBounds?: boolean | undefined;
92658
92937
  showAsTranslucentModel?: boolean | undefined;
92659
92938
  mfn?: string | undefined;
@@ -95700,6 +95979,7 @@ declare class Potentiometer extends NormalComponent<typeof potentiometerProps> {
95700
95979
  children: zod.ZodOptional<zod.ZodAny>;
95701
95980
  symbolName: zod.ZodOptional<zod.ZodString>;
95702
95981
  doNotPlace: zod.ZodOptional<zod.ZodBoolean>;
95982
+ allowOffBoard: zod.ZodOptional<zod.ZodBoolean>;
95703
95983
  obstructsWithinBounds: zod.ZodOptional<zod.ZodBoolean>;
95704
95984
  showAsTranslucentModel: zod.ZodOptional<zod.ZodBoolean>;
95705
95985
  pinAttributes: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
@@ -96234,6 +96514,7 @@ declare class Potentiometer extends NormalComponent<typeof potentiometerProps> {
96234
96514
  } | undefined;
96235
96515
  children?: any;
96236
96516
  doNotPlace?: boolean | undefined;
96517
+ allowOffBoard?: boolean | undefined;
96237
96518
  obstructsWithinBounds?: boolean | undefined;
96238
96519
  showAsTranslucentModel?: boolean | undefined;
96239
96520
  mfn?: string | undefined;
@@ -96734,6 +97015,7 @@ declare class Potentiometer extends NormalComponent<typeof potentiometerProps> {
96734
97015
  } | undefined;
96735
97016
  children?: any;
96736
97017
  doNotPlace?: boolean | undefined;
97018
+ allowOffBoard?: boolean | undefined;
96737
97019
  obstructsWithinBounds?: boolean | undefined;
96738
97020
  showAsTranslucentModel?: boolean | undefined;
96739
97021
  mfn?: string | undefined;
@@ -99775,6 +100057,7 @@ declare class PushButton extends NormalComponent<typeof pushButtonProps, Passive
99775
100057
  children: zod.ZodOptional<zod.ZodAny>;
99776
100058
  symbolName: zod.ZodOptional<zod.ZodString>;
99777
100059
  doNotPlace: zod.ZodOptional<zod.ZodBoolean>;
100060
+ allowOffBoard: zod.ZodOptional<zod.ZodBoolean>;
99778
100061
  obstructsWithinBounds: zod.ZodOptional<zod.ZodBoolean>;
99779
100062
  showAsTranslucentModel: zod.ZodOptional<zod.ZodBoolean>;
99780
100063
  pinAttributes: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
@@ -100602,6 +100885,7 @@ declare class PushButton extends NormalComponent<typeof pushButtonProps, Passive
100602
100885
  } | undefined;
100603
100886
  children?: any;
100604
100887
  doNotPlace?: boolean | undefined;
100888
+ allowOffBoard?: boolean | undefined;
100605
100889
  obstructsWithinBounds?: boolean | undefined;
100606
100890
  showAsTranslucentModel?: boolean | undefined;
100607
100891
  mfn?: string | undefined;
@@ -101176,6 +101460,7 @@ declare class PushButton extends NormalComponent<typeof pushButtonProps, Passive
101176
101460
  } | undefined;
101177
101461
  children?: any;
101178
101462
  doNotPlace?: boolean | undefined;
101463
+ allowOffBoard?: boolean | undefined;
101179
101464
  obstructsWithinBounds?: boolean | undefined;
101180
101465
  showAsTranslucentModel?: boolean | undefined;
101181
101466
  mfn?: string | undefined;
@@ -104293,6 +104578,7 @@ declare class Crystal extends NormalComponent<typeof crystalProps, PolarizedPass
104293
104578
  children: zod.ZodOptional<zod.ZodAny>;
104294
104579
  symbolName: zod.ZodOptional<zod.ZodString>;
104295
104580
  doNotPlace: zod.ZodOptional<zod.ZodBoolean>;
104581
+ allowOffBoard: zod.ZodOptional<zod.ZodBoolean>;
104296
104582
  obstructsWithinBounds: zod.ZodOptional<zod.ZodBoolean>;
104297
104583
  showAsTranslucentModel: zod.ZodOptional<zod.ZodBoolean>;
104298
104584
  pinAttributes: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
@@ -104832,6 +105118,7 @@ declare class Crystal extends NormalComponent<typeof crystalProps, PolarizedPass
104832
105118
  } | undefined;
104833
105119
  children?: any;
104834
105120
  doNotPlace?: boolean | undefined;
105121
+ allowOffBoard?: boolean | undefined;
104835
105122
  obstructsWithinBounds?: boolean | undefined;
104836
105123
  showAsTranslucentModel?: boolean | undefined;
104837
105124
  mfn?: string | undefined;
@@ -105336,6 +105623,7 @@ declare class Crystal extends NormalComponent<typeof crystalProps, PolarizedPass
105336
105623
  } | undefined;
105337
105624
  children?: any;
105338
105625
  doNotPlace?: boolean | undefined;
105626
+ allowOffBoard?: boolean | undefined;
105339
105627
  obstructsWithinBounds?: boolean | undefined;
105340
105628
  showAsTranslucentModel?: boolean | undefined;
105341
105629
  mfn?: string | undefined;
@@ -108383,6 +108671,7 @@ declare class Transistor extends NormalComponent<typeof transistorProps, Transis
108383
108671
  children: zod.ZodOptional<zod.ZodAny>;
108384
108672
  symbolName: zod.ZodOptional<zod.ZodString>;
108385
108673
  doNotPlace: zod.ZodOptional<zod.ZodBoolean>;
108674
+ allowOffBoard: zod.ZodOptional<zod.ZodBoolean>;
108386
108675
  obstructsWithinBounds: zod.ZodOptional<zod.ZodBoolean>;
108387
108676
  showAsTranslucentModel: zod.ZodOptional<zod.ZodBoolean>;
108388
108677
  pinAttributes: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
@@ -108917,6 +109206,7 @@ declare class Transistor extends NormalComponent<typeof transistorProps, Transis
108917
109206
  } | undefined;
108918
109207
  children?: any;
108919
109208
  doNotPlace?: boolean | undefined;
109209
+ allowOffBoard?: boolean | undefined;
108920
109210
  obstructsWithinBounds?: boolean | undefined;
108921
109211
  showAsTranslucentModel?: boolean | undefined;
108922
109212
  mfn?: string | undefined;
@@ -109417,6 +109707,7 @@ declare class Transistor extends NormalComponent<typeof transistorProps, Transis
109417
109707
  } | undefined;
109418
109708
  children?: any;
109419
109709
  doNotPlace?: boolean | undefined;
109710
+ allowOffBoard?: boolean | undefined;
109420
109711
  obstructsWithinBounds?: boolean | undefined;
109421
109712
  showAsTranslucentModel?: boolean | undefined;
109422
109713
  mfn?: string | undefined;
@@ -112466,6 +112757,7 @@ declare class Mosfet extends NormalComponent<typeof mosfetProps> {
112466
112757
  children: zod.ZodOptional<zod.ZodAny>;
112467
112758
  symbolName: zod.ZodOptional<zod.ZodString>;
112468
112759
  doNotPlace: zod.ZodOptional<zod.ZodBoolean>;
112760
+ allowOffBoard: zod.ZodOptional<zod.ZodBoolean>;
112469
112761
  obstructsWithinBounds: zod.ZodOptional<zod.ZodBoolean>;
112470
112762
  showAsTranslucentModel: zod.ZodOptional<zod.ZodBoolean>;
112471
112763
  pinAttributes: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
@@ -113001,6 +113293,7 @@ declare class Mosfet extends NormalComponent<typeof mosfetProps> {
113001
113293
  } | undefined;
113002
113294
  children?: any;
113003
113295
  doNotPlace?: boolean | undefined;
113296
+ allowOffBoard?: boolean | undefined;
113004
113297
  obstructsWithinBounds?: boolean | undefined;
113005
113298
  showAsTranslucentModel?: boolean | undefined;
113006
113299
  mfn?: string | undefined;
@@ -113501,6 +113794,7 @@ declare class Mosfet extends NormalComponent<typeof mosfetProps> {
113501
113794
  } | undefined;
113502
113795
  children?: any;
113503
113796
  doNotPlace?: boolean | undefined;
113797
+ allowOffBoard?: boolean | undefined;
113504
113798
  obstructsWithinBounds?: boolean | undefined;
113505
113799
  showAsTranslucentModel?: boolean | undefined;
113506
113800
  mfn?: string | undefined;
@@ -116542,6 +116836,7 @@ declare class OpAmp extends NormalComponent<typeof opampProps, OpAmpPinLabels> {
116542
116836
  children: zod.ZodOptional<zod.ZodAny>;
116543
116837
  symbolName: zod.ZodOptional<zod.ZodString>;
116544
116838
  doNotPlace: zod.ZodOptional<zod.ZodBoolean>;
116839
+ allowOffBoard: zod.ZodOptional<zod.ZodBoolean>;
116545
116840
  obstructsWithinBounds: zod.ZodOptional<zod.ZodBoolean>;
116546
116841
  showAsTranslucentModel: zod.ZodOptional<zod.ZodBoolean>;
116547
116842
  pinAttributes: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
@@ -117074,6 +117369,7 @@ declare class OpAmp extends NormalComponent<typeof opampProps, OpAmpPinLabels> {
117074
117369
  } | undefined;
117075
117370
  children?: any;
117076
117371
  doNotPlace?: boolean | undefined;
117372
+ allowOffBoard?: boolean | undefined;
117077
117373
  obstructsWithinBounds?: boolean | undefined;
117078
117374
  showAsTranslucentModel?: boolean | undefined;
117079
117375
  mfn?: string | undefined;
@@ -117573,6 +117869,7 @@ declare class OpAmp extends NormalComponent<typeof opampProps, OpAmpPinLabels> {
117573
117869
  } | undefined;
117574
117870
  children?: any;
117575
117871
  doNotPlace?: boolean | undefined;
117872
+ allowOffBoard?: boolean | undefined;
117576
117873
  obstructsWithinBounds?: boolean | undefined;
117577
117874
  showAsTranslucentModel?: boolean | undefined;
117578
117875
  mfn?: string | undefined;
@@ -120623,6 +120920,7 @@ declare class Switch extends NormalComponent<typeof switchProps> {
120623
120920
  children: zod.ZodOptional<zod.ZodAny>;
120624
120921
  symbolName: zod.ZodOptional<zod.ZodString>;
120625
120922
  doNotPlace: zod.ZodOptional<zod.ZodBoolean>;
120923
+ allowOffBoard: zod.ZodOptional<zod.ZodBoolean>;
120626
120924
  obstructsWithinBounds: zod.ZodOptional<zod.ZodBoolean>;
120627
120925
  showAsTranslucentModel: zod.ZodOptional<zod.ZodBoolean>;
120628
120926
  pinAttributes: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
@@ -121168,6 +121466,7 @@ declare class Switch extends NormalComponent<typeof switchProps> {
121168
121466
  } | undefined;
121169
121467
  children?: any;
121170
121468
  doNotPlace?: boolean | undefined;
121469
+ allowOffBoard?: boolean | undefined;
121171
121470
  obstructsWithinBounds?: boolean | undefined;
121172
121471
  showAsTranslucentModel?: boolean | undefined;
121173
121472
  mfn?: string | undefined;
@@ -121677,6 +121976,7 @@ declare class Switch extends NormalComponent<typeof switchProps> {
121677
121976
  } | undefined;
121678
121977
  children?: any;
121679
121978
  doNotPlace?: boolean | undefined;
121979
+ allowOffBoard?: boolean | undefined;
121680
121980
  obstructsWithinBounds?: boolean | undefined;
121681
121981
  showAsTranslucentModel?: boolean | undefined;
121682
121982
  mfn?: string | undefined;
@@ -122187,6 +122487,7 @@ declare class Switch extends NormalComponent<typeof switchProps> {
122187
122487
  } | undefined;
122188
122488
  children?: any;
122189
122489
  doNotPlace?: boolean | undefined;
122490
+ allowOffBoard?: boolean | undefined;
122190
122491
  obstructsWithinBounds?: boolean | undefined;
122191
122492
  showAsTranslucentModel?: boolean | undefined;
122192
122493
  mfn?: string | undefined;
@@ -125240,6 +125541,7 @@ declare class TestPoint extends NormalComponent<typeof testpointProps> {
125240
125541
  children: zod.ZodOptional<zod.ZodAny>;
125241
125542
  symbolName: zod.ZodOptional<zod.ZodString>;
125242
125543
  doNotPlace: zod.ZodOptional<zod.ZodBoolean>;
125544
+ allowOffBoard: zod.ZodOptional<zod.ZodBoolean>;
125243
125545
  obstructsWithinBounds: zod.ZodOptional<zod.ZodBoolean>;
125244
125546
  showAsTranslucentModel: zod.ZodOptional<zod.ZodBoolean>;
125245
125547
  pinAttributes: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
@@ -125785,6 +126087,7 @@ declare class TestPoint extends NormalComponent<typeof testpointProps> {
125785
126087
  } | undefined;
125786
126088
  children?: any;
125787
126089
  doNotPlace?: boolean | undefined;
126090
+ allowOffBoard?: boolean | undefined;
125788
126091
  obstructsWithinBounds?: boolean | undefined;
125789
126092
  showAsTranslucentModel?: boolean | undefined;
125790
126093
  mfn?: string | undefined;
@@ -126291,6 +126594,7 @@ declare class TestPoint extends NormalComponent<typeof testpointProps> {
126291
126594
  } | undefined;
126292
126595
  children?: any;
126293
126596
  doNotPlace?: boolean | undefined;
126597
+ allowOffBoard?: boolean | undefined;
126294
126598
  obstructsWithinBounds?: boolean | undefined;
126295
126599
  showAsTranslucentModel?: boolean | undefined;
126296
126600
  mfn?: string | undefined;
@@ -126797,6 +127101,7 @@ declare class TestPoint extends NormalComponent<typeof testpointProps> {
126797
127101
  } | undefined;
126798
127102
  children?: any;
126799
127103
  doNotPlace?: boolean | undefined;
127104
+ allowOffBoard?: boolean | undefined;
126800
127105
  obstructsWithinBounds?: boolean | undefined;
126801
127106
  showAsTranslucentModel?: boolean | undefined;
126802
127107
  mfn?: string | undefined;
@@ -127303,6 +127608,7 @@ declare class TestPoint extends NormalComponent<typeof testpointProps> {
127303
127608
  } | undefined;
127304
127609
  children?: any;
127305
127610
  doNotPlace?: boolean | undefined;
127611
+ allowOffBoard?: boolean | undefined;
127306
127612
  obstructsWithinBounds?: boolean | undefined;
127307
127613
  showAsTranslucentModel?: boolean | undefined;
127308
127614
  mfn?: string | undefined;
@@ -130901,6 +131207,7 @@ declare class VoltageProbe extends PrimitiveComponent<typeof voltageProbeProps>
130901
131207
  children: z.ZodOptional<z.ZodAny>;
130902
131208
  symbolName: z.ZodOptional<z.ZodString>;
130903
131209
  doNotPlace: z.ZodOptional<z.ZodBoolean>;
131210
+ allowOffBoard: z.ZodOptional<z.ZodBoolean>;
130904
131211
  obstructsWithinBounds: z.ZodOptional<z.ZodBoolean>;
130905
131212
  showAsTranslucentModel: z.ZodOptional<z.ZodBoolean>;
130906
131213
  pinAttributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -131437,6 +131744,7 @@ declare class VoltageProbe extends PrimitiveComponent<typeof voltageProbeProps>
131437
131744
  } | undefined;
131438
131745
  children?: any;
131439
131746
  doNotPlace?: boolean | undefined;
131747
+ allowOffBoard?: boolean | undefined;
131440
131748
  obstructsWithinBounds?: boolean | undefined;
131441
131749
  showAsTranslucentModel?: boolean | undefined;
131442
131750
  mfn?: string | undefined;
@@ -131938,6 +132246,7 @@ declare class VoltageProbe extends PrimitiveComponent<typeof voltageProbeProps>
131938
132246
  } | undefined;
131939
132247
  children?: any;
131940
132248
  doNotPlace?: boolean | undefined;
132249
+ allowOffBoard?: boolean | undefined;
131941
132250
  obstructsWithinBounds?: boolean | undefined;
131942
132251
  showAsTranslucentModel?: boolean | undefined;
131943
132252
  mfn?: string | undefined;
@@ -132487,6 +132796,7 @@ declare const useLed: <PropsFromHook extends Omit<{
132487
132796
  } | undefined;
132488
132797
  children?: any;
132489
132798
  doNotPlace?: boolean | undefined;
132799
+ allowOffBoard?: boolean | undefined;
132490
132800
  obstructsWithinBounds?: boolean | undefined;
132491
132801
  showAsTranslucentModel?: boolean | undefined;
132492
132802
  mfn?: string | undefined;
@@ -132991,6 +133301,7 @@ declare const useLed: <PropsFromHook extends Omit<{
132991
133301
  } | undefined;
132992
133302
  children?: any;
132993
133303
  doNotPlace?: boolean | undefined;
133304
+ allowOffBoard?: boolean | undefined;
132994
133305
  obstructsWithinBounds?: boolean | undefined;
132995
133306
  showAsTranslucentModel?: boolean | undefined;
132996
133307
  mfn?: string | undefined;
package/dist/index.js CHANGED
@@ -6943,6 +6943,17 @@ function getRelativeDirection(pointA, pointB) {
6943
6943
  return dy >= 0 ? "up" : "down";
6944
6944
  }
6945
6945
 
6946
+ // lib/utils/constants.ts
6947
+ var stringProxy = new Proxy(
6948
+ {},
6949
+ {
6950
+ get: (target, prop) => prop
6951
+ }
6952
+ );
6953
+ var FTYPE = stringProxy;
6954
+ var SCHEMATIC_COMPONENT_OUTLINE_COLOR = "rgba(132, 0, 0)";
6955
+ var SCHEMATIC_COMPONENT_OUTLINE_STROKE_WIDTH = 0.12;
6956
+
6946
6957
  // lib/components/primitive-components/Port/Port.ts
6947
6958
  import "schematic-symbols";
6948
6959
  import { applyToPoint as applyToPoint7, compose as compose3, translate as translate3 } from "transformation-matrix";
@@ -6999,6 +7010,7 @@ var getCenterOfPcbPrimitives = (pcbPrimitives) => {
6999
7010
  var portProps = z7.object({
7000
7011
  name: z7.string().optional(),
7001
7012
  pinNumber: z7.number().optional(),
7013
+ schStemLength: z7.number().optional(),
7002
7014
  aliases: z7.array(z7.string()).optional(),
7003
7015
  layer: z7.string().optional(),
7004
7016
  layers: z7.array(z7.string()).optional(),
@@ -7494,14 +7506,15 @@ var Port = class extends PrimitiveComponent2 {
7494
7506
  }
7495
7507
  const bestDisplayPinLabel = this._getBestDisplayPinLabel();
7496
7508
  const parentNormalComponent = this.getParentNormalComponent();
7509
+ const sideOfComponent = localPortInfo?.side ?? (props.direction === "up" ? "top" : props.direction === "down" ? "bottom" : props.direction);
7497
7510
  const schematicPortInsertProps = {
7498
7511
  type: "schematic_port",
7499
7512
  schematic_component_id: parentNormalComponent?.schematic_component_id,
7500
7513
  center: portCenter,
7501
7514
  source_port_id: this.source_port_id,
7502
7515
  facing_direction: this.facingDirection,
7503
- distance_from_component_edge: 0.4,
7504
- side_of_component: localPortInfo?.side,
7516
+ distance_from_component_edge: props.schStemLength ?? 0.4,
7517
+ side_of_component: sideOfComponent,
7505
7518
  pin_number: props.pinNumber,
7506
7519
  true_ccw_index: localPortInfo?.trueIndex,
7507
7520
  display_pin_label: bestDisplayPinLabel,
@@ -7517,6 +7530,25 @@ var Port = class extends PrimitiveComponent2 {
7517
7530
  }
7518
7531
  const schematic_port = db.schematic_port.insert(schematicPortInsertProps);
7519
7532
  this.schematic_port_id = schematic_port.schematic_port_id;
7533
+ if (props.schStemLength !== void 0 && props.schStemLength !== 0) {
7534
+ const { schStemLength, direction } = props;
7535
+ let x2 = portCenter.x;
7536
+ let y2 = portCenter.y;
7537
+ if (direction === "right") x2 -= schStemLength;
7538
+ else if (direction === "left") x2 += schStemLength;
7539
+ else if (direction === "up") y2 -= schStemLength;
7540
+ else if (direction === "down") y2 += schStemLength;
7541
+ db.schematic_line.insert({
7542
+ schematic_component_id: parentNormalComponent?.schematic_component_id,
7543
+ x1: portCenter.x,
7544
+ y1: portCenter.y,
7545
+ x2,
7546
+ y2,
7547
+ stroke_width: 0.02,
7548
+ color: SCHEMATIC_COMPONENT_OUTLINE_COLOR,
7549
+ is_dashed: false
7550
+ });
7551
+ }
7520
7552
  }
7521
7553
  _getSubcircuitConnectivityKey() {
7522
7554
  return this.root?.db.source_port.get(this.source_port_id)?.subcircuit_connectivity_map_key;
@@ -12547,7 +12579,7 @@ import { identity as identity4 } from "transformation-matrix";
12547
12579
  var package_default = {
12548
12580
  name: "@tscircuit/core",
12549
12581
  type: "module",
12550
- version: "0.0.1035",
12582
+ version: "0.0.1037",
12551
12583
  types: "dist/index.d.ts",
12552
12584
  main: "dist/index.js",
12553
12585
  module: "dist/index.js",
@@ -12580,7 +12612,7 @@ var package_default = {
12580
12612
  "@resvg/resvg-js": "^2.6.2",
12581
12613
  "@tscircuit/alphabet": "0.0.18",
12582
12614
  "@tscircuit/capacity-autorouter": "^0.0.269",
12583
- "@tscircuit/checks": "^0.0.88",
12615
+ "@tscircuit/checks": "^0.0.90",
12584
12616
  "@tscircuit/circuit-json-util": "^0.0.77",
12585
12617
  "@tscircuit/common": "^0.0.20",
12586
12618
  "@tscircuit/copper-pour-solver": "^0.0.20",
@@ -12591,7 +12623,7 @@ var package_default = {
12591
12623
  "@tscircuit/math-utils": "^0.0.29",
12592
12624
  "@tscircuit/miniflex": "^0.0.4",
12593
12625
  "@tscircuit/ngspice-spice-engine": "^0.0.8",
12594
- "@tscircuit/props": "^0.0.471",
12626
+ "@tscircuit/props": "^0.0.474",
12595
12627
  "@tscircuit/schematic-match-adapt": "^0.0.16",
12596
12628
  "@tscircuit/schematic-trace-solver": "^v0.0.45",
12597
12629
  "@tscircuit/solver-utils": "^0.0.3",
@@ -12605,13 +12637,13 @@ var package_default = {
12605
12637
  "bun-match-svg": "0.0.12",
12606
12638
  "calculate-elbow": "^0.0.12",
12607
12639
  "chokidar-cli": "^3.0.0",
12608
- "circuit-json": "^0.0.378",
12640
+ "circuit-json": "^0.0.379",
12609
12641
  "circuit-json-to-bpc": "^0.0.13",
12610
12642
  "circuit-json-to-connectivity-map": "^0.0.23",
12611
12643
  "circuit-json-to-gltf": "^0.0.65",
12612
12644
  "circuit-json-to-simple-3d": "^0.0.9",
12613
12645
  "circuit-json-to-spice": "^0.0.34",
12614
- "circuit-to-svg": "^0.0.327",
12646
+ "circuit-to-svg": "^0.0.328",
12615
12647
  concurrently: "^9.1.2",
12616
12648
  "connectivity-map": "^1.0.0",
12617
12649
  debug: "^4.3.6",
@@ -16473,19 +16505,6 @@ function inflatePcbBoard(pcbBoard, inflatorContext) {
16473
16505
 
16474
16506
  // lib/components/normal-components/Capacitor.ts
16475
16507
  import { capacitorProps } from "@tscircuit/props";
16476
-
16477
- // lib/utils/constants.ts
16478
- var stringProxy = new Proxy(
16479
- {},
16480
- {
16481
- get: (target, prop) => prop
16482
- }
16483
- );
16484
- var FTYPE = stringProxy;
16485
- var SCHEMATIC_COMPONENT_OUTLINE_COLOR = "rgba(132, 0, 0)";
16486
- var SCHEMATIC_COMPONENT_OUTLINE_STROKE_WIDTH = 0.12;
16487
-
16488
- // lib/components/normal-components/Capacitor.ts
16489
16508
  import { formatSiUnit } from "format-si-unit";
16490
16509
  var Capacitor = class extends NormalComponent3 {
16491
16510
  _adjustSilkscreenTextAutomatically = true;
@@ -16736,7 +16755,8 @@ var Chip = class extends NormalComponent3 {
16736
16755
  source_component_id: this.source_component_id,
16737
16756
  subcircuit_id: this.getSubcircuit().subcircuit_id ?? void 0,
16738
16757
  do_not_place: props.doNotPlace ?? false,
16739
- obstructs_within_bounds: props.obstructsWithinBounds ?? true
16758
+ obstructs_within_bounds: props.obstructsWithinBounds ?? true,
16759
+ is_allowed_to_be_off_board: props.allowOffBoard ?? false
16740
16760
  });
16741
16761
  this.pcb_component_id = pcb_component.pcb_component_id;
16742
16762
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tscircuit/core",
3
3
  "type": "module",
4
- "version": "0.0.1036",
4
+ "version": "0.0.1038",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -34,7 +34,7 @@
34
34
  "@resvg/resvg-js": "^2.6.2",
35
35
  "@tscircuit/alphabet": "0.0.18",
36
36
  "@tscircuit/capacity-autorouter": "^0.0.269",
37
- "@tscircuit/checks": "^0.0.88",
37
+ "@tscircuit/checks": "^0.0.90",
38
38
  "@tscircuit/circuit-json-util": "^0.0.77",
39
39
  "@tscircuit/common": "^0.0.20",
40
40
  "@tscircuit/copper-pour-solver": "^0.0.20",
@@ -45,7 +45,7 @@
45
45
  "@tscircuit/math-utils": "^0.0.29",
46
46
  "@tscircuit/miniflex": "^0.0.4",
47
47
  "@tscircuit/ngspice-spice-engine": "^0.0.8",
48
- "@tscircuit/props": "^0.0.471",
48
+ "@tscircuit/props": "^0.0.474",
49
49
  "@tscircuit/schematic-match-adapt": "^0.0.16",
50
50
  "@tscircuit/schematic-trace-solver": "^v0.0.45",
51
51
  "@tscircuit/solver-utils": "^0.0.3",
@@ -59,13 +59,13 @@
59
59
  "bun-match-svg": "0.0.12",
60
60
  "calculate-elbow": "^0.0.12",
61
61
  "chokidar-cli": "^3.0.0",
62
- "circuit-json": "^0.0.378",
62
+ "circuit-json": "^0.0.379",
63
63
  "circuit-json-to-bpc": "^0.0.13",
64
64
  "circuit-json-to-connectivity-map": "^0.0.23",
65
65
  "circuit-json-to-gltf": "^0.0.65",
66
66
  "circuit-json-to-simple-3d": "^0.0.9",
67
67
  "circuit-json-to-spice": "^0.0.34",
68
- "circuit-to-svg": "^0.0.327",
68
+ "circuit-to-svg": "^0.0.328",
69
69
  "concurrently": "^9.1.2",
70
70
  "connectivity-map": "^1.0.0",
71
71
  "debug": "^4.3.6",