MCPcopy
hub / github.com/bgstaal/multipleWindow3dScene / setupWindowManager

Function setupWindowManager

main.js:90–104  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

88 }
89
90 function setupWindowManager ()
91 {
92 windowManager = new WindowManager();
93 windowManager.setWinShapeChangeCallback(updateWindowShape);
94 windowManager.setWinChangeCallback(windowsUpdated);
95
96 // here you can add your custom metadata to each windows instance
97 let metaData = {foo: "bar"};
98
99 // this will init the windowmanager and add this window to the centralised pool of windows
100 windowManager.init(metaData);
101
102 // call update windows initially (it will later be called by the win change callback)
103 windowsUpdated();
104 }
105
106 function windowsUpdated ()
107 {

Callers 1

initFunction · 0.85

Calls 4

windowsUpdatedFunction · 0.85
setWinChangeCallbackMethod · 0.80
initMethod · 0.80

Tested by

no test coverage detected