Graph search for element by element's name in jointJS
<p>I have a problem in Rappid/jointJS</p>

<p>I have in stencil.js 4 shapes(2 basic.Circle and 2 basic.Rect) with names START(basic.Circle), END(basic.Circle), Activity(basic.Rect) and Workitem( basic.Rect)  and <strong>I want</strong> in my main.js <strong>from all my graph to get the basic shape with name(I mean with attrs text ) "Activity".</strong></p>

<p>This is the Stencil description for "Activity" :</p>

<pre><code>new joint.shapes.basic.Rect({ size: { width: 5, height: 3 },
attrs: {
    rect: {
         rx: 2, ry: 2, width: 50, height: 30,
         fill: '#0000FF'
       },
       text: { text: 'Activity', fill: '#ffffff', 'font-size': 10, 
       stroke: '#000000', 'stroke-width': 0 }
     }
}), 
</code></pre>

<p>How wil I get it? The only way I can search in my graph so far is if a cell has type basic.Circle(use of <code>get('type') === 'basic.Circle')</code>). but with type Circle I have two items:Activity and Workitem. </p>

<p>Is it so difficult to search for the graph element with name : "Activity"?</p>

<p>Thank you in advance</p>