diff --git a/README.md b/README.md
index 786eff6..8f17456 100644
--- a/README.md
+++ b/README.md
@@ -65,6 +65,9 @@ panel_custom:
- Fix for Javscript Error in Log, blank screen - "Uncaught SyntaxError: Unexpected token '<'" (hopefully)
- Added 'tap' and 'touchstart' event for mobile devices. (Thank you @dennykorsukewitz!)
- Changed the colors of legends and sub legends. #DarkMode (Thank you @dennykorsukewitz!)
+#### Version 3.2: (08 October 2020)
+- Pinch to zoom added for the benefit of mobile device users
+- Touch has been made somewhat less eager to open the More Info dialog. Doesn't happen on touch start but rather on tap. Otherwise pinch-to-zoom was somewhat of a nightmare.
## TODO:
- support for theming
diff --git a/zwavegraph3.js b/zwavegraph3.js
index 8fbb865..7495cb9 100644
--- a/zwavegraph3.js
+++ b/zwavegraph3.js
@@ -36,6 +36,12 @@
- Fix for Javscript Error in Log, blank screen - "Uncaught SyntaxError: Unexpected token '<'" (hopefully)
- Added 'tap' and 'touchstart' event for mobile devices. (Thank you @dennykorsukewitz!)
- Changed the colors of legends and sub legends. #DarkMode (Thank you @dennykorsukewitz!)
+
+ Version 3.2: (08 October 2020)
+ - Pinch to zoom added for the benefit of mobile device users
+ - Touch has been made somewhat less eager to open the More Info dialog. Doesn't happen on touch start but rather on tap. Otherwise pinch-to-zoom was somewhat of a nightmare.
+
+
*/
import {
@@ -47,24 +53,33 @@ import {
import "https://d3js.org/d3.v5.min.js";
import "https://cdnjs.cloudflare.com/ajax/libs/dagre-d3/0.6.1/dagre-d3.js";
import "https://cdn.jsdelivr.net/npm/svg-pan-zoom@3.5.0/dist/svg-pan-zoom.min.js";
+import "https://hammerjs.github.io/dist/hammer.min.js"
class ZWaveGraphPanel extends LitElement {
static get properties() {
return {
- hass: { type: Object },
- narrow: { type: Boolean },
- route: { type: Object },
- panel: { type: Object },
+ hass: {
+ type: Object
+ },
+ narrow: {
+ type: Boolean
+ },
+ route: {
+ type: Object
+ },
+ panel: {
+ type: Object
+ },
};
}
- getHtmlTemplate = function(){
+ getHtmlTemplate = function () {
var template = this.render();
return template.getHTML();
}
render() {
- return html`
+ return html `