Photo Sphere Viewer
    Preparing search index...

    Class TextureLoader

    Image and texture loading system

    Hierarchy

    • AbstractService
      • TextureLoader
    Index

    Properties

    viewer: Viewer

    Methods

    • Loads a Blob with FileLoader

      Parameters

      • url: string
      • OptionalonProgress: (p: number) => 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
      • OptionalcacheKey: string

      Returns Promise<HTMLImageElement>