瀏覽代碼

Merge branch 'dev' of git://github.com/mrdoob/three.js into dev_rt_stencil_default

WestLangley 5 年之前
父節點
當前提交
7093d276cb
共有 100 個文件被更改,包括 984 次插入1798 次删除
  1. 0 0
      .github/CODE_OF_CONDUCT.md
  2. 0 7
      .github/CONTRIBUTING.md
  3. 1 1
      .github/ISSUE_TEMPLATE.md
  4. 460 503
      build/three.js
  5. 0 608
      build/three.min.js
  6. 191 258
      build/three.module.js
  7. 4 4
      docs/api/en/core/Object3D.html
  8. 0 2
      docs/api/en/helpers/ArrowHelper.html
  9. 0 5
      docs/api/en/scenes/Scene.html
  10. 6 4
      docs/api/zh/core/Object3D.html
  11. 0 2
      docs/api/zh/helpers/ArrowHelper.html
  12. 2 0
      docs/api/zh/materials/MeshBasicMaterial.html
  13. 2 0
      docs/api/zh/materials/MeshLambertMaterial.html
  14. 2 0
      docs/api/zh/materials/MeshPhongMaterial.html
  15. 2 0
      docs/api/zh/materials/MeshStandardMaterial.html
  16. 0 5
      docs/api/zh/scenes/Scene.html
  17. 1 1
      docs/examples/en/controls/OrbitControls.html
  18. 1 1
      docs/examples/zh/controls/OrbitControls.html
  19. 2 1
      docs/index.html
  20. 11 0
      docs/list.js
  21. 278 0
      docs/manual/ar/introduction/Creating-a-scene.html
  22. 0 7
      docs/manual/en/introduction/How-to-dispose-of-objects.html
  23. 0 7
      docs/manual/zh/introduction/How-to-dispose-of-objects.html
  24. 0 4
      docs/scenes/geometry-browser.html
  25. 0 4
      docs/scenes/material-browser.html
  26. 0 4
      editor/js/Command.js
  27. 0 4
      editor/js/Config.js
  28. 0 4
      editor/js/Editor.js
  29. 0 7
      editor/js/EditorControls.js
  30. 3 4
      editor/js/History.js
  31. 9 4
      editor/js/Loader.js
  32. 0 4
      editor/js/LoaderUtils.js
  33. 0 4
      editor/js/Menubar.Add.js
  34. 0 4
      editor/js/Menubar.Edit.js
  35. 0 4
      editor/js/Menubar.Examples.js
  36. 0 4
      editor/js/Menubar.File.js
  37. 0 4
      editor/js/Menubar.Help.js
  38. 0 4
      editor/js/Menubar.Play.js
  39. 0 4
      editor/js/Menubar.Status.js
  40. 0 4
      editor/js/Menubar.View.js
  41. 0 4
      editor/js/Menubar.js
  42. 0 4
      editor/js/Player.js
  43. 0 4
      editor/js/Script.js
  44. 0 4
      editor/js/Sidebar.Animation.js
  45. 0 4
      editor/js/Sidebar.Geometry.BoxGeometry.js
  46. 0 4
      editor/js/Sidebar.Geometry.BufferGeometry.js
  47. 0 4
      editor/js/Sidebar.Geometry.CircleGeometry.js
  48. 0 4
      editor/js/Sidebar.Geometry.CylinderGeometry.js
  49. 0 4
      editor/js/Sidebar.Geometry.DodecahedronGeometry.js
  50. 0 4
      editor/js/Sidebar.Geometry.ExtrudeGeometry.js
  51. 0 4
      editor/js/Sidebar.Geometry.Geometry.js
  52. 0 4
      editor/js/Sidebar.Geometry.IcosahedronGeometry.js
  53. 0 4
      editor/js/Sidebar.Geometry.LatheGeometry.js
  54. 0 4
      editor/js/Sidebar.Geometry.Modifiers.js
  55. 0 4
      editor/js/Sidebar.Geometry.OctahedronGeometry.js
  56. 0 4
      editor/js/Sidebar.Geometry.PlaneGeometry.js
  57. 0 4
      editor/js/Sidebar.Geometry.RingGeometry.js
  58. 0 4
      editor/js/Sidebar.Geometry.ShapeGeometry.js
  59. 0 4
      editor/js/Sidebar.Geometry.SphereGeometry.js
  60. 0 4
      editor/js/Sidebar.Geometry.TeapotBufferGeometry.js
  61. 0 4
      editor/js/Sidebar.Geometry.TetrahedronGeometry.js
  62. 0 4
      editor/js/Sidebar.Geometry.TorusGeometry.js
  63. 0 4
      editor/js/Sidebar.Geometry.TorusKnotGeometry.js
  64. 0 4
      editor/js/Sidebar.Geometry.TubeGeometry.js
  65. 0 4
      editor/js/Sidebar.Geometry.js
  66. 0 4
      editor/js/Sidebar.History.js
  67. 0 4
      editor/js/Sidebar.Material.js
  68. 3 60
      editor/js/Sidebar.Object.js
  69. 0 4
      editor/js/Sidebar.Project.js
  70. 0 4
      editor/js/Sidebar.Properties.js
  71. 0 4
      editor/js/Sidebar.Scene.js
  72. 0 4
      editor/js/Sidebar.Script.js
  73. 0 4
      editor/js/Sidebar.Settings.Shortcuts.js
  74. 0 4
      editor/js/Sidebar.Settings.Viewport.js
  75. 0 4
      editor/js/Sidebar.Settings.js
  76. 0 4
      editor/js/Sidebar.js
  77. 0 4
      editor/js/Storage.js
  78. 0 4
      editor/js/Strings.js
  79. 0 4
      editor/js/Toolbar.js
  80. 0 4
      editor/js/Viewport.Camera.js
  81. 0 4
      editor/js/Viewport.Info.js
  82. 0 4
      editor/js/Viewport.ViewHelper.js
  83. 0 4
      editor/js/Viewport.js
  84. 0 5
      editor/js/commands/AddObjectCommand.js
  85. 0 5
      editor/js/commands/AddScriptCommand.js
  86. 3 5
      editor/js/commands/MoveObjectCommand.js
  87. 1 5
      editor/js/commands/MultiCmdsCommand.js
  88. 0 4
      editor/js/commands/RemoveObjectCommand.js
  89. 0 5
      editor/js/commands/RemoveScriptCommand.js
  90. 0 5
      editor/js/commands/SetColorCommand.js
  91. 0 5
      editor/js/commands/SetGeometryCommand.js
  92. 0 5
      editor/js/commands/SetGeometryValueCommand.js
  93. 0 5
      editor/js/commands/SetMaterialColorCommand.js
  94. 0 5
      editor/js/commands/SetMaterialCommand.js
  95. 2 4
      editor/js/commands/SetMaterialMapCommand.js
  96. 0 5
      editor/js/commands/SetMaterialValueCommand.js
  97. 0 5
      editor/js/commands/SetMaterialVectorCommand.js
  98. 0 5
      editor/js/commands/SetPositionCommand.js
  99. 0 5
      editor/js/commands/SetRotationCommand.js
  100. 0 5
      editor/js/commands/SetScaleCommand.js

+ 0 - 0
CODE_OF_CONDUCT.md → .github/CODE_OF_CONDUCT.md


+ 0 - 7
.github/CONTRIBUTING.md

@@ -56,13 +56,6 @@ The next most important script runs all the appropriate testing.
 The linting is there to keep a consistent code-style across the all of the code and the testing is
 there to help catch bugs and check that the code behaves as expected. It is important that
 neither of these steps comes up with any errors due to your changes.
-* If you’d like the linter to fix any errors that it can change, make the following addition to the “test-lint” script.
-        
-        {
-        ...
-        "test-lint": "eslint src --ext js --ext ts --fix && tsc -p utils/build/tsconfig.lint.json"
-        ...
-        }
 
 If you’d like to make a minified version of the build files i.e. ‘build/three.min.js’ run:
         

