{"id":36503097,"url":"https://github.com/farminf/pannellum-react","last_synced_at":"2026-01-12T02:26:04.722Z","repository":{"id":32757775,"uuid":"141713319","full_name":"farminf/pannellum-react","owner":"farminf","description":"React Component for Pannellum (open source panorama viewer for the web)","archived":false,"fork":false,"pushed_at":"2024-04-01T02:46:36.000Z","size":62139,"stargazers_count":120,"open_issues_count":30,"forks_count":82,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-10-19T01:03:07.624Z","etag":null,"topics":["360-view","component","library","npm-package","pannellum","panorama","react","react-360","react-vr","react-vrviewer"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/farminf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-20T13:08:48.000Z","updated_at":"2025-07-18T14:03:25.000Z","dependencies_parsed_at":"2024-06-18T15:42:41.101Z","dependency_job_id":null,"html_url":"https://github.com/farminf/pannellum-react","commit_stats":{"total_commits":101,"total_committers":13,"mean_commits":7.769230769230769,"dds":0.6732673267326732,"last_synced_commit":"356a0995d903895393570b904a10ccff76640059"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/farminf/pannellum-react","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farminf%2Fpannellum-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farminf%2Fpannellum-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farminf%2Fpannellum-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farminf%2Fpannellum-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/farminf","download_url":"https://codeload.github.com/farminf/pannellum-react/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farminf%2Fpannellum-react/sbom","scorecard":{"id":392998,"data":{"date":"2025-08-11","repo":{"name":"github.com/farminf/pannellum-react","commit":"356a0995d903895393570b904a10ccff76640059"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.7,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":3,"reason":"Found 6/19 approved changesets -- score normalized to 3","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":-1,"reason":"internal error: internal error: Client.Checks.ListCheckRunsForRef: error during graphqlHandler.setupCheckRuns: non-200 OK status code: 502 Bad Gateway body: \"\u003chtml\u003e\\r\\n\u003chead\u003e\u003ctitle\u003e502 Bad Gateway\u003c/title\u003e\u003c/head\u003e\\r\\n\u003cbody\u003e\\r\\n\u003ccenter\u003e\u003ch1\u003e502 Bad Gateway\u003c/h1\u003e\u003c/center\u003e\\r\\n\u003chr\u003e\u003ccenter\u003enginx\u003c/center\u003e\\r\\n\u003c/body\u003e\\r\\n\u003c/html\u003e\\r\\n\"","details":null,"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"87 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-crh6-fp67-6883","Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-whgm-jr23-g3j9","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-fwr7-v2mv-hh25","Warn: Project is vulnerable to: GHSA-qwcr-r2fm-qrc7","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-x9w5-v3q2-3rhw","Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-p28h-cc7q-c4fg","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-434g-2637-qmqr","Warn: Project is vulnerable to: GHSA-49q7-c7j4-3p7m","Warn: Project is vulnerable to: GHSA-977x-g7h5-7qgw","Warn: Project is vulnerable to: GHSA-f7q4-pwc6-w24p","Warn: Project is vulnerable to: GHSA-fc9h-whq2-v747","Warn: Project is vulnerable to: GHSA-vjh7-7g9h-fjfh","Warn: Project is vulnerable to: GHSA-j4f2-536g-r55m","Warn: Project is vulnerable to: GHSA-r7qp-cfhv-p84w","Warn: Project is vulnerable to: GHSA-3gx7-xhv7-5mx3","Warn: Project is vulnerable to: GHSA-6h5x-7c5m-7cr7","Warn: Project is vulnerable to: GHSA-rv95-896h-c2vc","Warn: Project is vulnerable to: GHSA-qw6h-vgh9-j6wx","Warn: Project is vulnerable to: GHSA-2j2x-2gpw-g8fm","Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc","Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-8mmm-9v2q-x3f9","Warn: Project is vulnerable to: GHSA-c7qv-q95q-8v27","Warn: Project is vulnerable to: GHSA-78xj-cgh5-2h22","Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp","Warn: Project is vulnerable to: GHSA-896r-f27r-55mw","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-7x7c-qm48-pq9c","Warn: Project is vulnerable to: GHSA-rc3x-jf5g-xvc5","Warn: Project is vulnerable to: GHSA-6c8f-qphg-qjgp","Warn: Project is vulnerable to: GHSA-76p3-8jx3-jpfq","Warn: Project is vulnerable to: GHSA-3rfm-jhwj-7488","Warn: Project is vulnerable to: GHSA-hhq3-ff78-jv3g","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-fhjf-83wg-r2j9","Warn: Project is vulnerable to: GHSA-5rrq-pxf6-6jx5","Warn: Project is vulnerable to: GHSA-8fr3-hfg3-gpgp","Warn: Project is vulnerable to: GHSA-gf8q-jrpm-jvxq","Warn: Project is vulnerable to: GHSA-2r2c-g63r-vccr","Warn: Project is vulnerable to: GHSA-cfm4-qjh2-4765","Warn: Project is vulnerable to: GHSA-x4jg-mjrx-434g","Warn: Project is vulnerable to: GHSA-rp65-9cf3-cjxr","Warn: Project is vulnerable to: GHSA-76c9-3jph-rj3q","Warn: Project is vulnerable to: GHSA-6fx8-h7jm-663j","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j","Warn: Project is vulnerable to: GHSA-rhx6-c78j-4q9w","Warn: Project is vulnerable to: GHSA-h7cp-r72f-jxh6","Warn: Project is vulnerable to: GHSA-v62p-rq8g-8h59","Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg","Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p","Warn: Project is vulnerable to: GHSA-4g88-fppr-53pp","Warn: Project is vulnerable to: GHSA-4jqc-8m5r-9rpr","Warn: Project is vulnerable to: GHSA-25hc-qcg6-38wj","Warn: Project is vulnerable to: GHSA-qm95-pgcg-qqfq","Warn: Project is vulnerable to: GHSA-cqmj-92xf-r6r9","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-4wf5-vphf-c2xc","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-662x-fhqg-9p8v","Warn: Project is vulnerable to: GHSA-394c-5j6w-4xmx","Warn: Project is vulnerable to: GHSA-78cj-fxph-m83p","Warn: Project is vulnerable to: GHSA-fhg7-m89q-25r3","Warn: Project is vulnerable to: GHSA-cf4h-3jhx-xvhq","Warn: Project is vulnerable to: GHSA-wr3j-pwj9-hqq6","Warn: Project is vulnerable to: GHSA-4v9v-hfq4-rm2v","Warn: Project is vulnerable to: GHSA-9jgg-88mc-972h","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T18:17:50.939Z","repository_id":32757775,"created_at":"2025-08-18T18:17:50.939Z","updated_at":"2025-08-18T18:17:50.939Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28332395,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T00:36:25.062Z","status":"online","status_checked_at":"2026-01-12T02:00:08.677Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["360-view","component","library","npm-package","pannellum","panorama","react","react-360","react-vr","react-vrviewer"],"created_at":"2026-01-12T02:26:04.634Z","updated_at":"2026-01-12T02:26:04.710Z","avatar_url":"https://github.com/farminf.png","language":"JavaScript","readme":"# pannellum-react\n\n[![npm package][npm-badge]][npm]\n\nReact Component library for the [Pannellum](https://github.com/mpetroff/pannellum/) project.\n\n_Special thanks to [Matthew Petroff](https://github.com/mpetroff)_\n\n[npm-badge]: https://img.shields.io/npm/v/pannellum-react.svg\n[npm]: https://www.npmjs.org/package/pannellum-react\n[coveralls-badge]: https://coveralls.io/repos/github/farminf/pannellum-react/badge.svg?branch=master\n[coveralls]: https://coveralls.io/github/farminf/pannellum-react\n\n**Currently there are some problem with React V18**\n\n## Install and Import\n\nInstall pannellum-react component\n\n```bash\nnpm install pannellum-react --save\n```\n\nor\n\n```\nyarn add pannellum-react\n```\n\nImport pannellum-react in your react component file by\n\n```js\nimport { Pannellum, PannellumVideo } from \"pannellum-react\";\n```\n\n_Note: By using import Pannellum from \"pannellum-react/es/elements/Pannellum\" the video.js component will be skipped, which decreases the production build by more than 500kb._\n\n\u003e **Note:** Currently only `equirectangular` type is supported! planning to do also `multires`\n\n\u003e **Note:** `Tours` component currently is not supported but is WIP.\n\u003e **Note:** For having video tours, there is the custum hotspot which can implement the video scene changing using `handleClick`. In fact in can be the tour for videos and photos.\n\u003e **Note:** You can also create your tour with custom hotspot, by changing the image dynamically.\n\u003e **Note:** If you manage the props by state, you can update the component smoothly (example: updating yaw, pitch or hfov won't re-render the image and it will dynamically update)\n\n## Demo\n\nhttps://farminf.github.io/pannellum-react/\n\nyou can also use codesandbox playground\n\n[![Edit q27rq5p6](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/q27rq5p6)\n\n## Simple Example\n\n```JavaScript\nimport React, { Component } from 'react';\nimport { render } from 'react-dom';\n\nimport { Pannellum, PannellumVideo } from \"pannellum-react\";\nimport myImage from \"./images/alma.jpg\";\nimport myVideo from \"./images/video.mp4\";\n\n\nconst PannellumReact = () =\u003e (\n  \u003cdiv\u003e\n    \u003ch1\u003ePannellum React Component\u003c/h\u003e\n    \u003cPannellum\n        width=\"100%\"\n        height=\"500px\"\n        image={myImage}\n        pitch={10}\n        yaw={180}\n        hfov={110}\n        autoLoad\n        onLoad={() =\u003e {\n            console.log(\"panorama loaded\");\n        }}\n    \u003e\n      \u003cPannellum.Hotspot\n        type=\"info\"\n        pitch={11}\n        yaw={-167}\n        text=\"Info Hotspot Text 3\"\n        URL=\"https://github.com/farminf/pannellum-react\"\n      /\u003e\n\n      \u003cPannellum.Hotspot\n        type=\"info\"\n        pitch={31}\n        yaw={-107}\n        text=\"Info Hotspot Text 4\"\n        URL=\"https://github.com/farminf/pannellum-react\"\n      /\u003e\n    \u003c/Pannellum\u003e\n\n    {/******  for video 360 component *******/}\n\n    \u003cPannellumVideo\n      video={myVideo}\n      loop\n      width=\"100%\"\n      height=\"600px\"\n      pitch={10}\n      yaw={180}\n      hfov={140}\n      minHfov={50}\n      maxHfov={180}\n    \u003e\n      \u003cPannellum.Hotspot\n        type=\"custom\"\n        pitch={31}\n        yaw={150}\n        handleClick={(evt , name) =\u003e this.hanldeClick(name)}\n        name=\"hs1\"\n      /\u003e\n\n      \u003cPannellum.Hotspot\n        type=\"info\"\n        pitch={31}\n        yaw={-57}\n        text=\"Info\"\n        URL=\"https://github.com/farminf\"\n      /\u003e\n    \u003c/PannellumVideo\u003e\n\n    \u003c/div\u003e\n);\n\nexport default PannellumReact;\n```\n\n## API\n\npannellum-react has most of the official pannellum properties (not all of them). It just needed to be passed as props of the `pannellum` component like example above.on\n\n### **Props API**\n\n| Name                   | Type     | Default                 | Description                                                                                                  |\n| ---------------------- | -------- | ----------------------- | ------------------------------------------------------------------------------------------------------------ |\n| id                     | String   | Unique Generated String | If you pass it, it will use it for div id, if not it would be unique string for each component               |\n| width                  | String   | \"100%\"                  | The width of the panorama div                                                                                |\n| height                 | String   | \"400px\"                 | The height of the panorama div                                                                               |\n| image                  | String   | \"\"                      | The 360 image path                                                                                           |\n| haov                   | Number   | 360                     | Initial horizontal angle of view                                                                             |\n| vaov                   | Number   | 180                     | Initial vertical angle of view                                                                               |\n| vOffsect               | Number   | 0                       | Initial vertical offset angle                                                                                |\n| yaw                    | Number   | 0                       | Starting yaw position in degrees                                                                             |\n| pitch                  | Number   | 0                       | Starting pitch position in degrees                                                                           |\n| hfov                   | Number   | 100                     | Starting horizontal field of view in degrees                                                                 |\n| maxHfov                | Number   | 150                     | Maximum field of view which user can zoom (in degrees)                                                       |\n| minHfov                | Number   | 50                      | Minimum field of view which user can zoom (in degrees)                                                       |\n| maxPitch               | Number   | 90                      | Maximum field of view pitch (in degrees)                                                                     |\n| minPitch               | Number   | -90                     | Minimum field of view pitch (in degrees)                                                                     |\n| maxYaw                 | Number   | 180                     | Maximum field of view yaw (in degrees)                                                                       |\n| minYaw                 | Number   | -180                    | Minimum field of view yaw (in degrees)                                                                       |\n| autoRotate             | Number   | 0                       | rotation speed in degrees per second. Positive is counter-clockwise, and negative is clockwise.              |\n| compass                | Boolean  | false                   | Showing compass if true                                                                                      |\n| title                  | String   | \"\"                      | Displays as the panorama’s title                                                                             |\n| author                 | String   | \"\"                      | Displays as the panorama’s author                                                                            |\n| preview                | String   | \"\"                      | Preview image path to display                                                                                |\n| previewTitle           | String   | \"\"                      | Preview title to display                                                                                     |\n| previewAuthor          | String   | \"\"                      | Preview Author to display                                                                                    |\n| autoLoad               | Boolean  | false                   | Load and dsplay the image automatically if true                                                              |\n| orientationOnByDefault | Boolean  | false                   | If true Device orientation will work if device supported                                                     |\n| showZoomCtrl           | Boolean  | true                    | The zoom control display on the image                                                                        |\n| keyboardZoom           | Boolean  | true                    | Enables zoom control from keyboard if true                                                                   |\n| disableKeyboardCtrl    | Boolean  | false                   | Disables control from keyboard if true                                                                       |\n| mouseZoom              | Boolean  | true                    | Enables zoom control with mouse if true                                                                      |\n| draggable              | Boolean  | true                    | If false, mouse and touch dragging is disabled                                                               |\n| showFullscreenCtrl     | Boolean  | true                    | FullScreen control display                                                                                   |\n| showControls           | Boolean  | true                    | if False, no control displays                                                                                |\n| onLoad                 | Function |                         | Callback function which fires after loading                                                                  |\n| onRender               | Function |                         | Callback function which fires after each render, helpful if you need to react to yaw/pitch/roll/zoom changes |\n| onError                | Function |                         | Callback function which fires after error                                                                    |\n| onErrorcleared         | Function |                         | Callback function which calls after clearing the error                                                       |\n| onMousedown            | Function |                         | Callback function which calls after mouse button press                                                       |\n| onMouseup              | Function |                         | Callback function which calls after mouse button release                                                     |\n| onTouchstart           | Function |                         | Callback function which calls after touch starts                                                             |\n| onTouchend             | Function |                         | Callback function which calls after touch ends                                                               |\n| hotspotDebug           | Boolean  | false                   | For debug pupose (finding correct point for hotspot)                                                         |\n| doubleClickZoom        | Boolean  | true                    | Zoom if you double click                                                                                     |\n\nAdditionally, by Getting refrence of the component, you can get the pannellum **Viewer** calling `getViewer()` which gives all the available functions of the viewer such as `getPitch`, `setPitch` , `getYaw` and etc. find [here](https://pannellum.org/documentation/api/#viewer)\n\nMoreover, you can force render the component using `forceRender()` in case if you change a prop and didn't change constantly.(example would be hotspot: if you want to update hotspot dynamically, better to call forceRender after updating the hotspots)\n\n\u003e example `this.PanImage.current.getViewer().getPitch()`, PanImage is ref of the component.\n\n\u003e This is working also for the video component\n\n---\n\n### **HotSpot API**\n\n#### Info\n\n| Name  | Type   | Default | Description                              |\n| ----- | ------ | ------- | ---------------------------------------- |\n| type  | String | info    | you should pass it                       |\n| pitch | Number | 0       | the pitch for hotspot                    |\n| yaw   | Number | 0       | the yaw for hotspot                      |\n| text  | String | \"\"      | on mouse over hotspot shows the text box |\n| URL   | String | \"\"      | onClick of hotspot opens on new page     |\n\n---\n\n#### Custom\n\n| Name           | Type     | Default                    | Description                                                                                   |\n| -------------- | -------- | -------------------------- | --------------------------------------------------------------------------------------------- |\n| type           | String   | custom                     | you should pass it                                                                            |\n| pitch          | Number   | 0                          | the pitch for hotspot                                                                         |\n| yaw            | Number   | 0                          | the yaw for hotspot                                                                           |\n| tooltip        | Function | see demo                   | (createTooltipFunc) the function pass div element and you can append any shape or html or ... |\n| tooltipArg     | Object   | {}                         | (createTooltipArgs) will be passed to handleClick                                             |\n| handleClick    | Function | logging the handleClickArg | (clickHandlerFunc) fires onclick of hotspot                                                   |\n| handleClickArg | Object   | {}                         | (clickHandlerArgs) will be passed to handleClick                                              |\n| cssClass       | String   | tooltipcss                 | String is used as the CSS class for the hotspot                                               |\n\n---\n\n### **Video API**\n\nthese are videojs configuration properties which can be used\n\n| Name     | Type    | Default | Description                   |\n| -------- | ------- | ------- | ----------------------------- |\n| video    | String  | \" \"     | Path to your 360 video        |\n| loop     | Boolean | false   | Looping over video            |\n| autoplay | Boolean | true    | Play the video as page loaded |\n| controls | Boolean | false   | showing controls under        |\n| muted    | Boolean | true    | making video mute             |\n\nin addition there are also pannellum properties(panorama) which works on video\n\n| Name         | Type    | Default | Description                                                                                     |\n| ------------ | ------- | ------- | ----------------------------------------------------------------------------------------------- |\n| width        | String  | \"100%\"  | The width of the panorama div                                                                   |\n| height       | String  | \"400px\" | The height of the panorama div                                                                  |\n| video        | String  | \"\"      | The 360 video path                                                                              |\n| yaw          | Number  | 0       | Starting yaw position in degrees                                                                |\n| pitch        | Number  | 0       | Starting pitch position in degrees                                                              |\n| hfov         | Number  | 100     | Starting horizontal field of view in degrees                                                    |\n| maxHfov      | Number  | 150     | Maximum field of view which user can zoom (in degrees)                                          |\n| minHfov      | Number  | 50      | Minimum field of view which user can zoom (in degrees)                                          |\n| maxPitch     | Number  | 90      | Maximum field of view pitch (in degrees)                                                        |\n| minPitch     | Number  | -90     | Minimum field of view pitch (in degrees)                                                        |\n| maxYaw       | Number  | 180     | Maximum field of view yaw (in degrees)                                                          |\n| minYaw       | Number  | -180    | Minimum field of view yaw (in degrees)                                                          |\n| autoRotate   | Number  | 0       | rotation speed in degrees per second. Positive is counter-clockwise, and negative is clockwise. |\n| mouseZoom    | Boolean | true    | Enables zoom control with mouse if true                                                         |\n| hotspotDebug | Boolean | false   | For debug pupose (finding correct point for hotspot)                                            |\n\n\u003e if you are using chrome, try to keep muted true for autoplay.\n\n---\n\n### Example with all the available props\n\n```JavaScript\n\u003cPannellum\n  width=\"100%\"\n  height=\"500px\"\n  image={myImage}\n  haov={180}\n  vaov={90}\n  vOffset={1}\n  pitch={10}\n  yaw={180}\n  hfov={110}\n  maxHfov={170}\n  minHfov={30}\n  autoLoad\n  author=\"\"\n  title=\"\"\n  orientationOnByDefault={false}\n  compass\n  draggable\n  keyboardZoom\n  mouseZoom\n  preview=\"\"\n  previewAuthor=\"\"\n  previewTitle=\"\"\n  showControls\n  showFullscreenCtrl\n  showZoomCtrl\n  hotspotDebug={false}\n  onLoad={() =\u003e {\n    console.log(\"panorama loaded\");\n  }}\n  onError={err =\u003e {\n    console.log(\"Error\", err);\n  }}\n  onErrorcleared={() =\u003e {\n    console.log(\"Error Cleared\");\n  }}\n  onMousedown={evt =\u003e {\n    console.log(\"Mouse Down\", evt);\n  }}\n  onMouseup={evt =\u003e {\n    console.log(\"Mouse Up\", evt);\n  }}\n  onTouchstart={evt =\u003e {\n    console.log(\"Touch Start\", evt);\n  }}\n  onTouchend={evt =\u003e {\n    console.log(\"Touch End\", evt);\n  }}\n\u003e\n  \u003cPannellum.Hotspot\n    type=\"info\"\n    pitch={11}\n    yaw={-167}\n    text=\"Info Hotspot Text\"\n    URL=\"https://github.com/farminf\"\n  /\u003e\n\n  \u003cPannellum.Hotspot\n    type=\"custom\"\n    pitch={31}\n    yaw={150}\n    handleClick={(evt , args) =\u003e console.log(args.name)}\n    handleClickArg={{ \"name\":\"test\" }}\n    {/* there are 3 other props. see the custom hotspot doc above*/}\n  /\u003e\n\n\u003c/Pannellum\u003e\n```\n\n## License\n\npannellum-react is released under the MIT license.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffarminf%2Fpannellum-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffarminf%2Fpannellum-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffarminf%2Fpannellum-react/lists"}