Image and texture loading system

Hierarchy

  • AbstractService
    • TextureLoader

Properties

viewer: Viewer

Methods

  • Loads a Blob with FileLoader

    Parameters

    • url: string
    • OptionalonProgress: ((p: number) => void)
        • (p): void
        • Parameters

          • p: number

          Returns void

    • OptionalcacheKey: string

    Returns Promise<Blob>

  • Loads an image with ImageLoader or with FileLoader if progress is tracked or if request headers are configured

    Parameters

    • url: string
    • OptionalonProgress: ((p: number) => void)
        • (p): void
        • Parameters

          • p: number

          Returns void

    • OptionalcacheKey: string

    Returns Promise<HTMLImageElement>