GraphReFlyTS

API Reference

eventFlow()

Creates an event flow.

Import

import { eventFlow } from "@graphrefly/ts/patterns/event-flow";

Signature

function eventFlow(
	graph: Graph,
	opts: EventFlowOptions<T>,
): EventFlowBundle<T>

Parameters

ParameterTypeDescription
graphGraphGraph that owns the created nodes or projector.
optsEventFlowOptions<T>Options that configure the helper.

Returns

The event flow result.

Example

import { eventFlow } from "@graphrefly/ts/patterns/event-flow";

Source

packages/ts/src/patterns/event-flow.ts