interface TextObjectUtilsType {
    canMergeText: (
        graphicObjectUtils: GraphicObjectUtilsType,
    ) => Promise<boolean>;
    canSplitText: (
        graphicObjectUtils: GraphicObjectUtilsType,
    ) => Promise<boolean>;
    canText2Path: (
        graphicObjectUtils: GraphicObjectUtilsType,
    ) => Promise<boolean>;
    getCharSpace: (
        graphicObjectUtils: GraphicObjectUtilsType,
    ) => Promise<number>;
    getFillInfo: (
        graphicObjectUtils: GraphicObjectUtilsType,
    ) => Promise<FillInfoType>;
    getFont: (
        graphicObjectUtils: GraphicObjectUtilsType,
        isFullName: boolean,
    ) => Promise<string>;
    getFontSize: (
        graphicObjectUtils: GraphicObjectUtilsType,
    ) => Promise<number>;
    getHorizontalScale: (
        graphicObjectUtils: GraphicObjectUtilsType,
    ) => Promise<number>;
    getLineWidth: (
        graphicObjectUtils: GraphicObjectUtilsType,
    ) => Promise<number>;
    getStrokeInfo: (
        graphicObjectUtils: GraphicObjectUtilsType,
    ) => Promise<StrokeInfoType>;
    getTextColorInfo: (
        graphicObjectUtils: GraphicObjectUtilsType,
    ) => Promise<TextColorInfoType>;
    getTextMode: (
        graphicObjectUtils: GraphicObjectUtilsType,
    ) => Promise<FPD_TextMode>;
    getWordSpace: (
        graphicObjectUtils: GraphicObjectUtilsType,
    ) => Promise<number>;
    isFontBold: (
        graphicObjectUtils: GraphicObjectUtilsType,
    ) => Promise<boolean>;
    isFontItalic: (
        graphicObjectUtils: GraphicObjectUtilsType,
    ) => Promise<boolean>;
    isWordSpaceValid: (
        graphicObjectUtils: GraphicObjectUtilsType,
    ) => Promise<FPD_ValidFlag>;
    mergeText: (graphicObjectUtils: GraphicObjectUtilsType) => Promise<boolean>;
    options?: Options;
    setCharSpace: (
        graphicObjectUtils: GraphicObjectUtilsType,
        charSpace: number,
    ) => Promise<boolean>;
    setFillInfo: (
        graphicObjectUtils: GraphicObjectUtilsType,
        isFill: boolean,
        color: RGBColor,
        addUndo: boolean,
    ) => Promise<void>;
    setFont: (
        __namedParameters: {
            bold?: boolean;
            fontName: string;
            graphicObjectUtils: GraphicObjectUtilsType;
            italic?: boolean;
            opType: FPD_FONTOPERATION;
        },
    ) => Promise<boolean>;
    setFontSize: (
        graphicObjectUtils: GraphicObjectUtilsType,
        fontSize: number,
    ) => Promise<boolean>;
    setHorizontalScale: (
        graphicObjectUtils: GraphicObjectUtilsType,
        horizonScale: number,
    ) => Promise<boolean>;
    setLineWidth: (
        graphicObjectUtils: GraphicObjectUtilsType,
        lineWidth: number,
    ) => Promise<boolean>;
    setStrokeInfo: (
        graphicObjectUtils: GraphicObjectUtilsType,
        isStroke: boolean,
        color: RGBColor,
        addUndo: boolean,
    ) => Promise<void>;
    setTextMode: (
        graphicObjectUtils: GraphicObjectUtilsType,
        mode: FPD_TextMode,
    ) => Promise<boolean>;
    setWordSpace: (
        graphicObjectUtils: GraphicObjectUtilsType,
        wordSpace: number,
    ) => Promise<boolean>;
}

Implemented by

Properties

canMergeText: (graphicObjectUtils: GraphicObjectUtilsType) => Promise<boolean>

can merge text

Type declaration

    • (graphicObjectUtils: GraphicObjectUtilsType): Promise<boolean>
    • Parameters

      Returns Promise<boolean>

      A promise that resolves to a boolean indicating whether text can be merged.

canSplitText: (graphicObjectUtils: GraphicObjectUtilsType) => Promise<boolean>

can split text

