When I'm in overview window and zoom in, some part of the graph is not visible. I want to drag the graph so that I can see it at the zoomed in size.
I tried the "Center on graph" button, but it zooms out the graph and centers it on the screen. I tried the direct and drag tool, which doesn't seem to do anything. What to do to accomplish this?
I want to drag the node in upper left corner so that I can see what it connects to:
Right-click and drag (Gephi 0.9.1 for Mac).
To move the graph at a given level of zoom, you can right click.
The keyword was "navigation" :)
Happy work!
I figured out a way to do this with the mouse. If you want to zoom in on an area, you need to position your mouse over the area you want to see, and then use the scroll wheel to zoom in. So for the case above, zoom out until you can see everything, and then hover your mouse over the area you want to zoom in on (the upper left node in this case), and you scroll your mouse wheel to zoom. That will allow you to zoom in on an area without having to move the object on the canvas first.
Related
I am able to display a map on a page. However, when I scroll up or down the page with the mouse middle scroll button (Logitech mouse), the map zooms in and out. I hope to disable it.
How can I do it?
There's option for that, see mapNavigation.enableMouseWheelZoom.
I have this design here : http://imgur.com/XHMBUdj
I would like to allocate the left half of the screen(splitting vertically) to panning up and down for the blue bars and allocate the right half of the screen(splitting vertically) to panning up and down for the red bars.
I can already use UIPanGestureRecognizer, however, I just need help making the region in which if the user pans on the right side of the screen, "this" happens and if the user pans on the left side, "this" happens.
A friend of mine recommended using UIBezierPath. Could someone help me out? Code will be much appreciated!
I looks like it would be easier to have two UIPanGestureRecognizers.
In your view, you can add a subview that take up the left half on the screen that contains the blue bars and the microphone and add another subview that is on the right half of the screen containing the red bars and the music icon.
Then you can create two separate UIPanGestureRecognizers and add one to each of the views. Then each side will have its one recognizer that will take care of the side detection for you.
Is there a way to re-center the chart after a user has zoomed in\out or panned the chart? I would like to give the user the ability to be able to get the chart back to its original zoomed and panned view. Use case would be if they zoomed in to far or off of the chart line completely.
If you do renderer.setZoomButtonsVisible(true) you will see three buttons on the bottom right side of the screen. One of them does what you need.
Otherwise, you can call chartView.zoomReset() in order to programmatically trigger this.
is there a good way to make the container div expand to the left and top when a draggable is dragged outside of its borders?
When you drag to the right or down the container div is properly extended, and scrollbars appear as needed. Yet moving to left or top means that the draggable items has negative top / left position, so the container is not expanded.
Here's a fiddle that demonstrates the existing dragging behaviour: http://jsfiddle.net/NPC42/Un23w/1/, but this can also be seen on the official jQueryUI demos too (http://jqueryui.com/demos/draggable/#default).
I'd like to be able to expand to the top / left too :)
A brute-force approach would be to:
Reset all of the object's positions on the container div to that no negative top / left is required (including the object being dragged).
Change the scrolling position to make it look as if the objects are still on their spots.
But for many objects in the container this could cause a lot of flicker, or even slowdown, so I don't really want to go in that direction. Any suggestions are welcome!
The problem is that every html element has an absolute (0,0) origin coordinate in the top left corner. When you drag in that direction the coordinates for the dragable become negative. However the scrollbars can not become negative, their size can only grow in a positive direction.
I can imagine a custom scrollbars widget that can adjust in a negative direction when you drag below (0,0). Also try having a container inside of another container with the inner one move around so that all of the objects inside it don't have to be individually moved. I don't know of any in existence as it would be kinda weird to have a negative scroll offset.
When I make the mouse visible, it jitters in the middle of screen. Does anyone know what the problem might be? thanks.
update:
I can't move the mouse.. it just stays at the same point
Are you setting the mouse position anywhere in your code?
This sounds like the result of an implementation of some "free look" code that sets the mouse position to the centre of the window each frame (so it can read how far it travels and then move it back, to allow for continuous movement without hitting the edge).