These are chat archives for pixijs/pixi.js

10th
Jan 2016
Ivan Popelyshev
@ivanpopelyshev
Jan 10 2016 12:50
so many lame questions in forum
we have to write a new book which explains everything
Dave Moore
@themoonrat
Jan 10 2016 19:16
Howdy all. I'm looking at using PIXI for future games, so I might be around to bother (and hopefully help!) soon. I've never been involved with a project on GitHub that I may also want to contribute to before, so sorry if I get the etiquette incorrect.
As an early starter question, what is the etiquette around increasing the feature set of an existing class? For example; I will need a couple of small pieces of increased functionality around text for my games; one being to suppy an array for the colour, which will add a colour gradient; the second being the ability for a 'maxWidth' can be set on text, and if that is reached, rather than word wrapping to a new line, the font size decreases to a size where that word would fit within that size.
Olav Lindekleiv
@oal
Jan 10 2016 19:18
Hi, @themoonrat
Dave Moore
@themoonrat
Jan 10 2016 19:18
Now, I can create a new text class for my games that does all that functionality, and that's cool. But in terms of PIXI; how do I know if it is an addition that PIXI would benefit from adding directly into the current libs Text class?
Olav Lindekleiv
@oal
Jan 10 2016 19:19
Open an issue and ask what the maintainers think. I know there's planning going on now for Pixi v4, so they may be interested in such functionality there
Not sure if there'll be any 3.x releases
(other than bug fix releases, that is)
Dave Moore
@themoonrat
Jan 10 2016 19:23
ok thanks :)
Ivan Popelyshev
@ivanpopelyshev
Jan 10 2016 19:28
Text is cached, and its not a problem to add more features to it that will mirror standart css things
Micheal Winger
@mordof
Jan 10 2016 22:17
did hitArea get removed in pixi 3?
Ivan Popelyshev
@ivanpopelyshev
Jan 10 2016 22:17
no
Micheal Winger
@mordof
Jan 10 2016 22:17
can't find it in the pixi3 docs
Ivan Popelyshev
@ivanpopelyshev
Jan 10 2016 22:17
ugh
docs are generated from jsdocs which is in the code
Im sure i have seen hitArea somewhere
hm
Micheal Winger
@mordof
Jan 10 2016 22:18
i'll find it in the code and see if i can make a pull request if it needs to be added then
Ivan Popelyshev
@ivanpopelyshev
Jan 10 2016 22:19
ok, I have an idea of how it was removed
all "interaction" stuff was moved to src/interaction
i think they wanted to make it a module
that's why
Micheal Winger
@mordof
Jan 10 2016 22:19
ooh, ok
Ivan Popelyshev
@ivanpopelyshev
Jan 10 2016 22:20
because interaction is the only "module" that actually checks it
Micheal Winger
@mordof
Jan 10 2016 22:25
should hitArea be applied to a Graphics object? I'm not that familiar with pixijs' inheritance yet.. but if it gets applied to the graphics object, it seems like the clone method is missing that knowledge also
Ivan Popelyshev
@ivanpopelyshev
Jan 10 2016 22:31
there is "clone" method?
where?
Ivan Popelyshev
@ivanpopelyshev
Jan 10 2016 22:50
oh right
yep, that's a problem :)
you can create issue on that
Micheal Winger
@mordof
Jan 10 2016 23:28
@ivanpopelyshev on a different note - I've got height checks for mouse movement implemented :)
Ivan Popelyshev
@ivanpopelyshev
Jan 10 2016 23:34
nice
may be you can share the code so we wrap it into a library
Micheal Winger
@mordof
Jan 10 2016 23:36
for sure - once i fix a small issue with mouse tracking that cropped up as a result, lol
I had worked with someone about 6 years ago writing an RTree implementation in javascript (he did basically all of the RTree, i was using it for something else and giving feedback). Found the rtree lib again and decided to use that