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