Package Exports
- three-stdlib
- three-stdlib/controls/DeviceOrientationControls
- three-stdlib/controls/DeviceOrientationControls.js
- three-stdlib/controls/FlyControls
- three-stdlib/controls/FlyControls.js
- three-stdlib/controls/OrbitControls
- three-stdlib/controls/OrbitControls.js
- three-stdlib/controls/PointerLockControls
- three-stdlib/controls/PointerLockControls.js
- three-stdlib/controls/TrackballControls
- three-stdlib/controls/TrackballControls.js
- three-stdlib/controls/TransformControls
- three-stdlib/controls/TransformControls.js
- three-stdlib/index.cjs.js
- three-stdlib/index.js
- three-stdlib/lines/Line2
- three-stdlib/lines/Line2.js
- three-stdlib/lines/LineGeometry
- three-stdlib/lines/LineGeometry.js
- three-stdlib/lines/LineMaterial
- three-stdlib/lines/LineMaterial.js
- three-stdlib/loaders/DRACOLoader
- three-stdlib/loaders/DRACOLoader.js
- three-stdlib/loaders/FBXLoader
- three-stdlib/loaders/FBXLoader.js
- three-stdlib/loaders/GLTFLoader
- three-stdlib/loaders/GLTFLoader.js
- three-stdlib/loaders/RGBELoader
- three-stdlib/loaders/RGBELoader.js
- three-stdlib/math/MeshSurfaceSampler
- three-stdlib/math/MeshSurfaceSampler.js
- three-stdlib/math/SimplexNoise
- three-stdlib/math/SimplexNoise.js
- three-stdlib/modifiers/CurveModifier
- three-stdlib/modifiers/CurveModifier.js
- three-stdlib/modifiers/EdgeSplitModifier
- three-stdlib/modifiers/EdgeSplitModifier.js
- three-stdlib/modifiers/SimplifyModifier
- three-stdlib/modifiers/SimplifyModifier.js
- three-stdlib/modifiers/TessellateModifier
- three-stdlib/modifiers/TessellateModifier.js
- three-stdlib/objects/Sky
- three-stdlib/objects/Sky.js
- three-stdlib/postprocessing/EffectComposer
- three-stdlib/postprocessing/EffectComposer.js
- three-stdlib/postprocessing/RenderPass
- three-stdlib/postprocessing/RenderPass.js
- three-stdlib/postprocessing/ShaderPass
- three-stdlib/postprocessing/ShaderPass.js
- three-stdlib/shaders/GammaCorrectionShader
- three-stdlib/shaders/GammaCorrectionShader.js
- three-stdlib/shaders/HorizontalBlurShader
- three-stdlib/shaders/HorizontalBlurShader.js
- three-stdlib/shaders/VerticalBlurShader
- three-stdlib/shaders/VerticalBlurShader.js
- three-stdlib/webxr/ARButton
- three-stdlib/webxr/ARButton.js
- three-stdlib/webxr/VRButton
- three-stdlib/webxr/VRButton.js
- three-stdlib/webxr/XRControllerModelFactory
- three-stdlib/webxr/XRControllerModelFactory.js
- three-stdlib/webxr/XRHandModelFactory
- three-stdlib/webxr/XRHandModelFactory.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (three-stdlib) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
three-stdlib
Stand-alone version of threejs/examples/jsm written in Typescript & built for ESM & CJS.
Basic usage
npm install three-stdlib
// Export collection
import * as STDLIB from 'three-stdlib'
// Flatbundle
import { OrbitControls, ... } from 'three-stdlib'
// Pick individual objects
import { OrbitControls } from 'three-stdlib/controls/OrbitControls'
Problem
threejs/examples
were always considered as something that you need to copy/paste into your project and adapt to your needs. But that's not how people use them. This causes numerous issues & little support.
Solution
- Real, npm/node conform esm modules with marked dependencies
- Class based, optimized for tree-shaking, no global pollution, exports instead of collections
- A build system for esm and cjs
- Single flatbundle as well as individual transpiles
- Typesafety with simple annotation-like types
- CI, tests, linting, formatting (prettier)
But most importantly, allowing the people that use and rely on these primitives to hold a little stake, and to distribute the weight of maintaining it.
Let's give jsm/examples the care it deserves!
How to contribute
If you want to get involved you could do any of the following:
- Create amazing stories for these examples for our dedicate storybook
- Convert some of the files to Typescript
- Add new examples for the library you think could be awesome for others