changes on server

This commit is contained in:
Michael Murtaugh
2019-09-11 12:17:19 +02:00
parent c5af587d38
commit 47ce5c4d37
7 changed files with 126 additions and 80 deletions

View File

@@ -6,6 +6,7 @@ import { forceSimulation, forceLink, forceManyBody, forceCenter, forceX, forceY,
import { Wiki, Page } from './wiki.js';
import EventEmitter from 'eventemitter3';
import { json } from 'd3-fetch';
import { mobilecheck } from './mobilecheck.js';
// import { ForceNet } from './forcenet.js';
@@ -133,13 +134,24 @@ export class Map {
.on("zoom", () => {
this.content.attr("transform", event.transform);
// console.log("transform", event.transform, this.content.attr("transform"));
})
.filter(function () {
// console.log("filter", event);
if (event.touches && event.touches.length == 1) {
return false;
}
return true;
});
this.rect = this.svg.append("rect")
.attr("width", 1000)
.attr("height", 1000)
.style("fill", "none");
// .style("pointer-events", "all")
// .call(this.zoom);
if (!mobilecheck()) {
this.rect.style("pointer-events", "all")
.call(this.zoom);
}
this.content = this.svg.append("g")
.attr("id", "content"),
this.linksg = this.content.append("g")