Preparing search index...
The search index is not available
@tscircuit/builder
@tscircuit/builder
ConstrainedLayoutBuilder
Interface ConstrainedLayoutBuilder
Hierarchy
Omit
<
GroupBuilder
,
"add"
|
"appendChild"
>
ConstrainedLayoutBuilder
Implemented by
ConstrainedLayoutBuilderClass
Index
Properties
add
Trace
addables
builder_
type
project_
builder
reset
set
Name
Methods
add
add
Bug
add
Capacitor
add
Component
add
Constraint
add
Diode
add
Ground
add
Group
add
Inductor
add
Power
Source
add
Resistor
append
Child
build
Properties
add
Trace
add
Trace
:
(
(
traceBuiderCallback
:
string
[]
|
TraceBuilderCallback
)
=>
GroupBuilder
)
Type declaration
(
traceBuiderCallback
:
string
[]
|
TraceBuilderCallback
)
:
GroupBuilder
Parameters
traceBuiderCallback:
string
[]
|
TraceBuilderCallback
Returns
GroupBuilder
addables
addables
:
{
bug
:
(
(
project_builder
:
ProjectBuilder
)
=>
BugBuilder
)
;
capacitor
:
(
(
project_builder
:
ProjectBuilder
)
=>
CapacitorBuilder
)
;
component
:
(
(
project_builder
:
ProjectBuilder
)
=>
GenericComponentBuilder
)
;
diode
:
(
(
project_builder
:
ProjectBuilder
)
=>
DiodeBuilder
)
;
generic_component
:
(
(
project_builder
:
ProjectBuilder
)
=>
GenericComponentBuilder
)
;
ground
:
(
(
project_builder
:
ProjectBuilder
)
=>
GroundBuilder
)
;
group
:
(
(
project_builder
?:
ProjectBuilder
)
=>
GroupBuilder
)
;
inductor
:
(
(
project_builder
:
ProjectBuilder
)
=>
InductorBuilder
)
;
power_source
:
(
(
project_builder
:
ProjectBuilder
)
=>
PowerSourceBuilder
)
;
resistor
:
(
(
project_builder
:
ProjectBuilder
)
=>
ResistorBuilder
)
;
trace
:
(
(
project_builder
:
ProjectBuilder
)
=>
TraceBuilder
)
}
Type declaration
bug
:
(
(
project_builder
:
ProjectBuilder
)
=>
BugBuilder
)
(
project_builder
:
ProjectBuilder
)
:
BugBuilder
Parameters
project_builder:
ProjectBuilder
Returns
BugBuilder
capacitor
:
(
(
project_builder
:
ProjectBuilder
)
=>
CapacitorBuilder
)
(
project_builder
:
ProjectBuilder
)
:
CapacitorBuilder
Parameters
project_builder:
ProjectBuilder
Returns
CapacitorBuilder
component
:
(
(
project_builder
:
ProjectBuilder
)
=>
GenericComponentBuilder
)
(
project_builder
:
ProjectBuilder
)
:
GenericComponentBuilder
Parameters
project_builder:
ProjectBuilder
Returns
GenericComponentBuilder
diode
:
(
(
project_builder
:
ProjectBuilder
)
=>
DiodeBuilder
)
(
project_builder
:
ProjectBuilder
)
:
DiodeBuilder
Parameters
project_builder:
ProjectBuilder
Returns
DiodeBuilder
generic_
component
:
(
(
project_builder
:
ProjectBuilder
)
=>
GenericComponentBuilder
)
(
project_builder
:
ProjectBuilder
)
:
GenericComponentBuilder
Parameters
project_builder:
ProjectBuilder
Returns
GenericComponentBuilder
ground
:
(
(
project_builder
:
ProjectBuilder
)
=>
GroundBuilder
)
(
project_builder
:
ProjectBuilder
)
:
GroundBuilder
Parameters
project_builder:
ProjectBuilder
Returns
GroundBuilder
group
:
(
(
project_builder
?:
ProjectBuilder
)
=>
GroupBuilder
)
(
project_builder
?:
ProjectBuilder
)
:
GroupBuilder
This uses an old construction pattern that's been tested.
Parameters
Optional
project_builder:
ProjectBuilder
Returns
GroupBuilder
inductor
:
(
(
project_builder
:
ProjectBuilder
)
=>
InductorBuilder
)
(
project_builder
:
ProjectBuilder
)
:
InductorBuilder
Parameters
project_builder:
ProjectBuilder
Returns
InductorBuilder
power_
source
:
(
(
project_builder
:
ProjectBuilder
)
=>
PowerSourceBuilder
)
(
project_builder
:
ProjectBuilder
)
:
PowerSourceBuilder
Parameters
project_builder:
ProjectBuilder
Returns
PowerSourceBuilder
resistor
:
(
(
project_builder
:
ProjectBuilder
)
=>
ResistorBuilder
)
(
project_builder
:
ProjectBuilder
)
:
ResistorBuilder
Parameters
project_builder:
ProjectBuilder
Returns
ResistorBuilder
trace
:
(
(
project_builder
:
ProjectBuilder
)
=>
TraceBuilder
)
(
project_builder
:
ProjectBuilder
)
:
TraceBuilder
Parameters
project_builder:
ProjectBuilder
Returns
TraceBuilder
builder_
type
builder_
type
:
"group_builder"
project_
builder
project_
builder
:
ProjectBuilder
reset
reset
:
(
(
)
=>
GroupBuilder
)
Type declaration
(
)
:
GroupBuilder
Returns
GroupBuilder
set
Name
set
Name
:
(
(
name
:
string
)
=>
GroupBuilder
)
Type declaration
(
name
:
string
)
:
GroupBuilder
Parameters
name:
string
Returns
GroupBuilder
Methods
add
add
<
T
>
(
builder_type
:
T
, callback
:
(
(
builder
:
ReturnType
<
{
bug
:
(
(
project_builder
:
ProjectBuilder
)
=>
BugBuilder
)
;
capacitor
:
(
(
project_builder
:
ProjectBuilder
)
=>
CapacitorBuilder
)
;
component
:
(
(
project_builder
:
ProjectBuilder
)
=>
GenericComponentBuilder
)
;
constraint
:
(
(
project_builder
:
ProjectBuilder
)
=>
ConstraintBuilder
)
;
diode
:
(
(
project_builder
:
ProjectBuilder
)
=>
DiodeBuilder
)
;
generic_component
:
(
(
project_builder
:
ProjectBuilder
)
=>
GenericComponentBuilder
)
;
ground
:
(
(
project_builder
:
ProjectBuilder
)
=>
GroundBuilder
)
;
group
:
(
(
project_builder
?:
ProjectBuilder
)
=>
GroupBuilder
)
;
inductor
:
(
(
project_builder
:
ProjectBuilder
)
=>
InductorBuilder
)
;
power_source
:
(
(
project_builder
:
ProjectBuilder
)
=>
PowerSourceBuilder
)
;
resistor
:
(
(
project_builder
:
ProjectBuilder
)
=>
ResistorBuilder
)
;
trace
:
(
(
project_builder
:
ProjectBuilder
)
=>
TraceBuilder
)
}
[
T
]
>
)
=>
unknown
)
)
:
ConstrainedLayoutBuilder
Type Parameters
T
extends
"constraint"
|
"generic_component"
|
"component"
|
"resistor"
|
"capacitor"
|
"diode"
|
"power_source"
|
"inductor"
|
"ground"
|
"bug"
|
"trace"
|
"group"
Parameters
builder_type:
T
callback:
(
(
builder
:
ReturnType
<
{
bug
:
(
(
project_builder
:
ProjectBuilder
)
=>
BugBuilder
)
;
capacitor
:
(
(
project_builder
:
ProjectBuilder
)
=>
CapacitorBuilder
)
;
component
:
(
(
project_builder
:
ProjectBuilder
)
=>
GenericComponentBuilder
)
;
constraint
:
(
(
project_builder
:
ProjectBuilder
)
=>
ConstraintBuilder
)
;
diode
:
(
(
project_builder
:
ProjectBuilder
)
=>
DiodeBuilder
)
;
generic_component
:
(
(
project_builder
:
ProjectBuilder
)
=>
GenericComponentBuilder
)
;
ground
:
(
(
project_builder
:
ProjectBuilder
)
=>
GroundBuilder
)
;
group
:
(
(
project_builder
?:
ProjectBuilder
)
=>
GroupBuilder
)
;
inductor
:
(
(
project_builder
:
ProjectBuilder
)
=>
InductorBuilder
)
;
power_source
:
(
(
project_builder
:
ProjectBuilder
)
=>
PowerSourceBuilder
)
;
resistor
:
(
(
project_builder
:
ProjectBuilder
)
=>
ResistorBuilder
)
;
trace
:
(
(
project_builder
:
ProjectBuilder
)
=>
TraceBuilder
)
}
[
T
]
>
)
=>
unknown
)
(
builder
:
ReturnType
<
{
bug
:
(
(
project_builder
:
ProjectBuilder
)
=>
BugBuilder
)
;
capacitor
:
(
(
project_builder
:
ProjectBuilder
)
=>
CapacitorBuilder
)
;
component
:
(
(
project_builder
:
ProjectBuilder
)
=>
GenericComponentBuilder
)
;
constraint
:
(
(
project_builder
:
ProjectBuilder
)
=>
ConstraintBuilder
)
;
diode
:
(
(
project_builder
:
ProjectBuilder
)
=>
DiodeBuilder
)
;
generic_component
:
(
(
project_builder
:
ProjectBuilder
)
=>
GenericComponentBuilder
)
;
ground
:
(
(
project_builder
:
ProjectBuilder
)
=>
GroundBuilder
)
;
group
:
(
(
project_builder
?:
ProjectBuilder
)
=>
GroupBuilder
)
;
inductor
:
(
(
project_builder
:
ProjectBuilder
)
=>
InductorBuilder
)
;
power_source
:
(
(
project_builder
:
ProjectBuilder
)
=>
PowerSourceBuilder
)
;
resistor
:
(
(
project_builder
:
ProjectBuilder
)
=>
ResistorBuilder
)
;
trace
:
(
(
project_builder
:
ProjectBuilder
)
=>
TraceBuilder
)
}
[
T
]
>
)
:
unknown
Parameters
builder:
ReturnType
<
{
bug
:
(
(
project_builder
:
ProjectBuilder
)
=>
BugBuilder
)
;
capacitor
:
(
(
project_builder
:
ProjectBuilder
)
=>
CapacitorBuilder
)
;
component
:
(
(
project_builder
:
ProjectBuilder
)
=>
GenericComponentBuilder
)
;
constraint
:
(
(
project_builder
:
ProjectBuilder
)
=>
ConstraintBuilder
)
;
diode
:
(
(
project_builder
:
ProjectBuilder
)
=>
DiodeBuilder
)
;
generic_component
:
(
(
project_builder
:
ProjectBuilder
)
=>
GenericComponentBuilder
)
;
ground
:
(
(
project_builder
:
ProjectBuilder
)
=>
GroundBuilder
)
;
group
:
(
(
project_builder
?:
ProjectBuilder
)
=>
GroupBuilder
)
;
inductor
:
(
(
project_builder
:
ProjectBuilder
)
=>
InductorBuilder
)
;
power_source
:
(
(
project_builder
:
ProjectBuilder
)
=>
PowerSourceBuilder
)
;
resistor
:
(
(
project_builder
:
ProjectBuilder
)
=>
ResistorBuilder
)
;
trace
:
(
(
project_builder
:
ProjectBuilder
)
=>
TraceBuilder
)
}
[
T
]
>
Returns
unknown
Returns
ConstrainedLayoutBuilder
add
Bug
add
Bug
(
bugBuilderCallback
:
BugBuilderCallback
)
:
GroupBuilder
Parameters
bugBuilderCallback:
BugBuilderCallback
Returns
GroupBuilder
add
Capacitor
add
Capacitor
(
capacitorBuilderCallback
:
CapacitorBuilderCallback
)
:
GroupBuilder
Parameters
capacitorBuilderCallback:
CapacitorBuilderCallback
Returns
GroupBuilder
add
Component
add
Component
(
componentBuilderCallback
:
GenericComponentBuilderCallback
)
:
GroupBuilder
Parameters
componentBuilderCallback:
GenericComponentBuilderCallback
Returns
GroupBuilder
add
Constraint
add
Constraint
(
props
:
ConstraintBuilderFields
)
:
ConstrainedLayoutBuilder
Parameters
props:
ConstraintBuilderFields
Returns
ConstrainedLayoutBuilder
add
Diode
add
Diode
(
capacitorBuilderCallback
:
DiodeBuilderCallback
)
:
GroupBuilder
Parameters
capacitorBuilderCallback:
DiodeBuilderCallback
Returns
GroupBuilder
add
Ground
add
Ground
(
groundBuilderCallback
:
GroundBuilderCallback
)
:
GroupBuilder
Parameters
groundBuilderCallback:
GroundBuilderCallback
Returns
GroupBuilder
add
Group
add
Group
(
groupBuilderCallback
:
GroupBuilder
|
GroupBuilderCallback
)
:
GroupBuilder
Parameters
groupBuilderCallback:
GroupBuilder
|
GroupBuilderCallback
Returns
GroupBuilder
add
Inductor
add
Inductor
(
powerSourceBuilderCallback
:
InductorBuilderCallback
)
:
GroupBuilder
Parameters
powerSourceBuilderCallback:
InductorBuilderCallback
Returns
GroupBuilder
add
Power
Source
add
Power
Source
(
powerSourceBuilderCallback
:
PowerSourceBuilderCallback
)
:
GroupBuilder
Parameters
powerSourceBuilderCallback:
PowerSourceBuilderCallback
Returns
GroupBuilder
add
Resistor
add
Resistor
(
resistorBuilderCallback
:
ResistorBuilderCallback
)
:
GroupBuilder
Parameters
resistorBuilderCallback:
ResistorBuilderCallback
Returns
GroupBuilder
append
Child
append
Child
(
child
:
ComponentBuilder
|
GroupBuilder
|
ConstraintBuilder
)
:
ConstrainedLayoutBuilder
Parameters
child:
ComponentBuilder
|
GroupBuilder
|
ConstraintBuilder
Returns
ConstrainedLayoutBuilder
build
build
(
build_context
:
BuildContext
)
:
Promise
<
AnyElement
[]
>
Parameters
build_context:
BuildContext
Returns
Promise
<
AnyElement
[]
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
@tscircuit/builder
Constrained
Layout
Builder
add
Trace
addables
builder_
type
project_
builder
reset
set
Name
add
add
Bug
add
Capacitor
add
Component
add
Constraint
add
Diode
add
Ground
add
Group
add
Inductor
add
Power
Source
add
Resistor
append
Child
build
Generated using
TypeDoc
This uses an old construction pattern that's been tested.