# Shape sub-types

> Shared vector shape, fill, stroke, geometry, and effect types used by Slides and Boards.

> Language fallback: requested `ru-RU`; content is `en-US`.

- Human documentation: [https://docs.univer.ai/ru-RU/reference/types/shapes-types](https://docs.univer.ai/ru-RU/reference/types/shapes-types)

- Agent Markdown: [https://docs.univer.ai/ru-RU/reference/types/shapes-types.md](https://docs.univer.ai/ru-RU/reference/types/shapes-types.md)

- Requested language: `ru-RU`

- Content language: `en-US`

- Documentation version: `1.6.2`

- Source: [types/shapes-types.mdx](https://github.com/dream-num/documentation/blob/dev/content/reference/types/shapes-types.mdx)

---

Shared vector shape, fill, stroke, geometry, and effect types used by Slides and Boards. Supporting [`ISlidePage`](https://docs.univer.ai/ru-RU/reference/types/slide-page.md), [`IBoardData`](https://docs.univer.ai/ru-RU/reference/types/board-data.md). Types are ordered from direct top-level fields to deeper nested structures and enums.

## Overview [#overview]

| Type | Kind | Used by |
| --- | --- | --- |
| [`IBasicShapeData`](#ibasicshapedata) | `interface` | [`ISlideImageElement`](https://docs.univer.ai/ru-RU/reference/types/slides-types.md#islideimageelement), [`ISlideFillStyle`](https://docs.univer.ai/ru-RU/reference/types/slides-types.md#islidefillstyle), [`ISlidePlaceholderStyle`](https://docs.univer.ai/ru-RU/reference/types/slides-types.md#islideplaceholderstyle), [`IShapeData`](#ishapedata) |
| [`ICxnShapeData`](#icxnshapedata) | `interface` | [`ISlideConnectorElement`](https://docs.univer.ai/ru-RU/reference/types/slides-types.md#islideconnectorelement), [`IShapeData`](#ishapedata) |
| [`IShapeData`](#ishapedata) | `type` | [`ISlideShapeElement`](https://docs.univer.ai/ru-RU/reference/types/slides-types.md#islideshapeelement) |
| [`IShapeLineStyle`](#ishapelinestyle) | `interface` | [`ISlideChartElement`](https://docs.univer.ai/ru-RU/reference/types/slides-types.md#islidechartelement), [`IBoardFmtScheme`](https://docs.univer.ai/ru-RU/reference/types/boards-types.md#iboardfmtscheme), [`ISlideLineStyle`](https://docs.univer.ai/ru-RU/reference/types/slides-types.md#islidelinestyle), [`ISlidePlaceholderStyle`](https://docs.univer.ai/ru-RU/reference/types/slides-types.md#islideplaceholderstyle) |
| [`ShapeTypeEnum`](#shapetypeenum) | `enum` | [`ISlideImageElement`](https://docs.univer.ai/ru-RU/reference/types/slides-types.md#islideimageelement), [`IBasicShapeData`](#ibasicshapedata), [`IBoardImageElement`](https://docs.univer.ai/ru-RU/reference/types/boards-types.md#iboardimageelement), [`ISmartArtShapeData`](#ismartartshapedata) |
| [`ImageFillModeEnum`](#imagefillmodeenum) | `enum` | [`IBasicShapeData`](#ibasicshapedata) |
| [`ImageSourceTypeEnum`](#imagesourcetypeenum) | `type` | [`IBasicShapeData`](#ibasicshapedata) |
| [`IPresetShapeConfig`](#ipresetshapeconfig) | `interface` | [`IBasicShapeData`](#ibasicshapedata), [`IBoardShapeGeometry`](https://docs.univer.ai/ru-RU/reference/types/boards-types.md#iboardshapegeometry) |
| [`IShape3D`](#ishape3d) | `interface` | [`IBasicShapeData`](#ibasicshapedata), [`IShapeTextBodyBehavior`](#ishapetextbodybehavior) |
| [`IShapeFormulaBinding`](#ishapeformulabinding) | `interface` | [`IBasicShapeData`](#ibasicshapedata) |
| [`IShapeReflectionEffect`](#ishapereflectioneffect) | `interface` | [`IBasicShapeData`](#ibasicshapedata) |
| [`IShapeRelation`](#ishaperelation) | `interface` | [`ICxnShapeData`](#icxnshapedata) |
| [`IShapeScene3D`](#ishapescene3d) | `interface` | [`IBasicShapeData`](#ibasicshapedata), [`IShapeTextBodyBehavior`](#ishapetextbodybehavior) |
| [`IShapeSoftEdgeEffect`](#ishapesoftedgeeffect) | `interface` | [`IBasicShapeData`](#ibasicshapedata) |
| [`IShapeTextData`](#ishapetextdata) | `type` | [`IBasicShapeData`](#ibasicshapedata), [`ISmartArtDataNode`](#ismartartdatanode), [`ISmartArtTopologyPoint`](#ismartarttopologypoint) |
| [`IShapeTextRectPadding`](#ishapetextrectpadding) | `interface` | [`IBasicShapeData`](#ibasicshapedata), [`ISmartArtPresentationShape`](#ismartartpresentationshape) |
| [`ISmartArtShapeData`](#ismartartshapedata) | `interface` | [`IShapeData`](#ishapedata) |
| [`ShapeArrowSizeEnum`](#shapearrowsizeenum) | `enum` | [`ICxnShapeData`](#icxnshapedata) |
| [`ShapeArrowTypeEnum`](#shapearrowtypeenum) | `enum` | [`ICxnShapeData`](#icxnshapedata) |
| [`ShapeFillEnum`](#shapefillenum) | `enum` | [`IBasicShapeData`](#ibasicshapedata) |
| [`ShapeGradientTypeEnum`](#shapegradienttypeenum) | `enum` | [`IBasicShapeData`](#ibasicshapedata) |
| [`ShapeLineCapEnum`](#shapelinecapenum) | `enum` | [`IShapeLineStyle`](#ishapelinestyle) |
| [`ShapeLineDashEnum`](#shapelinedashenum) | `enum` | [`IShapeLineStyle`](#ishapelinestyle) |
| [`ShapeLineJoinEnum`](#shapelinejoinenum) | `enum` | [`IShapeLineStyle`](#ishapelinestyle) |
| [`ShapeLineTypeEnum`](#shapelinetypeenum) | `enum` | [`IShapeLineStyle`](#ishapelinestyle) |
| [`ShapeSketchTypeEnum`](#shapesketchtypeenum) | `enum` | [`IShapeLineStyle`](#ishapelinestyle) |
| [`ICustomShapeTextData`](#icustomshapetextdata) | `interface` | [`IShapeTextData`](#ishapetextdata) |
| [`IShape3DCameraProjection`](#ishape3dcameraprojection) | `interface` | [`IShapeScene3D`](#ishapescene3d) |
| [`IShape3DRotation`](#ishape3drotation) | `interface` | [`IShapeScene3D`](#ishapescene3d), [`IShape3DCameraProjection`](#ishape3dcameraprojection) |
| [`IShape3DVector`](#ishape3dvector) | `interface` | [`IShapeScene3D`](#ishapescene3d) |
| [`IShapeAdjustItem`](#ishapeadjustitem) | `interface` | [`IPresetShapeConfig`](#ipresetshapeconfig) |
| [`IShapeBevel3D`](#ishapebevel3d) | `interface` | [`IShape3D`](#ishape3d) |
| [`IShapePath`](#ishapepath) | `interface` | [`IPresetShapeConfig`](#ipresetshapeconfig), [`IBoardShapePath`](https://docs.univer.ai/ru-RU/reference/types/boards-types.md#iboardshapepath) |
| [`IShapeRect`](#ishaperect) | `interface` | [`IShapeScene3D`](#ishapescene3d) |
| [`IShapeRelationItem`](#ishaperelationitem) | `interface` | [`IShapeRelation`](#ishaperelation) |
| [`IShapeText`](#ishapetext) | `interface` | [`IShapeTextData`](#ishapetextdata) |
| [`ISmartArtData`](#ismartartdata) | `interface` | [`ISmartArtShapeData`](#ismartartshapedata) |
| [`ISmartArtTransform`](#ismartarttransform) | `interface` | [`IShapeScene3D`](#ishapescene3d), [`ISmartArtPresentationShape`](#ismartartpresentationshape) |
| [`ShapeCameraPresetEnum`](#shapecamerapresetenum) | `enum` | [`IShapeScene3D`](#ishapescene3d) |
| [`ShapeLightRigDirectionEnum`](#shapelightrigdirectionenum) | `enum` | [`IShapeScene3D`](#ishapescene3d) |
| [`ShapeLightRigPresetEnum`](#shapelightrigpresetenum) | `enum` | [`IShapeScene3D`](#ishapescene3d) |
| [`ShapeMaterialPresetEnum`](#shapematerialpresetenum) | `enum` | [`IShape3D`](#ishape3d) |
| [`ShapeOperatorValue`](#shapeoperatorvalue) | `type` | [`IPresetShapeConfig`](#ipresetshapeconfig) |
| [`IPathCommand`](#ipathcommand) | `interface` | [`IShapePath`](#ishapepath) |
| [`IShapeTextAlign`](#ishapetextalign) | `interface` | [`IShapeText`](#ishapetext), [`ICustomShapeTextData`](#icustomshapetextdata) |
| [`IShapeTextBodyBehavior`](#ishapetextbodybehavior) | `interface` | [`IShapeText`](#ishapetext), [`ICustomShapeTextData`](#icustomshapetextdata) |
| [`IShapeTextDataModel`](#ishapetextdatamodel) | `interface` | [`ICustomShapeTextData`](#icustomshapetextdata) |
| [`ISmartArtDataNode`](#ismartartdatanode) | `interface` | [`ISmartArtData`](#ismartartdata) |
| [`ISmartArtDefinitions`](#ismartartdefinitions) | `interface` | [`ISmartArtData`](#ismartartdata) |
| [`ISmartArtEditCapabilities`](#ismartarteditcapabilities) | `interface` | [`ISmartArtData`](#ismartartdata) |
| [`ISmartArtPresentationShape`](#ismartartpresentationshape) | `interface` | [`ISmartArtData`](#ismartartdata) |
| [`ISmartArtTopology`](#ismartarttopology) | `interface` | [`ISmartArtData`](#ismartartdata) |
| [`ShapeBevelPresetEnum`](#shapebevelpresetenum) | `enum` | [`IShapeBevel3D`](#ishapebevel3d) |
| [`ShapeOperatorEnum`](#shapeoperatorenum) | `enum` | [`ShapeOperatorValue`](#shapeoperatorvalue) |
| [`SmartArtCategoryEnum`](#smartartcategoryenum) | `enum` | [`ISmartArtData`](#ismartartdata) |
| [`SmartArtDirectionEnum`](#smartartdirectionenum) | `enum` | [`ISmartArtData`](#ismartartdata) |
| [`IGdContextKey`](#igdcontextkey) | `type` | [`IPathCommand`](#ipathcommand) |
| [`ISmartArtDefinitionInstruction`](#ismartartdefinitioninstruction) | `interface` | [`ISmartArtPresentationShape`](#ismartartpresentationshape), [`ISmartArtDefinitions`](#ismartartdefinitions), [`ISmartArtTopologyPoint`](#ismartarttopologypoint) |
| [`ISmartArtPresentationTextBinding`](#ismartartpresentationtextbinding) | `interface` | [`ISmartArtPresentationShape`](#ismartartpresentationshape) |
| [`ISmartArtTextFormatOverrides`](#ismartarttextformatoverrides) | `interface` | [`ISmartArtDataNode`](#ismartartdatanode), [`ISmartArtPresentationShape`](#ismartartpresentationshape), [`ISmartArtTopologyPoint`](#ismartarttopologypoint) |
| [`ISmartArtTopologyConnection`](#ismartarttopologyconnection) | `interface` | [`ISmartArtTopology`](#ismartarttopology) |
| [`ISmartArtTopologyPoint`](#ismartarttopologypoint) | `interface` | [`ISmartArtTopology`](#ismartarttopology) |
| [`PathCommandType`](#pathcommandtype) | `type` | [`IPathCommand`](#ipathcommand) |
| [`ShapeTextAutoFitType`](#shapetextautofittype) | `enum` | [`IShapeTextBodyBehavior`](#ishapetextbodybehavior) |
| [`ShapeTextDirection`](#shapetextdirection) | `enum` | [`IShapeTextAlign`](#ishapetextalign) |
| [`ShapeTextHorizontalAnchor`](#shapetexthorizontalanchor) | `type` | [`IShapeTextBodyBehavior`](#ishapetextbodybehavior) |
| [`ShapeTextWrapType`](#shapetextwraptype) | `enum` | [`IShapeTextBodyBehavior`](#ishapetextbodybehavior) |
| [`SmartArtNodeRoleEnum`](#smartartnoderoleenum) | `enum` | [`ISmartArtDataNode`](#ismartartdatanode) |
| [`SmartArtPresentationShapeRoleEnum`](#smartartpresentationshaperoleenum) | `enum` | [`ISmartArtPresentationShape`](#ismartartpresentationshape) |
| [`SmartArtPresentationTextSourceEnum`](#smartartpresentationtextsourceenum) | `enum` | [`ISmartArtPresentationShape`](#ismartartpresentationshape) |
| [`SmartArtTextFontSizeModeEnum`](#smartarttextfontsizemodeenum) | `enum` | [`ISmartArtDataNode`](#ismartartdatanode) |
| [`IGdContext`](#igdcontext) | `interface` | [`IGdContextKey`](#igdcontextkey) |
| [`ISmartArtDefinitionParameter`](#ismartartdefinitionparameter) | `interface` | [`ISmartArtDefinitionInstruction`](#ismartartdefinitioninstruction) |
| [`SmartArtDefinitionScopeEnum`](#smartartdefinitionscopeenum) | `enum` | [`ISmartArtDefinitionInstruction`](#ismartartdefinitioninstruction), [`ISmartArtDefinitionParameter`](#ismartartdefinitionparameter) |
| [`SmartArtTopologyPointKindEnum`](#smartarttopologypointkindenum) | `enum` | [`ISmartArtTopologyPoint`](#ismartarttopologypoint) |
| [`IGdContextBase`](#igdcontextbase) | `interface` | [`IGdContext`](#igdcontext) |

## `IBasicShapeData` [#ibasicshapedata]

`import type { IBasicShapeData } from '@univerjs-pro/engine-shape'` · Used by [`ISlideImageElement`](https://docs.univer.ai/ru-RU/reference/types/slides-types.md#islideimageelement) · [`ISlideFillStyle`](https://docs.univer.ai/ru-RU/reference/types/slides-types.md#islidefillstyle) · [`ISlidePlaceholderStyle`](https://docs.univer.ai/ru-RU/reference/types/slides-types.md#islideplaceholderstyle) · [`IShapeData`](#ishapedata) · [`ICxnShapeData`](#icxnshapedata) · [`IBoardFillStyle`](https://docs.univer.ai/ru-RU/reference/types/boards-types.md#iboardfillstyle) · [`ISmartArtShapeData`](#ismartartshapedata) · [`IBoardPlaceholderStyle`](https://docs.univer.ai/ru-RU/reference/types/boards-types.md#iboardplaceholderstyle) · [`IBoardShapeData`](https://docs.univer.ai/ru-RU/reference/types/boards-types.md#iboardshapedata) · [`ISmartArtPresentationShape`](#ismartartpresentationshape) · [`IBoardConnectorLabelStyle`](https://docs.univer.ai/ru-RU/reference/types/boards-types.md#iboardconnectorlabelstyle) · [`ISmartArtTopologyPoint`](#ismartarttopologypoint)

This interface defines the shape data structure , and this part will save in json

```ts
interface IBasicShapeData {
  shapeType?: ShapeTypeEnum
  isTextBox?: boolean
  fill?: {
    color?: string
    fillType?: ShapeFillEnum
    opacity?: number

    gradientType?: ShapeGradientTypeEnum
    gradientAngle?: number

    gradientPath?: 'circle' | 'rect' | 'shape'

    gradientFillToRect?: {
      left?: number
      top?: number
      right?: number
      bottom?: number
    }
    gradientStops?: Array<{
      position: number
      color: string
      opacity?: number
    }>

    fillImageSource?: string

    fillImageSourceType?: ImageSourceTypeEnum

    imageFillMode?: ImageFillModeEnum

    stretchFillRect?: {
      left: number
      top: number
      bottom: number
      right: number
    }

    srcRect?: {
      left: number
      top: number
      bottom: number
      right: number
    }

    imageTile?: {
      scaleX?: number
      scaleY?: number

      offsetX?: number
      offsetY?: number

      alignment?: 'tl' | 't' | 'tr' | 'l' | 'ctr' | 'r' | 'bl' | 'b' | 'br'
    }

    imageOpacity?: number

    imageRotateWithShape?: boolean
  }
  stroke?: IShapeLineStyle
  adjustValues?: Record<string, number>
  isCustom?: boolean
  customGeometry?: IPresetShapeConfig

  outerShadow?: IShadowEffect

  glow?: IGlowEffect

  reflection?: IShapeReflectionEffect

  softEdge?: IShapeSoftEdgeEffect

  scene3d?: IShapeScene3D

  shape3d?: IShape3D

  shapeText?: IShapeTextData

  shapeTextBlockAlignment?: HorizontalAlign

  textAutoFit?: 'shape'

  textRectPadding?: IShapeTextRectPadding

  textRectIncludesPresetInset?: boolean

  formulaBinding?: IShapeFormulaBinding
}
```

**Related types:** [`ShapeTypeEnum`](#shapetypeenum) · [`ShapeFillEnum`](#shapefillenum) · [`ShapeGradientTypeEnum`](#shapegradienttypeenum) · [`ImageSourceTypeEnum`](#imagesourcetypeenum) · [`ImageFillModeEnum`](#imagefillmodeenum) · [`IShapeLineStyle`](#ishapelinestyle) · [`IPresetShapeConfig`](#ipresetshapeconfig) · [`IShadowEffect`](https://docs.univer.ai/ru-RU/reference/types/common-types.md#ishadoweffect) · [`IGlowEffect`](https://docs.univer.ai/ru-RU/reference/types/common-types.md#igloweffect) · [`IShapeReflectionEffect`](#ishapereflectioneffect) · [`IShapeSoftEdgeEffect`](#ishapesoftedgeeffect) · [`IShapeScene3D`](#ishapescene3d) · [`IShape3D`](#ishape3d) · [`IShapeTextData`](#ishapetextdata) · [`HorizontalAlign`](https://docs.univer.ai/ru-RU/reference/enums/horizontal-align.md) · [`IShapeTextRectPadding`](#ishapetextrectpadding) · [`IShapeFormulaBinding`](#ishapeformulabinding)

## `ICxnShapeData` [#icxnshapedata]

`import type { ICxnShapeData } from '@univerjs-pro/engine-shape'` · Used by [`ISlideConnectorElement`](https://docs.univer.ai/ru-RU/reference/types/slides-types.md#islideconnectorelement) · [`IShapeData`](#ishapedata)

```ts
interface ICxnShapeData extends IBasicShapeData {
  points?: Array<{ x: number; y: number }>
  relation?: IShapeRelation
  ln?: IShapeLineStyle & {
    startArrow?: {
      type?: ShapeArrowTypeEnum
      size?: ShapeArrowSizeEnum
    }
    endArrow?: {
      type?: ShapeArrowTypeEnum
      size?: ShapeArrowSizeEnum
    }
  }
}
```

**Related types:** [`IBasicShapeData`](#ibasicshapedata) · [`IShapeRelation`](#ishaperelation) · [`IShapeLineStyle`](#ishapelinestyle) · [`ShapeArrowTypeEnum`](#shapearrowtypeenum) · [`ShapeArrowSizeEnum`](#shapearrowsizeenum)

## `IShapeData` [#ishapedata]

`import type { IShapeData } from '@univerjs-pro/engine-shape'` · Used by [`ISlideShapeElement`](https://docs.univer.ai/ru-RU/reference/types/slides-types.md#islideshapeelement)

```ts
type IShapeData = IBasicShapeData | ICxnShapeData | ISmartArtShapeData
```

**Related types:** [`IBasicShapeData`](#ibasicshapedata) · [`ICxnShapeData`](#icxnshapedata) · [`ISmartArtShapeData`](#ismartartshapedata)

## `IShapeLineStyle` [#ishapelinestyle]

`import type { IShapeLineStyle } from '@univerjs-pro/engine-shape'` · Used by [`ISlideChartElement`](https://docs.univer.ai/ru-RU/reference/types/slides-types.md#islidechartelement) · [`IBoardFmtScheme`](https://docs.univer.ai/ru-RU/reference/types/boards-types.md#iboardfmtscheme) · [`ISlideLineStyle`](https://docs.univer.ai/ru-RU/reference/types/slides-types.md#islidelinestyle) · [`ISlidePlaceholderStyle`](https://docs.univer.ai/ru-RU/reference/types/slides-types.md#islideplaceholderstyle) · [`ICxnShapeData`](#icxnshapedata) · [`IBasicShapeData`](#ibasicshapedata) · [`IBoardChartElement`](https://docs.univer.ai/ru-RU/reference/types/boards-types.md#iboardchartelement) · [`IBoardPlaceholderStyle`](https://docs.univer.ai/ru-RU/reference/types/boards-types.md#iboardplaceholderstyle) · [`IBoardConnectorLabelStyle`](https://docs.univer.ai/ru-RU/reference/types/boards-types.md#iboardconnectorlabelstyle)

```ts
interface IShapeLineStyle {
  color?: string
  width?: number
  opacity?: number
  cornerRadius?: number
  dashType?: ShapeLineDashEnum
  capType?: ShapeLineCapEnum
  lineJoinType?: ShapeLineJoinEnum
  lineStrokeType?: ShapeLineTypeEnum

  sketchType?: ShapeSketchTypeEnum
}
```

**Related types:** [`ShapeLineDashEnum`](#shapelinedashenum) · [`ShapeLineCapEnum`](#shapelinecapenum) · [`ShapeLineJoinEnum`](#shapelinejoinenum) · [`ShapeLineTypeEnum`](#shapelinetypeenum) · [`ShapeSketchTypeEnum`](#shapesketchtypeenum)

## `ShapeTypeEnum` [#shapetypeenum]

`import { ShapeTypeEnum } from '@univerjs-pro/engine-shape'` · Used by [`ISlideImageElement`](https://docs.univer.ai/ru-RU/reference/types/slides-types.md#islideimageelement) · [`IBasicShapeData`](#ibasicshapedata) · [`IBoardImageElement`](https://docs.univer.ai/ru-RU/reference/types/boards-types.md#iboardimageelement) · [`ISmartArtShapeData`](#ismartartshapedata)

Built-in vector shape types supported by the Univer shape engine.

Board facade callers should access these values through `univerAPI.Enum.ShapeTypeEnum` so generated scripts remain
copy-pasteable and do not need package-level imports.

```ts
enum ShapeTypeEnum {
  None = 'none',
  SmartArt = 'smartArt',
  Rect = 'rect',
  RoundRect = 'roundRect',
  Ellipse = 'ellipse',
  Diamond = 'diamond',
  Triangle = 'triangle',
  RightTriangle = 'rtTriangle',
  Parallelogram = 'parallelogram',
  Trapezoid = 'trapezoid',
  Hexagon = 'hexagon', // 这个跟Heptagon 不一样的点在于调节点
  Octagon = 'octagon',
  Plus = 'plus',
  Star5 = 'star5',
  Star6 = 'star6',
  Star7 = 'star7',
  Star8 = 'star8',
  Star10 = 'star10',
  Star12 = 'star12',
  Star16 = 'star16',
  Star24 = 'star24',
  Star32 = 'star32',
  Round1Rect = 'round1Rect',
  Round2SameRect = 'round2SameRect',
  Round2DiagRect = 'round2DiagRect',
  Snip1Rect = 'snip1Rect',
  SnipRoundRect = 'snipRoundRect',
  Snip2SameRect = 'snip2SameRect',
  Snip2DiagRect = 'snip2DiagRect',
  Plaque = 'plaque',
  Frame = 'frame',
  HalfFrame = 'halfFrame',
  Corner = 'corner',
  DiagStripe = 'diagStripe',
  Chord = 'chord',
  Arc = 'arc',
  LeftCircularArrow = 'leftCircularArrow',
  LeftRightCircularArrow = 'leftRightCircularArrow',
  SwooshArrow = 'swooshArrow',
  LeftRightRibbon = 'leftRightRibbon',
  Heptagon = 'heptagon',
  HomePlate = 'homePlate',
  RightArrow = 'rightArrow',
  LeftArrow = 'leftArrow',
  UpArrow = 'upArrow',
  DownArrow = 'downArrow',
  LeftRightArrow = 'leftRightArrow',
  UpDownArrow = 'upDownArrow',
  QuadArrow = 'quadArrow',
  LeftRightUpArrow = 'leftRightUpArrow',
  BentArrow = 'bentArrow',
  UturnArrow = 'uturnArrow',
  LeftUpArrow = 'leftUpArrow',
  BentUpArrow = 'bentUpArrow',
  CurvedRightArrow = 'curvedRightArrow',
  CurvedLeftArrow = 'curvedLeftArrow',
  CurvedUpArrow = 'curvedUpArrow',
  CurvedDownArrow = 'curvedDownArrow',
  StripedRightArrow = 'stripedRightArrow',
  NotchedRightArrow = 'notchedRightArrow',
  Pentagon = 'pentagon',
  Chevron = 'chevron',
  RightArrowCallout = 'rightArrowCallout',
  DownArrowCallout = 'downArrowCallout',
  LeftArrowCallout = 'leftArrowCallout',
  UpArrowCallout = 'upArrowCallout',
  LeftRightArrowCallout = 'leftRightArrowCallout',
  QuadArrowCallout = 'quadArrowCallout',
  CircularArrow = 'circularArrow',
  MathPlus = 'mathPlus',
  MathMinus = 'mathMinus',
  MathMultiply = 'mathMultiply',
  MathDivide = 'mathDivide',
  MathEqual = 'mathEqual',
  MathNotEqual = 'mathNotEqual',
  FlowchartProcess = 'flowChartProcess',
  FlowchartAlternateProcess = 'flowChartAlternateProcess',
  FlowchartDecision = 'flowChartDecision',
  FlowChartInputOutput = 'flowChartInputOutput',
  FlowchartPredefinedProcess = 'flowChartPredefinedProcess',
  FlowchartInternalStorage = 'flowChartInternalStorage',
  FlowchartDocument = 'flowChartDocument',
  FlowchartMultiDocument = 'flowChartMultidocument',
  FlowchartTerminator = 'flowChartTerminator',
  FlowchartPreparation = 'flowChartPreparation',
  FlowchartManualInput = 'flowChartManualInput',
  FlowchartManualOperation = 'flowChartManualOperation',
  FlowchartConnector = 'flowChartConnector',
  FlowchartOffPageConnector = 'flowChartOffpageConnector',
  FlowchartPunchedCard = 'flowChartPunchedCard',
  FlowchartPunchedTape = 'flowChartPunchedTape',
  FlowchartSummingJunction = 'flowChartSummingJunction',
  FlowchartOr = 'flowChartOr',
  FlowchartCollate = 'flowChartCollate',
  FlowchartSort = 'flowChartSort',
  FlowchartExtract = 'flowChartExtract',
  FlowchartMerge = 'flowChartMerge',
  FlowchartOnlineStorage = 'flowChartOnlineStorage',
  FlowchartDelay = 'flowChartDelay',
  FlowchartMagneticTape = 'flowChartMagneticTape',
  FlowchartMagneticDisk = 'flowChartMagneticDisk',
  FlowchartMagneticDrum = 'flowChartMagneticDrum',
  FlowchartDisplay = 'flowChartDisplay',
  WedgeRectCallout = 'wedgeRectCallout',
  WedgeRoundRectCallout = 'wedgeRoundRectCallout',
  WedgeEllipseCallout = 'wedgeEllipseCallout',
  CloudCallout = 'cloudCallout',
  BorderCallout1 = 'borderCallout1',
  BorderCallout2 = 'borderCallout2',
  BorderCallout3 = 'borderCallout3',
  AccentCallout1 = 'accentCallout1',
  AccentCallout2 = 'accentCallout2',
  AccentCallout3 = 'accentCallout3',
  Callout1 = 'callout1',
  Callout2 = 'callout2',
  Callout3 = 'callout3',
  AccentBorderCallout1 = 'accentBorderCallout1',
  AccentBorderCallout2 = 'accentBorderCallout2',
  AccentBorderCallout3 = 'accentBorderCallout3',
  Ribbon = 'ribbon',
  Ribbon2 = 'ribbon2',
  EllipseRibbon = 'ellipseRibbon',
  EllipseRibbon2 = 'ellipseRibbon2',
  VerticalScroll = 'verticalScroll',
  HorizontalScroll = 'horizontalScroll',
  Wave = 'wave',
  DoubleWave = 'doubleWave',
  Cube = 'cube',
  Can = 'can',
  LightningBolt = 'lightningBolt',
  Heart = 'heart',
  Sun = 'sun',
  Moon = 'moon',
  SmileyFace = 'smileyFace',
  IrregularSeal1 = 'irregularSeal1',
  IrregularSeal2 = 'irregularSeal2',
  FoldedCorner = 'foldedCorner',
  Bevel = 'bevel',
  Donut = 'donut',
  NoSmoking = 'noSmoking',
  BlockArc = 'blockArc',
  Teardrop = 'teardrop',
  PieWedge = 'pieWedge',
  Pie = 'pie',
  Funnel = 'funnel',
  Gear6 = 'gear6',
  Gear9 = 'gear9',
  Decagon = 'decagon',
  Dodecagon = 'dodecagon',
  CornerTabs = 'cornerTabs',
  LeftBrace = 'leftBrace',
  RightBrace = 'rightBrace',
  LeftBracket = 'leftBracket',
  RightBracket = 'rightBracket',
  ActionButtonBackPrevious = 'actionButtonBackPrevious',
  ActionButtonForwardNext = 'actionButtonForwardNext',
  ActionButtonBeginning = 'actionButtonBeginning',
  ActionButtonEnd = 'actionButtonEnd',
  ActionButtonHome = 'actionButtonHome',
  ActionButtonInformation = 'actionButtonInformation',
  ActionButtonReturn = 'actionButtonReturn',
  ActionButtonMovie = 'actionButtonMovie',
  ActionButtonDocument = 'actionButtonDocument',
  ActionButtonSound = 'actionButtonSound',
  ActionButtonHelp = 'actionButtonHelp',
  ActionButtonBlank = 'actionButtonBlank',
  BracePair = 'bracePair',
  BracketPair = 'bracketPair',
  ChartPlus = 'chartPlus',
  ChartStar = 'chartStar',
  ChartX = 'chartX',
  Cloud = 'cloud',
  FlowChartOfflineStorage = 'flowChartOfflineStorage',
  LineInv = 'lineInv',
  NonIsoscelesTrapezoid = 'nonIsoscelesTrapezoid',
  PlaqueTabs = 'plaqueTabs',
  SquareTabs = 'squareTabs',
  Star4 = 'star4',
  UpDownArrowCallout = 'upDownArrowCallout',
  Line = 'line',
  StraightConnector1 = 'straightConnector1',
  BentConnector2 = 'bentConnector2',
  BentConnector3 = 'bentConnector3',
  BentConnector4 = 'bentConnector4',
  BentConnector5 = 'bentConnector5',
  CurvedConnector2 = 'curvedConnector2',
  CurvedConnector3 = 'curvedConnector3',
  CurvedConnector4 = 'curvedConnector4',
  CurvedConnector5 = 'curvedConnector5',
}
```

## `ImageFillModeEnum` [#imagefillmodeenum]

`import { ImageFillModeEnum } from '@univerjs-pro/engine-shape'` · Used by [`IBasicShapeData`](#ibasicshapedata)

The image fill mode when ShapeFillEnum is PictureFill

```ts
enum ImageFillModeEnum {
  Stretch = 1,
  Tile = 2,
}
```

## `ImageSourceTypeEnum` [#imagesourcetypeenum]

`import type { ImageSourceTypeEnum } from '@univerjs-pro/engine-shape'` · Used by [`IBasicShapeData`](#ibasicshapedata)

```ts
type ImageSourceTypeEnum = ImageSourceType
```

**Related types:** [`ImageSourceType`](https://docs.univer.ai/ru-RU/reference/types/common-types.md#imagesourcetype)

## `IPresetShapeConfig` [#ipresetshapeconfig]

`import type { IPresetShapeConfig } from '@univerjs-pro/engine-shape'` · Used by [`IBasicShapeData`](#ibasicshapedata) · [`IBoardShapeGeometry`](https://docs.univer.ai/ru-RU/reference/types/boards-types.md#iboardshapegeometry)

```ts
interface IPresetShapeConfig {
  arcAngleMode?: 'visual' | 'parametric'

  adjustValues?: Record<string, ShapeOperatorValue>

  gd?: Record<string, ShapeOperatorValue>

  gdKeyList?: string[]

  ahLst?: Array<IShapeAdjustItem>

  cxnLst?: Array<{
    ang: string | number

    x: string | number

    y: string | number
  }>

  rect?: {
    l: string | number

    t: string | number

    r: string | number

    b: string | number
  }

  pathLst?: IShapePath[]
}
```

**Related types:** [`ShapeOperatorValue`](#shapeoperatorvalue) · [`IShapeAdjustItem`](#ishapeadjustitem) · [`IShapePath`](#ishapepath)

## `IShape3D` [#ishape3d]

`import type { IShape3D } from '@univerjs-pro/engine-shape'` · Used by [`IBasicShapeData`](#ibasicshapedata) · [`IShapeTextBodyBehavior`](#ishapetextbodybehavior)

Shape depth/material corresponding to DrawingML `<a:sp3d>`.

```ts
interface IShape3D {
  z?: number
  extrusionHeight?: number
  contourWidth?: number
  material?: ShapeMaterialPresetEnum
  topBevel?: IShapeBevel3D
  bottomBevel?: IShapeBevel3D
  extrusionColor?: string
  contourColor?: string
}
```

**Related types:** [`ShapeMaterialPresetEnum`](#shapematerialpresetenum) · [`IShapeBevel3D`](#ishapebevel3d)

## `IShapeFormulaBinding` [#ishapeformulabinding]

`import type { IShapeFormulaBinding } from '@univerjs-pro/engine-shape'` · Used by [`IBasicShapeData`](#ibasicshapedata)

Formula data persisted by a formula-backed text-box shape.

```ts
interface IShapeFormulaBinding {
  formula: string

  animationEnabled?: boolean

  numberFormat?: {
    pattern: string
  }

  lastValue?: IFormulaLastValue
}
```

## `IShapeReflectionEffect` [#ishapereflectioneffect]

Nested type in [`@univerjs-pro/engine-shape`](https://docs.univer.ai/ru-RU/reference/packages/plugins/univerjs-pro/engine-shape.md) · Used by [`IBasicShapeData`](#ibasicshapedata)

Reflection corresponding to DrawingML `<a:reflection>`.

```ts
interface IShapeReflectionEffect {
  blurRadius?: number

  startAlpha?: number

  endAlpha?: number

  distance?: number

  direction?: number

  scaleY?: number
}
```

## `IShapeRelation` [#ishaperelation]

`import type { IShapeRelation } from '@univerjs-pro/engine-shape'` · Used by [`ICxnShapeData`](#icxnshapedata)

Shape relation interface for connecting shapes
from: starting shape and connection point index
to: ending shape and connection point index

```ts
interface IShapeRelation {
  from?: IShapeRelationItem
  to?: IShapeRelationItem
}
```

**Related types:** [`IShapeRelationItem`](#ishaperelationitem)

## `IShapeScene3D` [#ishapescene3d]

`import type { IShapeScene3D } from '@univerjs-pro/engine-shape'` · Used by [`IBasicShapeData`](#ibasicshapedata) · [`IShapeTextBodyBehavior`](#ishapetextbodybehavior)

Shape scene corresponding to DrawingML `<a:scene3d>`.

```ts
interface IShapeScene3D {
  viewport?: IShapeRect & Pick<ISmartArtTransform, 'rotation' | 'flipX' | 'flipY'>
  camera: {
    preset: ShapeCameraPresetEnum
    fieldOfView?: number
    zoom?: number
    rotation?: IShape3DRotation

    projection?: IShape3DCameraProjection
  }
  lightRig: {
    preset: ShapeLightRigPresetEnum
    direction: ShapeLightRigDirectionEnum
    rotation?: IShape3DRotation
  }
  backdrop?: {
    anchor: IShape3DVector
    normal: IShape3DVector
    upVector: IShape3DVector
  }
}
```

**Related types:** [`IShapeRect`](#ishaperect) · [`ShapeCameraPresetEnum`](#shapecamerapresetenum) · [`IShape3DRotation`](#ishape3drotation) · [`IShape3DCameraProjection`](#ishape3dcameraprojection) · [`ShapeLightRigPresetEnum`](#shapelightrigpresetenum) · [`ShapeLightRigDirectionEnum`](#shapelightrigdirectionenum) · [`IShape3DVector`](#ishape3dvector)

## `IShapeSoftEdgeEffect` [#ishapesoftedgeeffect]

Nested type in [`@univerjs-pro/engine-shape`](https://docs.univer.ai/ru-RU/reference/packages/plugins/univerjs-pro/engine-shape.md) · Used by [`IBasicShapeData`](#ibasicshapedata)

Soft edge corresponding to DrawingML `<a:softEdge>`.

```ts
interface IShapeSoftEdgeEffect {
  radius: number
}
```

## `IShapeTextData` [#ishapetextdata]

`import type { IShapeTextData } from '@univerjs-pro/engine-shape'` · Used by [`IBasicShapeData`](#ibasicshapedata) · [`ISmartArtDataNode`](#ismartartdatanode) · [`ISmartArtTopologyPoint`](#ismartarttopologypoint)

```ts
type IShapeTextData = IShapeText | ICustomShapeTextData
```

**Related types:** [`IShapeText`](#ishapetext) · [`ICustomShapeTextData`](#icustomshapetextdata)

## `IShapeTextRectPadding` [#ishapetextrectpadding]

`import type { IShapeTextRectPadding } from '@univerjs-pro/engine-shape'` · Used by [`IBasicShapeData`](#ibasicshapedata) · [`ISmartArtPresentationShape`](#ismartartpresentationshape)

```ts
interface IShapeTextRectPadding {
  left: number

  top: number

  right: number

  bottom: number
}
```

## `ISmartArtShapeData` [#ismartartshapedata]

`import type { ISmartArtShapeData } from '@univerjs-pro/engine-shape'` · Used by [`IShapeData`](#ishapedata)

SmartArt persists as one composite Shape while its presentation Shapes remain independently editable subentities.

```ts
interface ISmartArtShapeData extends IBasicShapeData {
  shapeType: ShapeTypeEnum.SmartArt
  smartArt: ISmartArtData
}
```

**Related types:** [`IBasicShapeData`](#ibasicshapedata) · [`ShapeTypeEnum.SmartArt`](#shapetypeenum) · [`ISmartArtData`](#ismartartdata)

## `ShapeArrowSizeEnum` [#shapearrowsizeenum]

`import { ShapeArrowSizeEnum } from '@univerjs-pro/engine-shape'` · Used by [`ICxnShapeData`](#icxnshapedata)

```ts
enum ShapeArrowSizeEnum {
  Small = 1,
  Medium = 2,
  Large = 3,
}
```

## `ShapeArrowTypeEnum` [#shapearrowtypeenum]

`import { ShapeArrowTypeEnum } from '@univerjs-pro/engine-shape'` · Used by [`ICxnShapeData`](#icxnshapedata)

The arrow type of connector line shape

```ts
enum ShapeArrowTypeEnum {
  None = 0,
  Arrow = 1,
  OpenArrow = 2,
  DiamondArrow = 3,
  StealthArrow = 4,
  OvalArrow = 5,
}
```

## `ShapeFillEnum` [#shapefillenum]

`import { ShapeFillEnum } from '@univerjs-pro/engine-shape'` · Used by [`IBasicShapeData`](#ibasicshapedata)

Shape fill type enum
Shape fill types supported by the renderer.

```ts
enum ShapeFillEnum {
  NoFill = 1,
  SolidFill = 2,
  GradientFill = 3,
  PatternFill = 4,
  PictureFill = 5,
}
```

## `ShapeGradientTypeEnum` [#shapegradienttypeenum]

`import { ShapeGradientTypeEnum } from '@univerjs-pro/engine-shape'` · Used by [`IBasicShapeData`](#ibasicshapedata)

```ts
enum ShapeGradientTypeEnum {
  Linear = 1,
  Radial = 2,
  Angular = 3,
  Diamond = 4,
}
```

## `ShapeLineCapEnum` [#shapelinecapenum]

`import { ShapeLineCapEnum } from '@univerjs-pro/engine-shape'` · Used by [`IShapeLineStyle`](#ishapelinestyle)

The line cap type of shape line style or basic shape line stroke style

```ts
enum ShapeLineCapEnum {
  Flat = 1,
  Round = 2,
  Square = 3,
}
```

## `ShapeLineDashEnum` [#shapelinedashenum]

`import { ShapeLineDashEnum } from '@univerjs-pro/engine-shape'` · Used by [`IShapeLineStyle`](#ishapelinestyle)

Shape line style enums
This enum is used define basic shape stroke style or line shape stroke style

```ts
enum ShapeLineDashEnum {
  Solid = 1,
  RoundDot = 2,
  SquareDot = 3,
  Dash = 4,
  DashDot = 5,
  LongDash = 6,
  LongDashDot = 7,
  LongDashDotDot = 8,
  SystemDash = 9,
  SystemDashDot = 10,
  SystemDashDotDot = 11,
}
```

## `ShapeLineJoinEnum` [#shapelinejoinenum]

`import { ShapeLineJoinEnum } from '@univerjs-pro/engine-shape'` · Used by [`IShapeLineStyle`](#ishapelinestyle)

The line join type of shape line style or basic shape line stroke style

```ts
enum ShapeLineJoinEnum {
  Miter = 1,
  Round = 2,
  Bevel = 3,
}
```

## `ShapeLineTypeEnum` [#shapelinetypeenum]

`import { ShapeLineTypeEnum } from '@univerjs-pro/engine-shape'` · Used by [`IShapeLineStyle`](#ishapelinestyle)

Shape line type enum
This enum is used to define the line fill type (no line, solid, gradient)

```ts
enum ShapeLineTypeEnum {
  NoLine = 1,
  SolidLine = 2,
  GradientLine = 3,
}
```

## `ShapeSketchTypeEnum` [#shapesketchtypeenum]

`import { ShapeSketchTypeEnum } from '@univerjs-pro/engine-shape'` · Used by [`IShapeLineStyle`](#ishapelinestyle)

Shape sketch (hand-drawn) style enum.
Controls how strongly the stroke is perturbed to look like a hand-drawn line.

- None      – regular vector stroke, no perturbation
- Curved    – very slight smooth waviness
- Freehand  – moderate irregular deformation
- HandDrawn – heavy rough deformation rendered in two overlapping passes

```ts
enum ShapeSketchTypeEnum {
  None = 1,
  Curved = 2,
  Freehand = 3,
  HandDrawn = 4,
}
```

## `ICustomShapeTextData` [#icustomshapetextdata]

`import type { ICustomShapeTextData } from '@univerjs-pro/engine-shape'` · Used by [`IShapeTextData`](#ishapetextdata)

```ts
interface ICustomShapeTextData extends IShapeTextAlign, IShapeTextBodyBehavior {
  text?: string
  dataModel?: IShapeTextDataModel
}
```

**Related types:** [`IShapeTextAlign`](#ishapetextalign) · [`IShapeTextBodyBehavior`](#ishapetextbodybehavior) · [`IShapeTextDataModel`](#ishapetextdatamodel)

## `IShape3DCameraProjection` [#ishape3dcameraprojection]

Nested type in [`@univerjs-pro/engine-shape`](https://docs.univer.ai/ru-RU/reference/packages/plugins/univerjs-pro/engine-shape.md) · Used by [`IShapeScene3D`](#ishapescene3d)

Normalized 2.5D projection resolved from a built-in camera or SmartArt style.

```ts
interface IShape3DCameraProjection {
  rotation?: IShape3DRotation
  verticalOffsetRatio?: number
  verticalScale?: number
}
```

**Related types:** [`IShape3DRotation`](#ishape3drotation)

## `IShape3DRotation` [#ishape3drotation]

`import type { IShape3DRotation } from '@univerjs-pro/engine-shape'` · Used by [`IShapeScene3D`](#ishapescene3d) · [`IShape3DCameraProjection`](#ishape3dcameraprojection)

Rotation in degrees corresponding to DrawingML `<a:rot lat="..." lon="..." rev="...">`.

```ts
interface IShape3DRotation {
  latitude?: number
  longitude?: number
  revolution?: number
}
```

## `IShape3DVector` [#ishape3dvector]

`import type { IShape3DVector } from '@univerjs-pro/engine-shape'` · Used by [`IShapeScene3D`](#ishapescene3d)

A point/vector in the DrawingML 3D scene coordinate system.

```ts
interface IShape3DVector {
  x: number
  y: number
  z: number
}
```

## `IShapeAdjustItem` [#ishapeadjustitem]

Nested type in [`@univerjs-pro/engine-shape`](https://docs.univer.ai/ru-RU/reference/packages/plugins/univerjs-pro/engine-shape.md) · Used by [`IPresetShapeConfig`](#ipresetshapeconfig)

```ts
interface IShapeAdjustItem {
  type: 'ahXY' | 'ahPolar'

  gdRefX?: string

  gdRefR?: string

  minX?: string | number
  maxX?: string | number
  minR?: string | number
  maxR?: string | number

  gdRefY?: string

  gdRefAng?: string

  minY?: string | number
  maxY?: string | number
  minAng?: string | number
  maxAng?: string | number

  pos: { x: string | number; y: string | number }
}
```

## `IShapeBevel3D` [#ishapebevel3d]

Nested type in [`@univerjs-pro/engine-shape`](https://docs.univer.ai/ru-RU/reference/packages/plugins/univerjs-pro/engine-shape.md) · Used by [`IShape3D`](#ishape3d)

Bevel corresponding to DrawingML `<a:bevelT>` or `<a:bevelB>`.

```ts
interface IShapeBevel3D {
  width?: number
  height?: number
  preset?: ShapeBevelPresetEnum
}
```

**Related types:** [`ShapeBevelPresetEnum`](#shapebevelpresetenum)

## `IShapePath` [#ishapepath]

`import type { IShapePath } from '@univerjs-pro/engine-shape'` · Used by [`IPresetShapeConfig`](#ipresetshapeconfig) · [`IBoardShapePath`](https://docs.univer.ai/ru-RU/reference/types/boards-types.md#iboardshapepath)

Single path definition for shape rendering

```ts
interface IShapePath {
  w?: number

  h?: number

  fill?: 'none' | 'norm' | 'lighten' | 'lightenLess' | 'darken' | 'darkenLess' | 'evenodd'

  stroke?: boolean

  extrusionOk?: boolean

  data?: string

  dataArray?: IPathCommand[]
}
```

**Related types:** [`IPathCommand`](#ipathcommand)

## `IShapeRect` [#ishaperect]

`import type { IShapeRect } from '@univerjs-pro/engine-shape'` · Used by [`IShapeScene3D`](#ishapescene3d)

```ts
interface IShapeRect {
  left: number
  top: number
  width: number
  height: number
}
```

## `IShapeRelationItem` [#ishaperelationitem]

`import type { IShapeRelationItem } from '@univerjs-pro/engine-shape'` · Used by [`IShapeRelation`](#ishaperelation)

```ts
interface IShapeRelationItem {
  shapeId: string
  cxnIndex: number
}
```

## `IShapeText` [#ishapetext]

`import type { IShapeText } from '@univerjs-pro/engine-shape'` · Used by [`IShapeTextData`](#ishapetextdata)

```ts
interface IShapeText extends IShapeTextAlign, IShapeTextBodyBehavior {
  isRichText: false
  text?: string
  color?: string
  fontFamily?: string
  fontSize?: number
  bold?: boolean
  italic?: boolean
  underline?: boolean
}
```

**Related types:** [`IShapeTextAlign`](#ishapetextalign) · [`IShapeTextBodyBehavior`](#ishapetextbodybehavior)

## `ISmartArtData` [#ismartartdata]

`import type { ISmartArtData } from '@univerjs-pro/engine-shape'` · Used by [`ISmartArtShapeData`](#ismartartshapedata)

Univer's normalized SmartArt model. OOXML parts are mapped to and from this structure by exchange adapters.

```ts
interface ISmartArtData {
  version: 1

  viewport?: { width: number; height: number }
  layout: {
    id: string
    category: SmartArtCategoryEnum
    editCapabilities?: ISmartArtEditCapabilities
  }
  style: {
    quickStyleId?: string
    colorStyleId?: string
  }
  direction: SmartArtDirectionEnum
  rootNodeIds: string[]
  nodes: Record<string, ISmartArtDataNode>
  presentationShapeOrder: string[]
  presentationShapes: Record<string, ISmartArtPresentationShape>
  topology?: ISmartArtTopology
  definitions?: ISmartArtDefinitions

  structureDirty?: boolean
}
```

**Related types:** [`SmartArtCategoryEnum`](#smartartcategoryenum) · [`ISmartArtEditCapabilities`](#ismartarteditcapabilities) · [`SmartArtDirectionEnum`](#smartartdirectionenum) · [`ISmartArtDataNode`](#ismartartdatanode) · [`ISmartArtPresentationShape`](#ismartartpresentationshape) · [`ISmartArtTopology`](#ismartarttopology) · [`ISmartArtDefinitions`](#ismartartdefinitions)

## `ISmartArtTransform` [#ismartarttransform]

`import type { ISmartArtTransform } from '@univerjs-pro/engine-shape'` · Used by [`IShapeScene3D`](#ishapescene3d) · [`ISmartArtPresentationShape`](#ismartartpresentationshape)

```ts
interface ISmartArtTransform {
  left: number
  top: number
  width: number
  height: number
  rotation?: number
  flipX?: boolean
  flipY?: boolean
}
```

## `ShapeCameraPresetEnum` [#shapecamerapresetenum]

`import { ShapeCameraPresetEnum } from '@univerjs-pro/engine-shape'` · Used by [`IShapeScene3D`](#ishapescene3d)

OOXML ST_PresetCameraType values used by `<a:camera prst="...">`.

```ts
enum ShapeCameraPresetEnum {
  LegacyObliqueTopLeft = 'legacyObliqueTopLeft',
  LegacyObliqueTop = 'legacyObliqueTop',
  LegacyObliqueTopRight = 'legacyObliqueTopRight',
  LegacyObliqueLeft = 'legacyObliqueLeft',
  LegacyObliqueFront = 'legacyObliqueFront',
  LegacyObliqueRight = 'legacyObliqueRight',
  LegacyObliqueBottomLeft = 'legacyObliqueBottomLeft',
  LegacyObliqueBottom = 'legacyObliqueBottom',
  LegacyObliqueBottomRight = 'legacyObliqueBottomRight',
  LegacyPerspectiveTopLeft = 'legacyPerspectiveTopLeft',
  LegacyPerspectiveTop = 'legacyPerspectiveTop',
  LegacyPerspectiveTopRight = 'legacyPerspectiveTopRight',
  LegacyPerspectiveLeft = 'legacyPerspectiveLeft',
  LegacyPerspectiveFront = 'legacyPerspectiveFront',
  LegacyPerspectiveRight = 'legacyPerspectiveRight',
  LegacyPerspectiveBottomLeft = 'legacyPerspectiveBottomLeft',
  LegacyPerspectiveBottom = 'legacyPerspectiveBottom',
  LegacyPerspectiveBottomRight = 'legacyPerspectiveBottomRight',
  OrthographicFront = 'orthographicFront',
  IsometricTopUp = 'isometricTopUp',
  IsometricTopDown = 'isometricTopDown',
  IsometricBottomUp = 'isometricBottomUp',
  IsometricBottomDown = 'isometricBottomDown',
  IsometricLeftUp = 'isometricLeftUp',
  IsometricLeftDown = 'isometricLeftDown',
  IsometricRightUp = 'isometricRightUp',
  IsometricRightDown = 'isometricRightDown',
  IsometricOffAxis1Left = 'isometricOffAxis1Left',
  IsometricOffAxis1Right = 'isometricOffAxis1Right',
  IsometricOffAxis1Top = 'isometricOffAxis1Top',
  IsometricOffAxis2Left = 'isometricOffAxis2Left',
  IsometricOffAxis2Right = 'isometricOffAxis2Right',
  IsometricOffAxis2Top = 'isometricOffAxis2Top',
  IsometricOffAxis3Left = 'isometricOffAxis3Left',
  IsometricOffAxis3Right = 'isometricOffAxis3Right',
  IsometricOffAxis3Bottom = 'isometricOffAxis3Bottom',
  IsometricOffAxis4Left = 'isometricOffAxis4Left',
  IsometricOffAxis4Right = 'isometricOffAxis4Right',
  IsometricOffAxis4Bottom = 'isometricOffAxis4Bottom',
  ObliqueTopLeft = 'obliqueTopLeft',
  ObliqueTop = 'obliqueTop',
  ObliqueTopRight = 'obliqueTopRight',
  ObliqueLeft = 'obliqueLeft',
  ObliqueRight = 'obliqueRight',
  ObliqueBottomLeft = 'obliqueBottomLeft',
  ObliqueBottom = 'obliqueBottom',
  ObliqueBottomRight = 'obliqueBottomRight',
  PerspectiveFront = 'perspectiveFront',
  PerspectiveLeft = 'perspectiveLeft',
  PerspectiveRight = 'perspectiveRight',
  PerspectiveAbove = 'perspectiveAbove',
  PerspectiveBelow = 'perspectiveBelow',
  PerspectiveAboveLeftFacing = 'perspectiveAboveLeftFacing',
  PerspectiveAboveRightFacing = 'perspectiveAboveRightFacing',
  PerspectiveContrastingLeftFacing = 'perspectiveContrastingLeftFacing',
  PerspectiveContrastingRightFacing = 'perspectiveContrastingRightFacing',
  PerspectiveHeroicLeftFacing = 'perspectiveHeroicLeftFacing',
  PerspectiveHeroicRightFacing = 'perspectiveHeroicRightFacing',
  PerspectiveHeroicExtremeLeftFacing = 'perspectiveHeroicExtremeLeftFacing',
  PerspectiveHeroicExtremeRightFacing = 'perspectiveHeroicExtremeRightFacing',
  PerspectiveRelaxed = 'perspectiveRelaxed',
  PerspectiveRelaxedModerately = 'perspectiveRelaxedModerately',
}
```

## `ShapeLightRigDirectionEnum` [#shapelightrigdirectionenum]

`import { ShapeLightRigDirectionEnum } from '@univerjs-pro/engine-shape'` · Used by [`IShapeScene3D`](#ishapescene3d)

OOXML ST_LightRigDirection values.

```ts
enum ShapeLightRigDirectionEnum {
  TopLeft = 'tl',
  Top = 't',
  TopRight = 'tr',
  Left = 'l',
  Right = 'r',
  BottomLeft = 'bl',
  Bottom = 'b',
  BottomRight = 'br',
}
```

## `ShapeLightRigPresetEnum` [#shapelightrigpresetenum]

`import { ShapeLightRigPresetEnum } from '@univerjs-pro/engine-shape'` · Used by [`IShapeScene3D`](#ishapescene3d)

OOXML ST_LightRigType values used by `<a:lightRig rig="...">`.

```ts
enum ShapeLightRigPresetEnum {
  LegacyFlat1 = 'legacyFlat1',
  LegacyFlat2 = 'legacyFlat2',
  LegacyFlat3 = 'legacyFlat3',
  LegacyFlat4 = 'legacyFlat4',
  LegacyNormal1 = 'legacyNormal1',
  LegacyNormal2 = 'legacyNormal2',
  LegacyNormal3 = 'legacyNormal3',
  LegacyNormal4 = 'legacyNormal4',
  LegacyHarsh1 = 'legacyHarsh1',
  LegacyHarsh2 = 'legacyHarsh2',
  LegacyHarsh3 = 'legacyHarsh3',
  LegacyHarsh4 = 'legacyHarsh4',
  ThreePoint = 'threePt',
  Balanced = 'balanced',
  Soft = 'soft',
  Harsh = 'harsh',
  Flood = 'flood',
  Contrasting = 'contrasting',
  Morning = 'morning',
  Sunrise = 'sunrise',
  Sunset = 'sunset',
  Chilly = 'chilly',
  Freezing = 'freezing',
  Flat = 'flat',
  TwoPoint = 'twoPt',
  Glow = 'glow',
  BrightRoom = 'brightRoom',
}
```

## `ShapeMaterialPresetEnum` [#shapematerialpresetenum]

`import { ShapeMaterialPresetEnum } from '@univerjs-pro/engine-shape'` · Used by [`IShape3D`](#ishape3d)

OOXML ST_PresetMaterialType values used by `<a:sp3d prstMaterial="...">`.

```ts
enum ShapeMaterialPresetEnum {
  LegacyMatte = 'legacyMatte',
  LegacyPlastic = 'legacyPlastic',
  LegacyMetal = 'legacyMetal',
  LegacyWireframe = 'legacyWireframe',
  Matte = 'matte',
  Plastic = 'plastic',
  Metal = 'metal',
  WarmMatte = 'warmMatte',
  TranslucentPowder = 'translucentPowder',
  Powder = 'powder',
  DarkEdge = 'dkEdge',
  SoftEdge = 'softEdge',
  Clear = 'clear',
  Flat = 'flat',
  SoftMetal = 'softmetal',
}
```

## `ShapeOperatorValue` [#shapeoperatorvalue]

Nested type in [`@univerjs-pro/engine-shape`](https://docs.univer.ai/ru-RU/reference/packages/plugins/univerjs-pro/engine-shape.md) · Used by [`IPresetShapeConfig`](#ipresetshapeconfig)

```ts
type ShapeOperatorValue = [ShapeOperatorEnum, ...Array<string | number>]
```

**Related types:** [`ShapeOperatorEnum`](#shapeoperatorenum)

## `IPathCommand` [#ipathcommand]

`import type { IPathCommand } from '@univerjs-pro/engine-shape'` · Used by [`IShapePath`](#ishapepath)

Individual path command with its parameters

```ts
interface IPathCommand {
  command: PathCommandType

  points: Array<IGdContextKey | number>

  center?: [IGdContextKey | number, IGdContextKey | number, boolean]

  start?: {
    x: number
    y: number
  }

  pathLength?: number
}
```

**Related types:** [`PathCommandType`](#pathcommandtype) · [`IGdContextKey`](#igdcontextkey)

## `IShapeTextAlign` [#ishapetextalign]

Nested type in [`@univerjs-pro/engine-shape`](https://docs.univer.ai/ru-RU/reference/packages/plugins/univerjs-pro/engine-shape.md) · Used by [`IShapeText`](#ishapetext) · [`ICustomShapeTextData`](#icustomshapetextdata)

```ts
interface IShapeTextAlign {
  isHorizontal: boolean
  textDirection?: ShapeTextDirection
}
```

**Related types:** [`ShapeTextDirection`](#shapetextdirection)

## `IShapeTextBodyBehavior` [#ishapetextbodybehavior]

`import type { IShapeTextBodyBehavior } from '@univerjs-pro/engine-shape'` · Used by [`IShapeText`](#ishapetext) · [`ICustomShapeTextData`](#icustomshapetextdata)

```ts
interface IShapeTextBodyBehavior {
  horizontalAnchor?: ShapeTextHorizontalAnchor
  textWrap?: ShapeTextWrapType

  verticalOverflow?: 'overflow' | 'clip' | 'ellipsis'
  autoFitType?: ShapeTextAutoFitType

  autoFit?: boolean

  fontScale?: number

  lineSpaceReduction?: number

  scene3d?: IShapeScene3D

  shape3d?: IShape3D
}
```

**Related types:** [`ShapeTextHorizontalAnchor`](#shapetexthorizontalanchor) · [`ShapeTextWrapType`](#shapetextwraptype) · [`ShapeTextAutoFitType`](#shapetextautofittype) · [`IShapeScene3D`](#ishapescene3d) · [`IShape3D`](#ishape3d)

## `IShapeTextDataModel` [#ishapetextdatamodel]

`import type { IShapeTextDataModel } from '@univerjs-pro/engine-shape'` · Used by [`ICustomShapeTextData`](#icustomshapetextdata)

```ts
interface IShapeTextDataModel {
  doc?: IDocumentData
  ha?: HorizontalAlign
  va?: VerticalAlign
}
```

**Related types:** [`IDocumentData`](https://docs.univer.ai/ru-RU/reference/types/document-data.md) · [`HorizontalAlign`](https://docs.univer.ai/ru-RU/reference/enums/horizontal-align.md) · [`VerticalAlign`](https://docs.univer.ai/ru-RU/reference/enums/vertical-align.md)

## `ISmartArtDataNode` [#ismartartdatanode]

`import type { ISmartArtDataNode } from '@univerjs-pro/engine-shape'` · Used by [`ISmartArtData`](#ismartartdata)

Logical content node edited through the SmartArt Text Pane.

```ts
interface ISmartArtDataNode {
  id: string
  parentId?: string
  childIds: string[]
  role: SmartArtNodeRoleEnum
  text: IShapeTextData

  fontSizeMode?: SmartArtTextFontSizeModeEnum

  formatOverrides?: ISmartArtTextFormatOverrides
}
```

**Related types:** [`SmartArtNodeRoleEnum`](#smartartnoderoleenum) · [`IShapeTextData`](#ishapetextdata) · [`SmartArtTextFontSizeModeEnum`](#smartarttextfontsizemodeenum) · [`ISmartArtTextFormatOverrides`](#ismartarttextformatoverrides)

## `ISmartArtDefinitions` [#ismartartdefinitions]

Nested type in [`@univerjs-pro/engine-shape`](https://docs.univer.ai/ru-RU/reference/packages/plugins/univerjs-pro/engine-shape.md) · Used by [`ISmartArtData`](#ismartartdata)

Univer semantic programs used both by the layout engine and OOXML adapters.

```ts
interface ISmartArtDefinitions {
  layout?: ISmartArtDefinitionInstruction
  quickStyle?: ISmartArtDefinitionInstruction
  colorStyle?: ISmartArtDefinitionInstruction
}
```

**Related types:** [`ISmartArtDefinitionInstruction`](#ismartartdefinitioninstruction)

## `ISmartArtEditCapabilities` [#ismartarteditcapabilities]

`import type { ISmartArtEditCapabilities } from '@univerjs-pro/engine-shape'` · Used by [`ISmartArtData`](#ismartartdata)

Structural edit limits normalized from the SmartArt layout definition (for example `chMax` and assistant branches).

```ts
interface ISmartArtEditCapabilities {
  maxDepth?: number
  supportsAddAfter?: boolean
  supportsAssistant: boolean
}
```

## `ISmartArtPresentationShape` [#ismartartpresentationshape]

`import type { ISmartArtPresentationShape } from '@univerjs-pro/engine-shape'` · Used by [`ISmartArtData`](#ismartartdata)

One independently selectable ordinary Shape inside the SmartArt composite.

```ts
interface ISmartArtPresentationShape {
  id: string

  presentationPointId?: string
  name?: string
  role: SmartArtPresentationShapeRoleEnum
  dataNodeIds: string[]
  transform: ISmartArtTransform

  textTransform?: ISmartArtTransform

  textBodyPadding?: IShapeTextRectPadding

  styleReference?: ISmartArtDefinitionInstruction
  shapeData: IBasicShapeData

  formatOverrides?: ISmartArtTextFormatOverrides
  textSource?: SmartArtPresentationTextSourceEnum
  textBindings?: ISmartArtPresentationTextBinding[]
  sourcePresentationShapeId?: string
  targetPresentationShapeId?: string
}
```

**Related types:** [`SmartArtPresentationShapeRoleEnum`](#smartartpresentationshaperoleenum) · [`ISmartArtTransform`](#ismartarttransform) · [`IShapeTextRectPadding`](#ishapetextrectpadding) · [`ISmartArtDefinitionInstruction`](#ismartartdefinitioninstruction) · [`IBasicShapeData`](#ibasicshapedata) · [`ISmartArtTextFormatOverrides`](#ismartarttextformatoverrides) · [`SmartArtPresentationTextSourceEnum`](#smartartpresentationtextsourceenum) · [`ISmartArtPresentationTextBinding`](#ismartartpresentationtextbinding)

## `ISmartArtTopology` [#ismartarttopology]

Nested type in [`@univerjs-pro/engine-shape`](https://docs.univer.ai/ru-RU/reference/packages/plugins/univerjs-pro/engine-shape.md) · Used by [`ISmartArtData`](#ismartartdata)

Complete semantic layout graph used by layout engines and exchange adapters.
It is intentionally independent from XML nodes and includes transition/presentation points hidden by the Text Pane.

```ts
interface ISmartArtTopology {
  pointOrder: string[]
  points: Record<string, ISmartArtTopologyPoint>
  connectionOrder: string[]
  connections: Record<string, ISmartArtTopologyConnection>
}
```

**Related types:** [`ISmartArtTopologyPoint`](#ismartarttopologypoint) · [`ISmartArtTopologyConnection`](#ismartarttopologyconnection)

## `ShapeBevelPresetEnum` [#shapebevelpresetenum]

`import { ShapeBevelPresetEnum } from '@univerjs-pro/engine-shape'` · Used by [`IShapeBevel3D`](#ishapebevel3d)

OOXML ST_BevelPresetType values used by `<a:bevelT>` and `<a:bevelB>`.

```ts
enum ShapeBevelPresetEnum {
  RelaxedInset = 'relaxedInset',
  Circle = 'circle',
  Slope = 'slope',
  Cross = 'cross',
  Angle = 'angle',
  SoftRound = 'softRound',
  Convex = 'convex',
  CoolSlant = 'coolSlant',
  Divot = 'divot',
  Riblet = 'riblet',
  HardEdge = 'hardEdge',
  ArtDeco = 'artDeco',
}
```

## `ShapeOperatorEnum` [#shapeoperatorenum]

`import { ShapeOperatorEnum } from '@univerjs-pro/engine-shape'` · Used by [`ShapeOperatorValue`](#shapeoperatorvalue)

Shape operator enum, it used to define the shape geometry

```ts
enum ShapeOperatorEnum {
  Val = 'val',
  Pin = 'pin',
  AddSub = 'addSub',
  MulDiv = 'mulDiv',
  AddDiv = 'addDiv',
  Abs = 'abs',
  Max = 'max',
  Min = 'min',
  IfElse = 'ifelse',
  Sin = 'sin',
  Cos = 'cos',
  Tan = 'tan',
  Atan2 = 'at2',
  Mod = 'mod',
  Sqrt = 'sqrt',
  Cat2 = 'cat2',
  Sat2 = 'sat2',
}
```

## `SmartArtCategoryEnum` [#smartartcategoryenum]

`import { SmartArtCategoryEnum } from '@univerjs-pro/engine-shape'` · Used by [`ISmartArtData`](#ismartartdata)

```ts
enum SmartArtCategoryEnum {
  All = 'all',
  List = 'list',
  Process = 'process',
  Cycle = 'cycle',
  Hierarchy = 'hierarchy',
  Relationship = 'relationship',
  Matrix = 'matrix',
  Pyramid = 'pyramid',
  Picture = 'picture',
  Timeline = 'timeline',
  Team = 'team',
  TextCard = 'textCard',
}
```

## `SmartArtDirectionEnum` [#smartartdirectionenum]

`import { SmartArtDirectionEnum } from '@univerjs-pro/engine-shape'` · Used by [`ISmartArtData`](#ismartartdata)

```ts
enum SmartArtDirectionEnum {
  LeftToRight = 'leftToRight',
  RightToLeft = 'rightToLeft',
}
```

## `IGdContextKey` [#igdcontextkey]

Nested type in [`@univerjs-pro/engine-shape`](https://docs.univer.ai/ru-RU/reference/packages/plugins/univerjs-pro/engine-shape.md) · Used by [`IPathCommand`](#ipathcommand)

```ts
type IGdContextKey = keyof IGdContext
```

**Related types:** [`IGdContext`](#igdcontext)

## `ISmartArtDefinitionInstruction` [#ismartartdefinitioninstruction]

Nested type in [`@univerjs-pro/engine-shape`](https://docs.univer.ai/ru-RU/reference/packages/plugins/univerjs-pro/engine-shape.md) · Used by [`ISmartArtPresentationShape`](#ismartartpresentationshape) · [`ISmartArtDefinitions`](#ismartartdefinitions) · [`ISmartArtTopologyPoint`](#ismartarttopologypoint)

Namespace-neutral instruction in a SmartArt layout, quick-style, or color program.

```ts
interface ISmartArtDefinitionInstruction {
  operation: string
  scope: SmartArtDefinitionScopeEnum
  parameters: ISmartArtDefinitionParameter[]
  text?: string
  children: ISmartArtDefinitionInstruction[]
}
```

**Related types:** [`SmartArtDefinitionScopeEnum`](#smartartdefinitionscopeenum) · [`ISmartArtDefinitionParameter`](#ismartartdefinitionparameter)

## `ISmartArtPresentationTextBinding` [#ismartartpresentationtextbinding]

`import type { ISmartArtPresentationTextBinding } from '@univerjs-pro/engine-shape'` · Used by [`ISmartArtPresentationShape`](#ismartartpresentationshape)

Maps one rendered SmartArt text paragraph to its logical Text Pane node.

```ts
interface ISmartArtPresentationTextBinding {
  dataNodeId: string
  paragraphIndex: number
}
```

## `ISmartArtTextFormatOverrides` [#ismartarttextformatoverrides]

Nested type in [`@univerjs-pro/engine-shape`](https://docs.univer.ai/ru-RU/reference/packages/plugins/univerjs-pro/engine-shape.md) · Used by [`ISmartArtDataNode`](#ismartartdatanode) · [`ISmartArtPresentationShape`](#ismartartpresentationshape) · [`ISmartArtTopologyPoint`](#ismartarttopologypoint)

```ts
interface ISmartArtTextFormatOverrides {
  fontColor?: boolean
  fontFamily?: boolean
  horizontalAlignment?: boolean
  verticalAlignment?: boolean
  textWrap?: boolean
}
```

## `ISmartArtTopologyConnection` [#ismartarttopologyconnection]

Nested type in [`@univerjs-pro/engine-shape`](https://docs.univer.ai/ru-RU/reference/packages/plugins/univerjs-pro/engine-shape.md) · Used by [`ISmartArtTopology`](#ismartarttopology)

Directed relation in the complete layout graph. An omitted kind is a logical parent-child relation.

```ts
interface ISmartArtTopologyConnection {
  id: string
  kind?: string
  sourceId: string
  destinationId: string
  sourceOrder: number
  destinationOrder: number
  presentationId?: string

  properties?: Record<string, string>
}
```

## `ISmartArtTopologyPoint` [#ismartarttopologypoint]

Nested type in [`@univerjs-pro/engine-shape`](https://docs.univer.ai/ru-RU/reference/packages/plugins/univerjs-pro/engine-shape.md) · Used by [`ISmartArtTopology`](#ismartarttopology)

Layout graph point retained as normalized SmartArt semantics, including non-content transition points.

```ts
interface ISmartArtTopologyPoint {
  id: string
  kind: SmartArtTopologyPointKindEnum
  connectionId?: string
  properties: Record<string, string>
  layoutVariableOrder: string[]
  layoutVariables: Record<string, Record<string, string>>
  propertyProgram?: ISmartArtDefinitionInstruction

  text?: IShapeTextData
  formatOverrides?: ISmartArtTextFormatOverrides

  shapeData?: IBasicShapeData
}
```

**Related types:** [`SmartArtTopologyPointKindEnum`](#smartarttopologypointkindenum) · [`ISmartArtDefinitionInstruction`](#ismartartdefinitioninstruction) · [`IShapeTextData`](#ishapetextdata) · [`ISmartArtTextFormatOverrides`](#ismartarttextformatoverrides) · [`IBasicShapeData`](#ibasicshapedata)

## `PathCommandType` [#pathcommandtype]

Nested type in [`@univerjs-pro/engine-shape`](https://docs.univer.ai/ru-RU/reference/packages/plugins/univerjs-pro/engine-shape.md) · Used by [`IPathCommand`](#ipathcommand)

```ts
type PathCommandType = 'M' | 'L' | 'C' | 'Q' | 'A' | 'z'
```

## `ShapeTextAutoFitType` [#shapetextautofittype]

`import { ShapeTextAutoFitType } from '@univerjs-pro/engine-shape'` · Used by [`IShapeTextBodyBehavior`](#ishapetextbodybehavior)

```ts
enum ShapeTextAutoFitType {
  NoAutoFit = 'noAutoFit',
  NormAutoFit = 'normAutoFit',
  SpAutoFit = 'spAutoFit',
}
```

## `ShapeTextDirection` [#shapetextdirection]

`import { ShapeTextDirection } from '@univerjs-pro/engine-shape'` · Used by [`IShapeTextAlign`](#ishapetextalign)

```ts
enum ShapeTextDirection {
  Horz = 'horz',
  Vert = 'vert',
  Vert270 = 'vert270',
  WordArtVert = 'wordArtVert',
  EaVert = 'eaVert',
  MongolianVert = 'mongolianVert',
  WordArtVertRtl = 'wordArtVertRtl',
}
```

## `ShapeTextHorizontalAnchor` [#shapetexthorizontalanchor]

`import type { ShapeTextHorizontalAnchor } from '@univerjs-pro/engine-shape'` · Used by [`IShapeTextBodyBehavior`](#ishapetextbodybehavior)

```ts
type ShapeTextHorizontalAnchor = 'center'
```

## `ShapeTextWrapType` [#shapetextwraptype]

`import { ShapeTextWrapType } from '@univerjs-pro/engine-shape'` · Used by [`IShapeTextBodyBehavior`](#ishapetextbodybehavior)

```ts
enum ShapeTextWrapType {
  None = 'none',
  Square = 'square',
}
```

## `SmartArtNodeRoleEnum` [#smartartnoderoleenum]

`import { SmartArtNodeRoleEnum } from '@univerjs-pro/engine-shape'` · Used by [`ISmartArtDataNode`](#ismartartdatanode)

```ts
enum SmartArtNodeRoleEnum {
  Content = 'content',
  Assistant = 'assistant',
}
```

## `SmartArtPresentationShapeRoleEnum` [#smartartpresentationshaperoleenum]

`import { SmartArtPresentationShapeRoleEnum } from '@univerjs-pro/engine-shape'` · Used by [`ISmartArtPresentationShape`](#ismartartpresentationshape)

```ts
enum SmartArtPresentationShapeRoleEnum {
  Node = 'node',
  Connector = 'connector',
  Background = 'background',
  Decoration = 'decoration',
  Image = 'image',
  Text = 'text',
}
```

## `SmartArtPresentationTextSourceEnum` [#smartartpresentationtextsourceenum]

`import { SmartArtPresentationTextSourceEnum } from '@univerjs-pro/engine-shape'` · Used by [`ISmartArtPresentationShape`](#ismartartpresentationshape)

```ts
enum SmartArtPresentationTextSourceEnum {
  DataNode = 'dataNode',
  Presentation = 'presentation',
}
```

## `SmartArtTextFontSizeModeEnum` [#smartarttextfontsizemodeenum]

`import { SmartArtTextFontSizeModeEnum } from '@univerjs-pro/engine-shape'` · Used by [`ISmartArtDataNode`](#ismartartdatanode)

```ts
enum SmartArtTextFontSizeModeEnum {
  Auto = 'auto',
  Manual = 'manual',
}
```

## `IGdContext` [#igdcontext]

`import type { IGdContext } from '@univerjs-pro/engine-shape'` · Used by [`IGdContextKey`](#igdcontextkey)

```ts
interface IGdContext extends IGdContextBase {
  [key: string]: number | undefined

  x0?: number
  x1?: number
  x2?: number
  x3?: number
  x4?: number
  x5?: number
  x6?: number
  x7?: number
  x8?: number
  x9?: number
  x10?: number
  x11?: number
  x12?: number
  x13?: number
  x14?: number
  x15?: number
  x16?: number
  x17?: number
  x18?: number
  x23?: number
  x24?: number
  x25?: number

  y1?: number
  y2?: number
  y3?: number
  y4?: number
  y5?: number
  y6?: number
  y7?: number
  y8?: number
  y9?: number
  y10?: number
  y11?: number
  y12?: number
  y13?: number
  y14?: number
  y15?: number
  y16?: number
  y17?: number
  y18?: number
  y24?: number

  sx1?: number
  sx2?: number
  sx3?: number
  sx4?: number
  sx5?: number
  sx6?: number
  sx7?: number
  sx8?: number
  sx9?: number
  sx10?: number
  sx11?: number
  sx12?: number
  sx13?: number
  sx14?: number
  sx15?: number
  sx16?: number

  g2?: number
  g3?: number
  g4?: number

  g5?: number
  g6?: number
  g7?: number
  g8?: number
  g9?: number
  g10?: number
  g11?: number
  g12?: number
  g13?: number
  g14?: number
  g15?: number
  g16?: number
  g17?: number
  g18?: number
  g19?: number
  g20?: number
  g21?: number
  g22?: number
  g23?: number
  g24?: number
  g25?: number
  g26?: number

  sy1?: number
  sy2?: number
  sy3?: number
  sy4?: number
  sy5?: number
  sy6?: number
  sy7?: number
  sy8?: number
  sy9?: number
  sy10?: number
  sy11?: number
  sy12?: number
  sy13?: number
  sy14?: number
  sy15?: number
  sy16?: number

  dx?: number
  dx1?: number
  dx2?: number
  dx3?: number
  dx4?: number
  dx5?: number
  dx6?: number

  dy?: number
  dy1?: number
  dy2?: number
  dy3?: number

  idx?: number
  il?: number
  ir?: number

  idy?: number
  it?: number
  ib?: number

  wR?: number
  hR?: number

  tx1?: number
  tx2?: number
  bx1?: number
  bx2?: number
  by1?: number
  d?: number
  tdx?: number
  bdx?: number
  ilx?: number
  irx?: number

  lx?: number
  lx1: number
  ly1: number
  lx2: number
  ly2: number

  rx?: number
  rx1: number
  rx2: number
  rx3: number
  rx4: number
  rx5: number
  rx6: number

  ry: number
  ry1: number
  ry2: number

  ly?: number

  ly3?: number
  ly4?: number
  ry3?: number
  ry4?: number

  a: number
  a1: number
  a2: number
  a3?: number
  ang1?: number

  maxAdj1?: number
  maxAdj2?: number
  maxAdj3?: number

  q1?: number

  stAng: number
  swAng: number

  dxI: number
  dyI: number
  xE: number
  yE: number
  xD: number
  yD: number
  rw2: number
  rh2: number
  istAng: number
  iswAng: number
  xBp: number
  yBp: number
  xA: number
  yA: number
  xGp: number
  yGp: number
  xF: number
  yF: number
  rw1: number
  rh1: number
  stAng0: number
  swAng0: number

  xL: number
  yL: number
  xKp: number
  yKp: number
  st2: number
  xC: number
  yC: number
  xJp: number
  yJp: number

  aI?: number
  _dxI?: number
  _dyI?: number

  th?: number
  aw2?: number
  th2?: number
  dh2?: number
  ah?: number
  bw?: number
  bh?: number
  bs?: number
  maxAdj4?: number
  a4?: number
  bd?: number
  bd3?: number
  bd2?: number

  q2?: number
  q3?: number
  minAdj5?: number
  a5?: number
  cx?: number

  cx1?: number
  cy1?: number

  aw?: number
  dh?: number
  mswAng?: number
  ix?: number
  iy?: number
  dang2?: number
  swAng2?: number
  swAng3?: number
  stAng3?: number

  q4?: number
  q5?: number
  q6?: number
  q7?: number
  q8?: number
  q9?: number
  q10?: number
  q11?: number
  q12?: number
  q13?: number
  q14?: number

  mswAng2?: number
  stAng2?: number

  hf?: number
  vf?: number
  swd2?: number
  shd2?: number
  svc?: number

  xB?: number
  yB?: number
  yG?: number
  yI?: number
  yH?: number

  rad?: number

  drx?: number
  dry?: number
  dlx?: number
  dly?: number

  yWave1?: number
  yWave2?: number
  yWave3?: number
  yWave4?: number
  yWave5?: number
  yWave6?: number

  xWave1?: number
  xWave2?: number

  xOff1?: number
  xOff2?: number
  xOff3?: number
  yOff1?: number

  xt?: number
  yt?: number
  xr?: number
  yr?: number
  xb?: number
  yb?: number
  xl?: number
  yl?: number

  u1?: number
  u2?: number
  v2?: number

  xPos?: number
  yPos?: number
  stAng1?: number

  cy3?: number
  cx2?: number
  rh?: number
  cx5?: number
  cy4?: number
  cy6?: number
  cx4?: number
  cy7?: number

  ch?: number
  ch2?: number
  ch4?: number

  ox1?: number
  oy1?: number
  ox2?: number
  oy2?: number
  x19?: number

  g18w?: number
  swAng1?: number

  swAng4?: number
  swAng5?: number

  iwd2?: number
  ihd2?: number

  dr?: number

  g27?: number
  g28?: number
  g29?: number
  g30?: number
  g31?: number
  g32?: number
  g33?: number
  g34?: number
  g35?: number
  g36?: number
  g37?: number
  g38?: number
  g39?: number
  g40?: number
  g41?: number
  g42?: number
  g43?: number
  g44?: number
  g45?: number
  g46?: number
  g47?: number
  g48?: number

  rh3?: number
  rw3?: number
  da?: number

  rw?: number
  xA1?: number
  yA1?: number
  xB1?: number
  yB1?: number
  xC1?: number
  yC1?: number
  xD1?: number
  yD1?: number
  bD1?: number
  yD2?: number
  bD2?: number
  yB3?: number
  xA6?: number
  yD3?: number
  bD3?: number
  xB4?: number
  yC2?: number
  xC4?: number
  yB2?: number
  xD4?: number
  yA2?: number
  bD4?: number
  xB5?: number
  xC5?: number
  xD5?: number
  bD5?: number
  xE6?: number
  xF6?: number
  yC6?: number
  xD6?: number
  yD6?: number
  bD6?: number
  xB2?: number
  xC2?: number
  xD2?: number
  xB3?: number
  xC3?: number
  xD3?: number
  yB4?: number
  yC4?: number
  yD4?: number
  yA4?: number
  xB6?: number
  yC3?: number
  xC6?: number
  yA3?: number
  xB7?: number
  xC7?: number
  xD7?: number
  bD7?: number
  xB8?: number
  xC8?: number
  xD8?: number
  bD8?: number
  xE9?: number
  yC9?: number
  xF9?: number
  xD9?: number
  yD9?: number
  bD9?: number

  xP1?: number
  yP1?: number
  xP2?: number
  yP2?: number

  g0w?: number
  _cd4?: number
  _cd2?: number
}
```

**Related types:** [`IGdContextBase`](#igdcontextbase)

## `ISmartArtDefinitionParameter` [#ismartartdefinitionparameter]

Nested type in [`@univerjs-pro/engine-shape`](https://docs.univer.ai/ru-RU/reference/packages/plugins/univerjs-pro/engine-shape.md) · Used by [`ISmartArtDefinitionInstruction`](#ismartartdefinitioninstruction)

```ts
interface ISmartArtDefinitionParameter {
  name: string
  scope?: SmartArtDefinitionScopeEnum
  value: string
}
```

**Related types:** [`SmartArtDefinitionScopeEnum`](#smartartdefinitionscopeenum)

## `SmartArtDefinitionScopeEnum` [#smartartdefinitionscopeenum]

Nested type in [`@univerjs-pro/engine-shape`](https://docs.univer.ai/ru-RU/reference/packages/plugins/univerjs-pro/engine-shape.md) · Used by [`ISmartArtDefinitionInstruction`](#ismartartdefinitioninstruction) · [`ISmartArtDefinitionParameter`](#ismartartdefinitionparameter)

```ts
enum SmartArtDefinitionScopeEnum {
  Diagram = 'diagram',
  DiagramDrawing = 'diagramDrawing',
  Drawing = 'drawing',
  Relationships = 'relationships',
}
```

## `SmartArtTopologyPointKindEnum` [#smartarttopologypointkindenum]

Nested type in [`@univerjs-pro/engine-shape`](https://docs.univer.ai/ru-RU/reference/packages/plugins/univerjs-pro/engine-shape.md) · Used by [`ISmartArtTopologyPoint`](#ismartarttopologypoint)

```ts
enum SmartArtTopologyPointKindEnum {
  Document = 'document',
  Content = 'content',
  Assistant = 'assistant',
  ParentTransition = 'parentTransition',
  SiblingTransition = 'siblingTransition',
  Presentation = 'presentation',
}
```

## `IGdContextBase` [#igdcontextbase]

Nested type in [`@univerjs-pro/engine-shape`](https://docs.univer.ai/ru-RU/reference/packages/plugins/univerjs-pro/engine-shape.md) · Used by [`IGdContext`](#igdcontext)

GdContext 用来计算 OOXML Shape 的 Geometry Definitions (gd)
包含：
 - 基本绘制尺寸（宽 w、高 h）
 - 固定点位（左 l、右 r、顶 t、底 b、中心等）
 - 调整值（adjust values）
 - 临时计算缓存
 - gd 公式系统需要的数学方法

所有值都按 Office 的规则：1000 = 1px 的 EMU 转换前坐标系。
公式计算遵循 OOXML 的 ST_AdjCoordinate 体系。

```ts
interface IGdContextBase {
  w: number

  h: number

  wd2: number

  hd2: number

  l: number

  t: number

  r: number

  b: number

  vc: number

  hc: number

  wd3: number
  wd4: number
  wd5: number
  wd6: number
  wd8: number
  wd10: number

  hd3: number
  hd4: number
  hd5: number
  hd6: number
  hd8: number
  hd10: number

  wd32: number
  hd32: number

  cd2: number

  cd4: number

  cd8: number

  cd16: number

  ss: number

  ls: number

  ssd2: number
  ssd4: number
  ssd6: number
  ssd8: number
  ssd16: number
  ssd32: number

  lsd2: number
  lsd4: number
  lsd8: number
  lsd16: number
  lsd32: number
}
```
