@pixi/text
Advanced tools
Comparing version 7.0.0-alpha.3 to 7.0.0-beta
/*! | ||
* @pixi/text - v7.0.0-alpha.3 | ||
* Compiled Fri, 23 Sep 2022 14:33:14 UTC | ||
* @pixi/text - v7.0.0-beta | ||
* Compiled Tue, 11 Oct 2022 19:54:08 UTC | ||
* | ||
@@ -5,0 +5,0 @@ * @pixi/text is licensed under the MIT License. |
"use strict";/*! | ||
* @pixi/text - v7.0.0-alpha.3 | ||
* Compiled Fri, 23 Sep 2022 14:33:14 UTC | ||
* @pixi/text - v7.0.0-beta | ||
* Compiled Tue, 11 Oct 2022 19:54:08 UTC | ||
* | ||
@@ -5,0 +5,0 @@ * @pixi/text is licensed under the MIT License. |
@@ -0,1 +1,3 @@ | ||
import type { ICanvas } from '@pixi/settings'; | ||
import type { ICanvasRenderingContext2D } from '@pixi/settings'; | ||
import type { IDestroyOptions } from '@pixi/display'; | ||
@@ -44,3 +46,3 @@ import { Rectangle } from '@pixi/core'; | ||
declare interface ModernContext2D extends CanvasRenderingContext2D { | ||
declare interface ModernContext2D extends ICanvasRenderingContext2D { | ||
textLetterSpacing?: number; | ||
@@ -85,3 +87,3 @@ letterSpacing?: number; | ||
/** The canvas element that everything is drawn to. */ | ||
canvas: HTMLCanvasElement; | ||
canvas: ICanvas; | ||
/** The canvas 2d context that everything is drawn with. */ | ||
@@ -131,3 +133,3 @@ context: ModernContext2D; | ||
*/ | ||
constructor(text?: string | number, style?: Partial<ITextStyle> | TextStyle, canvas?: HTMLCanvasElement); | ||
constructor(text?: string | number, style?: Partial<ITextStyle> | TextStyle, canvas?: ICanvas); | ||
/** | ||
@@ -299,3 +301,3 @@ * Renders text to its canvas, and updates its texture. | ||
*/ | ||
static measureText(text: string, style: TextStyle, wordWrap?: boolean, canvas?: HTMLCanvasElement | OffscreenCanvas): TextMetrics_2; | ||
static measureText(text: string, style: TextStyle, wordWrap?: boolean, canvas?: ICanvas): TextMetrics_2; | ||
/** | ||
@@ -422,3 +424,3 @@ * Applies newlines to a string to have it optimally fit into the horizontal | ||
*/ | ||
static get _canvas(): HTMLCanvasElement | OffscreenCanvas; | ||
static get _canvas(): ICanvas; | ||
/** | ||
@@ -428,3 +430,3 @@ * TODO: this should be private, but isn't because of backward compat, will fix later. | ||
*/ | ||
static get _context(): CanvasRenderingContext2D | OffscreenCanvasRenderingContext2D; | ||
static get _context(): ICanvasRenderingContext2D; | ||
} | ||
@@ -431,0 +433,0 @@ export { TextMetrics_2 as TextMetrics } |
{ | ||
"name": "@pixi/text", | ||
"version": "7.0.0-alpha.3", | ||
"version": "7.0.0-beta", | ||
"main": "dist/cjs/text.js", | ||
@@ -42,3 +42,3 @@ "module": "dist/esm/text.mjs", | ||
], | ||
"gitHead": "e5cc328a2374fac1cb21915e8029d8a9bddb038c" | ||
"gitHead": "437c2f5432320da7d6ecef6986ab95c982c89b17" | ||
} |
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
2962
594882