Moving to ES6 Classes
See original GitHub issueHi all,
I felt it appropriate to create a new issue (instead of continuing #11552) to further aid everyone in keeping track and update-to-date on the issues and progress surrounding the move to ES6 classes. This should also come in handy for the release doc.
To those wishing to help, look through the list below and let us know what you’d like to work on. A PR per class is favoured however some folders can be done all at once. If a particular file cannot be converted, make a note at the top of the file, or ping me from your PR and I’ll note it below.
Notes:
- Keep the
Class.prototype.is**
properties - class fields are also available if appropriate #20395 (dicussion here)
new this.contructor()
!=new Foo()
… related discussion.- Will tick after merged and complete.
Part 1: src
- src
- animation ( #19964, #20014, #20016 , #20013 )
- audio ( #19975, #20003 )
- cameras ( #20102, #21623 )
- core ( #19976, #19977, #19978, #19984, #20008, #21635, #21646 )
- extras ( #19979, #21624 )
- geometries ( #19994 )
- helpers ( #19996 )
- lights ( #21231, #21232 )
- loaders ( #19985, #21622 )
- materials ( #20100, #21626, #21626 )
- math ( #19980, #19997, #20076, #20089, #21628)
- objects ( #21266, #21625 )
- renderers ( #21053 )
- scenes ( #20007 )
- textures ( #20009 )
Part 2: examples
- examples
- animation ( #21596 )
- cameras ( #21589 )
- controls (#21629, #21644)
- curves ( #21593 )
- effects ( #21610 )
- environments ( #21585 )
- exporters ( #21605 )
- geometries ( #21589 )
- helpers ( #21583 )
- interactive ( #21592 )
- lights ( #21592 )
- lines ( #21599 )
- loaders ( #21616, #21614, #21612 )
- math ( #21598 )
- misc ( #21618 )
- modifiers ( #21604 )
-
nodes - objects ( #21600 )
- postprocessing ( #21621 )
- renderers ( #21601 )
- shaders ( #21619 )
- textures
- utils ( #21611 )
- webXR ( #21586 )
Issue Analytics
- State:
- Created 3 years ago
- Reactions:25
- Comments:159 (121 by maintainers)
Top Results From Across the Web
Moving from ES3/ES5 to ES6 JavaScript classes - Andy Walpole
The first is that ES6 classes, unlike function constructors, are not hoisted. This is because the extends clause needs to be evaluated correctly ......
Read more >A deep dive into ES6 Classes - DEV Community
In this post we'll learn everything about ES6 classes, then we will compare them to constructor functions and prototypal inheritance.
Read more >Refactoring React Components to ES6 Classes
With the move to ES6 classes, we must handle this binding ourselves. The React team recommends prebinding in the constructor.
Read more >Things to keep in mind while Moving from ES3/ES5 to ES6 ...
Classes can have a constructor function which identifies the signature of that Shape class, as well as its body contents.
Read more >ES6 Classes in Depth - Ponyfoo
JavaScript is a prototype-based language, so what are ES6 classes really? They're syntactic sugar on top of prototypical inheritance – a device ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sounds good to me 👍
Excellent work everyone! Many thanks for helping out! 🙏
quick shout out to @Mugen87 ! 🎉 💯 👍 That was a ton from the
examples
folder done over the past couple of days. Great stuff.