mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-23 05:25:53 +08:00
init: the first public commit for AFFiNE
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import { AlignStyle } from '@toeverything/components/board-types';
|
||||
|
||||
const ALIGN_VALUES = {
|
||||
[AlignStyle.Start]: 'left',
|
||||
[AlignStyle.Middle]: 'center',
|
||||
[AlignStyle.End]: 'right',
|
||||
[AlignStyle.Justify]: 'justify',
|
||||
} as const;
|
||||
|
||||
export function getTextAlign(alignStyle: AlignStyle = AlignStyle.Start) {
|
||||
return ALIGN_VALUES[alignStyle];
|
||||
}
|
||||
Reference in New Issue
Block a user