Product
Socket Now Supports uv.lock Files
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
angular-three
Advanced tools
Leverage your Angular to build 3D applications with THREE.js
npx ng add angular-three
or
npm i angular-three three
npm i -D @types/three
Typically, we'd want to keep
three
and@types/three
on the same minor version. Eg:0.147
,0.148
etc..
Scene
component as a Standalone Componentimport { extend } from 'angular-three';
import { Mesh, BoxGeometry, MeshBasicMaterial } from 'three';
extend({ Mesh, BoxGeometry, MeshBasicMaterial });
@Component({
standalone: true,
template: `
<ngt-mesh>
<ngt-box-geometry />
<ngt-mesh-basic-material color="darkred" />
</ngt-mesh>
`,
schemas: [CUSTOM_ELEMENTS_SCHEMA],
})
export class Scene {}
extend
will add the THREE entities to angular-three
catalogue which allows the renderer to recognize the custom tags: ngt-mesh
, ngt-box-geometry
etc..ngt-
+ THREE classes in kebab-case. Mesh
-> ngt-mesh
schemas: [CUSTOM_ELEMENTS_SCHEMA]
allows us to use custom tags on the template. This is Angular's limitation at the moment<ngt-canvas>
component, use Scene
component above to pass into [sceneGraph]
input on <ngt-canvas>
<ngt-canvas [sceneGraph]="Scene" />
ngt-canvas
creates the basic building blocks of THREE.js: a default WebGLRenderer
, a default Scene
, and a default PerspectiveCamera
Read more about Angular Three usages in Documentations
Contributions are welcomed
FAQs
Angular Renderer for THREE.js
The npm package angular-three receives a total of 224 weekly downloads. As such, angular-three popularity was classified as not popular.
We found that angular-three demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.