X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/7a654f8d43fdb43d78b63d90528bed6e86b608cc..refs/heads/master:/docs/source/Mask.html diff --git a/docs/source/Mask.html b/docs/source/Mask.html index 68f9b290..6bcaeb8b 100644 --- a/docs/source/Mask.html +++ b/docs/source/Mask.html @@ -1,5 +1,22 @@ -Sencha Documentation Project
/**
- * @class Ext.chart.Mask
+
+
+
+  
+  The source code
+  
+  
+  
+  
+
+
+  
/**
+ * @class Ext.chart.Mask
  *
  * Defines a mask for a chart's series.
  * The 'chart' member must be set prior to rendering.
@@ -31,9 +48,13 @@
  * a handle to a mask instance from the chart object. The `chart.mask` element is a
  * `Ext.Panel`.
  * 
- * @constructor
  */
 Ext.define('Ext.chart.Mask', {
+    require: ['Ext.chart.MaskLayer'],
+    /**
+     * Creates new Mask.
+     * @param {Object} config (optional) Config object.
+     */
     constructor: function(config) {
         var me = this;
 
@@ -176,12 +197,7 @@ Ext.define('Ext.chart.Mask', {
                 width: abs(width),
                 height: abs(height)
             };
-            me.mask.updateBox({
-                x: posX - abs(width),
-                y: posY - abs(height),
-                width: abs(width),
-                height: abs(height)
-            });
+            me.mask.updateBox(me.maskSelection);
             me.mask.show();
             me.maskSprite.setAttributes({
                 hidden: true    
@@ -215,4 +231,6 @@ Ext.define('Ext.chart.Mask', {
         me.maskSprite.hide(true);
     }
 });
-    
\ No newline at end of file +
+ +