@tscircuit/footprinter 0.0.336 → 0.0.337
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +105 -270
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3159,21 +3159,15 @@ var sod123 = (raw_params) => {
|
|
|
3159
3159
|
length18.parse(parameters.h) / 4 + 0.4,
|
|
3160
3160
|
0.3
|
|
3161
3161
|
);
|
|
3162
|
-
const
|
|
3163
|
-
const
|
|
3164
|
-
const pw_val = length18.parse(parameters.pw);
|
|
3165
|
-
const courtyardPadding = 0.25;
|
|
3166
|
-
const crtMinX = -(p_val / 2 + pl_val / 2 + courtyardPadding);
|
|
3167
|
-
const crtMaxX = p_val / 2 + pl_val / 2 + courtyardPadding;
|
|
3168
|
-
const crtMinY = -(pw_val / 2 + courtyardPadding);
|
|
3169
|
-
const crtMaxY = pw_val / 2 + courtyardPadding;
|
|
3162
|
+
const courtyardWidthMm = 4.7;
|
|
3163
|
+
const courtyardHeightMm = 2.3;
|
|
3170
3164
|
const courtyard = {
|
|
3171
3165
|
type: "pcb_courtyard_rect",
|
|
3172
3166
|
pcb_courtyard_rect_id: "",
|
|
3173
3167
|
pcb_component_id: "",
|
|
3174
|
-
center: { x:
|
|
3175
|
-
width:
|
|
3176
|
-
height:
|
|
3168
|
+
center: { x: 0, y: 0 },
|
|
3169
|
+
width: courtyardWidthMm,
|
|
3170
|
+
height: courtyardHeightMm,
|
|
3177
3171
|
layer: "top"
|
|
3178
3172
|
};
|
|
3179
3173
|
return {
|
|
@@ -4743,23 +4737,15 @@ var sod523 = (raw_params) => {
|
|
|
4743
4737
|
stroke_width: 0.1,
|
|
4744
4738
|
pcb_silkscreen_path_id: ""
|
|
4745
4739
|
};
|
|
4746
|
-
const
|
|
4747
|
-
const
|
|
4748
|
-
const pw_v = length27.parse(parameters.pw);
|
|
4749
|
-
const h_v = length27.parse(parameters.h);
|
|
4750
|
-
const w_v = length27.parse(parameters.w);
|
|
4751
|
-
const courtyardPadding = 0.25;
|
|
4752
|
-
const crtMinX = -(Math.max(w_v / 2 + 0.2, p_v / 2 + pl_v / 2) + courtyardPadding);
|
|
4753
|
-
const crtMaxX = p_v / 2 + pl_v / 2 + courtyardPadding;
|
|
4754
|
-
const crtMinY = -(Math.max(h_v / 2, pw_v / 2) + courtyardPadding);
|
|
4755
|
-
const crtMaxY = Math.max(h_v / 2, pw_v / 2) + courtyardPadding;
|
|
4740
|
+
const courtyardWidthMm = 2.5;
|
|
4741
|
+
const courtyardHeightMm = 1.4;
|
|
4756
4742
|
const courtyard = {
|
|
4757
4743
|
type: "pcb_courtyard_rect",
|
|
4758
4744
|
pcb_courtyard_rect_id: "",
|
|
4759
4745
|
pcb_component_id: "",
|
|
4760
|
-
center: { x:
|
|
4761
|
-
width:
|
|
4762
|
-
height:
|
|
4746
|
+
center: { x: 0, y: 0 },
|
|
4747
|
+
width: courtyardWidthMm,
|
|
4748
|
+
height: courtyardHeightMm,
|
|
4763
4749
|
layer: "top"
|
|
4764
4750
|
};
|
|
4765
4751
|
return {
|
|
@@ -4904,23 +4890,15 @@ var sod80 = (raw_params) => {
|
|
|
4904
4890
|
stroke_width: 0.1,
|
|
4905
4891
|
pcb_silkscreen_path_id: ""
|
|
4906
4892
|
};
|
|
4907
|
-
const
|
|
4908
|
-
const
|
|
4909
|
-
const pw_v = length28.parse(parameters.pw);
|
|
4910
|
-
const h_v = length28.parse(parameters.h);
|
|
4911
|
-
const w_v = length28.parse(parameters.w);
|
|
4912
|
-
const courtyardPadding = 0.25;
|
|
4913
|
-
const crtMinX = -(Math.max(w_v / 2 + 0.5, p_v / 2 + pl_v / 2) + courtyardPadding);
|
|
4914
|
-
const crtMaxX = Math.max(p_v / 2 + 0.5, p_v / 2 + pl_v / 2) + courtyardPadding;
|
|
4915
|
-
const crtMinY = -(Math.max(h_v / 2 + 0.5, pw_v / 2) + courtyardPadding);
|
|
4916
|
-
const crtMaxY = Math.max(h_v / 2 + 0.5, pw_v / 2) + courtyardPadding;
|
|
4893
|
+
const courtyardWidthMm = 5.1;
|
|
4894
|
+
const courtyardHeightMm = 2.8;
|
|
4917
4895
|
const courtyard = {
|
|
4918
4896
|
type: "pcb_courtyard_rect",
|
|
4919
4897
|
pcb_courtyard_rect_id: "",
|
|
4920
4898
|
pcb_component_id: "",
|
|
4921
|
-
center: { x:
|
|
4922
|
-
width:
|
|
4923
|
-
height:
|
|
4899
|
+
center: { x: 0, y: 0 },
|
|
4900
|
+
width: courtyardWidthMm,
|
|
4901
|
+
height: courtyardHeightMm,
|
|
4924
4902
|
layer: "top"
|
|
4925
4903
|
};
|
|
4926
4904
|
return {
|
|
@@ -5000,23 +4978,15 @@ var sod123w = (raw_params) => {
|
|
|
5000
4978
|
stroke_width: 0.1,
|
|
5001
4979
|
pcb_silkscreen_path_id: ""
|
|
5002
4980
|
};
|
|
5003
|
-
const
|
|
5004
|
-
const
|
|
5005
|
-
const pw_v = length29.parse(parameters.pw);
|
|
5006
|
-
const h_v = length29.parse(parameters.h);
|
|
5007
|
-
const w_v = length29.parse(parameters.w);
|
|
5008
|
-
const courtyardPadding = 0.25;
|
|
5009
|
-
const crtMinX = -(Math.max(w_v / 2 + 0.2, p_v / 2 + pl_v / 2) + courtyardPadding);
|
|
5010
|
-
const crtMaxX = p_v / 2 + pl_v / 2 + courtyardPadding;
|
|
5011
|
-
const crtMinY = -(Math.max(h_v / 2, pw_v / 2) + courtyardPadding);
|
|
5012
|
-
const crtMaxY = Math.max(h_v / 2, pw_v / 2) + courtyardPadding;
|
|
4981
|
+
const courtyardWidthMm = 4.5;
|
|
4982
|
+
const courtyardHeightMm = 2.2;
|
|
5013
4983
|
const courtyard = {
|
|
5014
4984
|
type: "pcb_courtyard_rect",
|
|
5015
4985
|
pcb_courtyard_rect_id: "",
|
|
5016
4986
|
pcb_component_id: "",
|
|
5017
|
-
center: { x:
|
|
5018
|
-
width:
|
|
5019
|
-
height:
|
|
4987
|
+
center: { x: 0, y: 0 },
|
|
4988
|
+
width: courtyardWidthMm,
|
|
4989
|
+
height: courtyardHeightMm,
|
|
5020
4990
|
layer: "top"
|
|
5021
4991
|
};
|
|
5022
4992
|
return {
|
|
@@ -5099,23 +5069,15 @@ var sod323 = (raw_params) => {
|
|
|
5099
5069
|
stroke_width: 0.1,
|
|
5100
5070
|
pcb_silkscreen_path_id: ""
|
|
5101
5071
|
};
|
|
5102
|
-
const
|
|
5103
|
-
const
|
|
5104
|
-
const pw_v = length30.parse(parameters.pw);
|
|
5105
|
-
const h_v = length30.parse(parameters.h);
|
|
5106
|
-
const w_v = length30.parse(parameters.w);
|
|
5107
|
-
const courtyardPadding = 0.25;
|
|
5108
|
-
const crtMinX = -(Math.max(w_v / 2, p_v / 2 + pl_v / 2) + courtyardPadding);
|
|
5109
|
-
const crtMaxX = p_v / 2 + pl_v / 2 + courtyardPadding;
|
|
5110
|
-
const crtMinY = -(Math.max(h_v / 2, pw_v / 2) + courtyardPadding);
|
|
5111
|
-
const crtMaxY = Math.max(h_v / 2, pw_v / 2) + courtyardPadding;
|
|
5072
|
+
const courtyardWidthMm = 3.2;
|
|
5073
|
+
const courtyardHeightMm = 1.9;
|
|
5112
5074
|
const courtyard = {
|
|
5113
5075
|
type: "pcb_courtyard_rect",
|
|
5114
5076
|
pcb_courtyard_rect_id: "",
|
|
5115
5077
|
pcb_component_id: "",
|
|
5116
|
-
center: { x:
|
|
5117
|
-
width:
|
|
5118
|
-
height:
|
|
5078
|
+
center: { x: 0, y: 0 },
|
|
5079
|
+
width: courtyardWidthMm,
|
|
5080
|
+
height: courtyardHeightMm,
|
|
5119
5081
|
layer: "top"
|
|
5120
5082
|
};
|
|
5121
5083
|
return {
|
|
@@ -5198,23 +5160,15 @@ var sod923 = (raw_params) => {
|
|
|
5198
5160
|
stroke_width: 0.1,
|
|
5199
5161
|
pcb_silkscreen_path_id: ""
|
|
5200
5162
|
};
|
|
5201
|
-
const
|
|
5202
|
-
const
|
|
5203
|
-
const pw_v = length31.parse(parameters.pw);
|
|
5204
|
-
const h_v = length31.parse(parameters.h);
|
|
5205
|
-
const w_v = length31.parse(parameters.w);
|
|
5206
|
-
const courtyardPadding = 0.25;
|
|
5207
|
-
const crtMinX = -(Math.max(w_v / 2 + 0.15, p_v / 2 + pl_v / 2) + courtyardPadding);
|
|
5208
|
-
const crtMaxX = Math.max(p_v / 2 + 0.15, p_v / 2 + pl_v / 2) + courtyardPadding;
|
|
5209
|
-
const crtMinY = -(Math.max(h_v / 2, pw_v / 2) + courtyardPadding);
|
|
5210
|
-
const crtMaxY = Math.max(h_v / 2, pw_v / 2) + courtyardPadding;
|
|
5163
|
+
const courtyardWidthMm = 1.5;
|
|
5164
|
+
const courtyardHeightMm = 0.9;
|
|
5211
5165
|
const courtyard = {
|
|
5212
5166
|
type: "pcb_courtyard_rect",
|
|
5213
5167
|
pcb_courtyard_rect_id: "",
|
|
5214
5168
|
pcb_component_id: "",
|
|
5215
|
-
center: { x:
|
|
5216
|
-
width:
|
|
5217
|
-
height:
|
|
5169
|
+
center: { x: 0, y: 0 },
|
|
5170
|
+
width: courtyardWidthMm,
|
|
5171
|
+
height: courtyardHeightMm,
|
|
5218
5172
|
layer: "top"
|
|
5219
5173
|
};
|
|
5220
5174
|
return {
|
|
@@ -5298,23 +5252,15 @@ var sod882 = (raw_params) => {
|
|
|
5298
5252
|
stroke_width: 0.1,
|
|
5299
5253
|
pcb_silkscreen_path_id: ""
|
|
5300
5254
|
};
|
|
5301
|
-
const
|
|
5302
|
-
const
|
|
5303
|
-
const pw_v = length32.parse(parameters.pw);
|
|
5304
|
-
const h_v = length32.parse(parameters.h);
|
|
5305
|
-
const w_v = length32.parse(parameters.w);
|
|
5306
|
-
const courtyardPadding = 0.25;
|
|
5307
|
-
const crtMinX = -(Math.max(w_v / 2 + 0.2, p_v / 2 + pl_v / 2) + courtyardPadding);
|
|
5308
|
-
const crtMaxX = Math.max(p_v / 2 + 0.2, p_v / 2 + pl_v / 2) + courtyardPadding;
|
|
5309
|
-
const crtMinY = -(Math.max(h_v / 2 + 0.2, pw_v / 2) + courtyardPadding);
|
|
5310
|
-
const crtMaxY = Math.max(h_v / 2 + 0.2, pw_v / 2) + courtyardPadding;
|
|
5255
|
+
const courtyardWidthMm = 1.6;
|
|
5256
|
+
const courtyardHeightMm = 1.2;
|
|
5311
5257
|
const courtyard = {
|
|
5312
5258
|
type: "pcb_courtyard_rect",
|
|
5313
5259
|
pcb_courtyard_rect_id: "",
|
|
5314
5260
|
pcb_component_id: "",
|
|
5315
|
-
center: { x:
|
|
5316
|
-
width:
|
|
5317
|
-
height:
|
|
5261
|
+
center: { x: 0, y: 0 },
|
|
5262
|
+
width: courtyardWidthMm,
|
|
5263
|
+
height: courtyardHeightMm,
|
|
5318
5264
|
layer: "top"
|
|
5319
5265
|
};
|
|
5320
5266
|
return {
|
|
@@ -5398,23 +5344,15 @@ var sod323f = (raw_params) => {
|
|
|
5398
5344
|
stroke_width: 0.1,
|
|
5399
5345
|
pcb_silkscreen_path_id: ""
|
|
5400
5346
|
};
|
|
5401
|
-
const
|
|
5402
|
-
const
|
|
5403
|
-
const h_v = length33.parse(parameters.h);
|
|
5404
|
-
const w_v = length33.parse(parameters.w);
|
|
5405
|
-
const ps_v = length33.parse(parameters.pad_spacing);
|
|
5406
|
-
const courtyardPadding = 0.25;
|
|
5407
|
-
const crtMinX = -(Math.max(w_v / 2 + 0.2, ps_v / 2 + pl_v / 2) + courtyardPadding);
|
|
5408
|
-
const crtMaxX = ps_v / 2 + pl_v / 2 + courtyardPadding;
|
|
5409
|
-
const crtMinY = -(Math.max(h_v / 2, pw_v / 2) + courtyardPadding);
|
|
5410
|
-
const crtMaxY = Math.max(h_v / 2, pw_v / 2) + courtyardPadding;
|
|
5347
|
+
const courtyardWidthMm = 3.2;
|
|
5348
|
+
const courtyardHeightMm = 1.9;
|
|
5411
5349
|
const courtyard = {
|
|
5412
5350
|
type: "pcb_courtyard_rect",
|
|
5413
5351
|
pcb_courtyard_rect_id: "",
|
|
5414
5352
|
pcb_component_id: "",
|
|
5415
|
-
center: { x:
|
|
5416
|
-
width:
|
|
5417
|
-
height:
|
|
5353
|
+
center: { x: 0, y: 0 },
|
|
5354
|
+
width: courtyardWidthMm,
|
|
5355
|
+
height: courtyardHeightMm,
|
|
5418
5356
|
layer: "top"
|
|
5419
5357
|
};
|
|
5420
5358
|
return {
|
|
@@ -5498,23 +5436,15 @@ var sod123f = (raw_params) => {
|
|
|
5498
5436
|
stroke_width: 0.1,
|
|
5499
5437
|
pcb_silkscreen_path_id: ""
|
|
5500
5438
|
};
|
|
5501
|
-
const
|
|
5502
|
-
const
|
|
5503
|
-
const pw_v = length34.parse(parameters.pw);
|
|
5504
|
-
const h_v = length34.parse(parameters.h);
|
|
5505
|
-
const w_v = length34.parse(parameters.w);
|
|
5506
|
-
const courtyardPadding = 0.25;
|
|
5507
|
-
const crtMinX = -(Math.max(w_v / 2 + 0.2, p_v / 2 + pl_v / 2) + courtyardPadding);
|
|
5508
|
-
const crtMaxX = p_v / 2 + pl_v / 2 + courtyardPadding;
|
|
5509
|
-
const crtMinY = -(Math.max(h_v / 2, pw_v / 2) + courtyardPadding);
|
|
5510
|
-
const crtMaxY = Math.max(h_v / 2, pw_v / 2) + courtyardPadding;
|
|
5439
|
+
const courtyardWidthMm = 4.4;
|
|
5440
|
+
const courtyardHeightMm = 2.3;
|
|
5511
5441
|
const courtyard = {
|
|
5512
5442
|
type: "pcb_courtyard_rect",
|
|
5513
5443
|
pcb_courtyard_rect_id: "",
|
|
5514
5444
|
pcb_component_id: "",
|
|
5515
|
-
center: { x:
|
|
5516
|
-
width:
|
|
5517
|
-
height:
|
|
5445
|
+
center: { x: 0, y: 0 },
|
|
5446
|
+
width: courtyardWidthMm,
|
|
5447
|
+
height: courtyardHeightMm,
|
|
5518
5448
|
layer: "top"
|
|
5519
5449
|
};
|
|
5520
5450
|
return {
|
|
@@ -5598,23 +5528,15 @@ var sod123fl = (raw_params) => {
|
|
|
5598
5528
|
stroke_width: 0.1,
|
|
5599
5529
|
pcb_silkscreen_path_id: ""
|
|
5600
5530
|
};
|
|
5601
|
-
const
|
|
5602
|
-
const
|
|
5603
|
-
const pw_v = length35.parse(parameters.pw);
|
|
5604
|
-
const h_v = length35.parse(parameters.h);
|
|
5605
|
-
const w_v = length35.parse(parameters.w);
|
|
5606
|
-
const courtyardPadding = 0.25;
|
|
5607
|
-
const crtMinX = -(Math.max(w_v / 2 + 0.2, p_v / 2 + pl_v / 2) + courtyardPadding);
|
|
5608
|
-
const crtMaxX = p_v / 2 + pl_v / 2 + courtyardPadding;
|
|
5609
|
-
const crtMinY = -(Math.max(h_v / 2, pw_v / 2) + courtyardPadding);
|
|
5610
|
-
const crtMaxY = Math.max(h_v / 2, pw_v / 2) + courtyardPadding;
|
|
5531
|
+
const courtyardWidthMm = 4.9;
|
|
5532
|
+
const courtyardHeightMm = 2.7;
|
|
5611
5533
|
const courtyard = {
|
|
5612
5534
|
type: "pcb_courtyard_rect",
|
|
5613
5535
|
pcb_courtyard_rect_id: "",
|
|
5614
5536
|
pcb_component_id: "",
|
|
5615
|
-
center: { x:
|
|
5616
|
-
width:
|
|
5617
|
-
height:
|
|
5537
|
+
center: { x: 0, y: 0 },
|
|
5538
|
+
width: courtyardWidthMm,
|
|
5539
|
+
height: courtyardHeightMm,
|
|
5618
5540
|
layer: "top"
|
|
5619
5541
|
};
|
|
5620
5542
|
return {
|
|
@@ -5698,23 +5620,15 @@ var sod723 = (raw_params) => {
|
|
|
5698
5620
|
stroke_width: 0.1,
|
|
5699
5621
|
pcb_silkscreen_path_id: ""
|
|
5700
5622
|
};
|
|
5701
|
-
const
|
|
5702
|
-
const
|
|
5703
|
-
const pw_v = length36.parse(parameters.pw);
|
|
5704
|
-
const h_v = length36.parse(parameters.h);
|
|
5705
|
-
const w_v = length36.parse(parameters.w);
|
|
5706
|
-
const courtyardPadding = 0.25;
|
|
5707
|
-
const crtMinX = -(Math.max(w_v / 2 + 0.1, p_v / 2 + pl_v / 2) + courtyardPadding);
|
|
5708
|
-
const crtMaxX = p_v / 2 + pl_v / 2 + courtyardPadding;
|
|
5709
|
-
const crtMinY = -(Math.max(h_v / 2, pw_v / 2) + courtyardPadding);
|
|
5710
|
-
const crtMaxY = Math.max(h_v / 2, pw_v / 2) + courtyardPadding;
|
|
5623
|
+
const courtyardWidthMm = 2.3;
|
|
5624
|
+
const courtyardHeightMm = 1.5;
|
|
5711
5625
|
const courtyard = {
|
|
5712
5626
|
type: "pcb_courtyard_rect",
|
|
5713
5627
|
pcb_courtyard_rect_id: "",
|
|
5714
5628
|
pcb_component_id: "",
|
|
5715
|
-
center: { x:
|
|
5716
|
-
width:
|
|
5717
|
-
height:
|
|
5629
|
+
center: { x: 0, y: 0 },
|
|
5630
|
+
width: courtyardWidthMm,
|
|
5631
|
+
height: courtyardHeightMm,
|
|
5718
5632
|
layer: "top"
|
|
5719
5633
|
};
|
|
5720
5634
|
return {
|
|
@@ -5798,23 +5712,15 @@ var sod128 = (raw_params) => {
|
|
|
5798
5712
|
stroke_width: 0.1,
|
|
5799
5713
|
pcb_silkscreen_path_id: ""
|
|
5800
5714
|
};
|
|
5801
|
-
const
|
|
5802
|
-
const
|
|
5803
|
-
const pw_v = length37.parse(parameters.pw);
|
|
5804
|
-
const h_v = length37.parse(parameters.h);
|
|
5805
|
-
const w_v = length37.parse(parameters.w);
|
|
5806
|
-
const courtyardPadding = 0.25;
|
|
5807
|
-
const crtMinX = -(Math.max(w_v / 2 + 0.2, p_v / 2 + pl_v / 2) + courtyardPadding);
|
|
5808
|
-
const crtMaxX = p_v / 2 + pl_v / 2 + courtyardPadding;
|
|
5809
|
-
const crtMinY = -(Math.max(h_v / 2, pw_v / 2) + courtyardPadding);
|
|
5810
|
-
const crtMaxY = Math.max(h_v / 2, pw_v / 2) + courtyardPadding;
|
|
5715
|
+
const courtyardWidthMm = 6.3;
|
|
5716
|
+
const courtyardHeightMm = 3;
|
|
5811
5717
|
const courtyard = {
|
|
5812
5718
|
type: "pcb_courtyard_rect",
|
|
5813
5719
|
pcb_courtyard_rect_id: "",
|
|
5814
5720
|
pcb_component_id: "",
|
|
5815
|
-
center: { x:
|
|
5816
|
-
width:
|
|
5817
|
-
height:
|
|
5721
|
+
center: { x: 0, y: 0 },
|
|
5722
|
+
width: courtyardWidthMm,
|
|
5723
|
+
height: courtyardHeightMm,
|
|
5818
5724
|
layer: "top"
|
|
5819
5725
|
};
|
|
5820
5726
|
return {
|
|
@@ -6322,23 +6228,15 @@ var sod882d = (raw_params) => {
|
|
|
6322
6228
|
stroke_width: 0.1,
|
|
6323
6229
|
pcb_silkscreen_path_id: ""
|
|
6324
6230
|
};
|
|
6325
|
-
const
|
|
6326
|
-
const
|
|
6327
|
-
const pw_v = length41.parse(parameters.pw);
|
|
6328
|
-
const h_v = length41.parse(parameters.h);
|
|
6329
|
-
const w_v = length41.parse(parameters.w);
|
|
6330
|
-
const courtyardPadding = 0.25;
|
|
6331
|
-
const crtMinX = -(Math.max(w_v / 2, p_v / 2 + pl_v / 2) + courtyardPadding);
|
|
6332
|
-
const crtMaxX = Math.max(p_v / 2 + 0.1, p_v / 2 + pl_v / 2) + courtyardPadding;
|
|
6333
|
-
const crtMinY = -(Math.max(h_v / 2, pw_v / 2) + courtyardPadding);
|
|
6334
|
-
const crtMaxY = Math.max(h_v / 2, pw_v / 2) + courtyardPadding;
|
|
6231
|
+
const courtyardWidthMm = 1.8;
|
|
6232
|
+
const courtyardHeightMm = 1.2;
|
|
6335
6233
|
const courtyard = {
|
|
6336
6234
|
type: "pcb_courtyard_rect",
|
|
6337
6235
|
pcb_courtyard_rect_id: "",
|
|
6338
6236
|
pcb_component_id: "",
|
|
6339
|
-
center: { x:
|
|
6340
|
-
width:
|
|
6341
|
-
height:
|
|
6237
|
+
center: { x: 0, y: 0 },
|
|
6238
|
+
width: courtyardWidthMm,
|
|
6239
|
+
height: courtyardHeightMm,
|
|
6342
6240
|
layer: "top"
|
|
6343
6241
|
};
|
|
6344
6242
|
return {
|
|
@@ -6622,22 +6520,15 @@ var sma = (raw_params) => {
|
|
|
6622
6520
|
stroke_width: 0.1,
|
|
6623
6521
|
pcb_silkscreen_path_id: ""
|
|
6624
6522
|
};
|
|
6625
|
-
const
|
|
6626
|
-
const
|
|
6627
|
-
const h_val = length44.parse(parameters.h);
|
|
6628
|
-
const w_val = length44.parse(parameters.w);
|
|
6629
|
-
const courtyardPadding = 0.25;
|
|
6630
|
-
const crtMinX = -(w_val / 2 + 0.5 + courtyardPadding);
|
|
6631
|
-
const crtMaxX = p_val / 2 + pl_val / 2 + courtyardPadding;
|
|
6632
|
-
const crtMinY = -(h_val / 2 + courtyardPadding);
|
|
6633
|
-
const crtMaxY = h_val / 2 + courtyardPadding;
|
|
6523
|
+
const courtyardWidthMm = 7;
|
|
6524
|
+
const courtyardHeightMm = 3.5;
|
|
6634
6525
|
const courtyard = {
|
|
6635
6526
|
type: "pcb_courtyard_rect",
|
|
6636
6527
|
pcb_courtyard_rect_id: "",
|
|
6637
6528
|
pcb_component_id: "",
|
|
6638
|
-
center: { x:
|
|
6639
|
-
width:
|
|
6640
|
-
height:
|
|
6529
|
+
center: { x: 0, y: 0 },
|
|
6530
|
+
width: courtyardWidthMm,
|
|
6531
|
+
height: courtyardHeightMm,
|
|
6641
6532
|
layer: "top"
|
|
6642
6533
|
};
|
|
6643
6534
|
return {
|
|
@@ -6720,23 +6611,15 @@ var smf = (raw_params) => {
|
|
|
6720
6611
|
stroke_width: 0.1,
|
|
6721
6612
|
pcb_silkscreen_path_id: ""
|
|
6722
6613
|
};
|
|
6723
|
-
const
|
|
6724
|
-
const
|
|
6725
|
-
const pw_v = length45.parse(parameters.pw);
|
|
6726
|
-
const h_v = length45.parse(parameters.h);
|
|
6727
|
-
const w_v = length45.parse(parameters.w);
|
|
6728
|
-
const courtyardPadding = 0.25;
|
|
6729
|
-
const crtMinX = -(Math.max(w_v / 2, p_v / 2 + pl_v / 2) + courtyardPadding);
|
|
6730
|
-
const crtMaxX = p_v / 2 + pl_v / 2 + courtyardPadding;
|
|
6731
|
-
const crtMinY = -(Math.max(h_v / 2, pw_v / 2) + courtyardPadding);
|
|
6732
|
-
const crtMaxY = Math.max(h_v / 2, pw_v / 2) + courtyardPadding;
|
|
6614
|
+
const courtyardWidthMm = 4.7;
|
|
6615
|
+
const courtyardHeightMm = 2.3;
|
|
6733
6616
|
const courtyard = {
|
|
6734
6617
|
type: "pcb_courtyard_rect",
|
|
6735
6618
|
pcb_courtyard_rect_id: "",
|
|
6736
6619
|
pcb_component_id: "",
|
|
6737
|
-
center: { x:
|
|
6738
|
-
width:
|
|
6739
|
-
height:
|
|
6620
|
+
center: { x: 0, y: 0 },
|
|
6621
|
+
width: courtyardWidthMm,
|
|
6622
|
+
height: courtyardHeightMm,
|
|
6740
6623
|
layer: "top"
|
|
6741
6624
|
};
|
|
6742
6625
|
return {
|
|
@@ -6820,23 +6703,15 @@ var smb = (raw_params) => {
|
|
|
6820
6703
|
stroke_width: 0.1,
|
|
6821
6704
|
pcb_silkscreen_path_id: ""
|
|
6822
6705
|
};
|
|
6823
|
-
const
|
|
6824
|
-
const
|
|
6825
|
-
const pw_v = length46.parse(parameters.pw);
|
|
6826
|
-
const h_v = length46.parse(parameters.h);
|
|
6827
|
-
const w_v = length46.parse(parameters.w);
|
|
6828
|
-
const courtyardPadding = 0.25;
|
|
6829
|
-
const crtMinX = -(Math.max(w_v / 2 + 0.1, p_v / 2 + pl_v / 2) + courtyardPadding);
|
|
6830
|
-
const crtMaxX = p_v / 2 + pl_v / 2 + courtyardPadding;
|
|
6831
|
-
const crtMinY = -(Math.max(h_v / 2, pw_v / 2) + courtyardPadding);
|
|
6832
|
-
const crtMaxY = Math.max(h_v / 2, pw_v / 2) + courtyardPadding;
|
|
6706
|
+
const courtyardWidthMm = 7.3;
|
|
6707
|
+
const courtyardHeightMm = 4.5;
|
|
6833
6708
|
const courtyard = {
|
|
6834
6709
|
type: "pcb_courtyard_rect",
|
|
6835
6710
|
pcb_courtyard_rect_id: "",
|
|
6836
6711
|
pcb_component_id: "",
|
|
6837
|
-
center: { x:
|
|
6838
|
-
width:
|
|
6839
|
-
height:
|
|
6712
|
+
center: { x: 0, y: 0 },
|
|
6713
|
+
width: courtyardWidthMm,
|
|
6714
|
+
height: courtyardHeightMm,
|
|
6840
6715
|
layer: "top"
|
|
6841
6716
|
};
|
|
6842
6717
|
return {
|
|
@@ -6916,23 +6791,15 @@ var smc = (raw_params) => {
|
|
|
6916
6791
|
stroke_width: 0.1,
|
|
6917
6792
|
pcb_silkscreen_path_id: ""
|
|
6918
6793
|
};
|
|
6919
|
-
const
|
|
6920
|
-
const
|
|
6921
|
-
const pw_v = length47.parse(parameters.pw);
|
|
6922
|
-
const h_v = length47.parse(parameters.h);
|
|
6923
|
-
const w_v = length47.parse(parameters.w);
|
|
6924
|
-
const courtyardPadding = 0.25;
|
|
6925
|
-
const crtMinX = -(Math.max(w_v / 2 + 0.8, p_v / 2 + pl_v / 2) + courtyardPadding);
|
|
6926
|
-
const crtMaxX = p_v / 2 + pl_v / 2 + courtyardPadding;
|
|
6927
|
-
const crtMinY = -(Math.max(h_v / 2 - 0.8, pw_v / 2) + courtyardPadding);
|
|
6928
|
-
const crtMaxY = Math.max(h_v / 2 - 0.8, pw_v / 2) + courtyardPadding;
|
|
6794
|
+
const courtyardWidthMm = 9.8;
|
|
6795
|
+
const courtyardHeightMm = 6.7;
|
|
6929
6796
|
const courtyard = {
|
|
6930
6797
|
type: "pcb_courtyard_rect",
|
|
6931
6798
|
pcb_courtyard_rect_id: "",
|
|
6932
6799
|
pcb_component_id: "",
|
|
6933
|
-
center: { x:
|
|
6934
|
-
width:
|
|
6935
|
-
height:
|
|
6800
|
+
center: { x: 0, y: 0 },
|
|
6801
|
+
width: courtyardWidthMm,
|
|
6802
|
+
height: courtyardHeightMm,
|
|
6936
6803
|
layer: "top"
|
|
6937
6804
|
};
|
|
6938
6805
|
return {
|
|
@@ -7785,23 +7652,15 @@ var sod110 = (raw_params) => {
|
|
|
7785
7652
|
stroke_width: 0.1,
|
|
7786
7653
|
pcb_silkscreen_path_id: ""
|
|
7787
7654
|
};
|
|
7788
|
-
const
|
|
7789
|
-
const
|
|
7790
|
-
const pw_v = length49.parse(parameters.pw);
|
|
7791
|
-
const h_v = length49.parse(parameters.h);
|
|
7792
|
-
const w_v = length49.parse(parameters.w);
|
|
7793
|
-
const courtyardPadding = 0.25;
|
|
7794
|
-
const crtMinX = -(Math.max(w_v / 2, p_v / 2 + pl_v / 2) + courtyardPadding);
|
|
7795
|
-
const crtMaxX = p_v / 2 + pl_v / 2 + courtyardPadding;
|
|
7796
|
-
const crtMinY = -(Math.max(h_v / 2, pw_v / 2) + courtyardPadding);
|
|
7797
|
-
const crtMaxY = Math.max(h_v / 2, pw_v / 2) + courtyardPadding;
|
|
7655
|
+
const courtyardWidthMm = 3.2;
|
|
7656
|
+
const courtyardHeightMm = 2;
|
|
7798
7657
|
const courtyard = {
|
|
7799
7658
|
type: "pcb_courtyard_rect",
|
|
7800
7659
|
pcb_courtyard_rect_id: "",
|
|
7801
7660
|
pcb_component_id: "",
|
|
7802
|
-
center: { x:
|
|
7803
|
-
width:
|
|
7804
|
-
height:
|
|
7661
|
+
center: { x: 0, y: 0 },
|
|
7662
|
+
width: courtyardWidthMm,
|
|
7663
|
+
height: courtyardHeightMm,
|
|
7805
7664
|
layer: "top"
|
|
7806
7665
|
};
|
|
7807
7666
|
return {
|
|
@@ -8182,23 +8041,15 @@ var sod323w = (raw_params) => {
|
|
|
8182
8041
|
stroke_width: 0.1,
|
|
8183
8042
|
pcb_silkscreen_path_id: ""
|
|
8184
8043
|
};
|
|
8185
|
-
const
|
|
8186
|
-
const
|
|
8187
|
-
const h_v = length52.parse(parameters.h);
|
|
8188
|
-
const w_v = length52.parse(parameters.w);
|
|
8189
|
-
const ps_v = length52.parse(parameters.pad_spacing);
|
|
8190
|
-
const courtyardPadding = 0.25;
|
|
8191
|
-
const crtMinX = -(Math.max(w_v / 2 + 0.2, ps_v / 2 + pl_v / 2) + courtyardPadding);
|
|
8192
|
-
const crtMaxX = ps_v / 2 + pl_v / 2 + courtyardPadding;
|
|
8193
|
-
const crtMinY = -(Math.max(h_v / 2, pw_v / 2) + courtyardPadding);
|
|
8194
|
-
const crtMaxY = Math.max(h_v / 2, pw_v / 2) + courtyardPadding;
|
|
8044
|
+
const courtyardWidthMm = 4.3;
|
|
8045
|
+
const courtyardHeightMm = 2.15;
|
|
8195
8046
|
const courtyard = {
|
|
8196
8047
|
type: "pcb_courtyard_rect",
|
|
8197
8048
|
pcb_courtyard_rect_id: "",
|
|
8198
8049
|
pcb_component_id: "",
|
|
8199
|
-
center: { x:
|
|
8200
|
-
width:
|
|
8201
|
-
height:
|
|
8050
|
+
center: { x: 0, y: 0 },
|
|
8051
|
+
width: courtyardWidthMm,
|
|
8052
|
+
height: courtyardHeightMm,
|
|
8202
8053
|
layer: "top"
|
|
8203
8054
|
};
|
|
8204
8055
|
return {
|
|
@@ -8282,23 +8133,15 @@ var sod323fl = (raw_params) => {
|
|
|
8282
8133
|
stroke_width: 0.1,
|
|
8283
8134
|
pcb_silkscreen_path_id: ""
|
|
8284
8135
|
};
|
|
8285
|
-
const
|
|
8286
|
-
const
|
|
8287
|
-
const h_v = length53.parse(parameters.h);
|
|
8288
|
-
const w_v = length53.parse(parameters.w);
|
|
8289
|
-
const ps_v = length53.parse(parameters.pad_spacing);
|
|
8290
|
-
const courtyardPadding = 0.25;
|
|
8291
|
-
const crtMinX = -(Math.max(w_v / 2 + 0.2, ps_v / 2 + pl_v / 2) + courtyardPadding);
|
|
8292
|
-
const crtMaxX = ps_v / 2 + pl_v / 2 + courtyardPadding;
|
|
8293
|
-
const crtMinY = -(Math.max(h_v / 2, pw_v / 2) + courtyardPadding);
|
|
8294
|
-
const crtMaxY = Math.max(h_v / 2, pw_v / 2) + courtyardPadding;
|
|
8136
|
+
const courtyardWidthMm = 3.7;
|
|
8137
|
+
const courtyardHeightMm = 2.15;
|
|
8295
8138
|
const courtyard = {
|
|
8296
8139
|
type: "pcb_courtyard_rect",
|
|
8297
8140
|
pcb_courtyard_rect_id: "",
|
|
8298
8141
|
pcb_component_id: "",
|
|
8299
|
-
center: { x:
|
|
8300
|
-
width:
|
|
8301
|
-
height:
|
|
8142
|
+
center: { x: 0, y: 0 },
|
|
8143
|
+
width: courtyardWidthMm,
|
|
8144
|
+
height: courtyardHeightMm,
|
|
8302
8145
|
layer: "top"
|
|
8303
8146
|
};
|
|
8304
8147
|
return {
|
|
@@ -9267,23 +9110,15 @@ var smbf = (raw_params) => {
|
|
|
9267
9110
|
stroke_width: 0.1,
|
|
9268
9111
|
pcb_silkscreen_path_id: ""
|
|
9269
9112
|
};
|
|
9270
|
-
const
|
|
9271
|
-
const
|
|
9272
|
-
const pw_v = length59.parse(parameters.pw);
|
|
9273
|
-
const h_v = length59.parse(parameters.h);
|
|
9274
|
-
const w_v = length59.parse(parameters.w);
|
|
9275
|
-
const courtyardPadding = 0.25;
|
|
9276
|
-
const crtMinX = -(Math.max(w_v / 2 + 0.3, p_v / 2 + pl_v / 2) + courtyardPadding);
|
|
9277
|
-
const crtMaxX = p_v / 2 + pl_v / 2 + courtyardPadding;
|
|
9278
|
-
const crtMinY = -(Math.max(h_v / 2, pw_v / 2) + courtyardPadding);
|
|
9279
|
-
const crtMaxY = Math.max(h_v / 2, pw_v / 2) + courtyardPadding;
|
|
9113
|
+
const courtyardWidthMm = 7;
|
|
9114
|
+
const courtyardHeightMm = 3.5;
|
|
9280
9115
|
const courtyard = {
|
|
9281
9116
|
type: "pcb_courtyard_rect",
|
|
9282
9117
|
pcb_courtyard_rect_id: "",
|
|
9283
9118
|
pcb_component_id: "",
|
|
9284
|
-
center: { x:
|
|
9285
|
-
width:
|
|
9286
|
-
height:
|
|
9119
|
+
center: { x: 0, y: 0 },
|
|
9120
|
+
width: courtyardWidthMm,
|
|
9121
|
+
height: courtyardHeightMm,
|
|
9287
9122
|
layer: "top"
|
|
9288
9123
|
};
|
|
9289
9124
|
return {
|