@wordpress/block-library
Version:
Block library for the WordPress editor.
12 lines (11 loc) • 351 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.imageFillStyles = imageFillStyles;
function imageFillStyles(url, focalPoint) {
return url ? {
objectPosition: focalPoint ? `${Math.round(focalPoint.x * 100)}% ${Math.round(focalPoint.y * 100)}%` : `50% 50%`
} : {};
}
//# sourceMappingURL=image-fill.js.map
;