@atlaskit/editor-core
Version:
A package contains Atlassian editor core functionality
24 lines • 626 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
function textAlign(alignment, display) {
if (display !== 'block') {
return 'left';
}
return alignment;
}
exports.textAlign = textAlign;
function float(alignment, display) {
if (display === 'block') {
return 'none';
}
return alignment === 'right' ? 'right' : 'left';
}
exports.float = float;
function clear(alignment, display) {
if (display === 'block') {
return 'both';
}
return alignment === 'center' ? 'both' : alignment;
}
exports.clear = clear;
//# sourceMappingURL=single-image.js.map