Skip to main content

ValidationResolveCyclicBlocks

Callable


  • Fixes any cyclic blocks in the provided appearance array. The given diff map is used to determine the order in which items should be rolled back or removed if block cycles are found (a block cycle being a series of items that block each other in a cyclic fashion).


    Parameters

    • appearance: Item[]

      The appearance to sanitize

    • diffMap: Partial<Record<AssetGroupName, Item[]>>

      The appearance diff map which indicates the items that were changed as part of the appearance update that triggered this validation

    Returns AppearanceValidationWrapper

    • A wrapper containing the final appearance, with any block cycles removed, plus a valid flag indicating whether or not the appearance had to be modified.