new lime.events.Event(dispatcher)
Dfkit Event object
Parameters:
Name | Type | Description |
---|---|---|
dispatcher |
lime.events.EventDispatcher | Dispatcher. |
- Source:
- events/event.js, line 10
Summary
Methods |
||
---|---|---|
clone () → {lime.events.Event}
Retunr new event with same parameters
|
||
release (opt_type)
Release all swllowed handlers.
|
||
startDrag (snapToCenter, box, opt_targetObject) → {lime.events.Drag}
Start dragging sequence from current event
|
||
swallow (type, handler, opt_deny_shared)
Swallow an event. This means that next event from the same
interaction will be sent directly to handler without any search
|
Methods
-
clone() → {lime.events.Event}
-
Retunr new event with same parameters
- Source:
- events/event.js, line 76
Returns:
event.- Type
- lime.events.Event
-
release(opt_type)
-
Release all swllowed handlers.
Parameters:
Name Type Argument Description opt_type
string | Array.<string> <optional>
Event types to release. - Source:
- events/event.js, line 37
-
startDrag(snapToCenter, box, opt_targetObject) → {lime.events.Drag}
-
Start dragging sequence from current event
Parameters:
Name Type Argument Description snapToCenter
boolean Drag from center or not. box
goog.math.Box Limited area where dragging is possible. opt_targetObject
lime.Node <optional>
Different target object to drag. - Source:
- events/event.js, line 67
Returns:
New Drag object.- Type
- lime.events.Drag
-
swallow(type, handler, opt_deny_shared)
-
Swallow an event. This means that next event from the same interaction will be sent directly to handler without any search
Parameters:
Name Type Argument Description type
string | Array.<string> Event types to swallow. handler
function Function to call on event. opt_deny_shared
boolean <optional>
Deny further actions for same event. - Source:
- events/event.js, line 23