MCPcopy Create free account
hub / github.com/SilverTree7622/Phaser3_GUI_Inspector / constructor

Method constructor

js/lib/DatGUI/DatGUIcss.js:3–14  ·  view source on GitHub ↗
(_cssObj)

Source from the content-addressed store, hash-verified

1
2export 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 }

Callers

nothing calls this directly

Calls 4

initClassMethod · 0.95
initGuiMethod · 0.95
initAlphaMethod · 0.95
initPosXYMethod · 0.95

Tested by

no test coverage detected