The ExperimentController contains all SDK functions that are considered for addition, or functions we want to keep open for changing definitions. This is a sneak peak into future versions of the SDK. Never build production code relying on functions in this controller.

Hierarchy

  • ExperimentController

Methods

  • This method gets the text content of a text frame. The variables contained in the text will return their values only if you are in text editing mode.

    Returns

    the text content

    Parameters

    • frameId: string

      The ID of a text frame

    • textType: TextType

      The type of the text

    Returns Promise<EditorResponse<string>>

  • This method will assign an image from a variable to the correct ImageFrame

    Returns

    Parameters

    • imageFrameId: string

      the id of the imageFrame where an image needs to be assigned to

    • variableId: string

      the id of the variable which contains the image

    Returns Promise<EditorResponse<null>>

  • This method will insert a text variable in the selected frame. Calling this method requires that the selected frame is in text editing mode.

    Returns

    Parameters

    • id: string

      the id of the variable to be inserted.

    Returns Promise<EditorResponse<null>>

  • This method selects the text content of a text frame

    Returns

    Parameters

    • frameId: string

      The ID of a text frame

    • startIndex: number

      The index where the selection starts

    • length: number

      The length of selection from startIndex

    Returns Promise<EditorResponse<null>>

Generated using TypeDoc