@pixi/text-bitmap
Advanced tools
Comparing version 7.3.0-rc.2 to 7.3.0
import { TextFormat } from './TextFormat'; | ||
import { XMLFormat } from './XMLFormat'; | ||
import { XMLStringFormat } from './XMLStringFormat'; | ||
import type { BitmapFontData } from '../BitmapFontData'; | ||
declare const formats: readonly [typeof TextFormat, typeof XMLFormat, typeof XMLStringFormat]; | ||
@@ -11,4 +12,4 @@ /** | ||
*/ | ||
export declare function autoDetectFormat(data: unknown): typeof formats[number] | null; | ||
export declare function autoDetectFormat(data: string | XMLDocument | BitmapFontData): typeof formats[number] | null; | ||
export type { IBitmapFontRawData } from './TextFormat'; | ||
export { TextFormat, XMLFormat, XMLStringFormat }; |
@@ -55,3 +55,3 @@ import { BitmapFontData } from '../BitmapFontData'; | ||
*/ | ||
static test(data: unknown): boolean; | ||
static test(data: string | XMLDocument | BitmapFontData): boolean; | ||
/** | ||
@@ -58,0 +58,0 @@ * Convert text font data to a javascript object. |
@@ -12,3 +12,3 @@ import { BitmapFontData } from '../BitmapFontData'; | ||
*/ | ||
static test(data: unknown): boolean; | ||
static test(data: string | XMLDocument | BitmapFontData): boolean; | ||
/** | ||
@@ -15,0 +15,0 @@ * Convert the XML into BitmapFontData that we can use. |
@@ -11,3 +11,3 @@ "use strict"; | ||
const xml = data; | ||
return "getElementsByTagName" in xml && xml.getElementsByTagName("page").length && xml.getElementsByTagName("info")[0].getAttribute("face") !== null; | ||
return typeof data != "string" && "getElementsByTagName" in data && xml.getElementsByTagName("page").length && xml.getElementsByTagName("info")[0].getAttribute("face") !== null; | ||
} | ||
@@ -14,0 +14,0 @@ /** |
@@ -12,3 +12,3 @@ import type { BitmapFontData } from '../BitmapFontData'; | ||
*/ | ||
static test(data: unknown): boolean; | ||
static test(data: string | XMLDocument | BitmapFontData): boolean; | ||
/** | ||
@@ -15,0 +15,0 @@ * Convert the text XML into BitmapFontData that we can use. |
{ | ||
"name": "@pixi/text-bitmap", | ||
"version": "7.3.0-rc.2", | ||
"version": "7.3.0", | ||
"main": "lib/index.js", | ||
@@ -39,8 +39,8 @@ "module": "lib/index.mjs", | ||
"peerDependencies": { | ||
"@pixi/assets": "7.3.0-rc.2", | ||
"@pixi/core": "7.3.0-rc.2", | ||
"@pixi/display": "7.3.0-rc.2", | ||
"@pixi/mesh": "7.3.0-rc.2", | ||
"@pixi/text": "7.3.0-rc.2" | ||
"@pixi/assets": "7.3.0", | ||
"@pixi/core": "7.3.0", | ||
"@pixi/display": "7.3.0", | ||
"@pixi/mesh": "7.3.0", | ||
"@pixi/text": "7.3.0" | ||
} | ||
} |
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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
322845
2681
0