-
Notifications
You must be signed in to change notification settings - Fork 0
/
global.go
43 lines (38 loc) · 1.41 KB
/
global.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
package global
import (
coordinateManager "github.com/helmutkemper/iotmaker.santa_isabel_theater.platform.coordinate"
"github.com/helmutkemper/iotmaker.santa_isabel_theater.platform.webbrowser/factoryBrowserDocument"
"github.com/helmutkemper/iotmaker.santa_isabel_theater.platform.webbrowser/globalDocument"
//"github.com/helmutkemper/iotmaker.santa_isabel_theater.platform.webbrowser/factoryBrowserStage"
"github.com/helmutkemper/iotmaker.santa_isabel_theater.platform.webbrowser/html"
"github.com/helmutkemper/iotmaker.santa_isabel_theater.platform.webbrowser/javascript/canvas"
"github.com/helmutkemper/iotmaker.santa_isabel_theater.platform/engine"
)
type Config struct {
Canvas *canvas.Canvas
ScratchPad *canvas.Canvas
Stage *canvas.Stage
Engine *engine.Engine
Html *html.Html
Document globalDocument.Document
Density float64
DensityManager *coordinateManager.Density
}
var Global Config
func init() {
Global.Document = factoryBrowserDocument.NewDocument()
Global.Html = &html.Html{}
Global.Engine = &engine.Engine{}
Global.Density = 1.0
Global.DensityManager = &coordinateManager.Density{}
//Global.Stage = factoryBrowserStage.NewStage(
// Global.Html,
// Global.Engine,
// Global.Document,
// "stage-auto-build",
// Global.Density,
// Global.DensityManager,
//)
//Global.Canvas = &Global.Stage.Canvas
//Global.ScratchPad = &Global.Stage.ScratchPad
}