JoinNode.js 547 B

123456789101112131415161718192021
  1. /**
  2. * Created by jacky on 2016/7/18.
  3. */
  4. import joinSVG from './svg/join.svg';
  5. import BaseNode from './BaseNode.js';
  6. export default class JoinNode extends BaseNode{
  7. getSvgIcon(){
  8. return joinSVG;
  9. }
  10. toXML(){
  11. const json=this.toJSON();
  12. json.type="JoinNode";
  13. const nodeName=this.getNodeName(json.type);
  14. const nodeProps=this.getXMLNodeBaseProps(json);
  15. let xml=`<${nodeName} ${nodeProps}>`;
  16. xml+=this.getFromConnectionsXML();
  17. xml+=`</${nodeName}>`;
  18. return xml;
  19. }
  20. }