Comments (3)
Agreed regarding adding typescript
as a dev dependency - I tend to forget about that since it's a global install.
Those errors look like you're missing the pixi.js
type definitions, which likely means one of two things:
- You need to run
npm install
to get the type definitions for Pixi, which get installed as@types/pixi.js
. - You're using an older version of TypeScript (pre-2.0), which doesn't automatically import
@types
definitions. Updating to a newer version (I think the current one is 2.1.4) should fix the problem.
Let me know if neither of those work.
from pixi-multistyle-text.
Thanks @bluepichu, my bad, forgot to install the types ^^ Still having these errors:
pixi-multistyle-text.ts(260,5): error TS2322: Type 'string | number' is not assignable to type 'string | CanvasGradient | CanvasPattern'.
Type 'number' is not assignable to type 'string | CanvasGradient | CanvasPattern'.
pixi-multistyle-text.ts(283,6): error TS2322: Type 'string | number' is not assignable to type 'string | CanvasGradient | CanvasPattern'.
Type 'number' is not assignable to type 'string | CanvasGradient | CanvasPattern'.
pixi-multistyle-text.ts(294,5): error TS2322: Type 'string | number | string[] | number[] | CanvasGradient | CanvasPattern' is not assignable to type 'string | CanvasGradient | CanvasPattern'.
Type 'number' is not assignable to type 'string | CanvasGradient | CanvasPattern'.
from pixi-multistyle-text.
#14 should fix these.
from pixi-multistyle-text.
Related Issues (20)
- Formatting tags cannot be used together
- Error when used "@pixi/text": "5.2.2" and fillGradientStops style HOT 1
- BitmapText support? HOT 1
- Cropped characters
- Change FILL color .on('pointerover'
- Hire You To Build This Feature
- Request for Write privileges HOT 6
- wordWrap + letterSpacing is broken HOT 3
- Unable to update wordWrapWidth HOT 3
- A feature request, textOverflow with ellipsis HOT 1
- Incorrect formatting when using breakWords. HOT 3
- Negative local bounds on root container
- option to use bbcode style [tags][/tags] instead of <xml></xml> style HOT 3
- ability to take in parameters inside tag <color=red> red text </color> HOT 2
- Ability to use this as a library inside a JS project
- demo no longer works HOT 4
- Do you plan to make it compatible with Pixi 5? HOT 2
- Cannot set property realWidth HOT 7
- adding "lineHeight" param
- Added to list of v5 plugins HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pixi-multistyle-text.