if (width == 320) { parent.nManipulation.bringToFront(); parent.nManipulation.setVisible(true); parent.nManipulation.setAttribute("x", this.x); parent.nManipulation.setAttribute("y", this.y); } if (this.highlighted == true) { parent.nManipulation.setAttribute("x", this.x); } if (this.highlighted == true) { parent.nManipulation.setAttribute("y", this.y); } if (this.highlighted == true) { if (canvas.leftp.state == "CLOSED") { this.anm_width_in.doStart(); this.anm_height_in.doStart(); } else { this.anm_width_out.doStart(); this.anm_height_out.doStart(); parent.nManipulation.setVisible(false); } } //for some reason, the roundrect doesn't redraw when dimensions chang drawStructure(); drawStructure(); this.highlighted = true; inside.setAttribute("backgroundStartColor", nodehi); inside.setAttribute("backgroundStopColor", nodehi); inside.setAttribute("borderColor", nodehib); if (canvas.leftp.state == "CLOSED") { this.anm_width_in.doStart(); this.anm_height_in.doStart(); } inside.drawStructure(); parent.nManipulation.setVisible(false); this.highlighted = false; inside.setAttribute("backgroundStartColor", nodeblue); inside.setAttribute("backgroundStopColor", nodeblue); inside.setAttribute("borderColor", nodedarkblue); if (canvas.leftp.state == "CLOSED") { this.anm_width_out.doStart(); this.anm_height_out.doStart(); } inside.drawStructure();