Home / Function/ getBaseForStyle() — ui Function Reference

getBaseForStyle() — ui Function Reference

Architecture documentation for the getBaseForStyle() function in llm.ts from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  3849c20b_7178_4831_b7eb_018cc689fc9d["getBaseForStyle()"]
  d4c19c52_649d_50ba_748b_40d85e37474b["llm.ts"]
  3849c20b_7178_4831_b7eb_018cc689fc9d -->|defined in| d4c19c52_649d_50ba_748b_40d85e37474b
  71cc5361_9d12_7f85_828f_969e67dd74ac["getDemoFilePath()"]
  71cc5361_9d12_7f85_828f_969e67dd74ac -->|calls| 3849c20b_7178_4831_b7eb_018cc689fc9d
  fa5e6372_2e93_0c6b_294a_e4ba62d4e3f3["getIndexForStyle()"]
  fa5e6372_2e93_0c6b_294a_e4ba62d4e3f3 -->|calls| 3849c20b_7178_4831_b7eb_018cc689fc9d
  style 3849c20b_7178_4831_b7eb_018cc689fc9d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/lib/llm.ts lines 10–17

function getBaseForStyle(styleName: string) {
  for (const base of BASES) {
    if (styleName.startsWith(`${base.name}-`)) {
      return base.name
    }
  }
  return null
}

Subdomains

Defined In

Frequently Asked Questions

What does getBaseForStyle() do?
getBaseForStyle() is a function in the ui codebase, defined in apps/v4/lib/llm.ts.
Where is getBaseForStyle() defined?
getBaseForStyle() is defined in apps/v4/lib/llm.ts at line 10.
What calls getBaseForStyle()?
getBaseForStyle() is called by 2 function(s): getDemoFilePath, getIndexForStyle.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free