three-stl-viewer

0.1.0 • Public • Published

Three STL Viewer

Introduction

Three STL Viewer is a 3D model viewr for STL objects based on Three.js 3D engine. Examples

Installation

npm install three-stl-viewer --save

Dependencies

Three STL Viewer has dependencies, jQuery, spectrum, and Three.js. To utilize the package, it is required to install the dependencies properly.

npm install jquery --save
npm install spectrum-colorpicker --save
npm install three --save

How to use

// jQuery should exist in the global scope.
import 'spectrum-colorpicker';
import 'spectrum-colorpicer/spectrum.css';
import ThreeSTLViewer from 'three-stl-viewer';

...

let viewer = new ThreeSTLViewer({
	selector: '#pikachu.stl-viewer',
	urlToSTL: '/stl/pikachu.stl',
});

Authors

Readme

Keywords

none

Package Sidebar

Install

npm i three-stl-viewer

Weekly Downloads

2

Version

0.1.0

License

ISC

Unpacked Size

3.25 MB

Total Files

19

Last publish

Collaborators

  • ohpyupi