From 8b4c6c201440d331b633ed9b032e4cc06ab56bc9 Mon Sep 17 00:00:00 2001
From: Uwe Oestermeier
Date: Fri, 5 Jul 2019 14:11:43 +0200
Subject: [PATCH] Fixed doctest problems.
---
dist/iwmlib.js | 5 +++--
dist/iwmlib.pixi.js | 8 ++++++--
lib/scatter.html | 22 +++++++++++-----------
lib/scatter.js | 5 +++--
4 files changed, 23 insertions(+), 17 deletions(-)
diff --git a/dist/iwmlib.js b/dist/iwmlib.js
index 286c758..5a17a14 100644
--- a/dist/iwmlib.js
+++ b/dist/iwmlib.js
@@ -4985,10 +4985,11 @@
* @param {String} [touchAction=none] - CSS to set touch action style, needed to prevent
* pointer cancel events. Use null if the
* the touch action should not be set.
+ * @param {DOM node} debugCanvas - Shows debug infos about touches if not null
*/
constructor(
element,
- { stopEvents = 'auto', claimEvents = true, useCapture = true, touchAction = 'none' } = {}
+ { stopEvents = 'auto', claimEvents = true, useCapture = true, touchAction = 'none', debugCanvas = null } = {}
) {
this.onCapture = null;
this.element = element;
@@ -5020,7 +5021,7 @@
mouseWheelElement: window
});
- if (typeof debugCanvas !== 'undefined') {
+ if (debugCanvas !== null) {
requestAnimationFrame(dt => {
this.showTouches(dt, debugCanvas);
});
diff --git a/dist/iwmlib.pixi.js b/dist/iwmlib.pixi.js
index eb0f1d2..ef8ed40 100644
--- a/dist/iwmlib.pixi.js
+++ b/dist/iwmlib.pixi.js
@@ -6053,6 +6053,10 @@
window.Capabilities = Capabilities;
window.CapabilitiesTests = CapabilitiesTests;
+ /** Basic class for poppable elements that need to be closed as soon as one poppable is
+ * shown.
+ */
+
/* eslint-disable no-unused-vars */
/**
* A base class for scatter specific events.
@@ -14829,7 +14833,7 @@
* @extends Popup
* @see {@link https://www.iwm-tuebingen.de/iwmbrowser/lib/pixi/popupmenu.html|DocTest}
*/
- class PopupMenu extends Popup {
+ class PopupMenu$1 extends Popup {
/**
* Creates an instance of a PopupMenu.
@@ -15478,7 +15482,7 @@
window.Stylus = Stylus;
window.Switch = Switch;
window.Popup = Popup;
- window.PopupMenu = PopupMenu;
+ window.PopupMenu = PopupMenu$1;
window.Modal = Modal;
window.Volatile = Volatile;
window.Message = Message;
diff --git a/lib/scatter.html b/lib/scatter.html
index 4a3ad99..f3e04d7 100644
--- a/lib/scatter.html
+++ b/lib/scatter.html
@@ -13,9 +13,8 @@
debugCanvas.width = main.getBoundingClientRect().width
let context = debugCanvas.getContext('2d')
context.clearRect(0, 0, debugCanvas.width, debugCanvas.height)
-
let stage = scatterContainer.polygon
- stage.draw(context, { stroke: '#0000FF'})
+ stage.draw(context, { stroke: "#0000FF"})
for(let scatter of scatterContainer.scatter.values()) {
let polygon = scatter.polygon
polygon.draw(context, { stroke: '#0000FF'})
@@ -26,6 +25,7 @@
requestAnimationFrame((dt) => {
drawPolygons()
animatePolygons()
+
})
}
@@ -81,6 +81,8 @@ app.run()
animatePolygons()
+
+
Interactive Content
@@ -91,21 +93,19 @@ elements under or nearby the event position and calls the click handler. Thus ge
can be disambiguated as moves, zooms. or taps.
-
-
+
+
-
A Link
-
A Div with click handler
+
A Link
+
A Div with click handler