Skip to content

Commit 7c75d69

Browse files
presicion -> precision (#28717)
1 parent ee522dd commit 7c75d69

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

examples/jsm/nodes/core/NodeFunction.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
class NodeFunction {
22

3-
constructor( type, inputs, name = '', presicion = '' ) {
3+
constructor( type, inputs, name = '', precision = '' ) {
44

55
this.type = type;
66
this.inputs = inputs;
77
this.name = name;
8-
this.presicion = presicion;
8+
this.precision = precision;
99

1010
}
1111

examples/jsm/nodes/parsers/GLSLNodeFunction.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,15 @@ const parse = ( source ) => {
7979
const name = declaration[ 3 ] !== undefined ? declaration[ 3 ] : '';
8080
const type = declaration[ 2 ];
8181

82-
const presicion = declaration[ 1 ] !== undefined ? declaration[ 1 ] : '';
82+
const precision = declaration[ 1 ] !== undefined ? declaration[ 1 ] : '';
8383

8484
const headerCode = pragmaMainIndex !== - 1 ? source.slice( 0, pragmaMainIndex ) : '';
8585

8686
return {
8787
type,
8888
inputs,
8989
name,
90-
presicion,
90+
precision,
9191
inputsCode,
9292
blockCode,
9393
headerCode
@@ -105,9 +105,9 @@ class GLSLNodeFunction extends NodeFunction {
105105

106106
constructor( source ) {
107107

108-
const { type, inputs, name, presicion, inputsCode, blockCode, headerCode } = parse( source );
108+
const { type, inputs, name, precision, inputsCode, blockCode, headerCode } = parse( source );
109109

110-
super( type, inputs, name, presicion );
110+
super( type, inputs, name, precision );
111111

112112
this.inputsCode = inputsCode;
113113
this.blockCode = blockCode;
@@ -123,13 +123,13 @@ class GLSLNodeFunction extends NodeFunction {
123123

124124
if ( blockCode !== '' ) {
125125

126-
const { type, inputsCode, headerCode, presicion } = this;
126+
const { type, inputsCode, headerCode, precision } = this;
127127

128128
let declarationCode = `${ type } ${ name } ( ${ inputsCode.trim() } )`;
129129

130-
if ( presicion !== '' ) {
130+
if ( precision !== '' ) {
131131

132-
declarationCode = `${ presicion } ${ declarationCode }`;
132+
declarationCode = `${ precision } ${ declarationCode }`;
133133

134134
}
135135

0 commit comments

Comments
 (0)