Liking cljdoc? Tell your friends :D

skidder.protocols


Cartesiancljsprotocol

Cartesian coordinate system

Cartesian coordinate system

coord-xcljs

(coord-x p)

coord-ycljs

(coord-y p)

differencecljs

(difference p1 p2)
sourceraw docstring

Connectorcljsprotocol

connect-dpcljs

(connect-dp this id node)
(connect-dp this id node options)

connect-dscljs

(connect-ds this id node)
(connect-ds this id node options)

connect-dtcljs

(connect-dt this id node)
(connect-dt this id node options)

setupcljs

(setup this)

teardowncljs

(teardown this)
source

DragSourcecljsprotocol

Called when the drag ends.

Called when the drag ends.

can-drag?cljs

(can-drag? this si ds-id)

Return whether this drag source can be dragged.

Return whether this drag source can be dragged.

ds-typecljs

(ds-type this)

on-begin-dragcljs

(on-begin-drag this si ds-id)

Called when the drag begins. The returned value will be available at the drop result.

Called when the drag begins. The returned value will be available at the drop result.

on-end-dragcljs

(on-end-drag this si ds-id)
sourceraw docstring

DragSourceRegistrycljsprotocol

add-ds!cljs

(add-ds! this ds)
(add-ds! this ds ds-id)

Add the drag source into the registry.

Add the drag source into the registry.

get-dscljs

(get-ds this ds-id)
(get-ds this ds-id options)

remove-ds!cljs

(remove-ds! this ds-id)
source

DropTargetcljsprotocol

acceptscljs

(accepts this)

Return a set of drag source types that this drop target accepts.

Return a set of drag source types that this drop target accepts.

can-drop?cljs

(can-drop? this si ds-id dt-id)

Return whether a drop can happen on this drop target.

Return whether a drop can happen on this drop target.

exclusive?cljs

(exclusive? this)

Return whether this drop target should be treated as an exclusive one.

Return whether this drop target should be treated as an exclusive one.

on-dropcljs

(on-drop this si ds-id dt-id)

Called when a drop happens on this drop target.

Called when a drop happens on this drop target.

on-entercljs

(on-enter this si dt-id)

Called when an enter happens on this drop target.

Called when an enter happens on this drop target.

on-hovercljs

(on-hover this si dt-id)

Called when a hover happens on this drop target.

Called when a hover happens on this drop target.

on-leavecljs

(on-leave this si dt-id)

Called when a leave happens on this drop target.

Called when a leave happens on this drop target.
source

DropTargetRegistrycljsprotocol

add-dt!cljs

(add-dt! this dt)
(add-dt! this dt dt-id)

Add the drop target into the registry.

Add the drop target into the registry.

get-dtcljs

(get-dt this dt-id)
(get-dt this dt-id options)

remove-dt!cljs

(remove-dt! this dt-id)
source

NativeDragSourcecljsprotocol

read-drag-datacljs

(read-drag-data this datat)
source

StateActionscljsprotocol

hover!cljs

(hover! this dt-hover-ids options)

deselect-ds!cljs

(deselect-ds! this ds-id)

Remove a drag source from the drag selection.

Remove a drag source from the drag selection.

enter!cljs

(enter! this dt-hover-ids entered-ids options)

drop!cljs

(drop! this options)

end-drag!cljs

(end-drag! this options)

begin-drag!cljs

(begin-drag! this options)

set-drag-data!cljs

(set-drag-data! this data)
(set-drag-data! this ds-id data)

Set the drag data for a drag source.

Set the drag data for a drag source.

publish-drag!cljs

(publish-drag! this options)

leave!cljs

(leave! this old-entered-ids new-entered-ids)

select-ds!cljs

(select-ds! this ds-id)

Add a drag source to the drag selection.

Add a drag source to the drag selection.
source

StateInfocljsprotocol

over?cljs

(over? this dt-id)
(over? this dt-id options)

Return whether the drag is over a drop target.

Return whether the drag is over a drop target.

dragging?cljs

(dragging? this)
(dragging? this ds-id)

Return whether the dragging is in progress.

Return whether the dragging is in progress.

dragging-idscljs

(dragging-ids this)

A sequence of drag source ids that are currently dragging.

A sequence of drag source ids that are currently dragging.

dropped?cljs

(dropped? this)

Return whether a drop action has completed.

Return whether a drop action has completed.

hovering-idscljs

(hovering-ids this)

A sequence of drop target ids that the drag is currently over.

A sequence of drop target ids that the drag is currently over.

hovering?cljs

(hovering? this)

Return whether drag is currently hovering over a drop target.

Return whether drag is currently hovering over a drop target.

offsetcljs

(offset this offset-type)

The offset coords for an offset type.

The offset coords for an offset type.

dt-regcljs

(dt-reg this)

Return a DropTargetRegistry.

Return a DropTargetRegistry.

drag-datacljs

(drag-data this)
(drag-data this ds-id)

Return a map of ds-id => on-begin-drag returned value.

Return a map of `ds-id` => `on-begin-drag` returned value.

ds-regcljs

(ds-reg this)

Return a DragSourceRegistry.

Return a DragSourceRegistry.

selecting?cljs

(selecting? this)

Return whether the selection process is in progress.

Return whether the selection process is in progress.

selected-idscljs

(selected-ids this)

A sequence of drag source ids that are selected for dragging.

A sequence of drag source ids that are selected for dragging.

drop-datacljs

(drop-data this)
(drop-data this ds-id)

Return a map of ds-id => on-drop returned value.

Return a map of `ds-id` => `on-drop` returned value.

dropping-idscljs

(dropping-ids this)

A sequence of drop target ids that the drag is currently dropping.

A sequence of drop target ids that the drag is currently dropping.

dropping?cljs

(dropping? this)

Return whether a drop action is in progress.

Return whether a drop action is in progress.
source

StateWatchercljsprotocol

watch-changecljs

(watch-change this watcher-fn)
(watch-change this watcher-fn options)

watch-offsetcljs

(watch-offset this watcher-fn)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close