Shape sub-types
Shared vector shape, fill, stroke, geometry, and effect types used by Slides and Boards.
Shared vector shape, fill, stroke, geometry, and effect types used by Slides and Boards. Supporting ISlidePage, IBoardData. Types are ordered from direct top-level fields to deeper nested structures and enums.
Overview
IBasicShapeData
import type { IBasicShapeData } from '@univerjs-pro/engine-shape' · Used by ISlideImageElement · ISlideFillStyle · ISlidePlaceholderStyle · IShapeData · ICxnShapeData · IBoardFillStyle · ISmartArtShapeData · IBoardPlaceholderStyle · IBoardShapeData · ISmartArtPresentationShape · IBoardConnectorLabelStyle · ISmartArtTopologyPoint
This interface defines the shape data structure , and this part will save in json
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 · ShapeFillEnum · ShapeGradientTypeEnum · ImageSourceTypeEnum · ImageFillModeEnum · IShapeLineStyle · IPresetShapeConfig · IShadowEffect · IGlowEffect · IShapeReflectionEffect · IShapeSoftEdgeEffect · IShapeScene3D · IShape3D · IShapeTextData · HorizontalAlign · IShapeTextRectPadding · IShapeFormulaBinding
ICxnShapeData
import type { ICxnShapeData } from '@univerjs-pro/engine-shape' · Used by ISlideConnectorElement · IShapeData
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 · IShapeRelation · IShapeLineStyle · ShapeArrowTypeEnum · ShapeArrowSizeEnum
IShapeData
import type { IShapeData } from '@univerjs-pro/engine-shape' · Used by ISlideShapeElement
type IShapeData = IBasicShapeData | ICxnShapeData | ISmartArtShapeDataRelated types: IBasicShapeData · ICxnShapeData · ISmartArtShapeData
IShapeLineStyle
import type { IShapeLineStyle } from '@univerjs-pro/engine-shape' · Used by ISlideChartElement · IBoardFmtScheme · ISlideLineStyle · ISlidePlaceholderStyle · ICxnShapeData · IBasicShapeData · IBoardChartElement · IBoardPlaceholderStyle · IBoardConnectorLabelStyle
interface IShapeLineStyle { color?: string width?: number opacity?: number cornerRadius?: number dashType?: ShapeLineDashEnum capType?: ShapeLineCapEnum lineJoinType?: ShapeLineJoinEnum lineStrokeType?: ShapeLineTypeEnum sketchType?: ShapeSketchTypeEnum}Related types: ShapeLineDashEnum · ShapeLineCapEnum · ShapeLineJoinEnum · ShapeLineTypeEnum · ShapeSketchTypeEnum
ShapeTypeEnum
import { ShapeTypeEnum } from '@univerjs-pro/engine-shape' · Used by ISlideImageElement · IBasicShapeData · IBoardImageElement · 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.
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
import { ImageFillModeEnum } from '@univerjs-pro/engine-shape' · Used by IBasicShapeData
The image fill mode when ShapeFillEnum is PictureFill
enum ImageFillModeEnum { Stretch = 1, Tile = 2,}ImageSourceTypeEnum
import type { ImageSourceTypeEnum } from '@univerjs-pro/engine-shape' · Used by IBasicShapeData
type ImageSourceTypeEnum = ImageSourceTypeRelated types: ImageSourceType
IPresetShapeConfig
import type { IPresetShapeConfig } from '@univerjs-pro/engine-shape' · Used by IBasicShapeData · IBoardShapeGeometry
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 · IShapeAdjustItem · IShapePath
IShape3D
import type { IShape3D } from '@univerjs-pro/engine-shape' · Used by IBasicShapeData · IShapeTextBodyBehavior
Shape depth/material corresponding to DrawingML <a:sp3d>.
interface IShape3D { z?: number extrusionHeight?: number contourWidth?: number material?: ShapeMaterialPresetEnum topBevel?: IShapeBevel3D bottomBevel?: IShapeBevel3D extrusionColor?: string contourColor?: string}Related types: ShapeMaterialPresetEnum · IShapeBevel3D
IShapeFormulaBinding
import type { IShapeFormulaBinding } from '@univerjs-pro/engine-shape' · Used by IBasicShapeData
Formula data persisted by a formula-backed text-box shape.
interface IShapeFormulaBinding { formula: string animationEnabled?: boolean numberFormat?: { pattern: string } lastValue?: IFormulaLastValue}IShapeReflectionEffect
Nested type in @univerjs-pro/engine-shape · Used by IBasicShapeData
Reflection corresponding to DrawingML <a:reflection>.
interface IShapeReflectionEffect { blurRadius?: number startAlpha?: number endAlpha?: number distance?: number direction?: number scaleY?: number}IShapeRelation
import type { IShapeRelation } from '@univerjs-pro/engine-shape' · Used by ICxnShapeData
Shape relation interface for connecting shapes from: starting shape and connection point index to: ending shape and connection point index
interface IShapeRelation { from?: IShapeRelationItem to?: IShapeRelationItem}Related types: IShapeRelationItem
IShapeScene3D
import type { IShapeScene3D } from '@univerjs-pro/engine-shape' · Used by IBasicShapeData · IShapeTextBodyBehavior
Shape scene corresponding to DrawingML <a:scene3d>.
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 · ShapeCameraPresetEnum · IShape3DRotation · IShape3DCameraProjection · ShapeLightRigPresetEnum · ShapeLightRigDirectionEnum · IShape3DVector
IShapeSoftEdgeEffect
Nested type in @univerjs-pro/engine-shape · Used by IBasicShapeData
Soft edge corresponding to DrawingML <a:softEdge>.
interface IShapeSoftEdgeEffect { radius: number}IShapeTextData
import type { IShapeTextData } from '@univerjs-pro/engine-shape' · Used by IBasicShapeData · ISmartArtDataNode · ISmartArtTopologyPoint
type IShapeTextData = IShapeText | ICustomShapeTextDataRelated types: IShapeText · ICustomShapeTextData
IShapeTextRectPadding
import type { IShapeTextRectPadding } from '@univerjs-pro/engine-shape' · Used by IBasicShapeData · ISmartArtPresentationShape
interface IShapeTextRectPadding { left: number top: number right: number bottom: number}ISmartArtShapeData
import type { ISmartArtShapeData } from '@univerjs-pro/engine-shape' · Used by IShapeData
SmartArt persists as one composite Shape while its presentation Shapes remain independently editable subentities.
interface ISmartArtShapeData extends IBasicShapeData { shapeType: ShapeTypeEnum.SmartArt smartArt: ISmartArtData}Related types: IBasicShapeData · ShapeTypeEnum.SmartArt · ISmartArtData
ShapeArrowSizeEnum
import { ShapeArrowSizeEnum } from '@univerjs-pro/engine-shape' · Used by ICxnShapeData
enum ShapeArrowSizeEnum { Small = 1, Medium = 2, Large = 3,}ShapeArrowTypeEnum
import { ShapeArrowTypeEnum } from '@univerjs-pro/engine-shape' · Used by ICxnShapeData
The arrow type of connector line shape
enum ShapeArrowTypeEnum { None = 0, Arrow = 1, OpenArrow = 2, DiamondArrow = 3, StealthArrow = 4, OvalArrow = 5,}ShapeFillEnum
import { ShapeFillEnum } from '@univerjs-pro/engine-shape' · Used by IBasicShapeData
Shape fill type enum Shape fill types supported by the renderer.
enum ShapeFillEnum { NoFill = 1, SolidFill = 2, GradientFill = 3, PatternFill = 4, PictureFill = 5,}ShapeGradientTypeEnum
import { ShapeGradientTypeEnum } from '@univerjs-pro/engine-shape' · Used by IBasicShapeData
enum ShapeGradientTypeEnum { Linear = 1, Radial = 2, Angular = 3, Diamond = 4,}ShapeLineCapEnum
import { ShapeLineCapEnum } from '@univerjs-pro/engine-shape' · Used by IShapeLineStyle
The line cap type of shape line style or basic shape line stroke style
enum ShapeLineCapEnum { Flat = 1, Round = 2, Square = 3,}ShapeLineDashEnum
import { ShapeLineDashEnum } from '@univerjs-pro/engine-shape' · Used by IShapeLineStyle
Shape line style enums This enum is used define basic shape stroke style or line shape stroke style
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
import { ShapeLineJoinEnum } from '@univerjs-pro/engine-shape' · Used by IShapeLineStyle
The line join type of shape line style or basic shape line stroke style
enum ShapeLineJoinEnum { Miter = 1, Round = 2, Bevel = 3,}ShapeLineTypeEnum
import { ShapeLineTypeEnum } from '@univerjs-pro/engine-shape' · Used by IShapeLineStyle
Shape line type enum This enum is used to define the line fill type (no line, solid, gradient)
enum ShapeLineTypeEnum { NoLine = 1, SolidLine = 2, GradientLine = 3,}ShapeSketchTypeEnum
import { ShapeSketchTypeEnum } from '@univerjs-pro/engine-shape' · Used by 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
enum ShapeSketchTypeEnum { None = 1, Curved = 2, Freehand = 3, HandDrawn = 4,}ICustomShapeTextData
import type { ICustomShapeTextData } from '@univerjs-pro/engine-shape' · Used by IShapeTextData
interface ICustomShapeTextData extends IShapeTextAlign, IShapeTextBodyBehavior { text?: string dataModel?: IShapeTextDataModel}Related types: IShapeTextAlign · IShapeTextBodyBehavior · IShapeTextDataModel
IShape3DCameraProjection
Nested type in @univerjs-pro/engine-shape · Used by IShapeScene3D
Normalized 2.5D projection resolved from a built-in camera or SmartArt style.
interface IShape3DCameraProjection { rotation?: IShape3DRotation verticalOffsetRatio?: number verticalScale?: number}Related types: IShape3DRotation
IShape3DRotation
import type { IShape3DRotation } from '@univerjs-pro/engine-shape' · Used by IShapeScene3D · IShape3DCameraProjection
Rotation in degrees corresponding to DrawingML <a:rot lat="..." lon="..." rev="...">.
interface IShape3DRotation { latitude?: number longitude?: number revolution?: number}IShape3DVector
import type { IShape3DVector } from '@univerjs-pro/engine-shape' · Used by IShapeScene3D
A point/vector in the DrawingML 3D scene coordinate system.
interface IShape3DVector { x: number y: number z: number}IShapeAdjustItem
Nested type in @univerjs-pro/engine-shape · Used by IPresetShapeConfig
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
Nested type in @univerjs-pro/engine-shape · Used by IShape3D
Bevel corresponding to DrawingML <a:bevelT> or <a:bevelB>.
interface IShapeBevel3D { width?: number height?: number preset?: ShapeBevelPresetEnum}Related types: ShapeBevelPresetEnum
IShapePath
import type { IShapePath } from '@univerjs-pro/engine-shape' · Used by IPresetShapeConfig · IBoardShapePath
Single path definition for shape rendering
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
IShapeRect
import type { IShapeRect } from '@univerjs-pro/engine-shape' · Used by IShapeScene3D
interface IShapeRect { left: number top: number width: number height: number}IShapeRelationItem
import type { IShapeRelationItem } from '@univerjs-pro/engine-shape' · Used by IShapeRelation
interface IShapeRelationItem { shapeId: string cxnIndex: number}IShapeText
import type { IShapeText } from '@univerjs-pro/engine-shape' · Used by IShapeTextData
interface IShapeText extends IShapeTextAlign, IShapeTextBodyBehavior { isRichText: false text?: string color?: string fontFamily?: string fontSize?: number bold?: boolean italic?: boolean underline?: boolean}Related types: IShapeTextAlign · IShapeTextBodyBehavior
ISmartArtData
import type { ISmartArtData } from '@univerjs-pro/engine-shape' · Used by ISmartArtShapeData
Univer's normalized SmartArt model. OOXML parts are mapped to and from this structure by exchange adapters.
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 · ISmartArtEditCapabilities · SmartArtDirectionEnum · ISmartArtDataNode · ISmartArtPresentationShape · ISmartArtTopology · ISmartArtDefinitions
ISmartArtTransform
import type { ISmartArtTransform } from '@univerjs-pro/engine-shape' · Used by IShapeScene3D · ISmartArtPresentationShape
interface ISmartArtTransform { left: number top: number width: number height: number rotation?: number flipX?: boolean flipY?: boolean}ShapeCameraPresetEnum
import { ShapeCameraPresetEnum } from '@univerjs-pro/engine-shape' · Used by IShapeScene3D
OOXML ST_PresetCameraType values used by <a:camera prst="...">.
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
import { ShapeLightRigDirectionEnum } from '@univerjs-pro/engine-shape' · Used by IShapeScene3D
OOXML ST_LightRigDirection values.
enum ShapeLightRigDirectionEnum { TopLeft = 'tl', Top = 't', TopRight = 'tr', Left = 'l', Right = 'r', BottomLeft = 'bl', Bottom = 'b', BottomRight = 'br',}ShapeLightRigPresetEnum
import { ShapeLightRigPresetEnum } from '@univerjs-pro/engine-shape' · Used by IShapeScene3D
OOXML ST_LightRigType values used by <a:lightRig rig="...">.
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
import { ShapeMaterialPresetEnum } from '@univerjs-pro/engine-shape' · Used by IShape3D
OOXML ST_PresetMaterialType values used by <a:sp3d prstMaterial="...">.
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
Nested type in @univerjs-pro/engine-shape · Used by IPresetShapeConfig
type ShapeOperatorValue = [ShapeOperatorEnum, ...Array<string | number>]Related types: ShapeOperatorEnum
IPathCommand
import type { IPathCommand } from '@univerjs-pro/engine-shape' · Used by IShapePath
Individual path command with its parameters
interface IPathCommand { command: PathCommandType points: Array<IGdContextKey | number> center?: [IGdContextKey | number, IGdContextKey | number, boolean] start?: { x: number y: number } pathLength?: number}Related types: PathCommandType · IGdContextKey
IShapeTextAlign
Nested type in @univerjs-pro/engine-shape · Used by IShapeText · ICustomShapeTextData
interface IShapeTextAlign { isHorizontal: boolean textDirection?: ShapeTextDirection}Related types: ShapeTextDirection
IShapeTextBodyBehavior
import type { IShapeTextBodyBehavior } from '@univerjs-pro/engine-shape' · Used by IShapeText · ICustomShapeTextData
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 · ShapeTextWrapType · ShapeTextAutoFitType · IShapeScene3D · IShape3D
IShapeTextDataModel
import type { IShapeTextDataModel } from '@univerjs-pro/engine-shape' · Used by ICustomShapeTextData
interface IShapeTextDataModel { doc?: IDocumentData ha?: HorizontalAlign va?: VerticalAlign}Related types: IDocumentData · HorizontalAlign · VerticalAlign
ISmartArtDataNode
import type { ISmartArtDataNode } from '@univerjs-pro/engine-shape' · Used by ISmartArtData
Logical content node edited through the SmartArt Text Pane.
interface ISmartArtDataNode { id: string parentId?: string childIds: string[] role: SmartArtNodeRoleEnum text: IShapeTextData fontSizeMode?: SmartArtTextFontSizeModeEnum formatOverrides?: ISmartArtTextFormatOverrides}Related types: SmartArtNodeRoleEnum · IShapeTextData · SmartArtTextFontSizeModeEnum · ISmartArtTextFormatOverrides
ISmartArtDefinitions
Nested type in @univerjs-pro/engine-shape · Used by ISmartArtData
Univer semantic programs used both by the layout engine and OOXML adapters.
interface ISmartArtDefinitions { layout?: ISmartArtDefinitionInstruction quickStyle?: ISmartArtDefinitionInstruction colorStyle?: ISmartArtDefinitionInstruction}Related types: ISmartArtDefinitionInstruction
ISmartArtEditCapabilities
import type { ISmartArtEditCapabilities } from '@univerjs-pro/engine-shape' · Used by ISmartArtData
Structural edit limits normalized from the SmartArt layout definition (for example chMax and assistant branches).
interface ISmartArtEditCapabilities { maxDepth?: number supportsAddAfter?: boolean supportsAssistant: boolean}ISmartArtPresentationShape
import type { ISmartArtPresentationShape } from '@univerjs-pro/engine-shape' · Used by ISmartArtData
One independently selectable ordinary Shape inside the SmartArt composite.
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 · ISmartArtTransform · IShapeTextRectPadding · ISmartArtDefinitionInstruction · IBasicShapeData · ISmartArtTextFormatOverrides · SmartArtPresentationTextSourceEnum · ISmartArtPresentationTextBinding
ISmartArtTopology
Nested type in @univerjs-pro/engine-shape · Used by 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.
interface ISmartArtTopology { pointOrder: string[] points: Record<string, ISmartArtTopologyPoint> connectionOrder: string[] connections: Record<string, ISmartArtTopologyConnection>}Related types: ISmartArtTopologyPoint · ISmartArtTopologyConnection
ShapeBevelPresetEnum
import { ShapeBevelPresetEnum } from '@univerjs-pro/engine-shape' · Used by IShapeBevel3D
OOXML ST_BevelPresetType values used by <a:bevelT> and <a:bevelB>.
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
import { ShapeOperatorEnum } from '@univerjs-pro/engine-shape' · Used by ShapeOperatorValue
Shape operator enum, it used to define the shape geometry
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
import { SmartArtCategoryEnum } from '@univerjs-pro/engine-shape' · Used by ISmartArtData
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
import { SmartArtDirectionEnum } from '@univerjs-pro/engine-shape' · Used by ISmartArtData
enum SmartArtDirectionEnum { LeftToRight = 'leftToRight', RightToLeft = 'rightToLeft',}IGdContextKey
Nested type in @univerjs-pro/engine-shape · Used by IPathCommand
type IGdContextKey = keyof IGdContextRelated types: IGdContext
ISmartArtDefinitionInstruction
Nested type in @univerjs-pro/engine-shape · Used by ISmartArtPresentationShape · ISmartArtDefinitions · ISmartArtTopologyPoint
Namespace-neutral instruction in a SmartArt layout, quick-style, or color program.
interface ISmartArtDefinitionInstruction { operation: string scope: SmartArtDefinitionScopeEnum parameters: ISmartArtDefinitionParameter[] text?: string children: ISmartArtDefinitionInstruction[]}Related types: SmartArtDefinitionScopeEnum · ISmartArtDefinitionParameter
ISmartArtPresentationTextBinding
import type { ISmartArtPresentationTextBinding } from '@univerjs-pro/engine-shape' · Used by ISmartArtPresentationShape
Maps one rendered SmartArt text paragraph to its logical Text Pane node.
interface ISmartArtPresentationTextBinding { dataNodeId: string paragraphIndex: number}ISmartArtTextFormatOverrides
Nested type in @univerjs-pro/engine-shape · Used by ISmartArtDataNode · ISmartArtPresentationShape · ISmartArtTopologyPoint
interface ISmartArtTextFormatOverrides { fontColor?: boolean fontFamily?: boolean horizontalAlignment?: boolean verticalAlignment?: boolean textWrap?: boolean}ISmartArtTopologyConnection
Nested type in @univerjs-pro/engine-shape · Used by ISmartArtTopology
Directed relation in the complete layout graph. An omitted kind is a logical parent-child relation.
interface ISmartArtTopologyConnection { id: string kind?: string sourceId: string destinationId: string sourceOrder: number destinationOrder: number presentationId?: string properties?: Record<string, string>}ISmartArtTopologyPoint
Nested type in @univerjs-pro/engine-shape · Used by ISmartArtTopology
Layout graph point retained as normalized SmartArt semantics, including non-content transition points.
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 · ISmartArtDefinitionInstruction · IShapeTextData · ISmartArtTextFormatOverrides · IBasicShapeData
PathCommandType
Nested type in @univerjs-pro/engine-shape · Used by IPathCommand
type PathCommandType = 'M' | 'L' | 'C' | 'Q' | 'A' | 'z'ShapeTextAutoFitType
import { ShapeTextAutoFitType } from '@univerjs-pro/engine-shape' · Used by IShapeTextBodyBehavior
enum ShapeTextAutoFitType { NoAutoFit = 'noAutoFit', NormAutoFit = 'normAutoFit', SpAutoFit = 'spAutoFit',}ShapeTextDirection
import { ShapeTextDirection } from '@univerjs-pro/engine-shape' · Used by IShapeTextAlign
enum ShapeTextDirection { Horz = 'horz', Vert = 'vert', Vert270 = 'vert270', WordArtVert = 'wordArtVert', EaVert = 'eaVert', MongolianVert = 'mongolianVert', WordArtVertRtl = 'wordArtVertRtl',}ShapeTextHorizontalAnchor
import type { ShapeTextHorizontalAnchor } from '@univerjs-pro/engine-shape' · Used by IShapeTextBodyBehavior
type ShapeTextHorizontalAnchor = 'center'ShapeTextWrapType
import { ShapeTextWrapType } from '@univerjs-pro/engine-shape' · Used by IShapeTextBodyBehavior
enum ShapeTextWrapType { None = 'none', Square = 'square',}SmartArtNodeRoleEnum
import { SmartArtNodeRoleEnum } from '@univerjs-pro/engine-shape' · Used by ISmartArtDataNode
enum SmartArtNodeRoleEnum { Content = 'content', Assistant = 'assistant',}SmartArtPresentationShapeRoleEnum
import { SmartArtPresentationShapeRoleEnum } from '@univerjs-pro/engine-shape' · Used by ISmartArtPresentationShape
enum SmartArtPresentationShapeRoleEnum { Node = 'node', Connector = 'connector', Background = 'background', Decoration = 'decoration', Image = 'image', Text = 'text',}SmartArtPresentationTextSourceEnum
import { SmartArtPresentationTextSourceEnum } from '@univerjs-pro/engine-shape' · Used by ISmartArtPresentationShape
enum SmartArtPresentationTextSourceEnum { DataNode = 'dataNode', Presentation = 'presentation',}SmartArtTextFontSizeModeEnum
import { SmartArtTextFontSizeModeEnum } from '@univerjs-pro/engine-shape' · Used by ISmartArtDataNode
enum SmartArtTextFontSizeModeEnum { Auto = 'auto', Manual = 'manual',}IGdContext
import type { IGdContext } from '@univerjs-pro/engine-shape' · Used by IGdContextKey
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
ISmartArtDefinitionParameter
Nested type in @univerjs-pro/engine-shape · Used by ISmartArtDefinitionInstruction
interface ISmartArtDefinitionParameter { name: string scope?: SmartArtDefinitionScopeEnum value: string}Related types: SmartArtDefinitionScopeEnum
SmartArtDefinitionScopeEnum
Nested type in @univerjs-pro/engine-shape · Used by ISmartArtDefinitionInstruction · ISmartArtDefinitionParameter
enum SmartArtDefinitionScopeEnum { Diagram = 'diagram', DiagramDrawing = 'diagramDrawing', Drawing = 'drawing', Relationships = 'relationships',}SmartArtTopologyPointKindEnum
Nested type in @univerjs-pro/engine-shape · Used by ISmartArtTopologyPoint
enum SmartArtTopologyPointKindEnum { Document = 'document', Content = 'content', Assistant = 'assistant', ParentTransition = 'parentTransition', SiblingTransition = 'siblingTransition', Presentation = 'presentation',}IGdContextBase
Nested type in @univerjs-pro/engine-shape · Used by IGdContext
GdContext 用来计算 OOXML Shape 的 Geometry Definitions (gd) 包含:
- 基本绘制尺寸(宽 w、高 h)
- 固定点位(左 l、右 r、顶 t、底 b、中心等)
- 调整值(adjust values)
- 临时计算缓存
- gd 公式系统需要的数学方法
所有值都按 Office 的规则:1000 = 1px 的 EMU 转换前坐标系。 公式计算遵循 OOXML 的 ST_AdjCoordinate 体系。
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}Насколько полезно это руководство?