Type declaration

    • (graphicObjectUtils: GraphicObjectUtilsType): Promise<boolean>
    • Parameters

      Returns Promise<boolean>

      A promise that resolves to a boolean indicating whether the text can be split.

canText2Path: (graphicObjectUtils: GraphicObjectUtilsType) => Promise<boolean>

can text to path

Type declaration

    • (graphicObjectUtils: GraphicObjectUtilsType): Promise<boolean>
    • Parameters

      Returns Promise<boolean>

      A promise that resolves to a boolean indicating whether the text can be converted to a path.

getCharSpace: (graphicObjectUtils: GraphicObjectUtilsType) => Promise<number>

get char space

Type declaration

getFillInfo: (
    graphicObjectUtils: GraphicObjectUtilsType,
) => Promise<FillInfoType>

get fill info

Type declaration

getFont: (
    graphicObjectUtils: GraphicObjectUtilsType,
    isFullName: boolean,
) => Promise<string>

get font

Type declaration

    • (
          graphicObjectUtils: GraphicObjectUtilsType,
          isFullName: boolean,
      ): Promise<string>
    • Parameters

      • graphicObjectUtils: GraphicObjectUtilsType

        The graphic object utilities to use.

      • isFullName: boolean

        Whether to get the full name of the font.

      Returns Promise<string>

      A promise that resolves to the name of the font.

getFontSize: (graphicObjectUtils: GraphicObjectUtilsType) => Promise<number>

get font size

Type declaration

getHorizontalScale: (
    graphicObjectUtils: GraphicObjectUtilsType,
) => Promise<number>

get horizontal scale

Type declaration

getLineWidth: (graphicObjectUtils: GraphicObjectUtilsType) => Promise<number>

get line width

Type declaration

getStrokeInfo: (
    graphicObjectUtils: GraphicObjectUtilsType,
) => Promise<StrokeInfoType>

get stroke info

Type declaration

getTextColorInfo: (
    graphicObjectUtils: GraphicObjectUtilsType,
) => Promise<TextColorInfoType>

get text color info

Type declaration

getTextMode: (
    graphicObjectUtils: GraphicObjectUtilsType,
) => Promise<FPD_TextMode>

get text mode

Type declaration

getWordSpace: (graphicObjectUtils: GraphicObjectUtilsType) => Promise<number>

get word space

Type declaration

isFontBold: (graphicObjectUtils: GraphicObjectUtilsType) => Promise<boolean>

get font bold info

Type declaration

    • (graphicObjectUtils: GraphicObjectUtilsType): Promise<boolean>
    • Parameters

      Returns Promise<boolean>

      A promise that resolves to a boolean indicating whether the font is bold.

isFontItalic: (graphicObjectUtils: GraphicObjectUtilsType) => Promise<boolean>

get font italic

Type declaration

    • (graphicObjectUtils: GraphicObjectUtilsType): Promise<boolean>
    • Parameters

      Returns Promise<boolean>

      A promise that resolves to a boolean indicating whether the font is italic.

isWordSpaceValid: (
    graphicObjectUtils: GraphicObjectUtilsType,
) => Promise<FPD_ValidFlag>

is word space valid

Type declaration

mergeText: (graphicObjectUtils: GraphicObjectUtilsType) => Promise<boolean>

merge text

Type declaration

    • (graphicObjectUtils: GraphicObjectUtilsType): Promise<boolean>
    • Parameters

      Returns Promise<boolean>

      A promise that resolves to a boolean indicating whether text was merged successfully.

options?: Options
setCharSpace: (
    graphicObjectUtils: GraphicObjectUtilsType,
    charSpace: number,
) => Promise<boolean>

set char space

Type declaration

    • (
          graphicObjectUtils: GraphicObjectUtilsType,
          charSpace: number,
      ): Promise<boolean>
    • Parameters

      Returns Promise<boolean>

      A promise that resolves to a boolean indicating whether the char space was successfully set.

setFillInfo: (
    graphicObjectUtils: GraphicObjectUtilsType,
    isFill: boolean,
    color: RGBColor,
    addUndo: boolean,
) => Promise<void>

set fill info

