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

Function makeMockFrame

tests/gameobjects/components/Texture.test.js:4–13  ·  view source on GitHub ↗
(cutWidth, cutHeight, customPivot, pivotX, pivotY)

Source from the content-addressed store, hash-verified

2var Frame = require('../../../src/textures/Frame');
3
4function makeMockFrame (cutWidth, cutHeight, customPivot, pivotX, pivotY)
5{
6 return {
7 cutWidth: cutWidth !== undefined ? cutWidth : 64,
8 cutHeight: cutHeight !== undefined ? cutHeight : 64,
9 customPivot: customPivot || false,
10 pivotX: pivotX || 0,
11 pivotY: pivotY || 0
12 };
13}
14
15function makeMockGameObject (frameOverrides)
16{

Callers 1

makeMockGameObjectFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…