-
-
Notifications
You must be signed in to change notification settings - Fork 35.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NodeEditor: Add missing position entries #23310
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,12 +10,19 @@ export class TrigonometryEditor extends BaseNode { | |
|
||
const node = new MathNode( MathNode.SIN, DEFAULT_VALUE ); | ||
|
||
super( 'Trigonometry', 1, node, 175 ); | ||
super( 'Angle / Trigonometry', 1, node, 220 ); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I wish I had separated There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do you mean having a node that mostly converts radians to degrees? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, yes. A Node in Editor only for it. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think that sounds good yes 👍 |
||
|
||
const optionsField = new SelectInput( [ | ||
{ name: 'Radian', value: MathNode.RAD }, | ||
{ name: 'Degree', value: MathNode.DEG }, | ||
|
||
{ name: 'Sin', value: MathNode.SIN }, | ||
{ name: 'Cos', value: MathNode.COS }, | ||
{ name: 'Tan', value: MathNode.TAN } | ||
{ name: 'Tan', value: MathNode.TAN }, | ||
|
||
{ name: 'asin', value: MathNode.ASIN }, | ||
{ name: 'acos', value: MathNode.ACOS }, | ||
{ name: 'atan', value: MathNode.ATAN }, | ||
], MathNode.SIN ).onChange( () => { | ||
|
||
node.method = optionsField.getValue(); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that we can remove it
,
and others at the end of the array.