@three-tile/lib
    Preparing search index...

    Class TileLoadingManager

    Hierarchy

    • LoadingManager
      • TileLoadingManager
    Index

    Constructors

    • Parameters

      • OptionalonLoad: () => void
      • OptionalonProgress: (url: string, loaded: number, total: number) => void
      • OptionalonError: (url: string) => void

      Returns TileLoadingManager

    Properties

    onError: (url: string) => void

    Will be called when item loading fails. The default is a function with empty body.

    Type Declaration

      • (url: string): void
      • Parameters

        • url: string

          The url of the item that errored.

        Returns void

    onLoad: () => void

    Will be called when all items finish loading. The default is a function with empty body.

    onParseEnd?: (geometry: BufferGeometry) => void = undefined
    onProgress: (url: string, loaded: number, total: number) => void

    Will be called for each loaded item. The default is a function with empty body.

    Type Declaration

      • (url: string, loaded: number, total: number): void
      • Parameters

        • url: string

          The url of the item just loaded.

        • loaded: number

          The number of items already loaded so far.

        • total: number

          The total amount of items to be loaded.

        Returns void

    onStart?: (url: string, loaded: number, total: number) => void

    Will be called when loading of an item starts.

    Type Declaration

      • (url: string, loaded: number, total: number): void
      • Parameters

        • url: string

          The url of the item that started loading.

        • loaded: number

          The number of items already loaded so far.

        • total: number

          The total amount of items to be loaded.

        Returns void

    Methods

    • Parameters

      • regex: RegExp
      • loader: Loader

      Returns this

    • Parameters

      • file: string

      Returns Loader<unknown, string> | null

    • Parameters

      • url: string

      Returns void

    • Parameters

      • url: string

      Returns void

    • Parameters

      • url: string

      Returns void

    • Parameters

      • geometry: BufferGeometry

      Returns void

    • Parameters

      • regex: RegExp

      Returns this

    • Given a URL, uses the URL modifier callback (if any) and returns a resolved URL. If no URL modifier is set, returns the original URL.

      Parameters

      • url: string

        the url to load

      Returns string

    • If provided, the callback will be passed each resource URL before a request is sent. The callback may return the original URL, or a new URL to override loading behavior. This behavior can be used to load assets from .ZIP files, drag-and-drop APIs, and Data URIs.

      Parameters

      • Optionalcallback: (url: string) => string

        URL modifier callback. Called with url argument, and must return resolvedURL.

      Returns this