@eigenpal/docx-editor-core/prosemirror/commands/paragraph
Paragraph Formatting Commands — thin re-exports from extension system
Alignment, line spacing, indentation, lists, paragraph styles. All implementations live in extensions/; this file re-exports for backward compatibility.
Functions (19)
addTabStopfunctionSource ↗
declare function addTabStop(position: number, alignment?: TabStopAlignment, leader?: TabLeader): Command;applyStylefunctionSource ↗
declare function applyStyle(styleId: string, resolvedAttrs?: ResolvedStyleAttrs): Command;decreaseIndentfunctionSource ↗
declare function decreaseIndent(amount?: number): Command;getListInfofunctionSource ↗
declare function getListInfo(state: EditorState): {
numId: number;
ilvl: number;
} | null;getParagraphAlignmentfunctionSource ↗
declare function getParagraphAlignment(state: EditorState): ParagraphAlignment | null;getParagraphBidifunctionSource ↗
declare function getParagraphBidi(state: EditorState): boolean;getParagraphTabsfunctionSource ↗
declare function getParagraphTabs(state: EditorState): TabStop[] | null;getStyleIdfunctionSource ↗
declare function getStyleId(state: EditorState): string | null;increaseIndentfunctionSource ↗
declare function increaseIndent(amount?: number): Command;insertSectionBreakfunctionSource ↗
declare function insertSectionBreak(breakType: 'nextPage' | 'continuous' | 'oddPage' | 'evenPage'): Command;isInListfunctionSource ↗
declare function isInList(state: EditorState): boolean;removeTabStopfunctionSource ↗
declare function removeTabStop(position: number): Command;setAlignmentfunctionSource ↗
Paragraph Formatting Commands — thin re-exports from extension system
Alignment, line spacing, indentation, lists, paragraph styles. All implementations live in extensions/; this file re-exports for backward compatibility.
declare function setAlignment(alignment: ParagraphAlignment): Command;setIndentFirstLinefunctionSource ↗
declare function setIndentFirstLine(twips: number, hanging?: boolean): Command;setIndentLeftfunctionSource ↗
declare function setIndentLeft(twips: number): Command;setIndentRightfunctionSource ↗
declare function setIndentRight(twips: number): Command;setLineSpacingfunctionSource ↗
declare function setLineSpacing(value: number, rule?: LineSpacingRule): Command;setSpaceAfterfunctionSource ↗
declare function setSpaceAfter(twips: number): Command;setSpaceBeforefunctionSource ↗
declare function setSpaceBefore(twips: number): Command;Interfaces (1)
ResolvedStyleAttrsinterfaceSource ↗
interface ResolvedStyleAttrs| Member | Type | Summary |
|---|---|---|
| numbering? | NumberingMap | null | Numbering definitions from the document package. When the applied style carries a `w:numPr`, these resolve the numbering level into the list marker attrs (template, per-level formats, counter key) so the painter renders the style's numbering — e.g. "[Claim 1]" — instead of falling back to a plain decimal marker. |
| paragraphFormatting? | ParagraphFormatting | |
| runFormatting? | TextFormatting |
Variables (17)
alignCenterconstSource ↗
alignCenter: CommandalignJustifyconstSource ↗
alignJustify: CommandalignLeftconstSource ↗
alignLeft: CommandalignRightconstSource ↗
alignRight: CommandclearStyleconstSource ↗
clearStyle: CommanddecreaseListLevelconstSource ↗
decreaseListLevel: CommanddoubleSpacingconstSource ↗
doubleSpacing: CommandgenerateTOCconstSource ↗
generateTOC: CommandincreaseListLevelconstSource ↗
increaseListLevel: CommandoneAndHalfSpacingconstSource ↗
oneAndHalfSpacing: CommandremoveListconstSource ↗
removeList: CommandremoveSectionBreakconstSource ↗
removeSectionBreak: CommandsetLtrconstSource ↗
setLtr: CommandsetRtlconstSource ↗
setRtl: CommandsingleSpacingconstSource ↗
singleSpacing: CommandtoggleBulletListconstSource ↗
toggleBulletList: CommandtoggleNumberedListconstSource ↗
toggleNumberedList: Command