planetary.js icon indicating copy to clipboard operation
planetary.js copied to clipboard

missing plugins?

Open samthomson opened this issue 5 years ago • 0 comments

Not sure if plugins aren't exported or I've missed a setup step (have scoured docs). I can get a basic planet on the screen but I get an error when trying to use a plugin like in the docs.

image

I just have this import

import * as Planetaryjs from "planetary.js";

and then applying the plugin like so:

const planet = Planetaryjs.planet();
const canvas = document.getElementById("globe");
planet.loadPlugin(Planetaryjs.plugins.autocenter({ extraHeight: -120 }));

samthomson avatar Mar 26 '20 19:03 samthomson