@pixi/text
Advanced tools
Comparing version 7.0.0-alpha to 7.0.0-alpha.2
/*! | ||
* @pixi/text - v7.0.0-alpha | ||
* Compiled Fri, 09 Sep 2022 16:09:18 UTC | ||
* @pixi/text - v7.0.0-alpha.2 | ||
* Compiled Sun, 18 Sep 2022 20:45:04 UTC | ||
* | ||
@@ -5,0 +5,0 @@ * @pixi/text is licensed under the MIT License. |
"use strict";/*! | ||
* @pixi/text - v7.0.0-alpha | ||
* Compiled Fri, 09 Sep 2022 16:09:18 UTC | ||
* @pixi/text - v7.0.0-alpha.2 | ||
* Compiled Sun, 18 Sep 2022 20:45:04 UTC | ||
* | ||
@@ -5,0 +5,0 @@ * @pixi/text is licensed under the MIT License. |
@@ -65,6 +65,11 @@ import type { IDestroyOptions } from '@pixi/display'; | ||
* which can be generated [here](https://pixijs.io/pixi-text-style). | ||
* @example | ||
* import { Text } from 'pixi.js'; | ||
* | ||
* ```js | ||
* let text = new PIXI.Text('This is a PixiJS text',{fontFamily : 'Arial', fontSize: 24, fill : 0xff1010, align : 'center'}); | ||
* ``` | ||
* const text = new Text('This is a PixiJS text', { | ||
* fontFamily : 'Arial', | ||
* fontSize: 24, | ||
* fill : 0xff1010, | ||
* align : 'center', | ||
* }); | ||
* @memberof PIXI | ||
@@ -227,7 +232,12 @@ */ | ||
* The TextMetrics object represents the measurement of a block of text with a specified style. | ||
* @example | ||
* import { TextStyle, TextMetrics } from 'pixi.js'; | ||
* | ||
* ```js | ||
* let style = new PIXI.TextStyle({fontFamily : 'Arial', fontSize: 24, fill : 0xff1010, align : 'center'}) | ||
* let textMetrics = PIXI.TextMetrics.measureText('Your text', style) | ||
* ``` | ||
* const style = new TextStyle({ | ||
* fontFamily: 'Arial', | ||
* fontSize: 24, | ||
* fill: 0xff1010, | ||
* align: 'center', | ||
* }); | ||
* const textMetrics = TextMetrics.measureText('Your text', style); | ||
* @memberof PIXI | ||
@@ -234,0 +244,0 @@ */ |
{ | ||
"name": "@pixi/text", | ||
"version": "7.0.0-alpha", | ||
"version": "7.0.0-alpha.2", | ||
"main": "dist/cjs/text.js", | ||
@@ -42,3 +42,3 @@ "module": "dist/esm/text.mjs", | ||
], | ||
"gitHead": "da993226df64b804a9c00ed9ee4d011191467b8a" | ||
"gitHead": "439f6c1606ba63b26a93173284d25c35a7682b17" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
595453
2960