UNPKG

@wordpress/block-library

Version:
12 lines (11 loc) 351 B
"use strict"; 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