+ 1 - 1
.github/ISSUE_TEMPLATE.md

@@ -17,7 +17,7 @@ Please also include a live example if possible. You can start from these templat
 ##### Three.js version
 
 - [ ] Dev
-- [ ] r118
+- [ ] r119
 - [ ] ...
 
 ##### Browser

文件差異過大導致無法顯示
+ 460 - 503
build/three.js


文件差異過大導致無法顯示
+ 0 - 608
build/three.min.js


文件差異過大導致無法顯示
+ 191 - 258
build/three.module.js


+ 4 - 4
docs/api/en/core/Object3D.html

@@ -286,9 +286,9 @@
 
 		<h3>[method:Vector3 localToWorld]( [param:Vector3 vector] )</h3>
 		<p>
-		vector - A vector representing a position in local (object) space.<br /><br />
+		vector - A vector representing a position in this object's local space.<br /><br />
 
-		Converts the vector from local space to world space.
+		Converts the vector from this object's local space to world space.
 		</p>
 
 		<h3>[method:null lookAt]( [param:Vector3 vector] )<br />
@@ -447,9 +447,9 @@
 
 		<h3>[method:Vector3 worldToLocal]( [param:Vector3 vector] )</h3>
 		<p>
-		vector - A world vector.<br /><br />
+		vector - A vector representing a position in world space.<br /><br />
 
-		Updates the vector from world space to local space.
+		Converts the vector from world space to this object's local space.
 		</p>
 
 		<h2>Source</h2>

+ 0 - 2
docs/api/en/helpers/ArrowHelper.html

@@ -33,8 +33,6 @@
 		<h2>Examples</h2>
 
 		<p>
-			[example:webgl_geometries WebGL / geometries]<br/>
-			[example:webgl_geometry_normals WebGL / geometry / normals]<br/>
 			[example:webgl_shadowmesh WebGL / shadowmesh]
 		</p>
 

+ 0 - 5
docs/api/en/scenes/Scene.html

@@ -52,11 +52,6 @@
 
 		<h2>Methods</h2>
 
-		<h3>[method:null dispose]()</h3>
-		<p>
-		Clears scene related data internally cached by [page:WebGLRenderer].
-		</p>
-
 		<h3>[method:Object toJSON]( [param:Object meta] )</h3>
 		<p>
 		meta -- object containing metadata such as textures or images for the scene.<br />

+ 6 - 4
docs/api/zh/core/Object3D.html

@@ -270,8 +270,9 @@
 
 	<h3>[method:Vector3 localToWorld]( [param:Vector3 vector] )</h3>
 	<p>
-		vector - 一个表示局部(物体)空间中位置的向量。 <br /><br />
-		将局部空间向量转换为世界空间向量。
+		vector - A vector representing a position in this object's local space.<br /><br />
+
+		Converts the vector from this object's local space to world space.
 	</p>
 
 	<h3>[method:null lookAt]( [param:Vector3 vector] )<br />
@@ -422,8 +423,9 @@
 
 	<h3>[method:Vector3 worldToLocal]( [param:Vector3 vector] )</h3>
 	<p>
-		vector - 一个世界向量.<br /><br />
-		将世界空间中的向量转换为局部空间向量。
+		vector - A vector representing a position in world space.<br /><br />
+
+		Converts the vector from world space to this object's local space.
 	</p>
 
 	<h2>源代码</h2>

+ 0 - 2
docs/api/zh/helpers/ArrowHelper.html

@@ -33,8 +33,6 @@
 		<h2>例子</h2>
 
 		<p>
-			[example:webgl_geometries WebGL / geometries]<br/>
-			[example:webgl_geometry_normals WebGL / geometry / normals]<br/>
 			[example:webgl_shadowmesh WebGL / shadowmesh]
 		</p>
 

+ 2 - 0
docs/api/zh/materials/MeshBasicMaterial.html

@@ -94,6 +94,8 @@
 		<h3>[property:Float refractionRatio]</h3>
 		<p> 空气的折射率(IOR)(约为1)除以材质的折射率。它与环境映射模式[page:Textures THREE.CubeRefractionMapping]
 			和[page:Textures THREE.EquirectangularRefractionMapping]一起使用。
+			The index of refraction (IOR) of air (approximately 1) divided by the index of refraction of the material.
+			It is used with environment mapping mode [page:Textures THREE.CubeRefractionMapping].
 			折射率不应超过1。默认值为*0.98*。
 		</p>
 

+ 2 - 0
docs/api/zh/materials/MeshLambertMaterial.html

@@ -115,6 +115,8 @@
 		<h3>[property:Float refractionRatio]</h3>
 		<p>空气的折射率(IOR)(约为1)除以材质的折射率。它与环境映射模式[page:Textures THREE.CubeRefractionMapping]
 			和[page:Textures THREE.EquirectangularRefractionMapping]一起使用。
+			The index of refraction (IOR) of air (approximately 1) divided by the index of refraction of the material.
+			It is used with environment mapping mode [page:Textures THREE.CubeRefractionMapping].
 			折射率不应超过1。默认值为*0.98*。
 		</p>
 

+ 2 - 0
docs/api/zh/materials/MeshPhongMaterial.html

@@ -151,6 +151,8 @@
 		<h3>[property:Float refractionRatio]</h3>
 		<p> 空气的折射率(IOR)(约为1)除以材质的折射率。它与环境映射模式[page:Textures THREE.CubeRefractionMapping]
 			和[page:Textures THREE.EquirectangularRefractionMapping]一起使用。
+			The index of refraction (IOR) of air (approximately 1) divided by the index of refraction of the material.
+			It is used with environment mapping mode [page:Textures THREE.CubeRefractionMapping].
 			折射率不应超过1。默认值为*0.98*。
 		</p>
 

+ 2 - 0
docs/api/zh/materials/MeshStandardMaterial.html

@@ -188,6 +188,8 @@
 		<h3>[property:Float refractionRatio]</h3>
 		<p> 空气的折射率(IOR)(约为1)除以材质的折射率。它与环境映射模式[page:Textures THREE.CubeRefractionMapping]
 			和[page:Textures THREE.EquirectangularRefractionMapping]一起使用。
+			The index of refraction (IOR) of air (approximately 1) divided by the index of refraction of the material.
+			It is used with environment mapping mode [page:Textures THREE.CubeRefractionMapping].
 			折射率不应超过1。默认值为*0.98*。
 		</p>
 

+ 0 - 5
docs/api/zh/scenes/Scene.html

@@ -55,11 +55,6 @@
 
 		<h2>方法</h2>
 
-		<h3>[method:null dispose]()</h3>
-		<p>
-			清除[page:WebGLRenderer]内部所缓存的场景相关的数据。
-		</p>
-
 		<h3>[method:JSON toJSON]</h3>
 		<p>
 			meta -- 包含有元数据的对象,例如场景中的的纹理或图片。

+ 1 - 1
docs/examples/en/controls/OrbitControls.html

@@ -107,7 +107,7 @@
 
 		<h3>[property:Boolean enabled]</h3>
 		<p>
-			Whether or not the controls are enabled.
+			When set to *false*, the controls will not respond to user input. Default is *true*.
 		</p>
 
 		<h3>[property:Boolean enableDamping]</h3>

+ 1 - 1
docs/examples/zh/controls/OrbitControls.html

@@ -106,7 +106,7 @@
 
 		<h3>[property:Boolean enabled]</h3>
 		<p>
-			控制器是否被启用。
+			When set to *false*, the controls will not respond to user input. Default is *true*.
 		</p>
 
 		<h3>[property:Boolean enableDamping]</h3>

+ 2 - 1
docs/index.html

@@ -31,6 +31,7 @@
 					<div id="exitSearchButton"></div>
 					<select id="language">
 						<option value="en">en</option>
