g3-toolkit API Reference
    Preparing search index...

    Function applyIconMappings

    • Apply an icon set's pre-mappings to the node.icon channel: merges value -> icon overrides onto any existing icon mapping (set wins on collision; existing driver wins unless the channel was empty). Returns a NEW spec; the input is untouched.

      Parameters

      • spec: EncodingSpec
      • mappings: { driver: string; values: Record<string, string> }

      Returns EncodingSpec