Comments (7)
Thanks for the commit :)
I have another problem now, when i try to launch my npm test, the test crashed and said me that "PIXI is not defined". Do you have any idea ?
EDIT : And the log is from the pixi multistyle text module.
from pixi-multistyle-text.
How are you building your project? (e.g., ES6 module imports with something like Webpack or Rollup, or via TypeScript?)
There is a missing export
at the moment that I'm trying to fix - it has some issues with the way that TS emits the declaration files.
from pixi-multistyle-text.
We used ES5 with webpack.
module.exports = MultiStyleText;
Just adding this at the end of the js script file resolved my problem.
from pixi-multistyle-text.
This is mostly fixed by just adding Browserify to our build chain (see 77648e7). However, this does cause a breaking change: the class is now accessed via MultiStyleText.MultiStyleText
since it's behind a "module".
Also, the fix above is only marked as partial because the .d.ts
file is still helplessly broken (but somewhat more so than it was before). The built pixi-multistyle-text.js
in that commit should suffice if you're not using TS.
from pixi-multistyle-text.
(Pardon the history rewrite; the commit message was blatantly wrong. See fb261ca.)
from pixi-multistyle-text.
@bluepichu Where are your commits? I don't see any PR with the fixes to be merged
from pixi-multistyle-text.
There isn't a PR yet - I still need to fix something related to the emitted .d.ts
. The work thus far is on the iss12
branch of my fork.
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.