MCPcopy Create free account
hub / github.com/TruthHun/BookStack / applyTranslation

Function applyTranslation

static/vuejs/vue.js:7207–7218  ·  view source on GitHub ↗
(c)

Source from the content-addressed store, hash-verified

7205}
7206
7207function applyTranslation (c) {
7208 var oldPos = c.data.pos;
7209 var newPos = c.data.newPos;
7210 var dx = oldPos.left - newPos.left;
7211 var dy = oldPos.top - newPos.top;
7212 if (dx || dy) {
7213 c.data.moved = true;
7214 var s = c.elm.style;
7215 s.transform = s.WebkitTransform = "translate(" + dx + "px," + dy + "px)";
7216 s.transitionDuration = '0s';
7217 }
7218}
7219
7220var platformComponents = {
7221 Transition: Transition,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected