Preparing search index...
The search index is not available
@selenite/graph-editor
@selenite/graph-editor
Component
PythonNodeComponent
Class PythonNodeComponent
Hierarchy (
view full
)
NodeComponent
PythonNodeComponent
Index
Constructors
constructor
Properties
cleanup?
data
Code
Getters
node
owner
Methods
add
Class
add
Code
add
Dynamic
Output
add
Import
Statement
add
Init
Code
add
Parse
Argument
add
Variable
add
Variables
data
fetch
fetch
Inputs
set
Code
Template
Getter
set
Data
Code
Getter
set
Empty
Newlines
Before
to
Python
collect
Python
Data
is
Dynamic
Input
to
Python
Data
Constructors
constructor
new
Python
Node
Component
(
__namedParameters
)
:
PythonNodeComponent
Parameters
__namedParameters
:
{
owner
:
Node
;
}
owner
:
Node
Returns
PythonNodeComponent
Properties
Optional
cleanup
cleanup
?:
(
(
)
=>
void
)
data
Code
Getters
data
Code
Getters
:
Record
<
string
,
(
(
)
=>
string
)
>
= {}
Protected
node
node
:
GraphNode
<
R
,
R
,
{}
,
Record
<
string
,
unknown
>
,
Record
<
string
,
unknown
>
>
Protected
owner
owner
:
ComponentSupportInterface
Methods
add
Class
add
Class
(
code
)
:
void
Parameters
code
:
string
Returns
void
add
Code
add
Code
(
...
code
)
:
void
Parameters
Rest
...
code
:
string
[]
Returns
void
add
Dynamic
Output
add
Dynamic
Output
(
...
name
)
:
void
Parameters
Rest
...
name
:
string
[]
Returns
void
add
Import
Statement
add
Import
Statement
(
...
statements
)
:
void
Parameters
Rest
...
statements
:
string
[]
Returns
void
add
Init
Code
add
Init
Code
(
code
)
:
void
Parameters
code
:
string
Returns
void
add
Parse
Argument
add
Parse
Argument
(
params
)
:
void
Parameters
params
:
ParseArgumentData
Returns
void
add
Variable
add
Variable
(
...
names
)
:
void
Parameters
Rest
...
names
:
string
[]
Returns
void
add
Variables
add
Variables
(
...
names
)
:
void
Parameters
Rest
...
names
:
string
[]
Returns
void
data
data
(
inputs
)
:
Promise
<
Record
<
string
,
PythonComponentData
<
"static"
|
"dynamic"
,
unknown
>
>
>
Parameters
inputs
:
{
[
x
:
string
]
:
PythonComponentData
[]
;
}
[
x
:
string
]:
PythonComponentData
[]
Returns
Promise
<
Record
<
string
,
PythonComponentData
<
"static"
|
"dynamic"
,
unknown
>
>
>
fetch
fetch
(
)
:
Promise
<
Record
<
string
,
PythonComponentData
<
"static"
|
"dynamic"
,
unknown
>
>
>
Returns
Promise
<
Record
<
string
,
PythonComponentData
<
"static"
|
"dynamic"
,
unknown
>
>
>
fetch
Inputs
fetch
Inputs
(
)
:
Promise
<
Record
<
string
,
PythonComponentData
<
"static"
|
"dynamic"
,
unknown
>
[]
>
>
Returns
Promise
<
Record
<
string
,
PythonComponentData
<
"static"
|
"dynamic"
,
unknown
>
[]
>
>
set
Code
Template
Getter
set
Code
Template
Getter
(
getter
,
key
?
)
:
void
Parameters
getter
:
(
(
__namedParameters
:
{
inputs
:
Record
<
string
,
unknown
>
;
}
)
=>
string
)
(
__namedParameters
)
:
string
Parameters
__namedParameters
:
{
inputs
:
Record
<
string
,
unknown
>
;
}
inputs
:
Record
<
string
,
unknown
>
Returns
string
key
:
string
= 'exec'
Returns
void
set
Data
Code
Getter
set
Data
Code
Getter
(
key
,
codeGetter
)
:
void
Parameters
key
:
string
codeGetter
:
(
(
)
=>
string
)
(
)
:
string
Returns
string
Returns
void
set
Empty
Newlines
Before
set
Empty
Newlines
Before
(
numNewlines
)
:
void
Parameters
numNewlines
:
number
Returns
void
to
Python
to
Python
(
)
:
Promise
<
string
>
Returns
Promise
<
string
>
Static
collect
Python
Data
collect
Python
Data
(
node
,
nodeInput
,
indentation
,
allVars
)
:
Promise
<
{
allVars
:
Set
<
string
>
;
classes
:
Record
<
string
,
string
>
;
code
:
string
;
importsStatements
:
Set
<
string
>
;
initCode
:
string
[]
;
parserArguments
:
Map
<
string
,
ParseArgumentData
>
;
}
>
Parameters
node
:
any
nodeInput
:
null
|
string
indentation
:
string
allVars
:
Set
<
string
>
Returns
Promise
<
{
allVars
:
Set
<
string
>
;
classes
:
Record
<
string
,
string
>
;
code
:
string
;
importsStatements
:
Set
<
string
>
;
initCode
:
string
[]
;
parserArguments
:
Map
<
string
,
ParseArgumentData
>
;
}
>
Static
is
Dynamic
Input
is
Dynamic
Input
(
inputs
)
:
boolean
Parameters
inputs
:
Record
<
string
,
PythonComponentData
<
"static"
|
"dynamic"
,
unknown
>
[]
>
Returns
boolean
Static
to
Python
Data
to
Python
Data
(
data
)
:
string
Parameters
data
:
unknown
Returns
string
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
cleanup
data
Code
Getters
node
owner
Methods
add
Class
add
Code
add
Dynamic
Output
add
Import
Statement
add
Init
Code
add
Parse
Argument
add
Variable
add
Variables
data
fetch
fetch
Inputs
set
Code
Template
Getter
set
Data
Code
Getter
set
Empty
Newlines
Before
to
Python
collect
Python
Data
is
Dynamic
Input
to
Python
Data
@selenite/graph-editor
Loading...