All Projects → conradlo → react-pinch-and-zoom

conradlo / react-pinch-and-zoom

Licence: MIT License
A react container component with pinch-to-zoom gesture interaction.

Programming Languages

CSS
56736 projects
typescript
32286 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to react-pinch-and-zoom

react-quick-pinch-zoom
A react component that providing multi-touch gestures for zooming and dragging on any DOM element.
Stars: ✭ 124 (+275.76%)
Mutual labels:  react-component, pinch-to-zoom
React Prismazoom
A pan and zoom component for React, using CSS transformations.
Stars: ✭ 29 (-12.12%)
Mutual labels:  react-component, pinch-to-zoom
react-duotone
React Duotone Component
Stars: ✭ 26 (-21.21%)
Mutual labels:  react-component
react-tabllist
React-based customizable style table or list components that support event and callback functions.
Stars: ✭ 20 (-39.39%)
Mutual labels:  react-component
react-super-treeview
👏 Finally, a React Treeview component which is customizable on every level
Stars: ✭ 98 (+196.97%)
Mutual labels:  react-component
react-text-more-less
📃React component to show more text or show less
Stars: ✭ 16 (-51.52%)
Mutual labels:  react-component
reactjs-portfolio
Welcome to my portfolio react.js repository page.
Stars: ✭ 109 (+230.3%)
Mutual labels:  react-component
react-video-players
📺 Library of React video player components that offer a consistent interface and callback system for Vimeo, YouTube and the <video> tag. Along with a handy higher order component for building your own 😉
Stars: ✭ 13 (-60.61%)
Mutual labels:  react-component
dsccodecollab.github.io
Official website of the coding culture
Stars: ✭ 12 (-63.64%)
Mutual labels:  react-component
auto-ui
凹凸 UI 组件
Stars: ✭ 13 (-60.61%)
Mutual labels:  react-component
TNImageView-Android
Android Library for making scale-able and rotatable image views or giving this power to your own image view. This repo has been depreciated.
Stars: ✭ 18 (-45.45%)
Mutual labels:  pinch-to-zoom
light-ui
A lightly React UI library
Stars: ✭ 38 (+15.15%)
Mutual labels:  react-component
react-daterange-picker
A react date range picker to using @material-ui. Live Demo: https://flippingbitss.github.io/react-daterange-picker/
Stars: ✭ 85 (+157.58%)
Mutual labels:  react-component
rc-charts
一个基于BizCharts的图表库
Stars: ✭ 22 (-33.33%)
Mutual labels:  react-component
react-middle-ellipsis
Truncate a long string in the middle, instead of the end.
Stars: ✭ 44 (+33.33%)
Mutual labels:  react-component
react-hotkey-tooltip
A global Hotkey provider with built in tooltip for React
Stars: ✭ 34 (+3.03%)
Mutual labels:  react-component
termy-the-terminal
Web-based terminal powered by React
Stars: ✭ 43 (+30.3%)
Mutual labels:  react-component
react-infinity-menu
A react component that displays an unlimited deep menu
Stars: ✭ 59 (+78.79%)
Mutual labels:  react-component
react-star-ratings
A customizable svg star rating component for selecting x stars or visualizing x stars
Stars: ✭ 128 (+287.88%)
Mutual labels:  react-component
react-contentful
📰 A React component library that makes it super simple to compose Contentful content into your sites and applications.
Stars: ✭ 58 (+75.76%)
Mutual labels:  react-component

license

React Pinch and Zoom

A react container component with pinch-to-zoom gesture interaction.

Demo

Getting Started

Installing

  1. Install this package as dependency

    # pwd: ~/project/dir
    $ npm install react-pinch-and-zoom
  2. Import the component

    import PinchToZoom from 'react-pinch-and-zoom';
  3. Wrap the pinch-able component inside PinchToZoom component

    render() {
      return (
        <div className="container">
          <PinchToZoom>
            <img src={...}/> // child node should have intrinsic size
          </PinchToZoom>
        </div>
      );
    }

Project structure

./react-pinch-and-zoom (master)
├── docs               // compiled github demo page
├── lib                // compiled react component in commonjs module (git ignored)
├── package.json
├── server.js          // config local development server
└── src
    ├── PinchToZoom    // source code of react-pinch-and-zoom
    └── demo           // source code of github demo page

Develop on local machine

  1. Pull this repository
    # pwd: ~/development/dir
    $ git pull https://github.com/conradlo/react-pinch-and-zoom.git
  2. Install dependency
    $ cd react-pinch-and-zoom
    # pwd: ~/development/dir/react-pinch-and-zoom
    $ npm install
  3. Start local development server
    # pwd: ~/development/dir/react-pinch-and-zoom
    $ npm start
  4. Visit localhost:3000 and edit src/PinchToZoom/*
  5. Consult package.json for more npm script tasks

Production build

run npm run build will:

  1. transpile the component's source code /lib
  2. build and bundle the Github page /docs
# pwd: ~/development/dir/react-pinch-and-zoom
$ npm run build

Built With

Contributing

Please refer to CONTRIBUTING.md for details on code of conduct, and the process for submitting pull requests.

Versioning

This project uses SemVer for versioning. For the versions available, see the tags on this repository.

License

see the LICENSE file for details

Acknowledgments

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].