Skip to content
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

Nodes: Rename remainder() to modInt(). #1185

Merged
merged 1 commit into from
Aug 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions types/three/src/nodes/Nodes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ export {
greaterThanEqual,
lessThan,
lessThanEqual,
modInt,
mul,
not,
OperatorNodeOp,
Expand Down
18 changes: 16 additions & 2 deletions types/three/src/nodes/math/OperatorNode.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const add: Operator;
export const sub: Operator;
export const mul: Operator;
export const div: Operator;
export const remainder: Operator;
export const modInt: Operator;
export const equal: Operator;
export const lessThan: Operator;
export const greaterThan: Operator;
Expand All @@ -63,7 +63,7 @@ declare module "../shadernode/ShaderNode.js" {
sub: typeof sub;
mul: typeof mul;
div: typeof div;
remainder: typeof remainder;
modInt: typeof modInt;
equal: typeof equal;
lessThan: typeof lessThan;
greaterThan: typeof greaterThan;
Expand All @@ -81,3 +81,17 @@ declare module "../shadernode/ShaderNode.js" {
shiftRight: typeof shiftRight;
}
}

/**
* @deprecated .remainder() has been renamed to .modInt().
*/
export const remainder: Operator;

declare module "../shadernode/ShaderNode.js" {
interface NodeElements {
/**
* @deprecated .remainder() has been renamed to .modInt().
*/
remainder: typeof remainder;
}
}
Loading