diff --git a/snippets/soup-reference.mdx b/snippets/soup-reference.mdx index 091598a..cfb39cf 100644 --- a/snippets/soup-reference.mdx +++ b/snippets/soup-reference.mdx @@ -5,18 +5,17 @@ ```json { "type": "source_component", - "ftype": "Excepteur eu eiusmod minim aliqua", + "ftype": "ut minim enim elit", "source_component_id": "source_component_1", - "name": "E1", - "manufacturer_part_number": "quis enim magna pariatur tempor", + "name": "U1", + "manufacturer_part_number": "qui aute proident", "supplier_part_numbers": { - "laborum_28": ["tempor proident in ex et"], - "ut_5c1": [ - "adipisicing id", - "laborum consectetur minim pariatur magna", - "ex cupidatat in pariatur", - "cillum voluptate", - "sit culpa voluptate magna ex" + "adipisicing_2e1": [], + "velit_5": [ + "Excepteur occaecat", + "sed consectetur", + "laboris", + "eiusmod anim reprehenderit aliquip" ] } } @@ -36,8 +35,7 @@ ```json { "type": "source_group", - "source_group_id": "source_group_1", - "name": "G1" + "source_group_id": "source_group_1" } ``` @@ -55,14 +53,15 @@ "ftype": "led", "source_component_id": "source_component_1", "name": "L1", - "manufacturer_part_number": "adipisicing sed aute esse", + "manufacturer_part_number": "commodo", "supplier_part_numbers": { - "in_c": [ - "reprehenderit consequat enim labore", - "tempor culpa", - "esse consectetur laboris mollit", - "dolor mollit sunt Ut", - "nisi commodo adipisicing dolor minim" + "labore50b": ["officia ipsum", "proident"], + "Excepteur9": [ + "sint", + "in sint", + "labore", + "in sint", + "et sit eiusmod proident" ] } } @@ -84,12 +83,14 @@ "type": "source_net", "source_net_id": "source_net_1", "name": "N1", - "member_source_group_ids": [], - "is_power": false, - "is_ground": false, - "is_digital_signal": false, - "is_analog_signal": false, - "trace_width": 19789338.093563825 + "member_source_group_ids": [ + "quis in dolor Excepteur ullamco", + "eiusmod dolor cillum incididunt nostrud", + "occaecat" + ], + "is_power": true, + "is_analog_signal": true, + "trace_width": -49112768.15607662 } ``` @@ -110,7 +111,7 @@ ```json { "type": "source_port", - "pin_number": -89013721.00151339, + "pin_number": 52417020.72828284, "port_hints": ["1", "left"], "name": "P1", "source_port_id": "source_port_1", @@ -136,17 +137,7 @@ "type": "source_component", "ftype": "simple_bug", "source_component_id": "source_component_1", - "name": "B1", - "manufacturer_part_number": "laborum", - "supplier_part_numbers": { - "nulla_4": [ - "proident officia cillum qui aliqua", - "dolore occaecat", - "aliqua esse Duis dolor", - "qui", - "voluptate et" - ] - } + "name": "B1" } ``` @@ -167,22 +158,6 @@ "ftype": "simple_capacitor", "source_component_id": "source_component_1", "name": "C1", - "manufacturer_part_number": "deserunt ex sunt", - "supplier_part_numbers": { - "elit_d8b": ["incididunt ipsum", "consectetur sunt ut", "Lorem ad", "Duis"], - "minimb62": [ - "ut ullamco minim", - "est eu", - "incididunt in sunt", - "mollit ad" - ], - "id_b": ["ipsum", "amet mollit pariatur anim nostrud"], - "irure_3": [ - "in voluptate Lorem magna", - "dolor consectetur", - "velit pariatur" - ] - }, "capacitance": "1uF" } ``` @@ -205,9 +180,10 @@ "ftype": "simple_chip", "source_component_id": "source_component_1", "name": "C1", - "manufacturer_part_number": "eu eiusmod fugiat est non", + "manufacturer_part_number": "incididunt Lorem nulla cillum ea", "supplier_part_numbers": { - "reprehenderite2": [] + "minim_5": [], + "elit_e8": ["commodo sed aute cillum"] } } ``` @@ -229,9 +205,9 @@ "ftype": "simple_diode", "source_component_id": "source_component_1", "name": "D1", - "manufacturer_part_number": "Excepteur Lorem ea laborum", + "manufacturer_part_number": "nostrud in aute irure", "supplier_part_numbers": { - "officia_8f6": ["in", "velit cillum dolor culpa eu"] + "proident30f": ["cupidatat et cillum minim"] } } ``` @@ -253,7 +229,10 @@ "ftype": "simple_ground", "source_component_id": "source_component_1", "name": "G1", - "manufacturer_part_number": "sint irure" + "manufacturer_part_number": "Lorem voluptate enim", + "supplier_part_numbers": { + "commodo4": [] + } } ``` @@ -274,11 +253,9 @@ "ftype": "simple_power_source", "source_component_id": "source_component_1", "name": "P1", - "manufacturer_part_number": "non", + "manufacturer_part_number": "Ut in Duis", "supplier_part_numbers": { - "non_0_2": ["Excepteur"], - "magnad43": [], - "culpa_82": ["sed", "tempor ipsum aliquip"] + "in011": ["Ut", "Excepteur ea ad in"] }, "voltage": "5V" } @@ -302,13 +279,11 @@ "ftype": "simple_resistor", "source_component_id": "source_component_1", "name": "R1", - "manufacturer_part_number": "ex ullamco eiusmod reprehenderit dolor", "supplier_part_numbers": { - "et75": ["dolor ipsum officia sit"], - "nulla_e04": [ - "dolor dolor proident officia", - "elit dolore et", - "aliqua anim pariatur" + "proidentbc": [ + "ea consequat", + "ea cillum et", + "voluptate dolor commodo eiusmod est" ] }, "resistance": "1k" @@ -331,8 +306,8 @@ { "type": "source_trace", "source_trace_id": "source_trace_1", - "connected_source_port_ids": [], - "connected_source_net_ids": ["aute", "labore fugiat cupidatat id"] + "connected_source_port_ids": ["non"], + "connected_source_net_ids": ["culpa nisi elit"] } ``` @@ -374,7 +349,6 @@ Draws a box on the schematic ```json { "type": "schematic_component", - "rotation": "90deg", "size": { "width": "5mm", "height": "5mm" @@ -385,11 +359,8 @@ Draws a box on the schematic }, "source_component_id": "source_component_1", "schematic_component_id": "schematic_component_1", - "symbol_name": "esse ex ea ullamco tempor", - "port_arrangement": { - "left_size": 3, - "right_size": 3 - } + "pin_spacing": -5474526.991042078, + "pin_styles": {} } ``` @@ -417,7 +388,7 @@ Defines a schematic error on the schematic "schematic_error_id": "schematic_error_1", "type": "schematic_error", "error_type": "schematic_port_not_found", - "message": "commodo sint irure reprehenderit tempor" + "message": "et id deserunt culpa" } ``` @@ -486,6 +457,10 @@ Defines a schematic error on the schematic "x": "3mm", "y": "1mm" }, + { + "x": "3mm", + "y": "1mm" + }, { "x": "3mm", "y": "1mm" @@ -516,7 +491,7 @@ Defines a port on a schematic component "x": "3mm", "y": "1mm" }, - "facing_direction": "down" + "facing_direction": "right" } ``` @@ -541,8 +516,7 @@ Defines a port on a schematic component "x": "3mm", "y": "1mm" }, - "rotation": "90deg", - "anchor": "center" + "anchor": "top" } ``` @@ -564,30 +538,6 @@ Defines a port on a schematic component "schematic_trace_id": "schematic_trace_1", "source_trace_id": "source_trace_1", "edges": [ - { - "from": { - "x": "3mm", - "y": "1mm" - }, - "to": { - "x": "3mm", - "y": "1mm" - }, - "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", - "to_schematic_port_id": "to_schematic_port_1" - }, { "from": { "x": "3mm", @@ -599,18 +549,6 @@ Defines a port on a schematic component }, "from_schematic_port_id": "from_schematic_port_1" }, - { - "from": { - "x": "3mm", - "y": "1mm" - }, - "to": { - "x": "3mm", - "y": "1mm" - }, - "from_schematic_port_id": "from_schematic_port_1", - "to_schematic_port_id": "to_schematic_port_1" - }, { "from": { "x": "3mm", @@ -651,6 +589,14 @@ Defines the board outline of the PCB "y": "1mm" }, "outline": [ + { + "x": "3mm", + "y": "1mm" + }, + { + "x": "3mm", + "y": "1mm" + }, { "x": "3mm", "y": "1mm" @@ -714,20 +660,13 @@ Defines a fabrication path on the PCB for fabricators or assemblers "pcb_component_id": "pcb_component_1", "layer": "top", "route": [ - { - "x": "3mm", - "y": "1mm" - }, - { - "x": "3mm", - "y": "1mm" - }, { "x": "3mm", "y": "1mm" } ], - "stroke_width": "0.1mm" + "stroke_width": "0.1mm", + "color": "in" } ``` @@ -748,7 +687,9 @@ Defines a fabrication note in text on the PCB, useful for leaving notes for asse ```json { "type": "pcb_fabrication_note_text", + "pcb_fabrication_note_text_id": "pcb_fabrication_note_text_1", "font": "tscircuit2024", + "font_size": "1mm", "pcb_component_id": "pcb_component_1", "text": "Hello, World!", "layer": "top", @@ -756,8 +697,7 @@ Defines a fabrication note in text on the PCB, useful for leaving notes for asse "x": "3mm", "y": "1mm" }, - "anchor_alignment": "top_left", - "color": "amet" + "anchor_alignment": "center" } ``` @@ -783,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": "exercitation ea consequat" + "message": "ut do sed non Duis" } ``` @@ -829,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": "velit eiusmod irure", + "message": "elit laboris qui nostrud nisi", "pcb_component_ids": ["pcb_component_1"] } ``` @@ -912,8 +852,8 @@ Defines a silkscreen oval on the PCB "x": "3mm", "y": "1mm" }, - "radius_x": "nostrud laboris in", - "radius_y": 86577516.64432451, + "radius_x": -995405.9363404363, + "radius_y": 84853343.3134394, "layer": "top" } ``` @@ -938,16 +878,7 @@ Defines a silkscreen path on the PCB "pcb_silkscreen_path_id": "pcb_silkscreen_path_1", "pcb_component_id": "pcb_component_1", "layer": "top", - "route": [ - { - "x": "3mm", - "y": "1mm" - }, - { - "x": "3mm", - "y": "1mm" - } - ], + "route": [], "stroke_width": "0.1mm" } ``` @@ -997,13 +928,16 @@ Defines silkscreen text on the PCB ```json { "type": "pcb_silkscreen_text", + "font": "tscircuit2024", + "font_size": "1mm", "pcb_component_id": "pcb_component_1", "text": "Hello, World!", "layer": "top", "anchor_position": { "x": "3mm", "y": "1mm" - } + }, + "anchor_alignment": "top_left" } ``` @@ -1054,14 +988,41 @@ Defines text on the PCB "source_trace_id": "source_trace_1", "pcb_component_id": "pcb_component_1", "pcb_trace_id": "pcb_trace_1", - "should_round_corners": false, + "route_thickness_mode": "interpolated", + "should_round_corners": true, "route": [ + { + "route_type": "wire", + "x": "3mm", + "y": "1mm", + "width": "5mm", + "start_pcb_port_id": "start_pcb_port_1", + "end_pcb_port_id": "end_pcb_port_1", + "layer": "top" + }, { "route_type": "via", "x": "3mm", "y": "1mm", "from_layer": "top", "to_layer": "bottom" + }, + { + "route_type": "wire", + "x": "3mm", + "y": "1mm", + "width": "5mm", + "end_pcb_port_id": "end_pcb_port_1", + "layer": "top" + }, + { + "route_type": "wire", + "x": "3mm", + "y": "1mm", + "width": "5mm", + "start_pcb_port_id": "start_pcb_port_1", + "end_pcb_port_id": "end_pcb_port_1", + "layer": "top" } ] } @@ -1086,7 +1047,7 @@ Defines a trace error on the PCB "pcb_error_id": "pcb_error_1", "type": "pcb_error", "error_type": "pcb_trace_error", - "message": "sint", + "message": "sint irure", "center": { "x": "3mm", "y": "1mm" @@ -1124,8 +1085,19 @@ A hint that can be used to generate a PCB trace { "x": "3mm", "y": "1mm", + "via": false, + "to_layer": "bottom" + }, + { + "x": "3mm", + "y": "1mm" + }, + { + "x": "3mm", + "y": "1mm", + "via": true, "to_layer": "bottom", - "trace_width": -83452526.90448332 + "trace_width": 10855482.546206608 } ] } @@ -1173,23 +1145,14 @@ Defines a via on the PCB ```json { - "type": "source_component", - "ftype": "simple_capacitor", - "source_component_id": "source_component_1", - "name": "C1", - "manufacturer_part_number": "laboris exercitation", - "supplier_part_numbers": { - "laborum_3b4": [], - "ad2d8": [], - "in1fd": [ - "et fugiat sunt id", - "labore ad ullamco", - "nisi fugiat Ut mollit sed", - "quis in consectetur" - ], - "consectetur_6": ["veniam anim dolor deserunt labore", "nulla enim"] - }, - "capacitance": "1uF" + "pcb_error_id": "pcb_error_1", + "type": "pcb_error", + "error_type": "pcb_trace_error", + "message": "consequat ipsum", + "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"] } ``` @@ -1198,12 +1161,17 @@ Defines a via on the PCB ```json { "type": "source_component", - "ftype": "led", + "ftype": "simple_diode", "source_component_id": "source_component_1", - "name": "L1", - "manufacturer_part_number": "aliquip", + "name": "D1", + "manufacturer_part_number": "tempor occaecat", "supplier_part_numbers": { - "velit_137": ["velit ipsum do"] + "incididuntb20": [ + "in esse deserunt enim cillum", + "Ut fugiat pariatur occaecat", + "pariatur Excepteur non nostrud", + "aliqua id" + ] } } ``` @@ -1221,18 +1189,16 @@ Defines a component on the PCB "position": { "x": "3mm", "y": "1mm", - "z": -24468752.135007903 + "z": -71867291.00076126 }, - "rotation": "90deg", "size": { "x": "3mm", "y": "1mm", - "z": 36510979.05584058 + "z": 92256200.06237265 }, "layer": "top", - "footprinter_string": "mollit nostrud do", - "model_stl_url": "deserunt do minim est mollit", - "model_3mf_url": "cillum", + "footprinter_string": "sit ullamco ut nulla", + "model_stl_url": "non eiusmod et officia tempor", "model_jscad": {} } ``` @@ -1286,7 +1252,7 @@ Defines a component on the PCB ### `layer_string` ```json -"inner5" +"bottom" ``` ### `length` @@ -1303,7 +1269,9 @@ Defines a hole on the PCB { "pcb_hole_id": "pcb_hole_1", "type": "pcb_hole", - "hole_diameter": "0.08in", + "hole_shape": "round", + "hole_width": "1mm", + "hole_height": "1mm", "x": "3mm", "y": "1mm" } @@ -1321,7 +1289,8 @@ Defines a hole on the PCB }, "radius": "5mm", "pcb_keepout_id": "pcb_keepout_1", - "layers": ["top", "bottom"] + "layers": ["top", "bottom"], + "description": "minim" } ``` @@ -1338,6 +1307,8 @@ Defines a plated hole on the PCB "x": "3mm", "y": "1mm", "layers": ["top", "bottom"], + "port_hints": ["1", "left"], + "pcb_component_id": "pcb_component_1", "pcb_port_id": "pcb_port_1", "pcb_plated_hole_id": "pcb_plated_hole_1" } @@ -1349,7 +1320,6 @@ Defines a plated hole on the PCB { "x": "3mm", "y": "1mm", - "via": true, "via_to_layer": { "name": "P1" } @@ -1414,7 +1384,7 @@ Defines an SMT pad on the PCB { "x": "3mm", "y": "1mm", - "z": "sit Ut nulla" + "z": "cillum nostrud" } ``` @@ -1444,7 +1414,7 @@ Defines an SMT pad on the PCB { "x": "3mm", "y": "1mm", - "z": "cupidatat ullamco enim" + "z": -93297645.90706016 } ``` @@ -1472,7 +1442,9 @@ Defines an SMT pad on the PCB { "x": "3mm", "y": "1mm", - "to_layer": "bottom" + "via": false, + "to_layer": "bottom", + "trace_width": -85862962.01762487 } ``` @@ -1488,26 +1460,29 @@ Defines an SMT pad on the PCB ```json { - "ada2": { - "right_margin": "eu ex dolore ut consequat" + "ade": { + "left_margin": -16455017.97141935, + "right_margin": "tempor", + "top_margin": "eu dolore aute Lorem Excepteur", + "bottom_margin": "deserunt ullamco quis voluptate commodo" + }, + "eiusmod_": { + "top_margin": "est incididunt adipisicing", + "bottom_margin": "aliqua in" }, - "cillum_054": { - "left_margin": 80835299.37168264, - "right_margin": "quis", - "top_margin": 33473456.600687206, - "bottom_margin": 25103635.21422559 + "voluptate39": { + "left_margin": "eiusmod", + "right_margin": -20631735.04409015 }, - "officiae5": { - "left_margin": -9317325.520879298, - "right_margin": -80381758.75054048, - "top_margin": 24319603.298477426, - "bottom_margin": "fugiat voluptate" + "ad_5": { + "left_margin": "elit magna ut", + "right_margin": "mollit exercitation laborum", + "top_margin": "nulla" }, - "eiusmod_f16": { - "left_margin": "nisi quis Duis", - "right_margin": -75260102.48311095, - "top_margin": "ipsum", - "bottom_margin": 11617607.902008846 + "Ut07b": { + "left_margin": 79298939.58033675, + "right_margin": 82649293.98233661, + "top_margin": 53110332.66420257 } } ``` @@ -1529,7 +1504,7 @@ Defines an SMT pad on the PCB ### `supplier_name` ```json -"lcsc" +"digikey" ``` ### `time`