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
  81fec14a_c1fd_2462_55e7_d9e294dec821["normalize()"]
  2bc00625_4c85_43e2_d223_5de834ee1789["setProp()"]
  2bc00625_4c85_43e2_d223_5de834ee1789 -->|calls| 81fec14a_c1fd_2462_55e7_d9e294dec821
  b65ee2ae_7b0a_e529_1797_def86b9220cf["cached()"]
  81fec14a_c1fd_2462_55e7_d9e294dec821 -->|calls| b65ee2ae_7b0a_e529_1797_def86b9220cf
  836e9c36_fe18_c1c8_9715_d916891f0517["camelize()"]
  81fec14a_c1fd_2462_55e7_d9e294dec821 -->|calls| 836e9c36_fe18_c1c8_9715_d916891f0517
  style 81fec14a_c1fd_2462_55e7_d9e294dec821 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.
What does normalize() call?
normalize() calls 2 function(s): cached, camelize.
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