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

Add plugin system #529

Open
gkjohnson opened this issue Apr 24, 2024 · 0 comments
Open

Add plugin system #529

gkjohnson opened this issue Apr 24, 2024 · 0 comments
Milestone

Comments

@gkjohnson
Copy link
Contributor

gkjohnson commented Apr 24, 2024

Related to #525, #490

class FadePlugin() {

  attach( tiles ) {

    // register events, etc

  }

  dispose() {

    // unregister events

  }

  async beginDataParse() {}
  async completeDataParse() {}

}

tiles = new TilesRenderer();

tiles.registerPlugin( new FadePlugin() );
tiles.registerPlugin( new IonPlugin() ); // GoogleAPIPlugin()
tiles.registerPlugin( new CustomMaterialPlugin() );
tiles.registerPlugin( new TextureOverlayPlugin() );
tiles.registerPlugin( new GLTFLoaderPlugin( { dracoLoader, meshOptDecoder } ) );
@gkjohnson gkjohnson added this to the v0.3.32 milestone Apr 24, 2024
@gkjohnson gkjohnson modified the milestones: v0.3.32, v0.3.33 May 14, 2024
@gkjohnson gkjohnson changed the title Consider a plugin system Add plugin system May 25, 2024
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