Upgrade photo sphere viewer to 5.5.0

This commit is contained in:
Rémi BERTHO 2023-12-14 14:51:53 +01:00
parent 90d0eacca6
commit 440d4bd83a
Signed by: dalan
GPG key ID: EE3B917931C07B64
6 changed files with 20 additions and 85 deletions

File diff suppressed because one or more lines are too long

View file

@ -17,47 +17,27 @@
width: 100%;
height: 100%;
}
.psv-button.custom-button {
font-size: 22px;
line-height: 20px;
}
.demo-label {
color: white;
font-size: 20px;
font-family: Helvetica, sans-serif;
text-align: center;
padding: 5px;
border: 1px solid white;
background: rgba(0,0,0,0.4);
}
</style>
</head>
<body>
<div id="photosphere"></div>
</head>
<!-- the viewer container must have a defined size -->
<div id="photosphere" style="width: 100vw; height: 100vh;"></div>
<script src="js/three.min.js"></script>
<script src="js/browser.min.js"></script>
<script src="js/photo-sphere-viewer.min.js"></script>
<script src="js/photo-sphere-viewer-core.min.js"></script>
<h1>Panorama</h1>>
<script>
var PSV = new PhotoSphereViewer.Viewer({
container: 'photosphere',
panorama: 'img',
caption: 'Panorama displayed with Photo Sphere Viewer V4.7.1',
caption: 'Panorama displayed with Photo Sphere Viewer V5.5.0',
defaultZoomLvl: 40,
minFov: 5,
maxFov: 75,
navbar: [
'autorotate',
'zoom',
'caption'
]
});
</script>
</body>
</html>

View file

@ -1,13 +0,0 @@
/**
* Minified by jsDelivr using Terser v5.13.1.
* Original file: /npm/uevent@2.2.0/browser.js
*
* Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
*/
/*!
* uevent (v2.2.0)
* @copyright 2015-2022 Damien "Mistic" Sorel <contact@git.strangeplanet.fr>
* @licence MIT
*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).uEvent={})}(this,(function(e){"use strict";var t=function(){return!0},n=function(){return!1},i=function(){function e(e,t,i){Object.defineProperties(this,{target:{get:function(){return e},set:function(){},enumerable:!0},type:{get:function(){return t},set:function(){},enumerable:!0},args:{get:function(){return i},set:function(){},enumerable:!0}}),this.isDefaultPrevented=n,this.isPropagationStopped=n}var i=e.prototype;return i.preventDefault=function(){this.isDefaultPrevented=t},i.stopPropagation=function(){this.isPropagationStopped=t},e}(),o=function(){function e(){}var t=e.prototype;return t.on=function(e,t){var n=this;if(this.__events=this.__events||{},"object"==typeof e)for(var i in e)e.hasOwnProperty(i)&&(this.__events[i]=this.__events[i]||[],this.__events[i].push(e[i]));else e.split(" ").forEach((function(e){n.__events[e]=n.__events[e]||[],n.__events[e].push(t)}));return this},t.off=function(e,t){var n=this;if("object"==typeof e){for(var i in e)if(e.hasOwnProperty(i)){if(this.__events&&i in this.__events){var o=this.__events[i].indexOf(e[i]);-1!==o&&this.__events[i].splice(o,1)}if(this.__once&&i in this.__once){var s=this.__once[i].indexOf(e[i]);-1!==s&&this.__once[i].splice(s,1)}}}else e?e.split(" ").forEach((function(e){if(n.__events&&e in n.__events)if(t){var i=n.__events[e].indexOf(t);-1!==i&&n.__events[e].splice(i,1)}else n.__events[e].length=0;if(n.__once&&e in n.__once)if(t){var o=n.__once[e].indexOf(t);-1!==o&&n.__once[e].splice(o,1)}else n.__once[e].length=0})):(this.__events={},this.__once={});return this},t.once=function(e,t){var n=this;if(this.__once=this.__once||{},"object"==typeof e)for(var i in e)e.hasOwnProperty(i)&&(this.__once[i]=this.__once[i]||[],this.__once[i].push(e[i]));else e.split(" ").forEach((function(e){n.__once[e]=n.__once[e]||[],n.__once[e].push(t)}));return this},t.trigger=function(e){var t=Array.prototype.slice.call(arguments,1),n=new i(this,e,t);if(this.__events&&e in this.__events)for(var o=0,s=this.__events[e].length;o<s;o++){var r=this.__events[e][o];if("object"==typeof r?r.handleEvent(n):r.call.apply(r,[this,n].concat(t)),n.isPropagationStopped())break}if(this.__once&&e in this.__once){for(var _=0,c=this.__once[e].length;_<c;_++){var f=this.__once[e][_];if("object"==typeof f?f.handleEvent(n):f.call.apply(f,[this,n].concat(t)),n.isPropagationStopped())break}delete this.__once[e]}return n},t.change=function(e,t){var n=Array.prototype.slice.call(arguments,2),o=new i(this,e,n);if(o.value=t,this.__events&&e in this.__events)for(var s=0,r=this.__events[e].length;s<r;s++){var _=this.__events[e][s];if(o.value="object"==typeof _?_.handleEvent(o):_.call.apply(_,[this,o,o.value].concat(n)),o.isPropagationStopped())break}return o.value},e}(),s=o;var r={EventEmitter:s,Event:i,mixin:function(e){return e="function"==typeof e?e.prototype:e,["on","off","once","trigger","change"].forEach((function(t){e[t]=s.prototype[t]})),e}},_=r.EventEmitter,c=r.Event,f=r.mixin;e.Event=c,e.EventEmitter=_,e.default=r,e.mixin=f,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=/sm/6e1cf618058ab48868e5db5dfff14558719776929185eb69b3789d1452b3a600.map

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -4,7 +4,7 @@ use anyhow::{anyhow, bail, Result};
use clap::{Arg, Command};
use log::info;
use native_dialog::{FileDialog, MessageDialog};
use rand::distributions::{DistString};
use rand::distributions::DistString;
use rust_embed::RustEmbed;
use simplelog::{ColorChoice, ConfigBuilder, LevelFilter, TermLogger, TerminalMode};
use std::{borrow::Cow, path::PathBuf, thread::JoinHandle};