+						<option value="ar">ar</option>
 						<option value="zh">中文</option>
 					</select>
 				</div>
@@ -53,7 +54,7 @@
 
 			if ( /^(api|manual|examples)/.test( hash ) ) {
 
-				var hashLanguage = /^(api|manual|examples)\/(en|zh)\//.exec( hash );
+				var hashLanguage = /^(api|manual|examples)\/(en|ar|zh)\//.exec( hash );
 
 				if ( hashLanguage === null ) {
 

+ 11 - 0
docs/list.js

@@ -461,6 +461,17 @@ var list = {
 
 	},
 
+	"ar": {
+		"الكتيب": {
+
+			"البدء": {
+				"إنشاء مشهد": "manual/ar/introduction/Creating-a-scene",
+				"التنصيب": "manual/ar/introduction/Installation",
+			},
+
+		},
+	},
+
 	"zh": {
 
 		"手册": {

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

@@ -0,0 +1,278 @@
+<!DOCTYPE html>
+<html lang="en">
+	<head>
+		<meta charset="utf-8">
+		<base href="../../../" />
+		<script src="list.js"></script>
+		<script src="page.js"></script>
+		<link type="text/css" rel="stylesheet" href="page.css" />
+		<style>
+			h1,
+			h2,
+			h3,
+			h4,
+			p {
+				direction: rtl !important;
+			}
+		</style>
+	</head>
+	<body>
+		<h1>إنشاء مشهد([name])</h1>
+
+		<p>الهدف من هذا القسم هو تقديم لمحة وجيزة عن كيفية عمل المكتبة. سنبدأ بتحضير مشهد يتمثل في مكعب ثلاثي الأبعاد .الصفحة مرفوقة بمثال أسفلها في حالة واجهتك بعض المشاكل وإحتجت إلى المساعدة.</p>
+
+		<h2>قبل أن نبدأ</h2>
+
+		<p>
+			قبل أن يمكنك إستعمال المكتبة, يجب أن توفر مكان لإظهار المشهد. قم بإنشاء ملف HTML يحتوي الشفرة البرمجية التالية
+        	بصحبة نسخة من المكتبة [link:https://threejs.org/build/three.js three.js] في مجلد سمه js و من ثم فم بفتح الصفحة في المتصفح.
+		</p>
+
+		<code>
+		&lt;!DOCTYPE html&gt;
+		&lt;html&gt;
+			&lt;head&gt;
+				&lt;meta charset="utf-8"&gt;
+				&lt;title&gt;My first three.js app&lt;/title&gt;
+				&lt;style&gt;
+					body { margin: 0; }
+					canvas { display: block; }
+				&lt;/style&gt;
+			&lt;/head&gt;
+			&lt;body&gt;
+				&lt;script src="js/three.js"&gt;&lt;/script&gt;
+				&lt;script&gt;
+					// Our Javascript will go here.
+				&lt;/script&gt;
+			&lt;/body&gt;
+		&lt;/html&gt;
+		</code>
+
+		<p>
+			هذا كل شيء. بقية الأوامر البرمجية ستكون محتوات في وسم &lt;script&gt; الفارغ حاليا.
+		</p>
+
+		<h2>إنشاء مشهد</h2>
+
+		<p>
+			لنتمكن من إظهار أي شيء بإستهمال three.js، نحتاج ثلاثة عناصر أساسية: المسرح (Scene)، الكاميرا (Camera)، و العارض
+			(Renderer).
+		</p>
+
+		<code>
+		var scene = new THREE.Scene();
+		var camera = new THREE.PerspectiveCamera( 75, window.innerWidth / window.innerHeight, 0.1, 1000 );
+
+		var renderer = new THREE.WebGLRenderer();
+		renderer.setSize( window.innerWidth, window.innerHeight );
+		document.body.appendChild( renderer.domElement );
+		</code>
+
+		<p>
+			لنتمهل لحظة من أجل توضيح ما يحصل هنا. لقد قمنا بتحضير كل من المسرح، الكاميرا، و العارض.
+		</p>
+
+		<p>
+			توفر مكتبة three.js العديد من الخيارات بخصوص نوع الكاميرا. للوقت الراهن، سنستعمل
+			<strong>PerspectiveCamera</strong>.
+		</p>
+
+		<p>
+			أول ميزة هي <strong>مجال الرؤية - Field of view</strong>. يمكن التعبير عنها بإستعمال إختصارها كالأتي FOV. هذه
+			القيمة تمثل مجال
+			المشاهدة المتاح في أي وقت
+			من العرض. وحده قيسها هي الدرجة (degrees)
+		</p>
+
+		<p>
+			القيمة الثانية هي <strong>نسبة العرض إلى الارتفاع - aspect ratio</strong>. من المستحسن إستعمال نتيجة قسمة عرض و
+			طول العنصر الحاوي، و إلا ستحصل على تجربة مماثلة
+			لمشاهدة فيلم قديم على تلفاز عريض حيث ستكون الصورة متغيرة.
+		</p>
+
+		<p>
+			القيمتين المتبقيتين هما <strong>أقرب</strong> و <strong>أبعد</strong> سطح فاصل. نقصد بدلك أن أي عنصر في المشهد
+			أبعد من السطح الفاصل البعيد بالنسبة
+			للكاميرا أو أقرب من السطح الفاصل القريب لن يتم عرضه.
+			أنت لست مطالب بالقلق حيال هذا، و لكن من الممكن أن تريد إستعمال قيم أخرى من أجل الحصول على أداء أفضل.
+		</p>
+
+		<p>
+			نصل الأن إلى العارض. هنا أين يكمن السحر. بالإضافة لإستعمال WebGLRenderer، المكتبة تتكفل بتمكين بعض المتصفحات
+			القديمة التي لا
+			تدعم WebGL لسبب ما من الخصائص المفقودة.
+		</p>
+
+		<p>
+			إلي جانب إنشاء نموذج من مكون عارض، نحن مطالبون بتوفير قياس المشهد المراد عرضه. إنها لا فكرة جيدة أن نستعمل عرض و
+			طول المنطقة التي نريد ملأها في الصفحة. في هذه الحالة إستعملنا عرض و طول نافدة المتصفح. بالنسبة لتطبيقات عالية
+			الأداء، يمكنك توفير قيم أقل مثل <strong>window.innerWidth/2</strong> و <strong>window.innerHeight/2</strong>،
+			التي
+			ستجعل المشهد يعرض أسرع بنصف المدة السابقة.
+		</p>
+
+		<p>
+			على سبيل المثال إلغاء قيمة <strong>updateStyle</strong> كالأتي:
+			<br />
+			<strong>setSize(window.innerWidth/2, window.innerHeight/2, false)</strong>
+			<br />
+			ستجعل المشهد يعرض بدقة أقل بنصف
+			الدرجة القديمة، مع العلم أن < canvas>
+				الخاصة بك تم إمدادها ب100% في كلا الطول و العرض.
+		</p>
+
+		<p>
+			أخيرا و ليس أخرا، سنقوم بإضافة <strong>العارض</strong> إلى ملف الـHTML.
+			<br />
+			< canvas> هو وسم يستعمله العارض لإظهار المشهد من خلاله.
+		</p>
+
+		<p>
+			<em>"كل شيء جيد، و لكن أي المكعب الذي وعدتنا به؟"</em> لنقم بإضافته الأن.
+		</p>
+
+		<code>
+		var geometry = new THREE.BoxGeometry();
+		var material = new THREE.MeshBasicMaterial( { color: 0x00ff00 } );
+		var cube = new THREE.Mesh( geometry, material );
+		scene.add( cube );
+
+		camera.position.z = 5;
+		</code>
+
+		<p>
+			لكي نقوم بإنشاء مكعب، نحتاج مكون <strong>BoxGeometry</strong>. هذا الأخير مسؤول عن حفض أماكن كل النقاط
+			(<strong>vertices</strong>) و تعبئة كل الأوجه
+			(<strong>faces</strong>) المكونة للمكعب. سنقوم بالتعمق في هذا الموضوع مستقبلا.
+		</p>
+
+		<p>
+			بالإضافة إلى الهندسة الخاصة بالمكعب، نحتاج المادة المكونة له لتعطيه لون. Three.js تأتي مع العديد من المواد،
+			و
+			لكن سنكتفي بإستعمال <strong>MeshBasicMaterial</strong> للوقت الراهن. كل المواد تأخذ مجموعة من القيم ستطبق
+			عليها
+			من أجل الوصول إلى النتيجة المرادة. لإبقاء الأشياء بسيطة، قمنا بإرفاق قيمة اللون التي تحمل
+			<strong>0x00ff00</strong>، و الذي يمثل اللون الأخضر. كيفية إحتساب القيمة هي نفسها كإستعمال CSS أو Photoshop
+			(<strong>hex colors</strong>).
+		</p>
+
+		<p>
+			الخطوة التالية هي إنشاء جسم <strong>Mesh</strong>. نقصد به الشيء الذي سيتكفل بالتعامل مع هندسة الشكل و
+			تطبيقها
+			على المادة المرفوقة، و من ثم يمكننا إدخال الشكل الجسم النهائي إلى المشهد، و التحرك بحرية حوله.
+		</p>
+
+		<p>
+			عند إستعمال أمر <strong>()scene.add</strong>، الشيء المراد إضافته للمشهد سيضاف في الإحداثيات التالية
+			(<strong>0,0,0</strong>). هذا يمكن له أن يشكل بعض المشاكل كون الكاميرا في هذه الحالة وسط المكعب. لتجنب هذا
+			نقوم
+			ببساطة بإبعاد الكاميرا قليلا.
+		</p>
+
+		<h2>عرض المشهد</h2>
+
+		<p>
+			إن قمت بنسخ الأوامر البرمجية الموجودة أعله وسط ملف HTML الذي قمنا بإنشائه مسبقا، لم تتمكن من رؤية أي شيء حتى
+			الأن. هذا بسبب أننا لم نقم بعرض أي شيء حتى اللحظة. لذلك، ما نحتاجه يدعى العرض (<strong>render</strong>) أو
+			حلقة
+			الحركات (<strong>animation loop</strong>).
+		</p>
+
+		<code>
+		function animate() {
+			requestAnimationFrame( animate );
+			renderer.render( scene, camera );
+		}
+		animate();
+		</code>
+
+		<p>
+			هذه الشفرة البرمجية تقوم بإنشاء حلقة تجعل العارض يعيد تحديث المشهد كل مرة يحدث فيها تغيير في الصفحة (أو نظريا
+			هذا يعني 60
+			مرة
+			خلال كل ثانية). إن كنت لا تملك تجربة مسبقة في صناعة ألعاب المتصفح، ستتسائل <em>"لماذا لا نستعمل
+				setInterval؟"</em> الحقيقة أننا بإمكاننا ذلك و لكن <strong>requestAnimationFrame</strong> تقدم لنا
+			العديد من
+			المزايا. من أهما أنها تقوم بإيقاف العمل عندما يقوم المستعمل بتغيير الصفحة، بالإضافة لعدم إستهلاك قدرة
+			الحاسب الخاص بالجهاز و عمر البطارية.
+		</p>
+
+		<h2>تحريك المكعب</h2>
+
+		<p>
+			إن قمت بإضافة الأوامر البرمجية السابقة للملف الخاص بك، من الأرجح أنك ترى الأن مكعبا أخضر اللون. لنقم بجعله
+			أكثر
+			جذابية من خلال تدويره.
+		</p>
+
+		<p>
+			قم بإضافة الشفرة التالية فوق السطر الذي يحتوي أمر <strong>renderer.render</strong> في الوظيفة
+			(<strong>animate</strong>):
+		</p>
+
+		<code>
+		cube.rotation.x += 0.01;
+		cube.rotation.y += 0.01;
+		</code>
+
+		<p>
+			هذه الأوامر سيتم تشغيلها في كل إطار (frame). ما يعني 60 مرة في الثانية تقريبا، و بذلك ستمكن المكعب من الدوران.
+			في
+			الأساس، أي شيء تريد تحريكه أو تغيره خلال فترة عمل التطبيق يستوجب أن تكون الأوامر الخاصة بذلك قد تم تشغيلها
+			داخل
+			حلقة الحركات. يمكنك بالتأكيد مناداة وظائف أخرى، لكي لا ينتهي بك المطاف بوظيفة واحدة تحتوي على مئات السطور.
+		</p>
+
+		<h2>النتيجة</h2>
+		<p>
+			تهانينا! لقد قمت بإكمال أول تطبيق three.js لك. الأمر ليس معقدا، يجب عليك فقد البدأ بشيء ما.
+		</p>
+
+		<p>
+			الشفرة البرمجية الكاملة في الأسفل إلى جانب محرر مباشر [link:https://jsfiddle.net/mkba0ecu/ live example].
+			أنت
+			مدعو للعب بالأوامر البرمجية لكي تصبح صورة كيفية عملها أوضح من قبل.
+		</p>
+
+		<code>
+		&lt;html&gt;
+			&lt;head&gt;
+				&lt;title&gt;My first three.js app&lt;/title&gt;
+				&lt;style&gt;
+					body { margin: 0; }
+					canvas { display: block; }
+				&lt;/style&gt;
+			&lt;/head&gt;
+			&lt;body&gt;
+				&lt;script src="js/three.js"&gt;&lt;/script&gt;
+				&lt;script&gt;
+					var scene = new THREE.Scene();
+					var camera = new THREE.PerspectiveCamera( 75, window.innerWidth / window.innerHeight, 0.1, 1000 );
+
+					var renderer = new THREE.WebGLRenderer();
+					renderer.setSize( window.innerWidth, window.innerHeight );
+					document.body.appendChild( renderer.domElement );
+
+					var geometry = new THREE.BoxGeometry();
+					var material = new THREE.MeshBasicMaterial( { color: 0x00ff00 } );
+					var cube = new THREE.Mesh( geometry, material );
+					scene.add( cube );
+
+					camera.position.z = 5;
+
+					var animate = function () {
+						requestAnimationFrame( animate );
+
+						cube.rotation.x += 0.01;
+						cube.rotation.y += 0.01;
+
+						renderer.render( scene, camera );
+					};
+
+					animate();
+				&lt;/script&gt;
+			&lt;/body&gt;
+		&lt;/html&gt;
+		</code>
+	</body>
+</html>

+ 0 - 7
docs/manual/en/introduction/How-to-dispose-of-objects.html

@@ -53,13 +53,6 @@
 		for realizing custom rendering destinations. These objects are only deallocated by executing [page:WebGLRenderTarget.dispose]().
 	</p>
 
-	<h2>Scenes</h2>
-
-	<p>
-		The renderer maintains for scenes special data structures for sorting and rendering. If for some reasons a scene object becomes obsolete in an application,
-		call [page:Scene.dispose]() in order to free these resources.
-	</p>
-
 	<h2>Miscellaneous</h2>
 
 	<p>

+ 0 - 7
docs/manual/zh/introduction/How-to-dispose-of-objects.html

@@ -53,13 +53,6 @@
 		这些对象仅能通过执行[page:WebGLRenderTarget.dispose]()来解除分配。
 	</p>
 
-	<h2>Scenes</h2>
-
-	<p>
-		The renderer maintains for scenes special data structures for sorting and rendering. If for some reasons a scene object becomes obsolete in an application,
-		call [page:Scene.dispose]() in order to free these resources.
-	</p>
-
 	<h2>杂项</h2>
 
 	<p>

+ 0 - 4
docs/scenes/geometry-browser.html

@@ -71,10 +71,6 @@
 			import { OrbitControls } from '../../examples/jsm/controls/OrbitControls.js';
 			import { ParametricGeometries } from '../../examples/jsm/geometries/ParametricGeometries.js';
 
-			/**
-			 * @author TatumCreative (Greg Tatum) / http://gregtatum.com/
-			 */
-
 			var twoPi = Math.PI * 2;
 
 			function updateGroupGeometry( mesh, geometry ) {

+ 0 - 4
docs/scenes/material-browser.html

@@ -62,10 +62,6 @@
 
 			import { GUI } from '../../examples/jsm/libs/dat.gui.module.js';
 
-			/**
-			 * @author TatumCreative (Greg Tatum) / http://gregtatum.com/
-			 */
-
 			var constants = {
 
 				combine: {

+ 0 - 4
editor/js/Command.js

@@ -1,7 +1,3 @@
-/**
- * @author dforrer / https://github.com/dforrer
- * Developed as part of a project at University of Applied Sciences and Arts Northwestern Switzerland (www.fhnw.ch)
- */
 
 /**
  * @param editor pointer to main editor object used to initialize

+ 0 - 4
editor/js/Config.js

@@ -1,7 +1,3 @@
-/**
- * @author mrdoob / http://mrdoob.com/
- */
-
 function Config() {
 
 	var name = 'threejs-editor';

+ 0 - 4
editor/js/Editor.js

@@ -1,7 +1,3 @@
-/**
- * @author mrdoob / http://mrdoob.com/
- */
-
 import * as THREE from '../../build/three.module.js';
 
 import { Config } from './Config.js';

+ 0 - 7
editor/js/EditorControls.js

@@ -1,10 +1,3 @@
-/**
- * @author qiao / https://github.com/qiao
- * @author mrdoob / http://mrdoob.com
- * @author alteredq / http://alteredqualia.com/
- * @author WestLangley / http://github.com/WestLangley
- */
-
 import * as THREE from '../../build/three.module.js';
 
 function EditorControls( object, domElement ) {

+ 3 - 4
editor/js/History.js

@@ -1,7 +1,3 @@
-/**
- * @author dforrer / https://github.com/dforrer
- * Developed as part of a project at University of Applied Sciences and Arts Northwestern Switzerland (www.fhnw.ch)
- */
 
 import * as Commands from './commands/Commands.js';
 
@@ -69,6 +65,7 @@ History.prototype = {
 			cmd.id = ++ this.idCounter;
 
 		}
+
 		cmd.name = ( optionalName !== undefined ) ? optionalName : cmd.name;
 		cmd.execute();
 		cmd.inMemory = true;
@@ -78,6 +75,7 @@ History.prototype = {
 			cmd.json = cmd.toJSON();	// serialize the cmd immediately after execution and append the json to the cmd
 
 		}
+
 		this.lastCmdTime = new Date();
 
 		// clearing all the redo-commands
@@ -307,6 +305,7 @@ History.prototype = {
 				cmd.json = cmd.toJSON();
 
 			}
+
 			cmd = this.redo();
 
 		}

+ 9 - 4
editor/js/Loader.js

@@ -1,7 +1,3 @@
-/**
- * @author mrdoob / http://mrdoob.com/
- */
-
 import * as THREE from '../../build/three.module.js';
 
 import { ThreeMFLoader } from '../../examples/jsm/loaders/3MFLoader.js';
@@ -654,7 +650,12 @@ function Loader( editor ) {
 
 				case 'glb':
 
+					var dracoLoader = new DRACOLoader();
+					dracoLoader.setDecoderPath( '../examples/js/libs/draco/gltf/' );
+
 					var loader = new GLTFLoader();
+					loader.setDRACOLoader( dracoLoader );
+
 					loader.parse( file.asArrayBuffer(), '', function ( result ) {
 
 						var scene = result.scene;
@@ -668,7 +669,11 @@ function Loader( editor ) {
 
 				case 'gltf':
 
+					var dracoLoader = new DRACOLoader();
+					dracoLoader.setDecoderPath( '../examples/js/libs/draco/gltf/' );
+
 					var loader = new GLTFLoader( manager );
+					loader.setDRACOLoader( dracoLoader );
 					loader.parse( file.asText(), '', function ( result ) {
 
 						var scene = result.scene;

+ 0 - 4
editor/js/LoaderUtils.js

@@ -1,7 +1,3 @@
-/**
- * @author mrdoob / http://mrdoob.com/
- */
-
 var LoaderUtils = {
 
 	createFilesMap: function ( files ) {

+ 0 - 4
editor/js/Menubar.Add.js

@@ -1,7 +1,3 @@
-/**
- * @author mrdoob / http://mrdoob.com/
- */
-
 import * as THREE from '../../build/three.module.js';
 
 import { UIPanel, UIRow, UIHorizontalRule } from './libs/ui.js';

+ 0 - 4
editor/js/Menubar.Edit.js

@@ -1,7 +1,3 @@
-/**
- * @author mrdoob / http://mrdoob.com/
- */
-
 import { UIPanel, UIRow, UIHorizontalRule } from './libs/ui.js';
 
 import { AddObjectCommand } from './commands/AddObjectCommand.js';

+ 0 - 4
editor/js/Menubar.Examples.js

@@ -1,7 +1,3 @@
-/**
- * @author mrdoob / http://mrdoob.com/
- */
-
 import * as THREE from '../../build/three.module.js';
 
 import { UIPanel, UIRow } from './libs/ui.js';

+ 0 - 4
editor/js/Menubar.File.js

@@ -1,7 +1,3 @@
-/**
- * @author mrdoob / http://mrdoob.com/
- */
-
 import * as THREE from '../../build/three.module.js';
 
 import { ColladaExporter } from '../../examples/jsm/exporters/ColladaExporter.js';

+ 0 - 4
editor/js/Menubar.Help.js

@@ -1,7 +1,3 @@
-/**
- * @author mrdoob / http://mrdoob.com/
- */
-
 import { UIPanel, UIRow } from './libs/ui.js';
 
 function MenubarHelp( editor ) {

+ 0 - 4
editor/js/Menubar.Play.js

@@ -1,7 +1,3 @@
-/**
- * @author mrdoob / http://mrdoob.com/
- */
-
 import { UIPanel } from './libs/ui.js';
 
 function MenubarPlay( editor ) {

+ 0 - 4
editor/js/Menubar.Status.js

@@ -1,7 +1,3 @@
-/**
- * @author mrdoob / http://mrdoob.com/
- */
-
 import * as THREE from '../../build/three.module.js';
 
 import { UIPanel, UIText } from './libs/ui.js';

+ 0 - 4
editor/js/Menubar.View.js

@@ -1,7 +1,3 @@
-/**
- * @author mrdoob / http://mrdoob.com/
- */
-
 import { UIPanel, UIRow } from './libs/ui.js';
 
 function MenubarView( editor ) {

+ 0 - 4
editor/js/Menubar.js

@@ -1,7 +1,3 @@
-/**
- * @author mrdoob / http://mrdoob.com/
- */
-
 import { UIPanel } from './libs/ui.js';
 
 import { MenubarAdd } from './Menubar.Add.js';

+ 0 - 4
editor/js/Player.js

@@ -1,7 +1,3 @@
-/**
- * @author mrdoob / http://mrdoob.com/
- */
-
 import { UIPanel } from './libs/ui.js';
 import { APP } from './libs/app.js';
 

+ 0 - 4
editor/js/Script.js

@@ -1,7 +1,3 @@
-/**
- * @author mrdoob / http://mrdoob.com/
- */
-
 import { UIElement, UIPanel, UIText } from './libs/ui.js';
 
 import { SetScriptValueCommand } from './commands/SetScriptValueCommand.js';

+ 0 - 4
editor/js/Sidebar.Animation.js

@@ -1,7 +1,3 @@
-/**
- * @author mrdoob / http://mrdoob.com/
- */
-
 import { UIPanel, UIDiv, UIBreak, UISelect, UIButton, UIText } from './libs/ui.js';
 
 function SidebarAnimation( editor ) {

+ 0 - 4
editor/js/Sidebar.Geometry.BoxGeometry.js

@@ -1,7 +1,3 @@
-/**
- * @author mrdoob / http://mrdoob.com/
- */
-
 import * as THREE from '../../build/three.module.js';
 
 import { UIRow, UIText, UINumber, UIInteger } from './libs/ui.js';

+ 0 - 4
editor/js/Sidebar.Geometry.BufferGeometry.js

@@ -1,7 +1,3 @@
-/**
- * @author mrdoob / http://mrdoob.com/
- */
-
 import { UIRow, UIText, UISpan, UIBreak } from './libs/ui.js';
 
 function SidebarGeometryBufferGeometry( editor ) {

+ 0 - 4
editor/js/Sidebar.Geometry.CircleGeometry.js

@@ -1,7 +1,3 @@
-/**
- * @author mrdoob / http://mrdoob.com/
- */
-
 import * as THREE from '../../build/three.module.js';
 
 import { UIRow, UIText, UIInteger, UINumber } from './libs/ui.js';

+ 0 - 4
editor/js/Sidebar.Geometry.CylinderGeometry.js

@@ -1,7 +1,3 @@
-/**
- * @author mrdoob / http://mrdoob.com/
- */
-
 import * as THREE from '../../build/three.module.js';
 
 import { UIRow, UIText, UIInteger, UICheckbox, UINumber } from './libs/ui.js';

+ 0 - 4
editor/js/Sidebar.Geometry.DodecahedronGeometry.js

@@ -1,7 +1,3 @@
-/**
- * @author mrdoob / http://mrdoob.com/
- */
-
 import * as THREE from '../../build/three.module.js';
 
 import { UIRow, UIText, UIInteger, UINumber } from './libs/ui.js';

+ 0 - 4
editor/js/Sidebar.Geometry.ExtrudeGeometry.js

@@ -1,7 +1,3 @@
-/**
- * @author Temdog007 / http://github.com/Temdog007
- */
-
 import * as THREE from '../../build/three.module.js';
 
 import { UIRow, UIText, UIInteger, UICheckbox, UIButton, UINumber } from './libs/ui.js';

+ 0 - 4
editor/js/Sidebar.Geometry.Geometry.js

@@ -1,7 +1,3 @@
-/**
- * @author mrdoob / http://mrdoob.com/
- */
-
 import { UIRow, UIText } from './libs/ui.js';
 
 function SidebarGeometryGeometry( editor ) {

+ 0 - 4
editor/js/Sidebar.Geometry.IcosahedronGeometry.js

@@ -1,7 +1,3 @@
-/**
- * @author mrdoob / http://mrdoob.com/
- */
-
 import * as THREE from '../../build/three.module.js';
 
 import { UIRow, UIText, UIInteger, UINumber } from './libs/ui.js';

+ 0 - 4
editor/js/Sidebar.Geometry.LatheGeometry.js

@@ -1,7 +1,3 @@
-/**
- * @author rfm1201
- */
-
 import * as THREE from '../../build/three.module.js';
 
 import { UIRow, UIText, UIInteger, UINumber } from './libs/ui.js';

+ 0 - 4
editor/js/Sidebar.Geometry.Modifiers.js

@@ -1,7 +1,3 @@
-/**
- * @author mrdoob / http://mrdoob.com/
- */
-
 import { UIRow, UIButton } from './libs/ui.js';
 
 function SidebarGeometryModifiers( editor, object ) {

+ 0 - 4
editor/js/Sidebar.Geometry.OctahedronGeometry.js

@@ -1,7 +1,3 @@
-/**
- * @author Temdog007 / http://github.com/Temdog007
- */
-
 import * as THREE from '../../build/three.module.js';
 
 import { UIRow, UIText, UIInteger, UINumber } from './libs/ui.js';

+ 0 - 4
editor/js/Sidebar.Geometry.PlaneGeometry.js

@@ -1,7 +1,3 @@
-/**
- * @author mrdoob / http://mrdoob.com/
- */
-
 import * as THREE from '../../build/three.module.js';
 
 import { UIRow, UIText, UIInteger, UINumber } from './libs/ui.js';

+ 0 - 4
editor/js/Sidebar.Geometry.RingGeometry.js

@@ -1,7 +1,3 @@
-/**
- * @author Temdog007 / http://github.com/Temdog007
- */
-
 import * as THREE from '../../build/three.module.js';
 
 import { UIRow, UIText, UIInteger, UINumber } from './libs/ui.js';

+ 0 - 4
editor/js/Sidebar.Geometry.ShapeGeometry.js

@@ -1,7 +1,3 @@
-/**
- * @author Temdog007 / http://github.com/Temdog007
- */
-
 import * as THREE from '../../build/three.module.js';
 
 import { UIRow, UIText, UIInteger, UIButton } from './libs/ui.js';

+ 0 - 4
editor/js/Sidebar.Geometry.SphereGeometry.js

@@ -1,7 +1,3 @@
-/**
- * @author mrdoob / http://mrdoob.com/
- */
-
 import * as THREE from '../../build/three.module.js';
 
 import { UIRow, UIText, UIInteger, UINumber } from './libs/ui.js';

+ 0 - 4
editor/js/Sidebar.Geometry.TeapotBufferGeometry.js

@@ -1,7 +1,3 @@
-/**
- * @author tschw
- */
-
 import { UIRow, UIText, UIInteger, UICheckbox, UINumber } from './libs/ui.js';
 
 import { TeapotBufferGeometry } from '../../examples/jsm/geometries/TeapotBufferGeometry.js';

+ 0 - 4
editor/js/Sidebar.Geometry.TetrahedronGeometry.js

@@ -1,7 +1,3 @@
-/**
- * @author Temdog007 / http://github.com/Temdog007
- */
-
 import * as THREE from '../../build/three.module.js';
 
 import { UIRow, UIText, UIInteger, UINumber } from './libs/ui.js';

+ 0 - 4
editor/js/Sidebar.Geometry.TorusGeometry.js

@@ -1,7 +1,3 @@
-/**
- * @author mrdoob / http://mrdoob.com/
- */
-
 import * as THREE from '../../build/three.module.js';
 
 import { UIRow, UIText, UIInteger, UINumber } from './libs/ui.js';

+ 0 - 4
editor/js/Sidebar.Geometry.TorusKnotGeometry.js

@@ -1,7 +1,3 @@
-/**
- * @author mrdoob / http://mrdoob.com/
- */
-
 import * as THREE from '../../build/three.module.js';
 
 import { UIRow, UIText, UIInteger, UINumber } from './libs/ui.js';

+ 0 - 4
editor/js/Sidebar.Geometry.TubeGeometry.js

@@ -1,7 +1,3 @@
-/**
- * @author Temdog007 / http://github.com/Temdog007
- */
-
 import * as THREE from '../../build/three.module.js';
 
 import { UIRow, UIText, UIInteger, UISelect, UICheckbox, UINumber } from './libs/ui.js';

+ 0 - 4
editor/js/Sidebar.Geometry.js

@@ -1,7 +1,3 @@
-/**
- * @author mrdoob / http://mrdoob.com/
- */
-
 import * as THREE from '../../build/three.module.js';
 
 import { UIPanel, UIRow, UIText, UIInput, UIButton, UISpan } from './libs/ui.js';

+ 0 - 4
editor/js/Sidebar.History.js

@@ -1,7 +1,3 @@
-/**
- * @author dforrer / https://github.com/dforrer
- * Developed as part of a project at University of Applied Sciences and Arts Northwestern Switzerland (www.fhnw.ch)
- */
 
 import { UIPanel, UIBreak, UIText } from './libs/ui.js';
 import { UIBoolean, UIOutliner } from './libs/ui.three.js';

+ 0 - 4
editor/js/Sidebar.Material.js

@@ -1,7 +1,3 @@
-/**
- * @author mrdoob / http://mrdoob.com/
- */
-
 import * as THREE from '../../build/three.module.js';
 
 import { UIPanel, UIRow, UIInput, UIButton, UIColor, UICheckbox, UISelect, UIText, UINumber } from './libs/ui.js';

+ 3 - 60
editor/js/Sidebar.Object.js

@@ -1,7 +1,3 @@
-/**
- * @author mrdoob / http://mrdoob.com/
- */
-
 import * as THREE from '../../build/three.module.js';
 
 import { UIPanel, UIRow, UIInput, UIButton, UIColor, UICheckbox, UIInteger, UITextArea, UIText, UINumber } from './libs/ui.js';
@@ -137,13 +133,11 @@ function SidebarObject( editor ) {
 	// scale
 
 	var objectScaleRow = new UIRow();
-	var objectScaleLock = new UICheckbox( true ).setPosition( 'absolute' ).setLeft( '75px' );
-	var objectScaleX = new UINumber( 1 ).setPrecision( 3 ).setRange( 0.001, Infinity ).setWidth( '50px' ).onChange( updateScaleX );
-	var objectScaleY = new UINumber( 1 ).setPrecision( 3 ).setRange( 0.001, Infinity ).setWidth( '50px' ).onChange( updateScaleY );
-	var objectScaleZ = new UINumber( 1 ).setPrecision( 3 ).setRange( 0.001, Infinity ).setWidth( '50px' ).onChange( updateScaleZ );
+	var objectScaleX = new UINumber( 1 ).setPrecision( 3 ).setWidth( '50px' ).onChange( update );
+	var objectScaleY = new UINumber( 1 ).setPrecision( 3 ).setWidth( '50px' ).onChange( update );
+	var objectScaleZ = new UINumber( 1 ).setPrecision( 3 ).setWidth( '50px' ).onChange( update );
 
 	objectScaleRow.add( new UIText( strings.getKey( 'sidebar/object/scale' ) ).setWidth( '90px' ) );
-	objectScaleRow.add( objectScaleLock );
 	objectScaleRow.add( objectScaleX, objectScaleY, objectScaleZ );
 
 	container.add( objectScaleRow );
@@ -395,57 +389,6 @@ function SidebarObject( editor ) {
 
 	//
 
-	function updateScaleX() {
-
-		var object = editor.selected;
-
-		if ( objectScaleLock.getValue() === true ) {
-
-			var scale = objectScaleX.getValue() / object.scale.x;
-
-			objectScaleY.setValue( objectScaleY.getValue() * scale );
-			objectScaleZ.setValue( objectScaleZ.getValue() * scale );
-
-		}
-
-		update();
-
-	}
-
-	function updateScaleY() {
-
-		var object = editor.selected;
-
-		if ( objectScaleLock.getValue() === true ) {
-
-			var scale = objectScaleY.getValue() / object.scale.y;
-
-			objectScaleX.setValue( objectScaleX.getValue() * scale );
-			objectScaleZ.setValue( objectScaleZ.getValue() * scale );
-
-		}
-
-		update();
-
-	}
-
-	function updateScaleZ() {
-
-		var object = editor.selected;
-
-		if ( objectScaleLock.getValue() === true ) {
-
-			var scale = objectScaleZ.getValue() / object.scale.z;
-
-			objectScaleX.setValue( objectScaleX.getValue() * scale );
-			objectScaleY.setValue( objectScaleY.getValue() * scale );
-
-		}
-
-		update();
-
-	}
-
 	function update() {
 
 		var object = editor.selected;

+ 0 - 4
editor/js/Sidebar.Project.js

@@ -1,7 +1,3 @@
-/**
- * @author mrdoob / http://mrdoob.com/
- */
-
 import * as THREE from '../../build/three.module.js';
 
 import { UIPanel, UIRow, UIInput, UICheckbox, UIText, UIListbox, UISpan, UIButton, UISelect, UINumber } from './libs/ui.js';

+ 0 - 4
editor/js/Sidebar.Properties.js

@@ -1,7 +1,3 @@
-/**
- * @author mrdoob / http://mrdoob.com/
- */
-
 import { UITabbedPanel } from './libs/ui.js';
 
 import { SidebarObject } from './Sidebar.Object.js';

+ 0 - 4
editor/js/Sidebar.Scene.js

@@ -1,7 +1,3 @@
-/**
- * @author mrdoob / http://mrdoob.com/
- */
-
 import { UIPanel, UIBreak, UIRow, UIColor, UISelect, UIText, UINumber } from './libs/ui.js';
 import { UIOutliner, UITexture } from './libs/ui.three.js';
 

+ 0 - 4
editor/js/Sidebar.Script.js

@@ -1,7 +1,3 @@
-/**
- * @author mrdoob / http://mrdoob.com/
- */
-
 import { UIPanel, UIBreak, UIText, UIButton, UIRow, UIInput } from './libs/ui.js';
 
 import { AddScriptCommand } from './commands/AddScriptCommand.js';

+ 0 - 4
editor/js/Sidebar.Settings.Shortcuts.js

@@ -1,7 +1,3 @@
-/**
- * @author TyLindberg / https://github.com/TyLindberg
- */
-
 import { UIDiv, UIBreak, UIText, UIRow, UIInput } from './libs/ui.js';
 
 import { RemoveObjectCommand } from './commands/RemoveObjectCommand.js';

+ 0 - 4
editor/js/Sidebar.Settings.Viewport.js

@@ -1,7 +1,3 @@
-/**
- * @author mrdoob / http://mrdoob.com/
- */
-
 import { UIDiv, UIText, UIRow } from './libs/ui.js';
 import { UIBoolean } from './libs/ui.three.js';
 

+ 0 - 4
editor/js/Sidebar.Settings.js

@@ -1,7 +1,3 @@
-/**
- * @author mrdoob / http://mrdoob.com/
- */
-
 import { UIPanel, UIRow, UISelect, UIText, UIInteger } from './libs/ui.js';
 
 import { SidebarSettingsViewport } from './Sidebar.Settings.Viewport.js';

+ 0 - 4
editor/js/Sidebar.js

@@ -1,7 +1,3 @@
-/**
- * @author mrdoob / http://mrdoob.com/
- */
-
 import { UITabbedPanel, UISpan } from './libs/ui.js';
 
 import { SidebarScene } from './Sidebar.Scene.js';

+ 0 - 4
editor/js/Storage.js

@@ -1,7 +1,3 @@
-/**
- * @author mrdoob / http://mrdoob.com/
- */
-
 function Storage() {
 
 	var indexedDB = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB;

+ 0 - 4
editor/js/Strings.js

@@ -1,7 +1,3 @@
-/**
- * @author mrdoob / http://mrdoob.com/
- */
-
 function Strings( config ) {
 
 	var language = config.getKey( 'language' );

+ 0 - 4
editor/js/Toolbar.js

@@ -1,7 +1,3 @@
-/**
- * @author mrdoob / http://mrdoob.com/
- */
-
 import { UIPanel, UIButton, UICheckbox } from './libs/ui.js';
 
 function Toolbar( editor ) {

+ 0 - 4
editor/js/Viewport.Camera.js

@@ -1,7 +1,3 @@
-/**
- * @author mrdoob / http://mrdoob.com/
- */
-
 import { UISelect } from './libs/ui.js';
 
 function ViewportCamera( editor ) {

+ 0 - 4
editor/js/Viewport.Info.js

@@ -1,7 +1,3 @@
-/**
- * @author mrdoob / http://mrdoob.com/
- */
-
 import { UIPanel, UIBreak, UIText } from './libs/ui.js';
 
 function ViewportInfo( editor ) {

+ 0 - 4
editor/js/Viewport.ViewHelper.js

@@ -1,7 +1,3 @@
-/**
- * @author Mugen87 / https://github.com/Mugen87
- */
-
 import { UIPanel } from './libs/ui.js';
 
 import * as THREE from '../../build/three.module.js';

+ 0 - 4
editor/js/Viewport.js

@@ -1,7 +1,3 @@
-/**
- * @author mrdoob / http://mrdoob.com/
- */
-
 import * as THREE from '../../build/three.module.js';
 
 import { TransformControls } from '../../examples/jsm/controls/TransformControls.js';

+ 0 - 5
editor/js/commands/AddObjectCommand.js

@@ -1,8 +1,3 @@
-/**
- * @author dforrer / https://github.com/dforrer
- * Developed as part of a project at University of Applied Sciences and Arts Northwestern Switzerland (www.fhnw.ch)
- */
-
 import { Command } from '../Command.js';
 import * as THREE from '../../../build/three.module.js';
 

+ 0 - 5
editor/js/commands/AddScriptCommand.js

@@ -1,8 +1,3 @@
-/**
- * @author dforrer / https://github.com/dforrer
- * Developed as part of a project at University of Applied Sciences and Arts Northwestern Switzerland (www.fhnw.ch)
- */
-
 import { Command } from '../Command.js';
 
 /**

+ 3 - 5
editor/js/commands/MoveObjectCommand.js

@@ -1,8 +1,3 @@
-/**
- * @author dforrer / https://github.com/dforrer
- * Developed as part of a project at University of Applied Sciences and Arts Northwestern Switzerland (www.fhnw.ch)
- */
-
 import { Command } from '../Command.js';
 
 /**
@@ -95,12 +90,15 @@ MoveObjectCommand.prototype = {
 			this.oldParent = this.editor.scene;
 
 		}
+
 		this.newParent = this.editor.objectByUuid( json.newParentUuid );
+
 		if ( this.newParent === undefined ) {
 
 			this.newParent = this.editor.scene;
 
 		}
+
 		this.newIndex = json.newIndex;
 		this.oldIndex = json.oldIndex;
 

+ 1 - 5
editor/js/commands/MultiCmdsCommand.js

@@ -1,8 +1,3 @@
-/**
- * @author dforrer / https://github.com/dforrer
- * Developed as part of a project at University of Applied Sciences and Arts Northwestern Switzerland (www.fhnw.ch)
- */
-
 import { Command } from '../Command.js';
 
 /**
@@ -63,6 +58,7 @@ MultiCmdsCommand.prototype = {
 			cmds.push( this.cmdArray[ i ].toJSON() );
 
 		}
+
 		output.cmds = cmds;
 
 		return output;

+ 0 - 4
editor/js/commands/RemoveObjectCommand.js

@@ -1,7 +1,3 @@
-/**
- * @author dforrer / https://github.com/dforrer
- * Developed as part of a project at University of Applied Sciences and Arts Northwestern Switzerland (www.fhnw.ch)
- */
 
 import { Command } from '../Command.js';
 

+ 0 - 5
editor/js/commands/RemoveScriptCommand.js

@@ -1,8 +1,3 @@
-/**
- * @author dforrer / https://github.com/dforrer
- * Developed as part of a project at University of Applied Sciences and Arts Northwestern Switzerland (www.fhnw.ch)
- */
-
 import { Command } from '../Command.js';
 
 /**

+ 0 - 5
editor/js/commands/SetColorCommand.js

@@ -1,8 +1,3 @@
-/**
- * @author dforrer / https://github.com/dforrer
- * Developed as part of a project at University of Applied Sciences and Arts Northwestern Switzerland (www.fhnw.ch)
- */
-
 import { Command } from '../Command.js';
 
 /**

+ 0 - 5
editor/js/commands/SetGeometryCommand.js

@@ -1,8 +1,3 @@
-/**
- * @author dforrer / https://github.com/dforrer
- * Developed as part of a project at University of Applied Sciences and Arts Northwestern Switzerland (www.fhnw.ch)
- */
-
 import { Command } from '../Command.js';
 
 import * as THREE from '../../../build/three.module.js';

+ 0 - 5
editor/js/commands/SetGeometryValueCommand.js

@@ -1,8 +1,3 @@
-/**
- * @author dforrer / https://github.com/dforrer
- * Developed as part of a project at University of Applied Sciences and Arts Northwestern Switzerland (www.fhnw.ch)
- */
-
 import { Command } from '../Command.js';
 
 /**

+ 0 - 5
editor/js/commands/SetMaterialColorCommand.js

@@ -1,8 +1,3 @@
-/**
- * @author dforrer / https://github.com/dforrer
- * Developed as part of a project at University of Applied Sciences and Arts Northwestern Switzerland (www.fhnw.ch)
- */
-
 import { Command } from '../Command.js';
 
 /**

+ 0 - 5
editor/js/commands/SetMaterialCommand.js

@@ -1,8 +1,3 @@
-/**
- * @author dforrer / https://github.com/dforrer
- * Developed as part of a project at University of Applied Sciences and Arts Northwestern Switzerland (www.fhnw.ch)
- */
-
 import { Command } from '../Command.js';
 
 import * as THREE from '../../../build/three.module.js';

+ 2 - 4
editor/js/commands/SetMaterialMapCommand.js

@@ -1,7 +1,3 @@
-/**
- * @author dforrer / https://github.com/dforrer
- * Developed as part of a project at University of Applied Sciences and Arts Northwestern Switzerland (www.fhnw.ch)
- */
 
 import { Command } from '../Command.js';
 
@@ -99,6 +95,7 @@ SetMaterialMapCommand.prototype = {
 				values.push( data );
 
 			}
+
 			return values;
 
 		}
@@ -126,6 +123,7 @@ SetMaterialMapCommand.prototype = {
 				map.sourceFile = json.sourceFile;
 
 			}
+
 			return map;
 
 		}

+ 0 - 5
editor/js/commands/SetMaterialValueCommand.js

@@ -1,8 +1,3 @@
-/**
- * @author dforrer / https://github.com/dforrer
- * Developed as part of a project at University of Applied Sciences and Arts Northwestern Switzerland (www.fhnw.ch)
- */
-
 import { Command } from '../Command.js';
 
 /**

+ 0 - 5
editor/js/commands/SetMaterialVectorCommand.js

@@ -1,8 +1,3 @@
-/**
- * @author dforrer / https://github.com/dforrer
- * Developed as part of a project at University of Applied Sciences and Arts Northwestern Switzerland (www.fhnw.ch)
- */
-
 import { Command } from '../Command.js';
 
 function SetMaterialVectorCommand( editor, object, attributeName, newValue, materialSlot ) {

+ 0 - 5
editor/js/commands/SetPositionCommand.js

@@ -1,8 +1,3 @@
-/**
- * @author dforrer / https://github.com/dforrer
- * Developed as part of a project at University of Applied Sciences and Arts Northwestern Switzerland (www.fhnw.ch)
- */
-
 import { Command } from '../Command.js';
 
 import * as THREE from '../../../build/three.module.js';

+ 0 - 5
editor/js/commands/SetRotationCommand.js

@@ -1,8 +1,3 @@
-/**
- * @author dforrer / https://github.com/dforrer
- * Developed as part of a project at University of Applied Sciences and Arts Northwestern Switzerland (www.fhnw.ch)
- */
-
 import { Command } from '../Command.js';
 
 import * as THREE from '../../../build/three.module.js';

+ 0 - 5
editor/js/commands/SetScaleCommand.js

@@ -1,8 +1,3 @@
-/**
- * @author dforrer / https://github.com/dforrer
- * Developed as part of a project at University of Applied Sciences and Arts Northwestern Switzerland (www.fhnw.ch)
- */
-
 import { Command } from '../Command.js';
 
 import * as THREE from '../../../build/three.module.js';

部分文件因文件數量過多而無法顯示