yahiko Posted July 5, 2017 Share Posted July 5, 2017 I am wondering why the renderer.backgroundColor property is not public in TypeScript. In order to get directly access to this useful property, I needed to create a helper class to expose this attribute: class GameRenderer extends PIXI.WebGLRenderer { public backgroundColor: number; } If anyone has an explanation, I would be interested to read it. Thanks! Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted July 5, 2017 Share Posted July 5, 2017 Its a bug. please report to https://github.com/pixijs/pixi-typescript Also, it might be fixed already, check the typings there - they are newer than in DefinitelyTyped. yahiko 1 Quote Link to comment Share on other sites More sharing options...
yahiko Posted July 5, 2017 Author Share Posted July 5, 2017 Your declaration file seems more accurate than the one I can get from: npm install --save-dev @types/pixi.js. It would be great if the npm registry could be up to date Thanks anyway for your helpful answer. Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted July 6, 2017 Share Posted July 6, 2017 9 hours ago, yahiko said: Your declaration file seems more accurate than the one I can get from: npm install --save-dev @types/pixi.js. It would be great if the npm registry could be up to date Thanks anyway for your helpful answer. We have problems with it, each time it involves some magic with new tests for ts definition to satisfy definitelytyped daemon. Quote Link to comment Share on other sites More sharing options...
yahiko Posted July 6, 2017 Author Share Posted July 6, 2017 I see. I've changed my dependecies to your repo anyway ivan.popelyshev 1 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.