Skip to content

Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.

Merge branch 'dev' of https://github.com/dream-num/univer into dev

dream-num97f9de8f0577
diff --cc packages/base-render/src/Component/Docs/Block/Paragraph/Bullet.ts
index 9d0f426e53,70735a2e31..41988e997d
--- a/packages/base-render/src/Component/Docs/Block/Paragraph/Bullet.ts
+++ b/packages/base-render/src/Component/Docs/Block/Paragraph/Bullet.ts
@@@ -1,13 -1,13 +1,13 @@@
- import { Context, IBullet, ILists, INestingLevel, ITextStyle, Nullable } from '@univer/core';
-import { SheetContext, IBullet, ILists, INestingLevel, ITextStyle } from '@univer/core';
++import { SheetContext, IBullet, ILists, INestingLevel, ITextStyle, Nullable } from '@univer/core';
import { FontCache, getFontStyleString, IDocumentSkeletonBullet, IFontLocale } from '../../../..';
import { getBulletOrderedSymbol } from '.';
export function dealWidthBullet(
bullet?: IBullet,
lists?: ILists,
- listLevelAncestors?: IDocumentSkeletonBullet[],
+ listLevelAncestors?: Array<Nullable<IDocumentSkeletonBullet>>,
fontLocale?: IFontLocale,
- context?: Context
+ context?: SheetContext
): IDocumentSkeletonBullet | undefined {
if (!bullet || !lists) {
return;
@@@ -62,13 -59,13 +62,13 @@@ function _getBulletSke
listId: string,
nestingLevel: number,
nestings: INestingLevel[],
- listLevelAncestors?: IDocumentSkeletonBullet[],
+ listLevelAncestors?: Array<Nullable<IDocumentSkeletonBullet>>,
textStyleConfig?: ITextStyle,
fontLocale?: IFontLocale,
- context?: Context
+ context?: SheetContext
): IDocumentSkeletonBullet {
const nesting = nestings[nestingLevel];
- const { bulletAlignment, glyphFormat, textStyle: textStyleFirst, startNumber, glyphType, glyphSymbol } = nesting;
+ const { bulletAlignment, glyphFormat, textStyle: textStyleFirst, startNumber, glyphType, glyphSymbol, indentFirstLine, hanging, indentStart } = nesting;
const textStyle = { ...textStyleConfig, ...textStyleFirst };
@@@ -102,13 -96,7 +102,13 @@@
};
}
-function __generateOrderedListSymbol(glyphFormat: string, nestings: INestingLevel[], listLevelAncestors?: IDocumentSkeletonBullet[], context?: SheetContext) {
+function __generateOrderedListSymbol(
+ glyphFormat: string,
+ nestingLevel: number,
+ nestings: INestingLevel[],
+ listLevelAncestors?: Array<Nullable<IDocumentSkeletonBullet>>,
- context?: Context
++ context?: SheetContext
+) {
// const indexNumber = startNumber + startIndex;
// parse <prefix>%[nestingLevelMinusOne]<suffix>, return symbolContent
// <w:lvl w:ilvl="0">
diff --cc packages/base-render/src/Component/Docs/Block/Paragraph/Paragraph.ts
index 3ef4fbd191,ce988049fb..534309ab11
--- a/packages/base-render/src/Component/Docs/Block/Paragraph/Paragraph.ts
+++ b/packages/base-render/src/Component/Docs/Block/Paragraph/Paragraph.ts
@@@ -1,4 -1,4 +1,15 @@@
- import { ColumnSeparatorType, Context, IBullet, IDrawing, IDrawings, IElementsOrder, IParagraph, Nullable, ParagraphElementType, PositionedObjectLayoutType } from '@univer/core';
-import { ColumnSeparatorType, SheetContext, IBullet, IDrawing, IDrawings, IElementsOrder, IParagraph, ParagraphElementType, PositionedObjectLayoutType } from '@univer/core';
++import {
++ ColumnSeparatorType,
++ SheetContext,
++ IBullet,
++ IDrawing,
++ IDrawings,
++ IElementsOrder,
++ IParagraph,
++ Nullable,
++ ParagraphElementType,
++ PositionedObjectLayoutType,
++} from '@univer/core';
import { dealWidthBullet, dealWidthInlineDrawing, dealWidthTextRun } from '.';
import { createSkeletonPage, getLastNotFullColumnInfo, setColumnFullState } from '../..';
import {