title: How to get custom element by id in JointJS
body: <p><strong>I want to get element by id and change position of that element</strong></p>
  
  <p>please find following code:</p>
  
  <pre><code>function addInNodes(x, y, text, ){
      inPortsMarkup += '&lt;g class="port port_0'  style="pointer-events: none" id="in_0" &gt;';
      inPortsMarkup += '&lt;rect height="12" width="2" y="5" x="'+ x +'" class="port-wire" fill="#253137" stroke-width="1" transform="rotate(-90)" style="pointer-events: none" /&gt;';
      inPortsMarkup += '&lt;circle port="'+ text +'" type="input" magnet="active" r="7" class="port-body" fill="#bcbcbc" stroke="#747474" stroke-width="1" transform="translate(-1,'+y+')" style="pointer-events: fill"/&gt;';
      inPortsMarkup += '&lt;/g&gt;';
  }
  </code></pre>
  
  <p>I have tried <code>var myElements = graph.getElements();</code> but its not working for me.</p>
  
  <p>Thanks in advance.</p>