applyTranslation() — vue Function Reference
Architecture documentation for the applyTranslation() function in transition-group.ts from the vue codebase.
Entity Profile
Relationship Graph
Source Code
src/platforms/web/runtime/components/transition-group.ts lines 193–204
function applyTranslation(c: VNodeWithData) {
const oldPos = c.data.pos
const newPos = c.data.newPos
const dx = oldPos.left - newPos.left
const dy = oldPos.top - newPos.top
if (dx || dy) {
c.data.moved = true
const s = c.elm.style
s.transform = s.WebkitTransform = `translate(${dx}px,${dy}px)`
s.transitionDuration = '0s'
}
}
Domain
Subdomains
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free