Skip to content

Commit 8ae9580

Browse files
committed
Added jsdocs
1 parent 33c9f39 commit 8ae9580

5 files changed

Lines changed: 559 additions & 113 deletions

File tree

src/gameobjects/text/GetTextSize.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
/**
2+
* Returns an object containing dimensions of the Text object.
3+
*/
14

25
var GetTextSize = function (text, size, lines)
36
{

src/gameobjects/text/MeasureText.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
var CanvasPool = require('../../display/canvas/CanvasPool');
22

33
/**
4-
* Calculates the ascent, descent and fontSize of a given font style.
5-
*/
4+
* Calculates the ascent, descent and fontSize of a given font style.
5+
*/
6+
67
var MeasureText = function (textStyle)
78
{
89
// @property {HTMLCanvasElement} canvas - The canvas element that the text is rendered.

0 commit comments

Comments
 (0)