Type declaration

    • (
          graphicObjectUtils: GraphicObjectUtilsType,
          isFill: boolean,
          color: RGBColor,
          addUndo: boolean,
      ): Promise<void>
    • Parameters

      • graphicObjectUtils: GraphicObjectUtilsType

        The graphic object utilities to use.

      • isFill: boolean

        Whether to enable fill.

      • color: RGBColor

        The fill color.

      • addUndo: boolean

        Whether to add an undo step.

      Returns Promise<void>

      A promise that resolves when the fill info is set.

setFont: (
    __namedParameters: {
        bold?: boolean;
        fontName: string;
        graphicObjectUtils: GraphicObjectUtilsType;
        italic?: boolean;
        opType: FPD_FONTOPERATION;
    },
) => Promise<boolean>

set font

Type declaration

    • (
          __namedParameters: {
              bold?: boolean;
              fontName: string;
              graphicObjectUtils: GraphicObjectUtilsType;
              italic?: boolean;
              opType: FPD_FONTOPERATION;
          },
      ): Promise<boolean>
    • Parameters

      • __namedParameters: {
            bold?: boolean;
            fontName: string;
            graphicObjectUtils: GraphicObjectUtilsType;
            italic?: boolean;
            opType: FPD_FONTOPERATION;
        }

      Returns Promise<boolean>

      A promise that resolves to a boolean indicating whether the font was successfully set.

setFontSize: (
    graphicObjectUtils: GraphicObjectUtilsType,
    fontSize: number,
) => Promise<boolean>

set font size

Type declaration

    • (graphicObjectUtils: GraphicObjectUtilsType, fontSize: number): Promise<boolean>
    • Parameters

      Returns Promise<boolean>

      A promise that resolves to a boolean indicating whether the font size was successfully set.

setHorizontalScale: (
    graphicObjectUtils: GraphicObjectUtilsType,
    horizonScale: number,
) => Promise<boolean>

set horizontal scale

Type declaration

    • (
          graphicObjectUtils: GraphicObjectUtilsType,
          horizonScale: number,
      ): Promise<boolean>
    • Parameters

      Returns Promise<boolean>

      A promise that resolves to a boolean indicating whether the horizontal scale was successfully set.

setLineWidth: (
    graphicObjectUtils: GraphicObjectUtilsType,
    lineWidth: number,
) => Promise<boolean>

set line width

Type declaration

    • (
          graphicObjectUtils: GraphicObjectUtilsType,
          lineWidth: number,
      ): Promise<boolean>
    • Parameters

      • graphicObjectUtils: GraphicObjectUtilsType

        The graphic object utilities to use.

      • lineWidth: number

        The line width to set.

      Returns Promise<boolean>

      A promise that resolves to a boolean indicating whether the line width was successfully set.

setStrokeInfo: (
    graphicObjectUtils: GraphicObjectUtilsType,
    isStroke: boolean,
    color: RGBColor,
    addUndo: boolean,
) => Promise<void>

set stroke info

Type declaration

    • (
          graphicObjectUtils: GraphicObjectUtilsType,
          isStroke: boolean,
          color: RGBColor,
          addUndo: boolean,
      ): Promise<void>
    • Parameters

      • graphicObjectUtils: GraphicObjectUtilsType

        The graphic object utilities to use.

      • isStroke: boolean

        Whether to enable stroke.

      • color: RGBColor

        The stroke color.

      • addUndo: boolean

        Whether to add an undo step.

      Returns Promise<void>

      A promise that resolves when the stroke info is set.

setTextMode: (
    graphicObjectUtils: GraphicObjectUtilsType,
    mode: FPD_TextMode,
) => Promise<boolean>

set text mode

Type declaration

    • (
          graphicObjectUtils: GraphicObjectUtilsType,
          mode: FPD_TextMode,
      ): Promise<boolean>
    • Parameters

      Returns Promise<boolean>

      A promise that resolves to a boolean indicating whether the text mode was successfully set.

setWordSpace: (
    graphicObjectUtils: GraphicObjectUtilsType,
    wordSpace: number,
) => Promise<boolean>

set word space

Type declaration

    • (
          graphicObjectUtils: GraphicObjectUtilsType,
          wordSpace: number,
      ): Promise<boolean>
    • Parameters

      Returns Promise<boolean>

      A promise that resolves to a boolean indicating whether the word space was successfully set.