Home / Function/ normalize() — vue Function Reference

normalize() — vue Function Reference

Architecture documentation for the normalize() function in style.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  0adc57ca_cd61_4d46_5c43_47cc9b05ba38["normalize()"]
  8b26f627_0982_0df0_c3cb_2f1f73bd5429["style.ts"]
  0adc57ca_cd61_4d46_5c43_47cc9b05ba38 -->|defined in| 8b26f627_0982_0df0_c3cb_2f1f73bd5429
  872edfe3_0bb5_ddac_4c2b_fd7490ff422f["setProp()"]
  872edfe3_0bb5_ddac_4c2b_fd7490ff422f -->|calls| 0adc57ca_cd61_4d46_5c43_47cc9b05ba38
  style 0adc57ca_cd61_4d46_5c43_47cc9b05ba38 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/platforms/web/runtime/modules/style.ts lines 42–55

const normalize = cached(function (prop) {
  emptyStyle = emptyStyle || document.createElement('div').style
  prop = camelize(prop)
  if (prop !== 'filter' && prop in emptyStyle) {
    return prop
  }
  const capName = prop.charAt(0).toUpperCase() + prop.slice(1)
  for (let i = 0; i < vendorNames.length; i++) {
    const name = vendorNames[i] + capName
    if (name in emptyStyle) {
      return name
    }
  }
})

Domain

Subdomains

Called By

Frequently Asked Questions

What does normalize() do?
normalize() is a function in the vue codebase, defined in src/platforms/web/runtime/modules/style.ts.
Where is normalize() defined?
normalize() is defined in src/platforms/web/runtime/modules/style.ts at line 42.
What calls normalize()?
normalize() is called by 1 function(s): setProp.

Analyze Your Own Codebase

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

Try Supermodel Free