Skip to content

Home > @unseenco/backstage-dataverse

backstage-dataverse package

The animation-optimized FRP library powering the internals of Backstage.js.

Classes

ClassDescription
AtomWraps an object whose (sub)properties can be individually tracked.
PointerProxyAllows creating pointer-prisms where the pointer can be switched out.
TickerThe Ticker class helps schedule callbacks. Scheduled callbacks are executed per tick. Ticks can be triggered by an external scheduling strategy, e.g. a raf.

Functions

FunctionDescription
isPrism(d)Returns whether d is a prism.
iterateAndCountTicks(pointerOrPrism)
iterateOver(pointerOrPrism)
pointer(args)Creates a pointer to a (nested) property of an Atom.

Interfaces

InterfaceDescription
PointerToPrismProviderInterface for objects that can provide a prism at a certain path.
PrismCommon interface for prisms.

Variables

VariableDescription
getPointerPartsReturns the root object and the path of the pointer.
isPointerReturns whether p is a pointer.
pointerToPrismReturns a prism of the value at the provided pointer. Prisms are cached per pointer.
prismCreates a prism from the passed function that adds all prisms referenced in it as dependencies, and reruns the function when these change.
valConvenience function that returns a plain value from its argument, whether it is a pointer, a prism or a plain value itself.

Type Aliases

Type AliasDescription
PointerThe type of Atom pointers. See pointer() for an explanation of pointers.
PointerMeta
PointerTypeA wrapper type for the type a Pointer points to.