X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/3789b528d8dd8aad4558e38e22d775bcab1cbd36..refs/heads/master:/docs/source/Mask.html diff --git a/docs/source/Mask.html b/docs/source/Mask.html index f9a0ee6e..6bcaeb8b 100644 --- a/docs/source/Mask.html +++ b/docs/source/Mask.html @@ -3,8 +3,8 @@ The source code - - + + @@ -15,8 +15,8 @@ -
/**
- * @class Ext.chart.Mask
+  
/**
+ * @class Ext.chart.Mask
  *
  * Defines a mask for a chart's series.
  * The 'chart' member must be set prior to rendering.
@@ -48,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;
 
@@ -193,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