react-stl-file-viewer
安装
npm install --save react-stl-file-viewer
用法
import React , { useState } from 'react'
import { StlViewer } from 'react-stl-file-viewer'
import { Box , Button , Flex , Heading , Image } from '@chakra-ui/react'
const App = ( ) => {
const [ photo , setphoto ] = useState ( '' )
const [ volume , setvolume ] = useState ( 0 )
function getFrame ( ) {
let canvas = document
1