Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
tianyazhichiC
algorithm-visualizer
提交
e0686f2a
A
algorithm-visualizer
项目概览
tianyazhichiC
/
algorithm-visualizer
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
algorithm-visualizer
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
e0686f2a
编写于
7月 11, 2018
作者:
J
Jason Park
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Rename method wait to delay, notify to patch, and denotify to depatch
上级
d85faa90
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
12 addition
and
12 deletion
+12
-12
src/backend/public/algorithms
src/backend/public/algorithms
+1
-1
src/backend/tracers
src/backend/tracers
+1
-1
src/frontend/core/datas/Array1DData.js
src/frontend/core/datas/Array1DData.js
+4
-4
src/frontend/core/datas/Array2DData.js
src/frontend/core/datas/Array2DData.js
+2
-2
src/frontend/core/datas/Data.js
src/frontend/core/datas/Data.js
+1
-1
src/frontend/core/tracerManager.jsx
src/frontend/core/tracerManager.jsx
+3
-3
未找到文件。
algorithms
@
f5f68df9
比较
b87f7d53
...
f5f68df9
Subproject commit
b87f7d53ba62f7d3ec147caa71f188805be22be3
Subproject commit
f5f68df953b3654943d4d5050993152b1be50227
tracers
@
1480952e
比较
9006b44c
...
1480952e
Subproject commit
9006b44cb9bbbce2e230d2c26f52857a4dc6d185
Subproject commit
1480952ea2b82cc49ae2bffbafbbf246b66a343d
src/frontend/core/datas/Array1DData.js
浏览文件 @
e0686f2a
...
@@ -13,12 +13,12 @@ class Array1DData extends Array2DData {
...
@@ -13,12 +13,12 @@ class Array1DData extends Array2DData {
this
.
syncChartData
();
this
.
syncChartData
();
}
}
notify
(
x
,
v
)
{
patch
(
x
,
v
)
{
super
.
notify
(
0
,
x
,
v
);
super
.
patch
(
0
,
x
,
v
);
}
}
de
notify
(
x
)
{
de
patch
(
x
)
{
super
.
de
notify
(
0
,
x
);
super
.
de
patch
(
0
,
x
);
}
}
select
(
s
,
e
=
s
)
{
select
(
s
,
e
=
s
)
{
...
...
src/frontend/core/datas/Array2DData.js
浏览文件 @
e0686f2a
...
@@ -18,12 +18,12 @@ class Array2DData extends Data {
...
@@ -18,12 +18,12 @@ class Array2DData extends Data {
super
.
set
();
super
.
set
();
}
}
notify
(
x
,
y
,
v
=
this
.
data
[
x
][
y
].
value
)
{
patch
(
x
,
y
,
v
=
this
.
data
[
x
][
y
].
value
)
{
this
.
data
[
x
][
y
].
value
=
v
;
this
.
data
[
x
][
y
].
value
=
v
;
this
.
data
[
x
][
y
].
notified
=
true
;
this
.
data
[
x
][
y
].
notified
=
true
;
}
}
de
notify
(
x
,
y
)
{
de
patch
(
x
,
y
)
{
this
.
data
[
x
][
y
].
notified
=
false
;
this
.
data
[
x
][
y
].
notified
=
false
;
}
}
...
...
src/frontend/core/datas/Data.js
浏览文件 @
e0686f2a
...
@@ -31,7 +31,7 @@ class Data {
...
@@ -31,7 +31,7 @@ class Data {
set
()
{
set
()
{
}
}
wait
()
{
delay
()
{
}
}
}
}
...
...
src/frontend/core/tracerManager.jsx
浏览文件 @
e0686f2a
...
@@ -113,14 +113,14 @@ class TracerManager {
...
@@ -113,14 +113,14 @@ class TracerManager {
return
true
;
return
true
;
}
else
{
}
else
{
const
data
=
this
.
datas
[
tracerKey
];
const
data
=
this
.
datas
[
tracerKey
];
const
wait
=
method
===
'
wait
'
;
const
delay
=
method
===
'
delay
'
;
const
newArgs
=
[...
args
];
const
newArgs
=
[...
args
];
if
(
wait
)
{
if
(
delay
)
{
const
lineNumber
=
newArgs
.
shift
();
const
lineNumber
=
newArgs
.
shift
();
this
.
setLineIndicator
({
lineNumber
,
cursor
:
this
.
cursor
});
this
.
setLineIndicator
({
lineNumber
,
cursor
:
this
.
cursor
});
}
}
data
[
method
](...
newArgs
);
data
[
method
](...
newArgs
);
return
!
wait
;
return
!
delay
;
}
}
}
catch
(
error
)
{
}
catch
(
error
)
{
if
(
this
.
started
)
this
.
handleError
(
error
);
if
(
this
.
started
)
this
.
handleError
(
error
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录