Skip to content

Commit

Permalink
Release 4.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mistic100 committed Apr 29, 2020
2 parents 41b3bda + 59b7078 commit 2ad1073
Show file tree
Hide file tree
Showing 30 changed files with 81 additions and 41 deletions.
5 changes: 3 additions & 2 deletions .jsdoc.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@
"recurse": true,
"private": false,
"template": "node_modules/@pixi/jsdoc-template",
"readme": "docs/jsdoc.md"
"readme": "docs/.jsdoc/index.md"
},
"plugins": [
"plugins/markdown",
"@pixi/jsdoc-template/plugins/es6-fix"
"@pixi/jsdoc-template/plugins/es6-fix",
"docs/.jsdoc/cleanup-exports"
],
"templates": {
"applicationName": "Photo Sphere Viewer",
Expand Down
21 changes: 11 additions & 10 deletions dist/photo-sphere-viewer.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/photo-sphere-viewer.css.map

Large diffs are not rendered by default.

9 changes: 7 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/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.

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

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

4 changes: 3 additions & 1 deletion 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/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/visible-range.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/viewer-compat.js

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

10 changes: 10 additions & 0 deletions docs/.jsdoc/cleanup-exports.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
exports.handlers = {
newDoclet: function (e) {
e.doclet.name = e.doclet.name.replace('exports.', '');
e.doclet.longname = e.doclet.longname.replace('exports.', '');

if (typeof e.doclet.meta.code.name === 'string') {
e.doclet.meta.code.name = e.doclet.meta.code.name.replace('exports.', '');
}
},
};
12 changes: 6 additions & 6 deletions docs/jsdoc.md → docs/.jsdoc/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

# [← Main documentation](..)

# [Primary class](PSV.Viewer.html)
# [Viewer](PSV.Viewer.html)

# [List of events](PSV.html#.event:autorotate)
# [Events](PSV.html#.event:autorotate)

# [Plugins](PSV.plugins.html)

Expand All @@ -15,10 +15,10 @@
- [AbstractButton](PSV.buttons.AbstractButton.html)
- [AbstractPlugin](PSV.plugins.AbstractPlugin.html)
- [Animation](PSV.Animation.html)
- [CONSTANTS](PSV.CONSTANTS.html)
- [DEFAULTS](PSV.html#.exports.DEFAULTS)
- CONSTANTS
- [DEFAULTS](PSV.html#.DEFAULTS)
- [PSVError](PSV.PSVError.html)
- [registerButton](PSV.html#.exports.registerButton)
- [SYSTEM](PSV.html#.exports.SYSTEM)
- [registerButton](PSV.html#.registerButton)
- [SYSTEM](PSV.html#.SYSTEM)
- [Viewer](PSV.Viewer.html)
- [utils](PSV.utils.html)
12 changes: 12 additions & 0 deletions docs/.vuepress/components/ApiButton.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<template>
<md-button class="md-raised md-primary" v-bind:href="href" target="_blank">
API Documentation
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="white" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="white" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg>
</md-button>
</template>

<script>
export default {
props: ['href'],
};
</script>
2 changes: 1 addition & 1 deletion docs/.vuepress/plugins/version-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export default {
mounted () {
setTimeout(() => {
const titleElt = document.querySelector('.site-name');
titleElt.innerHTML+= ` <small class="md-badge md-primary md-square md-theme-default">4.0.0</small>`;
titleElt.innerHTML+= ` <small class="md-badge md-primary md-square md-theme-default">4.0.1</small>`;
});
}
}
2 changes: 2 additions & 0 deletions docs/.vuepress/public/_headers
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/assets/*
Access-Control-Allow-Origin: *
2 changes: 1 addition & 1 deletion docs/plugins/plugin-autorotate-keypoints.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# AutorotateKeypointsPlugin

<md-button class="md-raised md-primary" href="https://photo-sphere-viewer.js.org/api/PSV.plugins.AutorotateKeypointsPlugin.html">API Documentation</md-button>
<ApiButton href="https://photo-sphere-viewer.js.org/api/PSV.plugins.AutorotateKeypointsPlugin.html"/>

> Replaces the standard autorotate animation by a smooth transition between multiple points.
Expand Down
2 changes: 1 addition & 1 deletion docs/plugins/plugin-gyroscope.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# GyroscopePlugin

<md-button class="md-raised md-primary" href="https://photo-sphere-viewer.js.org/api/PSV.plugins.GyroscopePlugin.html">API Documentation</md-button>
<ApiButton href="https://photo-sphere-viewer.js.org/api/PSV.plugins.GyroscopePlugin.html"/>

> Adds gyroscope controls on mobile devices.
Expand Down
2 changes: 1 addition & 1 deletion docs/plugins/plugin-markers.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ Size of the marker.
_(This option is ignored for polygons and polylines)_

#### `scale`
- type : 'double | double[]'
- type : `double | double[]`

Scale factor multiplied by the zoom level. Provide an array of two values for min and max.
By default the scale is constant.
Expand Down
2 changes: 1 addition & 1 deletion docs/plugins/plugin-stereo.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# StereoPlugin

<md-button class="md-raised md-primary" href="https://photo-sphere-viewer.js.org/api/PSV.plugins.StereoPlugin.html">API Documentation</md-button>
<ApiButton href="https://photo-sphere-viewer.js.org/api/PSV.plugins.StereoPlugin.html"/>

> Adds stereo view on mobile devices. **Requires the Gyroscope plugin.**
Expand Down
2 changes: 1 addition & 1 deletion docs/plugins/plugin-visible-range.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# VisibleRangePlugin

<md-button class="md-raised md-primary" href="https://photo-sphere-viewer.js.org/api/PSV.plugins.VisibleRangePlugin.html">API Documentation</md-button>
<ApiButton href="https://photo-sphere-viewer.js.org/api/PSV.plugins.VisibleRangePlugin.html"/>

> Locks visible longitude and/or latitude.
Expand Down
4 changes: 2 additions & 2 deletions example/plugin-markers.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ <h3>Header Level 3</h3>
<li>Aliquam tincidunt mauris eu risus.</li>
</ul>

<img src="assets/pin2.png" style="width:100%"/>
<img src="assets/pin-blue.png" style="width:100%"/>

<pre><code>
#header h1 a {
Expand Down Expand Up @@ -228,7 +228,7 @@ <h3>Header Level 3</h3>

a.push({
id : 'text',
html : 'This <b>is</b> text <img src="assets/pin3.png" style="height: 24px; vertical-align: top;"/>',
html : 'This <b>is</b> text <img src="assets/pin-blue.png" style="height: 24px; vertical-align: top;"/>',
anchor : 'bottom right',
style : {
color : 'white',
Expand Down
Loading

0 comments on commit 2ad1073

Please sign in to comment.