Skip to content

Commit 1bae758

Browse files
committed
Update component and package versions
1 parent fcce9a0 commit 1bae758

File tree

3 files changed

+2
-18
lines changed

3 files changed

+2
-18
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ npm install @photo-sphere-viewer/core react-photo-sphere-viewer
1313
1414
## Library Version
1515
Original Wrapped Library: [PhotoSphereViewer](https://github.com/mistic100/Photo-Sphere-Viewer) Version: 5.7.1 [<font color="green">**NEW**</font>]
16-
Now the component version is composed by the semantic version of the wrapper and the version of the original library. For example, the current version is 5.0.1-psv5.7.1. This means that the wrapper is in version 5.0.1 and the original library [psv](https://github.com/mistic100/Photo-Sphere-Viewer) is in version 5.7.1.
16+
Now the component version is composed by the semantic version of the wrapper and the version of the original library. For example, the current version is 5.0.2-psv5.7.1. This means that the wrapper is in version 5.0.2 and the original library [psv](https://github.com/mistic100/Photo-Sphere-Viewer) is in version 5.7.1.
1717

1818
## Description
1919

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-photo-sphere-viewer",
3-
"version": "5.0.1-psv5.7.1",
3+
"version": "5.0.2-psv5.7.1",
44
"description": "Photosphere Viewer for React.JS, wrapper of photo-sphere-viewer.js",
55
"author": "Elius94",
66
"license": "MIT",

src/index.tsx

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ export interface Props extends MakeOptional<ViewerConfig, "container"> {
105105
}
106106

107107
const defaultNavbar = [
108-
"autorotate",
109108
"zoom",
110109
"fullscreen"
111110
]
@@ -172,16 +171,13 @@ function useDomElement(): [HTMLDivElement | undefined, (r: HTMLDivElement) => vo
172171
* @property {Function} exitFullscreen - Exits fullscreen mode.
173172
* @property {Function} toggleFullscreen - Toggles fullscreen mode.
174173
* @property {Function} isFullscreenEnabled - Returns whether fullscreen is enabled.
175-
* @property {Function} startAutoRotate - Starts auto-rotation.
176-
* @property {Function} stopAutoRotate - Stops auto-rotation.
177174
* @property {Function} getPlugin - Returns a plugin. Receives a plugin ID or a PluginConstructor.
178175
* @property {Function} getPosition - Returns the current position.
179176
* @property {Function} getZoomLevel - Returns the current zoom level.
180177
* @property {Function} getSize - Returns the current size.
181178
* @property {Function} needsUpdate - Updates the viewer.
182179
* @property {Function} autoSize - Sets the size to auto.
183180
* @property {Function} setPanorama - Sets the panorama. Receives a path and an optional PanoramaOptions object. Returns a Promise.
184-
* @property {Function} toggleAutorotate - Toggles auto-rotation.
185181
* @property {Function} showError - Shows an error message. Receives a string.
186182
* @property {Function} hideError - Hides the error message.
187183
* @property {Function} startKeyboardControl - Starts keyboard control.
@@ -210,8 +206,6 @@ export interface ViewerAPI {
210206
exitFullscreen(): void;
211207
toggleFullscreen(): void;
212208
isFullscreenEnabled(): boolean | void;
213-
startAutoRotate(): void;
214-
stopAutoRotate(): void;
215209
getPlugin<T>(pluginId: string | PluginConstructor): T;
216210
getPosition(): Position; // Specify the return type
217211
getZoomLevel(): number; // Specify the return type
@@ -220,7 +214,6 @@ export interface ViewerAPI {
220214
autoSize(): void;
221215
// eslint-disable-next-line @typescript-eslint/no-explicit-any
222216
setPanorama(path: any, options?: PanoramaOptions): Promise<boolean>;
223-
toggleAutorotate(): void;
224217
showError(message: string): void;
225218
hideError(): void;
226219
startKeyboardControl(): void;
@@ -555,12 +548,6 @@ const ReactPhotoSphereViewer = forwardRef<ViewerAPI, Props>((props, ref): React.
555548
isFullscreenEnabled() {
556549
return spherePlayerInstance.current?.isFullscreenEnabled()
557550
},
558-
startAutoRotate() {
559-
Emitter.emit("startAutoRotate", {})
560-
},
561-
stopAutoRotate() {
562-
Emitter.emit("stopAutoRotate", {})
563-
},
564551
getPlugin<T>(pluginId: string | PluginConstructor): T {
565552
return spherePlayerInstance.current?.getPlugin(pluginId) as T
566553
},
@@ -583,9 +570,6 @@ const ReactPhotoSphereViewer = forwardRef<ViewerAPI, Props>((props, ref): React.
583570
setPanorama(path: any, options?: PanoramaOptions): Promise<boolean> {
584571
return spherePlayerInstance.current?.setPanorama(path, options) as Promise<boolean>
585572
},
586-
toggleAutorotate() {
587-
Emitter.emit("toggleAutorotate", {})
588-
},
589573
showError(message: string) {
590574
return spherePlayerInstance.current?.showError(message)
591575
},

0 commit comments

Comments
 (0)