@qunhe/3d-model-viewer-sdk
v0.1.1-alpha.13
Published
酷品秀模型SDK
Downloads
1
Readme
@qunhe/3d-model-viewer-sdk
Install
$ yarn add @qunhe/3d-model-viewer-sdk
# or
$ npm i @qunhe/3d-model-viewer-sdk -S
Usage
with a UI panel
import React, { useEffect } from 'react';
import koolViewer from '@qunhe/3d-model-viewer-sdk';
import from '@qunhe/3d-model-viewer-sdk/lib/sdk-ui.min.css'
function App() {
useEffect(() => {
new koolViewer({
mount: document.getElementById('app'),
modelId: '3FO4GF8R3NYC',
autoRotate: false,
});
}, []);
return (
<div id="app"></div>
)
}
without a UI panel
import koolViewer from '@qunhe/3d-model-viewer-sdk/lib/sdk.min.js';