
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
angular-three-tweakpane
Advanced tools
angular-three-tweakpaneThis library provides Tweakpane integration for Angular Three, enabling easy creation of debug UI controls for tweaking parameters in your 3D scenes.
All public APIs are documented with JSDoc comments. Your IDE will provide inline documentation, parameter hints, and examples as you code.
npm install angular-three-tweakpane tweakpane
# yarn add angular-three-tweakpane tweakpane
# pnpm add angular-three-tweakpane tweakpane
Make sure to already have
angular-threeinstalled
tweaks()The recommended way to create controls:
tweakpaneAnchor directive to your ngt-canvas<tweakpane-pane> somewhere in your scenetweaks() in any component within the canvasimport { Component, ChangeDetectionStrategy, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { tweaks, TweakpaneAnchor, TweakpanePane } from 'angular-three-tweakpane';
@Component({
template: `
<ngt-mesh [position]="[params.x(), params.y(), params.z()]">
<ngt-box-geometry />
<ngt-mesh-standard-material [color]="params.color()" />
</ngt-mesh>
<tweakpane-pane title="Controls" />
`,
imports: [TweakpanePane],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class SceneGraph {
params = tweaks('Position', {
x: { value: 0, min: -5, max: 5 },
y: { value: 0, min: -5, max: 5 },
z: { value: 0, min: -5, max: 5 },
color: { value: '#ff0000', color: true },
});
}
@Component({
template: `
<ngt-canvas tweakpaneAnchor>
<app-scene-graph *canvasContent />
</ngt-canvas>
`,
imports: [NgtCanvas, TweakpaneAnchor, SceneGraph],
})
export class Experience {}
params = tweaks('Settings', {
basic: 42,
position: tweaks.folder('Position', {
x: { value: 0, min: -5, max: 5 },
y: { value: 0, min: -5, max: 5 },
z: { value: 0, min: -5, max: 5 },
}),
material: tweaks.folder('Material', {
color: { value: '#ff0000', color: true },
metalness: { value: 0.5, min: 0, max: 1 },
roughness: { value: 0.5, min: 0, max: 1 },
}),
});
// Access nested values
this.params.position.x(); // Signal<number>
this.params.material.color(); // Signal<string>
filteringEnabled = signal(true);
gravity = signal(9.8);
params = tweaks('Settings', {
filteringEnabled: this.filteringEnabled, // two-way binding
gravity: this.gravity,
});
params = tweaks('Actions', {
reset: { action: () => this.reset(), label: 'Reset All' },
randomize: { action: () => this.randomize() },
});
For more control, use individual components:
import {
TweakpanePane,
TweakpaneFolder,
TweakpaneNumber,
TweakpaneColor,
TweakpaneCheckbox,
TweakpaneButton,
} from 'angular-three-tweakpane';
@Component({
template: `
<tweakpane-pane title="Controls">
<tweakpane-folder title="Position">
<tweakpane-number [(value)]="x" label="X" [params]="{ min: -5, max: 5 }" />
</tweakpane-folder>
<tweakpane-color [(value)]="color" label="Color" />
<tweakpane-checkbox [(value)]="visible" label="Visible" />
<tweakpane-button title="Reset" (click)="reset()" />
</tweakpane-pane>
`,
imports: [TweakpanePane, TweakpaneFolder, TweakpaneNumber, TweakpaneColor, TweakpaneCheckbox, TweakpaneButton],
})
export class Controls {
x = signal(0);
color = signal('#ff0000');
visible = signal(true);
reset() {
this.x.set(0);
this.color.set('#ff0000');
this.visible.set(true);
}
}
| Component | Description | Config Type |
|---|---|---|
TweakpaneNumber | Numeric input with optional slider | { value, min?, max?, step? } |
TweakpaneText | Text input | { value } |
TweakpaneCheckbox | Boolean toggle | { value } |
TweakpaneColor | Color picker | { value, color: true } |
TweakpaneList | Dropdown select | { value, options: [...] } |
TweakpanePoint | 2D/3D/4D point input | { value, x?, y?, z?, w? } |
TweakpaneButton | Clickable button | { action: () => void, label? } |
TweakpaneFolder | Collapsible group | tweaks.folder(name, config) |
<tweakpane-pane title="Debug" top="8px" right="8px">
<!-- controls -->
</tweakpane-pane>
Available position inputs: top, right, bottom, left, width
FAQs
Tweakpane UI implementation for Angular Three
We found that angular-three-tweakpane demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.