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

Function applyTranslation

static/vuejs/vue.runtime.common.js:6765–6776  ·  view source on GitHub ↗
(c)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected