Class: CUI.Draggable
Defined in: | base/DragDropSelect/Draggable.coffee |
Inherits: | CUI.DragDropSelect |
Overview
- coffeescript-ui - Coffeescript User Interface System (CUI)
- Copyright (c) 2013 - 2016 Programmfabrik GmbH
- MIT Licence
- https://github.com/programmfabrik/coffeescript-ui, http://www.coffeescript-ui.org
Direct Known Subclasses
CUI.Dragscroll CUI.Lasso CUI.Movable CUI.Sortable CUI.ListViewDraggable
Variables Summary
- cls =
-
"draggable"
Variable inherited from CUI.DragDropSelect
Class Method Summary
- . (void) limitRect(pos, limitRect, defaults = {}) keep pos inside certain constraints pos.fix is an Array containing any of "n","w","e","s" limitRect: min_w, min_h, max_w, max_h, min_x, max_x, min_y, max_y !!! The order of the parameters is how we want them, in Movable it is different for compability reasons
Instance Method Summary
- # (void) initOpts()
- # (void) readOpts()
- # (void) getClass()
- # (void) supportTouch()
- # (void) __killTimeout()
- # (void) __cleanup()
- # (void) destroy()
- # (void) init()
- # (void) init_drag(ev, $target)
- # (void) getCursor()
- # (void) __startDrag(ev, $target, diff)
- # (void) before_drag() call after first mousedown
- # (void) start_drag(ev, $target, diff)
- # (void) do_drag(ev, $target, diff) do drag first call
- # (void) cleanup_drag(ev)
- # (void) stop_drag(ev)
- # (void) __finish_drag(ev)
- # (void) end_drag(ev)
- # (void) get_helper_pos(ev, gd, diff)
- # (void) get_helper_contain_element()
- # (void) position_helper(ev, $target, diff)
- # (void) getCloneSourceForHelper()
- # (void) get_axis()
- # (void) get_helper(ev, gd, diff)
- # (void) get_init_helper_pos(node, gd, offset = { top: 0, left: 0 })
- # (void) init_helper(ev, $target, diff)
Inherited Method Summary
Methods inherited from
CUI.DragDropSelect
#initOpts #readOpts #getClass #destroy #init .getInstance #getElementClass #getUniqueId #getOpts #getOpt #hasOpt #getSetOpt #hasSetOpt #copy #mergeOpt #removeOpt #addOpt #addOpts #mergeOpts #__getCheckMap #readOptsFromAttr #proxy #isDestroyed .getOptKeys
Class Method Details
.
(void)
limitRect(pos, limitRect, defaults = {})
keep pos inside certain constraints pos.fix is an Array containing any of "n","w","e","s" limitRect: min_w, min_h, max_w, max_h, min_x, max_x, min_y, max_y !!! The order of the parameters is how we want them, in Movable it is different for compability reasons
Instance Method Details
#
(void)
initOpts()
#
(void)
readOpts()
#
(void)
getClass()
#
(void)
supportTouch()
#
(void)
__killTimeout()
#
(void)
__cleanup()
#
(void)
destroy()
#
(void)
init()
#
(void)
init_drag(ev, $target)
#
(void)
getCursor()
#
(void)
__startDrag(ev, $target, diff)
#
(void)
before_drag()
call after first mousedown
#
(void)
start_drag(ev, $target, diff)
#
(void)
do_drag(ev, $target, diff)
do drag first call
#
(void)
cleanup_drag(ev)
#
(void)
stop_drag(ev)
#
(void)
__finish_drag(ev)
#
(void)
end_drag(ev)
#
(void)
get_helper_pos(ev, gd, diff)
#
(void)
get_helper_contain_element()
#
(void)
position_helper(ev, $target, diff)
#
(void)
getCloneSourceForHelper()
#
(void)
get_axis()
#
(void)
get_helper(ev, gd, diff)
#
(void)
get_init_helper_pos(node, gd, offset = {
top: 0,
left: 0
})
#
(void)
init_helper(ev, $target, diff)