API

Interface IFlowGraphParseOptions

Options for parsing a flow graph.

interface IFlowGraphParseOptions {
    coordinator: FlowGraphCoordinator;
    pathConverter?: IPathToObjectConverter<IObjectAccessor<any, any, any>>;
    valueParseFunction?: (
        key: string,
        serializationObject: any,
        assetsContainer: IAssetContainer,
        scene: Scene,
    ) => any;
}
Index

The flow graph coordinator.

pathConverter?: IPathToObjectConverter<IObjectAccessor<any, any, any>>

A function that converts a path to an object accessor.

valueParseFunction?: (
    key: string,
    serializationObject: any,
    assetsContainer: IAssetContainer,
    scene: Scene,
) => any

A function that parses complex values in a scene.

Type Declaration

    • (
          key: string,
          serializationObject: any,
          assetsContainer: IAssetContainer,
          scene: Scene,
      ): any
    • Parameters

      • key: string

        the key of the value

      • serializationObject: any

        the object to read the value from

      • assetsContainer: IAssetContainer

        the assets container to read assets from

      • scene: Scene

        the scene to read the value from

      Returns any