diff --git a/snippets/soup-reference.mdx b/snippets/soup-reference.mdx index e461848..d102e34 100644 --- a/snippets/soup-reference.mdx +++ b/snippets/soup-reference.mdx @@ -5,11 +5,18 @@ ```json { "type": "source_component", - "ftype": "commodo et", + "ftype": "fugiat labore ea non laborum", "source_component_id": "source_component_1", - "name": "C1", + "name": "F1", + "manufacturer_part_number": "pariatur eu", "supplier_part_numbers": { - "elit_a": ["reprehenderit proident et veniam", "Lorem exercitation sit"] + "et_1bf": [ + "ut ex mollit", + "consequat id", + "ex quis in id", + "qui", + "ut ipsum pariatur" + ] } } ``` @@ -28,8 +35,7 @@ ```json { "type": "source_group", - "source_group_id": "source_group_1", - "name": "G1" + "source_group_id": "source_group_1" } ``` @@ -47,10 +53,7 @@ "ftype": "led", "source_component_id": "source_component_1", "name": "L1", - "supplier_part_numbers": { - "ea_d3": ["nisi esse irure aliqua", "voluptate do eu"], - "id_da": ["irure velit", "amet Duis elit", "cillum qui mollit et nisi"] - } + "manufacturer_part_number": "tempor do enim in pariatur" } ``` @@ -70,13 +73,7 @@ "type": "source_net", "source_net_id": "source_net_1", "name": "N1", - "member_source_group_ids": [ - "Lorem cupidatat Ut ea sint", - "consectetur dolor sint", - "aliquip", - "sit voluptate" - ], - "is_power": true + "member_source_group_ids": ["consectetur", "eiusmod consequat labore nulla"] } ``` @@ -97,7 +94,7 @@ ```json { "type": "source_port", - "pin_number": -46232540.5175132, + "pin_number": 60738211.05656636, "port_hints": ["1", "left"], "name": "P1", "source_port_id": "source_port_1", @@ -123,17 +120,7 @@ "type": "source_component", "ftype": "simple_bug", "source_component_id": "source_component_1", - "name": "B1", - "manufacturer_part_number": "occaecat veniam in", - "supplier_part_numbers": { - "laborume6": ["aute sed dolor fugiat ad"], - "dolore10": [ - "ut anim", - "anim est", - "ullamco", - "eu dolor voluptate esse proident" - ] - } + "name": "B1" } ``` @@ -154,9 +141,9 @@ "ftype": "simple_capacitor", "source_component_id": "source_component_1", "name": "C1", - "manufacturer_part_number": "in", + "manufacturer_part_number": "deserunt", "supplier_part_numbers": { - "id_": ["quis sint reprehenderit"] + "laborisd": ["magna officia", "labore"] }, "capacitance": "1uF" } @@ -180,9 +167,15 @@ "ftype": "simple_chip", "source_component_id": "source_component_1", "name": "C1", - "manufacturer_part_number": "veniam", + "manufacturer_part_number": "dolore deserunt", "supplier_part_numbers": { - "do_395": ["tempor et ipsum"] + "sed_97e": [ + "sint deserunt", + "Ut", + "exercitation magna et", + "elit", + "in Excepteur" + ] } } ``` @@ -203,7 +196,23 @@ "type": "source_component", "ftype": "simple_diode", "source_component_id": "source_component_1", - "name": "D1" + "name": "D1", + "manufacturer_part_number": "quis veniam aute Ut voluptate", + "supplier_part_numbers": { + "culpa1": ["nostrud", "sed", "dolore exercitation"], + "proident_5_": [ + "occaecat culpa nisi", + "ut quis", + "cupidatat sed dolor laboris" + ], + "mollit_8d": [ + "exercitation sed cillum", + "Excepteur incididunt et", + "in dolor dolore nostrud", + "eu minim dolor", + "occaecat ea qui dolore nisi" + ] + } } ``` @@ -224,7 +233,10 @@ "ftype": "simple_ground", "source_component_id": "source_component_1", "name": "G1", - "manufacturer_part_number": "magna ex" + "manufacturer_part_number": "occaecat enim aliqua sint dolor", + "supplier_part_numbers": { + "dolore_8c6": ["dolore qui irure exercitation"] + } } ``` @@ -245,19 +257,16 @@ "ftype": "simple_power_source", "source_component_id": "source_component_1", "name": "P1", - "manufacturer_part_number": "officia esse culpa", + "manufacturer_part_number": "voluptate amet deserunt commodo anim", "supplier_part_numbers": { - "id27": [ - "nisi adipisicing minim irure aliquip", - "nulla Lorem ut in", - "Duis consectetur incididunt officia dolore" + "esse_43": [ + "in incididunt voluptate", + "mollit velit sunt consequat est", + "consectetur ut aute cupidatat", + "minim non consequat", + "nostrud officia" ], - "consecteture": [ - "mollit exercitation cupidatat", - "magna in reprehenderit", - "non deserunt Lorem", - "ut culpa" - ] + "aliqua0": ["ad ea dolore Lorem"] }, "voltage": "5V" } @@ -281,9 +290,13 @@ "ftype": "simple_resistor", "source_component_id": "source_component_1", "name": "R1", - "manufacturer_part_number": "nulla", + "manufacturer_part_number": "consectetur velit", "supplier_part_numbers": { - "ex_332": ["reprehenderit", "dolor laborum occaecat aute sunt"] + "tempor87": [ + "dolor", + "culpa labore mollit commodo", + "aliquip minim commodo pariatur" + ] }, "resistance": "1k" } @@ -306,13 +319,13 @@ "type": "source_trace", "source_trace_id": "source_trace_1", "connected_source_port_ids": [ - "veniam sunt", - "sit ipsum", - "esse eu Lorem laboris", - "occaecat", - "dolore cupidatat" + "ea pariatur ad nostrud esse", + "Excepteur ut ad commodo consectetur", + "cillum culpa esse laboris", + "officia id", + "labore cillum Duis proident" ], - "connected_source_net_ids": ["elit deserunt", "ex"] + "connected_source_net_ids": ["pariatur proident sint"] } ``` @@ -354,7 +367,6 @@ Draws a box on the schematic ```json { "type": "schematic_component", - "rotation": "90deg", "size": { "width": "5mm", "height": "5mm" @@ -364,15 +376,7 @@ Draws a box on the schematic "y": "1mm" }, "source_component_id": "source_component_1", - "schematic_component_id": "schematic_component_1", - "pin_spacing": "voluptate sint in", - "pin_styles": {}, - "box_width": -36073264.538539715, - "port_labels": { - "1": "VCC", - "2": "GND", - "3": "OUT" - } + "schematic_component_id": "schematic_component_1" } ``` @@ -400,7 +404,7 @@ Defines a schematic error on the schematic "schematic_error_id": "schematic_error_1", "type": "schematic_error", "error_type": "schematic_port_not_found", - "message": "amet ut et" + "message": "ullamco tempor quis" } ``` @@ -443,7 +447,7 @@ Defines a schematic error on the schematic "x": "3mm", "y": "1mm" }, - "anchor_side": "bottom", + "anchor_side": "right", "text": "Hello, World!" } ``` @@ -462,8 +466,8 @@ Defines a schematic error on the schematic { "type": "schematic_path", "schematic_component_id": "schematic_component_1", - "fill_color": "red", - "is_filled": false, + "fill_color": "blue", + "is_filled": true, "points": [ { "x": "3mm", @@ -473,14 +477,6 @@ Defines a schematic error on the schematic "x": "3mm", "y": "1mm" }, - { - "x": "3mm", - "y": "1mm" - }, - { - "x": "3mm", - "y": "1mm" - }, { "x": "3mm", "y": "1mm" @@ -510,7 +506,8 @@ Defines a port on a schematic component "center": { "x": "3mm", "y": "1mm" - } + }, + "facing_direction": "up" } ``` @@ -536,7 +533,7 @@ Defines a port on a schematic component "y": "1mm" }, "rotation": "90deg", - "anchor": "center" + "anchor": "right" } ``` @@ -569,17 +566,6 @@ Defines a port on a schematic component }, "from_schematic_port_id": "from_schematic_port_1", "to_schematic_port_id": "to_schematic_port_1" - }, - { - "from": { - "x": "3mm", - "y": "1mm" - }, - "to": { - "x": "3mm", - "y": "1mm" - }, - "from_schematic_port_id": "from_schematic_port_1" } ] } @@ -617,14 +603,6 @@ Defines the board outline of the PCB "x": "3mm", "y": "1mm" }, - { - "x": "3mm", - "y": "1mm" - }, - { - "x": "3mm", - "y": "1mm" - }, { "x": "3mm", "y": "1mm" @@ -680,29 +658,15 @@ Defines a fabrication path on the PCB for fabricators or assemblers ```json { "type": "pcb_fabrication_note_path", - "pcb_fabrication_note_path_id": "pcb_fabrication_note_path_1", "pcb_component_id": "pcb_component_1", "layer": "top", "route": [ - { - "x": "3mm", - "y": "1mm" - }, - { - "x": "3mm", - "y": "1mm" - }, - { - "x": "3mm", - "y": "1mm" - }, { "x": "3mm", "y": "1mm" } ], - "stroke_width": "0.1mm", - "color": "in reprehenderit adipisicing nulla eiusmod" + "stroke_width": "0.1mm" } ``` @@ -723,9 +687,17 @@ Defines a fabrication note in text on the PCB, useful for leaving notes for asse ```json { "type": "pcb_fabrication_note_text", + "font": "tscircuit2024", + "font_size": "1mm", "pcb_component_id": "pcb_component_1", "text": "Hello, World!", - "layer": "top" + "layer": "top", + "anchor_position": { + "x": "3mm", + "y": "1mm" + }, + "anchor_alignment": "top_left", + "color": "ut in" } ``` @@ -751,7 +723,7 @@ Defines a placement error on the PCB "pcb_error_id": "pcb_error_1", "type": "pcb_error", "error_type": "pcb_placement_error", - "message": "irure qui in exercitation amet" + "message": "ut" } ``` @@ -797,7 +769,7 @@ Defines a trace error on the PCB "pcb_error_id": "pcb_error_1", "type": "pcb_error", "error_type": "pcb_port_not_matched_error", - "message": "proident", + "message": "consectetur magna", "pcb_component_ids": ["pcb_component_1"] } ``` @@ -880,8 +852,8 @@ Defines a silkscreen oval on the PCB "x": "3mm", "y": "1mm" }, - "radius_x": "laborum", - "radius_y": "labore dolore sit", + "radius_x": 57098223.16876063, + "radius_y": "consequat ullamco", "layer": "top" } ``` @@ -915,14 +887,6 @@ Defines a silkscreen path on the PCB "x": "3mm", "y": "1mm" }, - { - "x": "3mm", - "y": "1mm" - }, - { - "x": "3mm", - "y": "1mm" - }, { "x": "3mm", "y": "1mm" @@ -1038,14 +1002,22 @@ Defines text on the PCB "pcb_component_id": "pcb_component_1", "pcb_trace_id": "pcb_trace_1", "route_thickness_mode": "constant", - "should_round_corners": true, + "should_round_corners": false, "route": [ { - "route_type": "via", + "route_type": "wire", "x": "3mm", "y": "1mm", - "from_layer": "top", - "to_layer": "bottom" + "width": "5mm", + "end_pcb_port_id": "end_pcb_port_1", + "layer": "top" + }, + { + "route_type": "wire", + "x": "3mm", + "start_pcb_port_id": "start_pcb_port_1", + "end_pcb_port_id": "end_pcb_port_1", + "layer": "top" } ] } @@ -1070,7 +1042,7 @@ Defines a trace error on the PCB "pcb_error_id": "pcb_error_1", "type": "pcb_error", "error_type": "pcb_trace_error", - "message": "in cillum consequat amet", + "message": "nulla Excepteur sint reprehenderit dolore", "center": { "x": "3mm", "y": "1mm" @@ -1108,13 +1080,8 @@ A hint that can be used to generate a PCB trace { "x": "3mm", "y": "1mm", - "via": false, - "trace_width": "commodo esse" - }, - { - "x": "3mm", - "y": "1mm", - "via": true + "to_layer": "bottom", + "trace_width": "dolor dolor pariatur tempor id" } ] } @@ -1138,9 +1105,6 @@ Defines a via on the PCB "x": "3mm", "y": "1mm", "outer_diameter": "1.2mm", - "hole_diameter": "0.08in", - "from_layer": "top", - "to_layer": "bottom", "layers": ["top", "bottom"] } ``` @@ -1162,14 +1126,14 @@ Defines a via on the PCB ```json { - "type": "pcb_silkscreen_line", - "pcb_silkscreen_line_id": "pcb_silkscreen_line_1", - "pcb_component_id": "pcb_component_1", - "x1": "1mm", - "y1": "1mm", - "x2": "2mm", - "y2": "2mm", - "layer": "top" + "pcb_error_id": "pcb_error_1", + "type": "pcb_error", + "error_type": "pcb_trace_error", + "message": "sunt", + "pcb_trace_id": "pcb_trace_1", + "source_trace_id": "source_trace_1", + "pcb_component_ids": ["pcb_component_1"], + "pcb_port_ids": ["pcb_port_1", "pcb_port_2"] } ``` @@ -1178,21 +1142,10 @@ Defines a via on the PCB ```json { "type": "source_component", - "ftype": "simple_bug", + "ftype": "simple_chip", "source_component_id": "source_component_1", - "name": "B1", - "manufacturer_part_number": "mollit exercitation Duis fugiat", - "supplier_part_numbers": { - "mollit_82_": ["mollit", "consectetur commodo aliqua", "cupidatat"], - "suntb_5": [ - "ex nulla in", - "do enim minim", - "adipisicing", - "sed dolor anim do", - "Lorem eiusmod sint amet" - ], - "mollite": ["ex", "ut ea elit enim", "consequat nisi ea dolor eiusmod"] - } + "name": "C1", + "manufacturer_part_number": "incididunt non" } ``` @@ -1209,19 +1162,19 @@ Defines a component on the PCB "position": { "x": "3mm", "y": "1mm", - "z": "commodo Lorem et consectetur laboris" + "z": 25498921.98703496 }, "rotation": "90deg", "size": { "x": "3mm", "y": "1mm", - "z": "do" + "z": 57035788.90300962 }, "layer": "top", - "footprinter_string": "dolor aliquip voluptate", - "model_obj_url": "deserunt anim", - "model_stl_url": "est quis id", - "model_3mf_url": "nisi", + "footprinter_string": "est", + "model_obj_url": "anim ut eu", + "model_stl_url": "reprehenderit sint ut ipsum", + "model_3mf_url": "proident", "model_jscad": {} } ``` @@ -1275,7 +1228,7 @@ Defines a component on the PCB ### `layer_string` ```json -"inner6" +"inner1" ``` ### `length` @@ -1305,16 +1258,15 @@ Defines a hole on the PCB ```json { "type": "pcb_keepout", - "shape": "rect", + "shape": "circle", "center": { "x": "3mm", "y": "1mm" }, - "width": "5mm", - "height": "5mm", + "radius": "5mm", "pcb_keepout_id": "pcb_keepout_1", "layers": ["top", "bottom"], - "description": "mollit sunt id nostrud magna" + "description": "aute" } ``` @@ -1325,11 +1277,9 @@ Defines a plated hole on the PCB ```json { "type": "pcb_plated_hole", - "shape": "oval", - "outer_width": -23821694.799141154, - "outer_height": -52405590.77720492, - "hole_width": "1mm", - "hole_height": "1mm", + "shape": "circle", + "outer_diameter": "1.2mm", + "hole_diameter": "0.08in", "x": "3mm", "y": "1mm", "layers": ["top", "bottom"], @@ -1346,10 +1296,8 @@ Defines a plated hole on the PCB { "x": "3mm", "y": "1mm", - "via": true, - "via_to_layer": { - "name": "P1" - } + "via": false, + "via_to_layer": "top" } ``` @@ -1380,11 +1328,10 @@ Defines an SMT pad on the PCB { "pcb_smtpad_id": "pcb_smtpad_1", "type": "pcb_smtpad", - "shape": "rect", + "shape": "circle", "x": "3mm", "y": "1mm", - "width": "5mm", - "height": "5mm", + "radius": "5mm", "layer": "top", "port_hints": ["1", "left"], "pcb_component_id": "pcb_component_1", @@ -1412,7 +1359,7 @@ Defines an SMT pad on the PCB { "x": "3mm", "y": "1mm", - "z": "dolore Lorem in" + "z": -39113392.23797125 } ``` @@ -1442,7 +1389,7 @@ Defines an SMT pad on the PCB { "x": "3mm", "y": "1mm", - "z": "magna laborum id labore" + "z": 87469532.19732055 } ``` @@ -1469,9 +1416,7 @@ Defines an SMT pad on the PCB ```json { "x": "3mm", - "y": "1mm", - "via": false, - "to_layer": "bottom" + "y": "1mm" } ``` @@ -1487,11 +1432,13 @@ Defines an SMT pad on the PCB ```json { - "dolor_6bc": { - "left_margin": 82834730.29187456, - "bottom_margin": 44743718.06434968 + "minim_78c": { + "left_margin": 32448275.910045236, + "right_margin": -911089.2289053053, + "top_margin": 45886689.6566357, + "bottom_margin": "minim laborum labore" }, - "velit_655": {} + "nisia4_": {} } ``` @@ -1512,7 +1459,7 @@ Defines an SMT pad on the PCB ### `supplier_name` ```json -"lcsc" +"macrofab" ``` ### `time`