提交 21eacd0c 编写于 作者: J Jason Park

add palette function

上级 3e362040
...@@ -50,26 +50,6 @@ class Tracer { ...@@ -50,26 +50,6 @@ class Tracer {
return this; return this;
} }
_setSelectedColor(c) {
this.color.selected = c;
}
_setNotifiedColor(c) {
this.color.notified = c;
}
_setVisitedColor(c) {
this.color.visited = c;
}
_setLeftColor(c) {
this.color.left = c;
}
_setDefaultColor(c) {
this.color.default = c;
}
processStep(step, options) { processStep(step, options) {
const { const {
type, type,
...@@ -127,6 +107,11 @@ class Tracer { ...@@ -127,6 +107,11 @@ class Tracer {
return this; return this;
} }
palette(color) {
$.extend(this.color, color);
return this;
}
mousedown(e) { mousedown(e) {
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册