ts-visio - v1.16.27
    Preparing search index...

    Interface NewShapeProps

    interface NewShapeProps {
        bold?: boolean;
        connectionPoints?: ConnectionPointDef[];
        cornerRadius?: number;
        fillColor?: string;
        fillStyleId?: number;
        fontColor?: string;
        fontFamily?: string;
        fontSize?: number;
        geometry?: ShapeGeometry;
        height: number;
        horzAlign?: HorzAlign;
        id?: string;
        imgRelId?: string;
        italic?: boolean;
        lineColor?: string;
        linePattern?: number;
        lineSpacing?: number;
        lineStyleId?: number;
        masterId?: string;
        spaceAfter?: number;
        spaceBefore?: number;
        strikethrough?: boolean;
        styleId?: number;
        text: string;
        textMarginBottom?: number;
        textMarginLeft?: number;
        textMarginRight?: number;
        textMarginTop?: number;
        textStyleId?: number;
        type?: string;
        underline?: boolean;
        verticalAlign?: VertAlign;
        width: number;
        x: number;
        y: number;
    }
    Index

    Properties

    bold?: boolean
    connectionPoints?: ConnectionPointDef[]

    Connection points to add to the shape. Use StandardConnectionPoints.cardinal for the four cardinal points, or StandardConnectionPoints.full for eight points.

    cornerRadius?: number

    Corner radius in inches for 'rounded-rectangle'. Defaults to 10% of the smaller dimension.

    fillColor?: string
    fillStyleId?: number

    Apply a stylesheet only for fill properties (FillStyle attribute).

    fontColor?: string
    fontFamily?: string

    Font family name (e.g. "Arial", "Times New Roman").

    fontSize?: number

    Font size in points (e.g. 14 for 14pt).

    geometry?: ShapeGeometry

    Shape geometry. Defaults to 'rectangle'.

    height: number
    horzAlign?: HorzAlign

    Horizontal text alignment within the shape.

    id?: string
    imgRelId?: string
    italic?: boolean

    Italic text.

    lineColor?: string
    linePattern?: number

    Line pattern. 0 = none, 1 = solid (default), 2 = dash, 3 = dot, 4 = dash-dot.

    lineSpacing?: number

    Line-height multiplier (1.0 = single, 1.5 = 1.5×, 2.0 = double).

    lineStyleId?: number

    Apply a stylesheet only for line properties (LineStyle attribute).

    masterId?: string
    spaceAfter?: number

    Space after each paragraph in points.

    spaceBefore?: number

    Space before each paragraph in points.

    strikethrough?: boolean

    Strikethrough text.

    styleId?: number

    Apply a document-level stylesheet to this shape (sets LineStyle, FillStyle, and TextStyle all to the same ID). Create styles via doc.createStyle(). Takes precedence over lineStyleId, fillStyleId, and textStyleId.

    text: string
    textMarginBottom?: number

    Bottom text margin in inches.

    textMarginLeft?: number

    Left text margin in inches.

    textMarginRight?: number

    Right text margin in inches.

    textMarginTop?: number

    Top text margin in inches.

    textStyleId?: number

    Apply a stylesheet only for text properties (TextStyle attribute).

    type?: string
    underline?: boolean

    Underline text.

    verticalAlign?: VertAlign

    Vertical text alignment within the shape.

    width: number
    x: number
    y: number