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
  707ffaaf_8565_59b6_e63d_66c2ac9eab68["normalize()"]
  39bcf580_b87a_fcd4_c4dc_38d5e8e0495a["style.ts"]
  707ffaaf_8565_59b6_e63d_66c2ac9eab68 -->|defined in| 39bcf580_b87a_fcd4_c4dc_38d5e8e0495a
  7b0a1c4d_a609_ae95_b6a4_79306b7d0902["setProp()"]
  7b0a1c4d_a609_ae95_b6a4_79306b7d0902 -->|calls| 707ffaaf_8565_59b6_e63d_66c2ac9eab68
  style 707ffaaf_8565_59b6_e63d_66c2ac9eab68 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