
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-zoomable-ui
Advanced tools
Make your HTML elements and React components zoomable, and build interesting zoomable UIs. Supports zooming and panning via touch and mouse interactions.
Pressable component that can distinguish between panning, tapping, and long-tapping. It can also be used to implement more advanced interactions like dragging.Tested and works on:
Not tested on, but ideally should work:
Not supported:
Please send me issues if you run into problems.
https://aarondail.github.io/react-zoomable-ui/example/
html,
body,
#root {
height: 100%;
width: 100%;
overflow: hidden;
}
#root {
position: relative;
}
import React from 'react';
import ReactDOM from 'react-dom';
import { Space } from 'react-zoomable-ui';
function App() {
return (
<Space>
<h1>Howdy</h1>
<div>Try panning an zooming</div>
</Space>
);
}
ReactDOM.render(<App />, document.getElementById('root'));
import { Space } from 'react-zoomable-ui';
import mountain from "./mountain.jpg";
const imageWidth = 1280;
const imageHeight = 960;
function ZoomableImage() {
return (
<div style={{ width: 300, height: 300, position: "relative" }}>
<Space
style={{ border: "solid 1px black" }}
onCreate={viewPort => {
viewPort.setBounds({ x: [0, imageWidth], y: [0, imageHeight] });
viewPort.camera.centerFitAreaIntoView({
left: 0,
top: 0,
width: imageWidth,
height: imageHeight
});
}}
>
<img src={mountain} width={imageWidth} height={imageHeight} alt="A Mountain" />
</Space>
</div>
FAQs
React library for building zoomable UI.
We found that react-zoomable-ui demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.