@wordpress/components
Version:
UI components for WordPress.
48 lines (42 loc) • 1.23 kB
JavaScript
;
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = FocalPointPickerGrid;
var _element = require("@wordpress/element");
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _focalPointPickerStyle = require("./styles/focal-point-picker-style");
/**
* Internal dependencies
*/
function FocalPointPickerGrid(_ref) {
let {
bounds,
...props
} = _ref;
return (0, _element.createElement)(_focalPointPickerStyle.GridView, (0, _extends2.default)({}, props, {
className: "components-focal-point-picker__grid",
style: {
width: bounds.width,
height: bounds.height
}
}), (0, _element.createElement)(_focalPointPickerStyle.GridLineX, {
style: {
top: '33%'
}
}), (0, _element.createElement)(_focalPointPickerStyle.GridLineX, {
style: {
top: '66%'
}
}), (0, _element.createElement)(_focalPointPickerStyle.GridLineY, {
style: {
left: '33%'
}
}), (0, _element.createElement)(_focalPointPickerStyle.GridLineY, {
style: {
left: '66%'
}
}));
}
//# sourceMappingURL=grid.js.map