Class FlowGraphJsonPointerParserBlock<P, O>
Type Parameters
- P extends any
- O extends WebXRSpatialLayerType
Hierarchy
- FlowGraphCachedOperationBlock<P>
- FlowGraphJsonPointerParserBlock
Constructors
constructor
-
new FlowGraphJsonPointerParserBlock<
P extends unknown,
O extends FlowGraphAssetType,
>(
config: IFlowGraphJsonPointerParserBlockConfiguration,
): FlowGraphJsonPointerParserBlock<P, O>Type Parameters
- P extends unknown
- O extends FlowGraphAssetType
Parameters
- config: IFlowGraphJsonPointerParserBlockConfiguration
the configuration of the block
Returns FlowGraphJsonPointerParserBlock<P, O>
Properties
config
the configuration of the block
data Inputs
The data inputs of the block.
data Outputs
The data outputs of the block.
Readonlygenerate Animations Function
() => (keys: any[], fps: number, easingFunction?: any) => Animation[],
>
Output connection: A function that can be used to get the interpolation animation property info.
Readonlygetter Function
(
target: O,
propertyName: string,
context: FlowGraphContext,
) => P | undefined,
>
Output connection: A function that can be used to get the value of the property.
Readonlyis Valid
Output connection: Whether the value is valid.
metadata
Metadata that can be used by the block.
name
The name of the block.
Readonlyobject
Output connection: The object that contains the property.
Readonlyproperty Name
Output connection: The property name.
Readonlysetter Function
(
target: O,
propertyName: string,
value: P,
context: FlowGraphContext,
) => void,
>
Output connection: A function that can be used to update the value of the property.
Readonlytemplate Component
The component with the templated inputs for the provided path.
unique Id
A randomly generated GUID for each block.
Readonlyvalue
The output of the operation
Methods
deserialize
-
Deserializes this block
Parameters
- _serializationObject: ISerializedFlowGraphBlock
the object to deserialize from
Returns void
- _serializationObject: ISerializedFlowGraphBlock
get Class Name
-
Gets the class name of this block
Returns string
the class name
get Data Input
-
Given the name of a data input, returns the connection if it exists
Parameters
- name: string
the name of the input
Returns FlowGraphDataConnection<any> | undefined
the connection if it exists, undefined otherwise
- name: string
get Data Output
-
Given the name of a data output, returns the connection if it exists
Parameters
- name: string
the name of the output
Returns FlowGraphDataConnection<any> | undefined
the connection if it exists, undefined otherwise
- name: string
register Data Input
-
registerDataInput<T>(
name: string,
richType: RichType<T>,
defaultValue?: T,
): FlowGraphDataConnection<T>Registers a data input on the block.
Type Parameters
- T
Parameters
Returns FlowGraphDataConnection<T>
the created connection
register Data Output
-
registerDataOutput<T>(
name: string,
richType: RichType<T>,
defaultValue?: T,
): FlowGraphDataConnection<T>Registers a data output on the block.
Type Parameters
- T
Parameters
Returns FlowGraphDataConnection<T>
the created connection
serialize
-
serialize(
serializationObject?: any,
_valueSerializeFunction?: (
key: string,
value: any,
serializationObject: any,
) => any,
): voidSerializes this block
Parameters
- serializationObject: any = {}
the object to serialize to
- _valueSerializeFunction: (key: string, value: any, serializationObject: any) => any = defaultValueSerializationFunction
a function that serializes a specific value
Returns void
- serializationObject: any = {}
This block will take a JSON pointer and parse it to get the value from the JSON object. The output is an object and a property name. Optionally, the block can also output the value of the property. This is configurable.