forked from pixijs-userland/html-text
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix pixijs-userland#9 by upgrading to v6
- Loading branch information
1 parent
472ffe3
commit b5dc986
Showing
4 changed files
with
177 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,12 @@ | ||
/// <reference types="pixi.js" /> | ||
import { Sprite } from '@pixi/sprite'; | ||
import { TextStyle } from '@pixi/text'; | ||
|
||
declare namespace PIXI { | ||
export class HTMLText extends PIXI.Sprite { | ||
constructor(text?:string, style?:PIXI.TextStyle, canvas?:HTMLCanvasElement); | ||
readonly canvas:HTMLCanvasElement; | ||
readonly context:CanvasRenderingContext2D; | ||
text:string; | ||
style:PIXI.TextStyle; | ||
resolution: number; | ||
width: number; | ||
height: number; | ||
updateText(respectDirty?:boolean): void; | ||
} | ||
} | ||
|
||
declare module "@pixi/text-html" { | ||
export import HTMLText = PIXI.HTMLText; | ||
export class HTMLText extends Sprite { | ||
constructor(text?:string, style?:TextStyle, canvas?:HTMLCanvasElement); | ||
readonly canvas:HTMLCanvasElement; | ||
readonly context:CanvasRenderingContext2D; | ||
text:string; | ||
style:TextStyle; | ||
resolution: number; | ||
updateText(respectDirty?:boolean): void; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,12 +38,12 @@ | |
"author": "Matt Karl <[email protected]>", | ||
"license": "MIT", | ||
"peerDependencies": { | ||
"@pixi/core": "^5.0.0", | ||
"@pixi/math": "^5.0.0", | ||
"@pixi/settings": "^5.0.0", | ||
"@pixi/sprite": "^5.0.0", | ||
"@pixi/text": "^5.0.0", | ||
"@pixi/utils": "^5.0.0" | ||
"@pixi/core": "^6.0.0", | ||
"@pixi/math": "^6.0.0", | ||
"@pixi/settings": "^6.0.0", | ||
"@pixi/sprite": "^6.0.0", | ||
"@pixi/text": "^6.0.0", | ||
"@pixi/utils": "^6.0.0" | ||
}, | ||
"devDependencies": { | ||
"@pixi/eslint-config": "^1.0.1", | ||
|
@@ -59,7 +59,13 @@ | |
"rollup": "^2.3.3", | ||
"rollup-plugin-buble": "^0.19.8", | ||
"rollup-plugin-terser": "^5.3.0", | ||
"typescript": "^3.8.3" | ||
"typescript": "^3.8.3", | ||
"@pixi/core": "^6.0.0", | ||
"@pixi/math": "^6.0.0", | ||
"@pixi/settings": "^6.0.0", | ||
"@pixi/sprite": "^6.0.0", | ||
"@pixi/text": "^6.0.0", | ||
"@pixi/utils": "^6.0.0" | ||
}, | ||
"dependencies": {} | ||
} |