forked from JeremyHeleine/Photo-Sphere-Viewer
-
-
Notifications
You must be signed in to change notification settings - Fork 686
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
141 changed files
with
5,962 additions
and
1,431 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,28 @@ | ||
import { AbstractAdapter, TextureData } from 'photo-sphere-viewer'; | ||
import { AbstractAdapter } from 'photo-sphere-viewer'; | ||
|
||
/** | ||
* @summary Cubemap defined as an array of images | ||
* @description images order is : left, front, right, back, top, bottom | ||
*/ | ||
type CubemapArray = string[6]; | ||
|
||
/** | ||
* @summary Object defining a cubemap | ||
*/ | ||
type Cubemap = string[6] | { | ||
top: string; | ||
right: string; | ||
bottom: string; | ||
type Cubemap = { | ||
left: string; | ||
front: string; | ||
right: string; | ||
back: string; | ||
top: string; | ||
bottom: string; | ||
}; | ||
|
||
/** | ||
* @summary Adapter for cubemaps | ||
*/ | ||
declare class CubemapAdapter extends AbstractAdapter { | ||
|
||
loadTexture(panorama: Cubemap): Promise<TextureData>; | ||
declare class CubemapAdapter extends AbstractAdapter<CubemapArray | Cubemap> { | ||
|
||
} | ||
|
||
export { Cubemap, CubemapAdapter }; | ||
export { Cubemap, CubemapAdapter, CubemapArray }; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.