360-react-pannellum 中文文档教程
用于反应的全景查看器。
Pannellum 是一种轻量级、免费且开源的网络全景图查看器。
How to Install
npm install 360-react-pannellum --save
或者你可以使用 yarn
:
yarn add 360-react-pannellum
How to Use
import React, { Component } from 'react'
import Pannellum from 'components/360-react-pannellum'
class Example extends Component {
render () {
<Pannellum
width='100%'
height='200px'
imagePath='https://pannellum.org/images/alma.jpg'
isDisplayCloseButton={true}
closeHandler={closeAction}
closeButtonTitle='Close'
showZoomCtrl={false}
showFullscreenCtrl={false}
autoLoad />
}
const closeAction = () => {
}
}
Panorama viewer for react.
Pannellum is a lightweight, free, and open source panorama viewer for the web.
How to Install
npm install 360-react-pannellum --save
Alternatively you may use yarn
:
yarn add 360-react-pannellum
How to Use
import React, { Component } from 'react'
import Pannellum from 'components/360-react-pannellum'
class Example extends Component {
render () {
<Pannellum
width='100%'
height='200px'
imagePath='https://pannellum.org/images/alma.jpg'
isDisplayCloseButton={true}
closeHandler={closeAction}
closeButtonTitle='Close'
showZoomCtrl={false}
showFullscreenCtrl={false}
autoLoad />
}
const closeAction = () => {
}
}
更多
你可能也喜欢
- 404project 中文文档教程
- @0b5vr/tweakpane-plugin-profiler 中文文档教程
- @100tal-seg/seg-materials 中文文档教程
- @36node/react-bus-map 中文文档教程
- @9softstudio/react-simple-tab 中文文档教程
- @a1motion/electron-kit 中文文档教程
- @a7gm/js-marker-clusterer 中文文档教程
- @abdul589/lotide 中文文档教程
- @abdullahceylan/listr-aggregate-renderer 中文文档教程
- @abduraufsherkulov/learnstorybook-design-system 中文文档教程