|
69 | 69 |
|
70 | 70 | <div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxPanningHandler.isPanningTrigger"></a>isPanningTrigger</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxPanningHandler.prototype.isPanningTrigger = function(</td><td class=PParameter nowrap>me</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns true if the given event is a panning trigger for the optional given cell. This returns true if control-shift is pressed or if <a href="#mxPanningHandler.usePopupTrigger" class=LVariable id=link53 onMouseOver="ShowTip(event, 'tt5', 'link53')" onMouseOut="HideTip('tt5')">usePopupTrigger</a> is true and the event is a popup trigger.</p></div></div></div> |
71 | 71 |
|
72 | | -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxPanningHandler.isForcePanningEvent"></a>isForcePanningEvent</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxPanningHandler.prototype.isForcePanningEvent = function(</td><td class=PParameter nowrap>me</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns true if the given <a href="../util/mxMouseEvent-js.html#mxMouseEvent" class=LClass id=link54 onMouseOver="ShowTip(event, 'tt25', 'link54')" onMouseOut="HideTip('tt25')">mxMouseEvent</a> should start panning. This implementation always returns false.</p></div></div></div> |
| 72 | +<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxPanningHandler.isForcePanningEvent"></a>isForcePanningEvent</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxPanningHandler.prototype.isForcePanningEvent = function(</td><td class=PParameter nowrap>me</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns true if the given <a href="../util/mxMouseEvent-js.html#mxMouseEvent" class=LClass id=link54 onMouseOver="ShowTip(event, 'tt25', 'link54')" onMouseOut="HideTip('tt25')">mxMouseEvent</a> should start panning. This implementation always returns true if <a href="#mxPanningHandler.ignoreCell" class=LVariable id=link55 onMouseOver="ShowTip(event, 'tt7', 'link55')" onMouseOut="HideTip('tt7')">ignoreCell</a> is true or for multi touch events.</p></div></div></div> |
73 | 73 |
|
74 | 74 | <div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxPanningHandler.mouseDown"></a>mouseDown</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxPanningHandler.prototype.mouseDown = function(</td><td class=PParameter nowrap>sender,</td></tr><tr><td></td><td class=PParameter nowrap>me</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Handles the event by initiating the panning. By consuming the event all subsequent events of the gesture are redirected to this handler.</p></div></div></div> |
75 | 75 |
|
76 | 76 | <div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxPanningHandler.start"></a>start</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxPanningHandler.prototype.start = function(</td><td class=PParameter nowrap>me</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Starts panning at the given event.</p></div></div></div> |
77 | 77 |
|
78 | | -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxPanningHandler.consumePanningTrigger"></a>consumePanningTrigger</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxPanningHandler.prototype.consumePanningTrigger = function(</td><td class=PParameter nowrap>me</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Consumes the given <a href="../util/mxMouseEvent-js.html#mxMouseEvent" class=LClass id=link55 onMouseOver="ShowTip(event, 'tt25', 'link55')" onMouseOut="HideTip('tt25')">mxMouseEvent</a> if it was a panning trigger in <a href="#mxPanningHandler.mouseDown" class=LFunction id=link56 onMouseOver="ShowTip(event, 'tt26', 'link56')" onMouseOut="HideTip('tt26')">mouseDown</a>. The default is to invoke <a href="../util/mxMouseEvent-js.html#mxMouseEvent.consume" class=LFunction id=link57 onMouseOver="ShowTip(event, 'tt35', 'link57')" onMouseOut="HideTip('tt35')">mxMouseEvent.consume</a>. Note that this will block any further event processing. If you haven’t disabled built-in context menus and require immediate selection of the cell on mouseDown in Safari and/or on the Mac, then use the following code:</p><blockquote><pre class="prettyprint">mxPanningHandler.prototype.consumePanningTrigger = function(me) |
| 78 | +<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxPanningHandler.consumePanningTrigger"></a>consumePanningTrigger</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxPanningHandler.prototype.consumePanningTrigger = function(</td><td class=PParameter nowrap>me</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Consumes the given <a href="../util/mxMouseEvent-js.html#mxMouseEvent" class=LClass id=link56 onMouseOver="ShowTip(event, 'tt25', 'link56')" onMouseOut="HideTip('tt25')">mxMouseEvent</a> if it was a panning trigger in <a href="#mxPanningHandler.mouseDown" class=LFunction id=link57 onMouseOver="ShowTip(event, 'tt26', 'link57')" onMouseOut="HideTip('tt26')">mouseDown</a>. The default is to invoke <a href="../util/mxMouseEvent-js.html#mxMouseEvent.consume" class=LFunction id=link58 onMouseOver="ShowTip(event, 'tt35', 'link58')" onMouseOut="HideTip('tt35')">mxMouseEvent.consume</a>. Note that this will block any further event processing. If you haven’t disabled built-in context menus and require immediate selection of the cell on mouseDown in Safari and/or on the Mac, then use the following code:</p><blockquote><pre class="prettyprint">mxPanningHandler.prototype.consumePanningTrigger = function(me) |
79 | 79 | { |
80 | 80 | if (me.evt.preventDefault) |
81 | 81 | { |
|
96 | 96 |
|
97 | 97 | <div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxPanningHandler.mouseUp"></a>mouseUp</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxPanningHandler.prototype.mouseUp = function(</td><td class=PParameter nowrap>sender,</td></tr><tr><td></td><td class=PParameter nowrap>me</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Handles the event by setting the translation on the view or showing the popupmenu.</p></div></div></div> |
98 | 98 |
|
99 | | -<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxPanningHandler.panGraph"></a>panGraph</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxPanningHandler.prototype.panGraph = function(</td><td class=PParameter nowrap>dx,</td></tr><tr><td></td><td class=PParameter nowrap>dy</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Pans <a href="#mxPanningHandler.graph" class=LVariable id=link58 onMouseOver="ShowTip(event, 'tt2', 'link58')" onMouseOut="HideTip('tt2')">graph</a> by the given amount.</p></div></div></div> |
| 99 | +<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxPanningHandler.panGraph"></a>panGraph</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>mxPanningHandler.prototype.panGraph = function(</td><td class=PParameter nowrap>dx,</td></tr><tr><td></td><td class=PParameter nowrap>dy</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Pans <a href="#mxPanningHandler.graph" class=LVariable id=link59 onMouseOver="ShowTip(event, 'tt2', 'link59')" onMouseOut="HideTip('tt2')">graph</a> by the given amount.</p></div></div></div> |
100 | 100 |
|
101 | 101 | <div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="mxPanningHandler.destroy"></a>destroy</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype prettyprint"><tr><td>mxPanningHandler.prototype.destroy = function()</td></tr></table></blockquote><p>Destroys the handler and all its resources and DOM nodes.</p></div></div></div> |
102 | 102 |
|
|
0 commit comments