MCPcopy Index your code
hub / github.com/material-shell/material-shell / getTransformedBox

Method getTransformedBox

src/utils/transition.ts:28–35  ·  view source on GitHub ↗
(actor: Clutter.Actor)

Source from the content-addressed store, hash-verified

26 }
27
28 getTransformedBox(actor: Clutter.Actor) {
29 const box = new Clutter.ActorBox();
30 box.x1 = actor.x + actor.translation_x;
31 box.x2 = box.x1 + actor.width;
32 box.y1 = actor.y + actor.translation_y;
33 box.y2 = box.y1 + actor.height;
34 return box;
35 }
36
37 /** Starts a transition.
38 *

Callers 1

setTranslationMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected