MCPcopy Create free account
hub / github.com/ygs-code/vue / applyTranslation

Function applyTranslation

vue.js:12198–12209  ·  view source on GitHub ↗
(c)

Source from the content-addressed store, hash-verified

12196 }
12197
12198 function applyTranslation(c) {
12199 var oldPos = c.data.pos;
12200 var newPos = c.data.newPos;
12201 var dx = oldPos.left - newPos.left;
12202 var dy = oldPos.top - newPos.top;
12203 if (dx || dy) {
12204 c.data.moved = true;
12205 var s = c.elm.style;
12206 s.transform = s.WebkitTransform = "translate(" + dx + "px," + dy + "px)";
12207 s.transitionDuration = '0s';
12208 }
12209 }
12210
12211 var platformComponents = {
12212 Transition: Transition,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected