Comparing version 6.0.0 to 6.0.1
'use strict'; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
@@ -236,13 +234,2 @@ | ||
var TouchEvent2 = function (_TouchEvent) { | ||
inherits(TouchEvent2, _TouchEvent); | ||
function TouchEvent2() { | ||
classCallCheck(this, TouchEvent2); | ||
return possibleConstructorReturn(this, (TouchEvent2.__proto__ || Object.getPrototypeOf(TouchEvent2)).apply(this, arguments)); | ||
} | ||
return TouchEvent2; | ||
}(TouchEvent); | ||
var boxStyle = { | ||
@@ -263,5 +250,5 @@ width: 'auto', | ||
var _this2 = possibleConstructorReturn(this, (Rnd.__proto__ || Object.getPrototypeOf(Rnd)).call(this, props)); | ||
var _this = possibleConstructorReturn(this, (Rnd.__proto__ || Object.getPrototypeOf(Rnd)).call(this, props)); | ||
_this2.state = { | ||
_this.state = { | ||
disableDragging: false, | ||
@@ -283,9 +270,9 @@ z: props.z, | ||
}; | ||
_this2.onResizeStart = _this2.onResizeStart.bind(_this2); | ||
_this2.onResize = _this2.onResize.bind(_this2); | ||
_this2.onResizeStop = _this2.onResizeStop.bind(_this2); | ||
_this2.onDragStart = _this2.onDragStart.bind(_this2); | ||
_this2.onDrag = _this2.onDrag.bind(_this2); | ||
_this2.onDragStop = _this2.onDragStop.bind(_this2); | ||
return _this2; | ||
_this.onResizeStart = _this.onResizeStart.bind(_this); | ||
_this.onResize = _this.onResize.bind(_this); | ||
_this.onResizeStop = _this.onResizeStop.bind(_this); | ||
_this.onDragStart = _this.onDragStart.bind(_this); | ||
_this.onDrag = _this.onDrag.bind(_this); | ||
_this.onDragStop = _this.onDragStop.bind(_this); | ||
return _this; | ||
} | ||
@@ -488,3 +475,3 @@ | ||
value: function render() { | ||
var _this3 = this; | ||
var _this2 = this; | ||
@@ -501,3 +488,3 @@ var cursorStyle = this.props.disableDragging || this.props.dragHandleClassName ? { cursor: 'normal' } : { cursor: 'move' }; | ||
ref: function ref(c) { | ||
_this3.draggable = c; | ||
_this2.draggable = c; | ||
}, | ||
@@ -519,3 +506,3 @@ handle: this.props.dragHandleClassName, | ||
ref: function ref(c) { | ||
_this3.resizable = c; | ||
_this2.resizable = c; | ||
}, | ||
@@ -557,4 +544,3 @@ enable: this.props.enableResizing, | ||
exports.TouchEvent2 = TouchEvent2; | ||
exports['default'] = Rnd; | ||
module.exports = Rnd; | ||
//# sourceMappingURL=index.es5.js.map |
@@ -230,13 +230,2 @@ import { Component, createElement } from 'react'; | ||
var TouchEvent2 = function (_TouchEvent) { | ||
inherits(TouchEvent2, _TouchEvent); | ||
function TouchEvent2() { | ||
classCallCheck(this, TouchEvent2); | ||
return possibleConstructorReturn(this, (TouchEvent2.__proto__ || Object.getPrototypeOf(TouchEvent2)).apply(this, arguments)); | ||
} | ||
return TouchEvent2; | ||
}(TouchEvent); | ||
var boxStyle = { | ||
@@ -257,5 +246,5 @@ width: 'auto', | ||
var _this2 = possibleConstructorReturn(this, (Rnd.__proto__ || Object.getPrototypeOf(Rnd)).call(this, props)); | ||
var _this = possibleConstructorReturn(this, (Rnd.__proto__ || Object.getPrototypeOf(Rnd)).call(this, props)); | ||
_this2.state = { | ||
_this.state = { | ||
disableDragging: false, | ||
@@ -277,9 +266,9 @@ z: props.z, | ||
}; | ||
_this2.onResizeStart = _this2.onResizeStart.bind(_this2); | ||
_this2.onResize = _this2.onResize.bind(_this2); | ||
_this2.onResizeStop = _this2.onResizeStop.bind(_this2); | ||
_this2.onDragStart = _this2.onDragStart.bind(_this2); | ||
_this2.onDrag = _this2.onDrag.bind(_this2); | ||
_this2.onDragStop = _this2.onDragStop.bind(_this2); | ||
return _this2; | ||
_this.onResizeStart = _this.onResizeStart.bind(_this); | ||
_this.onResize = _this.onResize.bind(_this); | ||
_this.onResizeStop = _this.onResizeStop.bind(_this); | ||
_this.onDragStart = _this.onDragStart.bind(_this); | ||
_this.onDrag = _this.onDrag.bind(_this); | ||
_this.onDragStop = _this.onDragStop.bind(_this); | ||
return _this; | ||
} | ||
@@ -482,3 +471,3 @@ | ||
value: function render() { | ||
var _this3 = this; | ||
var _this2 = this; | ||
@@ -495,3 +484,3 @@ var cursorStyle = this.props.disableDragging || this.props.dragHandleClassName ? { cursor: 'normal' } : { cursor: 'move' }; | ||
ref: function ref(c) { | ||
_this3.draggable = c; | ||
_this2.draggable = c; | ||
}, | ||
@@ -513,3 +502,3 @@ handle: this.props.dragHandleClassName, | ||
ref: function ref(c) { | ||
_this3.resizable = c; | ||
_this2.resizable = c; | ||
}, | ||
@@ -551,4 +540,3 @@ enable: this.props.enableResizing, | ||
export { TouchEvent2 }; | ||
export default Rnd; | ||
//# sourceMappingURL=index.js.map |
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('react-dom'), require('react-draggable'), require('re-resizable')) : | ||
typeof define === 'function' && define.amd ? define(['exports', 'react', 'react-dom', 'react-draggable', 're-resizable'], factory) : | ||
(factory((global['react-rnd'] = {}),global.React,global.reactDom,global.Draggable,global.Resizable)); | ||
}(this, (function (exports,React,reactDom,Draggable,Resizable) { 'use strict'; | ||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('react'), require('react-dom'), require('react-draggable'), require('re-resizable')) : | ||
typeof define === 'function' && define.amd ? define(['react', 'react-dom', 'react-draggable', 're-resizable'], factory) : | ||
(global['react-rnd'] = factory(global.React,global.reactDom,global.Draggable,global.Resizable)); | ||
}(this, (function (React,reactDom,Draggable,Resizable) { 'use strict'; | ||
@@ -234,13 +234,2 @@ Draggable = Draggable && Draggable.hasOwnProperty('default') ? Draggable['default'] : Draggable; | ||
var TouchEvent2 = function (_TouchEvent) { | ||
inherits(TouchEvent2, _TouchEvent); | ||
function TouchEvent2() { | ||
classCallCheck(this, TouchEvent2); | ||
return possibleConstructorReturn(this, (TouchEvent2.__proto__ || Object.getPrototypeOf(TouchEvent2)).apply(this, arguments)); | ||
} | ||
return TouchEvent2; | ||
}(TouchEvent); | ||
var boxStyle = { | ||
@@ -261,5 +250,5 @@ width: 'auto', | ||
var _this2 = possibleConstructorReturn(this, (Rnd.__proto__ || Object.getPrototypeOf(Rnd)).call(this, props)); | ||
var _this = possibleConstructorReturn(this, (Rnd.__proto__ || Object.getPrototypeOf(Rnd)).call(this, props)); | ||
_this2.state = { | ||
_this.state = { | ||
disableDragging: false, | ||
@@ -281,9 +270,9 @@ z: props.z, | ||
}; | ||
_this2.onResizeStart = _this2.onResizeStart.bind(_this2); | ||
_this2.onResize = _this2.onResize.bind(_this2); | ||
_this2.onResizeStop = _this2.onResizeStop.bind(_this2); | ||
_this2.onDragStart = _this2.onDragStart.bind(_this2); | ||
_this2.onDrag = _this2.onDrag.bind(_this2); | ||
_this2.onDragStop = _this2.onDragStop.bind(_this2); | ||
return _this2; | ||
_this.onResizeStart = _this.onResizeStart.bind(_this); | ||
_this.onResize = _this.onResize.bind(_this); | ||
_this.onResizeStop = _this.onResizeStop.bind(_this); | ||
_this.onDragStart = _this.onDragStart.bind(_this); | ||
_this.onDrag = _this.onDrag.bind(_this); | ||
_this.onDragStop = _this.onDragStop.bind(_this); | ||
return _this; | ||
} | ||
@@ -486,3 +475,3 @@ | ||
value: function render() { | ||
var _this3 = this; | ||
var _this2 = this; | ||
@@ -499,3 +488,3 @@ var cursorStyle = this.props.disableDragging || this.props.dragHandleClassName ? { cursor: 'normal' } : { cursor: 'move' }; | ||
ref: function ref(c) { | ||
_this3.draggable = c; | ||
_this2.draggable = c; | ||
}, | ||
@@ -517,3 +506,3 @@ handle: this.props.dragHandleClassName, | ||
ref: function ref(c) { | ||
_this3.resizable = c; | ||
_this2.resizable = c; | ||
}, | ||
@@ -555,8 +544,5 @@ enable: this.props.enableResizing, | ||
exports.TouchEvent2 = TouchEvent2; | ||
exports['default'] = Rnd; | ||
return Rnd; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
}))); | ||
//# sourceMappingURL=react-rnd.umd.js.map |
{ | ||
"name": "react-rnd", | ||
"version": "6.0.0", | ||
"version": "6.0.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "title": "react-rnd", |
@@ -62,2 +62,6 @@ <p align="center"><img src ="https://github.com/bokuweb/react-rnd/blob/master/logo.png?raw=true" /></p> | ||
### Example | ||
You can try it on [WebpackBin](https://www.webpackbin.com/bins/-KtgCwfKgnXqQpQ31OD4) too. | ||
## Props | ||
@@ -421,2 +425,8 @@ | ||
## Contribute | ||
If you have a feature request, please add it as an issue or make a pull request. | ||
If you have a bug to report, please reproduce the bug in [WebpackBin](https://www.webpackbin.com/bins/-KtgCwfKgnXqQpQ31OD4) to help us easily isolate it. | ||
## Changelog | ||
@@ -423,0 +433,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
582
176732
1359