From c0498ac556998ce61011a08dbf71347f3a982e68 Mon Sep 17 00:00:00 2001 From: Gordon Woodhull Date: Tue, 21 Jan 2020 12:47:34 -0500 Subject: [PATCH 1/4] use high resolution if available --- js/vivagraph.js | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/js/vivagraph.js b/js/vivagraph.js index 31e0293..e3de05c 100644 --- a/js/vivagraph.js +++ b/js/vivagraph.js @@ -5807,9 +5807,15 @@ Viva.Graph.View.webglGraphics = function (options) { updateSize = function () { if (container && graphicsRoot) { - width = graphicsRoot.width = Math.max(container.offsetWidth, 1); - height = graphicsRoot.height = Math.max(container.offsetHeight, 1); - if (gl) { gl.viewport(0, 0, width, height); } + const dpr = window.devicePixelRatio || 1; + width = graphicsRoot.width = Math.max(container.offsetWidth * dpr, 1); + height = graphicsRoot.height = Math.max(container.offsetHeight * dpr, 1); + if (gl) { + gl.viewport(0, 0, width, height); + gl.canvas.style = "width: 100%"; + gl.canvas.width = width; + gl.canvas.height = height; + } if (linkProgram) { linkProgram.updateSize(width / 2, height / 2); } if (nodeProgram) { nodeProgram.updateSize(width / 2, height / 2); } } @@ -6020,12 +6026,12 @@ Viva.Graph.View.webglGraphics = function (options) { container = c; graphicsRoot = window.document.createElement("canvas"); + gl = graphicsRoot.getContext("experimental-webgl", contextParameters); updateSize(); resetScaleInternal(); container.appendChild(graphicsRoot); - gl = graphicsRoot.getContext("experimental-webgl", contextParameters); if (!gl) { var msg = "Could not initialize WebGL. Seems like the browser doesn't support it."; window.alert(msg); From e85d252c3cee7862c8c2d1bc6382f03da83a4592 Mon Sep 17 00:00:00 2001 From: Gordon Woodhull Date: Tue, 21 Jan 2020 13:00:46 -0500 Subject: [PATCH 2/4] link to original --- index.html | 1 + 1 file changed, 1 insertion(+) diff --git a/index.html b/index.html index e624e16..63a05ac 100644 --- a/index.html +++ b/index.html @@ -56,6 +56,7 @@ - categorise transactions (simple, payments, mixing etc )
+

This is a fork of https://github.com/dailyblockchain/dailyblockchain.github.io &emdash; https://dailyblockchain.github.io/ Found this interesting :-) Please send some Satoshis here to keep me going:

1NGBYHnYYM1i4HZkLsoRy3oFB2DzqusCoU

donate

From 8979ce61bd31a823130fc3f5a3aa814b17b56d84 Mon Sep 17 00:00:00 2001 From: Gordon Woodhull Date: Tue, 21 Jan 2020 13:01:00 -0500 Subject: [PATCH 3/4] remove google analytics from this fork --- index.html | 9 --------- 1 file changed, 9 deletions(-) diff --git a/index.html b/index.html index 63a05ac..d4fc961 100644 --- a/index.html +++ b/index.html @@ -414,13 +414,4 @@ }); - From 065dc12ad4a967d7c93e29dcc3e83928cf47cbd5 Mon Sep 17 00:00:00 2001 From: Gordon Woodhull Date: Tue, 21 Jan 2020 13:03:27 -0500 Subject: [PATCH 4/4] fix wording / formatting --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index d4fc961..08b0058 100644 --- a/index.html +++ b/index.html @@ -56,7 +56,7 @@ - categorise transactions (simple, payments, mixing etc )
-

This is a fork of https://github.com/dailyblockchain/dailyblockchain.github.io &emdash; https://dailyblockchain.github.io/ +

This is a fork of https://github.com/dailyblockchain/dailyblockchain.github.io with high resolution enabled. See https://dailyblockchain.github.io/ for the original.

Found this interesting :-) Please send some Satoshis here to keep me going:

1NGBYHnYYM1i4HZkLsoRy3oFB2DzqusCoU

donate