Methods
getRelated
- getRelated<T>(type: T, id: string): ElementOfType<T>[]
-
Type Parameters
-
T extends "source_component" | "schematic_config" | "source_config" | "schematic_group" | "schematic_box" | "schematic_line" | "schematic_drawing" | "schematic_component" | "schematic_trace" | "schematic_text" | "schematic_port" | "pcb_trace" | "pcb_via" | "pcb_plated_hole" | "pcb_hole" | "pcb_smtpad" | "pcb_drill" | "pcb_component" | "pcb_port" | "pcb_group" | "pcb_config" | "source_trace" | "source_group" | "source_port" | "project"
getSourceComponent
- getSourceComponent(id: string): SourceComponent<"simple_resistor" | "simple_capacitor" | "simple_inductor" | "simple_diode" | "simple_bug" | "simple_power_source" | "simple_ground">
-
Returns SourceComponent<"simple_resistor" | "simple_capacitor" | "simple_inductor" | "simple_diode" | "simple_bug" | "simple_power_source" | "simple_ground">
Representation of a project with more utilities