提交 fe04237b 编写于 作者: J Jason Park

add _separate/_deseparate methods in array1d

上级 1c5b9183
...@@ -28,6 +28,22 @@ Array1DTracer.prototype = $.extend(true, Object.create(Array2DTracer.prototype), ...@@ -28,6 +28,22 @@ Array1DTracer.prototype = $.extend(true, Object.create(Array2DTracer.prototype),
} }
return this; return this;
}, },
_separate: function (idx) {
this.manager.pushStep(this.capsule, {
type: 'separate',
x: 0,
y: idx
});
return this;
},
_deseparate: function (idx) {
this.manager.pushStep(this.capsule, {
type: 'deseparate',
x: 0,
y: idx
});
return this;
},
setData: function (D) { setData: function (D) {
return Array2DTracer.prototype.setData.call(this, [D]); return Array2DTracer.prototype.setData.call(this, [D]);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册