GithubHelp home page GithubHelp logo

smallpotato37 / mb-sketch-ruler Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mockingbot/mb-sketch-ruler

0.0 1.0 0.0 2.85 MB

A sketch like ruler in javascript

JavaScript 96.26% HTML 1.25% CSS 2.48%

mb-sketch-ruler's Introduction

mb-sketch-ruler

A sketch like ruler in javascript

NPM JavaScript Style Guide

Live Demo

Click here

Install

npm install --save mb-sketch-ruler

Usage

import React, { PureComponent } from 'react'

import ReactRuler from 'mb-sketch-ruler'

class Example extends PureComponent {
  render () {
    return (
      <ReactRuler
        thick={thick}
        scale={scale}
        width={582}
        height={482}
        startX={startX}
        startY={startY}
        shadow={shadow}
        horLineArr={h}
        verLineArr={v}
        handleLine={this.handleLine}
        cornerActive={true}
        onCornerClick={this.handleCornerClick}

        // 右键菜单props
        isOpenMenuFeature={true}
        handleShowRuler={this.handleShowRuler}
        isShowReferLine={isShowReferLine}
        handleShowReferLine={this.handleShowReferLine}
      />
    )
  }
}

License

MIT © MockingBot

###© 2016 MockingBot

mb-sketch-ruler's People

Contributors

iny7 avatar finelycao avatar yzhang avatar

Watchers

James Cloos 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.