1 Ext.data.JsonP.Ext_draw_Sprite({
15 "href": "Sprite2.html#Ext-draw-Sprite-cfg-fill",
17 "filename": "/mnt/ebs/nightly/git/SDK/platform/src/draw/Sprite.js",
20 "owner": "Ext.draw.Sprite",
21 "doc": "<p>The fill color</p>\n",
23 "html_filename": "Sprite2.html"
31 "href": "Sprite2.html#Ext-draw-Sprite-cfg-font",
32 "shortDoc": "Used with text type sprites. ...",
34 "filename": "/mnt/ebs/nightly/git/SDK/platform/src/draw/Sprite.js",
37 "owner": "Ext.draw.Sprite",
38 "doc": "<p>Used with text type sprites. The full font description. Uses the same syntax as the CSS font parameter</p>\n",
40 "html_filename": "Sprite2.html"
43 "type": "String/Array",
48 "href": "Sprite2.html#Ext-draw-Sprite-cfg-group",
49 "shortDoc": "The group that this sprite belongs to, or an array of groups. ...",
51 "filename": "/mnt/ebs/nightly/git/SDK/platform/src/draw/Sprite.js",
54 "owner": "Ext.draw.Sprite",
55 "doc": "<p>The group that this sprite belongs to, or an array of groups. Only relevant when added to a\n<a href=\"#/api/Ext.draw.Surface\" rel=\"Ext.draw.Surface\" class=\"docClass\">Ext.draw.Surface</a></p>\n",
57 "html_filename": "Sprite2.html"
65 "href": "Sprite2.html#Ext-draw-Sprite-cfg-height",
67 "filename": "/mnt/ebs/nightly/git/SDK/platform/src/draw/Sprite.js",
70 "owner": "Ext.draw.Sprite",
71 "doc": "<p>Used in rectangle sprites, the height of the rectangle</p>\n",
73 "html_filename": "Sprite2.html"
81 "href": "Sprite2.html#Ext-draw-Sprite-cfg-opacity",
83 "filename": "/mnt/ebs/nightly/git/SDK/platform/src/draw/Sprite.js",
86 "owner": "Ext.draw.Sprite",
87 "doc": "<p>The opacity of the sprite</p>\n",
89 "html_filename": "Sprite2.html"
97 "href": "Sprite2.html#Ext-draw-Sprite-cfg-path",
99 "filename": "/mnt/ebs/nightly/git/SDK/platform/src/draw/Sprite.js",
102 "owner": "Ext.draw.Sprite",
103 "doc": "<p>Used in path sprites, the path of the sprite written in SVG-like path syntax</p>\n",
105 "html_filename": "Sprite2.html"
113 "href": "Sprite2.html#Ext-draw-Sprite-cfg-radius",
115 "filename": "/mnt/ebs/nightly/git/SDK/platform/src/draw/Sprite.js",
118 "owner": "Ext.draw.Sprite",
119 "doc": "<p>Used in circle sprites, the radius of the circle</p>\n",
121 "html_filename": "Sprite2.html"
129 "href": "Sprite2.html#Ext-draw-Sprite-cfg-size",
131 "filename": "/mnt/ebs/nightly/git/SDK/platform/src/draw/Sprite.js",
134 "owner": "Ext.draw.Sprite",
135 "doc": "<p>Used in square sprites, the dimension of the square</p>\n",
137 "html_filename": "Sprite2.html"
145 "href": "Sprite2.html#Ext-draw-Sprite-cfg-stroke",
147 "filename": "/mnt/ebs/nightly/git/SDK/platform/src/draw/Sprite.js",
150 "owner": "Ext.draw.Sprite",
151 "doc": "<p>-width The width of the stroke</p>\n",
153 "html_filename": "Sprite2.html"
161 "href": "Sprite2.html#Ext-draw-Sprite-cfg-text",
162 "shortDoc": "Used with text type sprites. ...",
164 "filename": "/mnt/ebs/nightly/git/SDK/platform/src/draw/Sprite.js",
167 "owner": "Ext.draw.Sprite",
168 "doc": "<p>Used with text type sprites. The text itself</p>\n",
170 "html_filename": "Sprite2.html"
178 "href": "Sprite2.html#Ext-draw-Sprite-cfg-type",
179 "shortDoc": "The type of the sprite. ...",
181 "filename": "/mnt/ebs/nightly/git/SDK/platform/src/draw/Sprite.js",
184 "owner": "Ext.draw.Sprite",
185 "doc": "<p>The type of the sprite. Possible options are 'circle', 'path', 'rect', 'text', 'square', 'image'</p>\n",
187 "html_filename": "Sprite2.html"
195 "href": "Sprite2.html#Ext-draw-Sprite-cfg-width",
197 "filename": "/mnt/ebs/nightly/git/SDK/platform/src/draw/Sprite.js",
200 "owner": "Ext.draw.Sprite",
201 "doc": "<p>Used in rectangle sprites, the width of the rectangle</p>\n",
203 "html_filename": "Sprite2.html"
211 "href": "Sprite2.html#Ext-draw-Sprite-cfg-x",
213 "filename": "/mnt/ebs/nightly/git/SDK/platform/src/draw/Sprite.js",
216 "owner": "Ext.draw.Sprite",
217 "doc": "<p>The position along the x-axis</p>\n",
219 "html_filename": "Sprite2.html"
227 "href": "Sprite2.html#Ext-draw-Sprite-cfg-y",
229 "filename": "/mnt/ebs/nightly/git/SDK/platform/src/draw/Sprite.js",
232 "owner": "Ext.draw.Sprite",
233 "doc": "<p>The position along the y-axis</p>\n",
235 "html_filename": "Sprite2.html"
244 "href": "Sprite2.html#Ext-draw-Sprite-method-addCls",
245 "shortDoc": "Adds one or more CSS classes to the element. ...",
247 "filename": "/mnt/ebs/nightly/git/SDK/platform/src/draw/Sprite.js",
251 "type": "String/Array",
253 "doc": "<p>The CSS class to add, or an array of classes</p>\n",
258 "owner": "Ext.draw.Sprite",
259 "doc": "<p>Adds one or more CSS classes to the element. Duplicate classes are automatically filtered out. Note this method\nis severly limited in VML.</p>\n",
262 "type": "Ext.draw.Sprite",
263 "doc": "<p>this</p>\n"
265 "html_filename": "Sprite2.html"
272 "href": "Sprite2.html#Ext-draw-Sprite-method-destroy",
273 "shortDoc": "Removes the sprite and clears all listeners. ...",
275 "filename": "/mnt/ebs/nightly/git/SDK/platform/src/draw/Sprite.js",
281 "owner": "Ext.draw.Sprite",
282 "doc": "<p>Removes the sprite and clears all listeners.</p>\n",
288 "html_filename": "Sprite2.html"
295 "href": "Sprite2.html#Ext-draw-Sprite-method-getBBox",
296 "shortDoc": "Retrieve the bounding box of the sprite. ...",
298 "filename": "/mnt/ebs/nightly/git/SDK/platform/src/draw/Sprite.js",
304 "owner": "Ext.draw.Sprite",
305 "doc": "<p>Retrieve the bounding box of the sprite. This will be returned as an object with x, y, width, and height properties.</p>\n",
309 "doc": "<p>bbox</p>\n"
311 "html_filename": "Sprite2.html"
318 "href": "Sprite2.html#Ext-draw-Sprite-method-hide",
319 "shortDoc": "Hide the sprite. ...",
321 "filename": "/mnt/ebs/nightly/git/SDK/platform/src/draw/Sprite.js",
327 "doc": "<p>Flag to immediatly draw the change.</p>\n",
332 "owner": "Ext.draw.Sprite",
333 "doc": "<p>Hide the sprite.</p>\n",
336 "type": "Ext.draw.Sprite",
337 "doc": "<p>this</p>\n"
339 "html_filename": "Sprite2.html"
346 "href": "Sprite2.html#Ext-draw-Sprite-method-redraw",
347 "shortDoc": "Redraw the sprite. ...",
349 "filename": "/mnt/ebs/nightly/git/SDK/platform/src/draw/Sprite.js",
355 "owner": "Ext.draw.Sprite",
356 "doc": "<p>Redraw the sprite.</p>\n",
359 "type": "Ext.draw.Sprite",
360 "doc": "<p>this</p>\n"
362 "html_filename": "Sprite2.html"
369 "href": "Sprite2.html#Ext-draw-Sprite-method-remove",
370 "shortDoc": "Remove the sprite. ...",
372 "filename": "/mnt/ebs/nightly/git/SDK/platform/src/draw/Sprite.js",
378 "owner": "Ext.draw.Sprite",
379 "doc": "<p>Remove the sprite.</p>\n",
385 "html_filename": "Sprite2.html"
392 "href": "Sprite2.html#Ext-draw-Sprite-method-removeCls",
393 "shortDoc": "Removes one or more CSS classes from the element. ...",
395 "filename": "/mnt/ebs/nightly/git/SDK/platform/src/draw/Sprite.js",
399 "type": "String/Array",
401 "doc": "<p>The CSS class to remove, or an array of classes. Note this method\nis severly limited in VML.</p>\n",
406 "owner": "Ext.draw.Sprite",
407 "doc": "<p>Removes one or more CSS classes from the element.</p>\n",
410 "type": "Ext.draw.Sprite",
411 "doc": "<p>this</p>\n"
413 "html_filename": "Sprite2.html"
420 "href": "Sprite2.html#Ext-draw-Sprite-method-setAttributes",
421 "shortDoc": "Change the attributes of the sprite. ...",
423 "filename": "/mnt/ebs/nightly/git/SDK/platform/src/draw/Sprite.js",
429 "doc": "<p>attributes to be changed on the sprite.</p>\n",
435 "doc": "<p>Flag to immediatly draw the change.</p>\n",
439 "name": "setAttributes",
440 "owner": "Ext.draw.Sprite",
441 "doc": "<p>Change the attributes of the sprite.</p>\n",
444 "type": "Ext.draw.Sprite",
445 "doc": "<p>this</p>\n"
447 "html_filename": "Sprite2.html"
454 "href": "Sprite2.html#Ext-draw-Sprite-method-setStyle",
455 "shortDoc": "Wrapper for setting style properties, also takes single object parameter of multiple styles. ...",
457 "filename": "/mnt/ebs/nightly/git/SDK/platform/src/draw/Sprite.js",
461 "type": "String/Object",
463 "doc": "<p>The style property to be set, or an object of multiple styles.</p>\n",
469 "doc": "<p>(optional) The value to apply to the given property, or null if an object was passed.</p>\n",
474 "owner": "Ext.draw.Sprite",
475 "doc": "<p>Wrapper for setting style properties, also takes single object parameter of multiple styles.</p>\n",
478 "type": "Ext.draw.Sprite",
479 "doc": "<p>this</p>\n"
481 "html_filename": "Sprite2.html"
488 "href": "Sprite2.html#Ext-draw-Sprite-method-show",
489 "shortDoc": "Show the sprite. ...",
491 "filename": "/mnt/ebs/nightly/git/SDK/platform/src/draw/Sprite.js",
497 "doc": "<p>Flag to immediatly draw the change.</p>\n",
502 "owner": "Ext.draw.Sprite",
503 "doc": "<p>Show the sprite.</p>\n",
506 "type": "Ext.draw.Sprite",
507 "doc": "<p>this</p>\n"
509 "html_filename": "Sprite2.html"
514 "type": "Ext.dd.DragSource.",
518 "tagname": "property",
519 "href": "Sprite2.html#Ext-draw-Sprite-property-dd",
520 "shortDoc": "If this Sprite is configured draggable, this property will contain\nan instance of Ext.dd.DragSource which handles dra...",
522 "filename": "/mnt/ebs/nightly/git/SDK/platform/src/draw/Sprite.js",
525 "owner": "Ext.draw.Sprite",
526 "doc": "<p>If this Sprite is configured draggable, this property will contain\nan instance of <a href=\"#/api/Ext.dd.DragSource\" rel=\"Ext.dd.DragSource\" class=\"docClass\">Ext.dd.DragSource</a> which handles dragging the Sprite.</p>\n\n\n<p>The developer must provide implementations of the abstract methods of <a href=\"#/api/Ext.dd.DragSource\" rel=\"Ext.dd.DragSource\" class=\"docClass\">Ext.dd.DragSource</a>\nin order to supply behaviour for each stage of the drag/drop process. See draggable.</p>\n",
528 "html_filename": "Sprite2.html"
551 "href": "Sprite2.html#Ext-draw-Sprite",
558 "filename": "/mnt/ebs/nightly/git/SDK/platform/src/draw/Sprite.js",
560 "alternateClassNames": [
563 "name": "Ext.draw.Sprite",
564 "doc": "<p>A Sprite is an object rendered in a Drawing surface. There are different options and types of sprites.\nThe configuration of a Sprite is an object with the following properties:</p>\n\n<ul>\n<li><strong>type</strong> - (String) The type of the sprite. Possible options are 'circle', 'path', 'rect', 'text', 'square', 'image'.</li>\n<li><strong>group</strong> - (String/Array) The group that this sprite belongs to, or an array of groups. Only relevant when added to a <a href=\"#/api/Ext.draw.Surface\" rel=\"Ext.draw.Surface\" class=\"docClass\">Ext.draw.Surface</a>.</li>\n<li><strong>width</strong> - (Number) Used in rectangle sprites, the width of the rectangle.</li>\n<li><strong>height</strong> - (Number) Used in rectangle sprites, the height of the rectangle.</li>\n<li><strong>size</strong> - (Number) Used in square sprites, the dimension of the square.</li>\n<li><strong>radius</strong> - (Number) Used in circle sprites, the radius of the circle.</li>\n<li><strong>x</strong> - (Number) The position along the x-axis.</li>\n<li><strong>y</strong> - (Number) The position along the y-axis.</li>\n<li><strong>path</strong> - (Array) Used in path sprites, the path of the sprite written in SVG-like path syntax.</li>\n<li><strong>opacity</strong> - (Number) The opacity of the sprite.</li>\n<li><strong>fill</strong> - (String) The fill color.</li>\n<li><strong>stroke</strong> - (String) The stroke color.</li>\n<li><strong>stroke-width</strong> - (Number) The width of the stroke.</li>\n<li><strong>font</strong> - (String) Used with text type sprites. The full font description. Uses the same syntax as the CSS <code>font</code> parameter.</li>\n<li><strong>text</strong> - (String) Used with text type sprites. The text itself.</li>\n<li><strong>translate</strong> - (Object) Defines a translation for the Sprite. There's more information on this property below.</li>\n<li><strong>rotate</strong> - (Object) Defines a rotation for the Sprite. There's more information on this property below.</li>\n<li><strong>scale</strong> - (Object) Defines a scaling for the Sprite. There's more information on this property below.</li>\n</ul>\n\n\n<h2>Translation</h2>\n\n<p>For translate, the configuration object contains x and y attributes that indicate where to\ntranslate the object. For example:</p>\n\n<pre><code>sprite.setAttributes({\n translate: {\n x: 10,\n y: 10\n }\n}, true);\n</code></pre>\n\n<h2>Rotation</h2>\n\n<p>For rotation, the configuration object contains x and y attributes for the center of the rotation (which are optional),\nand a <code>degrees</code> attribute that specifies the rotation in degrees. For example:</p>\n\n<pre><code>sprite.setAttributes({\n rotate: {\n degrees: 90\n }\n}, true);\n</code></pre>\n\n<p>That example will create a 90 degrees rotation using the centroid of the Sprite as center of rotation, whereas:</p>\n\n<pre><code>sprite.setAttributes({\n rotate: {\n x: 0,\n y: 0,\n degrees: 90\n }\n}, true);\n</code></pre>\n\n<p>will create a rotation around the <code>(0, 0)</code> axis.</p>\n\n<h2>Scaling</h2>\n\n<p>For scaling, the configuration object contains x and y attributes for the x-axis and y-axis scaling. For example:</p>\n\n<pre><code>sprite.setAttributes({\n scale: {\n x: 10,\n y: 3\n }\n}, true);\n</code></pre>\n\n<p>You can also specify the center of scaling by adding <code>cx</code> and <code>cy</code> as properties:</p>\n\n<pre><code>sprite.setAttributes({\n scale: {\n cx: 0,\n cy: 0,\n x: 10,\n y: 3\n }\n}, true);\n</code></pre>\n\n<p>That last example will scale a sprite taking as centers of scaling the <code>(0, 0)</code> coordinate.</p>\n\n<h2>Creating and adding a Sprite to a Surface</h2>\n\n<p>Sprites can be created with a reference to a <a href=\"#/api/Ext.draw.Surface\" rel=\"Ext.draw.Surface\" class=\"docClass\">Ext.draw.Surface</a></p>\n\n<pre><code> var drawComponent = Ext.create('Ext.draw.Component', options here...);\n\n var sprite = Ext.create('Ext.draw.Sprite', {\n type: 'circle',\n fill: '#ff0',\n surface: drawComponent.surface,\n radius: 5\n });\n</code></pre>\n\n<p>Sprites can also be added to the surface as a configuration object:</p>\n\n<pre><code> var sprite = drawComponent.surface.add({\n type: 'circle',\n fill: '#ff0',\n radius: 5\n });\n</code></pre>\n\n<p>In order to properly apply properties and render the sprite we have to\n<code>show</code> the sprite setting the option <code>redraw</code> to <code>true</code>:</p>\n\n<pre><code> sprite.show(true);\n</code></pre>\n\n<p>The constructor configuration object of the Sprite can also be used and passed into the <a href=\"#/api/Ext.draw.Surface\" rel=\"Ext.draw.Surface\" class=\"docClass\">Ext.draw.Surface</a>\nadd method to append a new sprite to the canvas. For example:</p>\n\n<pre><code>drawComponent.surface.add({\n type: 'circle',\n fill: '#ffc',\n radius: 100,\n x: 100,\n y: 100\n});\n</code></pre>\n",
572 "html_filename": "Sprite2.html",