@supraio/client-daemon-js 0.0.1-mz-resolution.1 → 0.0.1-mz-resolution.2
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/package.json +1 -1
- package/supra-client-daemon.js +434 -416
- package/supra-client-daemon.js.map +1 -1
- package/supra-client-daemon.wasm +0 -0
- package/supra-client-screen.js +657 -546
- package/supra-client-screen.js.map +1 -1
- package/supra-client-screen.wasm +0 -0
package/supra-client-daemon.js
CHANGED
|
@@ -133955,274 +133955,6 @@ $packages["github.com/google/go-querystring/query"] = (function() {
|
|
|
133955
133955
|
$pkg.$init = $init;
|
|
133956
133956
|
return $pkg;
|
|
133957
133957
|
})();
|
|
133958
|
-
$packages["github.com/supraio/client-daemon/pkg/clipboard"] = (function() {
|
|
133959
|
-
var $pkg = {}, $init, errs, time;
|
|
133960
|
-
errs = $packages["github.com/supraio/client-daemon/pkg/errs"];
|
|
133961
|
-
time = $packages["time"];
|
|
133962
|
-
$init = function() {
|
|
133963
|
-
$pkg.$init = function() {};
|
|
133964
|
-
/* */ var $f, $c = false, $s = 0, $r; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
133965
|
-
$r = errs.$init(); /* */ $s = 1; case 1: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
133966
|
-
$r = time.$init(); /* */ $s = 2; case 2: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
133967
|
-
/* */ } return; } if ($f === undefined) { $f = { $blk: $init }; } $f.$s = $s; $f.$r = $r; return $f;
|
|
133968
|
-
};
|
|
133969
|
-
$pkg.$init = $init;
|
|
133970
|
-
return $pkg;
|
|
133971
|
-
})();
|
|
133972
|
-
$packages["golang.org/x/mobile/event/focus"] = (function() {
|
|
133973
|
-
var $pkg = {}, $init, fmt, Event, sliceType;
|
|
133974
|
-
fmt = $packages["fmt"];
|
|
133975
|
-
Event = $pkg.Event = $newType(0, $kindStruct, "focus.Event", true, "golang.org/x/mobile/event/focus", true, function(In_) {
|
|
133976
|
-
this.$val = this;
|
|
133977
|
-
if (arguments.length === 0) {
|
|
133978
|
-
this.In = false;
|
|
133979
|
-
return;
|
|
133980
|
-
}
|
|
133981
|
-
this.In = In_;
|
|
133982
|
-
});
|
|
133983
|
-
sliceType = $sliceType($emptyInterface);
|
|
133984
|
-
Event.ptr.prototype.String = function() {
|
|
133985
|
-
var _r, e, str, $s, $r;
|
|
133986
|
-
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r = $f._r; e = $f.e; str = $f.str; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
133987
|
-
e = this;
|
|
133988
|
-
str = "FocusedIn";
|
|
133989
|
-
if (!e.In) {
|
|
133990
|
-
str = "FocusedOut";
|
|
133991
|
-
}
|
|
133992
|
-
_r = fmt.Sprintf("focus.Event{(%s)}", new sliceType([new $String(str)])); /* */ $s = 1; case 1: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
133993
|
-
$s = -1; return _r;
|
|
133994
|
-
/* */ } return; } if ($f === undefined) { $f = { $blk: Event.ptr.prototype.String }; } $f._r = _r; $f.e = e; $f.str = str; $f.$s = $s; $f.$r = $r; return $f;
|
|
133995
|
-
};
|
|
133996
|
-
Event.prototype.String = function() { return this.$val.String(); };
|
|
133997
|
-
Event.methods = [{prop: "String", name: "String", pkg: "", typ: $funcType([], [$String], false)}];
|
|
133998
|
-
Event.init("", [{prop: "In", name: "In", embedded: false, exported: true, typ: $Bool, tag: ""}]);
|
|
133999
|
-
$init = function() {
|
|
134000
|
-
$pkg.$init = function() {};
|
|
134001
|
-
/* */ var $f, $c = false, $s = 0, $r; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
134002
|
-
$r = fmt.$init(); /* */ $s = 1; case 1: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
134003
|
-
/* */ } return; } if ($f === undefined) { $f = { $blk: $init }; } $f.$s = $s; $f.$r = $r; return $f;
|
|
134004
|
-
};
|
|
134005
|
-
$pkg.$init = $init;
|
|
134006
|
-
return $pkg;
|
|
134007
|
-
})();
|
|
134008
|
-
$packages["golang.org/x/mobile/event/key"] = (function() {
|
|
134009
|
-
var $pkg = {}, $init, fmt, strings, Event, Direction, Modifiers, Code, structType, sliceType, sliceType$1, _Code_index_1, _Code_index_2, _Code_index_3, _Code_index_4, _Code_index_6, _Code_index_7, mods;
|
|
134010
|
-
fmt = $packages["fmt"];
|
|
134011
|
-
strings = $packages["strings"];
|
|
134012
|
-
Event = $pkg.Event = $newType(0, $kindStruct, "key.Event", true, "golang.org/x/mobile/event/key", true, function(Rune_, Code_, Modifiers_, Direction_) {
|
|
134013
|
-
this.$val = this;
|
|
134014
|
-
if (arguments.length === 0) {
|
|
134015
|
-
this.Rune = 0;
|
|
134016
|
-
this.Code = 0;
|
|
134017
|
-
this.Modifiers = 0;
|
|
134018
|
-
this.Direction = 0;
|
|
134019
|
-
return;
|
|
134020
|
-
}
|
|
134021
|
-
this.Rune = Rune_;
|
|
134022
|
-
this.Code = Code_;
|
|
134023
|
-
this.Modifiers = Modifiers_;
|
|
134024
|
-
this.Direction = Direction_;
|
|
134025
|
-
});
|
|
134026
|
-
Direction = $pkg.Direction = $newType(1, $kindUint8, "key.Direction", true, "golang.org/x/mobile/event/key", true, null);
|
|
134027
|
-
Modifiers = $pkg.Modifiers = $newType(4, $kindUint32, "key.Modifiers", true, "golang.org/x/mobile/event/key", true, null);
|
|
134028
|
-
Code = $pkg.Code = $newType(4, $kindUint32, "key.Code", true, "golang.org/x/mobile/event/key", true, null);
|
|
134029
|
-
structType = $structType("golang.org/x/mobile/event/key", [{prop: "m", name: "m", embedded: false, exported: false, typ: Modifiers, tag: ""}, {prop: "s", name: "s", embedded: false, exported: false, typ: $String, tag: ""}]);
|
|
134030
|
-
sliceType = $sliceType($emptyInterface);
|
|
134031
|
-
sliceType$1 = $sliceType($String);
|
|
134032
|
-
Code.prototype.String = function() {
|
|
134033
|
-
var _r, i, x, x$1, x$2, x$3, x$4, x$5, $s, $r;
|
|
134034
|
-
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r = $f._r; i = $f.i; x = $f.x; x$1 = $f.x$1; x$2 = $f.x$2; x$3 = $f.x$3; x$4 = $f.x$4; x$5 = $f.x$5; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
134035
|
-
i = this.$val;
|
|
134036
|
-
/* */ if ((i === 0)) { $s = 2; continue; }
|
|
134037
|
-
/* */ if (4 <= i && i <= 49) { $s = 3; continue; }
|
|
134038
|
-
/* */ if (51 <= i && i <= 69) { $s = 4; continue; }
|
|
134039
|
-
/* */ if (72 <= i && i <= 99) { $s = 5; continue; }
|
|
134040
|
-
/* */ if (103 <= i && i <= 115) { $s = 6; continue; }
|
|
134041
|
-
/* */ if ((i === 117)) { $s = 7; continue; }
|
|
134042
|
-
/* */ if (127 <= i && i <= 129) { $s = 8; continue; }
|
|
134043
|
-
/* */ if (224 <= i && i <= 231) { $s = 9; continue; }
|
|
134044
|
-
/* */ if ((i === 65536)) { $s = 10; continue; }
|
|
134045
|
-
/* */ $s = 11; continue;
|
|
134046
|
-
/* if ((i === 0)) { */ case 2:
|
|
134047
|
-
$s = -1; return "CodeUnknown";
|
|
134048
|
-
/* } else if (4 <= i && i <= 49) { */ case 3:
|
|
134049
|
-
i = i - (4) >>> 0;
|
|
134050
|
-
$s = -1; return $substring("CodeACodeBCodeCCodeDCodeECodeFCodeGCodeHCodeICodeJCodeKCodeLCodeMCodeNCodeOCodePCodeQCodeRCodeSCodeTCodeUCodeVCodeWCodeXCodeYCodeZCode1Code2Code3Code4Code5Code6Code7Code8Code9Code0CodeReturnEnterCodeEscapeCodeDeleteBackspaceCodeTabCodeSpacebarCodeHyphenMinusCodeEqualSignCodeLeftSquareBracketCodeRightSquareBracketCodeBackslash", ((i < 0 || i >= _Code_index_1.length) ? ($throwRuntimeError("index out of range"), undefined) : _Code_index_1[i]), (x = i + 1 >>> 0, ((x < 0 || x >= _Code_index_1.length) ? ($throwRuntimeError("index out of range"), undefined) : _Code_index_1[x])));
|
|
134051
|
-
/* } else if (51 <= i && i <= 69) { */ case 4:
|
|
134052
|
-
i = i - (51) >>> 0;
|
|
134053
|
-
$s = -1; return $substring("CodeSemicolonCodeApostropheCodeGraveAccentCodeCommaCodeFullStopCodeSlashCodeCapsLockCodeF1CodeF2CodeF3CodeF4CodeF5CodeF6CodeF7CodeF8CodeF9CodeF10CodeF11CodeF12", ((i < 0 || i >= _Code_index_2.length) ? ($throwRuntimeError("index out of range"), undefined) : _Code_index_2[i]), (x$1 = i + 1 >>> 0, ((x$1 < 0 || x$1 >= _Code_index_2.length) ? ($throwRuntimeError("index out of range"), undefined) : _Code_index_2[x$1])));
|
|
134054
|
-
/* } else if (72 <= i && i <= 99) { */ case 5:
|
|
134055
|
-
i = i - (72) >>> 0;
|
|
134056
|
-
$s = -1; return $substring("CodePauseCodeInsertCodeHomeCodePageUpCodeDeleteForwardCodeEndCodePageDownCodeRightArrowCodeLeftArrowCodeDownArrowCodeUpArrowCodeKeypadNumLockCodeKeypadSlashCodeKeypadAsteriskCodeKeypadHyphenMinusCodeKeypadPlusSignCodeKeypadEnterCodeKeypad1CodeKeypad2CodeKeypad3CodeKeypad4CodeKeypad5CodeKeypad6CodeKeypad7CodeKeypad8CodeKeypad9CodeKeypad0CodeKeypadFullStop", ((i < 0 || i >= _Code_index_3.length) ? ($throwRuntimeError("index out of range"), undefined) : _Code_index_3[i]), (x$2 = i + 1 >>> 0, ((x$2 < 0 || x$2 >= _Code_index_3.length) ? ($throwRuntimeError("index out of range"), undefined) : _Code_index_3[x$2])));
|
|
134057
|
-
/* } else if (103 <= i && i <= 115) { */ case 6:
|
|
134058
|
-
i = i - (103) >>> 0;
|
|
134059
|
-
$s = -1; return $substring("CodeKeypadEqualSignCodeF13CodeF14CodeF15CodeF16CodeF17CodeF18CodeF19CodeF20CodeF21CodeF22CodeF23CodeF24", ((i < 0 || i >= _Code_index_4.length) ? ($throwRuntimeError("index out of range"), undefined) : _Code_index_4[i]), (x$3 = i + 1 >>> 0, ((x$3 < 0 || x$3 >= _Code_index_4.length) ? ($throwRuntimeError("index out of range"), undefined) : _Code_index_4[x$3])));
|
|
134060
|
-
/* } else if ((i === 117)) { */ case 7:
|
|
134061
|
-
$s = -1; return "CodeHelp";
|
|
134062
|
-
/* } else if (127 <= i && i <= 129) { */ case 8:
|
|
134063
|
-
i = i - (127) >>> 0;
|
|
134064
|
-
$s = -1; return $substring("CodeMuteCodeVolumeUpCodeVolumeDown", ((i < 0 || i >= _Code_index_6.length) ? ($throwRuntimeError("index out of range"), undefined) : _Code_index_6[i]), (x$4 = i + 1 >>> 0, ((x$4 < 0 || x$4 >= _Code_index_6.length) ? ($throwRuntimeError("index out of range"), undefined) : _Code_index_6[x$4])));
|
|
134065
|
-
/* } else if (224 <= i && i <= 231) { */ case 9:
|
|
134066
|
-
i = i - (224) >>> 0;
|
|
134067
|
-
$s = -1; return $substring("CodeLeftControlCodeLeftShiftCodeLeftAltCodeLeftGUICodeRightControlCodeRightShiftCodeRightAltCodeRightGUI", ((i < 0 || i >= _Code_index_7.length) ? ($throwRuntimeError("index out of range"), undefined) : _Code_index_7[i]), (x$5 = i + 1 >>> 0, ((x$5 < 0 || x$5 >= _Code_index_7.length) ? ($throwRuntimeError("index out of range"), undefined) : _Code_index_7[x$5])));
|
|
134068
|
-
/* } else if ((i === 65536)) { */ case 10:
|
|
134069
|
-
$s = -1; return "CodeCompose";
|
|
134070
|
-
/* } else { */ case 11:
|
|
134071
|
-
_r = fmt.Sprintf("Code(%d)", new sliceType([new Code(i)])); /* */ $s = 13; case 13: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
134072
|
-
$s = -1; return _r;
|
|
134073
|
-
/* } */ case 12:
|
|
134074
|
-
case 1:
|
|
134075
|
-
$s = -1; return "";
|
|
134076
|
-
/* */ } return; } if ($f === undefined) { $f = { $blk: Code.prototype.String }; } $f._r = _r; $f.i = i; $f.x = x; $f.x$1 = x$1; $f.x$2 = x$2; $f.x$3 = x$3; $f.x$4 = x$4; $f.x$5 = x$5; $f.$s = $s; $f.$r = $r; return $f;
|
|
134077
|
-
};
|
|
134078
|
-
$ptrType(Code).prototype.String = function() { return new Code(this.$get()).String(); };
|
|
134079
|
-
Event.ptr.prototype.String = function() {
|
|
134080
|
-
var _r, _r$1, e, $s, $r;
|
|
134081
|
-
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r = $f._r; _r$1 = $f._r$1; e = $f.e; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
134082
|
-
e = this;
|
|
134083
|
-
/* */ if (e.Rune >= 0) { $s = 1; continue; }
|
|
134084
|
-
/* */ $s = 2; continue;
|
|
134085
|
-
/* if (e.Rune >= 0) { */ case 1:
|
|
134086
|
-
_r = fmt.Sprintf("key.Event{%q (%v), %v, %v}", new sliceType([new $Int32(e.Rune), new Code(e.Code), new Modifiers(e.Modifiers), new Direction(e.Direction)])); /* */ $s = 3; case 3: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
134087
|
-
$s = -1; return _r;
|
|
134088
|
-
/* } */ case 2:
|
|
134089
|
-
_r$1 = fmt.Sprintf("key.Event{(%v), %v, %v}", new sliceType([new Code(e.Code), new Modifiers(e.Modifiers), new Direction(e.Direction)])); /* */ $s = 4; case 4: if($c) { $c = false; _r$1 = _r$1.$blk(); } if (_r$1 && _r$1.$blk !== undefined) { break s; }
|
|
134090
|
-
$s = -1; return _r$1;
|
|
134091
|
-
/* */ } return; } if ($f === undefined) { $f = { $blk: Event.ptr.prototype.String }; } $f._r = _r; $f._r$1 = _r$1; $f.e = e; $f.$s = $s; $f.$r = $r; return $f;
|
|
134092
|
-
};
|
|
134093
|
-
Event.prototype.String = function() { return this.$val.String(); };
|
|
134094
|
-
Modifiers.prototype.String = function() {
|
|
134095
|
-
var _i, _ref, m, match, mod;
|
|
134096
|
-
m = this.$val;
|
|
134097
|
-
match = sliceType$1.nil;
|
|
134098
|
-
_ref = mods;
|
|
134099
|
-
_i = 0;
|
|
134100
|
-
while (true) {
|
|
134101
|
-
if (!(_i < 4)) { break; }
|
|
134102
|
-
mod = $clone(((_i < 0 || _i >= _ref.length) ? ($throwRuntimeError("index out of range"), undefined) : _ref[_i]), structType);
|
|
134103
|
-
if (!((((mod.m & m) >>> 0) === 0))) {
|
|
134104
|
-
match = $append(match, mod.s);
|
|
134105
|
-
}
|
|
134106
|
-
_i++;
|
|
134107
|
-
}
|
|
134108
|
-
return "key.Modifiers(" + strings.Join(match, "|") + ")";
|
|
134109
|
-
};
|
|
134110
|
-
$ptrType(Modifiers).prototype.String = function() { return new Modifiers(this.$get()).String(); };
|
|
134111
|
-
Direction.prototype.String = function() {
|
|
134112
|
-
var _1, _r, d, $s, $r;
|
|
134113
|
-
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _1 = $f._1; _r = $f._r; d = $f.d; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
134114
|
-
d = this.$val;
|
|
134115
|
-
_1 = d;
|
|
134116
|
-
/* */ if (_1 === (0)) { $s = 2; continue; }
|
|
134117
|
-
/* */ if (_1 === (1)) { $s = 3; continue; }
|
|
134118
|
-
/* */ if (_1 === (2)) { $s = 4; continue; }
|
|
134119
|
-
/* */ $s = 5; continue;
|
|
134120
|
-
/* if (_1 === (0)) { */ case 2:
|
|
134121
|
-
$s = -1; return "None";
|
|
134122
|
-
/* } else if (_1 === (1)) { */ case 3:
|
|
134123
|
-
$s = -1; return "Press";
|
|
134124
|
-
/* } else if (_1 === (2)) { */ case 4:
|
|
134125
|
-
$s = -1; return "Release";
|
|
134126
|
-
/* } else { */ case 5:
|
|
134127
|
-
_r = fmt.Sprintf("key.Direction(%d)", new sliceType([new Direction(d)])); /* */ $s = 7; case 7: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
134128
|
-
$s = -1; return _r;
|
|
134129
|
-
/* } */ case 6:
|
|
134130
|
-
case 1:
|
|
134131
|
-
$s = -1; return "";
|
|
134132
|
-
/* */ } return; } if ($f === undefined) { $f = { $blk: Direction.prototype.String }; } $f._1 = _1; $f._r = _r; $f.d = d; $f.$s = $s; $f.$r = $r; return $f;
|
|
134133
|
-
};
|
|
134134
|
-
$ptrType(Direction).prototype.String = function() { return new Direction(this.$get()).String(); };
|
|
134135
|
-
Event.methods = [{prop: "String", name: "String", pkg: "", typ: $funcType([], [$String], false)}];
|
|
134136
|
-
Direction.methods = [{prop: "String", name: "String", pkg: "", typ: $funcType([], [$String], false)}];
|
|
134137
|
-
Modifiers.methods = [{prop: "String", name: "String", pkg: "", typ: $funcType([], [$String], false)}];
|
|
134138
|
-
Code.methods = [{prop: "String", name: "String", pkg: "", typ: $funcType([], [$String], false)}];
|
|
134139
|
-
Event.init("", [{prop: "Rune", name: "Rune", embedded: false, exported: true, typ: $Int32, tag: ""}, {prop: "Code", name: "Code", embedded: false, exported: true, typ: Code, tag: ""}, {prop: "Modifiers", name: "Modifiers", embedded: false, exported: true, typ: Modifiers, tag: ""}, {prop: "Direction", name: "Direction", embedded: false, exported: true, typ: Direction, tag: ""}]);
|
|
134140
|
-
$init = function() {
|
|
134141
|
-
$pkg.$init = function() {};
|
|
134142
|
-
/* */ var $f, $c = false, $s = 0, $r; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
134143
|
-
$r = fmt.$init(); /* */ $s = 1; case 1: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
134144
|
-
$r = strings.$init(); /* */ $s = 2; case 2: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
134145
|
-
_Code_index_1 = $toNativeArray($kindUint16, [0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100, 105, 110, 115, 120, 125, 130, 135, 140, 145, 150, 155, 160, 165, 170, 175, 180, 195, 205, 224, 231, 243, 258, 271, 292, 314, 327]);
|
|
134146
|
-
_Code_index_2 = $toNativeArray($kindUint8, [0, 13, 27, 42, 51, 63, 72, 84, 90, 96, 102, 108, 114, 120, 126, 132, 138, 145, 152, 159]);
|
|
134147
|
-
_Code_index_3 = $toNativeArray($kindUint16, [0, 9, 19, 27, 37, 54, 61, 73, 87, 100, 113, 124, 141, 156, 174, 195, 213, 228, 239, 250, 261, 272, 283, 294, 305, 316, 327, 338, 356]);
|
|
134148
|
-
_Code_index_4 = $toNativeArray($kindUint8, [0, 19, 26, 33, 40, 47, 54, 61, 68, 75, 82, 89, 96, 103]);
|
|
134149
|
-
_Code_index_6 = $toNativeArray($kindUint8, [0, 8, 20, 34]);
|
|
134150
|
-
_Code_index_7 = $toNativeArray($kindUint8, [0, 15, 28, 39, 50, 66, 80, 92, 104]);
|
|
134151
|
-
mods = $toNativeArray($kindStruct, [new structType.ptr(1, "Shift"), new structType.ptr(2, "Control"), new structType.ptr(4, "Alt"), new structType.ptr(8, "Meta")]);
|
|
134152
|
-
/* */ } return; } if ($f === undefined) { $f = { $blk: $init }; } $f.$s = $s; $f.$r = $r; return $f;
|
|
134153
|
-
};
|
|
134154
|
-
$pkg.$init = $init;
|
|
134155
|
-
return $pkg;
|
|
134156
|
-
})();
|
|
134157
|
-
$packages["golang.org/x/mobile/event/mouse"] = (function() {
|
|
134158
|
-
var $pkg = {}, $init, fmt, key, Event, Button, Direction, sliceType;
|
|
134159
|
-
fmt = $packages["fmt"];
|
|
134160
|
-
key = $packages["golang.org/x/mobile/event/key"];
|
|
134161
|
-
Event = $pkg.Event = $newType(0, $kindStruct, "mouse.Event", true, "golang.org/x/mobile/event/mouse", true, function(X_, Y_, Button_, Modifiers_, Direction_) {
|
|
134162
|
-
this.$val = this;
|
|
134163
|
-
if (arguments.length === 0) {
|
|
134164
|
-
this.X = 0;
|
|
134165
|
-
this.Y = 0;
|
|
134166
|
-
this.Button = 0;
|
|
134167
|
-
this.Modifiers = 0;
|
|
134168
|
-
this.Direction = 0;
|
|
134169
|
-
return;
|
|
134170
|
-
}
|
|
134171
|
-
this.X = X_;
|
|
134172
|
-
this.Y = Y_;
|
|
134173
|
-
this.Button = Button_;
|
|
134174
|
-
this.Modifiers = Modifiers_;
|
|
134175
|
-
this.Direction = Direction_;
|
|
134176
|
-
});
|
|
134177
|
-
Button = $pkg.Button = $newType(4, $kindInt32, "mouse.Button", true, "golang.org/x/mobile/event/mouse", true, null);
|
|
134178
|
-
Direction = $pkg.Direction = $newType(1, $kindUint8, "mouse.Direction", true, "golang.org/x/mobile/event/mouse", true, null);
|
|
134179
|
-
sliceType = $sliceType($emptyInterface);
|
|
134180
|
-
Button.prototype.IsWheel = function() {
|
|
134181
|
-
var b;
|
|
134182
|
-
b = this.$val;
|
|
134183
|
-
return b < 0;
|
|
134184
|
-
};
|
|
134185
|
-
$ptrType(Button).prototype.IsWheel = function() { return new Button(this.$get()).IsWheel(); };
|
|
134186
|
-
Direction.prototype.String = function() {
|
|
134187
|
-
var _1, _r, d, $s, $r;
|
|
134188
|
-
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _1 = $f._1; _r = $f._r; d = $f.d; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
134189
|
-
d = this.$val;
|
|
134190
|
-
_1 = d;
|
|
134191
|
-
/* */ if (_1 === (0)) { $s = 2; continue; }
|
|
134192
|
-
/* */ if (_1 === (1)) { $s = 3; continue; }
|
|
134193
|
-
/* */ if (_1 === (2)) { $s = 4; continue; }
|
|
134194
|
-
/* */ if (_1 === (3)) { $s = 5; continue; }
|
|
134195
|
-
/* */ $s = 6; continue;
|
|
134196
|
-
/* if (_1 === (0)) { */ case 2:
|
|
134197
|
-
$s = -1; return "None";
|
|
134198
|
-
/* } else if (_1 === (1)) { */ case 3:
|
|
134199
|
-
$s = -1; return "Press";
|
|
134200
|
-
/* } else if (_1 === (2)) { */ case 4:
|
|
134201
|
-
$s = -1; return "Release";
|
|
134202
|
-
/* } else if (_1 === (3)) { */ case 5:
|
|
134203
|
-
$s = -1; return "Step";
|
|
134204
|
-
/* } else { */ case 6:
|
|
134205
|
-
_r = fmt.Sprintf("mouse.Direction(%d)", new sliceType([new Direction(d)])); /* */ $s = 8; case 8: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
134206
|
-
$s = -1; return _r;
|
|
134207
|
-
/* } */ case 7:
|
|
134208
|
-
case 1:
|
|
134209
|
-
$s = -1; return "";
|
|
134210
|
-
/* */ } return; } if ($f === undefined) { $f = { $blk: Direction.prototype.String }; } $f._1 = _1; $f._r = _r; $f.d = d; $f.$s = $s; $f.$r = $r; return $f;
|
|
134211
|
-
};
|
|
134212
|
-
$ptrType(Direction).prototype.String = function() { return new Direction(this.$get()).String(); };
|
|
134213
|
-
Button.methods = [{prop: "IsWheel", name: "IsWheel", pkg: "", typ: $funcType([], [$Bool], false)}];
|
|
134214
|
-
Direction.methods = [{prop: "String", name: "String", pkg: "", typ: $funcType([], [$String], false)}];
|
|
134215
|
-
Event.init("", [{prop: "X", name: "X", embedded: false, exported: true, typ: $Float32, tag: ""}, {prop: "Y", name: "Y", embedded: false, exported: true, typ: $Float32, tag: ""}, {prop: "Button", name: "Button", embedded: false, exported: true, typ: Button, tag: ""}, {prop: "Modifiers", name: "Modifiers", embedded: false, exported: true, typ: key.Modifiers, tag: ""}, {prop: "Direction", name: "Direction", embedded: false, exported: true, typ: Direction, tag: ""}]);
|
|
134216
|
-
$init = function() {
|
|
134217
|
-
$pkg.$init = function() {};
|
|
134218
|
-
/* */ var $f, $c = false, $s = 0, $r; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
134219
|
-
$r = fmt.$init(); /* */ $s = 1; case 1: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
134220
|
-
$r = key.$init(); /* */ $s = 2; case 2: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
134221
|
-
/* */ } return; } if ($f === undefined) { $f = { $blk: $init }; } $f.$s = $s; $f.$r = $r; return $f;
|
|
134222
|
-
};
|
|
134223
|
-
$pkg.$init = $init;
|
|
134224
|
-
return $pkg;
|
|
134225
|
-
})();
|
|
134226
133958
|
$packages["image/color"] = (function() {
|
|
134227
133959
|
var $pkg = {}, $init, Color, RGBA, RGBA64, NRGBA, NRGBA64, Alpha, Alpha16, Gray, Gray16, Model, modelFunc, Palette, YCbCr, NYCbCrA, CMYK, ptrType, funcType, ModelFunc, rgbaModel, rgba64Model, nrgbaModel, nrgba64Model, alphaModel, alpha16Model, grayModel, gray16Model, sqDiff, RGBToYCbCr, yCbCrModel, nYCbCrAModel, RGBToCMYK, CMYKToRGB, cmykModel;
|
|
134228
133960
|
Color = $pkg.Color = $newType(8, $kindInterface, "color.Color", true, "image/color", true, null);
|
|
@@ -136034,112 +135766,394 @@ $packages["image"] = (function() {
|
|
|
136034
135766
|
p = this;
|
|
136035
135767
|
return p.Rect;
|
|
136036
135768
|
};
|
|
136037
|
-
YCbCr.prototype.Bounds = function() { return this.$val.Bounds(); };
|
|
136038
|
-
YCbCr.ptr.prototype.At = function(x$4, y) {
|
|
136039
|
-
var p, x$4, x$5, y;
|
|
136040
|
-
p = this;
|
|
136041
|
-
return (x$5 = p.YCbCrAt(x$4, y), new x$5.constructor.elem(x$5));
|
|
135769
|
+
YCbCr.prototype.Bounds = function() { return this.$val.Bounds(); };
|
|
135770
|
+
YCbCr.ptr.prototype.At = function(x$4, y) {
|
|
135771
|
+
var p, x$4, x$5, y;
|
|
135772
|
+
p = this;
|
|
135773
|
+
return (x$5 = p.YCbCrAt(x$4, y), new x$5.constructor.elem(x$5));
|
|
135774
|
+
};
|
|
135775
|
+
YCbCr.prototype.At = function(x$4, y) { return this.$val.At(x$4, y); };
|
|
135776
|
+
YCbCr.ptr.prototype.YCbCrAt = function(x$4, y) {
|
|
135777
|
+
var ci, p, x$4, x$5, x$6, x$7, y, yi;
|
|
135778
|
+
p = this;
|
|
135779
|
+
if (!(new Point.ptr(x$4, y).In($clone(p.Rect, Rectangle)))) {
|
|
135780
|
+
return new color.YCbCr.ptr(0, 0, 0);
|
|
135781
|
+
}
|
|
135782
|
+
yi = p.YOffset(x$4, y);
|
|
135783
|
+
ci = p.COffset(x$4, y);
|
|
135784
|
+
return new color.YCbCr.ptr((x$5 = p.Y, ((yi < 0 || yi >= x$5.$length) ? ($throwRuntimeError("index out of range"), undefined) : x$5.$array[x$5.$offset + yi])), (x$6 = p.Cb, ((ci < 0 || ci >= x$6.$length) ? ($throwRuntimeError("index out of range"), undefined) : x$6.$array[x$6.$offset + ci])), (x$7 = p.Cr, ((ci < 0 || ci >= x$7.$length) ? ($throwRuntimeError("index out of range"), undefined) : x$7.$array[x$7.$offset + ci])));
|
|
135785
|
+
};
|
|
135786
|
+
YCbCr.prototype.YCbCrAt = function(x$4, y) { return this.$val.YCbCrAt(x$4, y); };
|
|
135787
|
+
YCbCr.ptr.prototype.YOffset = function(x$4, y) {
|
|
135788
|
+
var p, x$4, y;
|
|
135789
|
+
p = this;
|
|
135790
|
+
return ($imul(((y - p.Rect.Min.Y >> 0)), p.YStride)) + ((x$4 - p.Rect.Min.X >> 0)) >> 0;
|
|
135791
|
+
};
|
|
135792
|
+
YCbCr.prototype.YOffset = function(x$4, y) { return this.$val.YOffset(x$4, y); };
|
|
135793
|
+
YCbCr.ptr.prototype.COffset = function(x$4, y) {
|
|
135794
|
+
var _1, _q, _q$1, _q$10, _q$11, _q$12, _q$13, _q$2, _q$3, _q$4, _q$5, _q$6, _q$7, _q$8, _q$9, p, x$4, y;
|
|
135795
|
+
p = this;
|
|
135796
|
+
_1 = p.SubsampleRatio;
|
|
135797
|
+
if (_1 === (1)) {
|
|
135798
|
+
return ($imul(((y - p.Rect.Min.Y >> 0)), p.CStride)) + (((_q = x$4 / 2, (_q === _q && _q !== 1/0 && _q !== -1/0) ? _q >> 0 : $throwRuntimeError("integer divide by zero")) - (_q$1 = p.Rect.Min.X / 2, (_q$1 === _q$1 && _q$1 !== 1/0 && _q$1 !== -1/0) ? _q$1 >> 0 : $throwRuntimeError("integer divide by zero")) >> 0)) >> 0;
|
|
135799
|
+
} else if (_1 === (2)) {
|
|
135800
|
+
return ($imul((((_q$2 = y / 2, (_q$2 === _q$2 && _q$2 !== 1/0 && _q$2 !== -1/0) ? _q$2 >> 0 : $throwRuntimeError("integer divide by zero")) - (_q$3 = p.Rect.Min.Y / 2, (_q$3 === _q$3 && _q$3 !== 1/0 && _q$3 !== -1/0) ? _q$3 >> 0 : $throwRuntimeError("integer divide by zero")) >> 0)), p.CStride)) + (((_q$4 = x$4 / 2, (_q$4 === _q$4 && _q$4 !== 1/0 && _q$4 !== -1/0) ? _q$4 >> 0 : $throwRuntimeError("integer divide by zero")) - (_q$5 = p.Rect.Min.X / 2, (_q$5 === _q$5 && _q$5 !== 1/0 && _q$5 !== -1/0) ? _q$5 >> 0 : $throwRuntimeError("integer divide by zero")) >> 0)) >> 0;
|
|
135801
|
+
} else if (_1 === (3)) {
|
|
135802
|
+
return ($imul((((_q$6 = y / 2, (_q$6 === _q$6 && _q$6 !== 1/0 && _q$6 !== -1/0) ? _q$6 >> 0 : $throwRuntimeError("integer divide by zero")) - (_q$7 = p.Rect.Min.Y / 2, (_q$7 === _q$7 && _q$7 !== 1/0 && _q$7 !== -1/0) ? _q$7 >> 0 : $throwRuntimeError("integer divide by zero")) >> 0)), p.CStride)) + ((x$4 - p.Rect.Min.X >> 0)) >> 0;
|
|
135803
|
+
} else if (_1 === (4)) {
|
|
135804
|
+
return ($imul(((y - p.Rect.Min.Y >> 0)), p.CStride)) + (((_q$8 = x$4 / 4, (_q$8 === _q$8 && _q$8 !== 1/0 && _q$8 !== -1/0) ? _q$8 >> 0 : $throwRuntimeError("integer divide by zero")) - (_q$9 = p.Rect.Min.X / 4, (_q$9 === _q$9 && _q$9 !== 1/0 && _q$9 !== -1/0) ? _q$9 >> 0 : $throwRuntimeError("integer divide by zero")) >> 0)) >> 0;
|
|
135805
|
+
} else if (_1 === (5)) {
|
|
135806
|
+
return ($imul((((_q$10 = y / 2, (_q$10 === _q$10 && _q$10 !== 1/0 && _q$10 !== -1/0) ? _q$10 >> 0 : $throwRuntimeError("integer divide by zero")) - (_q$11 = p.Rect.Min.Y / 2, (_q$11 === _q$11 && _q$11 !== 1/0 && _q$11 !== -1/0) ? _q$11 >> 0 : $throwRuntimeError("integer divide by zero")) >> 0)), p.CStride)) + (((_q$12 = x$4 / 4, (_q$12 === _q$12 && _q$12 !== 1/0 && _q$12 !== -1/0) ? _q$12 >> 0 : $throwRuntimeError("integer divide by zero")) - (_q$13 = p.Rect.Min.X / 4, (_q$13 === _q$13 && _q$13 !== 1/0 && _q$13 !== -1/0) ? _q$13 >> 0 : $throwRuntimeError("integer divide by zero")) >> 0)) >> 0;
|
|
135807
|
+
}
|
|
135808
|
+
return ($imul(((y - p.Rect.Min.Y >> 0)), p.CStride)) + ((x$4 - p.Rect.Min.X >> 0)) >> 0;
|
|
135809
|
+
};
|
|
135810
|
+
YCbCr.prototype.COffset = function(x$4, y) { return this.$val.COffset(x$4, y); };
|
|
135811
|
+
YCbCr.ptr.prototype.SubImage = function(r) {
|
|
135812
|
+
var ci, p, r, yi;
|
|
135813
|
+
p = this;
|
|
135814
|
+
Rectangle.copy(r, $clone(r, Rectangle).Intersect($clone(p.Rect, Rectangle)));
|
|
135815
|
+
if ($clone(r, Rectangle).Empty()) {
|
|
135816
|
+
return new YCbCr.ptr(sliceType$1.nil, sliceType$1.nil, sliceType$1.nil, 0, 0, p.SubsampleRatio, new Rectangle.ptr(new Point.ptr(0, 0), new Point.ptr(0, 0)));
|
|
135817
|
+
}
|
|
135818
|
+
yi = p.YOffset(r.Min.X, r.Min.Y);
|
|
135819
|
+
ci = p.COffset(r.Min.X, r.Min.Y);
|
|
135820
|
+
return new YCbCr.ptr($subslice(p.Y, yi), $subslice(p.Cb, ci), $subslice(p.Cr, ci), p.YStride, p.CStride, p.SubsampleRatio, $clone(r, Rectangle));
|
|
135821
|
+
};
|
|
135822
|
+
YCbCr.prototype.SubImage = function(r) { return this.$val.SubImage(r); };
|
|
135823
|
+
YCbCr.ptr.prototype.Opaque = function() {
|
|
135824
|
+
var p;
|
|
135825
|
+
p = this;
|
|
135826
|
+
return true;
|
|
135827
|
+
};
|
|
135828
|
+
YCbCr.prototype.Opaque = function() { return this.$val.Opaque(); };
|
|
135829
|
+
Point.methods = [{prop: "String", name: "String", pkg: "", typ: $funcType([], [$String], false)}, {prop: "Add", name: "Add", pkg: "", typ: $funcType([Point], [Point], false)}, {prop: "Sub", name: "Sub", pkg: "", typ: $funcType([Point], [Point], false)}, {prop: "Mul", name: "Mul", pkg: "", typ: $funcType([$Int], [Point], false)}, {prop: "Div", name: "Div", pkg: "", typ: $funcType([$Int], [Point], false)}, {prop: "In", name: "In", pkg: "", typ: $funcType([Rectangle], [$Bool], false)}, {prop: "Mod", name: "Mod", pkg: "", typ: $funcType([Rectangle], [Point], false)}, {prop: "Eq", name: "Eq", pkg: "", typ: $funcType([Point], [$Bool], false)}];
|
|
135830
|
+
Rectangle.methods = [{prop: "String", name: "String", pkg: "", typ: $funcType([], [$String], false)}, {prop: "Dx", name: "Dx", pkg: "", typ: $funcType([], [$Int], false)}, {prop: "Dy", name: "Dy", pkg: "", typ: $funcType([], [$Int], false)}, {prop: "Size", name: "Size", pkg: "", typ: $funcType([], [Point], false)}, {prop: "Add", name: "Add", pkg: "", typ: $funcType([Point], [Rectangle], false)}, {prop: "Sub", name: "Sub", pkg: "", typ: $funcType([Point], [Rectangle], false)}, {prop: "Inset", name: "Inset", pkg: "", typ: $funcType([$Int], [Rectangle], false)}, {prop: "Intersect", name: "Intersect", pkg: "", typ: $funcType([Rectangle], [Rectangle], false)}, {prop: "Union", name: "Union", pkg: "", typ: $funcType([Rectangle], [Rectangle], false)}, {prop: "Empty", name: "Empty", pkg: "", typ: $funcType([], [$Bool], false)}, {prop: "Eq", name: "Eq", pkg: "", typ: $funcType([Rectangle], [$Bool], false)}, {prop: "Overlaps", name: "Overlaps", pkg: "", typ: $funcType([Rectangle], [$Bool], false)}, {prop: "In", name: "In", pkg: "", typ: $funcType([Rectangle], [$Bool], false)}, {prop: "Canon", name: "Canon", pkg: "", typ: $funcType([], [Rectangle], false)}, {prop: "At", name: "At", pkg: "", typ: $funcType([$Int, $Int], [color.Color], false)}, {prop: "Bounds", name: "Bounds", pkg: "", typ: $funcType([], [Rectangle], false)}, {prop: "ColorModel", name: "ColorModel", pkg: "", typ: $funcType([], [color.Model], false)}];
|
|
135831
|
+
ptrType.methods = [{prop: "ColorModel", name: "ColorModel", pkg: "", typ: $funcType([], [color.Model], false)}, {prop: "Bounds", name: "Bounds", pkg: "", typ: $funcType([], [Rectangle], false)}, {prop: "At", name: "At", pkg: "", typ: $funcType([$Int, $Int], [color.Color], false)}, {prop: "RGBAAt", name: "RGBAAt", pkg: "", typ: $funcType([$Int, $Int], [color.RGBA], false)}, {prop: "PixOffset", name: "PixOffset", pkg: "", typ: $funcType([$Int, $Int], [$Int], false)}, {prop: "Set", name: "Set", pkg: "", typ: $funcType([$Int, $Int, color.Color], [], false)}, {prop: "SetRGBA", name: "SetRGBA", pkg: "", typ: $funcType([$Int, $Int, color.RGBA], [], false)}, {prop: "SubImage", name: "SubImage", pkg: "", typ: $funcType([Rectangle], [Image], false)}, {prop: "Opaque", name: "Opaque", pkg: "", typ: $funcType([], [$Bool], false)}];
|
|
135832
|
+
ptrType$2.methods = [{prop: "ColorModel", name: "ColorModel", pkg: "", typ: $funcType([], [color.Model], false)}, {prop: "Bounds", name: "Bounds", pkg: "", typ: $funcType([], [Rectangle], false)}, {prop: "At", name: "At", pkg: "", typ: $funcType([$Int, $Int], [color.Color], false)}, {prop: "NRGBAAt", name: "NRGBAAt", pkg: "", typ: $funcType([$Int, $Int], [color.NRGBA], false)}, {prop: "PixOffset", name: "PixOffset", pkg: "", typ: $funcType([$Int, $Int], [$Int], false)}, {prop: "Set", name: "Set", pkg: "", typ: $funcType([$Int, $Int, color.Color], [], false)}, {prop: "SetNRGBA", name: "SetNRGBA", pkg: "", typ: $funcType([$Int, $Int, color.NRGBA], [], false)}, {prop: "SubImage", name: "SubImage", pkg: "", typ: $funcType([Rectangle], [Image], false)}, {prop: "Opaque", name: "Opaque", pkg: "", typ: $funcType([], [$Bool], false)}];
|
|
135833
|
+
ptrType$4.methods = [{prop: "ColorModel", name: "ColorModel", pkg: "", typ: $funcType([], [color.Model], false)}, {prop: "Bounds", name: "Bounds", pkg: "", typ: $funcType([], [Rectangle], false)}, {prop: "At", name: "At", pkg: "", typ: $funcType([$Int, $Int], [color.Color], false)}, {prop: "AlphaAt", name: "AlphaAt", pkg: "", typ: $funcType([$Int, $Int], [color.Alpha], false)}, {prop: "PixOffset", name: "PixOffset", pkg: "", typ: $funcType([$Int, $Int], [$Int], false)}, {prop: "Set", name: "Set", pkg: "", typ: $funcType([$Int, $Int, color.Color], [], false)}, {prop: "SetAlpha", name: "SetAlpha", pkg: "", typ: $funcType([$Int, $Int, color.Alpha], [], false)}, {prop: "SubImage", name: "SubImage", pkg: "", typ: $funcType([Rectangle], [Image], false)}, {prop: "Opaque", name: "Opaque", pkg: "", typ: $funcType([], [$Bool], false)}];
|
|
135834
|
+
ptrType$6.methods = [{prop: "ColorModel", name: "ColorModel", pkg: "", typ: $funcType([], [color.Model], false)}, {prop: "Bounds", name: "Bounds", pkg: "", typ: $funcType([], [Rectangle], false)}, {prop: "At", name: "At", pkg: "", typ: $funcType([$Int, $Int], [color.Color], false)}, {prop: "GrayAt", name: "GrayAt", pkg: "", typ: $funcType([$Int, $Int], [color.Gray], false)}, {prop: "PixOffset", name: "PixOffset", pkg: "", typ: $funcType([$Int, $Int], [$Int], false)}, {prop: "Set", name: "Set", pkg: "", typ: $funcType([$Int, $Int, color.Color], [], false)}, {prop: "SetGray", name: "SetGray", pkg: "", typ: $funcType([$Int, $Int, color.Gray], [], false)}, {prop: "SubImage", name: "SubImage", pkg: "", typ: $funcType([Rectangle], [Image], false)}, {prop: "Opaque", name: "Opaque", pkg: "", typ: $funcType([], [$Bool], false)}];
|
|
135835
|
+
ptrType$8.methods = [{prop: "ColorModel", name: "ColorModel", pkg: "", typ: $funcType([], [color.Model], false)}, {prop: "Bounds", name: "Bounds", pkg: "", typ: $funcType([], [Rectangle], false)}, {prop: "At", name: "At", pkg: "", typ: $funcType([$Int, $Int], [color.Color], false)}, {prop: "CMYKAt", name: "CMYKAt", pkg: "", typ: $funcType([$Int, $Int], [color.CMYK], false)}, {prop: "PixOffset", name: "PixOffset", pkg: "", typ: $funcType([$Int, $Int], [$Int], false)}, {prop: "Set", name: "Set", pkg: "", typ: $funcType([$Int, $Int, color.Color], [], false)}, {prop: "SetCMYK", name: "SetCMYK", pkg: "", typ: $funcType([$Int, $Int, color.CMYK], [], false)}, {prop: "SubImage", name: "SubImage", pkg: "", typ: $funcType([Rectangle], [Image], false)}, {prop: "Opaque", name: "Opaque", pkg: "", typ: $funcType([], [$Bool], false)}];
|
|
135836
|
+
ptrType$9.methods = [{prop: "ColorModel", name: "ColorModel", pkg: "", typ: $funcType([], [color.Model], false)}, {prop: "Bounds", name: "Bounds", pkg: "", typ: $funcType([], [Rectangle], false)}, {prop: "At", name: "At", pkg: "", typ: $funcType([$Int, $Int], [color.Color], false)}, {prop: "PixOffset", name: "PixOffset", pkg: "", typ: $funcType([$Int, $Int], [$Int], false)}, {prop: "Set", name: "Set", pkg: "", typ: $funcType([$Int, $Int, color.Color], [], false)}, {prop: "ColorIndexAt", name: "ColorIndexAt", pkg: "", typ: $funcType([$Int, $Int], [$Uint8], false)}, {prop: "SetColorIndex", name: "SetColorIndex", pkg: "", typ: $funcType([$Int, $Int, $Uint8], [], false)}, {prop: "SubImage", name: "SubImage", pkg: "", typ: $funcType([Rectangle], [Image], false)}, {prop: "Opaque", name: "Opaque", pkg: "", typ: $funcType([], [$Bool], false)}];
|
|
135837
|
+
ptrType$10.methods = [{prop: "RGBA", name: "RGBA", pkg: "", typ: $funcType([], [$Uint32, $Uint32, $Uint32, $Uint32], false)}, {prop: "ColorModel", name: "ColorModel", pkg: "", typ: $funcType([], [color.Model], false)}, {prop: "Convert", name: "Convert", pkg: "", typ: $funcType([color.Color], [color.Color], false)}, {prop: "Bounds", name: "Bounds", pkg: "", typ: $funcType([], [Rectangle], false)}, {prop: "At", name: "At", pkg: "", typ: $funcType([$Int, $Int], [color.Color], false)}, {prop: "Opaque", name: "Opaque", pkg: "", typ: $funcType([], [$Bool], false)}];
|
|
135838
|
+
YCbCrSubsampleRatio.methods = [{prop: "String", name: "String", pkg: "", typ: $funcType([], [$String], false)}];
|
|
135839
|
+
ptrType$11.methods = [{prop: "ColorModel", name: "ColorModel", pkg: "", typ: $funcType([], [color.Model], false)}, {prop: "Bounds", name: "Bounds", pkg: "", typ: $funcType([], [Rectangle], false)}, {prop: "At", name: "At", pkg: "", typ: $funcType([$Int, $Int], [color.Color], false)}, {prop: "YCbCrAt", name: "YCbCrAt", pkg: "", typ: $funcType([$Int, $Int], [color.YCbCr], false)}, {prop: "YOffset", name: "YOffset", pkg: "", typ: $funcType([$Int, $Int], [$Int], false)}, {prop: "COffset", name: "COffset", pkg: "", typ: $funcType([$Int, $Int], [$Int], false)}, {prop: "SubImage", name: "SubImage", pkg: "", typ: $funcType([Rectangle], [Image], false)}, {prop: "Opaque", name: "Opaque", pkg: "", typ: $funcType([], [$Bool], false)}];
|
|
135840
|
+
Point.init("", [{prop: "X", name: "X", embedded: false, exported: true, typ: $Int, tag: ""}, {prop: "Y", name: "Y", embedded: false, exported: true, typ: $Int, tag: ""}]);
|
|
135841
|
+
Rectangle.init("", [{prop: "Min", name: "Min", embedded: false, exported: true, typ: Point, tag: ""}, {prop: "Max", name: "Max", embedded: false, exported: true, typ: Point, tag: ""}]);
|
|
135842
|
+
Image.init([{prop: "At", name: "At", pkg: "", typ: $funcType([$Int, $Int], [color.Color], false)}, {prop: "Bounds", name: "Bounds", pkg: "", typ: $funcType([], [Rectangle], false)}, {prop: "ColorModel", name: "ColorModel", pkg: "", typ: $funcType([], [color.Model], false)}]);
|
|
135843
|
+
RGBA.init("", [{prop: "Pix", name: "Pix", embedded: false, exported: true, typ: sliceType$1, tag: ""}, {prop: "Stride", name: "Stride", embedded: false, exported: true, typ: $Int, tag: ""}, {prop: "Rect", name: "Rect", embedded: false, exported: true, typ: Rectangle, tag: ""}]);
|
|
135844
|
+
NRGBA.init("", [{prop: "Pix", name: "Pix", embedded: false, exported: true, typ: sliceType$1, tag: ""}, {prop: "Stride", name: "Stride", embedded: false, exported: true, typ: $Int, tag: ""}, {prop: "Rect", name: "Rect", embedded: false, exported: true, typ: Rectangle, tag: ""}]);
|
|
135845
|
+
Alpha.init("", [{prop: "Pix", name: "Pix", embedded: false, exported: true, typ: sliceType$1, tag: ""}, {prop: "Stride", name: "Stride", embedded: false, exported: true, typ: $Int, tag: ""}, {prop: "Rect", name: "Rect", embedded: false, exported: true, typ: Rectangle, tag: ""}]);
|
|
135846
|
+
Gray.init("", [{prop: "Pix", name: "Pix", embedded: false, exported: true, typ: sliceType$1, tag: ""}, {prop: "Stride", name: "Stride", embedded: false, exported: true, typ: $Int, tag: ""}, {prop: "Rect", name: "Rect", embedded: false, exported: true, typ: Rectangle, tag: ""}]);
|
|
135847
|
+
CMYK.init("", [{prop: "Pix", name: "Pix", embedded: false, exported: true, typ: sliceType$1, tag: ""}, {prop: "Stride", name: "Stride", embedded: false, exported: true, typ: $Int, tag: ""}, {prop: "Rect", name: "Rect", embedded: false, exported: true, typ: Rectangle, tag: ""}]);
|
|
135848
|
+
Paletted.init("", [{prop: "Pix", name: "Pix", embedded: false, exported: true, typ: sliceType$1, tag: ""}, {prop: "Stride", name: "Stride", embedded: false, exported: true, typ: $Int, tag: ""}, {prop: "Rect", name: "Rect", embedded: false, exported: true, typ: Rectangle, tag: ""}, {prop: "Palette", name: "Palette", embedded: false, exported: true, typ: color.Palette, tag: ""}]);
|
|
135849
|
+
Uniform.init("", [{prop: "C", name: "C", embedded: false, exported: true, typ: color.Color, tag: ""}]);
|
|
135850
|
+
YCbCr.init("", [{prop: "Y", name: "Y", embedded: false, exported: true, typ: sliceType$1, tag: ""}, {prop: "Cb", name: "Cb", embedded: false, exported: true, typ: sliceType$1, tag: ""}, {prop: "Cr", name: "Cr", embedded: false, exported: true, typ: sliceType$1, tag: ""}, {prop: "YStride", name: "YStride", embedded: false, exported: true, typ: $Int, tag: ""}, {prop: "CStride", name: "CStride", embedded: false, exported: true, typ: $Int, tag: ""}, {prop: "SubsampleRatio", name: "SubsampleRatio", embedded: false, exported: true, typ: YCbCrSubsampleRatio, tag: ""}, {prop: "Rect", name: "Rect", embedded: false, exported: true, typ: Rectangle, tag: ""}]);
|
|
135851
|
+
$init = function() {
|
|
135852
|
+
$pkg.$init = function() {};
|
|
135853
|
+
/* */ var $f, $c = false, $s = 0, $r; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
135854
|
+
$r = bufio.$init(); /* */ $s = 1; case 1: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
135855
|
+
$r = errors.$init(); /* */ $s = 2; case 2: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
135856
|
+
$r = color.$init(); /* */ $s = 3; case 3: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
135857
|
+
$r = io.$init(); /* */ $s = 4; case 4: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
135858
|
+
$r = bits.$init(); /* */ $s = 5; case 5: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
135859
|
+
$r = strconv.$init(); /* */ $s = 6; case 6: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
135860
|
+
$r = sync.$init(); /* */ $s = 7; case 7: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
135861
|
+
$r = atomic.$init(); /* */ $s = 8; case 8: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
135862
|
+
$pkg.ZR = new Rectangle.ptr(new Point.ptr(0, 0), new Point.ptr(0, 0));
|
|
135863
|
+
$pkg.ErrFormat = errors.New("image: unknown format");
|
|
135864
|
+
$pkg.Black = NewUniform((x = color.Black, new x.constructor.elem(x)));
|
|
135865
|
+
$pkg.White = NewUniform((x$1 = color.White, new x$1.constructor.elem(x$1)));
|
|
135866
|
+
$pkg.Transparent = NewUniform((x$2 = color.Transparent, new x$2.constructor.elem(x$2)));
|
|
135867
|
+
$pkg.Opaque = NewUniform((x$3 = color.Opaque, new x$3.constructor.elem(x$3)));
|
|
135868
|
+
/* */ } return; } if ($f === undefined) { $f = { $blk: $init }; } $f.$s = $s; $f.$r = $r; return $f;
|
|
135869
|
+
};
|
|
135870
|
+
$pkg.$init = $init;
|
|
135871
|
+
return $pkg;
|
|
135872
|
+
})();
|
|
135873
|
+
$packages["github.com/supraio/client-daemon/pkg/clientscreen"] = (function() {
|
|
135874
|
+
var $pkg = {}, $init, image, js;
|
|
135875
|
+
image = $packages["image"];
|
|
135876
|
+
js = $packages["syscall/js"];
|
|
135877
|
+
$init = function() {
|
|
135878
|
+
$pkg.$init = function() {};
|
|
135879
|
+
/* */ var $f, $c = false, $s = 0, $r; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
135880
|
+
$r = image.$init(); /* */ $s = 1; case 1: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
135881
|
+
$r = js.$init(); /* */ $s = 2; case 2: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
135882
|
+
/* */ } return; } if ($f === undefined) { $f = { $blk: $init }; } $f.$s = $s; $f.$r = $r; return $f;
|
|
135883
|
+
};
|
|
135884
|
+
$pkg.$init = $init;
|
|
135885
|
+
return $pkg;
|
|
135886
|
+
})();
|
|
135887
|
+
$packages["github.com/supraio/client-daemon/pkg/clipboard"] = (function() {
|
|
135888
|
+
var $pkg = {}, $init, errs, time;
|
|
135889
|
+
errs = $packages["github.com/supraio/client-daemon/pkg/errs"];
|
|
135890
|
+
time = $packages["time"];
|
|
135891
|
+
$init = function() {
|
|
135892
|
+
$pkg.$init = function() {};
|
|
135893
|
+
/* */ var $f, $c = false, $s = 0, $r; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
135894
|
+
$r = errs.$init(); /* */ $s = 1; case 1: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
135895
|
+
$r = time.$init(); /* */ $s = 2; case 2: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
135896
|
+
/* */ } return; } if ($f === undefined) { $f = { $blk: $init }; } $f.$s = $s; $f.$r = $r; return $f;
|
|
135897
|
+
};
|
|
135898
|
+
$pkg.$init = $init;
|
|
135899
|
+
return $pkg;
|
|
135900
|
+
})();
|
|
135901
|
+
$packages["golang.org/x/mobile/event/focus"] = (function() {
|
|
135902
|
+
var $pkg = {}, $init, fmt, Event, sliceType;
|
|
135903
|
+
fmt = $packages["fmt"];
|
|
135904
|
+
Event = $pkg.Event = $newType(0, $kindStruct, "focus.Event", true, "golang.org/x/mobile/event/focus", true, function(In_) {
|
|
135905
|
+
this.$val = this;
|
|
135906
|
+
if (arguments.length === 0) {
|
|
135907
|
+
this.In = false;
|
|
135908
|
+
return;
|
|
135909
|
+
}
|
|
135910
|
+
this.In = In_;
|
|
135911
|
+
});
|
|
135912
|
+
sliceType = $sliceType($emptyInterface);
|
|
135913
|
+
Event.ptr.prototype.String = function() {
|
|
135914
|
+
var _r, e, str, $s, $r;
|
|
135915
|
+
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r = $f._r; e = $f.e; str = $f.str; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
135916
|
+
e = this;
|
|
135917
|
+
str = "FocusedIn";
|
|
135918
|
+
if (!e.In) {
|
|
135919
|
+
str = "FocusedOut";
|
|
135920
|
+
}
|
|
135921
|
+
_r = fmt.Sprintf("focus.Event{(%s)}", new sliceType([new $String(str)])); /* */ $s = 1; case 1: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
135922
|
+
$s = -1; return _r;
|
|
135923
|
+
/* */ } return; } if ($f === undefined) { $f = { $blk: Event.ptr.prototype.String }; } $f._r = _r; $f.e = e; $f.str = str; $f.$s = $s; $f.$r = $r; return $f;
|
|
135924
|
+
};
|
|
135925
|
+
Event.prototype.String = function() { return this.$val.String(); };
|
|
135926
|
+
Event.methods = [{prop: "String", name: "String", pkg: "", typ: $funcType([], [$String], false)}];
|
|
135927
|
+
Event.init("", [{prop: "In", name: "In", embedded: false, exported: true, typ: $Bool, tag: ""}]);
|
|
135928
|
+
$init = function() {
|
|
135929
|
+
$pkg.$init = function() {};
|
|
135930
|
+
/* */ var $f, $c = false, $s = 0, $r; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
135931
|
+
$r = fmt.$init(); /* */ $s = 1; case 1: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
135932
|
+
/* */ } return; } if ($f === undefined) { $f = { $blk: $init }; } $f.$s = $s; $f.$r = $r; return $f;
|
|
135933
|
+
};
|
|
135934
|
+
$pkg.$init = $init;
|
|
135935
|
+
return $pkg;
|
|
135936
|
+
})();
|
|
135937
|
+
$packages["golang.org/x/mobile/event/key"] = (function() {
|
|
135938
|
+
var $pkg = {}, $init, fmt, strings, Event, Direction, Modifiers, Code, structType, sliceType, sliceType$1, _Code_index_1, _Code_index_2, _Code_index_3, _Code_index_4, _Code_index_6, _Code_index_7, mods;
|
|
135939
|
+
fmt = $packages["fmt"];
|
|
135940
|
+
strings = $packages["strings"];
|
|
135941
|
+
Event = $pkg.Event = $newType(0, $kindStruct, "key.Event", true, "golang.org/x/mobile/event/key", true, function(Rune_, Code_, Modifiers_, Direction_) {
|
|
135942
|
+
this.$val = this;
|
|
135943
|
+
if (arguments.length === 0) {
|
|
135944
|
+
this.Rune = 0;
|
|
135945
|
+
this.Code = 0;
|
|
135946
|
+
this.Modifiers = 0;
|
|
135947
|
+
this.Direction = 0;
|
|
135948
|
+
return;
|
|
135949
|
+
}
|
|
135950
|
+
this.Rune = Rune_;
|
|
135951
|
+
this.Code = Code_;
|
|
135952
|
+
this.Modifiers = Modifiers_;
|
|
135953
|
+
this.Direction = Direction_;
|
|
135954
|
+
});
|
|
135955
|
+
Direction = $pkg.Direction = $newType(1, $kindUint8, "key.Direction", true, "golang.org/x/mobile/event/key", true, null);
|
|
135956
|
+
Modifiers = $pkg.Modifiers = $newType(4, $kindUint32, "key.Modifiers", true, "golang.org/x/mobile/event/key", true, null);
|
|
135957
|
+
Code = $pkg.Code = $newType(4, $kindUint32, "key.Code", true, "golang.org/x/mobile/event/key", true, null);
|
|
135958
|
+
structType = $structType("golang.org/x/mobile/event/key", [{prop: "m", name: "m", embedded: false, exported: false, typ: Modifiers, tag: ""}, {prop: "s", name: "s", embedded: false, exported: false, typ: $String, tag: ""}]);
|
|
135959
|
+
sliceType = $sliceType($emptyInterface);
|
|
135960
|
+
sliceType$1 = $sliceType($String);
|
|
135961
|
+
Code.prototype.String = function() {
|
|
135962
|
+
var _r, i, x, x$1, x$2, x$3, x$4, x$5, $s, $r;
|
|
135963
|
+
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r = $f._r; i = $f.i; x = $f.x; x$1 = $f.x$1; x$2 = $f.x$2; x$3 = $f.x$3; x$4 = $f.x$4; x$5 = $f.x$5; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
135964
|
+
i = this.$val;
|
|
135965
|
+
/* */ if ((i === 0)) { $s = 2; continue; }
|
|
135966
|
+
/* */ if (4 <= i && i <= 49) { $s = 3; continue; }
|
|
135967
|
+
/* */ if (51 <= i && i <= 69) { $s = 4; continue; }
|
|
135968
|
+
/* */ if (72 <= i && i <= 99) { $s = 5; continue; }
|
|
135969
|
+
/* */ if (103 <= i && i <= 115) { $s = 6; continue; }
|
|
135970
|
+
/* */ if ((i === 117)) { $s = 7; continue; }
|
|
135971
|
+
/* */ if (127 <= i && i <= 129) { $s = 8; continue; }
|
|
135972
|
+
/* */ if (224 <= i && i <= 231) { $s = 9; continue; }
|
|
135973
|
+
/* */ if ((i === 65536)) { $s = 10; continue; }
|
|
135974
|
+
/* */ $s = 11; continue;
|
|
135975
|
+
/* if ((i === 0)) { */ case 2:
|
|
135976
|
+
$s = -1; return "CodeUnknown";
|
|
135977
|
+
/* } else if (4 <= i && i <= 49) { */ case 3:
|
|
135978
|
+
i = i - (4) >>> 0;
|
|
135979
|
+
$s = -1; return $substring("CodeACodeBCodeCCodeDCodeECodeFCodeGCodeHCodeICodeJCodeKCodeLCodeMCodeNCodeOCodePCodeQCodeRCodeSCodeTCodeUCodeVCodeWCodeXCodeYCodeZCode1Code2Code3Code4Code5Code6Code7Code8Code9Code0CodeReturnEnterCodeEscapeCodeDeleteBackspaceCodeTabCodeSpacebarCodeHyphenMinusCodeEqualSignCodeLeftSquareBracketCodeRightSquareBracketCodeBackslash", ((i < 0 || i >= _Code_index_1.length) ? ($throwRuntimeError("index out of range"), undefined) : _Code_index_1[i]), (x = i + 1 >>> 0, ((x < 0 || x >= _Code_index_1.length) ? ($throwRuntimeError("index out of range"), undefined) : _Code_index_1[x])));
|
|
135980
|
+
/* } else if (51 <= i && i <= 69) { */ case 4:
|
|
135981
|
+
i = i - (51) >>> 0;
|
|
135982
|
+
$s = -1; return $substring("CodeSemicolonCodeApostropheCodeGraveAccentCodeCommaCodeFullStopCodeSlashCodeCapsLockCodeF1CodeF2CodeF3CodeF4CodeF5CodeF6CodeF7CodeF8CodeF9CodeF10CodeF11CodeF12", ((i < 0 || i >= _Code_index_2.length) ? ($throwRuntimeError("index out of range"), undefined) : _Code_index_2[i]), (x$1 = i + 1 >>> 0, ((x$1 < 0 || x$1 >= _Code_index_2.length) ? ($throwRuntimeError("index out of range"), undefined) : _Code_index_2[x$1])));
|
|
135983
|
+
/* } else if (72 <= i && i <= 99) { */ case 5:
|
|
135984
|
+
i = i - (72) >>> 0;
|
|
135985
|
+
$s = -1; return $substring("CodePauseCodeInsertCodeHomeCodePageUpCodeDeleteForwardCodeEndCodePageDownCodeRightArrowCodeLeftArrowCodeDownArrowCodeUpArrowCodeKeypadNumLockCodeKeypadSlashCodeKeypadAsteriskCodeKeypadHyphenMinusCodeKeypadPlusSignCodeKeypadEnterCodeKeypad1CodeKeypad2CodeKeypad3CodeKeypad4CodeKeypad5CodeKeypad6CodeKeypad7CodeKeypad8CodeKeypad9CodeKeypad0CodeKeypadFullStop", ((i < 0 || i >= _Code_index_3.length) ? ($throwRuntimeError("index out of range"), undefined) : _Code_index_3[i]), (x$2 = i + 1 >>> 0, ((x$2 < 0 || x$2 >= _Code_index_3.length) ? ($throwRuntimeError("index out of range"), undefined) : _Code_index_3[x$2])));
|
|
135986
|
+
/* } else if (103 <= i && i <= 115) { */ case 6:
|
|
135987
|
+
i = i - (103) >>> 0;
|
|
135988
|
+
$s = -1; return $substring("CodeKeypadEqualSignCodeF13CodeF14CodeF15CodeF16CodeF17CodeF18CodeF19CodeF20CodeF21CodeF22CodeF23CodeF24", ((i < 0 || i >= _Code_index_4.length) ? ($throwRuntimeError("index out of range"), undefined) : _Code_index_4[i]), (x$3 = i + 1 >>> 0, ((x$3 < 0 || x$3 >= _Code_index_4.length) ? ($throwRuntimeError("index out of range"), undefined) : _Code_index_4[x$3])));
|
|
135989
|
+
/* } else if ((i === 117)) { */ case 7:
|
|
135990
|
+
$s = -1; return "CodeHelp";
|
|
135991
|
+
/* } else if (127 <= i && i <= 129) { */ case 8:
|
|
135992
|
+
i = i - (127) >>> 0;
|
|
135993
|
+
$s = -1; return $substring("CodeMuteCodeVolumeUpCodeVolumeDown", ((i < 0 || i >= _Code_index_6.length) ? ($throwRuntimeError("index out of range"), undefined) : _Code_index_6[i]), (x$4 = i + 1 >>> 0, ((x$4 < 0 || x$4 >= _Code_index_6.length) ? ($throwRuntimeError("index out of range"), undefined) : _Code_index_6[x$4])));
|
|
135994
|
+
/* } else if (224 <= i && i <= 231) { */ case 9:
|
|
135995
|
+
i = i - (224) >>> 0;
|
|
135996
|
+
$s = -1; return $substring("CodeLeftControlCodeLeftShiftCodeLeftAltCodeLeftGUICodeRightControlCodeRightShiftCodeRightAltCodeRightGUI", ((i < 0 || i >= _Code_index_7.length) ? ($throwRuntimeError("index out of range"), undefined) : _Code_index_7[i]), (x$5 = i + 1 >>> 0, ((x$5 < 0 || x$5 >= _Code_index_7.length) ? ($throwRuntimeError("index out of range"), undefined) : _Code_index_7[x$5])));
|
|
135997
|
+
/* } else if ((i === 65536)) { */ case 10:
|
|
135998
|
+
$s = -1; return "CodeCompose";
|
|
135999
|
+
/* } else { */ case 11:
|
|
136000
|
+
_r = fmt.Sprintf("Code(%d)", new sliceType([new Code(i)])); /* */ $s = 13; case 13: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
136001
|
+
$s = -1; return _r;
|
|
136002
|
+
/* } */ case 12:
|
|
136003
|
+
case 1:
|
|
136004
|
+
$s = -1; return "";
|
|
136005
|
+
/* */ } return; } if ($f === undefined) { $f = { $blk: Code.prototype.String }; } $f._r = _r; $f.i = i; $f.x = x; $f.x$1 = x$1; $f.x$2 = x$2; $f.x$3 = x$3; $f.x$4 = x$4; $f.x$5 = x$5; $f.$s = $s; $f.$r = $r; return $f;
|
|
136006
|
+
};
|
|
136007
|
+
$ptrType(Code).prototype.String = function() { return new Code(this.$get()).String(); };
|
|
136008
|
+
Event.ptr.prototype.String = function() {
|
|
136009
|
+
var _r, _r$1, e, $s, $r;
|
|
136010
|
+
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r = $f._r; _r$1 = $f._r$1; e = $f.e; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
136011
|
+
e = this;
|
|
136012
|
+
/* */ if (e.Rune >= 0) { $s = 1; continue; }
|
|
136013
|
+
/* */ $s = 2; continue;
|
|
136014
|
+
/* if (e.Rune >= 0) { */ case 1:
|
|
136015
|
+
_r = fmt.Sprintf("key.Event{%q (%v), %v, %v}", new sliceType([new $Int32(e.Rune), new Code(e.Code), new Modifiers(e.Modifiers), new Direction(e.Direction)])); /* */ $s = 3; case 3: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
136016
|
+
$s = -1; return _r;
|
|
136017
|
+
/* } */ case 2:
|
|
136018
|
+
_r$1 = fmt.Sprintf("key.Event{(%v), %v, %v}", new sliceType([new Code(e.Code), new Modifiers(e.Modifiers), new Direction(e.Direction)])); /* */ $s = 4; case 4: if($c) { $c = false; _r$1 = _r$1.$blk(); } if (_r$1 && _r$1.$blk !== undefined) { break s; }
|
|
136019
|
+
$s = -1; return _r$1;
|
|
136020
|
+
/* */ } return; } if ($f === undefined) { $f = { $blk: Event.ptr.prototype.String }; } $f._r = _r; $f._r$1 = _r$1; $f.e = e; $f.$s = $s; $f.$r = $r; return $f;
|
|
136042
136021
|
};
|
|
136043
|
-
|
|
136044
|
-
|
|
136045
|
-
var
|
|
136046
|
-
|
|
136047
|
-
|
|
136048
|
-
|
|
136022
|
+
Event.prototype.String = function() { return this.$val.String(); };
|
|
136023
|
+
Modifiers.prototype.String = function() {
|
|
136024
|
+
var _i, _ref, m, match, mod;
|
|
136025
|
+
m = this.$val;
|
|
136026
|
+
match = sliceType$1.nil;
|
|
136027
|
+
_ref = mods;
|
|
136028
|
+
_i = 0;
|
|
136029
|
+
while (true) {
|
|
136030
|
+
if (!(_i < 4)) { break; }
|
|
136031
|
+
mod = $clone(((_i < 0 || _i >= _ref.length) ? ($throwRuntimeError("index out of range"), undefined) : _ref[_i]), structType);
|
|
136032
|
+
if (!((((mod.m & m) >>> 0) === 0))) {
|
|
136033
|
+
match = $append(match, mod.s);
|
|
136034
|
+
}
|
|
136035
|
+
_i++;
|
|
136049
136036
|
}
|
|
136050
|
-
|
|
136051
|
-
ci = p.COffset(x$4, y);
|
|
136052
|
-
return new color.YCbCr.ptr((x$5 = p.Y, ((yi < 0 || yi >= x$5.$length) ? ($throwRuntimeError("index out of range"), undefined) : x$5.$array[x$5.$offset + yi])), (x$6 = p.Cb, ((ci < 0 || ci >= x$6.$length) ? ($throwRuntimeError("index out of range"), undefined) : x$6.$array[x$6.$offset + ci])), (x$7 = p.Cr, ((ci < 0 || ci >= x$7.$length) ? ($throwRuntimeError("index out of range"), undefined) : x$7.$array[x$7.$offset + ci])));
|
|
136037
|
+
return "key.Modifiers(" + strings.Join(match, "|") + ")";
|
|
136053
136038
|
};
|
|
136054
|
-
|
|
136055
|
-
|
|
136056
|
-
var
|
|
136057
|
-
|
|
136058
|
-
|
|
136039
|
+
$ptrType(Modifiers).prototype.String = function() { return new Modifiers(this.$get()).String(); };
|
|
136040
|
+
Direction.prototype.String = function() {
|
|
136041
|
+
var _1, _r, d, $s, $r;
|
|
136042
|
+
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _1 = $f._1; _r = $f._r; d = $f.d; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
136043
|
+
d = this.$val;
|
|
136044
|
+
_1 = d;
|
|
136045
|
+
/* */ if (_1 === (0)) { $s = 2; continue; }
|
|
136046
|
+
/* */ if (_1 === (1)) { $s = 3; continue; }
|
|
136047
|
+
/* */ if (_1 === (2)) { $s = 4; continue; }
|
|
136048
|
+
/* */ $s = 5; continue;
|
|
136049
|
+
/* if (_1 === (0)) { */ case 2:
|
|
136050
|
+
$s = -1; return "None";
|
|
136051
|
+
/* } else if (_1 === (1)) { */ case 3:
|
|
136052
|
+
$s = -1; return "Press";
|
|
136053
|
+
/* } else if (_1 === (2)) { */ case 4:
|
|
136054
|
+
$s = -1; return "Release";
|
|
136055
|
+
/* } else { */ case 5:
|
|
136056
|
+
_r = fmt.Sprintf("key.Direction(%d)", new sliceType([new Direction(d)])); /* */ $s = 7; case 7: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
136057
|
+
$s = -1; return _r;
|
|
136058
|
+
/* } */ case 6:
|
|
136059
|
+
case 1:
|
|
136060
|
+
$s = -1; return "";
|
|
136061
|
+
/* */ } return; } if ($f === undefined) { $f = { $blk: Direction.prototype.String }; } $f._1 = _1; $f._r = _r; $f.d = d; $f.$s = $s; $f.$r = $r; return $f;
|
|
136059
136062
|
};
|
|
136060
|
-
|
|
136061
|
-
|
|
136062
|
-
|
|
136063
|
-
|
|
136064
|
-
|
|
136065
|
-
|
|
136066
|
-
|
|
136067
|
-
|
|
136068
|
-
|
|
136069
|
-
|
|
136070
|
-
|
|
136071
|
-
|
|
136072
|
-
|
|
136073
|
-
|
|
136074
|
-
|
|
136075
|
-
|
|
136076
|
-
|
|
136063
|
+
$ptrType(Direction).prototype.String = function() { return new Direction(this.$get()).String(); };
|
|
136064
|
+
Event.methods = [{prop: "String", name: "String", pkg: "", typ: $funcType([], [$String], false)}];
|
|
136065
|
+
Direction.methods = [{prop: "String", name: "String", pkg: "", typ: $funcType([], [$String], false)}];
|
|
136066
|
+
Modifiers.methods = [{prop: "String", name: "String", pkg: "", typ: $funcType([], [$String], false)}];
|
|
136067
|
+
Code.methods = [{prop: "String", name: "String", pkg: "", typ: $funcType([], [$String], false)}];
|
|
136068
|
+
Event.init("", [{prop: "Rune", name: "Rune", embedded: false, exported: true, typ: $Int32, tag: ""}, {prop: "Code", name: "Code", embedded: false, exported: true, typ: Code, tag: ""}, {prop: "Modifiers", name: "Modifiers", embedded: false, exported: true, typ: Modifiers, tag: ""}, {prop: "Direction", name: "Direction", embedded: false, exported: true, typ: Direction, tag: ""}]);
|
|
136069
|
+
$init = function() {
|
|
136070
|
+
$pkg.$init = function() {};
|
|
136071
|
+
/* */ var $f, $c = false, $s = 0, $r; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
136072
|
+
$r = fmt.$init(); /* */ $s = 1; case 1: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
136073
|
+
$r = strings.$init(); /* */ $s = 2; case 2: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
136074
|
+
_Code_index_1 = $toNativeArray($kindUint16, [0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100, 105, 110, 115, 120, 125, 130, 135, 140, 145, 150, 155, 160, 165, 170, 175, 180, 195, 205, 224, 231, 243, 258, 271, 292, 314, 327]);
|
|
136075
|
+
_Code_index_2 = $toNativeArray($kindUint8, [0, 13, 27, 42, 51, 63, 72, 84, 90, 96, 102, 108, 114, 120, 126, 132, 138, 145, 152, 159]);
|
|
136076
|
+
_Code_index_3 = $toNativeArray($kindUint16, [0, 9, 19, 27, 37, 54, 61, 73, 87, 100, 113, 124, 141, 156, 174, 195, 213, 228, 239, 250, 261, 272, 283, 294, 305, 316, 327, 338, 356]);
|
|
136077
|
+
_Code_index_4 = $toNativeArray($kindUint8, [0, 19, 26, 33, 40, 47, 54, 61, 68, 75, 82, 89, 96, 103]);
|
|
136078
|
+
_Code_index_6 = $toNativeArray($kindUint8, [0, 8, 20, 34]);
|
|
136079
|
+
_Code_index_7 = $toNativeArray($kindUint8, [0, 15, 28, 39, 50, 66, 80, 92, 104]);
|
|
136080
|
+
mods = $toNativeArray($kindStruct, [new structType.ptr(1, "Shift"), new structType.ptr(2, "Control"), new structType.ptr(4, "Alt"), new structType.ptr(8, "Meta")]);
|
|
136081
|
+
/* */ } return; } if ($f === undefined) { $f = { $blk: $init }; } $f.$s = $s; $f.$r = $r; return $f;
|
|
136077
136082
|
};
|
|
136078
|
-
|
|
136079
|
-
|
|
136080
|
-
|
|
136081
|
-
|
|
136082
|
-
|
|
136083
|
-
|
|
136084
|
-
|
|
136083
|
+
$pkg.$init = $init;
|
|
136084
|
+
return $pkg;
|
|
136085
|
+
})();
|
|
136086
|
+
$packages["golang.org/x/mobile/event/mouse"] = (function() {
|
|
136087
|
+
var $pkg = {}, $init, fmt, key, Event, Button, Direction, sliceType;
|
|
136088
|
+
fmt = $packages["fmt"];
|
|
136089
|
+
key = $packages["golang.org/x/mobile/event/key"];
|
|
136090
|
+
Event = $pkg.Event = $newType(0, $kindStruct, "mouse.Event", true, "golang.org/x/mobile/event/mouse", true, function(X_, Y_, Button_, Modifiers_, Direction_) {
|
|
136091
|
+
this.$val = this;
|
|
136092
|
+
if (arguments.length === 0) {
|
|
136093
|
+
this.X = 0;
|
|
136094
|
+
this.Y = 0;
|
|
136095
|
+
this.Button = 0;
|
|
136096
|
+
this.Modifiers = 0;
|
|
136097
|
+
this.Direction = 0;
|
|
136098
|
+
return;
|
|
136085
136099
|
}
|
|
136086
|
-
|
|
136087
|
-
|
|
136088
|
-
|
|
136100
|
+
this.X = X_;
|
|
136101
|
+
this.Y = Y_;
|
|
136102
|
+
this.Button = Button_;
|
|
136103
|
+
this.Modifiers = Modifiers_;
|
|
136104
|
+
this.Direction = Direction_;
|
|
136105
|
+
});
|
|
136106
|
+
Button = $pkg.Button = $newType(4, $kindInt32, "mouse.Button", true, "golang.org/x/mobile/event/mouse", true, null);
|
|
136107
|
+
Direction = $pkg.Direction = $newType(1, $kindUint8, "mouse.Direction", true, "golang.org/x/mobile/event/mouse", true, null);
|
|
136108
|
+
sliceType = $sliceType($emptyInterface);
|
|
136109
|
+
Button.prototype.IsWheel = function() {
|
|
136110
|
+
var b;
|
|
136111
|
+
b = this.$val;
|
|
136112
|
+
return b < 0;
|
|
136089
136113
|
};
|
|
136090
|
-
|
|
136091
|
-
|
|
136092
|
-
var
|
|
136093
|
-
|
|
136094
|
-
|
|
136114
|
+
$ptrType(Button).prototype.IsWheel = function() { return new Button(this.$get()).IsWheel(); };
|
|
136115
|
+
Direction.prototype.String = function() {
|
|
136116
|
+
var _1, _r, d, $s, $r;
|
|
136117
|
+
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _1 = $f._1; _r = $f._r; d = $f.d; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
136118
|
+
d = this.$val;
|
|
136119
|
+
_1 = d;
|
|
136120
|
+
/* */ if (_1 === (0)) { $s = 2; continue; }
|
|
136121
|
+
/* */ if (_1 === (1)) { $s = 3; continue; }
|
|
136122
|
+
/* */ if (_1 === (2)) { $s = 4; continue; }
|
|
136123
|
+
/* */ if (_1 === (3)) { $s = 5; continue; }
|
|
136124
|
+
/* */ $s = 6; continue;
|
|
136125
|
+
/* if (_1 === (0)) { */ case 2:
|
|
136126
|
+
$s = -1; return "None";
|
|
136127
|
+
/* } else if (_1 === (1)) { */ case 3:
|
|
136128
|
+
$s = -1; return "Press";
|
|
136129
|
+
/* } else if (_1 === (2)) { */ case 4:
|
|
136130
|
+
$s = -1; return "Release";
|
|
136131
|
+
/* } else if (_1 === (3)) { */ case 5:
|
|
136132
|
+
$s = -1; return "Step";
|
|
136133
|
+
/* } else { */ case 6:
|
|
136134
|
+
_r = fmt.Sprintf("mouse.Direction(%d)", new sliceType([new Direction(d)])); /* */ $s = 8; case 8: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
136135
|
+
$s = -1; return _r;
|
|
136136
|
+
/* } */ case 7:
|
|
136137
|
+
case 1:
|
|
136138
|
+
$s = -1; return "";
|
|
136139
|
+
/* */ } return; } if ($f === undefined) { $f = { $blk: Direction.prototype.String }; } $f._1 = _1; $f._r = _r; $f.d = d; $f.$s = $s; $f.$r = $r; return $f;
|
|
136095
136140
|
};
|
|
136096
|
-
|
|
136097
|
-
|
|
136098
|
-
|
|
136099
|
-
|
|
136100
|
-
ptrType$2.methods = [{prop: "ColorModel", name: "ColorModel", pkg: "", typ: $funcType([], [color.Model], false)}, {prop: "Bounds", name: "Bounds", pkg: "", typ: $funcType([], [Rectangle], false)}, {prop: "At", name: "At", pkg: "", typ: $funcType([$Int, $Int], [color.Color], false)}, {prop: "NRGBAAt", name: "NRGBAAt", pkg: "", typ: $funcType([$Int, $Int], [color.NRGBA], false)}, {prop: "PixOffset", name: "PixOffset", pkg: "", typ: $funcType([$Int, $Int], [$Int], false)}, {prop: "Set", name: "Set", pkg: "", typ: $funcType([$Int, $Int, color.Color], [], false)}, {prop: "SetNRGBA", name: "SetNRGBA", pkg: "", typ: $funcType([$Int, $Int, color.NRGBA], [], false)}, {prop: "SubImage", name: "SubImage", pkg: "", typ: $funcType([Rectangle], [Image], false)}, {prop: "Opaque", name: "Opaque", pkg: "", typ: $funcType([], [$Bool], false)}];
|
|
136101
|
-
ptrType$4.methods = [{prop: "ColorModel", name: "ColorModel", pkg: "", typ: $funcType([], [color.Model], false)}, {prop: "Bounds", name: "Bounds", pkg: "", typ: $funcType([], [Rectangle], false)}, {prop: "At", name: "At", pkg: "", typ: $funcType([$Int, $Int], [color.Color], false)}, {prop: "AlphaAt", name: "AlphaAt", pkg: "", typ: $funcType([$Int, $Int], [color.Alpha], false)}, {prop: "PixOffset", name: "PixOffset", pkg: "", typ: $funcType([$Int, $Int], [$Int], false)}, {prop: "Set", name: "Set", pkg: "", typ: $funcType([$Int, $Int, color.Color], [], false)}, {prop: "SetAlpha", name: "SetAlpha", pkg: "", typ: $funcType([$Int, $Int, color.Alpha], [], false)}, {prop: "SubImage", name: "SubImage", pkg: "", typ: $funcType([Rectangle], [Image], false)}, {prop: "Opaque", name: "Opaque", pkg: "", typ: $funcType([], [$Bool], false)}];
|
|
136102
|
-
ptrType$6.methods = [{prop: "ColorModel", name: "ColorModel", pkg: "", typ: $funcType([], [color.Model], false)}, {prop: "Bounds", name: "Bounds", pkg: "", typ: $funcType([], [Rectangle], false)}, {prop: "At", name: "At", pkg: "", typ: $funcType([$Int, $Int], [color.Color], false)}, {prop: "GrayAt", name: "GrayAt", pkg: "", typ: $funcType([$Int, $Int], [color.Gray], false)}, {prop: "PixOffset", name: "PixOffset", pkg: "", typ: $funcType([$Int, $Int], [$Int], false)}, {prop: "Set", name: "Set", pkg: "", typ: $funcType([$Int, $Int, color.Color], [], false)}, {prop: "SetGray", name: "SetGray", pkg: "", typ: $funcType([$Int, $Int, color.Gray], [], false)}, {prop: "SubImage", name: "SubImage", pkg: "", typ: $funcType([Rectangle], [Image], false)}, {prop: "Opaque", name: "Opaque", pkg: "", typ: $funcType([], [$Bool], false)}];
|
|
136103
|
-
ptrType$8.methods = [{prop: "ColorModel", name: "ColorModel", pkg: "", typ: $funcType([], [color.Model], false)}, {prop: "Bounds", name: "Bounds", pkg: "", typ: $funcType([], [Rectangle], false)}, {prop: "At", name: "At", pkg: "", typ: $funcType([$Int, $Int], [color.Color], false)}, {prop: "CMYKAt", name: "CMYKAt", pkg: "", typ: $funcType([$Int, $Int], [color.CMYK], false)}, {prop: "PixOffset", name: "PixOffset", pkg: "", typ: $funcType([$Int, $Int], [$Int], false)}, {prop: "Set", name: "Set", pkg: "", typ: $funcType([$Int, $Int, color.Color], [], false)}, {prop: "SetCMYK", name: "SetCMYK", pkg: "", typ: $funcType([$Int, $Int, color.CMYK], [], false)}, {prop: "SubImage", name: "SubImage", pkg: "", typ: $funcType([Rectangle], [Image], false)}, {prop: "Opaque", name: "Opaque", pkg: "", typ: $funcType([], [$Bool], false)}];
|
|
136104
|
-
ptrType$9.methods = [{prop: "ColorModel", name: "ColorModel", pkg: "", typ: $funcType([], [color.Model], false)}, {prop: "Bounds", name: "Bounds", pkg: "", typ: $funcType([], [Rectangle], false)}, {prop: "At", name: "At", pkg: "", typ: $funcType([$Int, $Int], [color.Color], false)}, {prop: "PixOffset", name: "PixOffset", pkg: "", typ: $funcType([$Int, $Int], [$Int], false)}, {prop: "Set", name: "Set", pkg: "", typ: $funcType([$Int, $Int, color.Color], [], false)}, {prop: "ColorIndexAt", name: "ColorIndexAt", pkg: "", typ: $funcType([$Int, $Int], [$Uint8], false)}, {prop: "SetColorIndex", name: "SetColorIndex", pkg: "", typ: $funcType([$Int, $Int, $Uint8], [], false)}, {prop: "SubImage", name: "SubImage", pkg: "", typ: $funcType([Rectangle], [Image], false)}, {prop: "Opaque", name: "Opaque", pkg: "", typ: $funcType([], [$Bool], false)}];
|
|
136105
|
-
ptrType$10.methods = [{prop: "RGBA", name: "RGBA", pkg: "", typ: $funcType([], [$Uint32, $Uint32, $Uint32, $Uint32], false)}, {prop: "ColorModel", name: "ColorModel", pkg: "", typ: $funcType([], [color.Model], false)}, {prop: "Convert", name: "Convert", pkg: "", typ: $funcType([color.Color], [color.Color], false)}, {prop: "Bounds", name: "Bounds", pkg: "", typ: $funcType([], [Rectangle], false)}, {prop: "At", name: "At", pkg: "", typ: $funcType([$Int, $Int], [color.Color], false)}, {prop: "Opaque", name: "Opaque", pkg: "", typ: $funcType([], [$Bool], false)}];
|
|
136106
|
-
YCbCrSubsampleRatio.methods = [{prop: "String", name: "String", pkg: "", typ: $funcType([], [$String], false)}];
|
|
136107
|
-
ptrType$11.methods = [{prop: "ColorModel", name: "ColorModel", pkg: "", typ: $funcType([], [color.Model], false)}, {prop: "Bounds", name: "Bounds", pkg: "", typ: $funcType([], [Rectangle], false)}, {prop: "At", name: "At", pkg: "", typ: $funcType([$Int, $Int], [color.Color], false)}, {prop: "YCbCrAt", name: "YCbCrAt", pkg: "", typ: $funcType([$Int, $Int], [color.YCbCr], false)}, {prop: "YOffset", name: "YOffset", pkg: "", typ: $funcType([$Int, $Int], [$Int], false)}, {prop: "COffset", name: "COffset", pkg: "", typ: $funcType([$Int, $Int], [$Int], false)}, {prop: "SubImage", name: "SubImage", pkg: "", typ: $funcType([Rectangle], [Image], false)}, {prop: "Opaque", name: "Opaque", pkg: "", typ: $funcType([], [$Bool], false)}];
|
|
136108
|
-
Point.init("", [{prop: "X", name: "X", embedded: false, exported: true, typ: $Int, tag: ""}, {prop: "Y", name: "Y", embedded: false, exported: true, typ: $Int, tag: ""}]);
|
|
136109
|
-
Rectangle.init("", [{prop: "Min", name: "Min", embedded: false, exported: true, typ: Point, tag: ""}, {prop: "Max", name: "Max", embedded: false, exported: true, typ: Point, tag: ""}]);
|
|
136110
|
-
Image.init([{prop: "At", name: "At", pkg: "", typ: $funcType([$Int, $Int], [color.Color], false)}, {prop: "Bounds", name: "Bounds", pkg: "", typ: $funcType([], [Rectangle], false)}, {prop: "ColorModel", name: "ColorModel", pkg: "", typ: $funcType([], [color.Model], false)}]);
|
|
136111
|
-
RGBA.init("", [{prop: "Pix", name: "Pix", embedded: false, exported: true, typ: sliceType$1, tag: ""}, {prop: "Stride", name: "Stride", embedded: false, exported: true, typ: $Int, tag: ""}, {prop: "Rect", name: "Rect", embedded: false, exported: true, typ: Rectangle, tag: ""}]);
|
|
136112
|
-
NRGBA.init("", [{prop: "Pix", name: "Pix", embedded: false, exported: true, typ: sliceType$1, tag: ""}, {prop: "Stride", name: "Stride", embedded: false, exported: true, typ: $Int, tag: ""}, {prop: "Rect", name: "Rect", embedded: false, exported: true, typ: Rectangle, tag: ""}]);
|
|
136113
|
-
Alpha.init("", [{prop: "Pix", name: "Pix", embedded: false, exported: true, typ: sliceType$1, tag: ""}, {prop: "Stride", name: "Stride", embedded: false, exported: true, typ: $Int, tag: ""}, {prop: "Rect", name: "Rect", embedded: false, exported: true, typ: Rectangle, tag: ""}]);
|
|
136114
|
-
Gray.init("", [{prop: "Pix", name: "Pix", embedded: false, exported: true, typ: sliceType$1, tag: ""}, {prop: "Stride", name: "Stride", embedded: false, exported: true, typ: $Int, tag: ""}, {prop: "Rect", name: "Rect", embedded: false, exported: true, typ: Rectangle, tag: ""}]);
|
|
136115
|
-
CMYK.init("", [{prop: "Pix", name: "Pix", embedded: false, exported: true, typ: sliceType$1, tag: ""}, {prop: "Stride", name: "Stride", embedded: false, exported: true, typ: $Int, tag: ""}, {prop: "Rect", name: "Rect", embedded: false, exported: true, typ: Rectangle, tag: ""}]);
|
|
136116
|
-
Paletted.init("", [{prop: "Pix", name: "Pix", embedded: false, exported: true, typ: sliceType$1, tag: ""}, {prop: "Stride", name: "Stride", embedded: false, exported: true, typ: $Int, tag: ""}, {prop: "Rect", name: "Rect", embedded: false, exported: true, typ: Rectangle, tag: ""}, {prop: "Palette", name: "Palette", embedded: false, exported: true, typ: color.Palette, tag: ""}]);
|
|
136117
|
-
Uniform.init("", [{prop: "C", name: "C", embedded: false, exported: true, typ: color.Color, tag: ""}]);
|
|
136118
|
-
YCbCr.init("", [{prop: "Y", name: "Y", embedded: false, exported: true, typ: sliceType$1, tag: ""}, {prop: "Cb", name: "Cb", embedded: false, exported: true, typ: sliceType$1, tag: ""}, {prop: "Cr", name: "Cr", embedded: false, exported: true, typ: sliceType$1, tag: ""}, {prop: "YStride", name: "YStride", embedded: false, exported: true, typ: $Int, tag: ""}, {prop: "CStride", name: "CStride", embedded: false, exported: true, typ: $Int, tag: ""}, {prop: "SubsampleRatio", name: "SubsampleRatio", embedded: false, exported: true, typ: YCbCrSubsampleRatio, tag: ""}, {prop: "Rect", name: "Rect", embedded: false, exported: true, typ: Rectangle, tag: ""}]);
|
|
136141
|
+
$ptrType(Direction).prototype.String = function() { return new Direction(this.$get()).String(); };
|
|
136142
|
+
Button.methods = [{prop: "IsWheel", name: "IsWheel", pkg: "", typ: $funcType([], [$Bool], false)}];
|
|
136143
|
+
Direction.methods = [{prop: "String", name: "String", pkg: "", typ: $funcType([], [$String], false)}];
|
|
136144
|
+
Event.init("", [{prop: "X", name: "X", embedded: false, exported: true, typ: $Float32, tag: ""}, {prop: "Y", name: "Y", embedded: false, exported: true, typ: $Float32, tag: ""}, {prop: "Button", name: "Button", embedded: false, exported: true, typ: Button, tag: ""}, {prop: "Modifiers", name: "Modifiers", embedded: false, exported: true, typ: key.Modifiers, tag: ""}, {prop: "Direction", name: "Direction", embedded: false, exported: true, typ: Direction, tag: ""}]);
|
|
136119
136145
|
$init = function() {
|
|
136120
136146
|
$pkg.$init = function() {};
|
|
136121
136147
|
/* */ var $f, $c = false, $s = 0, $r; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
136122
|
-
$r =
|
|
136123
|
-
$r =
|
|
136124
|
-
$r = color.$init(); /* */ $s = 3; case 3: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
136125
|
-
$r = io.$init(); /* */ $s = 4; case 4: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
136126
|
-
$r = bits.$init(); /* */ $s = 5; case 5: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
136127
|
-
$r = strconv.$init(); /* */ $s = 6; case 6: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
136128
|
-
$r = sync.$init(); /* */ $s = 7; case 7: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
136129
|
-
$r = atomic.$init(); /* */ $s = 8; case 8: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
136130
|
-
$pkg.ZR = new Rectangle.ptr(new Point.ptr(0, 0), new Point.ptr(0, 0));
|
|
136131
|
-
$pkg.ErrFormat = errors.New("image: unknown format");
|
|
136132
|
-
$pkg.Black = NewUniform((x = color.Black, new x.constructor.elem(x)));
|
|
136133
|
-
$pkg.White = NewUniform((x$1 = color.White, new x$1.constructor.elem(x$1)));
|
|
136134
|
-
$pkg.Transparent = NewUniform((x$2 = color.Transparent, new x$2.constructor.elem(x$2)));
|
|
136135
|
-
$pkg.Opaque = NewUniform((x$3 = color.Opaque, new x$3.constructor.elem(x$3)));
|
|
136148
|
+
$r = fmt.$init(); /* */ $s = 1; case 1: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
136149
|
+
$r = key.$init(); /* */ $s = 2; case 2: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
136136
136150
|
/* */ } return; } if ($f === undefined) { $f = { $blk: $init }; } $f.$s = $s; $f.$r = $r; return $f;
|
|
136137
136151
|
};
|
|
136138
136152
|
$pkg.$init = $init;
|
|
136139
136153
|
return $pkg;
|
|
136140
136154
|
})();
|
|
136141
136155
|
$packages["github.com/supraio/client-daemon/pkg/input"] = (function() {
|
|
136142
|
-
var $pkg = {}, $init, binary, fmt, errs, message, focus, key, mouse,
|
|
136156
|
+
var $pkg = {}, $init, binary, fmt, errs, message, focus, key, mouse, sync;
|
|
136143
136157
|
binary = $packages["encoding/binary"];
|
|
136144
136158
|
fmt = $packages["fmt"];
|
|
136145
136159
|
errs = $packages["github.com/supraio/client-daemon/pkg/errs"];
|
|
@@ -136147,7 +136161,6 @@ $packages["github.com/supraio/client-daemon/pkg/input"] = (function() {
|
|
|
136147
136161
|
focus = $packages["golang.org/x/mobile/event/focus"];
|
|
136148
136162
|
key = $packages["golang.org/x/mobile/event/key"];
|
|
136149
136163
|
mouse = $packages["golang.org/x/mobile/event/mouse"];
|
|
136150
|
-
image = $packages["image"];
|
|
136151
136164
|
sync = $packages["sync"];
|
|
136152
136165
|
$init = function() {
|
|
136153
136166
|
$pkg.$init = function() {};
|
|
@@ -136159,22 +136172,23 @@ $packages["github.com/supraio/client-daemon/pkg/input"] = (function() {
|
|
|
136159
136172
|
$r = focus.$init(); /* */ $s = 5; case 5: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
136160
136173
|
$r = key.$init(); /* */ $s = 6; case 6: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
136161
136174
|
$r = mouse.$init(); /* */ $s = 7; case 7: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
136162
|
-
$r =
|
|
136163
|
-
$r = sync.$init(); /* */ $s = 9; case 9: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
136175
|
+
$r = sync.$init(); /* */ $s = 8; case 8: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
136164
136176
|
/* */ } return; } if ($f === undefined) { $f = { $blk: $init }; } $f.$s = $s; $f.$r = $r; return $f;
|
|
136165
136177
|
};
|
|
136166
136178
|
$pkg.$init = $init;
|
|
136167
136179
|
return $pkg;
|
|
136168
136180
|
})();
|
|
136169
136181
|
$packages["github.com/supraio/client-daemon/pkg/stats"] = (function() {
|
|
136170
|
-
var $pkg = {}, $init, log, time;
|
|
136182
|
+
var $pkg = {}, $init, image, log, time;
|
|
136183
|
+
image = $packages["image"];
|
|
136171
136184
|
log = $packages["log"];
|
|
136172
136185
|
time = $packages["time"];
|
|
136173
136186
|
$init = function() {
|
|
136174
136187
|
$pkg.$init = function() {};
|
|
136175
136188
|
/* */ var $f, $c = false, $s = 0, $r; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
136176
|
-
$r =
|
|
136177
|
-
$r =
|
|
136189
|
+
$r = image.$init(); /* */ $s = 1; case 1: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
136190
|
+
$r = log.$init(); /* */ $s = 2; case 2: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
136191
|
+
$r = time.$init(); /* */ $s = 3; case 3: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
136178
136192
|
/* */ } return; } if ($f === undefined) { $f = { $blk: $init }; } $f.$s = $s; $f.$r = $r; return $f;
|
|
136179
136193
|
};
|
|
136180
136194
|
$pkg.$init = $init;
|
|
@@ -136739,24 +136753,24 @@ $packages["github.com/nuberu/webgl"] = (function() {
|
|
|
136739
136753
|
/* */ if ($assertType(_ref, sliceType$9, true)[1]) { $s = 10; continue; }
|
|
136740
136754
|
/* */ $s = 11; continue;
|
|
136741
136755
|
/* if ($assertType(_ref, sliceType, true)[1]) { */ case 1:
|
|
136742
|
-
s$
|
|
136743
|
-
h = ($pointerOfStructConversion(((s$
|
|
136756
|
+
s$6[0] = _ref.$val;
|
|
136757
|
+
h = ($pointerOfStructConversion(((s$6.$ptr || (s$6.$ptr = new ptrType$1(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$6)))), ptrType));
|
|
136744
136758
|
$s = -1; return ((h)).$get();
|
|
136745
136759
|
/* } else if ($assertType(_ref, sliceType$1, true)[1]) { */ case 2:
|
|
136746
|
-
s$
|
|
136747
|
-
h$1 = ($pointerOfStructConversion(((s$
|
|
136760
|
+
s$1[0] = _ref.$val;
|
|
136761
|
+
h$1 = ($pointerOfStructConversion(((s$1.$ptr || (s$1.$ptr = new ptrType$2(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$1)))), ptrType));
|
|
136748
136762
|
h$1.Len = $imul(h$1.Len, (2));
|
|
136749
136763
|
h$1.Cap = $imul(h$1.Cap, (2));
|
|
136750
136764
|
$s = -1; return ((h$1)).$get();
|
|
136751
136765
|
/* } else if ($assertType(_ref, sliceType$2, true)[1]) { */ case 3:
|
|
136752
|
-
s$
|
|
136753
|
-
h$2 = ($pointerOfStructConversion(((s$
|
|
136766
|
+
s$7[0] = _ref.$val;
|
|
136767
|
+
h$2 = ($pointerOfStructConversion(((s$7.$ptr || (s$7.$ptr = new ptrType$3(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$7)))), ptrType));
|
|
136754
136768
|
h$2.Len = $imul(h$2.Len, (4));
|
|
136755
136769
|
h$2.Cap = $imul(h$2.Cap, (4));
|
|
136756
136770
|
$s = -1; return ((h$2)).$get();
|
|
136757
136771
|
/* } else if ($assertType(_ref, sliceType$3, true)[1]) { */ case 4:
|
|
136758
|
-
s$
|
|
136759
|
-
h$3 = ($pointerOfStructConversion(((s$
|
|
136772
|
+
s$8[0] = _ref.$val;
|
|
136773
|
+
h$3 = ($pointerOfStructConversion(((s$8.$ptr || (s$8.$ptr = new ptrType$4(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$8)))), ptrType));
|
|
136760
136774
|
h$3.Len = $imul(h$3.Len, (8));
|
|
136761
136775
|
h$3.Cap = $imul(h$3.Cap, (8));
|
|
136762
136776
|
$s = -1; return ((h$3)).$get();
|
|
@@ -136770,26 +136784,26 @@ $packages["github.com/nuberu/webgl"] = (function() {
|
|
|
136770
136784
|
h$4.Cap = $imul(h$4.Cap, (2));
|
|
136771
136785
|
$s = -1; return ((h$4)).$get();
|
|
136772
136786
|
/* } else if ($assertType(_ref, sliceType$6, true)[1]) { */ case 7:
|
|
136773
|
-
s$
|
|
136774
|
-
h$5 = ($pointerOfStructConversion(((s$
|
|
136787
|
+
s$3[0] = _ref.$val;
|
|
136788
|
+
h$5 = ($pointerOfStructConversion(((s$3.$ptr || (s$3.$ptr = new ptrType$6(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$3)))), ptrType));
|
|
136775
136789
|
h$5.Len = $imul(h$5.Len, (4));
|
|
136776
136790
|
h$5.Cap = $imul(h$5.Cap, (4));
|
|
136777
136791
|
$s = -1; return ((h$5)).$get();
|
|
136778
136792
|
/* } else if ($assertType(_ref, sliceType$7, true)[1]) { */ case 8:
|
|
136779
|
-
s$
|
|
136780
|
-
h$6 = ($pointerOfStructConversion(((s$
|
|
136793
|
+
s$9[0] = _ref.$val;
|
|
136794
|
+
h$6 = ($pointerOfStructConversion(((s$9.$ptr || (s$9.$ptr = new ptrType$7(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$9)))), ptrType));
|
|
136781
136795
|
h$6.Len = $imul(h$6.Len, (8));
|
|
136782
136796
|
h$6.Cap = $imul(h$6.Cap, (8));
|
|
136783
136797
|
$s = -1; return ((h$6)).$get();
|
|
136784
136798
|
/* } else if ($assertType(_ref, sliceType$8, true)[1]) { */ case 9:
|
|
136785
|
-
s$
|
|
136786
|
-
h$7 = ($pointerOfStructConversion(((s$
|
|
136799
|
+
s$4[0] = _ref.$val;
|
|
136800
|
+
h$7 = ($pointerOfStructConversion(((s$4.$ptr || (s$4.$ptr = new ptrType$8(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$4)))), ptrType));
|
|
136787
136801
|
h$7.Len = $imul(h$7.Len, (4));
|
|
136788
136802
|
h$7.Cap = $imul(h$7.Cap, (4));
|
|
136789
136803
|
$s = -1; return ((h$7)).$get();
|
|
136790
136804
|
/* } else if ($assertType(_ref, sliceType$9, true)[1]) { */ case 10:
|
|
136791
|
-
s$
|
|
136792
|
-
h$8 = ($pointerOfStructConversion(((s$
|
|
136805
|
+
s$5[0] = _ref.$val;
|
|
136806
|
+
h$8 = ($pointerOfStructConversion(((s$5.$ptr || (s$5.$ptr = new ptrType$9(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$5)))), ptrType));
|
|
136793
136807
|
h$8.Len = $imul(h$8.Len, (8));
|
|
136794
136808
|
h$8.Cap = $imul(h$8.Cap, (8));
|
|
136795
136809
|
$s = -1; return ((h$8)).$get();
|
|
@@ -142198,14 +142212,14 @@ $packages["image/draw"] = (function() {
|
|
|
142198
142212
|
/* */ if ($assertType(_ref$1, ptrType$5, true)[1]) { $s = 8; continue; }
|
|
142199
142213
|
/* */ $s = 9; continue;
|
|
142200
142214
|
/* if ($assertType(_ref$1, ptrType$1, true)[1]) { */ case 6:
|
|
142201
|
-
src0[0] = _ref$1.$val;
|
|
142215
|
+
src0$2[0] = _ref$1.$val;
|
|
142202
142216
|
pxRGBA = (function(out, src, src0, src0$1, src0$2) { return function(x$1, y) {
|
|
142203
142217
|
var _tuple$2, a$1, b$1, g$1, r$2, x$1, y;
|
|
142204
142218
|
r$2 = 0;
|
|
142205
142219
|
g$1 = 0;
|
|
142206
142220
|
b$1 = 0;
|
|
142207
142221
|
a$1 = 0;
|
|
142208
|
-
_tuple$2 = $clone(src0[0].RGBAAt(x$1, y), color.RGBA).RGBA();
|
|
142222
|
+
_tuple$2 = $clone(src0$2[0].RGBAAt(x$1, y), color.RGBA).RGBA();
|
|
142209
142223
|
r$2 = _tuple$2[0];
|
|
142210
142224
|
g$1 = _tuple$2[1];
|
|
142211
142225
|
b$1 = _tuple$2[2];
|
|
@@ -142214,14 +142228,14 @@ $packages["image/draw"] = (function() {
|
|
|
142214
142228
|
}; })(out, src, src0, src0$1, src0$2);
|
|
142215
142229
|
$s = 9; continue;
|
|
142216
142230
|
/* } else if ($assertType(_ref$1, ptrType$4, true)[1]) { */ case 7:
|
|
142217
|
-
src0
|
|
142231
|
+
src0[0] = _ref$1.$val;
|
|
142218
142232
|
pxRGBA = (function(out, src, src0, src0$1, src0$2) { return function(x$1, y) {
|
|
142219
142233
|
var _tuple$2, a$1, b$1, g$1, r$2, x$1, y;
|
|
142220
142234
|
r$2 = 0;
|
|
142221
142235
|
g$1 = 0;
|
|
142222
142236
|
b$1 = 0;
|
|
142223
142237
|
a$1 = 0;
|
|
142224
|
-
_tuple$2 = $clone(src0
|
|
142238
|
+
_tuple$2 = $clone(src0[0].NRGBAAt(x$1, y), color.NRGBA).RGBA();
|
|
142225
142239
|
r$2 = _tuple$2[0];
|
|
142226
142240
|
g$1 = _tuple$2[1];
|
|
142227
142241
|
b$1 = _tuple$2[2];
|
|
@@ -142230,14 +142244,14 @@ $packages["image/draw"] = (function() {
|
|
|
142230
142244
|
}; })(out, src, src0, src0$1, src0$2);
|
|
142231
142245
|
$s = 9; continue;
|
|
142232
142246
|
/* } else if ($assertType(_ref$1, ptrType$5, true)[1]) { */ case 8:
|
|
142233
|
-
src0$
|
|
142247
|
+
src0$1[0] = _ref$1.$val;
|
|
142234
142248
|
pxRGBA = (function(out, src, src0, src0$1, src0$2) { return function(x$1, y) {
|
|
142235
142249
|
var _tuple$2, a$1, b$1, g$1, r$2, x$1, y;
|
|
142236
142250
|
r$2 = 0;
|
|
142237
142251
|
g$1 = 0;
|
|
142238
142252
|
b$1 = 0;
|
|
142239
142253
|
a$1 = 0;
|
|
142240
|
-
_tuple$2 = $clone(src0$
|
|
142254
|
+
_tuple$2 = $clone(src0$1[0].YCbCrAt(x$1, y), color.YCbCr).RGBA();
|
|
142241
142255
|
r$2 = _tuple$2[0];
|
|
142242
142256
|
g$1 = _tuple$2[1];
|
|
142243
142257
|
b$1 = _tuple$2[2];
|
|
@@ -143750,13 +143764,14 @@ $packages["golang.org/x/exp/shiny/driver/canvasdriver"] = (function() {
|
|
|
143750
143764
|
return $pkg;
|
|
143751
143765
|
})();
|
|
143752
143766
|
$packages["github.com/supraio/client-daemon/pkg/x264/webcodecs"] = (function() {
|
|
143753
|
-
var $pkg = {}, $init, hex, webgl, errs, jshelper, general, canvasdriver, js;
|
|
143767
|
+
var $pkg = {}, $init, hex, webgl, errs, jshelper, general, canvasdriver, image, js;
|
|
143754
143768
|
hex = $packages["encoding/hex"];
|
|
143755
143769
|
webgl = $packages["github.com/nuberu/webgl"];
|
|
143756
143770
|
errs = $packages["github.com/supraio/client-daemon/pkg/errs"];
|
|
143757
143771
|
jshelper = $packages["github.com/supraio/client-daemon/pkg/jshelper"];
|
|
143758
143772
|
general = $packages["github.com/supraio/client-daemon/pkg/x264/general"];
|
|
143759
143773
|
canvasdriver = $packages["golang.org/x/exp/shiny/driver/canvasdriver"];
|
|
143774
|
+
image = $packages["image"];
|
|
143760
143775
|
js = $packages["syscall/js"];
|
|
143761
143776
|
$init = function() {
|
|
143762
143777
|
$pkg.$init = function() {};
|
|
@@ -143767,7 +143782,8 @@ $packages["github.com/supraio/client-daemon/pkg/x264/webcodecs"] = (function() {
|
|
|
143767
143782
|
$r = jshelper.$init(); /* */ $s = 4; case 4: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
143768
143783
|
$r = general.$init(); /* */ $s = 5; case 5: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
143769
143784
|
$r = canvasdriver.$init(); /* */ $s = 6; case 6: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
143770
|
-
$r =
|
|
143785
|
+
$r = image.$init(); /* */ $s = 7; case 7: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
143786
|
+
$r = js.$init(); /* */ $s = 8; case 8: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
143771
143787
|
/* */ } return; } if ($f === undefined) { $f = { $blk: $init }; } $f.$s = $s; $f.$r = $r; return $f;
|
|
143772
143788
|
};
|
|
143773
143789
|
$pkg.$init = $init;
|
|
@@ -143806,10 +143822,11 @@ $packages["golang.org/x/mobile/event/lifecycle"] = (function() {
|
|
|
143806
143822
|
return $pkg;
|
|
143807
143823
|
})();
|
|
143808
143824
|
$packages["github.com/supraio/client-daemon/pkg/render"] = (function() {
|
|
143809
|
-
var $pkg = {}, $init, binary, json, query, clipboard, errs, input, message, netclient, netpacket, netstream, stats, window, x264, canvasdriver, webgldriver, screen, focus, key, lifecycle, mouse, size, image, io, ioutil, log, os, path, strings, sync, js, time, ProcessInfo, ProcessInfoManager, ScreenManager, screenParams, sliceType$1, sliceType$2, ptrType$3, ptrType$13, openScreenWindows, mutex, NewProcessInfoManager, NewScreenManager;
|
|
143825
|
+
var $pkg = {}, $init, binary, json, query, clientscreen, clipboard, errs, input, message, netclient, netpacket, netstream, stats, window, x264, canvasdriver, webgldriver, screen, focus, key, lifecycle, mouse, size, image, io, ioutil, log, os, path, strings, sync, js, time, ProcessInfo, ProcessInfoManager, ScreenManager, screenParams, sliceType$1, sliceType$2, ptrType$3, ptrType$13, openScreenWindows, mutex, NewProcessInfoManager, NewScreenManager;
|
|
143810
143826
|
binary = $packages["encoding/binary"];
|
|
143811
143827
|
json = $packages["encoding/json"];
|
|
143812
143828
|
query = $packages["github.com/google/go-querystring/query"];
|
|
143829
|
+
clientscreen = $packages["github.com/supraio/client-daemon/pkg/clientscreen"];
|
|
143813
143830
|
clipboard = $packages["github.com/supraio/client-daemon/pkg/clipboard"];
|
|
143814
143831
|
errs = $packages["github.com/supraio/client-daemon/pkg/errs"];
|
|
143815
143832
|
input = $packages["github.com/supraio/client-daemon/pkg/input"];
|
|
@@ -144226,34 +144243,35 @@ $packages["github.com/supraio/client-daemon/pkg/render"] = (function() {
|
|
|
144226
144243
|
$r = binary.$init(); /* */ $s = 1; case 1: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
144227
144244
|
$r = json.$init(); /* */ $s = 2; case 2: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
144228
144245
|
$r = query.$init(); /* */ $s = 3; case 3: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
144229
|
-
$r =
|
|
144230
|
-
$r =
|
|
144231
|
-
$r =
|
|
144232
|
-
$r =
|
|
144233
|
-
$r =
|
|
144234
|
-
$r =
|
|
144235
|
-
$r =
|
|
144236
|
-
$r =
|
|
144237
|
-
$r =
|
|
144238
|
-
$r =
|
|
144239
|
-
$r =
|
|
144240
|
-
$r =
|
|
144241
|
-
$r =
|
|
144242
|
-
$r =
|
|
144243
|
-
$r =
|
|
144244
|
-
$r =
|
|
144245
|
-
$r =
|
|
144246
|
-
$r =
|
|
144247
|
-
$r =
|
|
144248
|
-
$r =
|
|
144249
|
-
$r =
|
|
144250
|
-
$r =
|
|
144251
|
-
$r =
|
|
144252
|
-
$r =
|
|
144253
|
-
$r =
|
|
144254
|
-
$r =
|
|
144255
|
-
$r =
|
|
144256
|
-
$r =
|
|
144246
|
+
$r = clientscreen.$init(); /* */ $s = 4; case 4: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
144247
|
+
$r = clipboard.$init(); /* */ $s = 5; case 5: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
144248
|
+
$r = errs.$init(); /* */ $s = 6; case 6: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
144249
|
+
$r = input.$init(); /* */ $s = 7; case 7: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
144250
|
+
$r = message.$init(); /* */ $s = 8; case 8: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
144251
|
+
$r = netclient.$init(); /* */ $s = 9; case 9: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
144252
|
+
$r = netpacket.$init(); /* */ $s = 10; case 10: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
144253
|
+
$r = netstream.$init(); /* */ $s = 11; case 11: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
144254
|
+
$r = stats.$init(); /* */ $s = 12; case 12: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
144255
|
+
$r = window.$init(); /* */ $s = 13; case 13: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
144256
|
+
$r = x264.$init(); /* */ $s = 14; case 14: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
144257
|
+
$r = canvasdriver.$init(); /* */ $s = 15; case 15: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
144258
|
+
$r = webgldriver.$init(); /* */ $s = 16; case 16: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
144259
|
+
$r = screen.$init(); /* */ $s = 17; case 17: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
144260
|
+
$r = focus.$init(); /* */ $s = 18; case 18: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
144261
|
+
$r = key.$init(); /* */ $s = 19; case 19: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
144262
|
+
$r = lifecycle.$init(); /* */ $s = 20; case 20: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
144263
|
+
$r = mouse.$init(); /* */ $s = 21; case 21: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
144264
|
+
$r = size.$init(); /* */ $s = 22; case 22: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
144265
|
+
$r = image.$init(); /* */ $s = 23; case 23: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
144266
|
+
$r = io.$init(); /* */ $s = 24; case 24: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
144267
|
+
$r = ioutil.$init(); /* */ $s = 25; case 25: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
144268
|
+
$r = log.$init(); /* */ $s = 26; case 26: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
144269
|
+
$r = os.$init(); /* */ $s = 27; case 27: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
144270
|
+
$r = path.$init(); /* */ $s = 28; case 28: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
144271
|
+
$r = strings.$init(); /* */ $s = 29; case 29: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
144272
|
+
$r = sync.$init(); /* */ $s = 30; case 30: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
144273
|
+
$r = js.$init(); /* */ $s = 31; case 31: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
144274
|
+
$r = time.$init(); /* */ $s = 32; case 32: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
144257
144275
|
openScreenWindows = $makeMap($String.keyFor, []);
|
|
144258
144276
|
mutex = new sync.Mutex.ptr(0, 0);
|
|
144259
144277
|
/* */ } return; } if ($f === undefined) { $f = { $blk: $init }; } $f.$s = $s; $f.$r = $r; return $f;
|