Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
车家大少爷
three.js
提交
ec53b8e4
T
three.js
项目概览
车家大少爷
/
three.js
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
three.js
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
ec53b8e4
编写于
10月 22, 2015
作者:
M
Mario Schuettel
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Minor adjustments in editor/docs markdowns
Added "var " before function expressions
上级
08106172
变更
23
显示空白变更内容
内联
并排
Showing
23 changed file
with
26 addition
and
26 deletion
+26
-26
editor/docs/Implementing additional commands for undo-redo.md
...or/docs/Implementing additional commands for undo-redo.md
+2
-2
editor/docs/Writing unit tests for undo-redo commands.md
editor/docs/Writing unit tests for undo-redo commands.md
+3
-3
editor/js/Command.js
editor/js/Command.js
+1
-1
editor/js/commands/AddObjectCommand.js
editor/js/commands/AddObjectCommand.js
+1
-1
editor/js/commands/AddScriptCommand.js
editor/js/commands/AddScriptCommand.js
+1
-1
editor/js/commands/MoveObjectCommand.js
editor/js/commands/MoveObjectCommand.js
+1
-1
editor/js/commands/MultiCmdsCommand.js
editor/js/commands/MultiCmdsCommand.js
+1
-1
editor/js/commands/RemoveObjectCommand.js
editor/js/commands/RemoveObjectCommand.js
+1
-1
editor/js/commands/RemoveScriptCommand.js
editor/js/commands/RemoveScriptCommand.js
+1
-1
editor/js/commands/SetColorCommand.js
editor/js/commands/SetColorCommand.js
+1
-1
editor/js/commands/SetGeometryCommand.js
editor/js/commands/SetGeometryCommand.js
+1
-1
editor/js/commands/SetGeometryValueCommand.js
editor/js/commands/SetGeometryValueCommand.js
+1
-1
editor/js/commands/SetMaterialColorCommand.js
editor/js/commands/SetMaterialColorCommand.js
+1
-1
editor/js/commands/SetMaterialCommand.js
editor/js/commands/SetMaterialCommand.js
+1
-1
editor/js/commands/SetMaterialMapCommand.js
editor/js/commands/SetMaterialMapCommand.js
+1
-1
editor/js/commands/SetMaterialValueCommand.js
editor/js/commands/SetMaterialValueCommand.js
+1
-1
editor/js/commands/SetPositionCommand.js
editor/js/commands/SetPositionCommand.js
+1
-1
editor/js/commands/SetRotationCommand.js
editor/js/commands/SetRotationCommand.js
+1
-1
editor/js/commands/SetScaleCommand.js
editor/js/commands/SetScaleCommand.js
+1
-1
editor/js/commands/SetSceneCommand.js
editor/js/commands/SetSceneCommand.js
+1
-1
editor/js/commands/SetScriptValueCommand.js
editor/js/commands/SetScriptValueCommand.js
+1
-1
editor/js/commands/SetUuidCommand.js
editor/js/commands/SetUuidCommand.js
+1
-1
editor/js/commands/SetValueCommand.js
editor/js/commands/SetValueCommand.js
+1
-1
未找到文件。
editor/docs/Implementing additional commands for undo-redo.md
浏览文件 @
ec53b8e4
...
@@ -26,12 +26,12 @@ Every command needs a constructor. In the constructor
...
@@ -26,12 +26,12 @@ Every command needs a constructor. In the constructor
```
javascript
```
javascript
DoSomethingCommand
=
function
()
{
var
DoSomethingCommand
=
function
()
{
Command
.
call
(
this
);
// Required: Call default constructor
Command
.
call
(
this
);
// Required: Call default constructor
this
.
type
=
'
DoSomethingCommand
'
;
// Required: has to match the object-name!
this
.
type
=
'
DoSomethingCommand
'
;
// Required: has to match the object-name!
this
.
name
=
'
Set/Do/Update
Do
Something
'
;
// Required: description of the command, used in Sidebar.History
this
.
name
=
'
Set/Do/Update Something
'
;
// Required: description of the command, used in Sidebar.History
// TODO: store all the relevant information needed to
// TODO: store all the relevant information needed to
// restore the old and the new state
// restore the old and the new state
...
...
editor/docs/Writing unit tests for undo-redo commands.md
浏览文件 @
ec53b8e4
...
@@ -26,9 +26,9 @@ Within the file, go to the `<!-- command object classes -->` and include the new
...
@@ -26,9 +26,9 @@ Within the file, go to the `<!-- command object classes -->` and include the new
```
html
```
html
//
<!-- command object classes -->
//
<!-- command object classes -->
//...
//...
<script
src=
"../../editor/js/AddScriptCommand.js"
></script>
<script
src=
"../../editor/js/
commands/
AddScriptCommand.js"
></script>
<script
src=
"../../editor/js/DoSomethingCommand.js"
></script>
// add this line
<script
src=
"../../editor/js/
commands/
DoSomethingCommand.js"
></script>
// add this line
<script
src=
"../../editor/js/MoveObjectCommand.js"
></script>
<script
src=
"../../editor/js/
commands/
MoveObjectCommand.js"
></script>
//...
//...
```
```
...
...
editor/js/Command.js
浏览文件 @
ec53b8e4
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
* @constructor
* @constructor
*/
*/
Command
=
function
(
editorRef
)
{
var
Command
=
function
(
editorRef
)
{
this
.
id
=
-
1
;
this
.
id
=
-
1
;
this
.
inMemory
=
false
;
this
.
inMemory
=
false
;
...
...
editor/js/commands/AddObjectCommand.js
浏览文件 @
ec53b8e4
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
* @constructor
* @constructor
*/
*/
AddObjectCommand
=
function
(
object
)
{
var
AddObjectCommand
=
function
(
object
)
{
Command
.
call
(
this
);
Command
.
call
(
this
);
...
...
editor/js/commands/AddScriptCommand.js
浏览文件 @
ec53b8e4
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
* @constructor
* @constructor
*/
*/
AddScriptCommand
=
function
(
object
,
script
)
{
var
AddScriptCommand
=
function
(
object
,
script
)
{
Command
.
call
(
this
);
Command
.
call
(
this
);
...
...
editor/js/commands/MoveObjectCommand.js
浏览文件 @
ec53b8e4
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
* @constructor
* @constructor
*/
*/
MoveObjectCommand
=
function
(
object
,
newParent
,
newBefore
)
{
var
MoveObjectCommand
=
function
(
object
,
newParent
,
newBefore
)
{
Command
.
call
(
this
);
Command
.
call
(
this
);
...
...
editor/js/commands/MultiCmdsCommand.js
浏览文件 @
ec53b8e4
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
* @constructor
* @constructor
*/
*/
MultiCmdsCommand
=
function
(
cmdArray
)
{
var
MultiCmdsCommand
=
function
(
cmdArray
)
{
Command
.
call
(
this
);
Command
.
call
(
this
);
...
...
editor/js/commands/RemoveObjectCommand.js
浏览文件 @
ec53b8e4
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
* @constructor
* @constructor
*/
*/
RemoveObjectCommand
=
function
(
object
)
{
var
RemoveObjectCommand
=
function
(
object
)
{
Command
.
call
(
this
);
Command
.
call
(
this
);
...
...
editor/js/commands/RemoveScriptCommand.js
浏览文件 @
ec53b8e4
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
* @constructor
* @constructor
*/
*/
RemoveScriptCommand
=
function
(
object
,
script
)
{
var
RemoveScriptCommand
=
function
(
object
,
script
)
{
Command
.
call
(
this
);
Command
.
call
(
this
);
...
...
editor/js/commands/SetColorCommand.js
浏览文件 @
ec53b8e4
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
* @constructor
* @constructor
*/
*/
SetColorCommand
=
function
(
object
,
attributeName
,
newValue
)
{
var
SetColorCommand
=
function
(
object
,
attributeName
,
newValue
)
{
Command
.
call
(
this
);
Command
.
call
(
this
);
...
...
editor/js/commands/SetGeometryCommand.js
浏览文件 @
ec53b8e4
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
* @constructor
* @constructor
*/
*/
SetGeometryCommand
=
function
(
object
,
newGeometry
)
{
var
SetGeometryCommand
=
function
(
object
,
newGeometry
)
{
Command
.
call
(
this
);
Command
.
call
(
this
);
...
...
editor/js/commands/SetGeometryValueCommand.js
浏览文件 @
ec53b8e4
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
* @constructor
* @constructor
*/
*/
SetGeometryValueCommand
=
function
(
object
,
attributeName
,
newValue
)
{
var
SetGeometryValueCommand
=
function
(
object
,
attributeName
,
newValue
)
{
Command
.
call
(
this
);
Command
.
call
(
this
);
...
...
editor/js/commands/SetMaterialColorCommand.js
浏览文件 @
ec53b8e4
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
* @constructor
* @constructor
*/
*/
SetMaterialColorCommand
=
function
(
object
,
attributeName
,
newValue
)
{
var
SetMaterialColorCommand
=
function
(
object
,
attributeName
,
newValue
)
{
Command
.
call
(
this
);
Command
.
call
(
this
);
...
...
editor/js/commands/SetMaterialCommand.js
浏览文件 @
ec53b8e4
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
* @constructor
* @constructor
*/
*/
SetMaterialCommand
=
function
(
object
,
newMaterial
)
{
var
SetMaterialCommand
=
function
(
object
,
newMaterial
)
{
Command
.
call
(
this
);
Command
.
call
(
this
);
...
...
editor/js/commands/SetMaterialMapCommand.js
浏览文件 @
ec53b8e4
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
* @constructor
* @constructor
*/
*/
SetMaterialMapCommand
=
function
(
object
,
mapName
,
newMap
)
{
var
SetMaterialMapCommand
=
function
(
object
,
mapName
,
newMap
)
{
Command
.
call
(
this
);
Command
.
call
(
this
);
this
.
type
=
'
SetMaterialMapCommand
'
;
this
.
type
=
'
SetMaterialMapCommand
'
;
...
...
editor/js/commands/SetMaterialValueCommand.js
浏览文件 @
ec53b8e4
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
* @constructor
* @constructor
*/
*/
SetMaterialValueCommand
=
function
(
object
,
attributeName
,
newValue
)
{
var
SetMaterialValueCommand
=
function
(
object
,
attributeName
,
newValue
)
{
Command
.
call
(
this
);
Command
.
call
(
this
);
...
...
editor/js/commands/SetPositionCommand.js
浏览文件 @
ec53b8e4
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
* @constructor
* @constructor
*/
*/
SetPositionCommand
=
function
(
object
,
newPosition
,
optionalOldPosition
)
{
var
SetPositionCommand
=
function
(
object
,
newPosition
,
optionalOldPosition
)
{
Command
.
call
(
this
);
Command
.
call
(
this
);
...
...
editor/js/commands/SetRotationCommand.js
浏览文件 @
ec53b8e4
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
* @constructor
* @constructor
*/
*/
SetRotationCommand
=
function
(
object
,
newRotation
,
optionalOldRotation
)
{
var
SetRotationCommand
=
function
(
object
,
newRotation
,
optionalOldRotation
)
{
Command
.
call
(
this
);
Command
.
call
(
this
);
...
...
editor/js/commands/SetScaleCommand.js
浏览文件 @
ec53b8e4
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
* @constructor
* @constructor
*/
*/
SetScaleCommand
=
function
(
object
,
newScale
,
optionalOldScale
)
{
var
SetScaleCommand
=
function
(
object
,
newScale
,
optionalOldScale
)
{
Command
.
call
(
this
);
Command
.
call
(
this
);
...
...
editor/js/commands/SetSceneCommand.js
浏览文件 @
ec53b8e4
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
* @constructor
* @constructor
*/
*/
SetSceneCommand
=
function
(
scene
)
{
var
SetSceneCommand
=
function
(
scene
)
{
Command
.
call
(
this
);
Command
.
call
(
this
);
...
...
editor/js/commands/SetScriptValueCommand.js
浏览文件 @
ec53b8e4
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
* @constructor
* @constructor
*/
*/
SetScriptValueCommand
=
function
(
object
,
script
,
attributeName
,
newValue
,
cursorPosition
)
{
var
SetScriptValueCommand
=
function
(
object
,
script
,
attributeName
,
newValue
,
cursorPosition
)
{
Command
.
call
(
this
);
Command
.
call
(
this
);
...
...
editor/js/commands/SetUuidCommand.js
浏览文件 @
ec53b8e4
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
* @constructor
* @constructor
*/
*/
SetUuidCommand
=
function
(
object
,
newUuid
)
{
var
SetUuidCommand
=
function
(
object
,
newUuid
)
{
Command
.
call
(
this
);
Command
.
call
(
this
);
...
...
editor/js/commands/SetValueCommand.js
浏览文件 @
ec53b8e4
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
* @constructor
* @constructor
*/
*/
SetValueCommand
=
function
(
object
,
attributeName
,
newValue
)
{
var
SetValueCommand
=
function
(
object
,
attributeName
,
newValue
)
{
Command
.
call
(
this
);
Command
.
call
(
this
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录