IFClite TypeScript API
    Preparing search index...

    Function rulesFromPresets

    • Turn an arbitrary list of rule presets into runnable ClashRules. Used by the built-in discipline matrix below and by the viewer to run a user-edited preset set. clearance is threaded onto each rule only in clearance mode (narrow.ts only reports clearance violations when rule.clearance != null); reportTouch is threaded onto every rule when set.

      Parameters

      Returns ClashRule[]