⬅️ Back to Table of Contents
📄 UVEditor.js
📊 Analysis Summary
Metric |
Count |
🧱 Classes |
1 |
📦 Imports |
4 |
📚 Table of Contents
🛠️ File Location:
📂 playground/editors/UVEditor.js
📦 Imports
Name |
Source |
SelectInput |
flow |
LabelElement |
flow |
BaseNodeEditor |
../BaseNodeEditor.js |
uv |
three/tsl |
Classes
UVEditor
Class Code
export class UVEditor extends BaseNodeEditor {
constructor() {
const node = uv();
super( 'UV', node, 200 );
const optionsField = new SelectInput( [ '0', '1', '2', '3' ], 0 ).onChange( () => {
node.index = Number( optionsField.getValue() );
this.invalidate();
} );
this.add( new LabelElement( 'Channel' ).add( optionsField ) );
}
}