Skip to content

Commit 6b70243

Browse files
committed
add _separate/_deseparate methods in array1d
1 parent f96db70 commit 6b70243

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

js/module/array1d.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,22 @@ Array1DTracer.prototype = $.extend(true, Object.create(Array2DTracer.prototype),
2828
}
2929
return this;
3030
},
31+
_separate: function (idx) {
32+
this.manager.pushStep(this.capsule, {
33+
type: 'separate',
34+
x: 0,
35+
y: idx
36+
});
37+
return this;
38+
},
39+
_deseparate: function (idx) {
40+
this.manager.pushStep(this.capsule, {
41+
type: 'deseparate',
42+
x: 0,
43+
y: idx
44+
});
45+
return this;
46+
},
3147
setData: function (D) {
3248
return Array2DTracer.prototype.setData.call(this, [D]);
3349
}

0 commit comments

Comments
 (0)