Cartesian coordinate system
Cartesian coordinate system
(coord-x p)
(coord-y p)
(difference p1 p2)
(connect-dp this id node)
(connect-dp this id node options)
(connect-ds this id node)
(connect-ds this id node options)
(connect-dt this id node)
(connect-dt this id node options)
(setup this)
(teardown this)
Called when the drag ends.
Called when the drag ends.
(can-drag? this si ds-id)
Return whether this drag source can be dragged.
Return whether this drag source can be dragged.
(ds-type this)
(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-drag this si ds-id)
(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-ds this ds-id)
(get-ds this ds-id options)
(remove-ds! this ds-id)
(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? 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? 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-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-enter this si dt-id)
Called when an enter happens on this drop target.
Called when an enter happens on this drop target.
(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-leave this si dt-id)
Called when a leave happens on this drop target.
Called when a leave happens on this drop target.
(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-dt this dt-id)
(get-dt this dt-id options)
(remove-dt! this dt-id)
(hover! this dt-hover-ids options)
(deselect-ds! this ds-id)
Remove a drag source from the drag selection.
Remove a drag source from the drag selection.
(enter! this dt-hover-ids entered-ids options)
(drop! this options)
(end-drag! this options)
(begin-drag! this options)
(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! this options)
(leave! this old-entered-ids new-entered-ids)
(select-ds! this ds-id)
Add a drag source to the drag selection.
Add a drag source to the drag selection.
(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? this)
(dragging? this ds-id)
Return whether the dragging is in progress.
Return whether the dragging is in progress.
(dragging-ids this)
A sequence of drag source ids that are currently dragging.
A sequence of drag source ids that are currently dragging.
(dropped? this)
Return whether a drop action has completed.
Return whether a drop action has completed.
(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? this)
Return whether drag is currently hovering over a drop target.
Return whether drag is currently hovering over a drop target.
(offset this offset-type)
The offset coords for an offset type.
The offset coords for an offset type.
(dt-reg this)
Return a DropTargetRegistry.
Return a DropTargetRegistry.
(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-reg this)
Return a DragSourceRegistry.
Return a DragSourceRegistry.
(selecting? this)
Return whether the selection process is in progress.
Return whether the selection process is in progress.
(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-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-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? this)
Return whether a drop action is in progress.
Return whether a drop action is in progress.
(watch-change this watcher-fn)
(watch-change this watcher-fn options)
(watch-offset this watcher-fn)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close