Skip to main content
0 votes
0 answers
41 views

I have a page with a couple of SVG elements employing svg-pan-zoom, as well as text and images in the same page. I have successfully used hammer.js to implement a pinch-zoom on the SVG elements. On a ...
ACProctor's user avatar
  • 364
1 vote
1 answer
258 views

I am using this SVG Pan Zoom Library: https://github.com/bumbu/svg-pan-zoom I have prepared a CodePen for you: https://codepen.io/ItsBenedict/pen/vYMbjpK If you click on a category, the group should ...
ItsBenedict's user avatar
1 vote
0 answers
126 views

I am new to D3 so my knowledge of how it operates is very limited. I have this code that zooms in on a timeline that I changed from horizontal to vertical, so the y-axis has the dates. This code is in ...
Justin Farrugia's user avatar
1 vote
0 answers
58 views

I am trying to make a map that will contain markers at certain locations. The map is an svg file and the markers could be too. I am wondering what would be the best way to go to have pan and zoom ...
An29's user avatar
  • 53
1 vote
1 answer
216 views

I have a svg element, displayed in a normal div (fiddle here) window.panZoom = svgPanZoom('#limit-svg', { zoomEnabled: true, controlIconsEnabled: true, minZoom: 1, maxZoom: 10, beforePan: ...
Gustavo De Cinque Caléfi's user avatar
0 votes
1 answer
186 views

Expected Outcome: Unable to pan SVG if it is not zoomed and SVG remains centered. When zoomed, allow panning to its boundaries. Problem: Using this solution How to only allow pan within the bounds of ...
Joao Pereira's user avatar
1 vote
0 answers
243 views

In trying to get the SVG point from the mouse in my Blazor application, im doing this in razor page public async Task SvgElementOnMouseMove(MouseEventArgs e) { var point = jsInProcess3.Invoke<...
Tim Davis's user avatar
  • 561
0 votes
1 answer
170 views

I have been using svg-pan-zoom library successfully with my javascript app but I now need to refactor it to use requireJS. My util.js is: define([ 'baja!', 'jquery', '/file/WebWidgets/js/...
P.Ellis's user avatar
  • 65
4 votes
1 answer
2k views

I am using Panzoom JS to zoom in on a map. It is working just the way I need it for zooming in and out on mobile and desktop. When you click on an item on the map, I grab the x/y coordinates relative ...
Chris's user avatar
  • 879
1 vote
0 answers
82 views

I wanted to execute some additional code when the panzoom 'reset' option is selected by the end-user, but there is no setOnReset API. I was looking for a recommended way of executing custom code in ...
ACProctor's user avatar
  • 364
0 votes
1 answer
556 views

I have the shiny app below in which I want to pan and zoom the .svg. library(shiny) library(DiagrammeR) library(tidyverse) # probably don't need all of these: library(DiagrammeRsvg) library(svglite) ...
firmo23's user avatar
  • 8,546
0 votes
1 answer
2k views

I would like to use the circles within my SVG file to trigger a zoom in centred on the circle. I have got it working with a div acting as the trigger for the zoom but if I instead apply id="pin&...
Exploring's user avatar
0 votes
0 answers
218 views

I am stuck in applying zoom on the elements (directed graph) generated within the svg. The original code uses the d3js v3 library and is shown below: <!DOCTYPE html> <html> <head> &...
Osmel Bordiés López's user avatar
3 votes
1 answer
2k views

I have svg where I render seats of venue. All seats are grouped by sectors. I need on seat click event, zoom in those seats which are in that sector, when I click another sector it should zoom out and ...
andre1ka's user avatar
0 votes
1 answer
280 views

I want to test if the location of a particular SVG element is inside or outside of the currently visible pan-zoom region. If it's outside then I can pan to get it just inside the corresponding border. ...
ACProctor's user avatar
  • 364

15 30 50 per page
1
2 3 4 5
7