Skip to content

Commit

Permalink
Fix pixijs-userland#9 by upgrading to v6
Browse files Browse the repository at this point in the history
  • Loading branch information
bigtimebuddy committed Jul 30, 2021
1 parent 472ffe3 commit b5dc986
Show file tree
Hide file tree
Showing 4 changed files with 177 additions and 28 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
name: Node.js CI
on:
push:
branches: [ '*' ]
release:
types: [ 'created' ]
branches: [ '**' ]
pull_request:
branches: [ '*' ]
branches: [ '**' ]
jobs:
build:
runs-on: ubuntu-latest
Expand Down
27 changes: 10 additions & 17 deletions index.d.ts
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;
}
152 changes: 152 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 13 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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": {}
}

0 comments on commit b5dc986

Please sign in to comment.