Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

photo-sphere-viewer

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

photo-sphere-viewer - npm Package Compare versions

Comparing version 4.6.2 to 4.6.3

2

dist/adapters/cubemap-tiles.js
/*!
* Photo Sphere Viewer 4.6.2
* Photo Sphere Viewer 4.6.3
* @copyright 2014-2015 Jérémy Heleine

@@ -4,0 +4,0 @@ * @copyright 2015-2022 Damien "Mistic" Sorel

/*!
* Photo Sphere Viewer 4.6.2
* Photo Sphere Viewer 4.6.3
* @copyright 2014-2015 Jérémy Heleine

@@ -4,0 +4,0 @@ * @copyright 2015-2022 Damien "Mistic" Sorel

/*!
* Photo Sphere Viewer 4.6.2
* Photo Sphere Viewer 4.6.3
* @copyright 2014-2015 Jérémy Heleine

@@ -4,0 +4,0 @@ * @copyright 2015-2022 Damien "Mistic" Sorel

/*!
* Photo Sphere Viewer 4.6.2
* Photo Sphere Viewer 4.6.3
* @copyright 2014-2015 Jérémy Heleine

@@ -4,0 +4,0 @@ * @copyright 2015-2022 Damien "Mistic" Sorel

/*!
* Photo Sphere Viewer 4.6.2
* Photo Sphere Viewer 4.6.3
* @copyright 2014-2015 Jérémy Heleine

@@ -4,0 +4,0 @@ * @copyright 2015-2022 Damien "Mistic" Sorel

/*!
* Photo Sphere Viewer 4.6.2
* Photo Sphere Viewer 4.6.3
* @copyright 2014-2015 Jérémy Heleine

@@ -4,0 +4,0 @@ * @copyright 2015-2022 Damien "Mistic" Sorel

/*!
* Photo Sphere Viewer 4.6.2
* Photo Sphere Viewer 4.6.3
* @copyright 2014-2015 Jérémy Heleine

@@ -315,3 +315,3 @@ * @copyright 2015-2022 Damien "Mistic" Sorel

var longitude = this.psv.getPosition().longitude;
var fov = THREE.Math.degToRad(this.psv.prop.hFov);
var fov = THREE.MathUtils.degToRad(this.psv.prop.hFov);

@@ -318,0 +318,0 @@ this.__drawCone(context, this.config.coneColor, longitude, fov);

/*!
* Photo Sphere Viewer 4.6.2
* Photo Sphere Viewer 4.6.3
* @copyright 2014-2015 Jérémy Heleine

@@ -4,0 +4,0 @@ * @copyright 2015-2022 Damien "Mistic" Sorel

/*!
* Photo Sphere Viewer 4.6.2
* Photo Sphere Viewer 4.6.3
* @copyright 2014-2015 Jérémy Heleine

@@ -4,0 +4,0 @@ * @copyright 2015-2022 Damien "Mistic" Sorel

/*!
* Photo Sphere Viewer 4.6.2
* Photo Sphere Viewer 4.6.3
* @copyright 2014-2015 Jérémy Heleine

@@ -4,0 +4,0 @@ * @copyright 2015-2022 Damien "Mistic" Sorel

/*!
* Photo Sphere Viewer 4.6.2
* Photo Sphere Viewer 4.6.3
* @copyright 2014-2015 Jérémy Heleine

@@ -4,0 +4,0 @@ * @copyright 2015-2022 Damien "Mistic" Sorel

/*!
* Photo Sphere Viewer 4.6.2
* Photo Sphere Viewer 4.6.3
* @copyright 2014-2015 Jérémy Heleine

@@ -4,0 +4,0 @@ * @copyright 2015-2022 Damien "Mistic" Sorel

/*!
* Photo Sphere Viewer 4.6.2
* Photo Sphere Viewer 4.6.3
* @copyright 2014-2015 Jérémy Heleine

@@ -1165,4 +1165,4 @@ * @copyright 2015-2022 Damien "Mistic" Sorel

if (this.isGps()) {
var p1 = [THREE.Math.degToRad(node.position[0]), THREE.Math.degToRad(node.position[1])];
var p2 = [THREE.Math.degToRad(link.position[0]), THREE.Math.degToRad(link.position[1])];
var p1 = [THREE.MathUtils.degToRad(node.position[0]), THREE.MathUtils.degToRad(node.position[1])];
var p2 = [THREE.MathUtils.degToRad(link.position[0]), THREE.MathUtils.degToRad(link.position[1])];
var h1 = node.position[2] !== undefined ? node.position[2] : link.position[2] || 0;

@@ -1169,0 +1169,0 @@ var h2 = link.position[2] !== undefined ? link.position[2] : node.position[2] || 0;

/*!
* Photo Sphere Viewer 4.6.2
* Photo Sphere Viewer 4.6.3
* @copyright 2014-2015 Jérémy Heleine

@@ -281,3 +281,3 @@ * @copyright 2015-2022 Damien "Mistic" Sorel

range = photoSphereViewer.utils.clone(this.config.longitudeRange);
offset = THREE.Math.degToRad(this.psv.prop.hFov) / 2;
offset = THREE.MathUtils.degToRad(this.psv.prop.hFov) / 2;
range[0] = photoSphereViewer.utils.parseAngle(range[0] + offset);

@@ -309,3 +309,3 @@ range[1] = photoSphereViewer.utils.parseAngle(range[1] - offset);

range = photoSphereViewer.utils.clone(this.config.latitudeRange);
offset = THREE.Math.degToRad(this.psv.prop.vFov) / 2;
offset = THREE.MathUtils.degToRad(this.psv.prop.vFov) / 2;
range[0] = photoSphereViewer.utils.parseAngle(Math.min(range[0] + offset, range[1]), true);

@@ -312,0 +312,0 @@ range[1] = photoSphereViewer.utils.parseAngle(Math.max(range[1] - offset, range[0]), true);

{
"name": "photo-sphere-viewer",
"version": "4.6.2",
"version": "4.6.3",
"description": "A JavaScript library to display Photo Sphere panoramas",

@@ -36,3 +36,3 @@ "homepage": "https://photo-sphere-viewer.js.org",

"dependencies": {
"three": "^0.140.0",
"three": "^0.141.0",
"uevent": "^2.1.1"

@@ -39,0 +39,0 @@ },

@@ -230,3 +230,3 @@ import * as THREE from 'three';

const longitude = this.psv.getPosition().longitude;
const fov = THREE.Math.degToRad(this.psv.prop.hFov);
const fov = THREE.MathUtils.degToRad(this.psv.prop.hFov);

@@ -233,0 +233,0 @@ this.__drawCone(context, this.config.coneColor, longitude, fov);

@@ -269,3 +269,3 @@ import * as THREE from 'three';

const bounds = this.config.scale.longitude;
const halfFov = THREE.Math.degToRad(this.psv.prop.hFov) / 2;
const halfFov = THREE.MathUtils.degToRad(this.psv.prop.hFov) / 2;
const arc = Math.abs(getShortestArc(this.props.position.longitude, position.longitude));

@@ -272,0 +272,0 @@ scale *= bounds[1] + (bounds[0] - bounds[1]) * CONSTANTS.EASINGS.outQuad(Math.max(0, (halfFov - arc) / halfFov));

@@ -585,4 +585,4 @@ import * as THREE from 'three';

if (this.isGps()) {
const p1 = [THREE.Math.degToRad(node.position[0]), THREE.Math.degToRad(node.position[1])];
const p2 = [THREE.Math.degToRad(link.position[0]), THREE.Math.degToRad(link.position[1])];
const p1 = [THREE.MathUtils.degToRad(node.position[0]), THREE.MathUtils.degToRad(node.position[1])];
const p2 = [THREE.MathUtils.degToRad(link.position[0]), THREE.MathUtils.degToRad(link.position[1])];
const h1 = node.position[2] !== undefined ? node.position[2] : link.position[2] || 0;

@@ -589,0 +589,0 @@ const h2 = link.position[2] !== undefined ? link.position[2] : node.position[2] || 0;

@@ -214,3 +214,3 @@ import * as THREE from 'three';

range = utils.clone(this.config.longitudeRange);
offset = THREE.Math.degToRad(this.psv.prop.hFov) / 2;
offset = THREE.MathUtils.degToRad(this.psv.prop.hFov) / 2;

@@ -244,3 +244,3 @@ range[0] = utils.parseAngle(range[0] + offset);

range = utils.clone(this.config.latitudeRange);
offset = THREE.Math.degToRad(this.psv.prop.vFov) / 2;
offset = THREE.MathUtils.degToRad(this.psv.prop.vFov) / 2;

@@ -247,0 +247,0 @@ range[0] = utils.parseAngle(Math.min(range[0] + offset, range[1]), true);

@@ -50,3 +50,3 @@ import * as THREE from 'three';

vFovToHFov(vFov) {
return THREE.Math.radToDeg(2 * Math.atan(Math.tan(THREE.Math.degToRad(vFov) / 2) * this.prop.aspect));
return THREE.MathUtils.radToDeg(2 * Math.atan(Math.tan(THREE.MathUtils.degToRad(vFov) / 2) * this.prop.aspect));
}

@@ -256,5 +256,5 @@

return {
pan : THREE.Math.degToRad(panoData?.poseHeading || 0),
tilt: THREE.Math.degToRad(panoData?.posePitch || 0),
roll: THREE.Math.degToRad(panoData?.poseRoll || 0),
pan : THREE.MathUtils.degToRad(panoData?.poseHeading || 0),
tilt: THREE.MathUtils.degToRad(panoData?.posePitch || 0),
roll: THREE.MathUtils.degToRad(panoData?.poseRoll || 0),
};

@@ -261,0 +261,0 @@ }

@@ -724,4 +724,4 @@ import * as THREE from 'three';

const rotation = {
longitude: (x - this.state.mouseX) / this.prop.size.width * this.config.moveSpeed * THREE.Math.degToRad(this.prop.hFov),
latitude : (y - this.state.mouseY) / this.prop.size.height * this.config.moveSpeed * THREE.Math.degToRad(this.prop.vFov),
longitude: (x - this.state.mouseX) / this.prop.size.width * this.config.moveSpeed * THREE.MathUtils.degToRad(this.prop.hFov),
latitude : (y - this.state.mouseY) / this.prop.size.height * this.config.moveSpeed * THREE.MathUtils.degToRad(this.prop.vFov),
};

@@ -728,0 +728,0 @@

@@ -221,3 +221,3 @@ import * as THREE from 'three';

case 'degrees per second':
parsed = THREE.Math.degToRad(speedValue);
parsed = THREE.MathUtils.degToRad(speedValue);
break;

@@ -279,3 +279,3 @@

case 'degs':
parsed = THREE.Math.degToRad(value);
parsed = THREE.MathUtils.degToRad(value);
break;

@@ -282,0 +282,0 @@ case 'rad':

@@ -966,5 +966,5 @@ import * as THREE from 'three';

this.dynamics.zoom.setSpeed(this.config.zoomSpeed * 50);
this.dynamics.position.setSpeed(THREE.Math.degToRad(this.config.moveSpeed * 50));
this.dynamics.position.setSpeed(THREE.MathUtils.degToRad(this.config.moveSpeed * 50));
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc