diff --git a/src/circuit.js b/src/circuit.js index c0e0363..9955140 100644 --- a/src/circuit.js +++ b/src/circuit.js @@ -71,9 +71,6 @@ export class HeadlessCircuit { shutdown() { this.stopListening(); } - displayOn(elem) { - return this.makePaper(elem, this._graph); - } makeGraph(data, subcircuits) { const graph = new joint.dia.Graph(); this.listenTo(graph, 'change:buttonState', function(gate, sig) { diff --git a/src/index.js b/src/index.js index c8cb2d9..5cb3fb7 100644 --- a/src/index.js +++ b/src/index.js @@ -44,6 +44,9 @@ export class Circuit extends HeadlessCircuit { super.shutdown(); this.stop(); } + displayOn(elem) { + return this.makePaper(elem, this._graph); + } makePaper(elem, graph) { const paper = new joint.dia.Paper({ el: elem,