Skip to content

@graphty/graphty-element / catalog / channelsFor

Function: channelsFor() ​

channelsFor(target): readonly ChannelDescriptor[]

Defined in: graphty-element/src/session/styles/channels.ts:913

The channels that paint one kind of element, which is what a channel picker offers once the layer has said whether it paints nodes or edges.

Parameters ​

target ​

"node" | "edge"

Nodes or edges.

Returns ​

readonly ChannelDescriptor[]

Every channel for that target, in table order.