src/coord/View.js
function () {
        // Rect before any transform
        var rawRect = this.getBoundingRect();
        var cx = rawRect.x + rawRect.width / 2;
        var cy = rawRect.y + rawRect.height / 2;

        return [cx, cy];
    }
function () {
        // Rect before any transform
        var rawRect = this.getBoundingRect();
        var cx = rawRect.x + rawRect.width / 2;
        var cy = rawRect.y + rawRect.height / 2;

        return [cx, cy];
    }
function ( ) { // Rect before any transform var rawRect = this . getBoundingRect ( ) ; var cx = rawRect . x + rawRect . width / 2 ; var cy = rawRect . y + rawRect . height / 2 ; return [ cx , cy ] ; }
Get default center without roam
Get default center without roam