get-tree


目录

title: Get icon dependencies tree from icon set
types:
  IconifyJSON: '/docs/types/iconify-json.md'
  IconSet: './index.md'

getTree()

This function is part of [type]IconSet class in Iconify Tools.

Function [func]getTree() returns list of parent icons for each icon in icon set, null for icons that cannot be resolved.

It is useful when you need to figure out which icons need to be exported when exporting a subset of icons, it can be used to figure out which icons have invalid parent icons.

Usage

Function has the following optional parameter:

Function will return object, where key is icon name, value is:

Example

src: libraries/tools/icon-set/get-tree.ts
title: 'example.ts'
extra:
  - src: libraries/tools/icon-set/get-tree.json
    title: 'Result:'

版本号 #2
由 壳壳虫 创建于 2026-10-31 14:25:11 UTC
由 壳壳虫 更新于 2026-10-31 14:25:11 UTC