From 763f580bc23f76603977b82417d35eeba8b5e5e7 Mon Sep 17 00:00:00 2001 From: Joe Pea Date: Wed, 18 Sep 2019 14:46:54 -0700 Subject: [PATCH] allow the user to call globe.resize() to resize the global when needed Useful when listening to size changes on elements that are not `window`. --- globe/globe.js | 1 + 1 file changed, 1 insertion(+) diff --git a/globe/globe.js b/globe/globe.js index 806e5697..917e7db9 100644 --- a/globe/globe.js +++ b/globe/globe.js @@ -402,6 +402,7 @@ DAT.Globe = function(container, opts) { this.createPoints = createPoints; this.renderer = renderer; this.scene = scene; + this.resize = onWindowResize; return this;