MCPcopy Index your code
hub / github.com/phaserjs/phaser / SetOrigin

Function SetOrigin

src/actions/SetOrigin.js:32–45  ·  view source on GitHub ↗
(items, originX, originY, stepX, stepY, index, direction)

Source from the content-addressed store, hash-verified

30 * @return {(array|Phaser.GameObjects.GameObject[])} The array of objects that were passed to this Action.
31 */
32var SetOrigin = function (items, originX, originY, stepX, stepY, index, direction)
33{
34 if (originY === undefined || originY === null) { originY = originX; }
35
36 PropertyValueSet(items, 'originX', originX, stepX, index, direction);
37 PropertyValueSet(items, 'originY', originY, stepY, index, direction);
38
39 items.forEach(function (item)
40 {
41 item.updateDisplayOrigin();
42 });
43
44 return items;
45};
46
47module.exports = SetOrigin;

Callers 1

SetOrigin.test.jsFile · 0.85

Calls 2

PropertyValueSetFunction · 0.85
updateDisplayOriginMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…