Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

Commit

Permalink
Merge pull request #164 from notboring/dev
Browse files Browse the repository at this point in the history
added missing properties to TextMetrics
  • Loading branch information
notboring authored Aug 24, 2019
2 parents 872b7b4 + bfb987a commit 24ebf54
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/pixi/core/text/TextMetrics.hx
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
package pixi.core.text;

import js.html.CanvasElement;
import pixi.core.text.TextStyle;

@:native("PIXI.TextMetrics")
extern class TextMetrics {

var height:Float;
var width:Float;
var lineHeight:Float;
var lines:Array<String>;
var lineWidth:Array<Float>;
var maxLineWidth:Float;
var style:TextStyle;
var text:String;

/**
* @param {String} text - the text that was measured
* @param {TextStyle} style - the style that was measured
Expand Down

0 comments on commit 24ebf54

Please sign in to comment.