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

Closed
gkjohnson opened this issue Apr 24, 2024 · 0 comments · Fixed by #603
Closed

Add plugin system #529

gkjohnson opened this issue Apr 24, 2024 · 0 comments · Fixed by #603
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
@gkjohnson gkjohnson modified the milestones: v0.3.34, v0.3.35 Jun 18, 2024
This was referenced Jul 6, 2024
@gkjohnson gkjohnson modified the milestones: v0.3.37, v0.3.36 Jul 6, 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

Successfully merging a pull request may close this issue.

1 participant