(_cssObj)
| 1 | |
| 2 | export default class GUIcss { |
| 3 | constructor(_cssObj) { |
| 4 | this.name = 'dg ac'; // dat gui class name |
| 5 | this.class = this.initClass(); |
| 6 | this.gui = this.initGui(); |
| 7 | this.alpha = _cssObj.alpha; |
| 8 | this.posXY = { right: _cssObj.right, top: _cssObj.top }; |
| 9 | // delay GUI color all structure |
| 10 | // this.color = this.initSetColor(_cssObj); |
| 11 | this.initAlpha(); |
| 12 | this.initPosXY(); |
| 13 | // this.initColor(); |
| 14 | } |
| 15 | initClass() { |
| 16 | return document.getElementsByClassName(this.name); |
| 17 | } |