Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing plugins? #26

Open
samthomson opened this issue Mar 26, 2020 · 0 comments
Open

missing plugins? #26

samthomson opened this issue Mar 26, 2020 · 0 comments

Comments

@samthomson
Copy link

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 }));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant