@supraio/client-daemon-js 1.0.0-mzscreengeometry.453 → 1.0.0-mzscreengeometry.454

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 CHANGED
@@ -4,6 +4,6 @@
4
4
  <title>Supra daemon</title>
5
5
  </head>
6
6
  <body>
7
- <script type="text/javascript" src="daemon.js?v=1.0.0-mzscreengeometry.453"></script>
7
+ <script type="text/javascript" src="daemon.js?v=1.0.0-mzscreengeometry.454"></script>
8
8
  </body>
9
9
  </html>
package/daemon.js CHANGED
@@ -20482,7 +20482,7 @@
20482
20482
  }
20483
20483
 
20484
20484
  // daemon/plain.ts
20485
- var DAEMON_JS_URL = "supra-client-daemon.js?v=1.0.0-mzscreengeometry.453";
20485
+ var DAEMON_JS_URL = "supra-client-daemon.js?v=1.0.0-mzscreengeometry.454";
20486
20486
  async function startPlainDaemon() {
20487
20487
  await initNaClTCP();
20488
20488
  await initSamsungWasmTCP();
@@ -20495,7 +20495,7 @@
20495
20495
  }
20496
20496
 
20497
20497
  // daemon/wasm.ts
20498
- var DAEMON_WASM_URL = "supra-client-daemon.wasm?v=1.0.0-mzscreengeometry.453";
20498
+ var DAEMON_WASM_URL = "supra-client-daemon.wasm?v=1.0.0-mzscreengeometry.454";
20499
20499
  async function startWasmDaemon() {
20500
20500
  await initNaClTCP();
20501
20501
  await initSamsungWasmTCP();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supraio/client-daemon-js",
3
- "version": "1.0.0-mzscreengeometry.453",
3
+ "version": "1.0.0-mzscreengeometry.454",
4
4
  "description": "",
5
5
  "main": "sdk.js",
6
6
  "types": "sdk.d.ts",
package/screen.html CHANGED
@@ -5,6 +5,6 @@
5
5
  <link rel="stylesheet" href="screen.css"></link>
6
6
  </head>
7
7
  <body>
8
- <script type="text/javascript" src="screen.js?v=1.0.0-mzscreengeometry.453"></script>
8
+ <script type="text/javascript" src="screen.js?v=1.0.0-mzscreengeometry.454"></script>
9
9
  </body>
10
10
  </html>
package/screen.js CHANGED
@@ -21013,7 +21013,7 @@ self.onmessage = function(event) {
21013
21013
  }
21014
21014
 
21015
21015
  // screen/plain.ts
21016
- var SCREEN_JS_URL = "supra-client-screen.js?v=1.0.0-mzscreengeometry.453";
21016
+ var SCREEN_JS_URL = "supra-client-screen.js?v=1.0.0-mzscreengeometry.454";
21017
21017
  async function startPlainScreen(options) {
21018
21018
  console.log("[Supra screen plain] initialization begin");
21019
21019
  options = options != null ? options : parseQueryOptions();
@@ -21055,7 +21055,7 @@ self.onmessage = function(event) {
21055
21055
  }
21056
21056
 
21057
21057
  // screen/wasm.ts
21058
- var SCREEN_WASM_URL = "supra-client-screen.wasm?v=1.0.0-mzscreengeometry.453";
21058
+ var SCREEN_WASM_URL = "supra-client-screen.wasm?v=1.0.0-mzscreengeometry.454";
21059
21059
  async function initializePhase(name, initialize) {
21060
21060
  const startedAt = Date.now();
21061
21061
  console.log(`[Supra screen WASM] ${name} begin`);
package/sdk.js CHANGED
@@ -20651,7 +20651,7 @@ async function initSamsungWasmTCP() {
20651
20651
  }
20652
20652
 
20653
20653
  // daemon/plain.ts
20654
- var DAEMON_JS_URL = "supra-client-daemon.js?v=1.0.0-mzscreengeometry.453";
20654
+ var DAEMON_JS_URL = "supra-client-daemon.js?v=1.0.0-mzscreengeometry.454";
20655
20655
  async function startPlainDaemon() {
20656
20656
  await initNaClTCP();
20657
20657
  await initSamsungWasmTCP();
@@ -20664,7 +20664,7 @@ async function startPlainDaemon() {
20664
20664
  }
20665
20665
 
20666
20666
  // daemon/wasm.ts
20667
- var DAEMON_WASM_URL = "supra-client-daemon.wasm?v=1.0.0-mzscreengeometry.453";
20667
+ var DAEMON_WASM_URL = "supra-client-daemon.wasm?v=1.0.0-mzscreengeometry.454";
20668
20668
  async function startWasmDaemon() {
20669
20669
  await initNaClTCP();
20670
20670
  await initSamsungWasmTCP();
@@ -21055,7 +21055,7 @@ function getGoArgv2(binFile, options) {
21055
21055
  }
21056
21056
 
21057
21057
  // screen/plain.ts
21058
- var SCREEN_JS_URL = "supra-client-screen.js?v=1.0.0-mzscreengeometry.453";
21058
+ var SCREEN_JS_URL = "supra-client-screen.js?v=1.0.0-mzscreengeometry.454";
21059
21059
  async function startPlainScreen(options) {
21060
21060
  console.log("[Supra screen plain] initialization begin");
21061
21061
  options = options != null ? options : parseQueryOptions();
@@ -21097,7 +21097,7 @@ async function createH264Decoder() {
21097
21097
  }
21098
21098
 
21099
21099
  // screen/wasm.ts
21100
- var SCREEN_WASM_URL = "supra-client-screen.wasm?v=1.0.0-mzscreengeometry.453";
21100
+ var SCREEN_WASM_URL = "supra-client-screen.wasm?v=1.0.0-mzscreengeometry.454";
21101
21101
  async function initializePhase(name, initialize) {
21102
21102
  const startedAt = Date.now();
21103
21103
  console.log(`[Supra screen WASM] ${name} begin`);
@@ -17856,7 +17856,7 @@ $packages["math/bits"] = (function() {
17856
17856
  return $pkg;
17857
17857
  })();
17858
17858
  $packages["math"] = (function() {
17859
- var $pkg = {}, $init, js, bits, arrayType, arrayType$1, arrayType$2, structType, math, _zero, posInf, negInf, nan, buf, log2, Exp, Frexp, Inf, IsInf, IsNaN, Log, Log2, NaN, init, Float32bits, Float32frombits, Float64bits, Float64frombits, frexp, Round, normalize, Abs;
17859
+ var $pkg = {}, $init, js, bits, arrayType, arrayType$1, arrayType$2, structType, math, _zero, posInf, negInf, nan, buf, log2, Exp, Frexp, Inf, IsInf, IsNaN, Log, Log2, NaN, init, Float32bits, Float32frombits, Float64bits, Float64frombits, frexp, normalize, Abs;
17860
17860
  js = $packages["github.com/gopherjs/gopherjs/js"];
17861
17861
  bits = $packages["math/bits"];
17862
17862
  arrayType = $arrayType($Uint32, 2);
@@ -17991,23 +17991,6 @@ $packages["math"] = (function() {
17991
17991
  frac = Float64frombits(x);
17992
17992
  return [frac, exp$1];
17993
17993
  };
17994
- Round = function(x) {
17995
- var bits$1, e, x, x$1, x$2, x$3, x$4;
17996
- bits$1 = Float64bits(x);
17997
- e = ((($shiftRightUint64(bits$1, 52).$low >>> 0)) & 2047) >>> 0;
17998
- if (e < 1023) {
17999
- bits$1 = (x$1 = new $Uint64(2147483648, 0), new $Uint64(bits$1.$high & x$1.$high, (bits$1.$low & x$1.$low) >>> 0));
18000
- if (e === 1022) {
18001
- bits$1 = (x$2 = new $Uint64(1072693248, 0), new $Uint64(bits$1.$high | x$2.$high, (bits$1.$low | x$2.$low) >>> 0));
18002
- }
18003
- } else if (e < 1075) {
18004
- e = e - (1023) >>> 0;
18005
- bits$1 = (x$3 = $shiftRightUint64(new $Uint64(524288, 0), e), new $Uint64(bits$1.$high + x$3.$high, bits$1.$low + x$3.$low));
18006
- bits$1 = (x$4 = $shiftRightUint64(new $Uint64(1048575, 4294967295), e), new $Uint64(bits$1.$high & ~x$4.$high, (bits$1.$low & ~x$4.$low) >>> 0));
18007
- }
18008
- return Float64frombits(bits$1);
18009
- };
18010
- $pkg.Round = Round;
18011
17994
  normalize = function(x) {
18012
17995
  var _tmp, _tmp$1, _tmp$2, _tmp$3, exp$1, x, y;
18013
17996
  y = 0;
@@ -160454,9 +160437,12 @@ $packages["github.com/coder/websocket"] = (function() {
160454
160437
  c = new Conn.ptr(new noCopy.ptr(), $clone(ws, wsjs.WebSocket), new atomic.Int64.ptr(new atomic.noCopy.ptr(), new atomic.align64.ptr(), new $Int64(0, 0)), new sync.Mutex.ptr(0, 0), $ifaceNil, new sync.Mutex.ptr(0, 0), new sync.Once.ptr(0, new sync.Mutex.ptr(0, 0)), $chanNil, new sync.Once.ptr(0, new sync.Mutex.ptr(0, 0)), $ifaceNil, false, new sync.Once.ptr(0, new sync.Mutex.ptr(0, 0)), $throwNilPointerError, $throwNilPointerError, $throwNilPointerError, $chanNil, new sync.Mutex.ptr(0, 0), sliceType$3.nil);
160455
160438
  $r = c.init(); /* */ $s = 5; case 5: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
160456
160439
  opench[0] = new $Chan(structType, 0);
160457
- _r$1 = $clone(ws, wsjs.WebSocket).OnOpen((function(opench) { return function(e) {
160458
- var e;
160459
- $close(opench[0]);
160440
+ _r$1 = $clone(ws, wsjs.WebSocket).OnOpen((function(opench) { return function $b(e) {
160441
+ var {e, $s, $r, $c} = $restore(this, {e});
160442
+ /* */ $s = $s || 0; s: while (true) { switch ($s) { case 0:
160443
+ $r = $send(opench[0], $clone($clone(new structType.ptr(), structType), structType)); /* */ $s = 1; case 1: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
160444
+ $s = -1; return;
160445
+ /* */ } return; } var $f = {$blk: $b, $c: true, $r, e, $s};return $f;
160460
160446
  }; })(opench)); /* */ $s = 6; case 6: if($c) { $c = false; _r$1 = _r$1.$blk(); } if (_r$1 && _r$1.$blk !== undefined) { break s; }
160461
160447
  releaseOpen = _r$1;
160462
160448
  $deferred.push([releaseOpen, []]);
@@ -183417,7 +183403,7 @@ $packages["golang.org/x/mobile/event/touch"] = (function() {
183417
183403
  return $pkg;
183418
183404
  })();
183419
183405
  $packages["golang.org/x/exp/shiny/driver/util/dom"] = (function() {
183420
- var $pkg = {}, $init, focus, key, mouse, size, touch, geom, math, strings, js, DomEvents, sliceType, funcType, sliceType$1, sliceType$2, chanType, ptrType, keyCodesMap, keyCodesByKeyMap, GetDocWidth, GetDocHeight, GetScreenWidth, GetScreenHeight, GetBrowserZoomRatio, SetWindowWidth, SetWindowHeight, GetOrientation, NewDomEvents, getMouseDirection, getWheelButton, getMouseButton, getEventModifiers, isFocusIn, getKeyRune, getKeyDirection, getKeyCode;
183406
+ var $pkg = {}, $init, focus, key, mouse, size, touch, geom, math, strings, js, DomEvents, sliceType, funcType, sliceType$1, sliceType$2, chanType, ptrType, keyCodesMap, keyCodesByKeyMap, GetDocWidth, GetDocHeight, GetScreenWidth, GetScreenHeight, SetWindowWidth, SetWindowHeight, GetOrientation, NewDomEvents, getMouseDirection, getWheelButton, getMouseButton, getEventModifiers, isFocusIn, getKeyRune, getKeyDirection, getKeyCode;
183421
183407
  focus = $packages["golang.org/x/mobile/event/focus"];
183422
183408
  key = $packages["golang.org/x/mobile/event/key"];
183423
183409
  mouse = $packages["golang.org/x/mobile/event/mouse"];
@@ -183459,20 +183445,6 @@ $packages["golang.org/x/exp/shiny/driver/util/dom"] = (function() {
183459
183445
  return $clone($clone($clone(js.Global(), js.Value).Get("screen"), js.Value).Get("height"), js.Value).Int();
183460
183446
  };
183461
183447
  $pkg.GetScreenHeight = GetScreenHeight;
183462
- GetBrowserZoomRatio = function() {
183463
- var chromeZoom1, chromeZoom2, chromeZoom3, docElClientWidth, scrollerWidthInNoZoom, scrollerWidthInZoom1, scrollerWidthInZoom2, windowInnerWidth, windowOuterWidth;
183464
- windowInnerWidth = $clone($clone(js.Global(), js.Value).Get("innerWidth"), js.Value).Float();
183465
- windowOuterWidth = $clone($clone(js.Global(), js.Value).Get("outerWidth"), js.Value).Float();
183466
- docElClientWidth = $clone($clone($clone($clone(js.Global(), js.Value).Get("document"), js.Value).Get("documentElement"), js.Value).Get("clientWidth"), js.Value).Float();
183467
- scrollerWidthInNoZoom = windowInnerWidth - docElClientWidth;
183468
- chromeZoom1 = (windowOuterWidth - scrollerWidthInNoZoom) / windowInnerWidth;
183469
- scrollerWidthInZoom1 = math.Round(scrollerWidthInNoZoom * chromeZoom1);
183470
- chromeZoom2 = (windowOuterWidth - scrollerWidthInZoom1) / windowInnerWidth;
183471
- scrollerWidthInZoom2 = math.Round(scrollerWidthInNoZoom * chromeZoom2);
183472
- chromeZoom3 = (windowOuterWidth - scrollerWidthInZoom2) / windowInnerWidth;
183473
- return chromeZoom3;
183474
- };
183475
- $pkg.GetBrowserZoomRatio = GetBrowserZoomRatio;
183476
183448
  SetWindowWidth = function(newInnerWidth) {
183477
183449
  var {_r, innerWidth, newInnerWidth, newOuterWidth, outerHeight, outerWidth, screenWidth, $s, $r, $c} = $restore(this, {newInnerWidth});
183478
183450
  /* */ $s = $s || 0; s: while (true) { switch ($s) { case 0:
@@ -191352,16 +191324,15 @@ $packages["golang.org/x/exp/shiny/driver/canvasdriver"] = (function() {
191352
191324
  $clone(canvasEl[0], js.Value).Set("height", new $Int(opts.Height));
191353
191325
  /* } */ case 4:
191354
191326
  adaptCanvas[0] = (function(adaptCanvas, canvasEl, hasGeometry) { return function() {
191355
- var height, scale, width;
191327
+ var height, width;
191356
191328
  if (hasGeometry[0]) {
191357
191329
  return;
191358
191330
  }
191359
- scale = dom.GetBrowserZoomRatio();
191360
- width = (((dom.GetDocWidth()) / scale >> 0));
191331
+ width = dom.GetDocWidth();
191361
191332
  if (!(($clone($clone(canvasEl[0], js.Value).Get("width"), js.Value).Int() === width))) {
191362
191333
  $clone(canvasEl[0], js.Value).Set("width", new $Int(width));
191363
191334
  }
191364
- height = (((dom.GetDocHeight()) / scale >> 0));
191335
+ height = dom.GetDocHeight();
191365
191336
  if (!(($clone($clone(canvasEl[0], js.Value).Get("height"), js.Value).Int() === height))) {
191366
191337
  $clone(canvasEl[0], js.Value).Set("height", new $Int(height));
191367
191338
  }