src/graphics/dom-layer.js
function() {
        var style = this._div.style,
            view = this._viewportRect();

        var scale = view._scale;
        var dx = -view._x * scale;
        var dy = -view._y * scale;

        style.transform = style[Crafty.support.prefix + "Transform"] =
            "scale(" + scale + ", " + scale + ")";
        style.left = Math.round(dx) + "px";
        style.top = Math.round(dy) + "px";
        style.zIndex = this.options.z;
    }
function() {
        var style = this._div.style,
            view = this._viewportRect();

        var scale = view._scale;
        var dx = -view._x * scale;
        var dy = -view._y * scale;

        style.transform = style[Crafty.support.prefix + "Transform"] =
            "scale(" + scale + ", " + scale + ")";
        style.left = Math.round(dx) + "px";
        style.top = Math.round(dy) + "px";
        style.zIndex = this.options.z;
    }
function ( ) { var style = this . _div . style , view = this . _viewportRect ( ) ; var scale = view . _scale ; var dx = - view . _x * scale ; var dy = - view . _y * scale ; style . transform = style [ Crafty . support . prefix + "Transform" ] = "scale(" + scale + ", " + scale + ")" ; style . left = Math . round ( dx ) + "px" ; style . top = Math . round ( dy ) + "px" ; style . zIndex = this . options . z ; }
Sets the viewport position and scale Called by render when the dirtyViewport flag is set
Sets the viewport position and scale Called by render when the dirtyViewport flag is set