d13 Posted June 25, 2016 Share Posted June 25, 2016 Hi! Does anyone know know if Pixi's HTML accessibility layer scales automatically when Pixi's canvas is scaled? Quote Link to comment Share on other sites More sharing options...
themoonrat Posted June 25, 2016 Share Posted June 25, 2016 If you mean resolution being something other than 1, then yes. If you mean adjusting the size of the canvas via css, then yes. If you mean scaling the parent of accessible objects, then yes. If you mean scaling actual accessible objects, then yes. Quote Link to comment Share on other sites More sharing options...
d13 Posted June 25, 2016 Author Share Posted June 25, 2016 All of the above... thanks so much for taking the time to answer Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted June 25, 2016 Share Posted June 25, 2016 @d13 if you mean scaling container without notifying the pixi that you have scaled it - NO Quote Link to comment Share on other sites More sharing options...
d13 Posted June 26, 2016 Author Share Posted June 26, 2016 18 hours ago, ivan.popelyshev said: @d13 if you mean scaling container without notifying the pixi that you have scaled it - NO Yes, that's what I mean. I use a little script called `scaleToWindow` that scales and aligns the Pixi canvas in the browser: https://github.com/kittykatattack/scaleToWindow If I use this with Pixi's canvas, I guess then it won't also scale the invisible HTML accessibility layer? Is there some way to target the HTML layer so the it could be scaled like this? Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted June 26, 2016 Share Posted June 26, 2016 1 minute ago, d13 said: Yes, that's what I mean. I use a little script called `scaleToWindow` that scales and aligns the Pixi canvas in the browser: https://github.com/kittykatattack/scaleToWindow If I use this with Pixi's canvas, I guess then it won't also scale the invisible HTML accessibility layer? Is there some way to target the HTML layer so the tit could be scaled like this? PIXI Interaction has no way of detecting that We need to add some variables for renderer, that can be used for that. Quote Link to comment Share on other sites More sharing options...
d13 Posted June 26, 2016 Author Share Posted June 26, 2016 Thanks so much Ivan - I've submitted a feature request on Pixi's Github repo about this. Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted June 26, 2016 Share Posted June 26, 2016 Hm, I'll find a few hours to read your paper and help you edit it (https://github.com/kittykatattack/learningPixi) Quote Link to comment Share on other sites More sharing options...
d13 Posted June 26, 2016 Author Share Posted June 26, 2016 Thanks Ivan, any input would be welcome! Here's a link to the HTML Accessibility layer scaling issue I opened on Pixi's repo: https://github.com/pixijs/pixi.js/issues/2673 If there is some way to easily address this for v4, it would be super-amazing! Quote Link to comment Share on other sites More sharing options...
tealm Posted September 7, 2018 Share Posted September 7, 2018 Has there been any updates to address HTML Accessibility scaling? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.