etDOMNode());
F=F||G.parentNode;
if(!F){return console.error("Not doing anything, parentNode not found."),l
}var D=this._getDataFromNode(G,E),C=F.offsetWidth,A=F.offsetHeight;
E=D.mode;
if("none"!=E){var B=D.a.width,z=D.a.height,o=B/z,b=C/A,y;
"fill"===E?y=o>b?A/z:C/B:"fit"===E&&(y=o<b?A/z:C/B);
!D.d&&("fit"==E&&1<y)&&(y=1);
B=Math.floor(B*y);
y=Math.floor(z*y);
var i,x;
"fill"===E?(i=Math.min(Math.max(C/2-B*D.c.x,C-B),0),x=Math.min(Math.max(A/2-y*D.c.y,A-y),0)):"fit"===E&&(x=D.e,i=x.left?0:x.right?C-B:B<C?