Przeglądaj źródła

Docs: Update 'Creating A Scene' code (#22921)

* Update cube parameters

* Keep function declarations consistent

* Make similar changes for languages other than English

* Make requested changes

* Minor style update
Ayushman Chhabra 3 lat temu
rodzic
commit
13b67d9603

+ 1 - 1
docs/manual/ar/introduction/Creating-a-scene.html

@@ -249,7 +249,7 @@
 
 					camera.position.z = 5;
 
-					const animate = function () {
+					function animate() {
 						requestAnimationFrame( animate );
 
 						cube.rotation.x += 0.01;

+ 1 - 1
docs/manual/en/introduction/Creating-a-scene.html

@@ -145,7 +145,7 @@
 
 					camera.position.z = 5;
 
-					const animate = function () {
+					function animate() {
 						requestAnimationFrame( animate );
 
 						cube.rotation.x += 0.01;

+ 1 - 1
docs/manual/ja/introduction/Creating-a-scene.html

@@ -144,7 +144,7 @@
 
 					camera.position.z = 5;
 
-					const animate = function () {
+					function animate() {
 						requestAnimationFrame( animate );
 
 						cube.rotation.x += 0.01;

+ 1 - 1
docs/manual/ko/introduction/Creating-a-scene.html

@@ -147,7 +147,7 @@
 
 					camera.position.z = 5;
 
-					const animate = function () {
+					function animate() {
 						requestAnimationFrame( animate );
 
 						cube.rotation.x += 0.01;

+ 1 - 1
docs/manual/zh/introduction/Creating-a-scene.html

@@ -145,7 +145,7 @@
 
 					camera.position.z = 5;
 
-					const animate = function () {
+					function animate() {
 						requestAnimationFrame( animate );
 
 						cube.rotation.x += 0.01;