@vericus/slate-kit-align
Version:
Plugins to provide a way to align blocks on slate
15 lines • 753 B
JavaScript
import getAlignBlocks, { getAlignBlocksInBlock } from "./getAlignBlocks";
import getAlignment from "./getAlignment";
import isAligned from "./isAligned";
import isAlignable from "./isAlignable";
function createUtils(opts) {
return {
getAlignBlocks: function (editor) { return getAlignBlocks(opts, editor); },
getAlignBlocksInBlock: function (editor, node) { return getAlignBlocksInBlock(opts, node); },
getAlignment: function (editor, block) { return getAlignment(opts, block); },
isAligned: function (editor, alignment) { return isAligned(opts, editor, alignment); },
isAlignable: function (editor) { return isAlignable(opts, editor); },
};
}
export default createUtils;
//# sourceMappingURL=index.js.map