Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@jimengio/3d-model-viewer
Advanced tools
threejs based on 3D model component used in JimengIO
yarn add @jimengio/3d-model-viewer
import { ThreeDViewer, Old3dModelViewer } from "@jimengio/3d-model-viewer";
ThreeDViewer
支持stl、obj格式的3D模型展示组件Old3dModelViewer
老版本显示 GLTF 格式的组件, 使用的是极坐标.ThreeDViewer
<ThreeDViewer
url={gltfDemo}
renderSize={{
width: 500,
height: 500,
}}
backgroundColor="#000"
isDragging
isZoom
isRotate
materialColor="#fff"
initPostion={
cameraPosition:[0,0,0]
}
style={{}}
onLoadComplete={()=>{}}
onListen={(listenParam)=>{}}
/>
Old3dModelViewer
let [radius, setRadius] = useState(2.4);
let [polarAngle, setPolarAngle] = useState(90);
let [equatorAngle, setEquatorAngle] = useState(90);
<ThreeModelViewer
url={gltfDemo}
radius={radius}
minRadius={0.01}
maxRadius={20}
backgroundColor={"black"}
polarAngle={polarAngle}
equatorAngle={equatorAngle}
key={gltfDemo}
size={{ width: 800, height: 800 }}
onRadiusChange={(z) => {
setRadius(z);
}}
onAnglesChange={(polarAngle, equatorAngle) => {
setPolarAngle(polarAngle);
setEquatorAngle(equatorAngle);
}}
/>;
Dev:
yarn dll
yarn dev
Compile library:
yarn compile
Release:
yarn release
# yarn serve
https://github.com/jimengio/ts-workflow
MIT
FAQs
threejs-based 3D model viewer used in JimengIO
The npm package @jimengio/3d-model-viewer receives a total of 0 weekly downloads. As such, @jimengio/3d-model-viewer popularity was classified as not popular.
We found that @jimengio/3d-model-viewer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.