PDA

View Full Version : Using a mask on a draw component



juger
13 Mar 2013, 11:32 AM
I have a draw component based on an SVG I created, and I want to be able to use a mask on it. Is that possible?

dawesi
13 Mar 2013, 8:22 PM
As the Draw clas is a component you can use setLoading() method on the Draw component.

http://docs.sencha.com/ext-js/4-2/#!/api/Ext.Component-method-setLoading

juger
14 Mar 2013, 12:53 PM
That's not what I meant, but I scrapped using ExtJS's draw components because it wasn't working in IE and moved to the Canvas in HTML5. I mean 'mask' as in the masks used in graphics editing, where you can define a region to be masked and then manipulate it without messing with the actual image itself. Thanks for the response though