gojs
Version:
Interactive diagrams, charts, and graphs, such as trees, flowcharts, orgcharts, UML, BPMN, or business diagrams
172 lines • 52.9 kB
HTML
<!DOCTYPE html><html class="default"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>InputEvent | GoJS API</title><meta name="description" content="Documentation for GoJS API"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../../assets/css/style.css"/><link rel="stylesheet" href="../assets/style-tsd.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><nav id="navTop" class="w-full z-30 top-0 text-white bg-nwoods-primary"><div class="w-full container max-w-screen-lg mx-auto flex flex-wrap sm:flex-nowrap items-center justify-between mt-0 py-2"><div class="md:pl-4"><a class="text-white hover:text-white no-underline hover:no-underline\n font-bold text-2xl lg:text-4xl rounded-lg hover:bg-nwoods-secondary" href="../../index.html"><h1 class="my-0 p-1 leading-none">GoJS</h1></a></div><button id="topnavButton" class="rounded-lg sm:hidden focus:outline-none focus:ring" aria-label="Navigation"><svg fill="currentColor" viewBox="0 0 20 20" class="w-6 h-6"><path id="topnavOpen" fill-rule="evenodd" d="M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM9 15a1 1 0 011-1h6a1 1 0 110 2h-6a1 1 0 01-1-1z" clip-rule="evenodd"></path><path id="topnavClosed" class="hidden" fill-rule="evenodd" d="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z" clip-rule="evenodd"></path></svg></button><div id="topnavList" class="hidden sm:block items-center w-auto mt-0 text-white p-0 z-20"><ul class="list-reset list-none font-semibold flex justify-end flex-wrap sm:flex-nowrap items-center px-0 pb-0"><li class="p-1 sm:p-0"><a class="topnav-link" href="../../learn/index.html">Learn</a></li><li class="p-1 sm:p-0"><a class="topnav-link" href="../../samples/index.html">Samples</a></li><li class="p-1 sm:p-0"><a class="topnav-link" href="../../intro/index.html">Intro</a></li><li class="p-1 sm:p-0"><a class="topnav-link" href="../../api/index.html">API</a></li><li class="p-1 sm:p-0"><a class="topnav-link" href="https://www.nwoods.com/products/register.html">Register</a></li><li class="p-1 sm:p-0"><a class="topnav-link" href="../../download.html">Download</a></li><li class="p-1 sm:p-0"><a class="topnav-link" href="https://forum.nwoods.com/c/gojs/11">Forum</a></li><li class="p-1 sm:p-0"><a class="topnav-link" href="https://www.nwoods.com/contact.html" target="_blank" rel="noopener" id="contactBtn">Contact</a></li><li class="p-1 sm:p-0"><a class="topnav-link" href="https://www.nwoods.com/sales/index.html" target="_blank" rel="noopener" id="buyBtn">Buy</a></li></ul></div></div><hr class="border-b border-gray-600 opacity-50 my-0 py-0"/></nav><div class="tsd-page-header"><div class="tsd-page-toolbar"><div class="w-full max-w-screen-xl mx-auto px-2"><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">GoJS API</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"/><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><div class="tsd-page-title"><div class="w-full max-w-screen-xl mx-auto px-2"><div class="top-copyright"><b>GoJS</b>® Diagramming Components<br/>version 2.3.8<br/>by <a href="https://www.nwoods.com/">Northwoods Software®</a></div><div><h1>Class InputEvent </h1></div></div></div></header><div class="tsd w-full max-w-screen-xl mx-auto pb-4"><div class="row px-2 w-full"><div class="col-8 col-content"><section class="tsd-panel tsd-hierarchy"><h3>Hierarchy</h3><ul class="tsd-hierarchy"><li><span class="target">InputEvent</span></li></ul></section><section class="tsd-panel tsd-comment"><div class="tsd-comment tsd-typography">
<p>An InputEvent represents a mouse or keyboard or touch event.
The principal properties hold information about a particular input event.
These properties include the <a href="InputEvent.html#documentPoint">documentPoint</a> at which a mouse event
occurred in document coordinates,
the corresponding point in view/element coordinates, <a href="InputEvent.html#viewPoint">viewPoint</a>,
the <a href="InputEvent.html#key">key</a> for keyboard events,
and the <a href="InputEvent.html#modifiers">modifiers</a> and <a href="InputEvent.html#button">button</a> at the time.
Additional descriptive properties include <a href="InputEvent.html#clickCount">clickCount</a>, <a href="InputEvent.html#delta">delta</a>,
<a href="InputEvent.html#timestamp">timestamp</a>, and the source event <a href="InputEvent.html#event">event</a> (if available).</p>
<div><p>Many of its properties are provided for convenient access to the state of the input event,
such as asking whether the <a href="InputEvent.html#control">control</a> key was held down at the time,
or the <a href="InputEvent.html#targetObject">targetObject</a> (a <a href="GraphObject.html">GraphObject</a>) that the mouse was over .</p>
<p>When real events fire on the Diagram, InputEvents are created automatically set update the value of <a href="Diagram.html#lastInput">Diagram.lastInput</a>.
These events set the value of <a href="InputEvent.html#event">event</a> with the backing browser-defined Event,
which may be a MouseEvent, KeyboardEvent, PointerEvent, and so on.</p>
<p>InputEvents backed by MouseEvents set both <a href="InputEvent.html#button">button</a>, the button that caused the action,
and <a href="InputEvent.html#buttons">buttons</a>, the set of buttons currently pressed after the action has happened.
By default a user-created InputEvent sets <a href="InputEvent.html#button">button</a> and <a href="InputEvent.html#buttons">buttons</a> as if the event was a left-click.</p>
<p>You can create InputEvents and set the value of <a href="Diagram.html#lastInput">Diagram.lastInput</a> in order to simulate user actions in tools.
This can be useful for testing. See the <a href="../../extensions/Robot.html">Robot extension sample</a> for
an example of creating InputEvents to simulate user input.</p>
</div></div></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="InputEvent.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-accessor tsd-parent-kind-class"><a href="InputEvent.html#alt" class="tsd-kind-icon">alt</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="InputEvent.html#bubbles" class="tsd-kind-icon">bubbles</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="InputEvent.html#button" class="tsd-kind-icon">button</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="InputEvent.html#buttons" class="tsd-kind-icon">buttons</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="InputEvent.html#clickCount" class="tsd-kind-icon">click<wbr/>Count</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="InputEvent.html#control" class="tsd-kind-icon">control</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="InputEvent.html#delta" class="tsd-kind-icon">delta</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="InputEvent.html#diagram" class="tsd-kind-icon">diagram</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="InputEvent.html#documentPoint" class="tsd-kind-icon">document<wbr/>Point</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="InputEvent.html#down" class="tsd-kind-icon">down</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="InputEvent.html#event" class="tsd-kind-icon">event</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="InputEvent.html#handled" class="tsd-kind-icon">handled</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="InputEvent.html#isMultiTouch" class="tsd-kind-icon">is<wbr/>Multi<wbr/>Touch</a></li><li class="tsd-kind-get-signature tsd-parent-kind-class"><a href="InputEvent.html#isTouchEvent" class="tsd-kind-icon">is<wbr/>Touch<wbr/>Event</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="InputEvent.html#key" class="tsd-kind-icon">key</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="InputEvent.html#left" class="tsd-kind-icon">left</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="InputEvent.html#meta" class="tsd-kind-icon">meta</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="InputEvent.html#middle" class="tsd-kind-icon">middle</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="InputEvent.html#modifiers" class="tsd-kind-icon">modifiers</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="InputEvent.html#right" class="tsd-kind-icon">right</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="InputEvent.html#shift" class="tsd-kind-icon">shift</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="InputEvent.html#targetDiagram" class="tsd-kind-icon">target<wbr/>Diagram</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="InputEvent.html#targetObject" class="tsd-kind-icon">target<wbr/>Object</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="InputEvent.html#timestamp" class="tsd-kind-icon">timestamp</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="InputEvent.html#up" class="tsd-kind-icon">up</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="InputEvent.html#viewPoint" class="tsd-kind-icon">view<wbr/>Point</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="InputEvent.html#copy" class="tsd-kind-icon">copy</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 class="tsd-anchor-link"> constructor<a href="#constructor" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">new <wbr/>Input<wbr/>Event<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="InputEvent.html" class="tsd-signature-type" data-tsd-kind="Class">InputEvent</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><div class="tsd-comment tsd-typography">
<p>The InputEvent class constructor produces an empty InputEvent.
You should never need to call this constructor.
But if you do, you must first set <a href="InputEvent.html#diagram">diagram</a> to the Diagram before any other use.</p>
</div><h4 class="tsd-returns-title">Returns <a href="InputEvent.html" class="tsd-signature-type" data-tsd-kind="Class">InputEvent</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-accessor tsd-parent-kind-class"><a id="alt" class="tsd-anchor"></a><h3 class="tsd-anchor-link"> alt<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><a href="#alt" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-descriptions"><li class="tsd-description"><div class="tsd-comment tsd-typography">
<p>Gets or sets whether the alt key is being held down.
This is true if the key was pressed at the time of the event.</p>
<dl class="tsd-comment-tags"><dt class="">see</dt><dd><p><a href="InputEvent.html#modifiers">modifiers</a>, <a href="InputEvent.html#control">control</a>, <a href="InputEvent.html#shift">shift</a>, <a href="InputEvent.html#meta">meta</a></p>
</dd></dl></div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="bubbles" class="tsd-anchor"></a><h3 class="tsd-anchor-link"> bubbles<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><a href="#bubbles" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-descriptions"><li class="tsd-description"><div class="tsd-comment tsd-typography">
<p>Gets or sets whether the underlying <a href="InputEvent.html#event">event</a> is prevented from bubbling up
the hierarchy of HTML elements outside of the Diagram and whether any default action is canceled.
Setting this is uncommon, but may be needed in some <a href="CommandHandler.html">CommandHandler</a> overrides in order to
pass along events, such as keystrokes, to parent elements of the Diagram.</p>
<div><p>Some event handlers may set this to true if the event should continue beyond the diagram's DIV
and result in any default behaviors by the user-agent.
The default value is false.</p>
</div><dl class="tsd-comment-tags"><dt class="">since</dt><dd><p>2.2</p>
</dd><dt class="">see</dt><dd><p><a href="InputEvent.html#handled">handled</a></p>
</dd></dl></div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="button" class="tsd-anchor"></a><h3 class="tsd-anchor-link"> button<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><a href="#button" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-descriptions"><li class="tsd-description"><div class="tsd-comment tsd-typography">
<p>Gets or sets the numerical value representing the mouse button that caused this event.</p>
<div><p>Only one mouse button can cause an event at a time,
but the set of all buttons currently pressed is kept in <a href="InputEvent.html#buttons">buttons</a>.</p>
<p>This property describes nothing during a <code>mousemove</code> event,
since no button press causes the event. Instead, use the convenience properties
<a href="InputEvent.html#left">left</a>, <a href="InputEvent.html#middle">middle</a>, or <a href="InputEvent.html#right">right</a>, or use the value
of <a href="InputEvent.html#buttons">buttons</a> to determine which mouse buttons are
held during <code>mousemove</code> events.</p>
<p>Common values for this property:</p>
<ul>
<li>0: left mouse button</li>
<li>1: middle mouse button</li>
<li>2: right mouse button</li>
</ul>
<p>Other values are possible if the mouse has additional buttons.</p>
<p>If there is no associated <a href="InputEvent.html#event">event</a>, setting this also
sets the <a href="InputEvent.html#buttons">buttons</a> flags to only this button.</p>
<p>This property is valid if this is a mouse event.</p>
</div><dl class="tsd-comment-tags"><dt class="">see</dt><dd><p><a href="InputEvent.html#buttons">buttons</a>, <a href="InputEvent.html#left">left</a>, <a href="InputEvent.html#middle">middle</a>, <a href="InputEvent.html#right">right</a></p>
</dd></dl></div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="buttons" class="tsd-anchor"></a><h3 class="tsd-anchor-link"> buttons<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><a href="#buttons" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-descriptions"><li class="tsd-description"><div class="tsd-comment tsd-typography">
<p>Gets or sets the set of buttons that are currently being held down.
If this is a <code>mouseup</code> event, this set of buttons does not include
the button that was just released, which will be the value of <a href="InputEvent.html#button">button</a>.</p>
<div><p>Common values for this property:</p>
<ul>
<li>0: not holding down any button</li>
<li>1: left mouse button</li>
<li>2: right mouse button</li>
<li>3: both left and right mouse buttons</li>
<li>4: middle mouse button</li>
<li>5: middle and left mouse buttons</li>
<li>6: middle and right mouse buttons</li>
<li>7: all three common mouse buttons</li>
</ul>
<p>Other values are possible if the mouse has additional buttons.</p>
<p>This property is valid if this is a mouse event.</p>
</div><dl class="tsd-comment-tags"><dt class="">see</dt><dd><p><a href="InputEvent.html#button">button</a>, <a href="InputEvent.html#left">left</a>, <a href="InputEvent.html#middle">middle</a>, <a href="InputEvent.html#right">right</a></p>
</dd></dl></div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="clickCount" class="tsd-anchor"></a><h3 class="tsd-anchor-link"> click<wbr/>Count<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><a href="#clickCount" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-descriptions"><li class="tsd-description"><div class="tsd-comment tsd-typography">
<p>Gets or sets whether this event represents a click or a double-click.
It is zero if not a click; one if a single-click; two if a double-click.
This property is valid if this is a mouse event.</p>
</div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="control" class="tsd-anchor"></a><h3 class="tsd-anchor-link"> control<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><a href="#control" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-descriptions"><li class="tsd-description"><div class="tsd-comment tsd-typography">
<p>Gets or sets whether the control key is being held down.
This is true if the key was pressed at the time of the event.</p>
<dl class="tsd-comment-tags"><dt class="">see</dt><dd><p><a href="InputEvent.html#modifiers">modifiers</a>, <a href="InputEvent.html#shift">shift</a>, <a href="InputEvent.html#alt">alt</a>, <a href="InputEvent.html#meta">meta</a></p>
</dd></dl></div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="delta" class="tsd-anchor"></a><h3 class="tsd-anchor-link"> delta<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><a href="#delta" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-descriptions"><li class="tsd-description"><div class="tsd-comment tsd-typography">
<p>Gets or sets the amount of change associated with a mouse-wheel rotation.
It is an abstract number, either positive or negative.
This property is valid if this is a mouse-wheel event.</p>
</div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="diagram" class="tsd-anchor"></a><h3 class="tsd-anchor-link"> diagram<span class="tsd-signature-symbol">: </span><a href="Diagram.html" class="tsd-signature-type" data-tsd-kind="Class">Diagram</a><a href="#diagram" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-descriptions"><li class="tsd-description"><div class="tsd-comment tsd-typography">
<p>Gets the source diagram associated with the event.</p>
</div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="documentPoint" class="tsd-anchor"></a><h3 class="tsd-anchor-link"> document<wbr/>Point<span class="tsd-signature-symbol">: </span><a href="Point.html" class="tsd-signature-type" data-tsd-kind="Class">Point</a><a href="#documentPoint" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-descriptions"><li class="tsd-description"><div class="tsd-comment tsd-typography">
<p>Gets or sets the point at which this input event occurred, in document coordinates.
The Point is in document coordinates, the same as the <a href="GraphObject.html#position">GraphObject.position</a>
for <a href="Part.html">Part</a>s in the diagram.
This should be valid for mouse events.
For keyboard events, this is the last available mouse point.</p>
<dl class="tsd-comment-tags"><dt class="">see</dt><dd><p><a href="InputEvent.html#viewPoint">viewPoint</a>, <a href="Diagram.html#transformViewToDoc">Diagram.transformViewToDoc</a>, <a href="Diagram.html#transformDocToView">Diagram.transformDocToView</a></p>
</dd></dl></div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="down" class="tsd-anchor"></a><h3 class="tsd-anchor-link"> down<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><a href="#down" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-descriptions"><li class="tsd-description"><div class="tsd-comment tsd-typography">
<p>Gets or sets whether the InputEvent represents a mouse-down or a key-down event.
The default value is false.</p>
<dl class="tsd-comment-tags"><dt class="">since</dt><dd><p>1.1</p>
</dd></dl></div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="event" class="tsd-anchor"></a><h3 class="tsd-anchor-link"> event<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Event</span><a href="#event" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-descriptions"><li class="tsd-description"><div class="tsd-comment tsd-typography">
<p>Gets or sets the platform's user-agent-supplied event for this event.
It may be null if no underlying event exists.</p>
<dl class="tsd-comment-tags"><dt class="">see</dt><dd><p><a href="InputEvent.html#timestamp">timestamp</a></p>
</dd></dl></div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="handled" class="tsd-anchor"></a><h3 class="tsd-anchor-link"> handled<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><a href="#handled" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-descriptions"><li class="tsd-description"><div class="tsd-comment tsd-typography">
<p>Gets or sets whether an InputEvent that applies to a <a href="GraphObject.html">GraphObject</a> and bubbles
up the chain of containing <a href="Panel.html">Panel</a>s is stopped from continuing up the chain.</p>
<div><p>Some event handlers may set this to true to avoid getting any behavior from the containing Panels.
The default value is false.</p>
</div></div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="isMultiTouch" class="tsd-anchor"></a><h3 class="tsd-anchor-link"> is<wbr/>Multi<wbr/>Touch<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><a href="#isMultiTouch" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-descriptions"><li class="tsd-description"><div class="tsd-comment tsd-typography">
<p>This property is true when the InputEvent is caused by a touch event that registered more than one touch.</p>
<dl class="tsd-comment-tags"><dt class="">see</dt><dd><p><a href="InputEvent.html#isTouchEvent">isTouchEvent</a></p>
</dd><dt class="">since</dt><dd><p>1.5</p>
</dd></dl></div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-get-signature tsd-parent-kind-class"><a id="isTouchEvent" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagReadOnly">Read-only</span> is<wbr/>Touch<wbr/>Event<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><a href="#isTouchEvent" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-descriptions"><li class="tsd-description"><div class="tsd-comment tsd-typography">
<p>This read-only property is true when the InputEvent is caused by a touch event.</p>
<dl class="tsd-comment-tags"><dt class="">see</dt><dd><p><a href="InputEvent.html#isMultiTouch">isMultiTouch</a></p>
</dd><dt class="">since</dt><dd><p>1.5</p>
</dd></dl></div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="key" class="tsd-anchor"></a><h3 class="tsd-anchor-link"> key<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><a href="#key" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-descriptions"><li class="tsd-description"><div class="tsd-comment tsd-typography">
<p>Gets or sets the key pressed or released as this event.
This property is valid if this is a keyboard event.</p>
</div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="left" class="tsd-anchor"></a><h3 class="tsd-anchor-link"> left<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><a href="#left" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-descriptions"><li class="tsd-description"><div class="tsd-comment tsd-typography">
<p>Gets or sets whether the logical left mouse button is being held down.
This is true if the button was pressed at the time of the event.</p>
<div><p>If this InputEvent has a <a href="InputEvent.html#event">event</a> of type <code>MouseEvent</code> with <code>e.type</code> of "mouseup" or "mousedown",
this property uses the value of <a href="InputEvent.html#button">button</a>. Otherwise, it uses the value of <a href="InputEvent.html#buttons">buttons</a>.</p>
<p>When setting, this sets the value of <a href="InputEvent.html#buttons">buttons</a>.</p>
</div><dl class="tsd-comment-tags"><dt class="">see</dt><dd><p><a href="InputEvent.html#button">button</a>, <a href="InputEvent.html#middle">middle</a>, <a href="InputEvent.html#right">right</a></p>
</dd></dl></div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="meta" class="tsd-anchor"></a><h3 class="tsd-anchor-link"> meta<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><a href="#meta" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-descriptions"><li class="tsd-description"><div class="tsd-comment tsd-typography">
<p>Gets or sets whether the meta key is being held down.
This is true if the key was pressed at the time of the event.</p>
<dl class="tsd-comment-tags"><dt class="">see</dt><dd><p><a href="InputEvent.html#modifiers">modifiers</a>, <a href="InputEvent.html#control">control</a>, <a href="InputEvent.html#shift">shift</a>, <a href="InputEvent.html#alt">alt</a></p>
</dd></dl></div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="middle" class="tsd-anchor"></a><h3 class="tsd-anchor-link"> middle<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><a href="#middle" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-descriptions"><li class="tsd-description"><div class="tsd-comment tsd-typography">
<p>Gets or sets whether the logical middle mouse button is being held down.
This is true if the button was pressed at the time of the event.</p>
<dl class="tsd-comment-tags"><dt class="">see</dt><dd><p><a href="InputEvent.html#button">button</a>, <a href="InputEvent.html#left">left</a>, <a href="InputEvent.html#right">right</a></p>
</dd></dl></div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="modifiers" class="tsd-anchor"></a><h3 class="tsd-anchor-link"> modifiers<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><a href="#modifiers" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-descriptions"><li class="tsd-description"><div class="tsd-comment tsd-typography">
<p>Gets or sets the modifier keys that were used with the mouse or keyboard event.
The number will be a combination of flags representing Control, Shift, Alt or Meta.</p>
<dl class="tsd-comment-tags"><dt class="">see</dt><dd><p><a href="InputEvent.html#control">control</a>, <a href="InputEvent.html#shift">shift</a>, <a href="InputEvent.html#alt">alt</a>, <a href="InputEvent.html#meta">meta</a></p>
</dd></dl></div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="right" class="tsd-anchor"></a><h3 class="tsd-anchor-link"> right<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><a href="#right" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-descriptions"><li class="tsd-description"><div class="tsd-comment tsd-typography">
<p>Gets or sets whether the logical right mouse button is being held down.
This is true if the button was pressed at the time of the event.</p>
<dl class="tsd-comment-tags"><dt class="">see</dt><dd><p><a href="InputEvent.html#button">button</a>, <a href="InputEvent.html#left">left</a>, <a href="InputEvent.html#middle">middle</a></p>
</dd></dl></div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="shift" class="tsd-anchor"></a><h3 class="tsd-anchor-link"> shift<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><a href="#shift" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-descriptions"><li class="tsd-description"><div class="tsd-comment tsd-typography">
<p>Gets or sets whether the shift key is being held down.
This is true if the key was pressed at the time of the event.</p>
<dl class="tsd-comment-tags"><dt class="">see</dt><dd><p><a href="InputEvent.html#modifiers">modifiers</a>, <a href="InputEvent.html#control">control</a>, <a href="InputEvent.html#alt">alt</a>, <a href="InputEvent.html#meta">meta</a></p>
</dd></dl></div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="targetDiagram" class="tsd-anchor"></a><h3 class="tsd-anchor-link"> target<wbr/>Diagram<span class="tsd-signature-symbol">: </span><a href="Diagram.html" class="tsd-signature-type" data-tsd-kind="Class">Diagram</a><a href="#targetDiagram" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-descriptions"><li class="tsd-description"><div class="tsd-comment tsd-typography">
<p>Gets or sets the diagram associated with the canvas that the event is currently targeting.</p>
</div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="targetObject" class="tsd-anchor"></a><h3 class="tsd-anchor-link"> target<wbr/>Object<span class="tsd-signature-symbol">: </span><a href="GraphObject.html" class="tsd-signature-type" data-tsd-kind="Class">GraphObject</a><a href="#targetObject" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-descriptions"><li class="tsd-description"><div class="tsd-comment tsd-typography">
<p>Gets or sets the <a href="GraphObject.html">GraphObject</a> that is at the current mouse point, if any.</p>
<div><p>For those events that are bubbled up the chain of parent <a href="Panel.html">Panel</a>s,
this property provides access to the original <a href="GraphObject.html">GraphObject</a> where the input event occurred.</p>
</div><dl class="tsd-comment-tags"><dt class="">see</dt><dd><p><a href="InputEvent.html#handled">handled</a></p>
</dd></dl></div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="timestamp" class="tsd-anchor"></a><h3 class="tsd-anchor-link"> timestamp<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><a href="#timestamp" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-descriptions"><li class="tsd-description"><div class="tsd-comment tsd-typography">
<p>Gets or sets the time at which the event occurred, in milliseconds.</p>
</div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="up" class="tsd-anchor"></a><h3 class="tsd-anchor-link"> up<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><a href="#up" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-descriptions"><li class="tsd-description"><div class="tsd-comment tsd-typography">
<p>Gets or sets whether the InputEvent represents a mouse-up or a key-up event.
The default value is false.</p>
<dl class="tsd-comment-tags"><dt class="">since</dt><dd><p>1.1</p>
</dd></dl></div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="viewPoint" class="tsd-anchor"></a><h3 class="tsd-anchor-link"> view<wbr/>Point<span class="tsd-signature-symbol">: </span><a href="Point.html" class="tsd-signature-type" data-tsd-kind="Class">Point</a><a href="#viewPoint" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-descriptions"><li class="tsd-description"><div class="tsd-comment tsd-typography">
<p>Gets or sets the point at which this input event occurred.
The Point is in view coordinates within the viewport, not in document coordinates.
This should be valid for mouse events.
For keyboard events, this is the last available mouse point.</p>
<dl class="tsd-comment-tags"><dt class="">see</dt><dd><p><a href="InputEvent.html#documentPoint">documentPoint</a>, <a href="Diagram.html#transformViewToDoc">Diagram.transformViewToDoc</a>, <a href="Diagram.html#transformDocToView">Diagram.transformDocToView</a></p>
</dd></dl></div></li></ul></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="copy" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagVirtual">Virtual</span> copy<a href="#copy" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class"><li class="tsd-signature tsd-kind-icon">copy<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="InputEvent.html" class="tsd-signature-type" data-tsd-kind="Class">InputEvent</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><div class="tsd-comment tsd-typography">
<p>Make a copy of this InputEvent.</p>
</div><h4 class="tsd-returns-title">Returns <a href="InputEvent.html" class="tsd-signature-type" data-tsd-kind="Class">InputEvent</a></h4><div></div></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">GoJS Class Index</a></li></ul></nav><nav class="tsd-navigation secondary menu-sticky"><ul><li class="current tsd-kind-class"><a href="InputEvent.html" class="tsd-kind-icon">Input<wbr/>Event</a><ul><li class="tsd-kind-constructor tsd-parent-kind-class"><a href="InputEvent.html#constructor" class="tsd-kind-icon">constructor</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="InputEvent.html#alt" class="tsd-kind-icon">alt</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="InputEvent.html#bubbles" class="tsd-kind-icon">bubbles</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="InputEvent.html#button" class="tsd-kind-icon">button</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="InputEvent.html#buttons" class="tsd-kind-icon">buttons</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="InputEvent.html#clickCount" class="tsd-kind-icon">click<wbr/>Count</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="InputEvent.html#control" class="tsd-kind-icon">control</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="InputEvent.html#delta" class="tsd-kind-icon">delta</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="InputEvent.html#diagram" class="tsd-kind-icon">diagram</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="InputEvent.html#documentPoint" class="tsd-kind-icon">document<wbr/>Point</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="InputEvent.html#down" class="tsd-kind-icon">down</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="InputEvent.html#event" class="tsd-kind-icon">event</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="InputEvent.html#handled" class="tsd-kind-icon">handled</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="InputEvent.html#isMultiTouch" class="tsd-kind-icon">is<wbr/>Multi<wbr/>Touch</a></li><li class="tsd-kind-get-signature tsd-parent-kind-class"><a href="InputEvent.html#isTouchEvent" class="tsd-kind-icon">is<wbr/>Touch<wbr/>Event</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="InputEvent.html#key" class="tsd-kind-icon">key</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="InputEvent.html#left" class="tsd-kind-icon">left</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="InputEvent.html#meta" class="tsd-kind-icon">meta</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="InputEvent.html#middle" class="tsd-kind-icon">middle</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="InputEvent.html#modifiers" class="tsd-kind-icon">modifiers</a></li><li class="tsd-k