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_typestring | 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 snapToCenterboolean Drag from center or not. boxgoog.math.Box Limited area where dragging is possible. opt_targetObjectlime.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 typestring | Array.<string> Event types to swallow. handlerfunction Function to call on event. opt_deny_sharedboolean <optional>
Deny further actions for same event. - Source:
- events/event.js, line 23