@iocium/domhash
    Preparing search index...

    Interface ResilienceBreakdown

    Represents the resilience breakdown of a certain element or system.

    This interface encapsulates the overall score, detailed penalties associated with various factors, and a qualitative label that indicates the resilience level. The emoji provides a visual representation of the resilience status.

    interface ResilienceBreakdown {
        breakdown: {
            depthPenalty: number;
            layoutPenalty: number;
            tagPenalty: number;
        };
        emoji: "✅"
        | "⚠️"
        | "❌";
        label: "Strong" | "Moderate" | "Fragile";
        score: number;
    }
    Index

    Properties

    breakdown: { depthPenalty: number; layoutPenalty: number; tagPenalty: number }

    A breakdown of penalties that contribute to the overall resilience score.

    Type declaration

    • depthPenalty: number

      The penalty related to the depth of the element within the document structure. A deeper nesting may incur a higher penalty.

    • layoutPenalty: number

      The penalty associated with the layout characteristics of the element. This reflects how the layout impacts the resilience.

    • tagPenalty: number

      The penalty associated with the tag used in the element. This could represent how the choice of HTML tag affects resilience.

    emoji: "✅" | "⚠️" | "❌"

    An emoji representing the resilience status visually. Possible values include:

    • '✅' for strong resilience.
    • '⚠️' for moderate resilience.
    • '❌' for fragile resilience.
    label: "Strong" | "Moderate" | "Fragile"

    A qualitative label indicating the level of resilience. Possible values include:

    • 'Strong': Indicates high resilience.
    • 'Moderate': Indicates average resilience.
    • 'Fragile': Indicates low resilience.
    score: number

    The overall resilience score, typically a numeric value that reflects the strength or weakness of the element or system.