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.

fix(render): resolve cycle ref

DR-Univer2fa12d3be6a8
diff --git a/packages/base-render/src/Basics/FontCache.ts b/packages/base-render/src/Basics/FontCache.ts
index c28ef80d19..b8636bd592 100644
--- a/packages/base-render/src/Basics/FontCache.ts
+++ b/packages/base-render/src/Basics/FontCache.ts
@@ -1,4 +1,6 @@
-import { DEFAULT_MEASURE_TEXT, IDocumentSkeletonBoundingBox, IDocumentSkeletonFontStyle, IMeasureTextCache } from '.';
+import { IDocumentSkeletonBoundingBox, IDocumentSkeletonFontStyle } from './IDocumentSkeletonCached';
+import { DEFAULT_MEASURE_TEXT } from './Const';
+import { IMeasureTextCache } from './Interfaces';
const getDefaultBaselineOffset = (fontSize: number) => ({
sbr: 0.5,
diff --git a/packages/base-render/src/Basics/Path2.ts b/packages/base-render/src/Basics/Path2.ts
index 0fae14140b..7a986f5a91 100644
--- a/packages/base-render/src/Basics/Path2.ts
+++ b/packages/base-render/src/Basics/Path2.ts
@@ -1,5 +1,5 @@
import { Nullable } from '@univer/core';
-import { Vector2 } from '.';
+import { Vector2 } from './Vector2';
export const INITIAL_Path2: Vector2[] = [new Vector2(0, 0), new Vector2(1, 1)];
diff --git a/packages/base-render/src/Basics/Vector2.ts b/packages/base-render/src/Basics/Vector2.ts
index bf769a1965..dcb59d97b7 100644
--- a/packages/base-render/src/Basics/Vector2.ts
+++ b/packages/base-render/src/Basics/Vector2.ts
@@ -1,4 +1,4 @@
-import { DeepImmutable, FloatArray } from '.';
+import { DeepImmutable, FloatArray } from './IEvents';
import { Transform } from './Transform';
export interface IPoint {
diff --git a/packages/base-render/src/Canvas.ts b/packages/base-render/src/Canvas.ts
index 7a971f55df..83348cd284 100644
--- a/packages/base-render/src/Canvas.ts
+++ b/packages/base-render/src/Canvas.ts
@@ -1,4 +1,4 @@
-import { createCanvasElement } from '.';
+import { createCanvasElement } from './Basics/Tools';
export interface IContext2D extends CanvasRenderingContext2D {
webkitBackingStorePixelRatio: number;
diff --git a/packages/base-render/src/Component/Docs/Block/Paragraph/InlineDrawing.ts b/packages/base-render/src/Component/Docs/Block/Paragraph/InlineDrawing.ts
index 378abc4e21..8666c10c63 100644
--- a/packages/base-render/src/Component/Docs/Block/Paragraph/InlineDrawing.ts
+++ b/packages/base-render/src/Component/Docs/Block/Paragraph/InlineDrawing.ts
@@ -1,5 +1,6 @@
import { IDrawing } from '@univer/core';
-import { IDocumentSkeletonPage, IFontLocale, IParagraphConfig, ISectionBreakConfig } from '../../../..';
+import { IDocumentSkeletonPage } from '../../../../Basics/IDocumentSkeletonCached';
+import { IFontLocale, IParagraphConfig, ISectionBreakConfig } from '../../../../Basics/Interfaces';
export function dealWidthInlineDrawing(
drawing: IDrawing,
diff --git a/packages/base-render/src/Component/Docs/Block/Paragraph/Paragraph.ts b/packages/base-render/src/Component/Docs/Block/Paragraph/Paragraph.ts
index 0f56949e29..348dfffe9b 100644
--- a/packages/base-render/src/Component/Docs/Block/Paragraph/Paragraph.ts
+++ b/packages/base-render/src/Component/Docs/Block/Paragraph/Paragraph.ts
@@ -10,17 +10,16 @@ import {
PositionedObjectLayoutType,
ContextBase,
} from '@univer/core';
-import { dealWidthBullet, dealWidthInlineDrawing, dealWidthTextRun } from '.';
-import { createSkeletonPage, getLastNotFullColumnInfo, setColumnFullState } from '../..';
-import {
- BreakType,
- IDocumentSkeletonBullet,
- IDocumentSkeletonDrawing,
- IDocumentSkeletonPage,
- IParagraphConfig,
- ISectionBreakConfig,
- ISkeletonResourceReference,
-} from '../../../..';
+import { dealWidthTextRun } from './TextRun';
+import { dealWidthBullet } from './Bullet';
+import { dealWidthInlineDrawing } from './InlineDrawing';
+
+import { getLastNotFullColumnInfo } from '../../Common/Tools';
+import { createSkeletonPage } from '../../Common/Page';
+import { setColumnFullState } from '../../Common/Section';
+
+import { BreakType, IDocumentSkeletonBullet, IDocumentSkeletonDrawing, IDocumentSkeletonPage, ISkeletonResourceReference } from '../../../../Basics/IDocumentSkeletonCached';
+import { IParagraphConfig, ISectionBreakConfig } from '../../../../Basics/Interfaces';
export function dealWidthParagraph(
blockId: string,
diff --git a/packages/base-render/src/Component/Docs/Block/Paragraph/TextRun.ts b/packages/base-render/src/Component/Docs/Block/Paragraph/TextRun.ts
index 3d951fc5bf..5629a335cb 100644
--- a/packages/base-render/src/Component/Docs/Block/Paragraph/TextRun.ts
+++ b/packages/base-render/src/Component/Docs/Block/Paragraph/TextRun.ts
@@ -1,16 +1,12 @@
import { BooleanNumber, GridType, HorizontalAlign, ITextRun, NamedStyleType, SpacingRule } from '@univer/core';
-import { calculateParagraphLayout, composeCharForLanguage } from '.';
-import {
- createSkeletonTabSpan,
- createSkeletonWordSpan,
- getCharSpaceApply,
- getFontStyleString,
- getSpanGroupWidth,
- IFontLocale,
- IParagraphConfig,
- ISectionBreakConfig,
- lineIterator,
-} from '../../../..';
+import { composeCharForLanguage } from './Language.Ruler';
+import { calculateParagraphLayout } from './Layout.Ruler';
+
+import { IFontLocale, IParagraphConfig, ISectionBreakConfig } from '../../../../Basics/Interfaces';
+import { getCharSpaceApply, getSpanGroupWidth, lineIterator } from '../../Common/Tools';
+import { createSkeletonTabSpan, createSkeletonWordSpan } from '../../Common/Span';
+import { getFontStyleString } from '../../../../Basics/Tools';
+
// import { getCharSpaceApply, getSpanGroupWidth, lineIterator } from '../../Common/Tools';
// import { createSkeletonTabSpan, createSkeletonWordSpan } from '../../Common/Span';
import { IDocumentSkeletonLine, IDocumentSkeletonPage } from '../../../../Basics/IDocumentSkeletonCached';
diff --git a/packages/base-render/src/Component/Docs/Common/Column.ts b/packages/base-render/src/Component/Docs/Common/Column.ts
index 5ec0e1d8aa..d6ea1833e8 100644
--- a/packages/base-render/src/Component/Docs/Common/Column.ts
+++ b/packages/base-render/src/Component/Docs/Common/Column.ts
@@ -1,5 +1,5 @@
import { ColumnSeparatorType, ISectionColumnProperties } from '@univer/core';
-import { IDocumentSkeletonColumn } from '../../..';
+import { IDocumentSkeletonColumn } from '../../../Basics/IDocumentSkeletonCached';
export function createSkeletonColumn(
columnIndex: number = 0,
diff --git a/packages/base-render/src/Component/Docs/Common/Line.ts b/packages/base-render/src/Component/Docs/Common/Line.ts
index 704a557f32..09ffda4d29 100644
--- a/packages/base-render/src/Component/Docs/Common/Line.ts
+++ b/packages/base-render/src/Component/Docs/Common/Line.ts
@@ -6,10 +6,13 @@ import {
IDocumentSkeletonLine,
IDocumentSkeletonSpan,
LineType,
- Path2,
- Transform,
- Vector2,
-} from '../../..';
+} from '../../../Basics/IDocumentSkeletonCached';
+
+import { Vector2 } from '../../../Basics/Vector2';
+
+import { Path2 } from '../../../Basics/Path2';
+
+import { Transform } from '../../../Basics/Transform';
interface IDrawingsSplit {
left: number;
diff --git a/packages/base-render/src/Component/Docs/Common/Section.ts b/packages/base-render/src/Component/Docs/Common/Section.ts
index b148d96046..4504207859 100644
--- a/packages/base-render/src/Component/Docs/Common/Section.ts
+++ b/packages/base-render/src/Component/Docs/Common/Section.ts
@@ -1,5 +1,5 @@
import { ColumnSeparatorType, ISectionColumnProperties } from '@univer/core';
-import { IDocumentSkeletonColumn, IDocumentSkeletonSection } from '../../..';
+import { IDocumentSkeletonColumn, IDocumentSkeletonSection } from '../../../Basics/IDocumentSkeletonCached';
export function createSkeletonSection(
columnProperties: ISectionColumnProperties[] = [],
diff --git a/packages/base-render/src/Component/Docs/Common/Span.ts b/packages/base-render/src/Component/Docs/Common/Span.ts
index 8d677670fe..b56561fb19 100644
--- a/packages/base-render/src/Component/Docs/Common/Span.ts
+++ b/packages/base-render/src/Component/Docs/Common/Span.ts
@@ -1,6 +1,8 @@
import { BooleanNumber, BulletAlignment, GridType } from '@univer/core';
-import { validationGrid } from '..';
-import { FontCache, IDocumentSkeletonBullet, IDocumentSkeletonSpan, IFontCreateConfig, SpanType } from '../../..';
+import { validationGrid } from './Tools';
+import { IDocumentSkeletonBullet, IDocumentSkeletonSpan, SpanType } from '../../../Basics/IDocumentSkeletonCached';
+import { FontCache } from '../../../Basics/FontCache';
+import { IFontCreateConfig } from '../../../Basics/Interfaces';
export function createSkeletonWordSpan(content: string, config: IFontCreateConfig, spanWidth?: number): IDocumentSkeletonSpan {
return _createSkeletonWordOrLetter(SpanType.WORD, content, config, spanWidth);
diff --git a/packages/base-render/src/Component/Docs/Common/Tools.ts b/packages/base-render/src/Component/Docs/Common/Tools.ts
index c1cc564f2d..067cc43458 100644
--- a/packages/base-render/src/Component/Docs/Common/Tools.ts
+++ b/packages/base-render/src/Component/Docs/Common/Tools.ts
@@ -13,17 +13,16 @@ import {
SpacingRule,
} from '@univer/core';
import {
- DEFAULT_DOCUMENT_FONTSIZE,
IDocumentSkeletonColumn,
IDocumentSkeletonDivide,
IDocumentSkeletonLine,
IDocumentSkeletonPage,
IDocumentSkeletonSpan,
- IParagraphConfig,
- ISectionBreakConfig,
- isFunction,
SpanType,
-} from '../../../Basics';
+} from '../../../Basics/IDocumentSkeletonCached';
+import { isFunction } from '../../../Basics/Tools';
+import { DEFAULT_DOCUMENT_FONTSIZE } from '../../../Basics/Const';
+import { IParagraphConfig, ISectionBreakConfig } from '../../../Basics/Interfaces';
export function getLastPage(pages: IDocumentSkeletonPage[]) {
return pages?.[pages.length - 1];
diff --git a/packages/base-render/src/Component/Docs/Extensions/Background.ts b/packages/base-render/src/Component/Docs/Extensions/Background.ts
index 6058242e66..18e461fa58 100644
--- a/packages/base-render/src/Component/Docs/Extensions/Background.ts
+++ b/packages/base-render/src/Component/Docs/Extensions/Background.ts
@@ -1,5 +1,4 @@
-import { getColorStyle } from '@univer/core';
-import { IScale } from '../../../Basics/Interfaces';
+import { getColorStyle, IScale } from '@univer/core';
import { DocumentsSpanAndLineExtensionRegistry } from '../../Extension';
import { docExtension } from '../DocExtension';
import { IDocumentSkeletonSpan } from '../../../Basics/IDocumentSkeletonCached';
diff --git a/packages/base-render/src/Component/Docs/Extensions/Border.ts b/packages/base-render/src/Component/Docs/Extensions/Border.ts
index c4c569dc5b..9786f1879e 100644
--- a/packages/base-render/src/Component/Docs/Extensions/Border.ts
+++ b/packages/base-render/src/Component/Docs/Extensions/Border.ts
@@ -1,5 +1,4 @@
-import { BorderStyleTypes, getColorStyle, IBorderData, IBorderStyleData, Nullable } from '@univer/core';
-import { IScale } from '../../../Basics/Interfaces';
+import { BorderStyleTypes, getColorStyle, IBorderData, IBorderStyleData, Nullable, IScale } from '@univer/core';
import { DocumentsSpanAndLineExtensionRegistry } from '../../Extension';
import { docExtension } from '../DocExtension';
import { IDocumentSkeletonSpan } from '../../../Basics/IDocumentSkeletonCached';
diff --git a/packages/base-render/src/Component/Docs/Extensions/FontAndBaseLine.ts b/packages/base-render/src/Component/Docs/Extensions/FontAndBaseLine.ts
index 26d04e993e..7e94919801 100644
--- a/packages/base-render/src/Component/Docs/Extensions/FontAndBaseLine.ts
+++ b/packages/base-render/src/Component/Docs/Extensions/FontAndBaseLine.ts
@@ -1,5 +1,4 @@
-import { BaselineOffset, getColorStyle } from '@univer/core';
-import { IScale } from '../../../Basics/Interfaces';
+import { BaselineOffset, getColorStyle, IScale } from '@univer/core';
import { DocumentsSpanAndLineExtensionRegistry } from '../../Extension';
import { docExtension } from '../DocExtension';
import { IDocumentSkeletonSpan } from '../../../Basics/IDocumentSkeletonCached';
diff --git a/packages/base-render/src/Component/Docs/Extensions/Line.ts b/packages/base-render/src/Component/Docs/Extensions/Line.ts
index 4c96fbc6ab..869f60d5e8 100644
--- a/packages/base-render/src/Component/Docs/Extensions/Line.ts
+++ b/packages/base-render/src/Component/Docs/Extensions/Line.ts
@@ -1,5 +1,4 @@
-import { BooleanNumber, getColorStyle, TextDecoration } from '@univer/core';
-import { IScale } from '../../../Basics/Interfaces';
+import { BooleanNumber, getColorStyle, TextDecoration, IScale } from '@univer/core';
import { DocumentsSpanAndLineExtensionRegistry } from '../../Extension';
import { docExtension } from '../DocExtension';
import { IDocumentSkeletonSpan } from '../../../Basics/IDocumentSkeletonCached';
diff --git a/packages/base-render/src/Component/Extension.ts b/packages/base-render/src/Component/Extension.ts
index 5f0d57508b..dcf82a149e 100644
--- a/packages/base-render/src/Component/Extension.ts
+++ b/packages/base-render/src/Component/Extension.ts
@@ -1,6 +1,5 @@
-import { IDocumentRenderConfig, Registry } from '@univer/core';
+import { IDocumentRenderConfig, Registry, IScale } from '@univer/core';
import { getScale } from '../Basics/Tools';
-import { IScale } from '../Basics/Interfaces';
import { RenderComponent } from './Component';
import { Vector2 } from '../Basics/Vector2';
diff --git a/packages/base-render/src/Component/Sheets/ColumnTitle.ts b/packages/base-render/src/Component/Sheets/ColumnTitle.ts
index a0d0c7174b..53ac1ab3f0 100644
--- a/packages/base-render/src/Component/Sheets/ColumnTitle.ts
+++ b/packages/base-render/src/Component/Sheets/ColumnTitle.ts
@@ -1,4 +1,4 @@
-import { ColumnTitleLayout } from '.';
+import { ColumnTitleLayout } from './Extensions/ColumnTitleLayout';
import { IBoundRect, Vector2 } from '../../Basics/Vector2';
import { SpreadsheetSkeleton } from './SheetSkeleton';
import { SpreadsheetTitle } from './SheetComponent';
diff --git a/packages/base-render/src/Component/Sheets/Extensions/Background.ts b/packages/base-render/src/Component/Sheets/Extensions/Background.ts
index cd1bfbc2c4..baf1461440 100644
--- a/packages/base-render/src/Component/Sheets/Extensions/Background.ts
+++ b/packages/base-render/src/Component/Sheets/Extensions/Background.ts
@@ -1,10 +1,10 @@
// import { fixLineWidthByScale, getColor, IScale } from '@Basics';
+import { IScale } from '@univer/core';
import { SpreadsheetSkeleton } from '../SheetSkeleton';
import { SheetExtension } from './SheetExtension';
import { SpreadsheetExtensionRegistry } from '../../Extension';
import { fixLineWidthByScale, getColor } from '../../../Basics/Tools';
-import { IScale } from '../../../Basics/Interfaces';
const UNIQUE_KEY = 'DefaultBackgroundExtension';
diff --git a/packages/base-render/src/Component/Sheets/Extensions/Border.ts b/packages/base-render/src/Component/Sheets/Extensions/Border.ts
index 8b9eeb924c..d1f26adc0a 100644
--- a/packages/base-render/src/Component/Sheets/Extensions/Border.ts
+++ b/packages/base-render/src/Component/Sheets/Extensions/Border.ts
@@ -1,9 +1,8 @@
-import { BorderStyleTypes, IRangeData, ObjectMatrix } from '@univer/core';
+import { BorderStyleTypes, IRangeData, ObjectMatrix, IScale } from '@univer/core';
import { BorderCacheItem } from '../Interfaces';
import { fixLineWidthByScale } from '../../../Basics/Tools';
import { SpreadsheetSkeleton } from '../SheetSkeleton';
import { SheetExtension } from './SheetExtension';
-import { IScale } from '../../../Basics/Interfaces';
import { BORDER_TYPE, COLOR_BLACK_RGB } from '../../../Basics/Const';
import { SpreadsheetExtensionRegistry } from '../../Extension';
import { drawLineByBorderType, getLineWidth, setLineType } from '../../../Basics/Draw';
diff --git a/packages/base-render/src/Component/Sheets/Extensions/ColumnTitleLayout.ts b/packages/base-render/src/Component/Sheets/Extensions/ColumnTitleLayout.ts
index 6d6b52db56..5f5a733163 100644
--- a/packages/base-render/src/Component/Sheets/Extensions/ColumnTitleLayout.ts
+++ b/packages/base-render/src/Component/Sheets/Extensions/ColumnTitleLayout.ts
@@ -1,9 +1,8 @@
-import { numberToABC } from '@univer/core';
+import { numberToABC, IScale } from '@univer/core';
import { fixLineWidthByScale, getColor } from '../../../Basics/Tools';
import { MIDDLE_CELL_POS_MAGIC_NUMBER } from '../../../Basics/Const';
import { SpreadsheetSkeleton } from '../SheetSkeleton';
import { SheetExtension } from './SheetExtension';
-import { IScale } from '../../../Basics/Interfaces';
import { SheetColumnTitleExtensionRegistry } from '../../Extension';
const UNIQUE_KEY = 'DefaultColumnTitleLayoutExtension';
diff --git a/packages/base-render/src/Component/Sheets/Extensions/Font.ts b/packages/base-render/src/Component/Sheets/Extensions/Font.ts
index d31e04f262..39d81fc706 100644
--- a/packages/base-render/src/Component/Sheets/Extensions/Font.ts
+++ b/packages/base-render/src/Component/Sheets/Extensions/Font.ts
@@ -1,7 +1,6 @@
-import { HorizontalAlign, IColorStyle, ObjectMatrix, WrapStrategy } from '@univer/core';
+import { HorizontalAlign, IColorStyle, ObjectMatrix, WrapStrategy, IScale } from '@univer/core';
import { SpreadsheetSkeleton } from '../SheetSkeleton';
import { SheetExtension } from './SheetExtension';
-import { IScale } from '../../../Basics/Interfaces';
import { SpreadsheetExtensionRegistry } from '../../Extension';
import { Spreadsheet } from '../Spreadsheet';
import { fixLineWidthByScale } from '../../../Basics/Tools';
diff --git a/packages/base-render/src/Component/Sheets/Extensions/RowTitleLayout.ts b/packages/base-render/src/Component/Sheets/Extensions/RowTitleLayout.ts
index 1f0044b224..754a4fdcf6 100644
--- a/packages/base-render/src/Component/Sheets/Extensions/RowTitleLayout.ts
+++ b/packages/base-render/src/Component/Sheets/Extensions/RowTitleLayout.ts
@@ -1,8 +1,8 @@
+import { IScale } from '@univer/core';
import { fixLineWidthByScale, getColor } from '../../../Basics/Tools';
import { MIDDLE_CELL_POS_MAGIC_NUMBER } from '../../../Basics/Const';
import { SpreadsheetSkeleton } from '../SheetSkeleton';
import { SheetExtension } from './SheetExtension';
-import { IScale } from '../../../Basics/Interfaces';
import { SheetRowTitleExtensionRegistry } from '../../Extension';
const UNIQUE_KEY = 'DefaultRowTitleLayoutExtension';
diff --git a/packages/base-render/src/Component/Sheets/RowTitle.ts b/packages/base-render/src/Component/Sheets/RowTitle.ts
index f880e42f1b..cfd66a160d 100644
--- a/packages/base-render/src/Component/Sheets/RowTitle.ts
+++ b/packages/base-render/src/Component/Sheets/RowTitle.ts
@@ -1,4 +1,4 @@
-import { RowTitleLayout } from '.';
+import { RowTitleLayout } from './Extensions/RowTitleLayout';
import { IBoundRect, Vector2 } from '../../Basics/Vector2';
import { SpreadsheetSkeleton } from './SheetSkeleton';
import { SpreadsheetTitle } from './SheetComponent';
diff --git a/packages/base-render/src/Component/Sheets/Spreadsheet.ts b/packages/base-render/src/Component/Sheets/Spreadsheet.ts
index 3de50d1de7..0a35b6506c 100644
--- a/packages/base-render/src/Component/Sheets/Spreadsheet.ts
+++ b/packages/base-render/src/Component/Sheets/Spreadsheet.ts
@@ -17,8 +17,10 @@ import { ITransformChangeState } from '../../Basics/Interfaces';
import { BaseObject } from '../../BaseObject';
import { Documents } from '../Docs/Document';
import { ORIENTATION_TYPE, RENDER_CLASS_TYPE } from '../../Basics/Const';
-import { columnIterator, DocumentSkeleton } from '../Docs';
-import { getRotateOffsetAndFarthestHypotenuse, getRotateOrientation, IDocumentSkeletonColumn } from '../../Basics';
+import { columnIterator } from '../Docs/Common/Tools';
+import { DocumentSkeleton } from '../Docs/DocSkeleton';
+import { IDocumentSkeletonColumn } from '../../Basics/IDocumentSkeletonCached';
+import { getRotateOffsetAndFarthestHypotenuse, getRotateOrientation } from '../../Basics/Draw';
const OBJECT_KEY = '__SHEET_EXTENSION_FONT_DOCUMENT_INSTANCE__';
diff --git a/packages/base-render/src/Custom/BlockPlugin.ts b/packages/base-render/src/Custom/BlockPlugin.ts
index e3c1b13e64..e11ad6412c 100644
--- a/packages/base-render/src/Custom/BlockPlugin.ts
+++ b/packages/base-render/src/Custom/BlockPlugin.ts
@@ -1,5 +1,6 @@
import { SheetContext, IOCContainer, Observable, Plugin } from '@univer/core';
-import { IDocumentSkeletonPage, ISectionBreakConfig, ISkeletonResourceReference } from '..';
+import { IDocumentSkeletonPage, ISkeletonResourceReference } from '../Basics/IDocumentSkeletonCached';
+import { ISectionBreakConfig } from '../Basics/Interfaces';
export type BlockPluginObserve = {
onAfterChangeFontFamilyObservable: Observable<any>;
diff --git a/packages/base-render/src/Custom/CustomObject.ts b/packages/base-render/src/Custom/CustomObject.ts
index ce539c8614..1d94f6cd5a 100644
--- a/packages/base-render/src/Custom/CustomObject.ts
+++ b/packages/base-render/src/Custom/CustomObject.ts
@@ -1,5 +1,5 @@
import { BaseObject } from '../BaseObject';
-import { IBoundRect, Vector2 } from '../Basics';
+import { IBoundRect, Vector2 } from '../Basics/Vector2';
import { transformBoundingCoord } from '../Basics/Position';
export class CustomObject extends BaseObject {
diff --git a/packages/base-render/src/Custom/UseCustom.ts b/packages/base-render/src/Custom/UseCustom.ts
index bfd779f927..736cc1ac43 100644
--- a/packages/base-render/src/Custom/UseCustom.ts
+++ b/packages/base-render/src/Custom/UseCustom.ts
@@ -1,6 +1,8 @@
import { ContextBase } from '@univer/core';
-import { IDocumentSkeletonPage, ISectionBreakConfig, ISkeletonResourceReference } from '..';
-import { BlockPlugin, BulletPlugin } from '.';
+import { BlockPlugin } from './BlockPlugin';
+import { BulletPlugin } from './BulletPlugin';
+import { IDocumentSkeletonPage, ISkeletonResourceReference } from '../Basics/IDocumentSkeletonCached';
+import { ISectionBreakConfig } from '../Basics/Interfaces';
const DOCUMENT_CUSTOM_BLOCK = 'documentCustomBlock';
const DOCUMENT_CUSTOM_BULLET = 'documentCustomBullet';
diff --git a/packages/base-render/src/Layer.ts b/packages/base-render/src/Layer.ts
index 444d2300dd..5cb2278b08 100644
--- a/packages/base-render/src/Layer.ts
+++ b/packages/base-render/src/Layer.ts
@@ -2,7 +2,7 @@ import { sortRules } from '@univer/core';
import { BaseObject } from './BaseObject';
import { Scene } from './Scene';
import { Group } from './Group';
-import { RENDER_CLASS_TYPE } from './Basics';
+import { RENDER_CLASS_TYPE } from './Basics/Const';
export class Layer {
private _objects: BaseObject[] = [];
diff --git a/packages/base-render/src/Shape/Circle.ts b/packages/base-render/src/Shape/Circle.ts
index 74738a67da..c591ec6dc2 100644
--- a/packages/base-render/src/Shape/Circle.ts
+++ b/packages/base-render/src/Shape/Circle.ts
@@ -1,7 +1,7 @@
// import { IShapeProps, Shape, IObjectFullState, Group, Scene } from '.';
import { IKeyValue } from '@univer/core';
-import { TRANSFORM_CHANGE_OBSERVABLE_TYPE } from '../Basics';
+import { TRANSFORM_CHANGE_OBSERVABLE_TYPE } from '../Basics/Interfaces';
import { IShapeProps, Shape } from './Shape';
export interface ICircleProps extends IShapeProps {
diff --git a/packages/base-render/src/Shape/Path.ts b/packages/base-render/src/Shape/Path.ts
index 7fb8beea9f..3244d1238f 100644
--- a/packages/base-render/src/Shape/Path.ts
+++ b/packages/base-render/src/Shape/Path.ts
@@ -1,7 +1,7 @@
// import { IShapeProps, Shape, IObjectFullState, Group, Scene } from '.';
import { IKeyValue, Nullable } from '@univer/core';
-import { IObjectFullState, TRANSFORM_CHANGE_OBSERVABLE_TYPE } from '../Basics';
+import { IObjectFullState, TRANSFORM_CHANGE_OBSERVABLE_TYPE } from '../Basics/Interfaces';
import { IShapeProps, Shape } from './Shape';
interface IPathDataArray {
diff --git a/packages/base-render/src/Shape/RichText.ts b/packages/base-render/src/Shape/RichText.ts
index 431cb0bf4f..f1ef46010f 100644
--- a/packages/base-render/src/Shape/RichText.ts
+++ b/packages/base-render/src/Shape/RichText.ts
@@ -14,11 +14,13 @@ import {
IBorderData,
Nullable,
} from '@univer/core';
-import { Canvas } from '..';
+import { Canvas } from '../Canvas';
import { BaseObject } from '../BaseObject';
-import { IBoundRect, TRANSFORM_CHANGE_OBSERVABLE_TYPE } from '../Basics';
+import { IBoundRect } from '../Basics/Vector2';
+import { TRANSFORM_CHANGE_OBSERVABLE_TYPE } from '../Basics/Interfaces';
import { transformBoundingCoord } from '../Basics/Position';
-import { Documents, DocumentSkeleton } from '../Component';
+import { DocumentSkeleton } from '../Component/Docs/DocSkeleton';
+import { Documents } from '../Component/Docs/Document';
export interface IRichTextProps extends ITransformState, IStyleBase {
text?: string;