function () {
        // Must update after view transform updated
        var rawTransformMatrix = this._rawTransformable.getLocalTransform();
        var roamTransform = this._roamTransformable;
        var defaultCenter = this.getDefaultCenter();
        var center = this.getCenter();
        var zoom = this.getZoom();

        center = vector.applyTransform([], center, rawTransformMatrix);
        defaultCenter = vector.applyTransform([], defaultCenter, rawTransformMatrix);

        roamTransform.origin = center;
        roamTransform.position = [
            defaultCenter[0] - center[0],
            defaultCenter[1] - center[1]
        ];
        roamTransform.scale = [zoom, zoom];

        this._updateTransform();
    }
function () {
        // Must update after view transform updated
        var rawTransformMatrix = this._rawTransformable.getLocalTransform();
        var roamTransform = this._roamTransformable;
        var defaultCenter = this.getDefaultCenter();
        var center = this.getCenter();
        var zoom = this.getZoom();

        center = vector.applyTransform([], center, rawTransformMatrix);
        defaultCenter = vector.applyTransform([], defaultCenter, rawTransformMatrix);

        roamTransform.origin = center;
        roamTransform.position = [
            defaultCenter[0] - center[0],
            defaultCenter[1] - center[1]
        ];
        roamTransform.scale = [zoom, zoom];

        this._updateTransform();
    }
function ( ) { // Must update after view transform updated var rawTransformMatrix = this . _rawTransformable . getLocalTransform ( ) ; var roamTransform = this . _roamTransformable ; var defaultCenter = this . getDefaultCenter ( ) ; var center = this . getCenter ( ) ; var zoom = this . getZoom ( ) ; center = vector . applyTransform ( [ ] , center , rawTransformMatrix ) ; defaultCenter = vector . applyTransform ( [ ] , defaultCenter , rawTransformMatrix ) ; roamTransform . origin = center ; roamTransform . position = [ defaultCenter [ 0 ] - center [ 0 ] , defaultCenter [ 1 ] - center [ 1 ] ] ; roamTransform . scale = [ zoom , zoom ] ; this . _updateTransform ( ) ; }
Remove roam
Remove roam
Update view transform