Lines Matching full:zoom
14 …zoom-control { cursor: pointer; fill: black; fill-opacity: 0.333; } .svg-pan-zoom-control:hover { …
17 // Zoom Group
19 zoomGroup.setAttribute('id', 'svg-pan-zoom-controls');
21 zoomGroup.setAttribute('class', 'svg-pan-zoom-control');
37 zoomIn.setAttribute('id', 'svg-pan-zoom-zoom-in');
39 zoomIn.setAttribute('class', 'svg-pan-zoom-control');
47 zoomInBackground.setAttribute('class', 'svg-pan-zoom-control-background');
52 zoomInShape.setAttribute('class', 'svg-pan-zoom-control-element');
61 resetPanZoomControl.setAttribute('id', 'svg-pan-zoom-reset-pan-zoom');
63 resetPanZoomControl.setAttribute('class', 'svg-pan-zoom-control');
71 resetPanZoomControlBackground.setAttribute('class', 'svg-pan-zoom-control-background');
76 resetPanZoomControlShape1.setAttribute('class', 'svg-pan-zoom-control-element');
81 resetPanZoomControlShape2.setAttribute('class', 'svg-pan-zoom-control-element');
88 // zoom out
90 zoomOut.setAttribute('id', 'svg-pan-zoom-zoom-out');
92 zoomOut.setAttribute('class', 'svg-pan-zoom-control');
100 zoomOutBackground.setAttribute('class', 'svg-pan-zoom-control-background');
105 zoomOutShape.setAttribute('class', 'svg-pan-zoom-control-element');
158 // NOTE: clientX and clientY are not in Mozilla example, but are needed for svg-pan-zoom
207 …ert icons to give user an option in addition to mouse events to control pan/zoom (default disabled)
209 , zoomScaleSensitivity: 0.2 // Zoom sensitivity
210 , minZoom: 0.5 // Minimum Zoom level
211 , maxZoom: 10 // Maximum Zoom level
237 // Create zoom and pan cache
290 // Cache zoom level
430 …, zoom = Math.pow(1 + this.options.zoomScaleSensitivity, (-1) * delta); // multiplying by neg. 1 s…
432 this.zoomAtPoint(svg, relativeMousePoint, zoom)
436 * Zoom in at an SVG point
440 * @param {float} zoomScale Number representing how much to zoom
443 … Otherwise, zoomScale is treated as a multiplied (e.g. 1.10 would zoom in 10%)
467 // Cache zoom level
498 * Get zoom scale/level
500 * @return {float} zoom scale
507 this.getPublicInstance().zoom(this.initialCTM.a)
510 // Cache zoom level
580 if (targetClass.indexOf('svg-pan-zoom-control') > -1) {
588 … zoomFactor = 1/((1 + this.options.zoomScaleSensitivity) * 2) // zoom out when shift key pressed
664 this.getPublicInstance().zoom(newScale)
669 * Does not zoom/fit image
766 // Zoom and Control Icons
793 // Zoom scale and bounds
795 , setMinZoom: function(zoom) {that.options.minZoom = zoom} argument
796 , setMaxZoom: function(zoom) {that.options.maxZoom = zoom} argument
797 // Zoom event
801 , zoom: function(scale) {