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

Function applyTranslation

static/vuejs/vue.esm.js:7211–7222  ·  view source on GitHub ↗
(c)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected