oasis-editor 0.0.30 → 0.0.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{OasisEditorApp-Bvkbr1KZ.js → OasisEditorApp-CeDQ_a8-.js} +54 -132
- package/dist/assets/{importDocxWorker-DVvaVtgj.js → importDocxWorker-C8ErVbAl.js} +1 -1
- package/dist/core/model/index.d.ts +1 -0
- package/dist/core/model/listNumbering.d.ts +5 -0
- package/dist/core/model/types/primitives.d.ts +10 -0
- package/dist/export/docx/docxTypes.d.ts +10 -3
- package/dist/export/pdf/draw/drawBlockList.d.ts +1 -1
- package/dist/export/pdf/draw/drawParagraph.d.ts +1 -1
- package/dist/export/pdf/draw/drawTable.d.ts +1 -1
- package/dist/export/pdf/draw/lists.d.ts +2 -2
- package/dist/import/docx/numbering.d.ts +19 -28
- package/dist/{index-BVAzjJsg.js → index-BYqaCJUC.js} +449 -414
- package/dist/oasis-editor.js +54 -54
- package/dist/oasis-editor.umd.cjs +4 -4
- package/dist/ui/canvas/listNumbering.d.ts +2 -1
- package/dist/ui/textMeasurement/indentation.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import { EditorDocument, EditorParagraphNode } from '../../core/model.js';
|
|
1
|
+
import { EditorDocument, EditorParagraphNode, buildListLabels } from '../../core/model.js';
|
|
2
2
|
|
|
3
3
|
export declare function resolveListPrefix(paragraph: EditorParagraphNode, document: EditorDocument): string;
|
|
4
|
+
export { buildListLabels };
|
|
@@ -8,5 +8,7 @@ export declare function getListIndentPx(paragraph: EditorParagraphNode): number;
|
|
|
8
8
|
* first-line text.
|
|
9
9
|
*/
|
|
10
10
|
export declare function getListLabelInset(paragraph: EditorParagraphNode, styles: Record<string, EditorNamedStyle> | undefined): number;
|
|
11
|
+
/** Positions a measured list label inside the hanging-indent marker box. */
|
|
12
|
+
export declare function getAlignedListLabelInset(paragraph: EditorParagraphNode, styles: Record<string, EditorNamedStyle> | undefined, textStart: number, labelWidth: number): number;
|
|
11
13
|
export declare function getAvailableWidth(paragraph: EditorParagraphNode, styles: Record<string, EditorNamedStyle> | undefined, contentWidth: number, isFirstLine: boolean): number;
|
|
12
14
|
export declare function getLineStartInset(paragraph: EditorParagraphNode, styles: Record<string, EditorNamedStyle> | undefined, isFirstLine: boolean): number;
|