let BaseNode=require("../Utils/BaseNode").BaseNode,GraphUtils=require("../Utils/GraphUtils").GraphUtils,APJS=require("../../../amazingpro");class CGVertexToRect extends BaseNode{constructor(){super()}getOutput(t){if(this.inputs[0]){var e=this.inputs[0]();if(this.inputs[1]){var s=this.inputs[1]();if(!(s.x<=e.x||s.y<=e.y))return this.outputs[t]=GraphUtils.getUpdatedValue("Rect",this.outputs[t],e.x,e.y,s.x-e.x,s.y-e.y),this.outputs[t]}}}}exports.CGVertexToRect=CGVertexToRect;