Mixin: Renderable

Renderable

Common methods for classes can be rendered, e.g. Map, Layers

Static Methods

  • (static) registerRenderer(name, clazz) [source]

  • Register a renderer class with the given name.
    Parameter Type Description
    name String renderer's register key
    clazz function renderer's class, a function (not necessarily a Class).
    Returns:
    *: this
  • (static) getRendererClass(name) [source]

  • Get the registered renderer class by the given name
    Parameter Type Description
    name String renderer's register key
    Returns:
    function: renderer's class