Skip to content

Add plugin system #529

@gkjohnson

Description

@gkjohnson

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 } ) );

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions