import { AxisAlignEnum, ChartBorderDashType, ChartTypeBits, LegendPositionEnum, LinePointShape, RadarShape, SelectModeEnum, TitlePositionEnum } from '@univerjs-pro/engine-chart'; import { ImageFillModeEnum, ImageSourceTypeEnum, ShapeFillEnum, ShapeLineCapEnum, ShapeLineDashEnum, ShapeLineJoinEnum, ShapeLineTypeEnum, ShapeTypeEnum } from '@univerjs-pro/engine-shape'; import { PageElementTypeEnum, PageTypeEnum, PlaceholderTypeEnum, SlideBackgroundTypeEnum, SlideMediaTypeEnum, SlidePageLayoutTypeEnum, SlidePageSizePresetEnum } from '@univerjs-pro/slides'; export interface IFSlideEnumMixin { /** * Slide page element type enum. * @returns {typeof PageElementTypeEnum} The slide page element type enum. * * @example * ```ts * const type = univerAPI.Enum.PageElementTypeEnum.Chart; * ``` */ PageElementTypeEnum: typeof PageElementTypeEnum; /** * Slide page type enum. * @returns {typeof PageTypeEnum} The slide page type enum. */ PageTypeEnum: typeof PageTypeEnum; /** * Placeholder type enum. * @returns {typeof PlaceholderTypeEnum} The placeholder type enum. */ PlaceholderTypeEnum: typeof PlaceholderTypeEnum; /** * Slide background type enum. * @returns {typeof SlideBackgroundTypeEnum} The slide background type enum. */ SlideBackgroundTypeEnum: typeof SlideBackgroundTypeEnum; /** * Slide page layout type enum. * @returns {typeof SlidePageLayoutTypeEnum} The slide page layout type enum. */ SlidePageLayoutTypeEnum: typeof SlidePageLayoutTypeEnum; /** * Slide page size preset enum. * @returns {typeof SlidePageSizePresetEnum} The slide page size preset enum. */ SlidePageSizePresetEnum: typeof SlidePageSizePresetEnum; /** * Slide media type enum. * @returns {typeof SlideMediaTypeEnum} The slide media type enum. */ SlideMediaTypeEnum: typeof SlideMediaTypeEnum; /** * Shape type enum. * @returns {typeof ShapeTypeEnum} The shape type enum. * * @example * ```ts * const shapeInfo = fSlide.newShape() * .setShapeType(univerAPI.Enum.ShapeTypeEnum.Rect) * .build(); * ``` */ ShapeTypeEnum: typeof ShapeTypeEnum; /** * Shape fill type enum. * @returns {typeof ShapeFillEnum} The shape fill type enum. */ ShapeFillEnum: typeof ShapeFillEnum; /** * Shape image fill mode enum. * @returns {typeof ImageFillModeEnum} The image fill mode enum. */ ImageFillModeEnum: typeof ImageFillModeEnum; /** * Shape image source type enum. * @returns {typeof ImageSourceTypeEnum} The shape image source type enum. */ ImageSourceTypeEnum: typeof ImageSourceTypeEnum; /** * Shape line type enum. * @returns {typeof ShapeLineTypeEnum} The shape line type enum. */ ShapeLineTypeEnum: typeof ShapeLineTypeEnum; /** * Shape line dash enum. * @returns {typeof ShapeLineDashEnum} The shape line dash enum. */ ShapeLineDashEnum: typeof ShapeLineDashEnum; /** * Shape line cap enum. * @returns {typeof ShapeLineCapEnum} The shape line cap enum. */ ShapeLineCapEnum: typeof ShapeLineCapEnum; /** * Shape line join enum. * @returns {typeof ShapeLineJoinEnum} The shape line join enum. */ ShapeLineJoinEnum: typeof ShapeLineJoinEnum; /** * Chart type enum. * @returns {typeof ChartTypeBits} The chart type enum. * * @example * ```ts * const chartInfo = fSlide.newChart() * .setChartType(univerAPI.Enum.ChartType.Column) * .setData([['Month', 'Sales'], ['Jan', 120]]) * .build(); * ``` */ ChartType: typeof ChartTypeBits; /** * Chart legend position enum. * @returns {typeof LegendPositionEnum} The chart legend position enum. */ LegendPositionEnum: typeof LegendPositionEnum; /** * Chart select mode enum. * @returns {typeof SelectModeEnum} The chart select mode enum. */ SelectModeEnum: typeof SelectModeEnum; /** * Chart axis alignment enum. * @returns {typeof AxisAlignEnum} The chart axis alignment enum. */ AxisAlignEnum: typeof AxisAlignEnum; /** * Chart border dash type enum. * @returns {typeof ChartBorderDashType} The chart border dash type enum. */ ChartBorderDashType: typeof ChartBorderDashType; /** * Line chart point shape enum. * @returns {typeof LinePointShape} The line chart point shape enum. */ LinePointShape: typeof LinePointShape; /** * Chart title position enum. * @returns {typeof TitlePositionEnum} The chart title position enum. */ TitlePositionEnum: typeof TitlePositionEnum; /** * Radar chart shape enum. * @returns {typeof RadarShape} The radar chart shape enum. */ RadarShape: typeof RadarShape; } declare module '@univerjs/core/facade' { interface FEnum extends IFSlideEnumMixin { } }