zooniverse / AnnoTate

Full text transcription app for the Tate Britain
http://anno.tate.org.uk
Other
12 stars 2 forks source link

Add zoom controls #26

Closed rogerhutchings closed 9 years ago

perry commented 9 years ago
                    svg.zoomIn = function () {
                        svg.panZoom.zoomIn();
                    };

                    svg.zoomOut = function () {
                        svg.panZoom.zoomOut();
                    };

                    svg.reset = function () {
                        svg.panZoom.reset();
                    };
            <div class="btn-group-vertical log-controls" role="group">
                <button class="btn btn-default" ng-click="svg.reset()">
                    <span class="glyphicon glyphicon-resize-full"></span>
                </button>
                <button class="btn btn-default" ng-click="svg.zoomIn()">
                    <span class="glyphicon glyphicon-zoom-in"></span>
                </button>
                <button class="btn btn-default" ng-click="svg.zoomOut()">
                    <span class="glyphicon glyphicon-zoom-out"></span>
                </button>
            </div>
perry commented 9 years ago

I think the reset can replace your centre method.

ggdhines-zz commented 9 years ago

Need to include a statement in the tutorial about to do this.