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

Function applyTranslation

static/vuejs/vue.common.js:7213–7224  ·  view source on GitHub ↗
(c)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected