Reactjs - How to assimilate slider and pinch pan function together? - reactjs

So, i've been trying to implement pinch pan function with slider in react js, i have gotten the value to pinch the image by, but ive no idea now to combine those two features to pinch the image by the value i get from slider.
enter image description here

Related

Make parts of a React Konva Image transparent given coordinates

I am working on a project where I need certain parts of an image to be transparent after the user selects certain coordinates on the image. I am using React Konva to display the user's selection and the image layers. I understand how I could make the polygon the user selected to be transparent, but how would I use those coordinates from the user's polygon to make the pixels on the image itself transparent?
I am fairly new to using ReactJS and front end developing in general so any help would be greatly appreciated.
Here is my codeSandbox with the basic idea of my code: https://codesandbox.io/s/test-transparency-quyn4x

Is it possible to change user's phone orientation using react?

I have the next question. I am developing a react application with some images. The user has the possibility to click and open a full-page image. Because the image's orientation is horizontal on the mobile, it does not look good. My idea is when the user clicks on the full page icon, the orientation of the phone becomes horizontal as is implemented on youtube. I tried to find some information about that, but I am not sure if it is even possible, I saw that only by using react native and developing mobile applications you can have access to the user's orientation of the screen. But maybe there are some methods to do in the browser? Thanks in advance.
It is not possible to change this from the web, however you could simply rotate the image and display it full screen. This has been done here:
CSS Rotate Portrait Image 90 Degrees and Make Image Full Screen

manual zoom in the enlarged image window

I would like to have the option of manual zoom in the enlarged image window on the mobile device. So that I can zoom into the displayed image within the Javascript frame. I do not want to zoom the whole web page. Is that possible? Or is there another Javascript that can do this?
It is not possible to zoom the enlarged image in Lightbox or Lightbox2. There is no such feature.
To do that, you should use a different zoom script, such as Magic Zoom Plus.

Cannot disable d3 topojson base map zooming on Ionic V5 App

I am trying to make the zooming functionality of a d3 topology map smoother on my app. The default zooming behavior are kind of lag a lot and mostly it conflicts with ionic touch events. I am trying to disable all default zooming features completely and will try to do it with zoom in/out buttons.. But it seems I cannot disable zoom.
Here is my markup
And here is my map code ...
Though I cannot pinch zoom on the map, but it seems I can zoom the svg by pinching the white area outside the map. I want to disable the pinch zoom completely so user cannot zoom it using touch.
You could put a div above the map, and give this div a transparent background and give it height and width as the map size, so when user touch the div it will give no effect since it is the div and not the map, and then you can do your zooming using 2 buttons (zoom in/ zoom out).

Enable pan and zoom in Sencha chart on desktop PC

I would like to pan the zoomed area in a sencha chart. Currently I'm only able to zoom in and out on the chart as you can see in this sample: Sample Chart. I'm using the app on a desktop PC.
At the moment there is no posibility to pan in the zoomed chart. I'm managed to get panning working but then zooming is not possible. Is there a way to get both? Is there a setting I'm missing?
Thanks in advance!
The PanZoom-object has a proberty called modeToggleButton. Getter methode returns a button, which can be added to the UI. Clicking on it toggles between panning and zooming in the chart.

Resources