maxGraph/docs/api/classes/InternalMouseEvent.html

55 lines
32 KiB
HTML

<!DOCTYPE html><html class="default"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>InternalMouseEvent | @maxgraph/core</title><meta name="description" content="Documentation for @maxgraph/core"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.body.classList.add(localStorage.getItem("tsd-theme") || "os")</script><header><div class="tsd-page-toolbar"><div class="container"><div class="table-wrap"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget search no-caption">Search</label><input type="text" id="tsd-search-field"/></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@maxgraph/core</a></div><div class="table-cell" id="tsd-widgets"><div id="tsd-filter"><a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a><div class="tsd-filter-group"><div class="tsd-select" id="tsd-filter-visibility"><span class="tsd-select-label">All</span><ul class="tsd-select-list"><li data-value="public">Public</li><li data-value="protected">Public/Protected</li><li data-value="private" class="selected">All</li></ul></div> <input type="checkbox" id="tsd-filter-inherited" checked/><label class="tsd-widget" for="tsd-filter-inherited">Inherited</label></div></div><a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a></div></div></div></div><div class="tsd-page-title"><div class="container"><ul class="tsd-breadcrumb"><li><a href="../index.html">@maxgraph/core</a></li><li><a href="InternalMouseEvent.html">InternalMouseEvent</a></li></ul><h1>Class InternalMouseEvent</h1></div></div></header><div class="container container-main"><div class="row"><div class="col-8 col-content"><section class="tsd-panel tsd-comment"><div class="tsd-comment tsd-typography"><div class="lead">
<p>Base class for all mouse events in mxGraph. A listener for this event should
implement the following methods:</p>
</div><div><pre><code class="language-javascript"><span class="hl-0">graph</span><span class="hl-1">.</span><span class="hl-2">addMouseListener</span><span class="hl-1">(</span><br/><span class="hl-1">{</span><br/><span class="hl-1"> </span><span class="hl-2">mouseDown</span><span class="hl-0">:</span><span class="hl-1"> (</span><span class="hl-0">sender</span><span class="hl-1">, </span><span class="hl-0">evt</span><span class="hl-1">)</span><span class="hl-3">=&gt;</span><br/><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-0">MaxLog</span><span class="hl-1">.</span><span class="hl-2">debug</span><span class="hl-1">(</span><span class="hl-6">&#39;mouseDown&#39;</span><span class="hl-1">);</span><br/><span class="hl-1"> },</span><br/><span class="hl-1"> </span><span class="hl-2">mouseMove</span><span class="hl-0">:</span><span class="hl-1"> (</span><span class="hl-0">sender</span><span class="hl-1">, </span><span class="hl-0">evt</span><span class="hl-1">)</span><span class="hl-3">=&gt;</span><br/><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-0">MaxLog</span><span class="hl-1">.</span><span class="hl-2">debug</span><span class="hl-1">(</span><span class="hl-6">&#39;mouseMove&#39;</span><span class="hl-1">);</span><br/><span class="hl-1"> },</span><br/><span class="hl-1"> </span><span class="hl-2">mouseUp</span><span class="hl-0">:</span><span class="hl-1"> (</span><span class="hl-0">sender</span><span class="hl-1">, </span><span class="hl-0">evt</span><span class="hl-1">)</span><span class="hl-3">=&gt;</span><br/><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-0">MaxLog</span><span class="hl-1">.</span><span class="hl-2">debug</span><span class="hl-1">(</span><span class="hl-6">&#39;mouseUp&#39;</span><span class="hl-1">);</span><br/><span class="hl-1"> }</span><br/><span class="hl-1">});</span>
</code></pre>
<p>Constructor: mxMouseEvent</p>
<p>Constructs a new event object for the given arguments.</p>
</div><dl class="tsd-comment-tags"><dt>param evt</dt><dd><p>Native mouse event.</p>
</dd><dt>param state</dt><dd><p>Optional <CellState> under the mouse.</p>
</dd></dl></div></section><section class="tsd-panel tsd-hierarchy"><h3>Hierarchy</h3><ul class="tsd-hierarchy"><li><span class="target">InternalMouseEvent</span></li></ul></section><section class="tsd-panel-group tsd-index-group"><h2>Index</h2><section class="tsd-panel tsd-index-panel"><div class="tsd-index-content"><section class="tsd-index-section "><h3>Constructors</h3><ul class="tsd-index-list"><li class="tsd-kind-constructor tsd-parent-kind-class"><a href="InternalMouseEvent.html#constructor" class="tsd-kind-icon">constructor</a></li></ul></section><section class="tsd-index-section "><h3>Properties</h3><ul class="tsd-index-list"><li class="tsd-kind-property tsd-parent-kind-class"><a href="InternalMouseEvent.html#consumed" class="tsd-kind-icon">consumed</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="InternalMouseEvent.html#evt" class="tsd-kind-icon">evt</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="InternalMouseEvent.html#graphX" class="tsd-kind-icon">graphX</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="InternalMouseEvent.html#graphY" class="tsd-kind-icon">graphY</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="InternalMouseEvent.html#sourceState" class="tsd-kind-icon">source<wbr/>State</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="InternalMouseEvent.html#state" class="tsd-kind-icon">state</a></li></ul></section><section class="tsd-index-section "><h3>Methods</h3><ul class="tsd-index-list"><li class="tsd-kind-method tsd-parent-kind-class"><a href="InternalMouseEvent.html#consume" class="tsd-kind-icon">consume</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="InternalMouseEvent.html#getCell" class="tsd-kind-icon">get<wbr/>Cell</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="InternalMouseEvent.html#getEvent" class="tsd-kind-icon">get<wbr/>Event</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="InternalMouseEvent.html#getGraphX" class="tsd-kind-icon">get<wbr/>GraphX</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="InternalMouseEvent.html#getGraphY" class="tsd-kind-icon">get<wbr/>GraphY</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="InternalMouseEvent.html#getSource" class="tsd-kind-icon">get<wbr/>Source</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="InternalMouseEvent.html#getState" class="tsd-kind-icon">get<wbr/>State</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="InternalMouseEvent.html#getX" class="tsd-kind-icon">getX</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="InternalMouseEvent.html#getY" class="tsd-kind-icon">getY</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="InternalMouseEvent.html#isConsumed" class="tsd-kind-icon">is<wbr/>Consumed</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="InternalMouseEvent.html#isPopupTrigger" class="tsd-kind-icon">is<wbr/>Popup<wbr/>Trigger</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="InternalMouseEvent.html#isSource" class="tsd-kind-icon">is<wbr/>Source</a></li></ul></section></div></section></section><section class="tsd-panel-group tsd-member-group "><h2>Constructors</h2><section class="tsd-panel tsd-member tsd-kind-constructor tsd-parent-kind-class"><a id="constructor" class="tsd-anchor"></a><h3>constructor</h3><ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">new <wbr/>Internal<wbr/>Mouse<wbr/>Event<span class="tsd-signature-symbol">(</span>evt<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">MouseEvent</span>, state<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="CellState.html" class="tsd-signature-type" data-tsd-kind="Class">CellState</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="InternalMouseEvent.html" class="tsd-signature-type" data-tsd-kind="Class">InternalMouseEvent</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/event/InternalMouseEvent.ts#L48">view/event/InternalMouseEvent.ts:48</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>evt: <span class="tsd-signature-type">MouseEvent</span></h5></li><li><h5>state: <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="CellState.html" class="tsd-signature-type" data-tsd-kind="Class">CellState</a><span class="tsd-signature-symbol"> = null</span></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="InternalMouseEvent.html" class="tsd-signature-type" data-tsd-kind="Class">InternalMouseEvent</a></h4></li></ul></section></section><section class="tsd-panel-group tsd-member-group "><h2>Properties</h2><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="consumed" class="tsd-anchor"></a><h3>consumed</h3><div class="tsd-signature tsd-kind-icon">consumed<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/event/InternalMouseEvent.ts#L62">view/event/InternalMouseEvent.ts:62</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Holds the consumed state of this event.</p>
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="evt" class="tsd-anchor"></a><h3>evt</h3><div class="tsd-signature tsd-kind-icon">evt<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">MouseEvent</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/event/InternalMouseEvent.ts#L67">view/event/InternalMouseEvent.ts:67</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Holds the inner event object.</p>
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="graphX" class="tsd-anchor"></a><h3>graphX</h3><div class="tsd-signature tsd-kind-icon">graphX<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/event/InternalMouseEvent.ts#L73">view/event/InternalMouseEvent.ts:73</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Holds the x-coordinate of the event in the graph. This value is set in
{@link Graph#fireMouseEvent}.</p>
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="graphY" class="tsd-anchor"></a><h3>graphY</h3><div class="tsd-signature tsd-kind-icon">graphY<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/event/InternalMouseEvent.ts#L79">view/event/InternalMouseEvent.ts:79</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Holds the y-coordinate of the event in the graph. This value is set in
{@link Graph#fireMouseEvent}.</p>
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="sourceState" class="tsd-anchor"></a><h3>source<wbr/>State</h3><div class="tsd-signature tsd-kind-icon">source<wbr/>State<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="CellState.html" class="tsd-signature-type" data-tsd-kind="Class">CellState</a></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/event/InternalMouseEvent.ts#L90">view/event/InternalMouseEvent.ts:90</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Holds the <CellState> that was passed to the constructor. This can be
different from <state> depending on the result of {@link Graph#getEventState}.</p>
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class"><a id="state" class="tsd-anchor"></a><h3>state</h3><div class="tsd-signature tsd-kind-icon">state<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="CellState.html" class="tsd-signature-type" data-tsd-kind="Class">CellState</a></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/event/InternalMouseEvent.ts#L84">view/event/InternalMouseEvent.ts:84</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Holds the optional <CellState> associated with this event.</p>
</div></div></section></section><section class="tsd-panel-group tsd-member-group "><h2>Methods</h2><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="consume" class="tsd-anchor"></a><h3>consume</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">consume<span class="tsd-signature-symbol">(</span>preventDefault<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/event/InternalMouseEvent.ts#L179">view/event/InternalMouseEvent.ts:179</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Sets <consumed> to true and invokes preventDefault on the native event
if such a method is defined. This is used mainly to avoid the cursor from
being changed to a text cursor in Webkit. You can use the preventDefault
flag to disable this functionality.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> preventDefault: <span class="tsd-signature-type">boolean</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>Specifies if the native event should be canceled. Default
is true.</p>
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getCell" class="tsd-anchor"></a><h3>get<wbr/>Cell</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">get<wbr/>Cell<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="Cell.html" class="tsd-signature-type" data-tsd-kind="Class">Cell</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/event/InternalMouseEvent.ts#L151">view/event/InternalMouseEvent.ts:151</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Returns the <Cell> in <state> is not null.</p>
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="Cell.html" class="tsd-signature-type" data-tsd-kind="Class">Cell</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getEvent" class="tsd-anchor"></a><h3>get<wbr/>Event</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">get<wbr/>Event<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">MouseEvent</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/event/InternalMouseEvent.ts#L95">view/event/InternalMouseEvent.ts:95</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Returns <evt>.</p>
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">MouseEvent</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getGraphX" class="tsd-anchor"></a><h3>get<wbr/>GraphX</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">get<wbr/>GraphX<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/event/InternalMouseEvent.ts#L130">view/event/InternalMouseEvent.ts:130</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Returns <graphX>.</p>
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getGraphY" class="tsd-anchor"></a><h3>get<wbr/>GraphY</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">get<wbr/>GraphY<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/event/InternalMouseEvent.ts#L137">view/event/InternalMouseEvent.ts:137</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Returns <graphY>.</p>
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getSource" class="tsd-anchor"></a><h3>get<wbr/>Source</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">get<wbr/>Source<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Element</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/event/InternalMouseEvent.ts#L102">view/event/InternalMouseEvent.ts:102</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Returns the target DOM element using {@link Event#getSource} for <evt>.</p>
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Element</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getState" class="tsd-anchor"></a><h3>get<wbr/>State</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">get<wbr/>State<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="CellState.html" class="tsd-signature-type" data-tsd-kind="Class">CellState</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/event/InternalMouseEvent.ts#L144">view/event/InternalMouseEvent.ts:144</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Returns <state>.</p>
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="CellState.html" class="tsd-signature-type" data-tsd-kind="Class">CellState</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getX" class="tsd-anchor"></a><h3>getX</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">getX<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/event/InternalMouseEvent.ts#L116">view/event/InternalMouseEvent.ts:116</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Returns &lt;evt.clientX&gt;.</p>
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="getY" class="tsd-anchor"></a><h3>getY</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">getY<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/event/InternalMouseEvent.ts#L123">view/event/InternalMouseEvent.ts:123</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Returns &lt;evt.clientY&gt;.</p>
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="isConsumed" class="tsd-anchor"></a><h3>is<wbr/>Consumed</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">is<wbr/>Consumed<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/event/InternalMouseEvent.ts#L166">view/event/InternalMouseEvent.ts:166</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Returns <consumed>.</p>
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="isPopupTrigger" class="tsd-anchor"></a><h3>is<wbr/>Popup<wbr/>Trigger</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">is<wbr/>Popup<wbr/>Trigger<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/event/InternalMouseEvent.ts#L159">view/event/InternalMouseEvent.ts:159</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Returns true if the event is a popup trigger.</p>
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="isSource" class="tsd-anchor"></a><h3>is<wbr/>Source</h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">is<wbr/>Source<span class="tsd-signature-symbol">(</span>shape<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="Shape.html" class="tsd-signature-type" data-tsd-kind="Class">Shape</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/maxgraph/maxgraph/blob/598b60e2f/packages/core/src/view/event/InternalMouseEvent.ts#L109">view/event/InternalMouseEvent.ts:109</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Returns true if the given <a href="Shape.html">Shape</a> is the source of <evt>.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>shape: <span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><a href="Shape.html" class="tsd-signature-type" data-tsd-kind="Class">Shape</a></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4></li></ul></section></section></div><div class="col-4 col-menu menu-sticky-wrap menu-highlight"><nav class="tsd-navigation primary"><ul><li class=""><a href="../index.html">Exports</a></li><li class=" tsd-kind-namespace"><a href="../modules/DomHelpers.html">Dom<wbr/>Helpers</a></li><li class=" tsd-kind-namespace"><a href="../modules/cloneUtils.html">clone<wbr/>Utils</a></li><li class=" tsd-kind-namespace"><a href="../modules/constants.html">constants</a></li><li class=" tsd-kind-namespace"><a href="../modules/domUtils.html">dom<wbr/>Utils</a></li><li class=" tsd-kind-namespace"><a href="../modules/eventUtils.html">event<wbr/>Utils</a></li><li class=" tsd-kind-namespace"><a href="../modules/gestureUtils.html">gesture<wbr/>Utils</a></li><li class=" tsd-kind-namespace"><a href="../modules/mathUtils.html">math<wbr/>Utils</a></li><li class=" tsd-kind-namespace"><a href="../modules/stringUtils.html">string<wbr/>Utils</a></li><li class=" tsd-kind-namespace"><a href="../modules/styleUtils.html">style<wbr/>Utils</a></li><li class=" tsd-kind-namespace"><a href="../modules/utils.html">utils</a></li><li class=" tsd-kind-namespace"><a href="../modules/xmlUtils.html">xml<wbr/>Utils</a></li></ul></nav><nav class="tsd-navigation secondary menu-sticky"><ul><li class="current tsd-kind-class"><a href="InternalMouseEvent.html" class="tsd-kind-icon">Internal<wbr/>Mouse<wbr/>Event</a><ul><li class="tsd-kind-constructor tsd-parent-kind-class"><a href="InternalMouseEvent.html#constructor" class="tsd-kind-icon">constructor</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="InternalMouseEvent.html#consumed" class="tsd-kind-icon">consumed</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="InternalMouseEvent.html#evt" class="tsd-kind-icon">evt</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="InternalMouseEvent.html#graphX" class="tsd-kind-icon">graphX</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="InternalMouseEvent.html#graphY" class="tsd-kind-icon">graphY</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="InternalMouseEvent.html#sourceState" class="tsd-kind-icon">source<wbr/>State</a></li><li class="tsd-kind-property tsd-parent-kind-class"><a href="InternalMouseEvent.html#state" class="tsd-kind-icon">state</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="InternalMouseEvent.html#consume" class="tsd-kind-icon">consume</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="InternalMouseEvent.html#getCell" class="tsd-kind-icon">get<wbr/>Cell</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="InternalMouseEvent.html#getEvent" class="tsd-kind-icon">get<wbr/>Event</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="InternalMouseEvent.html#getGraphX" class="tsd-kind-icon">get<wbr/>GraphX</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="InternalMouseEvent.html#getGraphY" class="tsd-kind-icon">get<wbr/>GraphY</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="InternalMouseEvent.html#getSource" class="tsd-kind-icon">get<wbr/>Source</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="InternalMouseEvent.html#getState" class="tsd-kind-icon">get<wbr/>State</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="InternalMouseEvent.html#getX" class="tsd-kind-icon">getX</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="InternalMouseEvent.html#getY" class="tsd-kind-icon">getY</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="InternalMouseEvent.html#isConsumed" class="tsd-kind-icon">is<wbr/>Consumed</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="InternalMouseEvent.html#isPopupTrigger" class="tsd-kind-icon">is<wbr/>Popup<wbr/>Trigger</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="InternalMouseEvent.html#isSource" class="tsd-kind-icon">is<wbr/>Source</a></li></ul></li></ul></nav></div></div></div><footer class="with-border-bottom"><div class="container"><h2>Legend</h2><div class="tsd-legend-group"><ul class="tsd-legend"><li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li><li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li><li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li><li class="tsd-kind-accessor tsd-parent-kind-class"><span class="tsd-kind-icon">Accessor</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited property</span></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited method</span></li><li class="tsd-kind-accessor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited accessor</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static property</span></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static method</span></li></ul></div><h2>Settings</h2><p>Theme <select id="theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></p></div></footer><div class="container tsd-generator"><p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div><div class="overlay"></div><script src="../assets/main.js"></script></body></html>