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.
TypeScript boardcollaborationdocdocxexceloffce365officepdfpptpptxpresentationsdksheetslidesspreadsheetuniverwordwordprocessorworkspacexlsx
fix(sheet): export some types for shape (#6362)
VicKunbd00bea7b181
diff --git a/packages/drawing-ui/src/index.ts b/packages/drawing-ui/src/index.tsindex 540704e231..844a4d5905 100644--- a/packages/drawing-ui/src/index.ts+++ b/packages/drawing-ui/src/index.ts@@ -20,6 +20,7 @@ export { SetDrawingAlignOperation } from './commands/operations/drawing-align.opexport { AutoImageCropOperation, CloseImageCropOperation, OpenImageCropOperation } from './commands/operations/image-crop.operation';export { ImageResetSizeOperation } from './commands/operations/image-reset-size.operation';export type { IUniverDrawingUIConfig } from './controllers/config.schema';+export { getCurrentUnitInfo, insertGroupObject } from './controllers/utils';export { UniverDrawingUIPlugin } from './plugin';export { DrawingRenderService } from './services/drawing-render.service';export { getUpdateParams } from './utils/get-update-params';diff --git a/packages/sheets-drawing/src/index.ts b/packages/sheets-drawing/src/index.tsindex c091a890c3..f825fd2a95 100644--- a/packages/sheets-drawing/src/index.ts+++ b/packages/sheets-drawing/src/index.ts@@ -19,4 +19,4 @@ export type { IUniverSheetsDrawingConfig } from './controllers/config.schema';export { SHEET_DRAWING_PLUGIN } from './controllers/sheet-drawing.controller';export { UniverSheetsDrawingPlugin } from './plugin';export { ISheetDrawingService, SheetDrawingAnchorType } from './services/sheet-drawing.service';-export type { IFloatDomData, ISheetDrawing, ISheetDrawingPosition, ISheetFloatDom, ISheetImage } from './services/sheet-drawing.service';+export type { IFloatDomData, ISheetDrawing, ISheetDrawingPosition, ISheetFloatDom, ISheetImage, ISheetShape } from './services/sheet-drawing.service';diff --git a/packages/sheets-drawing/src/services/sheet-drawing.service.ts b/packages/sheets-drawing/src/services/sheet-drawing.service.tsindex b865141518..f5d3142161 100644--- a/packages/sheets-drawing/src/services/sheet-drawing.service.ts+++ b/packages/sheets-drawing/src/services/sheet-drawing.service.ts@@ -64,15 +64,15 @@ export interface IFloatDomData extends IDrawingParam {}// TODO@wzhudev: this shouldn't be here. It should be in the sheets package-export interface ISheetFloatDom extends IFloatDomData, ISheetDrawingBase {}+export interface ISheetFloatDom extends IFloatDomData, ISheetDrawingBase { }export type ISheetDrawing = ISheetImage | ISheetShape | ISheetFloatDom;type OptionalField<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;export type ISheetUpdateDrawing = OptionalField<ISheetImage | ISheetShape, 'sheetTransform'>;-export class SheetDrawingService extends UnitDrawingService<ISheetDrawing> {}+export class SheetDrawingService extends UnitDrawingService<ISheetDrawing> { }-export interface ISheetDrawingService extends IUnitDrawingService<ISheetDrawing> {}+export interface ISheetDrawingService extends IUnitDrawingService<ISheetDrawing> { }export const ISheetDrawingService = createIdentifier<ISheetDrawingService>('sheets-drawing.sheet-drawing.service');