Experience-Monks / three-bmfont-text

renders BMFont files in ThreeJS with word-wrapping
http://jam3.github.io/three-bmfont-text/test/
MIT License
789 stars 171 forks source link

改写为es6语法,解决在新版Aframe框架中的报错 #45

Open JetsomMa opened 3 years ago

JetsomMa commented 3 years ago

What kind of change does this PR introduce? (check at least one)

Does this PR introduce a breaking change? (check one)

Did you test your solution?

Problem Description

在Aframe框架中有一个a-text组件用到了我们的代码,但是新版的aframe有了一些ES6特性,其与我们现在代码的写法不兼容,所以做出改变

Solution Description

将ES5的写法改为了ES6语法糖的class写法

Side Effects, Risks, Impact

只在Aframe框架中测试通过,对其他框架的副作用,目前尚不清楚

Aditional comments: