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

Function applyTranslation

static/vuejs/vue.runtime.esm.js:6763–6774  ·  view source on GitHub ↗
(c)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected