Creates a swap set from the provided elements.
Elements to include; non-HTMLElement values are ignored.
The duration of generated animations, in milliseconds.
Appends an event listener for events whose type is type.
The swap set event type to listen for.
The callback or event listener object that receives the event.
Optionaloptions: boolean | AddEventListenerOptionsOptions that control listener registration.
Returns the first managed member with the given element id.
The element id to match.
The matching member, or undefined if no member matches.
Replays a drag movement against one managed member.
The member and translate offset to apply.
Replays the end of a drag operation for one managed member.
The settle event detail to apply.
Replays a member swap.
The member and peer element to swap.
Removes an event listener previously registered with addEventListener.
The swap set event type.
The callback or event listener object to remove.
Optionaloptions: boolean | EventListenerOptionsOptions that identify the listener registration.
Coordinates pointer dragging for a set of interchangeable DOM elements.
SwapSetswaps members when the dragged member intersects another member and emits typed events that can be replayed against another set.