@helpscout/artboard
Version:
A tool kit for React UI development and design
25 lines • 1.32 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var react_redux_1 = require("react-redux");
var Artboard_actions_1 = require("../Artboard.actions");
var Resizer_1 = require("../../Resizer");
var mapStateToProps = function (state) {
var artboardHeight = state.artboardHeight, artboardWidth = state.artboardWidth, defaultWidth = state.defaultWidth, defaultHeight = state.defaultHeight, height = state.height, width = state.width, minWidth = state.minWidth, minHeight = state.minHeight, maxWidth = state.maxWidth, maxHeight = state.maxHeight, withResponsiveHeight = state.withResponsiveHeight, withResponsiveWidth = state.withResponsiveWidth;
return {
defaultWidth: artboardWidth || defaultWidth,
defaultHeight: artboardHeight || defaultHeight,
height: artboardHeight || height,
width: artboardWidth || width,
minWidth: minWidth,
minHeight: minHeight,
maxWidth: maxWidth,
maxHeight: maxHeight,
withResponsiveHeight: withResponsiveHeight,
withResponsiveWidth: withResponsiveWidth,
};
};
var mapDispatchToProps = {
onResizeStop: Artboard_actions_1.onResize,
};
exports.default = react_redux_1.connect(mapStateToProps, mapDispatchToProps)(Resizer_1.default);
//# sourceMappingURL=Artboard.Resizer.js.map