Git Product home page Git Product logo

react-svg-drag-and-select's Introduction

React-svg-drag-and-select

A SVG playground to drag and select shape elements.

Travis Codecov Status Github Tag node npm downloads npm

Dependency Status devDependency Status peerDependency Status Greenkeeper badge prettier license

Install

$ yarn add react-svg-drag-and-select

Usage

import SVGContainer from 'react-svg-drag-and-select';

<SVGContainer
  width={300}
  height={300}
  style={{ backgroundColor: 'aliceblue' }}
  onSelectChange={this.onSelectChange}
  onItemsChange={this.onItemsChange}
  items={items}
  isMovable={isMovable}
  isSelectable={!isMovable}
/>

Please see the story example file for more detail.

API

Demo

Technology Stacks

  • Storybook: ๐Ÿ““ Interactive development & testing environment for React, React-Native, Vue UI components.
  • PureScript: A strongly-typed functional programming language that compiles to JavaScript.
  • Travis: CI

Developer Guide

Requirements

  • node >= 8.6.0
  • npm >= 5.3.0
  • yarn >= 1.1.0
$ git clone https://github.com/evenchange4/react-svg-drag-and-select.git
$ npm install -g purescript pulp bower # For PureScript 
$ yarn install --pure-lockfile
$ ./node_modules/.bin/bower install

$ yarn start
$ yarn run build

Test

$ yarn run format
$ yarn run eslint
$ yarn run test:watch

Github release / NPM release

$ npm version patch
$ git push

CONTRIBUTING

  • โ‡„ Pull requests and โ˜… Stars are always welcome.
  • For bugs and feature requests, please create an issue.
  • Pull requests must be accompanied by passing automated tests ($ yarn run test).

MIT: http://michaelhsu.mit-license.org

react-svg-drag-and-select's People

Contributors

evenchange4 avatar greenkeeper[bot] avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.