PhoenixDnd.Selection (phoenix_dnd v0.1.0)

Copy Markdown View Source

The authoritative node and edge selection for a scene.

Summary

Types

t()

@type t() :: %PhoenixDnd.Selection{
  edge_ids: MapSet.t(String.t()),
  node_ids: MapSet.t(String.t())
}

Functions

edge_selected?(selection, id)

@spec edge_selected?(t(), String.t()) :: boolean()

new!(selection)

@spec new!(map() | keyword() | [String.t()] | t()) :: t()

node_selected?(selection, id)

@spec node_selected?(t(), String.t()) :: boolean()