UNPKG

gojs

Version:

Interactive diagrams, charts, and graphs, such as trees, flowcharts, orgcharts, UML, BPMN, or business diagrams

352 lines 104 kB
<!DOCTYPE html><html class="default"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>ToolManager | 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>&reg; Diagramming Components<br/>version 2.3.17<br/>by <a href="https://www.nwoods.com/">Northwoods Software®</a></div><div><h1>Class ToolManager </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><a href="Tool.html" class="tsd-signature-type" data-tsd-kind="Class">Tool</a><ul class="tsd-hierarchy"><li><span class="target">ToolManager</span></li></ul></li></ul></section><section class="tsd-panel tsd-comment"><div class="tsd-comment tsd-typography">
<p>This special <a href="Tool.html">Tool</a> is responsible for managing all of the Diagram&#39;s
mode-less tools, which you can access as the <a href="Diagram.html#toolManager">Diagram.toolManager</a>.</p>
<div><p>Mode-less tools are tools that are present in one of the following lists:
<a href="ToolManager.html#mouseDownTools">mouseDownTools</a>, <a href="ToolManager.html#mouseMoveTools">mouseMoveTools</a>, or <a href="ToolManager.html#mouseUpTools">mouseUpTools</a>.
This ToolManager tool is normally the <a href="Diagram.html#defaultTool">Diagram.defaultTool</a>,
so it is also usually the <a href="Diagram.html#currentTool">Diagram.currentTool</a> when the user is doing &quot;nothing&quot;.</p>
<p>When this tool is running as the current tool, it handles mouse-down,
mouse-move, and mouse-up events and the corresponding touch events.
For each event it iterates over each of the tools in the corresponding list,
calling the tool&#39;s <a href="Tool.html#canStart">Tool.canStart</a> predicate.
If that predicate returns true, it starts that tool by making it the
diagram&#39;s current tool.
It then activates the tool and passes on the event to the tool by calling
the corresponding method (either <a href="Tool.html#doMouseDown">Tool.doMouseDown</a>,
<a href="Tool.html#doMouseMove">Tool.doMouseMove</a>, or <a href="Tool.html#doMouseUp">Tool.doMouseUp</a>).</p>
<p>Because this tool is typically the one running as the diagram&#39;s current tool
when the user isn&#39;t &quot;doing&quot; anything, this tool can also handle other events,
such as mouse wheel events and keyboard commands.</p>
<p>Keyboard events are just passed on to the <a href="Diagram.html#commandHandler">Diagram.commandHandler</a>&#39;s
<a href="CommandHandler.html#doKeyDown">CommandHandler.doKeyDown</a> or <a href="CommandHandler.html#doKeyUp">CommandHandler.doKeyUp</a> method.</p>
<p>This tool also is responsible for showing tooltips.
Tooltip <a href="Adornment.html">Adornment</a>s may be declared as any <a href="GraphObject.html#toolTip">GraphObject.toolTip</a>,
or as the <a href="Diagram.html#toolTip">Diagram.toolTip</a> if the mouse or finger remains motionless in the background of the diagram.
You can set <a href="ToolManager.html#toolTipDuration">toolTipDuration</a> to control how long the tooltip remains visible after being motionless.</p>
<p>This tool does not utilize any tool handles.
This tool does not conduct any transactions.
But of course some of the tools that the ToolManager starts can show tool handles and/or
conduct their own transactions.</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 tsd-is-overwrite"><a href="ToolManager.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="ToolManager.html#actionTool" class="tsd-kind-icon">action<wbr/>Tool</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="ToolManager.html#clickCreatingTool" class="tsd-kind-icon">click<wbr/>Creating<wbr/>Tool</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="ToolManager.html#clickSelectingTool" class="tsd-kind-icon">click<wbr/>Selecting<wbr/>Tool</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="ToolManager.html#contextMenuTool" class="tsd-kind-icon">context<wbr/>Menu<wbr/>Tool</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="ToolManager.html#currentToolTip" class="tsd-kind-icon">current<wbr/>Tool<wbr/>Tip</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="ToolManager.html#dragSelectingTool" class="tsd-kind-icon">drag<wbr/>Selecting<wbr/>Tool</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="ToolManager.html#dragSize" class="tsd-kind-icon">drag<wbr/>Size</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="ToolManager.html#draggingTool" class="tsd-kind-icon">dragging<wbr/>Tool</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="ToolManager.html#gestureBehavior" class="tsd-kind-icon">gesture<wbr/>Behavior</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="ToolManager.html#holdDelay" class="tsd-kind-icon">hold<wbr/>Delay</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="ToolManager.html#hoverDelay" class="tsd-kind-icon">hover<wbr/>Delay</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="ToolManager.html#linkReshapingTool" class="tsd-kind-icon">link<wbr/>Reshaping<wbr/>Tool</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="ToolManager.html#linkingTool" class="tsd-kind-icon">linking<wbr/>Tool</a></li><li class="tsd-kind-get-signature tsd-parent-kind-class"><a href="ToolManager.html#mouseDownTools" class="tsd-kind-icon">mouse<wbr/>Down<wbr/>Tools</a></li><li class="tsd-kind-get-signature tsd-parent-kind-class"><a href="ToolManager.html#mouseMoveTools" class="tsd-kind-icon">mouse<wbr/>Move<wbr/>Tools</a></li><li class="tsd-kind-get-signature tsd-parent-kind-class"><a href="ToolManager.html#mouseUpTools" class="tsd-kind-icon">mouse<wbr/>Up<wbr/>Tools</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="ToolManager.html#mouseWheelBehavior" class="tsd-kind-icon">mouse<wbr/>Wheel<wbr/>Behavior</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="ToolManager.html#panningTool" class="tsd-kind-icon">panning<wbr/>Tool</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="ToolManager.html#relinkingTool" class="tsd-kind-icon">relinking<wbr/>Tool</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="ToolManager.html#resizingTool" class="tsd-kind-icon">resizing<wbr/>Tool</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="ToolManager.html#rotatingTool" class="tsd-kind-icon">rotating<wbr/>Tool</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="ToolManager.html#textEditingTool" class="tsd-kind-icon">text<wbr/>Editing<wbr/>Tool</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="ToolManager.html#toolTipDuration" class="tsd-kind-icon">tool<wbr/>Tip<wbr/>Duration</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 tsd-is-overwrite"><a href="ToolManager.html#doKeyDown" class="tsd-kind-icon">do<wbr/>Key<wbr/>Down</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="ToolManager.html#doKeyUp" class="tsd-kind-icon">do<wbr/>Key<wbr/>Up</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="ToolManager.html#doMouseDown" class="tsd-kind-icon">do<wbr/>Mouse<wbr/>Down</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="ToolManager.html#doMouseHover" class="tsd-kind-icon">do<wbr/>Mouse<wbr/>Hover</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="ToolManager.html#doMouseMove" class="tsd-kind-icon">do<wbr/>Mouse<wbr/>Move</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="ToolManager.html#doMouseUp" class="tsd-kind-icon">do<wbr/>Mouse<wbr/>Up</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="ToolManager.html#doMouseWheel" class="tsd-kind-icon">do<wbr/>Mouse<wbr/>Wheel</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="ToolManager.html#doToolTip" class="tsd-kind-icon">do<wbr/>Tool<wbr/>Tip</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="ToolManager.html#doWaitAfter" class="tsd-kind-icon">do<wbr/>Wait<wbr/>After</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="ToolManager.html#findTool" class="tsd-kind-icon">find<wbr/>Tool</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="ToolManager.html#hideToolTip" class="tsd-kind-icon">hide<wbr/>Tool<wbr/>Tip</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="ToolManager.html#initializeStandardTools" class="tsd-kind-icon">initialize<wbr/>Standard<wbr/>Tools</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="ToolManager.html#positionToolTip" class="tsd-kind-icon">position<wbr/>Tool<wbr/>Tip</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="ToolManager.html#replaceTool" class="tsd-kind-icon">replace<wbr/>Tool</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="ToolManager.html#showToolTip" class="tsd-kind-icon">show<wbr/>Tool<wbr/>Tip</a></li></ul></section><section class="tsd-index-section "><h3>Constants</h3><ul class="tsd-index-list"><li class="tsd-kind-constant tsd-parent-kind-class tsd-is-static"><a href="ToolManager.html#static-GestureCancel" class="tsd-kind-icon">Gesture<wbr/>Cancel</a></li><li class="tsd-kind-constant tsd-parent-kind-class tsd-is-static"><a href="ToolManager.html#static-GestureNone" class="tsd-kind-icon">Gesture<wbr/>None</a></li><li class="tsd-kind-constant tsd-parent-kind-class tsd-is-static"><a href="ToolManager.html#static-GestureZoom" class="tsd-kind-icon">Gesture<wbr/>Zoom</a></li><li class="tsd-kind-constant tsd-parent-kind-class tsd-is-static"><a href="ToolManager.html#static-WheelNone" class="tsd-kind-icon">Wheel<wbr/>None</a></li><li class="tsd-kind-constant tsd-parent-kind-class tsd-is-static"><a href="ToolManager.html#static-WheelScroll" class="tsd-kind-icon">Wheel<wbr/>Scroll</a></li><li class="tsd-kind-constant tsd-parent-kind-class tsd-is-static"><a href="ToolManager.html#static-WheelZoom" class="tsd-kind-icon">Wheel<wbr/>Zoom</a></li></ul></section></div></section></section><section class="tsd-panel-group tsd-index-group tsd-is-inherited"><h2>Inherited Members</h2><section class="tsd-panel tsd-index-panel"><div class="tsd-index-content"><section class="tsd-index-section undefined"><h3>Properties</h3><ul class="tsd-index-list"><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="Tool.html#diagram" class="tsd-kind-icon">Tool.diagram</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="Tool.html#isActive" class="tsd-kind-icon">Tool.is<wbr/>Active</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="Tool.html#isEnabled" class="tsd-kind-icon">Tool.is<wbr/>Enabled</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="Tool.html#name" class="tsd-kind-icon">Tool.name</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="Tool.html#transactionResult" class="tsd-kind-icon">Tool.transaction<wbr/>Result</a></li></ul></section><section class="tsd-index-section undefined"><h3>Methods</h3><ul class="tsd-index-list"><li class="tsd-kind-method tsd-parent-kind-class"><a href="Tool.html#canStart" class="tsd-kind-icon">Tool.can<wbr/>Start</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="Tool.html#canStartMultiTouch" class="tsd-kind-icon">Tool.can<wbr/>Start<wbr/>Multi<wbr/>Touch</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="Tool.html#cancelWaitAfter" class="tsd-kind-icon">Tool.cancel<wbr/>Wait<wbr/>After</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="Tool.html#doActivate" class="tsd-kind-icon">Tool.do<wbr/>Activate</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="Tool.html#doCancel" class="tsd-kind-icon">Tool.do<wbr/>Cancel</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="Tool.html#doDeactivate" class="tsd-kind-icon">Tool.do<wbr/>Deactivate</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="Tool.html#doStart" class="tsd-kind-icon">Tool.do<wbr/>Start</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="Tool.html#doStop" class="tsd-kind-icon">Tool.do<wbr/>Stop</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="Tool.html#findToolHandleAt" class="tsd-kind-icon">Tool.find<wbr/>Tool<wbr/>Handle<wbr/>At</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="Tool.html#isBeyondDragSize" class="tsd-kind-icon">Tool.is<wbr/>Beyond<wbr/>Drag<wbr/>Size</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><a href="Tool.html#standardMouseClick" class="tsd-kind-icon">Tool.standard<wbr/>Mouse<wbr/>Click</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="Tool.html#standardMouseOver" class="tsd-kind-icon">Tool.standard<wbr/>Mouse<wbr/>Over</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="Tool.html#standardMouseSelect" class="tsd-kind-icon">Tool.standard<wbr/>Mouse<wbr/>Select</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="Tool.html#standardMouseWheel" class="tsd-kind-icon">Tool.standard<wbr/>Mouse<wbr/>Wheel</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="Tool.html#standardPinchZoomMove" class="tsd-kind-icon">Tool.standard<wbr/>Pinch<wbr/>Zoom<wbr/>Move</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="Tool.html#standardPinchZoomStart" class="tsd-kind-icon">Tool.standard<wbr/>Pinch<wbr/>Zoom<wbr/>Start</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="Tool.html#standardWaitAfter" class="tsd-kind-icon">Tool.standard<wbr/>Wait<wbr/>After</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="Tool.html#startTransaction" class="tsd-kind-icon">Tool.start<wbr/>Transaction</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="Tool.html#stopTool" class="tsd-kind-icon">Tool.stop<wbr/>Tool</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="Tool.html#stopTransaction" class="tsd-kind-icon">Tool.stop<wbr/>Transaction</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 tsd-is-overwrite"><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 tsd-is-overwrite"><li class="tsd-signature tsd-kind-icon">new <wbr/>Tool<wbr/>Manager<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="ToolManager.html" class="tsd-signature-type" data-tsd-kind="Class">ToolManager</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><div class="tsd-comment tsd-typography">
<p>You do not normally need to create an instance of this tool
because one already exists as the <a href="Diagram.html#toolManager">Diagram.toolManager</a>, which you can modify.</p>
<div><p>The <a href="Tool.html#name">Tool.name</a> of this tool is &quot;ToolManager&quot;.</p>
<p>The constructor produces a ToolManager that manages no tools.
Call <a href="ToolManager.html#initializeStandardTools">initializeStandardTools</a> to create various tools,
initialize the tool properties such as <a href="ToolManager.html#draggingTool">draggingTool</a>,
and initialize the three mouse tool lists with those newly created tools.</p>
</div></div><h4 class="tsd-returns-title">Returns <a href="ToolManager.html" class="tsd-signature-type" data-tsd-kind="Class">ToolManager</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="actionTool" class="tsd-anchor"></a><h3 class="tsd-anchor-link"> action<wbr/>Tool<span class="tsd-signature-symbol">: </span><a href="ActionTool.html" class="tsd-signature-type" data-tsd-kind="Class">ActionTool</a><a href="#actionTool" 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 mode-less <a href="ActionTool.html">ActionTool</a>, normally one of the <a href="ToolManager.html#mouseDownTools">mouseDownTools</a>.</p>
<div><p>You can disable this tool by setting its <a href="Tool.html#isEnabled">Tool.isEnabled</a> property to false.</p>
</div></div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="clickCreatingTool" class="tsd-anchor"></a><h3 class="tsd-anchor-link"> click<wbr/>Creating<wbr/>Tool<span class="tsd-signature-symbol">: </span><a href="ClickCreatingTool.html" class="tsd-signature-type" data-tsd-kind="Class">ClickCreatingTool</a><a href="#clickCreatingTool" 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 mode-less <a href="ClickCreatingTool.html">ClickCreatingTool</a>, normally one of the <a href="ToolManager.html#mouseUpTools">mouseUpTools</a>.</p>
<div><p>You can disable this tool by setting its <a href="Tool.html#isEnabled">Tool.isEnabled</a> property to false.</p>
</div></div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="clickSelectingTool" class="tsd-anchor"></a><h3 class="tsd-anchor-link"> click<wbr/>Selecting<wbr/>Tool<span class="tsd-signature-symbol">: </span><a href="ClickSelectingTool.html" class="tsd-signature-type" data-tsd-kind="Class">ClickSelectingTool</a><a href="#clickSelectingTool" 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 mode-less <a href="ClickSelectingTool.html">ClickSelectingTool</a>, normally one of the <a href="ToolManager.html#mouseUpTools">mouseUpTools</a>.</p>
<div><p>You can disable this tool by setting its <a href="Tool.html#isEnabled">Tool.isEnabled</a> property to false.</p>
</div></div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="contextMenuTool" class="tsd-anchor"></a><h3 class="tsd-anchor-link"> context<wbr/>Menu<wbr/>Tool<span class="tsd-signature-symbol">: </span><a href="ContextMenuTool.html" class="tsd-signature-type" data-tsd-kind="Class">ContextMenuTool</a><a href="#contextMenuTool" 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 mode-less <a href="ContextMenuTool.html">ContextMenuTool</a>, normally one of the <a href="ToolManager.html#mouseUpTools">mouseUpTools</a>.</p>
<div><p>You can disable this tool by setting its <a href="Tool.html#isEnabled">Tool.isEnabled</a> property to false.</p>
</div></div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="currentToolTip" class="tsd-anchor"></a><h3 class="tsd-anchor-link"> current<wbr/>Tool<wbr/>Tip<span class="tsd-signature-symbol">: </span><a href="Adornment.html" class="tsd-signature-type" data-tsd-kind="Class">Adornment</a><span class="tsd-signature-symbol"> | </span><a href="HTMLInfo.html" class="tsd-signature-type" data-tsd-kind="Class">HTMLInfo</a><a href="#currentToolTip" 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 returns the currently showing tooltip, or null if there is none.</p>
</div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="dragSelectingTool" class="tsd-anchor"></a><h3 class="tsd-anchor-link"> drag<wbr/>Selecting<wbr/>Tool<span class="tsd-signature-symbol">: </span><a href="DragSelectingTool.html" class="tsd-signature-type" data-tsd-kind="Class">DragSelectingTool</a><a href="#dragSelectingTool" 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 mode-less <a href="DragSelectingTool.html">DragSelectingTool</a>, normally one of the <a href="ToolManager.html#mouseMoveTools">mouseMoveTools</a>.</p>
<div><p>You can disable this tool by setting its <a href="Tool.html#isEnabled">Tool.isEnabled</a> property to false.</p>
</div></div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="dragSize" class="tsd-anchor"></a><h3 class="tsd-anchor-link"> drag<wbr/>Size<span class="tsd-signature-symbol">: </span><a href="Size.html" class="tsd-signature-type" data-tsd-kind="Class">Size</a><a href="#dragSize" 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 distance in view coordinates within which a mouse down-and-up is considered a click and beyond which a mouse movement is considered a drag.
The default value is 2 pixels horizontally and vertically for mouse events, and increases by 6 pixels for touch events.
This value is used by <a href="Tool.html#isBeyondDragSize">Tool.isBeyondDragSize</a>.</p>
<dl class="tsd-comment-tags"><dt class="">since</dt><dd><p>1.2</p>
</dd></dl></div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="draggingTool" class="tsd-anchor"></a><h3 class="tsd-anchor-link"> dragging<wbr/>Tool<span class="tsd-signature-symbol">: </span><a href="DraggingTool.html" class="tsd-signature-type" data-tsd-kind="Class">DraggingTool</a><a href="#draggingTool" 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 mode-less <a href="DraggingTool.html">DraggingTool</a>, normally one of the <a href="ToolManager.html#mouseMoveTools">mouseMoveTools</a>.</p>
<div><p>You can disable this tool by setting its <a href="Tool.html#isEnabled">Tool.isEnabled</a> property to false.</p>
</div></div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="gestureBehavior" class="tsd-anchor"></a><h3 class="tsd-anchor-link"> gesture<wbr/>Behavior<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">EnumValue</span><a href="#gestureBehavior" 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 ToolManager&#39;s touch pinching behavior.
Allowed values are <a href="ToolManager.html#static-GestureZoom">ToolManager.GestureZoom</a> and
<a href="ToolManager.html#static-GestureCancel">ToolManager.GestureCancel</a> and <a href="ToolManager.html#static-GestureNone">ToolManager.GestureNone</a>.
The default value is <a href="ToolManager.html#static-GestureZoom">ToolManager.GestureZoom</a>.</p>
<div><p>If you want to control whether a single finger touch movement
causes a pan (i.e. scroll) of the diagram&#39;s contents or scrolls the page,
consider either disabling the <a href="PanningTool.html">PanningTool</a> by setting its property
<a href="Tool.html#isEnabled">Tool.isEnabled</a> to false or by setting <a href="PanningTool.html#bubbles">PanningTool.bubbles</a> to true.</p>
</div><dl class="tsd-comment-tags"><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="holdDelay" class="tsd-anchor"></a><h3 class="tsd-anchor-link"> hold<wbr/>Delay<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><a href="#holdDelay" 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 between when the mouse stops moving and a hold event,
in milliseconds.
The default value is 850 milliseconds.</p>
</div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="hoverDelay" class="tsd-anchor"></a><h3 class="tsd-anchor-link"> hover<wbr/>Delay<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><a href="#hoverDelay" 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 between when the mouse stops moving and a hover event,
in milliseconds. This value affects the delay before <a href="GraphObject.html#toolTip">GraphObject.toolTip</a>s are shown.
The default value is 850 milliseconds.</p>
<div><p>Set <a href="ToolManager.html#toolTipDuration">toolTipDuration</a> to control how long a tooltip will remain visible.</p>
</div></div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="linkReshapingTool" class="tsd-anchor"></a><h3 class="tsd-anchor-link"> link<wbr/>Reshaping<wbr/>Tool<span class="tsd-signature-symbol">: </span><a href="LinkReshapingTool.html" class="tsd-signature-type" data-tsd-kind="Class">LinkReshapingTool</a><a href="#linkReshapingTool" 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 mode-less <a href="LinkReshapingTool.html">LinkReshapingTool</a>, normally one of the <a href="ToolManager.html#mouseDownTools">mouseDownTools</a>.</p>
<div><p>You can disable this tool by setting its <a href="Tool.html#isEnabled">Tool.isEnabled</a> property to false.</p>
</div></div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="linkingTool" class="tsd-anchor"></a><h3 class="tsd-anchor-link"> linking<wbr/>Tool<span class="tsd-signature-symbol">: </span><a href="LinkingTool.html" class="tsd-signature-type" data-tsd-kind="Class">LinkingTool</a><a href="#linkingTool" 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 mode-less <a href="LinkingTool.html">LinkingTool</a>, normally one of the <a href="ToolManager.html#mouseMoveTools">mouseMoveTools</a>.</p>
<div><p>You can disable this tool by setting its <a href="Tool.html#isEnabled">Tool.isEnabled</a> property to false.</p>
</div></div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-get-signature tsd-parent-kind-class"><a id="mouseDownTools" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagReadOnly">Read-only</span> mouse<wbr/>Down<wbr/>Tools<span class="tsd-signature-symbol">: </span><a href="List.html" class="tsd-signature-type" data-tsd-kind="Class">List</a><span class="tsd-signature-symbol">&lt;</span><a href="Tool.html" class="tsd-signature-type" data-tsd-kind="Class">Tool</a><span class="tsd-signature-symbol">&gt;</span><a href="#mouseDownTools" 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 returns the list of <a href="Tool.html">Tool</a>s that might be started upon a mouse or finger press event.
When the ToolManager handles a mouse-down or touch-down event in <a href="ToolManager.html#doMouseDown">doMouseDown</a>,
it searches this list in order, starting the first tool for which
<a href="Tool.html#canStart">Tool.canStart</a> returns true.</p>
<div><p>This list may be modified, but it must not be modified while any tool
is handling events.</p>
<p><a href="ToolManager.html#initializeStandardTools">initializeStandardTools</a> installs the following tools, in order:</p>
<ul>
<li><a href="ToolManager.html#actionTool">actionTool</a>, an <a href="ActionTool.html">ActionTool</a></li>
<li><a href="ToolManager.html#relinkingTool">relinkingTool</a>, a <a href="RelinkingTool.html">RelinkingTool</a></li>
<li><a href="ToolManager.html#linkReshapingTool">linkReshapingTool</a>, a <a href="LinkReshapingTool.html">LinkReshapingTool</a></li>
<li><a href="ToolManager.html#rotatingTool">rotatingTool</a>, a <a href="RotatingTool.html">RotatingTool</a></li>
<li><a href="ToolManager.html#resizingTool">resizingTool</a>, a <a href="ResizingTool.html">ResizingTool</a></li>
</ul>
</div></div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-get-signature tsd-parent-kind-class"><a id="mouseMoveTools" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagReadOnly">Read-only</span> mouse<wbr/>Move<wbr/>Tools<span class="tsd-signature-symbol">: </span><a href="List.html" class="tsd-signature-type" data-tsd-kind="Class">List</a><span class="tsd-signature-symbol">&lt;</span><a href="Tool.html" class="tsd-signature-type" data-tsd-kind="Class">Tool</a><span class="tsd-signature-symbol">&gt;</span><a href="#mouseMoveTools" 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 returns the list of <a href="Tool.html">Tool</a>s that might be started upon a mouse or finger move event.
When the ToolManager handles a mouse-move or touch-move event in <a href="ToolManager.html#doMouseMove">doMouseMove</a>,
it searches this list in order, starting the first tool for which
<a href="Tool.html#canStart">Tool.canStart</a> returns true.</p>
<div><p>This list may be modified, but it must not be modified while any tool
is handling events.</p>
<p><a href="ToolManager.html#initializeStandardTools">initializeStandardTools</a> installs the following tools, in order:</p>
<ul>
<li><a href="ToolManager.html#linkingTool">linkingTool</a>, a <a href="LinkingTool.html">LinkingTool</a></li>
<li><a href="ToolManager.html#draggingTool">draggingTool</a>, a <a href="DraggingTool.html">DraggingTool</a></li>
<li><a href="ToolManager.html#dragSelectingTool">dragSelectingTool</a>, a <a href="DragSelectingTool.html">DragSelectingTool</a></li>
<li><a href="ToolManager.html#panningTool">panningTool</a>, a <a href="PanningTool.html">PanningTool</a></li>
</ul>
</div></div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-get-signature tsd-parent-kind-class"><a id="mouseUpTools" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagReadOnly">Read-only</span> mouse<wbr/>Up<wbr/>Tools<span class="tsd-signature-symbol">: </span><a href="List.html" class="tsd-signature-type" data-tsd-kind="Class">List</a><span class="tsd-signature-symbol">&lt;</span><a href="Tool.html" class="tsd-signature-type" data-tsd-kind="Class">Tool</a><span class="tsd-signature-symbol">&gt;</span><a href="#mouseUpTools" 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 returns the list of <a href="Tool.html">Tool</a>s that might be started upon a mouse or finger up event.
When the ToolManager handles a mouse-up or touch-up event in <a href="ToolManager.html#doMouseUp">doMouseUp</a>,
it searches this list in order, starting the first tool for which
<a href="Tool.html#canStart">Tool.canStart</a> returns true.</p>
<div><p>This list may be modified, but it must not be modified while any tool
is handling events.</p>
<p><a href="ToolManager.html#initializeStandardTools">initializeStandardTools</a> installs the following tools, in order:</p>
<ul>
<li><a href="ToolManager.html#contextMenuTool">contextMenuTool</a>, a <a href="ContextMenuTool.html">ContextMenuTool</a></li>
<li><a href="ToolManager.html#textEditingTool">textEditingTool</a>, a <a href="TextEditingTool.html">TextEditingTool</a></li>
<li><a href="ToolManager.html#clickCreatingTool">clickCreatingTool</a>, a <a href="ClickCreatingTool.html">ClickCreatingTool</a></li>
<li><a href="ToolManager.html#clickSelectingTool">clickSelectingTool</a>, a <a href="ClickSelectingTool.html">ClickSelectingTool</a></li>
</ul>
</div></div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="mouseWheelBehavior" class="tsd-anchor"></a><h3 class="tsd-anchor-link"> mouse<wbr/>Wheel<wbr/>Behavior<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">EnumValue</span><a href="#mouseWheelBehavior" 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 ToolManager&#39;s mouse wheel behavior. Allowed values are <a href="ToolManager.html#static-WheelScroll">ToolManager.WheelScroll</a> and
<a href="ToolManager.html#static-WheelZoom">ToolManager.WheelZoom</a> and <a href="ToolManager.html#static-WheelNone">ToolManager.WheelNone</a>.</p>
<div><p>The default value is <a href="ToolManager.html#static-WheelScroll">ToolManager.WheelScroll</a>.</p>
</div></div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="panningTool" class="tsd-anchor"></a><h3 class="tsd-anchor-link"> panning<wbr/>Tool<span class="tsd-signature-symbol">: </span><a href="PanningTool.html" class="tsd-signature-type" data-tsd-kind="Class">PanningTool</a><a href="#panningTool" 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 mode-less <a href="PanningTool.html">PanningTool</a>, normally one of the <a href="ToolManager.html#mouseMoveTools">mouseMoveTools</a>.</p>
<div><p>You can disable this tool by setting its <a href="Tool.html#isEnabled">Tool.isEnabled</a> property to false.</p>
</div></div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="relinkingTool" class="tsd-anchor"></a><h3 class="tsd-anchor-link"> relinking<wbr/>Tool<span class="tsd-signature-symbol">: </span><a href="RelinkingTool.html" class="tsd-signature-type" data-tsd-kind="Class">RelinkingTool</a><a href="#relinkingTool" 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 mode-less <a href="RelinkingTool.html">RelinkingTool</a>, normally one of the <a href="ToolManager.html#mouseDownTools">mouseDownTools</a>.</p>
<div><p>You can disable this tool by setting its <a href="Tool.html#isEnabled">Tool.isEnabled</a> property to false.</p>
</div></div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="resizingTool" class="tsd-anchor"></a><h3 class="tsd-anchor-link"> resizing<wbr/>Tool<span class="tsd-signature-symbol">: </span><a href="ResizingTool.html" class="tsd-signature-type" data-tsd-kind="Class">ResizingTool</a><a href="#resizingTool" 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 mode-less <a href="ResizingTool.html">ResizingTool</a>, normally one of the <a href="ToolManager.html#mouseDownTools">mouseDownTools</a>.</p>
<div><p>You can disable this tool by setting its <a href="Tool.html#isEnabled">Tool.isEnabled</a> property to false.</p>
</div></div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="rotatingTool" class="tsd-anchor"></a><h3 class="tsd-anchor-link"> rotating<wbr/>Tool<span class="tsd-signature-symbol">: </span><a href="RotatingTool.html" class="tsd-signature-type" data-tsd-kind="Class">RotatingTool</a><a href="#rotatingTool" 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 mode-less <a href="RotatingTool.html">RotatingTool</a>, normally one of the <a href="ToolManager.html#mouseDownTools">mouseDownTools</a>.</p>
<div><p>You can disable this tool by setting its <a href="Tool.html#isEnabled">Tool.isEnabled</a> property to false.</p>
</div></div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="textEditingTool" class="tsd-anchor"></a><h3 class="tsd-anchor-link"> text<wbr/>Editing<wbr/>Tool<span class="tsd-signature-symbol">: </span><a href="TextEditingTool.html" class="tsd-signature-type" data-tsd-kind="Class">TextEditingTool</a><a href="#textEditingTool" 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 mode-less <a href="TextEditingTool.html">TextEditingTool</a>, normally one of the <a href="ToolManager.html#mouseUpTools">mouseUpTools</a>.</p>
<div><p>You can disable this tool by setting its <a href="Tool.html#isEnabled">Tool.isEnabled</a> property to false.</p>
</div></div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-accessor tsd-parent-kind-class"><a id="toolTipDuration" class="tsd-anchor"></a><h3 class="tsd-anchor-link"> tool<wbr/>Tip<wbr/>Duration<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><a href="#toolTipDuration" 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 how long a tool tip is visible.
The default value is 5000 milliseconds.</p>
<div><p>This is used by <a href="ToolManager.html#showToolTip">showToolTip</a> to determine how long to wait before calling <a href="ToolManager.html#hideToolTip">hideToolTip</a>.</p>
<p>Set <a href="ToolManager.html#hoverDelay">hoverDelay</a> to control how long the mouse should stay stationary before it shows a tooltip.</p>
</div></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 tsd-is-overwrite"><a id="doKeyDown" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagOverride">Override</span> <span class="tsd-flag ts-flagVirtual">Virtual</span>  do<wbr/>Key<wbr/>Down<a href="#doKeyDown" 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 tsd-is-overwrite"><li class="tsd-signature tsd-kind-icon">do<wbr/>Key<wbr/>Down<span class="tsd-signature-symbol">(</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"><div class="tsd-comment tsd-typography">
<p>This just calls <a href="CommandHandler.html#doKeyDown">CommandHandler.doKeyDown</a> on the diagram&#39;s <a href="Diagram.html#commandHandler">Diagram.commandHandler</a>.</p>
<div><p>This method may be overridden, but you should consider calling this base method in order to get all of its functionality.
Please read the Introduction page on <a href="../../intro/extensions.html">Extensions</a> for how to override methods and how to call this base method.</p>
</div></div><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 tsd-is-overwrite"><a id="doKeyUp" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagOverride">Override</span> <span class="tsd-flag ts-flagVirtual">Virtual</span>  do<wbr/>Key<wbr/>Up<a href="#doKeyUp" 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 tsd-is-overwrite"><li class="tsd-signature tsd-kind-icon">do<wbr/>Key<wbr/>Up<span class="tsd-signature-symbol">(</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"><div class="tsd-comment tsd-typography">
<p>This just calls <a href="CommandHandler.html#doKeyUp">CommandHandler.doKeyUp</a> on the diagram&#39;s <a href="Diagram.html#commandHandler">Diagram.commandHandler</a>.</p>
<div><p>This method may be overridden, but you should consider calling this base method in order to get all of its functionality.
Please read the Introduction page on <a href="../../intro/extensions.html">Extensions</a> for how to override methods and how to call this base method.</p>
</div></div><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 tsd-is-overwrite"><a id="doMouseDown" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagOverride">Override</span> <span class="tsd-flag ts-flagVirtual">Virtual</span>  do<wbr/>Mouse<wbr/>Down<a href="#doMouseDown" 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 tsd-is-overwrite"><li class="tsd-signature tsd-kind-icon">do<wbr/>Mouse<wbr/>Down<span class="tsd-signature-symbol">(</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"><div class="tsd-comment tsd-typography">
<p>Iterate over the <a href="ToolManager.html#mouseDownTools">mouseDownTools</a> list and start the first tool
for which its <a href="Tool.html#canStart">Tool.canStart</a> predicate returns true.</p>
<div><p>Starting a tool replaces the <a href="Diagram.html#currentTool">Diagram.currentTool</a> with the new tool.
Successfully doing so also activates the new tool by calling <a href="Tool.html#doActivate">Tool.doActivate</a>
and passes on the mouse-down event to it by calling <a href="Tool.html#doMouseDown">Tool.doMouseDown</a>.</p>
<p>Not finding any startable tools causes this tool manager to activate,
thereby enabling the mouse-move and mouse-up behaviors and starts
detection of a mouse-hold event after <a href="ToolManager.html#holdDelay">holdDelay</a> milliseconds.</p>
<p>This method may be overridden, but you should consider calling this base method in order to get all of its functionality.
Please read the Introduction page on <a href="../../intro/extensions.html">Extensions</a> for how to override methods and how to call this base method.</p>
</div></div><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="doMouseHover" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagVirtual">Virtual</span>  do<wbr/>Mouse<wbr/>Hover<a href="#doMouseHover" 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">do<wbr/>Mouse<wbr/>Hover<span class="tsd-signature-symbol">(</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"><div class="tsd-comment tsd-typography">
<p>Implement the standard behavior for mouse hover and mouse hold events,
called by <a href="ToolManager.html#doWaitAfter">doWaitAfter</a> when the mouse has not moved for a period of time.</p>
<div><p>If there has been no mouse down, the timer is set for <a href="ToolManager.html#hoverDelay">hoverDelay</a> milliseconds.
If it executes, it calls any <a href="GraphObject.html#mouseHover">GraphObject.mouseHover</a> function on the object
at the mouse or on any of its containing panels,
or it calls any <a href="Diagram.html#mouseHover">Diagram.mouseHover</a> function for a background mouse-hover event.</p>
<p>If there had been a mouse down, the timer is set for <a href="ToolManager.html#holdDelay">holdDelay</a> milliseconds.
If it executes, it calls any <a href="GraphObject.html#mouseHold">GraphObject.mouseHold</a> function on the object
at the mouse or on any of its containing panels,
or it calls any <a href="Diagram.html#mouseHold">Diagram.mouseHold</a> function for a background mouse-held-down event.</p>
<p>This method may be overridden, but you should consider calling this base method in order to get all of its functionality.
Please read the Introduction page on <a href="../../intro/extensions.html">Extensions</a> for how to override methods and how to call this base method.</p>
</div></div><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 tsd-is-overwrite"><a id="doMouseMove" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagOverride">Override</span> <span class="tsd-flag ts-flagVirtual">Virtual</span>  do<wbr/>Mouse<wbr/>Move<a href="#doMouseMove" 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 tsd-is-overwrite"><li class="tsd-signature tsd-kind-icon">do<wbr/>Mouse<wbr/>Move<span class="tsd-signature-symbol">(</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"><div class="tsd-comment tsd-typography">
<p>Iterate over the <a href="ToolManager.html#mouseMoveTools">mouseMoveTools</a> list and start the first tool
for which its <a href="Tool.html#canStart">Tool.canStart</a> predicate returns true.</p>
<div><p>Starting a tool replaces the <a href="Diagram.html#currentTool">Diagram.currentTool</a> with the new tool.
Successfully doing so also activates the new tool by calling <a href="Tool.html#doActivate">Tool.doActivate</a>
and passes on the mouse-move event to it by calling <a href="Tool.html#doMouseMove">Tool.doMouseMove</a>.</p>
<p>If no tool is found and activated, this:</p>
<ul>
<li>Calls <a href="Tool.html#standardMouseOver">Tool.standardMouseOver</a> to invoke any mouse-enter, mouse-over, or mouse-leave functions.</li>
<li>if the mouse has moved sufficiently, such that <a href="Tool.html#isBeyondDragSize">Tool.isBeyondDragSize</a> is true,
this also calls <a href="Tool.html#standardWaitAfter">Tool.standardWaitAfter</a> for a possible call to
<a href="ToolManager.html#doWaitAfter">doWaitAfter</a> after <a href="ToolManager.html#hoverDelay">hoverDelay</a> milliseconds.</li>
<li>Sets the <a href="Diagram.html#lastInput">Diagram.lastInput</a> to bubble.</li>
</ul>
<p>This method may be overridden, but you should consider calling this base method in order to get all of its functionality.
Please read the Introduction page on <a href="../../intro/extensions.html">Extensions</a> for how to override methods and how to call this base method.</p>
</div></div><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 tsd-is-overwrite"><a id="doMouseUp" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagOverride">Override</span> <span class="tsd-flag ts-flagVirtual">Virtual</span>  do<wbr/>Mouse<wbr/>Up<a href="#doMouseUp" 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 tsd-is-overwrite"><li class="tsd-signature tsd-kind-icon">do<wbr/>Mouse<wbr/>Up<span class="tsd-signature-symbol">(</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"><div class="tsd-comment tsd-typography">
<p>Iterate over the <a href="ToolManager.html#mouseUpTools">mouseUpTools</a> list and start the first tool
for which its <a href="Tool.html#canStart">Tool.canStart</a> predicate returns true.</p>
<div><p>Starting a tool replaces the <a href="Diagram.html#currentTool">Diagram.currentTool</a> with the new tool.
Successfully doing so also activates the new tool by calling <a href="Tool.html#doActivate">Tool.doActivate</a>
and passes on the mouse-up event to it by calling <a href="Tool.html#doMouseUp">Tool.doMouseUp</a>.</p>
<p>If no startable tool is found it deactivates this tool manager,
to get ready for a mouse-down and ignore mouse-move and mouse-up events.</p>
<p>This method may be overridden, but you should consider calling this base method in order to get all of its functionality.
Please read the Introduction page on <a href="../../intro/extensions.html">Extensions</a> for how to override methods and how to call this base method.</p>
</div></div><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 tsd-is-overwrite"><a id="doMouseWheel" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagOverride">Override</span> <span class="tsd-flag ts-flagVirtual">Virtual</span>  do<wbr/>Mouse<wbr/>Wheel<a href="#doMouseWheel" 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 tsd-is-overwrite"><li class="tsd-signature tsd-kind-icon">do<wbr/>Mouse<wbr/>Wheel<span class="tsd-signature-symbol">(</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"><div class="tsd-comment tsd-typography">
<p>The diagram will call this method as the mouse wheel is rotated.</p>
<div><p>By default this just calls <a href="Tool.html#standardMouseWheel">Tool.standardMouseWheel</a>.
This method may be overridden, but you should consider calling this base method in order to get all of its functionality.
Please read the Introduction page on <a href="../../intro/extensions.html">Extensions</a> for how to override methods and how to call this base method.</p>
</div></div><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="doToolTip" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagVirtual">Virtual</span>  do<wbr/>Tool<wbr/>Tip<a href="#doToolTip" 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">do<wbr/>Tool<wbr/>Tip<span class="tsd-signature-symbol">(</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"><div class="tsd-comment tsd-typography">
<p>Implement the standard behavior for tooltips,
called by <a href="ToolManager.html#doWaitAfter">doWaitAfter</a> when the mouse has not moved for a period of time.</p>
<div><p>This looks for a <a href="GraphObject.html">GraphObject</a> at the latest mouse point.
If it finds an object, it checks for a <a href="GraphObject.html#toolTip">GraphObject.toolTip</a>.
If it has none, this method searches up the visual tree for a containing
<a href="Panel.html">Panel</a> that does have a tooltip.</p>
<p>If it didn&#39;t find any object, this looks for a <a href="Diagram.html#toolTip">Diagram.toolTip</a>.</p>
<p>If it eventually finds a tooltip, this calls <a href="ToolManager.html#showToolTip">showToolTip</a>.
Otherwise this calls <a href="ToolManager.html#hideToolTip">hideToolTip</a>.</p>
<p>This method may be overridden, but you should consider calling this base method in order to get all of its functionality.
Please read the Introduction page on <a href="../../intro/extensions.html">Extensions</a> for how to override methods and how to call this base method.</p>
</div></div><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 tsd-is-overwrite"><a id="doWaitAfter" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagOverride">Override</span> <span class="tsd-flag ts-flagVirtual">Virtual</span>  do<wbr/>Wait<wbr/>After<a href="#doWaitAfter" 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 tsd-is-overwrite"><li class="tsd-signature tsd-kind-icon">do<wbr/>Wait<wbr/>After<span class="tsd-signature-symbol">(</span>event<span class="tsd-signature-symbol">: </span><a href="InputEvent.html" class="tsd-signature-type" data-tsd-kind="Class">InputEvent</a><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"><div class="tsd-comment tsd-typography">
<p>Implement the standard behavior for when the mouse has not moved for a period of time.
This is due to an expired timer started by calling <a href="Tool.html#standardWaitAfter">Tool.standardWaitAfter</a>.</p>
<div><p>This calls <a href="ToolManager.html#doMouseHover">doMouseHover</a> and, if not mouse-down, <a href="ToolManager.html#doToolTip">doToolTip</a>.
Afterwards, if the event that called <a href="Tool.html#standardWaitAfter">Tool.standardWaitAfter</a> was a touch event,
this simulates a right click, enabling context menu functionality and other actions on touch devices.</p>
<p>This method may be overridden, but you should consider calling this base method in order to get all of its functionality.
Please read the Introduction page on <a href="../../intro/extensions.html">Extensions</a> for how to override methods and how to call this base method.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>event: <a href="InputEvent.html" class="tsd-signature-type" data-tsd-kind="Class">InputEvent</a></h5><div class="tsd-comment tsd-typography">
<p>The event that caused <a href="Tool.html#standardWaitAfter">standardWaitAfter</a>. In this override,
if it is a touch event and the <a href="Diagram.html#lastInput">Diagram.lastInput</a> event is not handled (<a href="InputEvent.html#handled">InputEvent.handled</a> set to false),
then this method will simulate a right click.</p>
</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="findTool" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagVirtual">Virtual</span>  find<wbr/>Tool<a href="#findTool" 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">find<wbr/>Tool<span class="tsd-signature-symbol">(</span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="Tool.html" class="tsd-signature-type" data-tsd-kind="Class">Tool</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><div class="tsd-comment tsd-typography">
<p>Find a mouse tool of a given name.
This searches the <a href="ToolManager.html#mouseDownTools">mouseDownTools</a>, <a href="ToolManager.html#mouseMoveTools">mouseMoveTools</a>, and <a href="ToolManager.html#mouseUpTools">mouseUpTools</a> lists.</p>
<div><p>This method may be overridden, but you should consider calling this base method in order to get all of its functionality.
Please read the Introduction page on <a href="../../intro/extensions.html">Extensions</a> for how to override methods and how to call this base method.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>name: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography">
<p>the type of tool, such as &quot;Dragging&quot; or &quot;ClickSelecting&quot;.</p>
</div></li></ul><h4 class="tsd-returns-title">Returns <a href="Tool.html" class="tsd-signature-type" data-tsd-kind="Class">Tool</a></h4><div><p>a <a href="Tool.html">Tool</a> whose <a href="Tool.html#name">Tool.name</a> exactly matches the given name,
or null if no such tool is found in any of the three lists.</p>
</div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="hideToolTip" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagVirtual">Virtual</span>  hide<wbr/>Tool<wbr/>Tip<a href="#hideToolTip" 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">hide<wbr/>Tool<wbr/>Tip<span class="tsd-signature-symbol">(</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"><div class="tsd-comment tsd-typography">
<p>Hide any tooltip.</p>
<div><p>This method may be overridden, but you should consider calling this base method in order to get all of its functionality.
Please read the Introduction page on <a href="../../intro/extensions.html">Extensions</a> for how to override methods and how to call this base method.</p>
</div></div><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="initializeStandardTools" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagVirtual">Virtual</span>  initialize<wbr/>Standard<wbr/>Tools<a href="#initializeStandardTools" 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">initialize<wbr/>Standard<wbr/>Tools<span class="tsd-signature-symbol">(</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"><div class="tsd-comment tsd-typography">
<p>Initialize the three mouse tool lists with instances of the standard tools.
This adds new instances of tools to the following three mouse tool lists:
<a href="ToolManager.html#mouseDownTools">mouseDownTools</a>, <a href="ToolManager.html#mouseMoveTools">mouseMoveTools</a>, or <a href="ToolManager.html#mouseUpTools">mouseUpTools</a>.
This also sets the various tool properties of this ToolManager
to those newly created tools.
Please read the Introduction page on <a href="../../intro/extensions.html">Extensions</a> for how to override methods and how to call this base method.</p>
</div><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="positionToolTip" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagVirtual">Virtual</span>  position<wbr/>Tool<wbr/>Tip<a href="#positionToolTip" 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">position<wbr/>Tool<wbr/>Tip<span class="tsd-signature-symbol">(</span>tooltip<span class="tsd-signature-symbol">: </span><a href="Adornment.html" class="tsd-signature-type" data-tsd-kind="Class">Adornment</a>, obj<span class="tsd-signature-symbol">: </span><a href="GraphObject.html" class="tsd-signature-type" data-tsd-kind="Class">GraphObject</a><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"><div class="tsd-comment tsd-typography">
<p>This is called by <a href="ToolManager.html#showToolTip">showToolTip</a> to position the part within the viewport.
It normally goes just below the cursor.
But if the mouse is too close to the right edge or the bottom edge of the viewport,
it is positioned left and/or above the cursor.</p>
<div><p>This method only operates if the tooltip, an <a href="Adornment.html">Adornment</a>, does not have a <a href="Adornment.html#placeholder">Adornment.placeholder</a>.
When there is a <a href="Placeholder.html">Placeholder</a> in the tooltip, that Adornment is automatically positioned
so that the Placeholder is positioned at the adorned object, the second argument to this method.</p>
<p>This method may be overridden.
Please read the Introduction page on <a href="../../intro/extensions.html">Extensions</a> for how to override methods and how to call this base method.</p>
<p>If you override this method to position the tooltip,
the tooltip has already been measured but not arranged,
so you can use its <a href="GraphObject.html#measuredBounds">GraphObject.measuredBounds</a> width and height
but not its <a href="GraphObject.html#actualBounds">GraphObject.actualBounds</a>.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>tooltip: <a href="Adornment.html" class="tsd-signature-type" data-tsd-kind="Class">Adornment</a></h5></li><li><h5>obj: <a href="GraphObject.html" class="tsd-signature-type" data-tsd-kind="Class">GraphObject</a></h5><div class="tsd-comment tsd-typography">
<p>The <a href="GraphObject.html">GraphObject</a> getting the tooltip,
or null if the tooltip is for the diagram background.</p>
</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="replaceTool" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagVirtual">Virtual</span>  replace<wbr/>Tool<a href="#replaceTool" 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">replace<wbr/>Tool<span class="tsd-signature-symbol">(</span>name<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, newtool<span class="tsd-signature-symbol">: </span><a href="Tool.html" class="tsd-signature-type" data-tsd-kind="Class">Tool</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="Tool.html" class="tsd-signature-type" data-tsd-kind="Class">Tool</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><div class="tsd-comment tsd-typography">
<p>Replace a mouse tool of a given name with a new tool, or remove an existing tool (if the <em>newtool</em> is null).
This searches the <a href="ToolManager.html#mouseDownTools">mouseDownTools</a>, <a href="ToolManager.html#mouseMoveTools">mouseMoveTools</a>,
and <a href="ToolManager.html#mouseUpTools">mouseUpTools</a> lists.
The new tool is inserted into the same list in which the same-named tool is found,
at the same position as the old tool.
However, if no existing tool with the given name is present, this does <strong>not</strong> add the new tool to any list, since it cannot know where it should be added.
Please read the Introduction page on <a href="../../intro/extensions.html">Extensions</a> for how to override methods and how to call this base method.</p>
</div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>name: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography">
<p>the type of tool, such as &quot;Dragging&quot; or &quot;ClickSelecting&quot;.</p>
</div></li><li><h5>newtool: <a href="Tool.html" class="tsd-signature-type" data-tsd-kind="Class">Tool</a></h5><div class="tsd-comment tsd-typography">
<p>If null, any tool that the search finds will just be removed
from the list in which it was found.</p>
</div></li></ul><h4 class="tsd-returns-title">Returns <a href="Tool.html" class="tsd-signature-type" data-tsd-kind="Class">Tool</a></h4><div><p>the old tool that was replaced by the new one; this is null if none was found and the new tool was not added to any mouse tool list</p>
</div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="showToolTip" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagVirtual">Virtual</span>  show<wbr/>Tool<wbr/>Tip<a href="#showToolTip" 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">show<wbr/>Tool<wbr/>Tip<span class="tsd-signature-symbol">(</span>tooltip<span class="tsd-signature-symbol">: </span><a href="Adornment.html" class="tsd-signature-type" data-tsd-kind="Class">Adornment</a><span class="tsd-signature-symbol"> | </span><a href="HTMLInfo.html" class="tsd-signature-type" data-tsd-kind="Class">HTMLInfo</a>, obj<span class="tsd-signature-symbol">: </span><a href="GraphObject.html" class="tsd-signature-type" data-tsd-kind="Class">GraphObject</a><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"><div class="tsd-comment tsd-typography">
<p>Show a tooltip Adornment or HTMLInfo.
This is called by <a href="ToolManager.html#doToolTip">doToolTip</a> once that method has found a tooltip to display.</p>
<div><p>This calls <a href="ToolManager.html#positionToolTip">positionToolTip</a> to make it easier to customize how the tooltip
is positioned relative to the object with the tooltip.</p>
<p>This method may be overridden, but you should consider calling this base method in order to get all of its functionality.
Please read the Introduction page on <a href="../../intro/extensions.html">Extensions</a> for how to override methods and how to call this base method.</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>tooltip: <a href="Adornment.html" class="tsd-signature-type" data-tsd-kind="Class">Adornment</a><span class="tsd-signature-symbol"> | </span><a href="HTMLInfo.html" class="tsd-signature-type" data-tsd-kind="Class">HTMLInfo</a></h5></li><li><h5>obj: <a href="GraphObject.html" class="tsd-signature-type" data-tsd-kind="Class">GraphObject</a></h5><div class="tsd-comment tsd-typography">
<p>The GraphObject getting the tooltip; this is null if the tooltip is being shown for the diagram background.</p>
</div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section></section><section class="tsd-panel-group tsd-member-group "><h2>Constants</h2><section class="tsd-panel tsd-member tsd-kind-constant tsd-parent-kind-class tsd-is-static"><a id="static-GestureCancel" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagStatic">Static</span>  Gesture<wbr/>Cancel<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">EnumValue</span><a href="#static-GestureCancel" 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><div class="tsd-comment tsd-typography">
<p>This value for <a href="ToolManager.html#gestureBehavior">gestureBehavior</a> indicates that the pointer/touch pinch gestures
on the canvas intend to have no effect on the Diagram, but also no effect on the page.</p>
<dl class="tsd-comment-tags"><dt class="">since</dt><dd><p>1.5</p>
</dd></dl></div></section><section class="tsd-panel tsd-member tsd-kind-constant tsd-parent-kind-class tsd-is-static"><a id="static-GestureNone" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagStatic">Static</span>  Gesture<wbr/>None<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">EnumValue</span><a href="#static-GestureNone" 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><div class="tsd-comment tsd-typography">
<p>This value for <a href="ToolManager.html#gestureBehavior">gestureBehavior</a> indicates that the pointer/touch pinch gestures
on the canvas intend to have no effect on the Diagram, but will not be prevented,
and may bubble up the page to have other effects (such as zooming the page).</p>
<dl class="tsd-comment-tags"><dt class="">since</dt><dd><p>1.5</p>
</dd></dl></div></section><section class="tsd-panel tsd-member tsd-kind-constant tsd-parent-kind-class tsd-is-static"><a id="static-GestureZoom" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagStatic">Static</span>  Gesture<wbr/>Zoom<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">EnumValue</span><a href="#static-GestureZoom" 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><div class="tsd-comment tsd-typography">
<p>This value for <a href="ToolManager.html#gestureBehavior">gestureBehavior</a> indicates that the pointer/touch pinch gestures
on the canvas intend to zoom the Diagram.</p>
<dl class="tsd-comment-tags"><dt class="">since</dt><dd><p>1.5</p>
</dd></dl></div></section><section class="tsd-panel tsd-member tsd-kind-constant tsd-parent-kind-class tsd-is-static"><a id="static-WheelNone" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagStatic">Static</span>  Wheel<wbr/>None<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">EnumValue</span><a href="#static-WheelNone" 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><div class="tsd-comment tsd-typography">
<p>This value for <a href="ToolManager.html#mouseWheelBehavior">mouseWheelBehavior</a> indicates that the mouse wheel events are ignored,
although scrolling or zooming by other means may still be allowed.</p>
<dl class="tsd-comment-tags"><dt class="">since</dt><dd><p>1.2</p>
</dd></dl></div></section><section class="tsd-panel tsd-member tsd-kind-constant tsd-parent-kind-class tsd-is-static"><a id="static-WheelScroll" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagStatic">Static</span>  Wheel<wbr/>Scroll<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">EnumValue</span><a href="#static-WheelScroll" 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><div class="tsd-comment tsd-typography">
<p>This default value for <a href="ToolManager.html#mouseWheelBehavior">mouseWheelBehavior</a> indicates that mouse wheel events scroll the diagram.</p>
</div></section><section class="tsd-panel tsd-member tsd-kind-constant tsd-parent-kind-class tsd-is-static"><a id="static-WheelZoom" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagStatic">Static</span>  Wheel<wbr/>Zoom<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">EnumValue</span><a href="#static-WheelZoom" 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><div class="tsd-comment tsd-typography">
<p>This value for <a href="ToolManager.html#mouseWheelBehavior">mouseWheelBehavior</a> indicates that the mouse wheel events change the scale of the diagram.</p>
</div></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="ToolManager.html" class="tsd-kind-icon">Tool<wbr/>Manager</a><ul><li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite"><a href="ToolManager.html#constructor" class="tsd-kind-icon">constructor</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="ToolManager.html#actionTool" class="tsd-kind-icon">action<wbr/>Tool</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="ToolManager.html#clickCreatingTool" class="tsd-kind-icon">click<wbr/>Creating<wbr/>Tool</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="ToolManager.html#clickSelectingTool" class="tsd-kind-icon">click<wbr/>Selecting<wbr/>Tool</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="ToolManager.html#contextMenuTool" class="tsd-kind-icon">context<wbr/>Menu<wbr/>Tool</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="ToolManager.html#currentToolTip" class="tsd-kind-icon">current<wbr/>Tool<wbr/>Tip</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="ToolManager.html#dragSelectingTool" class="tsd-kind-icon">drag<wbr/>Selecting<wbr/>Tool</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="ToolManager.html#dragSize" class="tsd-kind-icon">drag<wbr/>Size</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="ToolManager.html#draggingTool" class="tsd-kind-icon">dragging<wbr/>Tool</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="ToolManager.html#gestureBehavior" class="tsd-kind-icon">gesture<wbr/>Behavior</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="ToolManager.html#holdDelay" class="tsd-kind-icon">hold<wbr/>Delay</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="ToolManager.html#hoverDelay" class="tsd-kind-icon">hover<wbr/>Delay</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="ToolManager.html#linkReshapingTool" class="tsd-kind-icon">link<wbr/>Reshaping<wbr/>Tool</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="ToolManager.html#linkingTool" class="tsd-kind-icon">linking<wbr/>Tool</a></li><li class="tsd-kind-get-signature tsd-parent-kind-class"><a href="ToolManager.html#mouseDownTools" class="tsd-kind-icon">mouse<wbr/>Down<wbr/>Tools</a></li><li class="tsd-kind-get-signature tsd-parent-kind-class"><a href="ToolManager.html#mouseMoveTools" class="tsd-kind-icon">mouse<wbr/>Move<wbr/>Tools</a></li><li class="tsd-kind-get-signature tsd-parent-kind-class"><a href="ToolManager.html#mouseUpTools" class="tsd-kind-icon">mouse<wbr/>Up<wbr/>Tools</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="ToolManager.html#mouseWheelBehavior" class="tsd-kind-icon">mouse<wbr/>Wheel<wbr/>Behavior</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="ToolManager.html#panningTool" class="tsd-kind-icon">panning<wbr/>Tool</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="ToolManager.html#relinkingTool" class="tsd-kind-icon">relinking<wbr/>Tool</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="ToolManager.html#resizingTool" class="tsd-kind-icon">resizing<wbr/>Tool</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="ToolManager.html#rotatingTool" class="tsd-kind-icon">rotating<wbr/>Tool</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="ToolManager.html#textEditingTool" class="tsd-kind-icon">text<wbr/>Editing<wbr/>Tool</a></li><li class="tsd-kind-accessor tsd-parent-kind-class"><a href="ToolManager.html#toolTipDuration" class="tsd-kind-icon">tool<wbr/>Tip<wbr/>Duration</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="ToolManager.html#doKeyDown" class="tsd-kind-icon">do<wbr/>Key<wbr/>Down</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="ToolManager.html#doKeyUp" class="tsd-kind-icon">do<wbr/>Key<wbr/>Up</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="ToolManager.html#doMouseDown" class="tsd-kind-icon">do<wbr/>Mouse<wbr/>Down</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="ToolManager.html#doMouseHover" class="tsd-kind-icon">do<wbr/>Mouse<wbr/>Hover</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="ToolManager.html#doMouseMove" class="tsd-kind-icon">do<wbr/>Mouse<wbr/>Move</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="ToolManager.html#doMouseUp" class="tsd-kind-icon">do<wbr/>Mouse<wbr/>Up</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="ToolManager.html#doMouseWheel" class="tsd-kind-icon">do<wbr/>Mouse<wbr/>Wheel</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="ToolManager.html#doToolTip" class="tsd-kind-icon">do<wbr/>Tool<wbr/>Tip</a></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-overwrite"><a href="ToolManager.html#doWaitAfter" class="tsd-kind-icon">do<wbr/>Wait<wbr/>After</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="ToolManager.html#findTool" class="tsd-kind-icon">find<wbr/>Tool</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="ToolManager.html#hideToolTip" class="tsd-kind-icon">hide<wbr/>Tool<wbr/>Tip</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="ToolManager.html#initializeStandardTools" class="tsd-kind-icon">initialize<wbr/>Standard<wbr/>Tools</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="ToolManager.html#positionToolTip" class="tsd-kind-icon">position<wbr/>Tool<wbr/>Tip</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="ToolManager.html#replaceTool" class="tsd-kind-icon">replace<wbr/>Tool</a></li><li class="tsd-kind-method tsd-parent-kind-class"><a href="ToolManager.html#showToolTip" class="tsd-kind-icon">show<wbr/>Tool<wbr/>Tip</a></li><li class="tsd-kind-constant tsd-parent-kind-class tsd-is-static"><a href="ToolManager.html#static-GestureCancel" class="tsd-kind-icon">Gesture<wbr/>Cancel</a></li><li class="tsd-kind-constant tsd-parent-kind-class tsd-is-static"><a href="ToolManager.html#static-GestureNone" class="tsd-kind-icon">Gesture<wbr/>None</a></li><li class="tsd-kind-constant tsd-parent-kind-class tsd-is-static"><a href="ToolManager.html#static-GestureZoom" class="tsd-kind-icon">Gesture<wbr/>Zoom</a></li><li class="tsd-kind-constant tsd-parent-kind-class tsd-is-static"><a href="ToolManager.html#static-WheelNone" class="tsd-kind-icon">Wheel<wbr/>None</a></li><li class="tsd-kind-constant tsd-parent-kind-class tsd-is-static"><a href="ToolManager.html#static-WheelScroll" class="tsd-kind-icon">Wheel<wbr/>Scroll</a></li><li class="tsd-kind-constant tsd-parent-kind-class tsd-is-static"><a href="ToolManager.html#static-WheelZoom" class="tsd-kind-icon">Wheel<wbr/>Zoom</a></li></ul></li></ul></nav></div></div></div><div class="tsd w-full max-w-screen-xl mx-auto px-2"><div class="bottom-copyright">Copyright © 1998-2022 by Northwoods Software Corporation.</div></div><footer class=""><div class="tsd w-full max-w-screen-xl mx-auto px-2"><h2>Settings</h2><p class="mb-4">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="overlay"></div><script src="../assets/main.js"></script><script async src="https://www.googletagmanager.com/gtag/js?id=UA-1506307-5"></script>
      <script>
        window.dataLayer = window.dataLayer || [];
        function gtag(){dataLayer.push(arguments);}
        gtag('js', new Date()); gtag('config', 'UA-1506307-5');
        var getOutboundLink = function(url, label) {
            gtag('event', 'click', {
            'event_category': 'outbound',
            'event_label': label,
            'transport_type': 'beacon'
            });
        }
        // topnav
        var topButton = document.getElementById("topnavButton");
        var topnavList = document.getElementById("topnavList");
        topButton.addEventListener("click", function() {
            this.classList.toggle("active");
            topnavList.classList.toggle("hidden");
            document.getElementById("topnavOpen").classList.toggle("hidden");
            document.getElementById("topnavClosed").classList.toggle("hidden");
        });

        document.getElementById("contactBtn").addEventListener("click", function() {
            getOutboundLink('https://www.nwoods.com/contact.html', 'contact');
        });

        document.getElementById("buyBtn").addEventListener("click", function() {
            getOutboundLink('https://www.nwoods.com/sales/index.html', 'buy');
        });
      </script></body></html>