Skip to content

Commit

Permalink
Release 4.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mistic100 committed Dec 11, 2022
2 parents 0208184 + 981c0a0 commit f7337e1
Show file tree
Hide file tree
Showing 41 changed files with 98 additions and 62 deletions.
2 changes: 1 addition & 1 deletion dist/adapters/cubemap-tiles.js

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

4 changes: 2 additions & 2 deletions dist/adapters/cubemap-video.js

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

2 changes: 1 addition & 1 deletion dist/adapters/cubemap-video.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/adapters/cubemap.js

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

2 changes: 1 addition & 1 deletion dist/adapters/equirectangular-tiles.js

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

4 changes: 2 additions & 2 deletions dist/adapters/equirectangular-video.js

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

2 changes: 1 addition & 1 deletion dist/adapters/equirectangular-video.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/adapters/little-planet.js

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

2 changes: 1 addition & 1 deletion dist/photo-sphere-viewer.css

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

13 changes: 11 additions & 2 deletions dist/photo-sphere-viewer.js

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

2 changes: 1 addition & 1 deletion dist/photo-sphere-viewer.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/plugins/autorotate-keypoints.js

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

2 changes: 1 addition & 1 deletion dist/plugins/compass.css

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

2 changes: 1 addition & 1 deletion dist/plugins/compass.js

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

2 changes: 1 addition & 1 deletion dist/plugins/gallery.css

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

2 changes: 1 addition & 1 deletion dist/plugins/gallery.js

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

2 changes: 1 addition & 1 deletion dist/plugins/gyroscope.js

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

2 changes: 1 addition & 1 deletion dist/plugins/markers.css

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

1 change: 1 addition & 0 deletions dist/plugins/markers.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ type SelectMarkerData = {

type MarkersPluginOptions = {
clickEventOnMarker?: boolean;
gotoMarkerSpeed?: string | number;
markers?: MarkerProperties[];
};

Expand Down
12 changes: 9 additions & 3 deletions dist/plugins/markers.js

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

2 changes: 1 addition & 1 deletion dist/plugins/markers.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/plugins/resolution.js

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

2 changes: 1 addition & 1 deletion dist/plugins/settings.css

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

2 changes: 1 addition & 1 deletion dist/plugins/settings.js

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

2 changes: 1 addition & 1 deletion dist/plugins/settings.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/plugins/stereo.js

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

2 changes: 1 addition & 1 deletion dist/plugins/video.css

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

2 changes: 1 addition & 1 deletion dist/plugins/video.js

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

2 changes: 1 addition & 1 deletion dist/plugins/virtual-tour.css

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

2 changes: 1 addition & 1 deletion dist/plugins/virtual-tour.js

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

2 changes: 1 addition & 1 deletion dist/plugins/visible-range.js

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

12 changes: 5 additions & 7 deletions docs/.netlify/functions/announcements.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
const axios = require('axios');

exports.handler = async function(event, context) {
if (event.httpMethod !== 'GET') {
return { statusCode: 405, body: 'Method Not Allowed' };
}

return await axios({
url : 'https://api.github.com/graphql',
return await fetch('https://api.github.com/graphql', {
method : 'POST',
headers: {
'Authorization': `bearer ${process.env.GH_TOKEN}`,
},
data : {
body : JSON.stringify({
query: `
query {
repository(owner: "mistic100", name: "photo-sphere-viewer") {
Expand All @@ -27,10 +24,11 @@ exports.handler = async function(event, context) {
}
}
}`,
},
}),
})
.then(response => response.json())
.then(result => {
const announcements = result.data.data.repository.pinnedDiscussions.nodes.map(n => n.discussion);
const announcements = result.data.repository.pinnedDiscussions.nodes.map(n => n.discussion);
return {
statusCode: 200,
body: JSON.stringify(announcements)
Expand Down
12 changes: 5 additions & 7 deletions docs/.netlify/functions/releases.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
const axios = require('axios');

exports.handler = async function(event, context) {
if (event.httpMethod !== 'GET') {
return { statusCode: 405, body: 'Method Not Allowed' };
}

return await axios({
url : 'https://api.github.com/graphql',
return await fetch('https://api.github.com/graphql', {
method : 'POST',
headers: {
'Authorization': `bearer ${process.env.GH_TOKEN}`,
},
data : {
body : JSON.stringify({
query: `
query {
repository(owner: "mistic100", name: "photo-sphere-viewer") {
Expand All @@ -26,10 +23,11 @@ exports.handler = async function(event, context) {
}
}
}`,
},
}),
})
.then(response => response.json())
.then(result => {
const releases = result.data.data.repository.releases.nodes;
const releases = result.data.repository.releases.nodes;
return {
statusCode: 200,
body: JSON.stringify(releases)
Expand Down
8 changes: 7 additions & 1 deletion docs/plugins/plugin-markers.md
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,12 @@ lang: {

_Note: this option is not part of the plugin but is merged with the main [`lang`](../guide/config.md#lang) object._

#### `gotoMarkerSpeed` <Badge text="4.8.1"/>
- type: `string|number`
- default `'8rpm'`

Default animation speed for `gotoMarker` method.

#### `clickEventOnMarker`
- type: `boolean`
- default: `false`
Expand Down Expand Up @@ -529,7 +535,7 @@ Returns the last marker clicked by the user.
Moves the view to face a specific marker.

```js
markersPlugin.gotoMarker('marker-1', 1500)
markersPlugin.gotoMarker('marker-1', '4rpm')
.then(() => /* animation complete */);
```

Expand Down
8 changes: 4 additions & 4 deletions example/plugin-markers.html
Original file line number Diff line number Diff line change
Expand Up @@ -426,11 +426,11 @@ <h2>Lorem ipsum</h2>
});

// add markers all hover the sphere
for (let i = 0; i < Math.PI * 2; i += Math.PI / 4) {
for (let j = -Math.PI / 2 + Math.PI / 4; j < Math.PI / 2; j += Math.PI / 4) {
for (let i = 0, k = 1; i < Math.PI * 2; i += Math.PI / 4) {
for (let j = -Math.PI / 2 + Math.PI / 4; j < Math.PI / 2; j += Math.PI / 4, k++) {
a.push({
id : '#' + a.length,
tooltip : '#' + a.length,
id : '#' + k,
tooltip : '#' + k,
latitude : j,
longitude: i,
image : 'assets/pin-red.png',
Expand Down
Loading

0 comments on commit f7337e1

Please sign in to comment.