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

Method update

WindowManager.js:101–123  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

99 }
100
101 update ()
102 {
103 //console.log(step);
104 let winShape = this.getWinShape();
105
106 //console.log(winShape.x, winShape.y);
107
108 if (winShape.x != this.#winData.shape.x ||
109 winShape.y != this.#winData.shape.y ||
110 winShape.w != this.#winData.shape.w ||
111 winShape.h != this.#winData.shape.h)
112 {
113
114 this.#winData.shape = winShape;
115
116 let index = this.getWindowIndexFromId(this.#id);
117 this.#windows[index].shape = winShape;
118
119 //console.log(windows);
120 if (this.#winShapeChangeCallback) this.#winShapeChangeCallback();
121 this.updateWindowsLocalStorage();
122 }
123 }
124
125 setWinShapeChangeCallback (callback)
126 {

Callers 15

three.r124.min.jsFile · 0.80
crFunction · 0.80
lrFunction · 0.80
urFunction · 0.80
mrFunction · 0.80
vrFunction · 0.80
brFunction · 0.80
yFunction · 0.80
wFunction · 0.80
HFunction · 0.80
aaFunction · 0.80
saFunction · 0.80

Calls 3

getWinShapeMethod · 0.95
getWindowIndexFromIdMethod · 0.95

Tested by

no test coverage detected