You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

dragresize

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dragresize

A ReactJS component to render a dragresize layer. ##Installation Install dragresize with [npm](https://www.npmjs.com/):

1.1.3
latest
npm
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

#dragresize A ReactJS component to render a dragresize layer. ##Installation Install dragresize with npm:

$ npm install dragresize --save

For CommonJS users:

import Dragresize from 'dragresize';

##Example Run:

$ npm install; npm start

##Props

NameTypedefaultDescription
elmXNumber10Required. The layer X axis.
elmYNumber10Required. The layer Y axis.
elmWNumber100Required. The layer width.
elmHNumber 150Required. The layer height.
isDragBooleantrue是否可拖拽.
isResizeBoolean true是否可缩放.
isRatioBoolean false是否按比例缩放.
isCheckedBoolean true是否选中.
minLeftNumbernullDrag Scope
minTopNumbernullDrag Scope
maxLeftNumber nullDrag Scope
maxTopNumber nullDrag Scope
minWidthNumber 10Resize Scope
minHeightNumber 10Resize Scope
maxWidthNumber nullResize Scope
maxHeightNumber nullResize Scope
onMouseDown FunctionnullMouseDown Callback
onMouseMoveFunction nullMouseMove Callback
onResizeFunction nullResize Callback

FAQs

Package last updated on 03 Sep 2016

Did you know?

Socket

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