🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →

@photo-sphere-viewer/markers-plugin

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@photo-sphere-viewer/markers-plugin - npm Package Compare versions

Comparing version

to
5.12.0

@@ -1,2 +0,2 @@

import { Point, Position, Size, ExtendedPosition, AbstractConfigurablePlugin, utils, Viewer, TypedEvent } from '@photo-sphere-viewer/core';
import { Point, Position, Size, SphericalPosition, PanoramaPosition, ExtendedPosition, AbstractConfigurablePlugin, utils, Viewer, TypedEvent } from '@photo-sphere-viewer/core';
import { ColorRepresentation, Object3D } from 'three';

@@ -72,16 +72,18 @@

* Array of points defining the polygon in spherical coordinates
* Nested arrays are used to define holes
*/
polygon?: Array<[number, number]> | Array<Array<[number, number]>> | Array<[string, string]> | Array<Array<[string, string]>>;
polygon?: Array<[number, number]> | Array<Array<[number, number]>> | Array<[string, string]> | Array<Array<[string, string]>> | SphericalPosition[] | SphericalPosition[][];
/**
* Array of points defining the polygon in pixel coordinates on the panorama image
* Nested arrays are used to define holes
*/
polygonPixels?: Array<[number, number]> | Array<Array<[number, number]>>;
polygonPixels?: Array<[number, number]> | Array<Array<[number, number]>> | PanoramaPosition[] | PanoramaPosition[][];
/**
* Array of points defining the polyline in spherical coordinates
*/
polyline?: Array<[number, number]> | Array<[string, string]> | number[] | string[];
polyline?: Array<[number, number]> | Array<[string, string]> | SphericalPosition[];
/**
* Array of points defining the polyline in pixel coordinates on the panorama image
*/
polylinePixels?: Array<[number, number]> | number[];
polylinePixels?: Array<[number, number]> | PanoramaPosition[];
/**

@@ -111,6 +113,2 @@ * Unique identifier of the marker

/**
* @deprecated Use `rotation` as an object
*/
orientation?: 'front' | 'horizontal' | 'vertical-left' | 'vertical-right';
/**
* Configures the scale of the marker depending on the zoom level and/or the horizontal offset (ignored for `polygon`, `polyline`, `imageLayer`, `videoLayer`)

@@ -370,3 +368,3 @@ */

*/
setMarkers(markers: MarkerConfig[], render?: boolean): void;
setMarkers(markers: MarkerConfig[] | null, render?: boolean): void;
/**

@@ -373,0 +371,0 @@ * Removes all markers

{
"name": "@photo-sphere-viewer/markers-plugin",
"version": "5.11.5",
"version": "5.12.0",
"description": "Photo Sphere Viewer plugin to display various markers/hotspots on the viewer.",

@@ -37,3 +37,3 @@ "keywords": [

"./index.css": "./index.css",
"./index.scss": "./index.scss"
"./index.scss": "./styles/index.scss"
},

@@ -44,7 +44,7 @@ "main": "index.cjs",

"style": "index.css",
"sass": "index.scss",
"sass": "styles/index.scss",
"dependencies": {},
"peerDependencies": {
"@photo-sphere-viewer/core": "5.11.5"
"@photo-sphere-viewer/core": "5.12.0"
}
}

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 too big to display

Sorry, the diff of this file is not supported yet