From f389f174481df676c841ebcc87a7b8b313921bbc Mon Sep 17 00:00:00 2001 From: Sunil Shetye Date: Mon, 17 Sep 2018 16:11:31 +0530 Subject: add importset and getContainer to combined.js --- js/Electrical/ConstantVoltage.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'js/Electrical/ConstantVoltage.js') diff --git a/js/Electrical/ConstantVoltage.js b/js/Electrical/ConstantVoltage.js index d1a1efb9..c37c72e6 100644 --- a/js/Electrical/ConstantVoltage.js +++ b/js/Electrical/ConstantVoltage.js @@ -54,4 +54,10 @@ function ConstantVoltage() { ConstantVoltage.prototype.get_popup_title = function ConstantVoltage() { return this.set_param_popup_title; } + ConstantVoltage.prototype.importset = function ConstantVoltage() { + var graphics = this.x.graphics; + var ary = getData(graphics.exprs); + this.V = ary[0]; + } + ConstantVoltage.prototype.getContainer = function ConstantVoltage() { return new BasicBlock(this.x); } } -- cgit