nl_tokens: Gets the x y coordinates specified by the anchor position on the element .
pl_tokens: function ( anchor , local , size ) { //<debug warn> Ext . Logger . deprecate ( "getAnchorXY() is no longer available for Ext.Element. Please see Ext.Component#showBy() " + "to do anchoring at Component level instead" , this ) ; //</debug> //Passing a different size is useful for pre-calculating anchors, //especially for anchored animations that change the el size. anchor = ( anchor || "tl" ) . toLowerCase ( ) ; size = <mask> || { } ; var me = this , vp = me . dom == document . body || me . dom == document , width = size . width || vp ? window . innerWidth : me . getWidth ( ) , height = size . height || vp ? window . innerHeight : me . getHeight ( ) , xy , rnd = Math . round , myXY = me . getXY ( ) , extraX = vp ? 0 : ! local ? myXY [ 0 ] : 0 , extraY = vp ? 0 : ! local ? myXY [ 1 ] : 0 , hash = { c : [ rnd ( width * 0.5 ) , rnd ( height * 0.5 ) ] , t : [ rnd ( width * 0.5 ) , 0 ] , l : [ 0 , rnd ( height * 0.5 ) ] , r : [ width , rnd ( height * 0.5 ) ] , b : [ rnd ( width * 0.5 ) , height ] , tl : [ 0 , 0 ] , bl : [ 0 , height ] , br : [ width , height ] , tr : [ width , 0 ] } ; xy = hash [ anchor ] ; return [ xy [ 0 ] + extraX , xy [ 1 ] + extraY ] ; }