luoxuhai / pcl.js

☁️ ⚡ Point Cloud Library (PCL) for browser, powered by WebAssembly.|在浏览器运行的点云库 (PCL),由 WebAssembly 提供支持。
https://pcl.js.org
MIT License
453 stars 38 forks source link

feat: export visualization module separately #57

Closed luoxuhai closed 2 years ago

luoxuhai commented 2 years ago
Description of change

For Example

NPM

import PointCloudViewer from 'pcl.js/PointCloudViewer'

new PointCloudViewer();

Script

<!-- Three.js -->
<script src="https://cdn.jsdelivr.net/npm/three/build/three.js"></script>
<script src="https://cdn.jsdelivr.net/npm/three/examples/js/loaders/PCDLoader.js"></script>
<script src="https://cdn.jsdelivr.net/npm/three/examples/js/controls/OrbitControls.js"></script>

<!-- pcl.js -->
<script src="https://cdn.jsdelivr.net/npm/pcl.js/dist/pcl.js"></script>
<script src="https://cdn.jsdelivr.net/npm/pcl.js/dist/visualization/PointCloudViewer.js"></script>
<script>
    new PointCloudViewer();
</script>
Pre-Merge Checklist
vercel[bot] commented 2 years ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
pcl-js ✅ Ready (Inspect) Visit Preview Oct 6, 2022 at 8:15AM (UTC)