Back to Website
Show / Hide Table of Contents

Interface ITextOutline

The text outline for low-contrast texts in the Rich text editor. This feature is turned off by default.

Package: @aurigma/design-editor-iframe
Remarks

You can use these settings in IRichTextDialogConfig.

Examples
configuration = {
   widgets: {
       RichTextDialog: {
           bgColor: "black",
           textOutline: {
               enabled: true,
               color: "rgba(255, 0, 0, 0.5)"
           }
       }
   }
};

Properties

brightnessThreshold

The brightness threshold. The default value is 5.

Declaration
brightnessThreshold?: number;
Property Value
Type Description
number

The brightness threshold. The default value is 5.

color

The outline color. The default value is "rgba(0, 0, 0, 0.2)".

Declaration
color?: string;
Property Value
Type Description
string

The outline color. The default value is "rgba(0, 0, 0, 0.2)".

enabled

Enables text outline. The text is outlined in the Rich text dialog if the difference between the text and background colors is below the hue or the brightness threshold. The default value is false.

Declaration
enabled?: boolean;
Property Value
Type Description
boolean

Enables text outline. The text is outlined in the Rich text dialog if the difference between the text and background colors is below the hue or the brightness threshold. The default value is false.

hueThreshold

The hue threshold. The default value is 74.

Declaration
hueThreshold?: number;
Property Value
Type Description
number

The hue threshold. The default value is 74.

Was this page helpful?
Thanks for your feedback!
Back to top Copyright © 2001–2022 Aurigma, Inc. All rights reserved.
Loading...
    Thank for your vote
    Your opinion is important to us. To provide details, send feedback.
    Send feedback