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

Function applyTranslation

static/vuejs/vue.runtime.js:6759–6770  ·  view source on GitHub ↗
(c)

Source from the content-addressed store, hash-verified

6757}
6758
6759function applyTranslation (c) {
6760 var oldPos = c.data.pos;
6761 var newPos = c.data.newPos;
6762 var dx = oldPos.left - newPos.left;
6763 var dy = oldPos.top - newPos.top;
6764 if (dx || dy) {
6765 c.data.moved = true;
6766 var s = c.elm.style;
6767 s.transform = s.WebkitTransform = "translate(" + dx + "px," + dy + "px)";
6768 s.transitionDuration = '0s';
6769 }
6770}
6771
6772var platformComponents = {
6773 Transition: Transition,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected