Skip to content

Commit

Permalink
Release 4.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mistic100 committed Feb 7, 2022
2 parents 0daa54b + 29b9094 commit 68fd8fb
Show file tree
Hide file tree
Showing 89 changed files with 3,655 additions and 1,145 deletions.
11 changes: 10 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"ignorePatterns": [
"*.spec.js",
"DeviceOrientationControls.js"
"DeviceOrientationControls.js",
"StereoEffect.js"
],
"extends": "airbnb-base",
"parser": "@babel/eslint-parser",
Expand Down Expand Up @@ -92,6 +93,14 @@
"error",
"consistent-as-needed"
],
"quotes": [
"error",
"single",
{
"avoidEscape": true,
"allowTemplateLiterals": true
}
],
"lines-between-class-members": [
"error",
"always",
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ node_modules
package-lock.json
yarn.lock
yarn-error.log
/three-examples
/.netlify
29 changes: 29 additions & 0 deletions dist/adapters/cubemap-tiles.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import { AbstractAdapter, Viewer } from 'photo-sphere-viewer';
import { CubemapArray, Cubemap } from 'photo-sphere-viewer/dist/adapters/cubemap';

/**
* @summary Configuration of a tiled cubemap
*/
type CubemapTilesPanorama = {
baseUrl?: CubemapArray | Cubemap;
faceSize: number;
nbTiles: number;
tileUrl: (face: keyof Cubemap, col: number, row: number) => string;
};

type CubemapTilesAdapterOptions = {
flipTopBottom?: boolean;
showErrorTile?: boolean;
baseBlur?: boolean;
}

/**
* @summary Adapter for tiled cubemaps
*/
declare class CubemapTilesAdapter extends AbstractAdapter<CubemapTilesPanorama> {

constructor(psv: Viewer, options: CubemapTilesAdapterOptions);

}

export { CubemapTilesAdapter, CubemapTilesAdapterOptions, CubemapTilesPanorama };
Loading

0 comments on commit 68fd8fb

Please sign in to comment.