API

Class FlowGraphJsonPointerParserBlock<P, O>

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.

Type Parameters

Hierarchy

  • FlowGraphCachedOperationBlock<P>
    • FlowGraphJsonPointerParserBlock
Index

the configuration of the block

dataInputs: FlowGraphDataConnection<any>[]

The data inputs of the block.

dataOutputs: FlowGraphDataConnection<any>[]

The data outputs of the block.

generateAnimationsFunction: FlowGraphDataConnection<
    () => (keys: any[], fps: number, easingFunction?: any) => Animation[],
>

Output connection: A function that can be used to get the interpolation animation property info.

getterFunction: FlowGraphDataConnection<
    (
        target: O,
        propertyName: string,
        context: FlowGraphContext,
    ) => P | undefined,
>

Output connection: A function that can be used to get the value of the property.

isValid: FlowGraphDataConnection<boolean>

Output connection: Whether the value is valid.

metadata: any

Metadata that can be used by the block.

name: string

The name of the block.

object: FlowGraphDataConnection<O>

Output connection: The object that contains the property.

propertyName: FlowGraphDataConnection<string>

Output connection: The property name.

setterFunction: FlowGraphDataConnection<
    (
        target: O,
        propertyName: string,
        value: P,
        context: FlowGraphContext,
    ) => void,
>

Output connection: A function that can be used to update the value of the property.

templateComponent: FlowGraphPathConverterComponent

The component with the templated inputs for the provided path.

uniqueId: string = ...

A randomly generated GUID for each block.

The output of the operation

  • Serializes 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