circuit-json-to-tscircuit 0.0.36 → 0.0.38
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/assets/empty-board.json +57 -0
- package/assets/input-circuit-json.json +248 -59
- package/dist/{chunk-PIWUZ3WB.js → chunk-G5NSFWRY.js} +195 -67
- package/dist/cli/main.js +2 -2
- package/dist/lib/index.js +1 -1
- package/lib/generate-footprint-tsx/convert-smt-pads.ts +80 -5
- package/lib/get-board-using-template.ts +66 -0
- package/lib/index.ts +10 -0
- package/package.json +1 -1
- package/tests/__snapshots__/test16-support-pcb-smtpad-shapes-pcb.snap.svg +1 -1
- package/tests/__snapshots__/test19-support-board-conversion-pcb.snap.svg +1 -0
- package/tests/cli/cli-circuit-json-to-tsx.test.tsx +11 -3
- package/tests/test1-basic-circuit.test.tsx +13 -3
- package/tests/test16-support-pcb-smtpad-shapes.test.tsx +64 -9
- package/tests/test19-support-board-conversion.test.tsx +33 -0
- package/tests/test2-get-component-template.test.tsx +11 -4
- package/tests/test3-kicad-mod-circuit-json-example.test.tsx +29 -29
- package/tests/test4-support-silkscreen.test.tsx +2 -2
- package/tests/test5-pcb-cutout.test.tsx +2 -2
- package/tests/test8-support-courtyard.test.tsx +1 -1
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"type": "source_project_metadata",
|
|
4
|
+
"source_project_metadata_id": "source_project_metadata_0",
|
|
5
|
+
"software_used_string": "@tscircuit/core@0.0.1306"
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
"type": "source_group",
|
|
9
|
+
"source_group_id": "source_group_0",
|
|
10
|
+
"is_subcircuit": true,
|
|
11
|
+
"was_automatically_named": true,
|
|
12
|
+
"subcircuit_id": "subcircuit_source_group_0"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"type": "source_board",
|
|
16
|
+
"source_board_id": "source_board_0",
|
|
17
|
+
"source_group_id": "source_group_0"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"type": "schematic_group",
|
|
21
|
+
"schematic_group_id": "schematic_group_0",
|
|
22
|
+
"is_subcircuit": true,
|
|
23
|
+
"subcircuit_id": "subcircuit_source_group_0",
|
|
24
|
+
"name": "unnamed_board1",
|
|
25
|
+
"center": {
|
|
26
|
+
"x": 0,
|
|
27
|
+
"y": 0
|
|
28
|
+
},
|
|
29
|
+
"width": 0,
|
|
30
|
+
"height": 0,
|
|
31
|
+
"schematic_component_ids": [],
|
|
32
|
+
"source_group_id": "source_group_0",
|
|
33
|
+
"show_as_schematic_box": false
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"type": "pcb_board",
|
|
37
|
+
"pcb_board_id": "pcb_board_0",
|
|
38
|
+
"source_board_id": "source_board_0",
|
|
39
|
+
"center": {
|
|
40
|
+
"x": 0,
|
|
41
|
+
"y": 0
|
|
42
|
+
},
|
|
43
|
+
"thickness": 1.4,
|
|
44
|
+
"num_layers": 2,
|
|
45
|
+
"width": 20,
|
|
46
|
+
"height": 10,
|
|
47
|
+
"material": "fr4",
|
|
48
|
+
"min_trace_width": 0.1,
|
|
49
|
+
"min_via_hole_diameter": 0.2,
|
|
50
|
+
"min_via_pad_diameter": 0.3,
|
|
51
|
+
"min_via_hole_edge_to_via_hole_edge_clearance": 0.1,
|
|
52
|
+
"min_trace_to_pad_edge_clearance": 0.1,
|
|
53
|
+
"min_pad_edge_to_pad_edge_clearance": 0.1,
|
|
54
|
+
"min_plated_hole_drill_edge_to_drill_edge_clearance": 0.15,
|
|
55
|
+
"min_board_edge_clearance": 0.2
|
|
56
|
+
}
|
|
57
|
+
]
|
|
@@ -1,36 +1,44 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"type": "source_project_metadata",
|
|
4
|
+
"source_project_metadata_id": "source_project_metadata_0",
|
|
5
|
+
"software_used_string": "@tscircuit/core@0.0.1358"
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
"type": "source_group",
|
|
9
|
+
"source_group_id": "source_group_0",
|
|
10
|
+
"is_subcircuit": true,
|
|
11
|
+
"was_automatically_named": true,
|
|
12
|
+
"subcircuit_id": "subcircuit_source_group_0"
|
|
13
|
+
},
|
|
2
14
|
{
|
|
3
15
|
"type": "source_port",
|
|
4
16
|
"source_port_id": "source_port_0",
|
|
5
17
|
"name": "pin1",
|
|
6
18
|
"pin_number": 1,
|
|
7
|
-
"port_hints": ["
|
|
8
|
-
"source_component_id": "source_component_0"
|
|
19
|
+
"port_hints": ["pin1", "1"],
|
|
20
|
+
"source_component_id": "source_component_0",
|
|
21
|
+
"subcircuit_id": "subcircuit_source_group_0"
|
|
9
22
|
},
|
|
10
23
|
{
|
|
11
24
|
"type": "source_port",
|
|
12
25
|
"source_port_id": "source_port_1",
|
|
13
26
|
"name": "pin2",
|
|
14
27
|
"pin_number": 2,
|
|
15
|
-
"port_hints": ["
|
|
16
|
-
"source_component_id": "source_component_0"
|
|
28
|
+
"port_hints": ["pin2", "2"],
|
|
29
|
+
"source_component_id": "source_component_0",
|
|
30
|
+
"subcircuit_id": "subcircuit_source_group_0"
|
|
17
31
|
},
|
|
18
32
|
{
|
|
19
33
|
"type": "source_component",
|
|
20
34
|
"source_component_id": "source_component_0",
|
|
21
|
-
"ftype": "
|
|
22
|
-
"name": "
|
|
35
|
+
"ftype": "simple_chip",
|
|
36
|
+
"name": "unnamed_chip1",
|
|
37
|
+
"manufacturer_part_number": "A_0603WAF1002T5E",
|
|
23
38
|
"supplier_part_numbers": {
|
|
24
|
-
"jlcpcb": ["
|
|
39
|
+
"jlcpcb": ["C25804"]
|
|
25
40
|
},
|
|
26
|
-
"
|
|
27
|
-
"display_resistance": "1kΩ"
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"type": "source_group",
|
|
31
|
-
"source_group_id": "source_group_0",
|
|
32
|
-
"is_subcircuit": true,
|
|
33
|
-
"subcircuit_id": "subcircuit_source_group_0"
|
|
41
|
+
"source_group_id": "source_group_0"
|
|
34
42
|
},
|
|
35
43
|
{
|
|
36
44
|
"type": "schematic_component",
|
|
@@ -41,40 +49,92 @@
|
|
|
41
49
|
},
|
|
42
50
|
"rotation": 0,
|
|
43
51
|
"size": {
|
|
44
|
-
"width": 1.
|
|
45
|
-
"height": 0.
|
|
52
|
+
"width": 1.2000000000000002,
|
|
53
|
+
"height": 0.4
|
|
54
|
+
},
|
|
55
|
+
"pin_spacing": 0.2,
|
|
56
|
+
"port_labels": {
|
|
57
|
+
"pin1": "pin1",
|
|
58
|
+
"pin2": "pin2"
|
|
46
59
|
},
|
|
47
60
|
"source_component_id": "source_component_0",
|
|
48
|
-
"
|
|
49
|
-
|
|
61
|
+
"schematic_group_id": "schematic_group_0"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"type": "schematic_text",
|
|
65
|
+
"schematic_text_id": "schematic_text_0",
|
|
66
|
+
"text": "A_0603WAF1002T5E",
|
|
67
|
+
"schematic_component_id": "schematic_component_0",
|
|
68
|
+
"anchor": "left",
|
|
69
|
+
"rotation": 0,
|
|
70
|
+
"position": {
|
|
71
|
+
"x": -0.6000000000000001,
|
|
72
|
+
"y": -0.33
|
|
73
|
+
},
|
|
74
|
+
"color": "#006464",
|
|
75
|
+
"font_size": 0.18
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"type": "schematic_text",
|
|
79
|
+
"schematic_text_id": "schematic_text_1",
|
|
80
|
+
"text": "",
|
|
81
|
+
"schematic_component_id": "schematic_component_0",
|
|
82
|
+
"anchor": "left",
|
|
83
|
+
"rotation": 0,
|
|
84
|
+
"position": {
|
|
85
|
+
"x": -0.6000000000000001,
|
|
86
|
+
"y": 0.33
|
|
87
|
+
},
|
|
88
|
+
"color": "#006464",
|
|
89
|
+
"font_size": 0.18
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"type": "schematic_group",
|
|
93
|
+
"schematic_group_id": "schematic_group_0",
|
|
94
|
+
"is_subcircuit": true,
|
|
95
|
+
"subcircuit_id": "subcircuit_source_group_0",
|
|
96
|
+
"name": "unnamed_group1",
|
|
97
|
+
"center": {
|
|
98
|
+
"x": 0,
|
|
99
|
+
"y": 0
|
|
100
|
+
},
|
|
101
|
+
"width": 0,
|
|
102
|
+
"height": 0,
|
|
103
|
+
"schematic_component_ids": [],
|
|
104
|
+
"source_group_id": "source_group_0",
|
|
105
|
+
"show_as_schematic_box": false
|
|
50
106
|
},
|
|
51
107
|
{
|
|
52
108
|
"type": "schematic_port",
|
|
53
109
|
"schematic_port_id": "schematic_port_0",
|
|
54
110
|
"schematic_component_id": "schematic_component_0",
|
|
55
111
|
"center": {
|
|
56
|
-
"x": -
|
|
57
|
-
"y": 0
|
|
112
|
+
"x": -1,
|
|
113
|
+
"y": 0
|
|
58
114
|
},
|
|
59
115
|
"source_port_id": "source_port_0",
|
|
60
116
|
"facing_direction": "left",
|
|
61
117
|
"distance_from_component_edge": 0.4,
|
|
118
|
+
"side_of_component": "left",
|
|
62
119
|
"pin_number": 1,
|
|
63
|
-
"
|
|
120
|
+
"true_ccw_index": 0,
|
|
121
|
+
"is_connected": false
|
|
64
122
|
},
|
|
65
123
|
{
|
|
66
124
|
"type": "schematic_port",
|
|
67
125
|
"schematic_port_id": "schematic_port_1",
|
|
68
126
|
"schematic_component_id": "schematic_component_0",
|
|
69
127
|
"center": {
|
|
70
|
-
"x":
|
|
71
|
-
"y": 0
|
|
128
|
+
"x": 1,
|
|
129
|
+
"y": 0
|
|
72
130
|
},
|
|
73
131
|
"source_port_id": "source_port_1",
|
|
74
132
|
"facing_direction": "right",
|
|
75
133
|
"distance_from_component_edge": 0.4,
|
|
134
|
+
"side_of_component": "right",
|
|
76
135
|
"pin_number": 2,
|
|
77
|
-
"
|
|
136
|
+
"true_ccw_index": 1,
|
|
137
|
+
"is_connected": false
|
|
78
138
|
},
|
|
79
139
|
{
|
|
80
140
|
"type": "pcb_component",
|
|
@@ -83,78 +143,197 @@
|
|
|
83
143
|
"x": 0,
|
|
84
144
|
"y": 0
|
|
85
145
|
},
|
|
86
|
-
"width":
|
|
87
|
-
"height": 0.
|
|
146
|
+
"width": 2.3132034,
|
|
147
|
+
"height": 0.8640064,
|
|
88
148
|
"layer": "top",
|
|
89
149
|
"rotation": 0,
|
|
90
150
|
"source_component_id": "source_component_0",
|
|
91
|
-
"subcircuit_id": "subcircuit_source_group_0"
|
|
151
|
+
"subcircuit_id": "subcircuit_source_group_0",
|
|
152
|
+
"do_not_place": false,
|
|
153
|
+
"obstructs_within_bounds": true,
|
|
154
|
+
"is_allowed_to_be_off_board": false,
|
|
155
|
+
"pcb_group_id": "pcb_group_0"
|
|
92
156
|
},
|
|
93
157
|
{
|
|
94
|
-
"type": "
|
|
95
|
-
"
|
|
158
|
+
"type": "pcb_group",
|
|
159
|
+
"pcb_group_id": "pcb_group_0",
|
|
160
|
+
"is_subcircuit": true,
|
|
161
|
+
"subcircuit_id": "subcircuit_source_group_0",
|
|
162
|
+
"name": "unnamed_group1",
|
|
163
|
+
"anchor_position": {
|
|
164
|
+
"x": 0,
|
|
165
|
+
"y": 0
|
|
166
|
+
},
|
|
96
167
|
"center": {
|
|
97
168
|
"x": 0,
|
|
98
169
|
"y": 0
|
|
99
170
|
},
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
"
|
|
171
|
+
"width": 2.3132034,
|
|
172
|
+
"height": 0.8640064,
|
|
173
|
+
"pcb_component_ids": [],
|
|
174
|
+
"source_group_id": "source_group_0",
|
|
175
|
+
"anchor_alignment": null
|
|
104
176
|
},
|
|
105
177
|
{
|
|
106
178
|
"type": "pcb_smtpad",
|
|
107
179
|
"pcb_smtpad_id": "pcb_smtpad_0",
|
|
108
180
|
"pcb_component_id": "pcb_component_0",
|
|
109
|
-
"pcb_port_id": "
|
|
181
|
+
"pcb_port_id": "pcb_port_1",
|
|
110
182
|
"layer": "top",
|
|
111
183
|
"shape": "rect",
|
|
112
|
-
"width": 0.
|
|
113
|
-
"height": 0.
|
|
114
|
-
"port_hints": ["
|
|
115
|
-
"
|
|
184
|
+
"width": 0.8064754,
|
|
185
|
+
"height": 0.8640064,
|
|
186
|
+
"port_hints": ["pin2"],
|
|
187
|
+
"is_covered_with_solder_mask": false,
|
|
188
|
+
"x": 0.753364,
|
|
116
189
|
"y": 0,
|
|
117
|
-
"subcircuit_id": "subcircuit_source_group_0"
|
|
190
|
+
"subcircuit_id": "subcircuit_source_group_0",
|
|
191
|
+
"pcb_group_id": "pcb_group_0"
|
|
118
192
|
},
|
|
119
193
|
{
|
|
120
194
|
"type": "pcb_solder_paste",
|
|
121
195
|
"pcb_solder_paste_id": "pcb_solder_paste_0",
|
|
122
196
|
"layer": "top",
|
|
123
197
|
"shape": "rect",
|
|
124
|
-
"width": 0.
|
|
125
|
-
"height": 0.
|
|
126
|
-
"x":
|
|
198
|
+
"width": 0.56453278,
|
|
199
|
+
"height": 0.60480448,
|
|
200
|
+
"x": 0.753364,
|
|
127
201
|
"y": 0,
|
|
128
202
|
"pcb_component_id": "pcb_component_0",
|
|
129
203
|
"pcb_smtpad_id": "pcb_smtpad_0",
|
|
130
|
-
"subcircuit_id": "subcircuit_source_group_0"
|
|
204
|
+
"subcircuit_id": "subcircuit_source_group_0",
|
|
205
|
+
"pcb_group_id": "pcb_group_0"
|
|
131
206
|
},
|
|
132
207
|
{
|
|
133
208
|
"type": "pcb_smtpad",
|
|
134
209
|
"pcb_smtpad_id": "pcb_smtpad_1",
|
|
135
210
|
"pcb_component_id": "pcb_component_0",
|
|
136
|
-
"pcb_port_id": "
|
|
211
|
+
"pcb_port_id": "pcb_port_0",
|
|
137
212
|
"layer": "top",
|
|
138
213
|
"shape": "rect",
|
|
139
|
-
"width": 0.
|
|
140
|
-
"height": 0.
|
|
141
|
-
"port_hints": ["
|
|
142
|
-
"
|
|
214
|
+
"width": 0.8064754,
|
|
215
|
+
"height": 0.8640064,
|
|
216
|
+
"port_hints": ["pin1"],
|
|
217
|
+
"is_covered_with_solder_mask": false,
|
|
218
|
+
"x": -0.753364,
|
|
143
219
|
"y": 0,
|
|
144
|
-
"subcircuit_id": "subcircuit_source_group_0"
|
|
220
|
+
"subcircuit_id": "subcircuit_source_group_0",
|
|
221
|
+
"pcb_group_id": "pcb_group_0"
|
|
145
222
|
},
|
|
146
223
|
{
|
|
147
224
|
"type": "pcb_solder_paste",
|
|
148
225
|
"pcb_solder_paste_id": "pcb_solder_paste_1",
|
|
149
226
|
"layer": "top",
|
|
150
227
|
"shape": "rect",
|
|
151
|
-
"width": 0.
|
|
152
|
-
"height": 0.
|
|
153
|
-
"x": 0.
|
|
228
|
+
"width": 0.56453278,
|
|
229
|
+
"height": 0.60480448,
|
|
230
|
+
"x": -0.753364,
|
|
154
231
|
"y": 0,
|
|
155
232
|
"pcb_component_id": "pcb_component_0",
|
|
156
233
|
"pcb_smtpad_id": "pcb_smtpad_1",
|
|
157
|
-
"subcircuit_id": "subcircuit_source_group_0"
|
|
234
|
+
"subcircuit_id": "subcircuit_source_group_0",
|
|
235
|
+
"pcb_group_id": "pcb_group_0"
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"type": "pcb_silkscreen_path",
|
|
239
|
+
"pcb_silkscreen_path_id": "pcb_silkscreen_path_0",
|
|
240
|
+
"pcb_component_id": "pcb_component_0",
|
|
241
|
+
"layer": "top",
|
|
242
|
+
"route": [
|
|
243
|
+
{
|
|
244
|
+
"x": 0.42621199999996406,
|
|
245
|
+
"y": -0.6606031999999686
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"x": 1.3850873999999749,
|
|
249
|
+
"y": -0.6606031999999686
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"x": 1.3850873999999749,
|
|
253
|
+
"y": 0.6606031999999686
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"x": 0.42621199999996406,
|
|
257
|
+
"y": 0.6606031999999686
|
|
258
|
+
}
|
|
259
|
+
],
|
|
260
|
+
"stroke_width": 0.1,
|
|
261
|
+
"subcircuit_id": "subcircuit_source_group_0",
|
|
262
|
+
"pcb_group_id": "pcb_group_0"
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"type": "pcb_silkscreen_path",
|
|
266
|
+
"pcb_silkscreen_path_id": "pcb_silkscreen_path_1",
|
|
267
|
+
"pcb_component_id": "pcb_component_0",
|
|
268
|
+
"layer": "top",
|
|
269
|
+
"route": [
|
|
270
|
+
{
|
|
271
|
+
"x": -0.42621200000007775,
|
|
272
|
+
"y": -0.6606031999999686
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"x": -1.3850874000000886,
|
|
276
|
+
"y": -0.6606031999999686
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"x": -1.3850874000000886,
|
|
280
|
+
"y": 0.6606031999999686
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"x": -0.42621200000007775,
|
|
284
|
+
"y": 0.6606031999999686
|
|
285
|
+
}
|
|
286
|
+
],
|
|
287
|
+
"stroke_width": 0.1,
|
|
288
|
+
"subcircuit_id": "subcircuit_source_group_0",
|
|
289
|
+
"pcb_group_id": "pcb_group_0"
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"type": "pcb_silkscreen_text",
|
|
293
|
+
"pcb_silkscreen_text_id": "pcb_silkscreen_text_0",
|
|
294
|
+
"anchor_alignment": "center",
|
|
295
|
+
"anchor_position": {
|
|
296
|
+
"x": -0.0127,
|
|
297
|
+
"y": 1.6604
|
|
298
|
+
},
|
|
299
|
+
"font": "tscircuit2024",
|
|
300
|
+
"font_size": 1,
|
|
301
|
+
"layer": "top",
|
|
302
|
+
"text": "unnamed_chip1",
|
|
303
|
+
"ccw_rotation": 0,
|
|
304
|
+
"pcb_component_id": "pcb_component_0",
|
|
305
|
+
"subcircuit_id": "subcircuit_source_group_0",
|
|
306
|
+
"pcb_group_id": "pcb_group_0"
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"type": "pcb_courtyard_outline",
|
|
310
|
+
"pcb_courtyard_outline_id": "pcb_courtyard_outline_0",
|
|
311
|
+
"pcb_component_id": "pcb_component_0",
|
|
312
|
+
"layer": "top",
|
|
313
|
+
"outline": [
|
|
314
|
+
{
|
|
315
|
+
"x": -1.647000000000162,
|
|
316
|
+
"y": 0.9103999999999814
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"x": 1.6216000000000577,
|
|
320
|
+
"y": 0.9103999999999814
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"x": 1.6216000000000577,
|
|
324
|
+
"y": -0.9103999999998678
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
"x": -1.647000000000162,
|
|
328
|
+
"y": -0.9103999999998678
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
"x": -1.647000000000162,
|
|
332
|
+
"y": 0.9103999999999814
|
|
333
|
+
}
|
|
334
|
+
],
|
|
335
|
+
"subcircuit_id": "subcircuit_source_group_0",
|
|
336
|
+
"pcb_group_id": "pcb_group_0"
|
|
158
337
|
},
|
|
159
338
|
{
|
|
160
339
|
"type": "pcb_port",
|
|
@@ -162,7 +341,8 @@
|
|
|
162
341
|
"pcb_component_id": "pcb_component_0",
|
|
163
342
|
"layers": ["top"],
|
|
164
343
|
"subcircuit_id": "subcircuit_source_group_0",
|
|
165
|
-
"
|
|
344
|
+
"pcb_group_id": "pcb_group_0",
|
|
345
|
+
"x": -0.753364,
|
|
166
346
|
"y": 0,
|
|
167
347
|
"source_port_id": "source_port_0"
|
|
168
348
|
},
|
|
@@ -172,7 +352,8 @@
|
|
|
172
352
|
"pcb_component_id": "pcb_component_0",
|
|
173
353
|
"layers": ["top"],
|
|
174
354
|
"subcircuit_id": "subcircuit_source_group_0",
|
|
175
|
-
"
|
|
355
|
+
"pcb_group_id": "pcb_group_0",
|
|
356
|
+
"x": 0.753364,
|
|
176
357
|
"y": 0,
|
|
177
358
|
"source_port_id": "source_port_1"
|
|
178
359
|
},
|
|
@@ -182,15 +363,23 @@
|
|
|
182
363
|
"position": {
|
|
183
364
|
"x": 0,
|
|
184
365
|
"y": 0,
|
|
185
|
-
"z": 0
|
|
366
|
+
"z": 0
|
|
186
367
|
},
|
|
187
368
|
"rotation": {
|
|
188
369
|
"x": 0,
|
|
189
370
|
"y": 0,
|
|
190
|
-
"z":
|
|
371
|
+
"z": 90
|
|
191
372
|
},
|
|
192
373
|
"pcb_component_id": "pcb_component_0",
|
|
193
374
|
"source_component_id": "source_component_0",
|
|
194
|
-
"
|
|
375
|
+
"model_obj_url": "https://modelcdn.tscircuit.com/easyeda_models/assets/C25804.obj?uuid=6bd5cd867e9542ebae21caaf5d2d4c4d&cachebust_origin=https%3A%2F%2Ftscircuit.com",
|
|
376
|
+
"model_step_url": "https://modelcdn.tscircuit.com/easyeda_models/assets/C25804.step?uuid=6bd5cd867e9542ebae21caaf5d2d4c4d&cachebust_origin=https%3A%2F%2Ftscircuit.com",
|
|
377
|
+
"model_origin_alignment": "center_of_component_on_board_surface",
|
|
378
|
+
"anchor_alignment": "center_of_component_on_board_surface",
|
|
379
|
+
"model_origin_position": {
|
|
380
|
+
"x": -0.004999999999999977,
|
|
381
|
+
"y": 0,
|
|
382
|
+
"z": -0.01
|
|
383
|
+
}
|
|
195
384
|
}
|
|
196
385
|
]
|