Socket
Socket
Sign inDemoInstall

uxxu-invoices

Package Overview
Dependencies
109
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    uxxu-invoices

A To create invoices


Version published
Maintainers
1
Created

Readme

Source

react-zoom-pan

npm MIT License Travis codecov Codacy Badge downloads

A react component that enables you to add pan,zoom,resize and rotation functionality to your application

screencast

About

React-zoom-pan is a container component that has zoom and pan functionality as well as adding resize,move,and rotation capabilities to any child element .

The component is capable of:

  • Can handle thousands of elements .
  • Pan Viewport
  • Move elements
  • Resize elements.
  • Rotate elements.
  • Zoom.
  • Wheel zoom.
  • Fully customisable elements.

demo

To play with a live demo .

Backers

Support us with a monthly donation and help us continue our activities. [Become a backer]

Installation

npm install react-zoom-pan

Getting started

Using this component is really easy, Import the ZoomPan component,add the ZoomPan to your render method and add whatever other component inside the ZoomPan container. And that's all. Now all the components inside the container can be move,resize and rotate, you also can use your mouse wheel to zoom and pan.

import React, { Component } from 'react';
import ZoomPan from 'react-zoom-pan';

import './App.css';

export default class App extends Component {
  constructor(props) {
    super(props);
  }

  render() {
    return (
      <div className="app-container">
        <div className="flow-container">
          <ZoomPan>
            <div x={800} y={50} w={200} h={50}>
              container 1
            </div>
            <div x={100} y={250} w={200} h={50}>
              container 2
            </div>
          </ZoomPan>
        </div>
      </div>
    );
  }
}

Element Configuration

To set the dimensions like (x,y) positions or (width,height) on the children documents you can set the following properties:

nameDescriptions
yThe y coordinate of the top point of the element
wThe width of the element
hThe height of the element

Events

PropertyparamsDescriptions
onSelectItemstringtriggered when an element is selected
onChangestringtriggered when an element change
onAddItemstringtriggered when an element is added

FAQs

Last updated on 12 Oct 2021

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc