Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: defaultZoomLvl only works with images in the public directory. #65

Open
1 task
devinmarkley opened this issue Nov 7, 2024 · 0 comments
Open
1 task
Assignees
Labels
bug Something isn't working

Comments

@devinmarkley
Copy link

What happened?

defaultZoomLvl only works with images in the public directory.

What should have happened?

The image should zoom to the default no matter how to is served.

Code

`import React from "react";
import { ReactPhotoSphereViewer } from "react-photo-sphere-viewer";

function App() {
const photoSphereRef = React.useRef();
return (


<ReactPhotoSphereViewer
ref={photoSphereRef}
/* defaultZoomLvl will only work with images in the public directory */
src={"https://i.ibb.co/23KMzTN/GSAA5125.jpg"}
defaultZoomLvl={0}
hideNavbarButton={true}
width={"100vw"}
height={"100vh"}
navbar={false}
/>

);
}

export default App;`

Sandbox Link

https://codesandbox.io/p/github/devinmarkley/rps_example/main?workspaceId=ada4ce98-a807-4c56-b005-aabd6d57a5c0

Library Version

"react-photo-sphere-viewer": "^6.0.0"
"@photo-sphere-viewer/core": "^5.9.0"

What operating system are you using?

macOS

What browser are you using?

Chrome

Logs

Failed to parse source map from '/project/workspace/node_modules/react-photo-sphere-viewer/src/index.tsx' file: Error: ENOENT: no such file or directory, open '/project/workspace/node_modules/react-photo-sphere-viewer/src/index.tsx'

Search for the keywords to learn more about each warning.
To ignore, add // eslint-disable-next-line to the line before.

WARNING in ./node_modules/react-photo-sphere-viewer/dist/index.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/project/workspace/node_modules/react-photo-sphere-viewer/src/index.tsx' file: Error: ENOENT: no such file or directory, open '/project/workspace/node_modules/react-photo-sphere-viewer/src/index.tsx'

Interest to fix the bug

  • I would like to fix this bug!
@devinmarkley devinmarkley added the bug Something isn't working label Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants