Skip to content

Commit

Permalink
Release 4.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mistic100 committed Oct 16, 2021
2 parents 64a799d + 2e9bea8 commit 0e246bd
Show file tree
Hide file tree
Showing 170 changed files with 10,656 additions and 3,301 deletions.
7 changes: 1 addition & 6 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"no-bitwise": "off",
"no-else-return": "off",
"no-multiple-empty-lines": "off",
"no-param-reassign": "off",
"no-plusplus": "off",
"no-restricted-properties": "off",
"no-underscore-dangle": "off",
Expand Down Expand Up @@ -55,12 +56,6 @@
"switches": "never"
}
],
"no-param-reassign": [
"error",
{
"props": false
}
],
"no-console": [
"error",
{
Expand Down
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: daily
time: "04:00"
open-pull-requests-limit: 10
assignees:
- mistic100
8 changes: 4 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/node_modules
node_modules
/.idea
/*.iml
/public
/package-lock.json
/yarn.lock
/yarn-error.log
package-lock.json
yarn.lock
yarn-error.log
/three-examples
3 changes: 0 additions & 3 deletions .jsdoc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"source": {
"excludePattern": "PhotoSphereViewerCompat\\.js"
},
"opts": {
"recurse": true,
"private": false,
Expand Down
24 changes: 24 additions & 0 deletions dist/adapters/cubemap.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { AbstractAdapter, TextureData } from 'photo-sphere-viewer';

/**
* @summary Object defining a cubemap
*/
type Cubemap = string[6] | {
top: string;
right: string;
bottom: string;
left: string;
front: string;
back: string;
};

/**
* @summary Adapter for cubemaps
*/
declare class CubemapAdapter extends AbstractAdapter {

loadTexture(panorama: Cubemap): Promise<TextureData>;

}

export { Cubemap, CubemapAdapter };
205 changes: 205 additions & 0 deletions dist/adapters/cubemap.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/adapters/cubemap.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 30 additions & 0 deletions dist/adapters/equirectangular-tiles.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import { AbstractAdapter, Viewer, TextureData } from 'photo-sphere-viewer';

/**
* @summary Configuration of a tiled panorama
*/
type EquirectangularTilesPanorama = {
baseUrl?: string;
width: number;
cols: number;
rows: number;
tileUrl: (col: number, row: number) => string;
};

type EquirectangularTilesAdapterOptions = {
showErrorTile?: boolean;
baseBlur?: boolean;
}

/**
* @summary Adapter for tiled panoramas
*/
declare class EquirectangularTilesAdapter extends AbstractAdapter {

constructor(psv: Viewer, options: EquirectangularTilesAdapterOptions);

loadTexture(panorama: EquirectangularTilesPanorama): Promise<TextureData>;

}

export { EquirectangularTilesAdapter, EquirectangularTilesAdapterOptions, EquirectangularTilesPanorama };
Loading

0 comments on commit 0e246bd

Please sign in to comment.