Skip to content

Commit

Permalink
Nodes: Rename remainder() to modInt(). (#1185)
Browse files Browse the repository at this point in the history
  • Loading branch information
Methuselah96 authored Aug 25, 2024
1 parent 2ae100b commit 7e528e6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
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;
}
}

0 comments on commit 7e528e6

Please sign in to comment.