ComPDFKit Web SDK
    Preparing search index...

    Function setActivePalette

    • Sets which palette tab the style panel opens by default. Writes viewer.colorMap[toolName].currentStyleTab; rules and warnings are the same as setIconColor. The style panel has no color tabs (text / stroke / fill colors are shown together), so only the state is stored (getCurrentStyleTab); the UI does not read it.

      Parameters

      • toolName: string

        The tool name.

      • colorPalette: "text" | "border" | "fill"

        'text', 'border' or 'fill'.

      Returns void