@supraio/client-daemon-js 1.1.0-master.553 → 1.1.0-tpeventcoordinatescaling.554
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/daemon.html +1 -1
- package/daemon.js +2 -2
- package/package.json +1 -1
- package/screen.html +1 -1
- package/screen.js +3 -3
- package/sdk.js +5 -5
- package/supra-client-daemon.js +6 -4
- package/supra-client-daemon.js.map +1 -1
- package/supra-client-daemon.wasm +0 -0
- package/supra-client-screen.js +76 -36
- package/supra-client-screen.js.map +1 -1
- package/supra-client-screen.wasm +0 -0
package/supra-client-daemon.wasm
CHANGED
|
Binary file
|
package/supra-client-screen.js
CHANGED
|
@@ -191501,7 +191501,7 @@ $packages["github.com/supraio/client-daemon/pkg/message"] = (function() {
|
|
|
191501
191501
|
return $pkg;
|
|
191502
191502
|
})();
|
|
191503
191503
|
$packages["github.com/supraio/client-daemon/pkg/input"] = (function() {
|
|
191504
|
-
var $pkg = {}, $init, binary, fmt, errs, message, focus, key, mouse, touch, geom, log, sync, js, time, TouchHandler, MouseHandler, kindCounters, InputSnapshot, EventMetrics, KeyHandler, JsHelper, KeyTransformer, Helper, sliceType, sliceType$1, ptrType, ptrType$1, structType, ptrType$2, ptrType$3, ptrType$4, sliceType$2, ptrType$5, chanType, funcType, mapType, chanType$1, ptrType$6, chanType$2, chanType$3, mapType$1, ptrType$7, chanType$4, chanType$5, ptrType$8, marshalTouchEventJSON, NewTouchHandler, NewMouseHandler, NewEventMetrics, avgMs, msF, avgNano, NewKeyHandler, NewHelper, NewKeyTransformer;
|
|
191504
|
+
var $pkg = {}, $init, binary, fmt, errs, message, focus, key, mouse, touch, geom, log, math, sync, js, time, TouchHandler, MouseHandler, kindCounters, InputSnapshot, EventMetrics, KeyHandler, JsHelper, KeyTransformer, Helper, sliceType, sliceType$1, ptrType, ptrType$1, structType, ptrType$2, ptrType$3, ptrType$4, sliceType$2, ptrType$5, chanType, funcType, mapType, chanType$1, ptrType$6, chanType$2, chanType$3, mapType$1, ptrType$7, chanType$4, chanType$5, ptrType$8, marshalTouchEventJSON, NewTouchHandler, NewMouseHandler, coordinateToUint32, NewEventMetrics, avgMs, msF, avgNano, NewKeyHandler, NewHelper, NewKeyTransformer;
|
|
191505
191505
|
binary = $packages["encoding/binary"];
|
|
191506
191506
|
fmt = $packages["fmt"];
|
|
191507
191507
|
errs = $packages["github.com/supraio/client-daemon/pkg/errs"];
|
|
@@ -191512,6 +191512,7 @@ $packages["github.com/supraio/client-daemon/pkg/input"] = (function() {
|
|
|
191512
191512
|
touch = $packages["golang.org/x/mobile/event/touch"];
|
|
191513
191513
|
geom = $packages["golang.org/x/mobile/geom"];
|
|
191514
191514
|
log = $packages["log"];
|
|
191515
|
+
math = $packages["math"];
|
|
191515
191516
|
sync = $packages["sync"];
|
|
191516
191517
|
js = $packages["syscall/js"];
|
|
191517
191518
|
time = $packages["time"];
|
|
@@ -192008,13 +192009,23 @@ $packages["github.com/supraio/client-daemon/pkg/input"] = (function() {
|
|
|
192008
192009
|
x = $fround((ev.X) * (multiplier.X));
|
|
192009
192010
|
y = $fround((ev.Y) * (multiplier.Y));
|
|
192010
192011
|
mouseXData = $makeSlice(sliceType$1, 4);
|
|
192011
|
-
$clone(binary.BigEndian, binary.bigEndian).PutUint32(mouseXData, (
|
|
192012
|
+
$clone(binary.BigEndian, binary.bigEndian).PutUint32(mouseXData, coordinateToUint32(x));
|
|
192012
192013
|
mouseYData = $makeSlice(sliceType$1, 4);
|
|
192013
|
-
$clone(binary.BigEndian, binary.bigEndian).PutUint32(mouseYData, (
|
|
192014
|
+
$clone(binary.BigEndian, binary.bigEndian).PutUint32(mouseYData, coordinateToUint32(y));
|
|
192014
192015
|
$s = -1; return $appendSlice(mouseButtonData, $appendSlice(mouseDirectionData, $appendSlice(mouseModifierData, $appendSlice(mouseXData, mouseYData))));
|
|
192015
192016
|
/* */ } return; } var $f = {$blk: MouseHandler.ptr.prototype.encodeMouseEvent, $c: true, $r, _r, ev, h, mouseButtonData, mouseDirectionData, mouseModifierData, mouseXData, mouseYData, multiplier, x, y, $s};return $f;
|
|
192016
192017
|
};
|
|
192017
192018
|
MouseHandler.prototype.encodeMouseEvent = function(ev) { return this.$val.encodeMouseEvent(ev); };
|
|
192019
|
+
coordinateToUint32 = function(value) {
|
|
192020
|
+
var value;
|
|
192021
|
+
if (math.IsNaN((value)) || value <= 0) {
|
|
192022
|
+
return 0;
|
|
192023
|
+
}
|
|
192024
|
+
if (value >= 4.294967296e+09) {
|
|
192025
|
+
return 4294967295;
|
|
192026
|
+
}
|
|
192027
|
+
return ((value >> 0));
|
|
192028
|
+
};
|
|
192018
192029
|
NewEventMetrics = function() {
|
|
192019
192030
|
return new EventMetrics.ptr(new sync.Mutex.ptr(0, 0), $makeMap($String.keyFor, [{ k: "mouse", v: new kindCounters.ptr(0, 0, 0, new time.Duration(0, 0), new time.Duration(0, 0), 0, new time.Duration(0, 0)) }, { k: "touch", v: new kindCounters.ptr(0, 0, 0, new time.Duration(0, 0), new time.Duration(0, 0), 0, new time.Duration(0, 0)) }]), new InputSnapshot.ptr(0, 0, 0, new $Int64(0, 0), new $Int64(0, 0), new $Int64(0, 0), 0, 0, 0, new $Int64(0, 0), new $Int64(0, 0), 0, new $Int64(0, 0)), $chanNil, false);
|
|
192020
192031
|
};
|
|
@@ -192446,9 +192457,10 @@ $packages["github.com/supraio/client-daemon/pkg/input"] = (function() {
|
|
|
192446
192457
|
$r = touch.$init(); /* */ $s = 8; case 8: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
192447
192458
|
$r = geom.$init(); /* */ $s = 9; case 9: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
192448
192459
|
$r = log.$init(); /* */ $s = 10; case 10: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
192449
|
-
$r =
|
|
192450
|
-
$r =
|
|
192451
|
-
$r =
|
|
192460
|
+
$r = math.$init(); /* */ $s = 11; case 11: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
192461
|
+
$r = sync.$init(); /* */ $s = 12; case 12: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
192462
|
+
$r = js.$init(); /* */ $s = 13; case 13: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
192463
|
+
$r = time.$init(); /* */ $s = 14; case 14: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
192452
192464
|
/* */ } return; } if ($f === undefined) { $f = { $blk: $init }; } $f.$s = $s; $f.$r = $r; return $f;
|
|
192453
192465
|
};
|
|
192454
192466
|
$pkg.$init = $init;
|
|
@@ -197274,7 +197286,7 @@ $packages["github.com/supraio/client-daemon/pkg/render"] = (function() {
|
|
|
197274
197286
|
sync = $packages["sync"];
|
|
197275
197287
|
js = $packages["syscall/js"];
|
|
197276
197288
|
time = $packages["time"];
|
|
197277
|
-
ScreenWindow = $pkg.ScreenWindow = $newType(0, $kindStruct, "render.ScreenWindow", true, "github.com/supraio/client-daemon/pkg/render", true, function(processInfoManager_, screenDriver_, screenHost_, metadataDriver_, metadataHost_, clientID_, clientSecret_, screenID_, secure_, forceScreenSize_, timeoutDuration_, closed_, closeDone_, closeMu_, screenMu_, stats_, onClose_, window_, screen_, screenConn_, metadataServer_, responsiveSender_, collectionLoop_, decoderLoop_, renderingLoop_, sizeHandler_, touchHandler_, keyHandler_, mouseHandler_, eventMetrics_, pinger_, keyEventChan_, mouseEventChan_, sizeEventChan_, focusEventChan_, touchEventChan_, winCloseChannel_, eventLoopStop_, eventLoopDone_, windowSize_, geometry_) {
|
|
197289
|
+
ScreenWindow = $pkg.ScreenWindow = $newType(0, $kindStruct, "render.ScreenWindow", true, "github.com/supraio/client-daemon/pkg/render", true, function(processInfoManager_, screenDriver_, screenHost_, metadataDriver_, metadataHost_, clientID_, clientSecret_, screenID_, secure_, forceScreenSize_, timeoutDuration_, closed_, closeDone_, closeMu_, screenMu_, stats_, onClose_, window_, screen_, screenConn_, metadataServer_, responsiveSender_, collectionLoop_, decoderLoop_, renderingLoop_, sizeHandler_, touchHandler_, keyHandler_, mouseHandler_, eventMetrics_, pinger_, keyEventChan_, mouseEventChan_, sizeEventChan_, focusEventChan_, touchEventChan_, winCloseChannel_, eventLoopStop_, eventLoopDone_, windowSizeMu_, windowSize_, geometry_) {
|
|
197278
197290
|
this.$val = this;
|
|
197279
197291
|
if (arguments.length === 0) {
|
|
197280
197292
|
this.processInfoManager = ptrType.nil;
|
|
@@ -197316,6 +197328,7 @@ $packages["github.com/supraio/client-daemon/pkg/render"] = (function() {
|
|
|
197316
197328
|
this.winCloseChannel = $chanNil;
|
|
197317
197329
|
this.eventLoopStop = $chanNil;
|
|
197318
197330
|
this.eventLoopDone = $chanNil;
|
|
197331
|
+
this.windowSizeMu = new sync.RWMutex.ptr(new sync.Mutex.ptr(0, 0), 0, 0, 0, 0);
|
|
197319
197332
|
this.windowSize = new image.Point.ptr(0, 0);
|
|
197320
197333
|
this.geometry = ptrType$14.nil;
|
|
197321
197334
|
return;
|
|
@@ -197359,6 +197372,7 @@ $packages["github.com/supraio/client-daemon/pkg/render"] = (function() {
|
|
|
197359
197372
|
this.winCloseChannel = winCloseChannel_;
|
|
197360
197373
|
this.eventLoopStop = eventLoopStop_;
|
|
197361
197374
|
this.eventLoopDone = eventLoopDone_;
|
|
197375
|
+
this.windowSizeMu = windowSizeMu_;
|
|
197362
197376
|
this.windowSize = windowSize_;
|
|
197363
197377
|
this.geometry = geometry_;
|
|
197364
197378
|
});
|
|
@@ -197513,7 +197527,7 @@ $packages["github.com/supraio/client-daemon/pkg/render"] = (function() {
|
|
|
197513
197527
|
_r = stats.NewStats(); /* */ $s = 1; case 1: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
197514
197528
|
s = _r;
|
|
197515
197529
|
s.SetEncodingPreferences($clone(encodingPreferences, stats.EncodingPreferences));
|
|
197516
|
-
$s = -1; return new ScreenWindow.ptr(processInfoManager, screenDriver, screenHost, metadataDriver, metadataHost, clientID, clientSecret, screenID, secure, forceScreenSize, timeoutDuration, true, $chanNil, new sync.Mutex.ptr(0, 0), new sync.Mutex.ptr(0, 0), s, sliceType$1.nil, $ifaceNil, $ifaceNil, $ifaceNil, ptrType$3.nil, ptrType$4.nil, ptrType$5.nil, ptrType$6.nil, ptrType$7.nil, ptrType$8.nil, ptrType$9.nil, ptrType$10.nil, ptrType$11.nil, input.NewEventMetrics(), ptrType$13.nil, new $Chan(key.Event, 50), new $Chan(mouse.Event, 50), new $Chan(size.Event, 50), new $Chan(focus.Event, 50), new $Chan(touch.Event, 50), new $Chan($emptyInterface, 0), $chanNil, $chanNil, new image.Point.ptr(0, 0), geometry);
|
|
197530
|
+
$s = -1; return new ScreenWindow.ptr(processInfoManager, screenDriver, screenHost, metadataDriver, metadataHost, clientID, clientSecret, screenID, secure, forceScreenSize, timeoutDuration, true, $chanNil, new sync.Mutex.ptr(0, 0), new sync.Mutex.ptr(0, 0), s, sliceType$1.nil, $ifaceNil, $ifaceNil, $ifaceNil, ptrType$3.nil, ptrType$4.nil, ptrType$5.nil, ptrType$6.nil, ptrType$7.nil, ptrType$8.nil, ptrType$9.nil, ptrType$10.nil, ptrType$11.nil, input.NewEventMetrics(), ptrType$13.nil, new $Chan(key.Event, 50), new $Chan(mouse.Event, 50), new $Chan(size.Event, 50), new $Chan(focus.Event, 50), new $Chan(touch.Event, 50), new $Chan($emptyInterface, 0), $chanNil, $chanNil, new sync.RWMutex.ptr(new sync.Mutex.ptr(0, 0), 0, 0, 0, 0), new image.Point.ptr(0, 0), geometry);
|
|
197517
197531
|
/* */ } return; } var $f = {$blk: NewScreenWindow, $c: true, $r, _r, clientID, clientSecret, encodingPreferences, forceScreenSize, geometry, metadataDriver, metadataHost, processInfoManager, s, screenDriver, screenHost, screenID, secure, timeoutDuration, $s};return $f;
|
|
197518
197532
|
};
|
|
197519
197533
|
$pkg.NewScreenWindow = NewScreenWindow;
|
|
@@ -197874,36 +197888,36 @@ $packages["github.com/supraio/client-daemon/pkg/render"] = (function() {
|
|
|
197874
197888
|
/* } else if (_selection$3[0] === 1) { */ case 34:
|
|
197875
197889
|
$s = 36; case 36: return;
|
|
197876
197890
|
/* } */ case 35:
|
|
197877
|
-
|
|
197878
|
-
$r = w[0].stats.NotifyInteraction(); /* */ $s =
|
|
197891
|
+
$r = w[0].setWindowSize($clone($clone(e$4, size.Event).Size(), image.Point)); /* */ $s = 37; case 37: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
197892
|
+
$r = w[0].stats.NotifyInteraction(); /* */ $s = 38; case 38: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
197879
197893
|
$s = 15; continue;
|
|
197880
197894
|
/* } else if ($assertType(_ref, focus.Event, true)[1]) { */ case 13:
|
|
197881
197895
|
e$5 = $clone(_ref.$val, focus.Event);
|
|
197882
|
-
_r$5 = $select([[w[0].focusEventChan, $clone(e$5, focus.Event)], [eventLoopStop[0]]]); /* */ $s =
|
|
197896
|
+
_r$5 = $select([[w[0].focusEventChan, $clone(e$5, focus.Event)], [eventLoopStop[0]]]); /* */ $s = 39; case 39: if($c) { $c = false; _r$5 = _r$5.$blk(); } if (_r$5 && _r$5.$blk !== undefined) { break s; }
|
|
197883
197897
|
_selection$4 = _r$5;
|
|
197884
|
-
/* */ if (_selection$4[0] === 0) { $s =
|
|
197885
|
-
/* */ if (_selection$4[0] === 1) { $s =
|
|
197886
|
-
/* */ $s =
|
|
197887
|
-
/* if (_selection$4[0] === 0) { */ case
|
|
197888
|
-
$s =
|
|
197889
|
-
/* } else if (_selection$4[0] === 1) { */ case
|
|
197890
|
-
$s =
|
|
197891
|
-
/* } */ case
|
|
197892
|
-
$r = w[0].stats.NotifyInteraction(); /* */ $s =
|
|
197898
|
+
/* */ if (_selection$4[0] === 0) { $s = 40; continue; }
|
|
197899
|
+
/* */ if (_selection$4[0] === 1) { $s = 41; continue; }
|
|
197900
|
+
/* */ $s = 42; continue;
|
|
197901
|
+
/* if (_selection$4[0] === 0) { */ case 40:
|
|
197902
|
+
$s = 42; continue;
|
|
197903
|
+
/* } else if (_selection$4[0] === 1) { */ case 41:
|
|
197904
|
+
$s = 43; case 43: return;
|
|
197905
|
+
/* } */ case 42:
|
|
197906
|
+
$r = w[0].stats.NotifyInteraction(); /* */ $s = 44; case 44: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
197893
197907
|
$s = 15; continue;
|
|
197894
197908
|
/* } else if ($assertType(_ref, touch.Event, true)[1]) { */ case 14:
|
|
197895
197909
|
e$6 = $clone(_ref.$val, touch.Event);
|
|
197896
|
-
_r$6 = $select([[w[0].touchEventChan, $clone(e$6, touch.Event)], [eventLoopStop[0]]]); /* */ $s =
|
|
197910
|
+
_r$6 = $select([[w[0].touchEventChan, $clone(e$6, touch.Event)], [eventLoopStop[0]]]); /* */ $s = 45; case 45: if($c) { $c = false; _r$6 = _r$6.$blk(); } if (_r$6 && _r$6.$blk !== undefined) { break s; }
|
|
197897
197911
|
_selection$5 = _r$6;
|
|
197898
|
-
/* */ if (_selection$5[0] === 0) { $s =
|
|
197899
|
-
/* */ if (_selection$5[0] === 1) { $s =
|
|
197900
|
-
/* */ $s =
|
|
197901
|
-
/* if (_selection$5[0] === 0) { */ case
|
|
197902
|
-
$s =
|
|
197903
|
-
/* } else if (_selection$5[0] === 1) { */ case
|
|
197904
|
-
$s =
|
|
197905
|
-
/* } */ case
|
|
197906
|
-
$r = w[0].stats.NotifyInteraction(); /* */ $s =
|
|
197912
|
+
/* */ if (_selection$5[0] === 0) { $s = 46; continue; }
|
|
197913
|
+
/* */ if (_selection$5[0] === 1) { $s = 47; continue; }
|
|
197914
|
+
/* */ $s = 48; continue;
|
|
197915
|
+
/* if (_selection$5[0] === 0) { */ case 46:
|
|
197916
|
+
$s = 48; continue;
|
|
197917
|
+
/* } else if (_selection$5[0] === 1) { */ case 47:
|
|
197918
|
+
$s = 49; case 49: return;
|
|
197919
|
+
/* } */ case 48:
|
|
197920
|
+
$r = w[0].stats.NotifyInteraction(); /* */ $s = 50; case 50: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
197907
197921
|
/* } */ case 15:
|
|
197908
197922
|
$s = 1; continue;
|
|
197909
197923
|
case 2:
|
|
@@ -198174,13 +198188,39 @@ $packages["github.com/supraio/client-daemon/pkg/render"] = (function() {
|
|
|
198174
198188
|
return netclient.NewMessageSender(w.screenConn);
|
|
198175
198189
|
};
|
|
198176
198190
|
ScreenWindow.prototype.createScreenSender = function() { return this.$val.createScreenSender(); };
|
|
198191
|
+
ScreenWindow.ptr.prototype.setWindowSize = function(windowSize) {
|
|
198192
|
+
var {w, windowSize, $s, $deferred, $r, $c} = $restore(this, {windowSize});
|
|
198193
|
+
/* */ $s = $s || 0; var $err = null; try { s: while (true) { switch ($s) { case 0: $deferred = []; $curGoroutine.deferStack.push($deferred);
|
|
198194
|
+
w = this;
|
|
198195
|
+
$r = w.windowSizeMu.Lock(); /* */ $s = 1; case 1: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
198196
|
+
$deferred.push([$methodVal(w.windowSizeMu, "Unlock"), []]);
|
|
198197
|
+
image.Point.copy(w.windowSize, windowSize);
|
|
198198
|
+
$s = -1; return;
|
|
198199
|
+
/* */ } return; } } catch(err) { $err = err; $s = -1; } finally { $callDeferred($deferred, $err); if($curGoroutine.asleep) { var $f = {$blk: ScreenWindow.ptr.prototype.setWindowSize, $c: true, $r, w, windowSize, $s, $deferred};return $f; } }
|
|
198200
|
+
};
|
|
198201
|
+
ScreenWindow.prototype.setWindowSize = function(windowSize) { return this.$val.setWindowSize(windowSize); };
|
|
198202
|
+
ScreenWindow.ptr.prototype.getWindowSize = function() {
|
|
198203
|
+
var {$24r, w, $s, $deferred, $r, $c} = $restore(this, {});
|
|
198204
|
+
/* */ $s = $s || 0; var $err = null; try { s: while (true) { switch ($s) { case 0: $deferred = []; $curGoroutine.deferStack.push($deferred);
|
|
198205
|
+
w = this;
|
|
198206
|
+
$r = w.windowSizeMu.RLock(); /* */ $s = 1; case 1: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
198207
|
+
$deferred.push([$methodVal(w.windowSizeMu, "RUnlock"), []]);
|
|
198208
|
+
$24r = w.windowSize;
|
|
198209
|
+
$s = 2; case 2: return $24r;
|
|
198210
|
+
/* */ } return; } } catch(err) { $err = err; $s = -1; return new image.Point.ptr(0, 0); } finally { $callDeferred($deferred, $err); if($curGoroutine.asleep) { var $f = {$blk: ScreenWindow.ptr.prototype.getWindowSize, $c: true, $r, $24r, w, $s, $deferred};return $f; } }
|
|
198211
|
+
};
|
|
198212
|
+
ScreenWindow.prototype.getWindowSize = function() { return this.$val.getWindowSize(); };
|
|
198177
198213
|
ScreenWindow.ptr.prototype.getEventMultiplier = function() {
|
|
198178
|
-
var w;
|
|
198214
|
+
var {_r, w, windowSize, $s, $r, $c} = $restore(this, {});
|
|
198215
|
+
/* */ $s = $s || 0; s: while (true) { switch ($s) { case 0:
|
|
198179
198216
|
w = this;
|
|
198180
|
-
|
|
198181
|
-
|
|
198217
|
+
_r = w.getWindowSize(); /* */ $s = 1; case 1: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
198218
|
+
windowSize = $clone(_r, image.Point);
|
|
198219
|
+
if (!(w.forceScreenSize === ptrType$1.nil) && windowSize.X > 0 && windowSize.Y > 0) {
|
|
198220
|
+
$s = -1; return new geom.Point.ptr(($fround((w.forceScreenSize.X) / (windowSize.X))), ($fround((w.forceScreenSize.Y) / (windowSize.Y))));
|
|
198182
198221
|
}
|
|
198183
|
-
return new geom.Point.ptr(1, 1);
|
|
198222
|
+
$s = -1; return new geom.Point.ptr(1, 1);
|
|
198223
|
+
/* */ } return; } var $f = {$blk: ScreenWindow.ptr.prototype.getEventMultiplier, $c: true, $r, _r, w, windowSize, $s};return $f;
|
|
198184
198224
|
};
|
|
198185
198225
|
ScreenWindow.prototype.getEventMultiplier = function() { return this.$val.getEventMultiplier(); };
|
|
198186
198226
|
ScreenWindow.ptr.prototype.startTimestampSyncing = function() {
|
|
@@ -198951,9 +198991,9 @@ $packages["github.com/supraio/client-daemon/pkg/render"] = (function() {
|
|
|
198951
198991
|
}
|
|
198952
198992
|
return new mapType($makeMap($String.keyFor, [{ k: "x", v: new $Int(g.X) }, { k: "y", v: new $Int(g.Y) }, { k: "width", v: new $Int(g.Width) }, { k: "height", v: new $Int(g.Height) }]));
|
|
198953
198993
|
};
|
|
198954
|
-
ptrType$15.methods = [{prop: "Geometry", name: "Geometry", pkg: "", typ: $funcType([], [ptrType$14], false)}, {prop: "SetEncodingPreferences", name: "SetEncodingPreferences", pkg: "", typ: $funcType([stats.EncodingPreferences], [], false)}, {prop: "Start", name: "Start", pkg: "", typ: $funcType([], [$error], false)}, {prop: "Close", name: "Close", pkg: "", typ: $funcType([], [], false)}, {prop: "OnClose", name: "OnClose", pkg: "", typ: $funcType([funcType], [], false)}, {prop: "startWindow", name: "startWindow", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [$error], false)}, {prop: "newWindowOptions", name: "newWindowOptions", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [screen.NewWindowOptions], false)}, {prop: "startClipboard", name: "startClipboard", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [$error], false)}, {prop: "isClosed", name: "isClosed", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [$Bool], false)}, {prop: "retriableOpen", name: "retriableOpen", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([$Int, funcType$1], [$error], false)}, {prop: "openMetadata", name: "openMetadata", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [$error], false)}, {prop: "createMetadataSender", name: "createMetadataSender", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [message.Sender], false)}, {prop: "createScreenSender", name: "createScreenSender", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [message.Sender], false)}, {prop: "getEventMultiplier", name: "getEventMultiplier", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [geom.Point], false)}, {prop: "startTimestampSyncing", name: "startTimestampSyncing", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [], false)}, {prop: "startStatsSyncing", name: "startStatsSyncing", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [], false)}, {prop: "sendStats", name: "sendStats", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [$error], false)}, {prop: "getFrameHealthCheckTimeout", name: "getFrameHealthCheckTimeout", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [time.Duration], false)}, {prop: "startScreenHealthChecking", name: "startScreenHealthChecking", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [], false)}, {prop: "openScreen", name: "openScreen", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [$error], false)}, {prop: "closeScreen", name: "closeScreen", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [$error], false)}, {prop: "closeScreenLocked", name: "closeScreenLocked", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [$error], false)}, {prop: "createScreenBuffer", name: "createScreenBuffer", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [screen.Buffer, $error], false)}];
|
|
198994
|
+
ptrType$15.methods = [{prop: "Geometry", name: "Geometry", pkg: "", typ: $funcType([], [ptrType$14], false)}, {prop: "SetEncodingPreferences", name: "SetEncodingPreferences", pkg: "", typ: $funcType([stats.EncodingPreferences], [], false)}, {prop: "Start", name: "Start", pkg: "", typ: $funcType([], [$error], false)}, {prop: "Close", name: "Close", pkg: "", typ: $funcType([], [], false)}, {prop: "OnClose", name: "OnClose", pkg: "", typ: $funcType([funcType], [], false)}, {prop: "startWindow", name: "startWindow", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [$error], false)}, {prop: "newWindowOptions", name: "newWindowOptions", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [screen.NewWindowOptions], false)}, {prop: "startClipboard", name: "startClipboard", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [$error], false)}, {prop: "isClosed", name: "isClosed", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [$Bool], false)}, {prop: "retriableOpen", name: "retriableOpen", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([$Int, funcType$1], [$error], false)}, {prop: "openMetadata", name: "openMetadata", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [$error], false)}, {prop: "createMetadataSender", name: "createMetadataSender", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [message.Sender], false)}, {prop: "createScreenSender", name: "createScreenSender", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [message.Sender], false)}, {prop: "setWindowSize", name: "setWindowSize", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([image.Point], [], false)}, {prop: "getWindowSize", name: "getWindowSize", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [image.Point], false)}, {prop: "getEventMultiplier", name: "getEventMultiplier", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [geom.Point], false)}, {prop: "startTimestampSyncing", name: "startTimestampSyncing", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [], false)}, {prop: "startStatsSyncing", name: "startStatsSyncing", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [], false)}, {prop: "sendStats", name: "sendStats", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [$error], false)}, {prop: "getFrameHealthCheckTimeout", name: "getFrameHealthCheckTimeout", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [time.Duration], false)}, {prop: "startScreenHealthChecking", name: "startScreenHealthChecking", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [], false)}, {prop: "openScreen", name: "openScreen", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [$error], false)}, {prop: "closeScreen", name: "closeScreen", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [$error], false)}, {prop: "closeScreenLocked", name: "closeScreenLocked", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [$error], false)}, {prop: "createScreenBuffer", name: "createScreenBuffer", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [screen.Buffer, $error], false)}];
|
|
198955
198995
|
ptrType.methods = [{prop: "CreateProcessInfo", name: "CreateProcessInfo", pkg: "", typ: $funcType([$String, $Int], [$error], false)}, {prop: "RemoveProcessInfo", name: "RemoveProcessInfo", pkg: "", typ: $funcType([$String], [$error], false)}, {prop: "RemoveProcessInfoByPid", name: "RemoveProcessInfoByPid", pkg: "", typ: $funcType([$String, $Int], [$error], false)}, {prop: "WaitProcess", name: "WaitProcess", pkg: "", typ: $funcType([$String], [$error], false)}, {prop: "WaitProcessStopped", name: "WaitProcessStopped", pkg: "", typ: $funcType([$String, time.Duration], [$error], false)}, {prop: "GetProcessInfo", name: "GetProcessInfo", pkg: "", typ: $funcType([$String], [ProcessInfo, $error], false)}, {prop: "ListScreenIDs", name: "ListScreenIDs", pkg: "", typ: $funcType([], [sliceType$4, $error], false)}, {prop: "getUserProcessDirPath", name: "getUserProcessDirPath", pkg: "github.com/supraio/client-daemon/pkg/render", typ: $funcType([], [$String], false)}];
|
|
198956
|
-
ScreenWindow.init("github.com/supraio/client-daemon/pkg/render", [{prop: "processInfoManager", name: "processInfoManager", embedded: false, exported: false, typ: ptrType, tag: ""}, {prop: "screenDriver", name: "screenDriver", embedded: false, exported: false, typ: netpacket.Driver, tag: ""}, {prop: "screenHost", name: "screenHost", embedded: false, exported: false, typ: $String, tag: ""}, {prop: "metadataDriver", name: "metadataDriver", embedded: false, exported: false, typ: netstream.Driver, tag: ""}, {prop: "metadataHost", name: "metadataHost", embedded: false, exported: false, typ: $String, tag: ""}, {prop: "clientID", name: "clientID", embedded: false, exported: false, typ: $String, tag: ""}, {prop: "clientSecret", name: "clientSecret", embedded: false, exported: false, typ: $String, tag: ""}, {prop: "screenID", name: "screenID", embedded: false, exported: false, typ: $String, tag: ""}, {prop: "secure", name: "secure", embedded: false, exported: false, typ: $Bool, tag: ""}, {prop: "forceScreenSize", name: "forceScreenSize", embedded: false, exported: false, typ: ptrType$1, tag: ""}, {prop: "timeoutDuration", name: "timeoutDuration", embedded: false, exported: false, typ: time.Duration, tag: ""}, {prop: "closed", name: "closed", embedded: false, exported: false, typ: $Bool, tag: ""}, {prop: "closeDone", name: "closeDone", embedded: false, exported: false, typ: chanType, tag: ""}, {prop: "closeMu", name: "closeMu", embedded: false, exported: false, typ: sync.Mutex, tag: ""}, {prop: "screenMu", name: "screenMu", embedded: false, exported: false, typ: sync.Mutex, tag: ""}, {prop: "stats", name: "stats", embedded: false, exported: false, typ: ptrType$2, tag: ""}, {prop: "onClose", name: "onClose", embedded: false, exported: false, typ: sliceType$1, tag: ""}, {prop: "window", name: "window", embedded: false, exported: false, typ: screen.Window, tag: ""}, {prop: "screen", name: "screen", embedded: false, exported: false, typ: screen.Screen, tag: ""}, {prop: "screenConn", name: "screenConn", embedded: false, exported: false, typ: netpacket.ReaderWriterCloser, tag: ""}, {prop: "metadataServer", name: "metadataServer", embedded: false, exported: false, typ: ptrType$3, tag: ""}, {prop: "responsiveSender", name: "responsiveSender", embedded: false, exported: false, typ: ptrType$4, tag: ""}, {prop: "collectionLoop", name: "collectionLoop", embedded: false, exported: false, typ: ptrType$5, tag: ""}, {prop: "decoderLoop", name: "decoderLoop", embedded: false, exported: false, typ: ptrType$6, tag: ""}, {prop: "renderingLoop", name: "renderingLoop", embedded: false, exported: false, typ: ptrType$7, tag: ""}, {prop: "sizeHandler", name: "sizeHandler", embedded: false, exported: false, typ: ptrType$8, tag: ""}, {prop: "touchHandler", name: "touchHandler", embedded: false, exported: false, typ: ptrType$9, tag: ""}, {prop: "keyHandler", name: "keyHandler", embedded: false, exported: false, typ: ptrType$10, tag: ""}, {prop: "mouseHandler", name: "mouseHandler", embedded: false, exported: false, typ: ptrType$11, tag: ""}, {prop: "eventMetrics", name: "eventMetrics", embedded: false, exported: false, typ: ptrType$12, tag: ""}, {prop: "pinger", name: "pinger", embedded: false, exported: false, typ: ptrType$13, tag: ""}, {prop: "keyEventChan", name: "keyEventChan", embedded: false, exported: false, typ: chanType$1, tag: ""}, {prop: "mouseEventChan", name: "mouseEventChan", embedded: false, exported: false, typ: chanType$2, tag: ""}, {prop: "sizeEventChan", name: "sizeEventChan", embedded: false, exported: false, typ: chanType$3, tag: ""}, {prop: "focusEventChan", name: "focusEventChan", embedded: false, exported: false, typ: chanType$4, tag: ""}, {prop: "touchEventChan", name: "touchEventChan", embedded: false, exported: false, typ: chanType$5, tag: ""}, {prop: "winCloseChannel", name: "winCloseChannel", embedded: false, exported: false, typ: chanType$6, tag: ""}, {prop: "eventLoopStop", name: "eventLoopStop", embedded: false, exported: false, typ: chanType, tag: ""}, {prop: "eventLoopDone", name: "eventLoopDone", embedded: false, exported: false, typ: chanType, tag: ""}, {prop: "windowSize", name: "windowSize", embedded: false, exported: false, typ: image.Point, tag: ""}, {prop: "geometry", name: "geometry", embedded: false, exported: false, typ: ptrType$14, tag: ""}]);
|
|
198996
|
+
ScreenWindow.init("github.com/supraio/client-daemon/pkg/render", [{prop: "processInfoManager", name: "processInfoManager", embedded: false, exported: false, typ: ptrType, tag: ""}, {prop: "screenDriver", name: "screenDriver", embedded: false, exported: false, typ: netpacket.Driver, tag: ""}, {prop: "screenHost", name: "screenHost", embedded: false, exported: false, typ: $String, tag: ""}, {prop: "metadataDriver", name: "metadataDriver", embedded: false, exported: false, typ: netstream.Driver, tag: ""}, {prop: "metadataHost", name: "metadataHost", embedded: false, exported: false, typ: $String, tag: ""}, {prop: "clientID", name: "clientID", embedded: false, exported: false, typ: $String, tag: ""}, {prop: "clientSecret", name: "clientSecret", embedded: false, exported: false, typ: $String, tag: ""}, {prop: "screenID", name: "screenID", embedded: false, exported: false, typ: $String, tag: ""}, {prop: "secure", name: "secure", embedded: false, exported: false, typ: $Bool, tag: ""}, {prop: "forceScreenSize", name: "forceScreenSize", embedded: false, exported: false, typ: ptrType$1, tag: ""}, {prop: "timeoutDuration", name: "timeoutDuration", embedded: false, exported: false, typ: time.Duration, tag: ""}, {prop: "closed", name: "closed", embedded: false, exported: false, typ: $Bool, tag: ""}, {prop: "closeDone", name: "closeDone", embedded: false, exported: false, typ: chanType, tag: ""}, {prop: "closeMu", name: "closeMu", embedded: false, exported: false, typ: sync.Mutex, tag: ""}, {prop: "screenMu", name: "screenMu", embedded: false, exported: false, typ: sync.Mutex, tag: ""}, {prop: "stats", name: "stats", embedded: false, exported: false, typ: ptrType$2, tag: ""}, {prop: "onClose", name: "onClose", embedded: false, exported: false, typ: sliceType$1, tag: ""}, {prop: "window", name: "window", embedded: false, exported: false, typ: screen.Window, tag: ""}, {prop: "screen", name: "screen", embedded: false, exported: false, typ: screen.Screen, tag: ""}, {prop: "screenConn", name: "screenConn", embedded: false, exported: false, typ: netpacket.ReaderWriterCloser, tag: ""}, {prop: "metadataServer", name: "metadataServer", embedded: false, exported: false, typ: ptrType$3, tag: ""}, {prop: "responsiveSender", name: "responsiveSender", embedded: false, exported: false, typ: ptrType$4, tag: ""}, {prop: "collectionLoop", name: "collectionLoop", embedded: false, exported: false, typ: ptrType$5, tag: ""}, {prop: "decoderLoop", name: "decoderLoop", embedded: false, exported: false, typ: ptrType$6, tag: ""}, {prop: "renderingLoop", name: "renderingLoop", embedded: false, exported: false, typ: ptrType$7, tag: ""}, {prop: "sizeHandler", name: "sizeHandler", embedded: false, exported: false, typ: ptrType$8, tag: ""}, {prop: "touchHandler", name: "touchHandler", embedded: false, exported: false, typ: ptrType$9, tag: ""}, {prop: "keyHandler", name: "keyHandler", embedded: false, exported: false, typ: ptrType$10, tag: ""}, {prop: "mouseHandler", name: "mouseHandler", embedded: false, exported: false, typ: ptrType$11, tag: ""}, {prop: "eventMetrics", name: "eventMetrics", embedded: false, exported: false, typ: ptrType$12, tag: ""}, {prop: "pinger", name: "pinger", embedded: false, exported: false, typ: ptrType$13, tag: ""}, {prop: "keyEventChan", name: "keyEventChan", embedded: false, exported: false, typ: chanType$1, tag: ""}, {prop: "mouseEventChan", name: "mouseEventChan", embedded: false, exported: false, typ: chanType$2, tag: ""}, {prop: "sizeEventChan", name: "sizeEventChan", embedded: false, exported: false, typ: chanType$3, tag: ""}, {prop: "focusEventChan", name: "focusEventChan", embedded: false, exported: false, typ: chanType$4, tag: ""}, {prop: "touchEventChan", name: "touchEventChan", embedded: false, exported: false, typ: chanType$5, tag: ""}, {prop: "winCloseChannel", name: "winCloseChannel", embedded: false, exported: false, typ: chanType$6, tag: ""}, {prop: "eventLoopStop", name: "eventLoopStop", embedded: false, exported: false, typ: chanType, tag: ""}, {prop: "eventLoopDone", name: "eventLoopDone", embedded: false, exported: false, typ: chanType, tag: ""}, {prop: "windowSizeMu", name: "windowSizeMu", embedded: false, exported: false, typ: sync.RWMutex, tag: ""}, {prop: "windowSize", name: "windowSize", embedded: false, exported: false, typ: image.Point, tag: ""}, {prop: "geometry", name: "geometry", embedded: false, exported: false, typ: ptrType$14, tag: ""}]);
|
|
198957
198997
|
Geometry.init("", [{prop: "X", name: "X", embedded: false, exported: true, typ: $Int, tag: "json:\"x\""}, {prop: "Y", name: "Y", embedded: false, exported: true, typ: $Int, tag: "json:\"y\""}, {prop: "Width", name: "Width", embedded: false, exported: true, typ: $Int, tag: "json:\"width\""}, {prop: "Height", name: "Height", embedded: false, exported: true, typ: $Int, tag: "json:\"height\""}]);
|
|
198958
198998
|
screenWindowDetachEvent.init("", []);
|
|
198959
198999
|
nonBlockingWindowEventSender.init([{prop: "SendNonBlocking", name: "SendNonBlocking", pkg: "", typ: $funcType([$emptyInterface], [$Bool], false)}]);
|