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
feat(shape): add option handle in interface (#6369)
VicKun603da2d75110
diff --git a/packages/core/src/types/interfaces/i-drawing.ts b/packages/core/src/types/interfaces/i-drawing.tsindex b6c7cfe4a4..5cc3453dd5 100644--- a/packages/core/src/types/interfaces/i-drawing.ts+++ b/packages/core/src/types/interfaces/i-drawing.ts@@ -105,7 +105,15 @@ export interface IRotationSkewFlipTransform {flipY?: boolean;}-export interface ITransformState extends IAbsoluteTransform, IRotationSkewFlipTransform {}+// used to disable some transform features like rotate, resize, border for line shapes+// chart should not allow rotate in excel+export interface ITransformStateDisableOption {+ rotateEnabled?: boolean;+ resizeEnabled?: boolean;+ borderEnabled?: boolean;+}++export interface ITransformState extends IAbsoluteTransform, IRotationSkewFlipTransform, ITransformStateDisableOption {}export interface IDrawingParam extends IDrawingSearch {drawingType: DrawingType;