This repository has been archived by the owner on Feb 22, 2020. It is now read-only.
/
zzz_ScatterPanel.go
64 lines (52 loc) · 1.87 KB
/
zzz_ScatterPanel.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
// Code generated by docs2go. DO NOT EDIT.
package babylon
import (
"syscall/js"
)
// ScatterPanel represents a babylon.js ScatterPanel.
// Class used to create a container panel where items get randomized planar mapping
type ScatterPanel struct {
*VolumeBasedPanel
ctx js.Value
}
// JSObject returns the underlying js.Value.
func (s *ScatterPanel) JSObject() js.Value { return s.p }
// ScatterPanel returns a ScatterPanel JavaScript class.
func (gui *GUI) ScatterPanel() *ScatterPanel {
p := gui.ctx.Get("ScatterPanel")
return ScatterPanelFromJSObject(p, gui.ctx)
}
// ScatterPanelFromJSObject returns a wrapped ScatterPanel JavaScript class.
func ScatterPanelFromJSObject(p js.Value, ctx js.Value) *ScatterPanel {
return &ScatterPanel{VolumeBasedPanel: VolumeBasedPanelFromJSObject(p, ctx), ctx: ctx}
}
// ScatterPanelArrayToJSArray returns a JavaScript Array for the wrapped array.
func ScatterPanelArrayToJSArray(array []*ScatterPanel) []interface{} {
var result []interface{}
for _, v := range array {
result = append(result, v.JSObject())
}
return result
}
// NewScatterPanel returns a new ScatterPanel object.
//
// https://doc.babylonjs.com/api/classes/babylon.gui.scatterpanel#constructor
func (gui *GUI) NewScatterPanel() *ScatterPanel {
args := make([]interface{}, 0, 0+0)
p := gui.ctx.Get("ScatterPanel").New(args...)
return ScatterPanelFromJSObject(p, gui.ctx)
}
// Iteration returns the Iteration property of class ScatterPanel.
//
// https://doc.babylonjs.com/api/classes/babylon.gui.scatterpanel#iteration
func (s *ScatterPanel) Iteration() float64 {
retVal := s.p.Get("iteration")
return retVal.Float()
}
// SetIteration sets the Iteration property of class ScatterPanel.
//
// https://doc.babylonjs.com/api/classes/babylon.gui.scatterpanel#iteration
func (s *ScatterPanel) SetIteration(iteration float64) *ScatterPanel {
s.p.Set("iteration", iteration)
return s
}