@omnidotdev/terminal 0.1.0 → 0.1.1
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.
|
@@ -11,9 +11,11 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
11
11
|
export interface InitOutput {
|
|
12
12
|
readonly memory: WebAssembly.Memory;
|
|
13
13
|
readonly create_terminal: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
14
|
-
readonly
|
|
15
|
-
readonly
|
|
16
|
-
readonly
|
|
14
|
+
readonly __wasm_bindgen_func_elem_360: (a: number, b: number, c: number) => void;
|
|
15
|
+
readonly __wasm_bindgen_func_elem_359: (a: number, b: number) => void;
|
|
16
|
+
readonly __wasm_bindgen_func_elem_369: (a: number, b: number) => void;
|
|
17
|
+
readonly __wasm_bindgen_func_elem_2737: (a: number, b: number, c: number) => void;
|
|
18
|
+
readonly __wasm_bindgen_func_elem_2736: (a: number, b: number) => void;
|
|
17
19
|
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
18
20
|
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
19
21
|
readonly __wbindgen_export3: (a: number) => void;
|
|
@@ -84,6 +84,11 @@ function dropObject(idx) {
|
|
|
84
84
|
heap_next = idx;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
+
function getArrayU32FromWasm0(ptr, len) {
|
|
88
|
+
ptr = ptr >>> 0;
|
|
89
|
+
return getUint32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
|
|
90
|
+
}
|
|
91
|
+
|
|
87
92
|
function getArrayU8FromWasm0(ptr, len) {
|
|
88
93
|
ptr = ptr >>> 0;
|
|
89
94
|
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
@@ -102,6 +107,14 @@ function getStringFromWasm0(ptr, len) {
|
|
|
102
107
|
return decodeText(ptr, len);
|
|
103
108
|
}
|
|
104
109
|
|
|
110
|
+
let cachedUint32ArrayMemory0 = null;
|
|
111
|
+
function getUint32ArrayMemory0() {
|
|
112
|
+
if (cachedUint32ArrayMemory0 === null || cachedUint32ArrayMemory0.byteLength === 0) {
|
|
113
|
+
cachedUint32ArrayMemory0 = new Uint32Array(wasm.memory.buffer);
|
|
114
|
+
}
|
|
115
|
+
return cachedUint32ArrayMemory0;
|
|
116
|
+
}
|
|
117
|
+
|
|
105
118
|
let cachedUint8ArrayMemory0 = null;
|
|
106
119
|
function getUint8ArrayMemory0() {
|
|
107
120
|
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
@@ -229,12 +242,16 @@ if (!('encodeInto' in cachedTextEncoder)) {
|
|
|
229
242
|
|
|
230
243
|
let WASM_VECTOR_LEN = 0;
|
|
231
244
|
|
|
232
|
-
function
|
|
233
|
-
wasm.
|
|
245
|
+
function __wasm_bindgen_func_elem_360(arg0, arg1, arg2) {
|
|
246
|
+
wasm.__wasm_bindgen_func_elem_360(arg0, arg1, addHeapObject(arg2));
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
function __wasm_bindgen_func_elem_369(arg0, arg1) {
|
|
250
|
+
wasm.__wasm_bindgen_func_elem_369(arg0, arg1);
|
|
234
251
|
}
|
|
235
252
|
|
|
236
|
-
function
|
|
237
|
-
wasm.
|
|
253
|
+
function __wasm_bindgen_func_elem_2737(arg0, arg1, arg2) {
|
|
254
|
+
wasm.__wasm_bindgen_func_elem_2737(arg0, arg1, addHeapObject(arg2));
|
|
238
255
|
}
|
|
239
256
|
|
|
240
257
|
const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
|
|
@@ -932,6 +949,9 @@ function __wbg_get_imports() {
|
|
|
932
949
|
imports.wbg.__wbg_setBindGroup_bf7233e51ee0fd56 = function(arg0, arg1, arg2) {
|
|
933
950
|
getObject(arg0).setBindGroup(arg1 >>> 0, getObject(arg2));
|
|
934
951
|
};
|
|
952
|
+
imports.wbg.__wbg_setBindGroup_c532d9e80c3b863a = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
953
|
+
getObject(arg0).setBindGroup(arg1 >>> 0, getObject(arg2), getArrayU32FromWasm0(arg3, arg4), arg5, arg6 >>> 0);
|
|
954
|
+
}, arguments) };
|
|
935
955
|
imports.wbg.__wbg_setIndexBuffer_d6851b016152211a = function(arg0, arg1, arg2, arg3, arg4) {
|
|
936
956
|
getObject(arg0).setIndexBuffer(getObject(arg1), __wbindgen_enum_GpuIndexFormat[arg2], arg3, arg4);
|
|
937
957
|
};
|
|
@@ -1219,6 +1239,9 @@ function __wbg_get_imports() {
|
|
|
1219
1239
|
imports.wbg.__wbg_set_label_dc8df9969898889c = function(arg0, arg1, arg2) {
|
|
1220
1240
|
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
1221
1241
|
};
|
|
1242
|
+
imports.wbg.__wbg_set_label_e3709fe3e82429b5 = function(arg0, arg1, arg2) {
|
|
1243
|
+
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
1244
|
+
};
|
|
1222
1245
|
imports.wbg.__wbg_set_label_fb5d28b3ba7af11f = function(arg0, arg1, arg2) {
|
|
1223
1246
|
getObject(arg0).label = getStringFromWasm0(arg1, arg2);
|
|
1224
1247
|
};
|
|
@@ -1557,12 +1580,17 @@ function __wbg_get_imports() {
|
|
|
1557
1580
|
}, arguments) };
|
|
1558
1581
|
imports.wbg.__wbindgen_cast_187d9bf61ed157ff = function(arg0, arg1) {
|
|
1559
1582
|
// Cast intrinsic for `Closure(Closure { dtor_idx: 1, function: Function { arguments: [NamedExternref("InputEvent")], shim_idx: 2, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1560
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1583
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_359, __wasm_bindgen_func_elem_360);
|
|
1561
1584
|
return addHeapObject(ret);
|
|
1562
1585
|
};
|
|
1563
1586
|
imports.wbg.__wbindgen_cast_1d60ba84c0e612df = function(arg0, arg1) {
|
|
1564
1587
|
// Cast intrinsic for `Closure(Closure { dtor_idx: 1, function: Function { arguments: [NamedExternref("MouseEvent")], shim_idx: 2, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1565
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1588
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_359, __wasm_bindgen_func_elem_360);
|
|
1589
|
+
return addHeapObject(ret);
|
|
1590
|
+
};
|
|
1591
|
+
imports.wbg.__wbindgen_cast_20a522f3e8c4c240 = function(arg0, arg1) {
|
|
1592
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 1, function: Function { arguments: [], shim_idx: 11, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1593
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_359, __wasm_bindgen_func_elem_369);
|
|
1566
1594
|
return addHeapObject(ret);
|
|
1567
1595
|
};
|
|
1568
1596
|
imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
|
|
@@ -1570,34 +1598,24 @@ function __wbg_get_imports() {
|
|
|
1570
1598
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
1571
1599
|
return addHeapObject(ret);
|
|
1572
1600
|
};
|
|
1573
|
-
imports.wbg.__wbindgen_cast_32bc49bfb4050e32 = function(arg0, arg1) {
|
|
1574
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 1, function: Function { arguments: [Externref], shim_idx: 2, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1575
|
-
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_360, __wasm_bindgen_func_elem_361);
|
|
1576
|
-
return addHeapObject(ret);
|
|
1577
|
-
};
|
|
1578
1601
|
imports.wbg.__wbindgen_cast_46d6ccd6e2a13afa = function(arg0, arg1) {
|
|
1579
1602
|
// Cast intrinsic for `Closure(Closure { dtor_idx: 1, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 2, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1580
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1603
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_359, __wasm_bindgen_func_elem_360);
|
|
1581
1604
|
return addHeapObject(ret);
|
|
1582
1605
|
};
|
|
1583
1606
|
imports.wbg.__wbindgen_cast_56a336ee13022c01 = function(arg0, arg1) {
|
|
1584
1607
|
// Cast intrinsic for `Closure(Closure { dtor_idx: 1, function: Function { arguments: [NamedExternref("WheelEvent")], shim_idx: 2, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1585
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1608
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_359, __wasm_bindgen_func_elem_360);
|
|
1586
1609
|
return addHeapObject(ret);
|
|
1587
1610
|
};
|
|
1588
1611
|
imports.wbg.__wbindgen_cast_5f4bddbc92058ea9 = function(arg0, arg1) {
|
|
1589
1612
|
// Cast intrinsic for `Closure(Closure { dtor_idx: 1, function: Function { arguments: [NamedExternref("Array<any>")], shim_idx: 2, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1590
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1613
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_359, __wasm_bindgen_func_elem_360);
|
|
1591
1614
|
return addHeapObject(ret);
|
|
1592
1615
|
};
|
|
1593
1616
|
imports.wbg.__wbindgen_cast_8d0a0c1360e48ed2 = function(arg0, arg1) {
|
|
1594
1617
|
// Cast intrinsic for `Closure(Closure { dtor_idx: 1, function: Function { arguments: [NamedExternref("KeyboardEvent")], shim_idx: 2, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1595
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1596
|
-
return addHeapObject(ret);
|
|
1597
|
-
};
|
|
1598
|
-
imports.wbg.__wbindgen_cast_a642f18239483a12 = function(arg0, arg1) {
|
|
1599
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 1, function: Function { arguments: [], shim_idx: 9, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1600
|
-
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_360, __wasm_bindgen_func_elem_374);
|
|
1618
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_359, __wasm_bindgen_func_elem_360);
|
|
1601
1619
|
return addHeapObject(ret);
|
|
1602
1620
|
};
|
|
1603
1621
|
imports.wbg.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
|
|
@@ -1612,12 +1630,17 @@ function __wbg_get_imports() {
|
|
|
1612
1630
|
};
|
|
1613
1631
|
imports.wbg.__wbindgen_cast_ed6979b760f73a7b = function(arg0, arg1) {
|
|
1614
1632
|
// Cast intrinsic for `Closure(Closure { dtor_idx: 1, function: Function { arguments: [NamedExternref("ClipboardEvent")], shim_idx: 2, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1615
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1633
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_359, __wasm_bindgen_func_elem_360);
|
|
1616
1634
|
return addHeapObject(ret);
|
|
1617
1635
|
};
|
|
1618
1636
|
imports.wbg.__wbindgen_cast_edc3ef780a25528f = function(arg0, arg1) {
|
|
1619
1637
|
// Cast intrinsic for `Closure(Closure { dtor_idx: 1, function: Function { arguments: [NamedExternref("CompositionEvent")], shim_idx: 2, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1620
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1638
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_359, __wasm_bindgen_func_elem_360);
|
|
1639
|
+
return addHeapObject(ret);
|
|
1640
|
+
};
|
|
1641
|
+
imports.wbg.__wbindgen_cast_fd859e22cb76cfab = function(arg0, arg1) {
|
|
1642
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 613, function: Function { arguments: [Externref], shim_idx: 614, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1643
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_2736, __wasm_bindgen_func_elem_2737);
|
|
1621
1644
|
return addHeapObject(ret);
|
|
1622
1645
|
};
|
|
1623
1646
|
imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
|
|
@@ -1635,6 +1658,7 @@ function __wbg_finalize_init(instance, module) {
|
|
|
1635
1658
|
wasm = instance.exports;
|
|
1636
1659
|
__wbg_init.__wbindgen_wasm_module = module;
|
|
1637
1660
|
cachedDataViewMemory0 = null;
|
|
1661
|
+
cachedUint32ArrayMemory0 = null;
|
|
1638
1662
|
cachedUint8ArrayMemory0 = null;
|
|
1639
1663
|
|
|
1640
1664
|
|
|
Binary file
|
|
@@ -2,9 +2,11 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
4
|
export const create_terminal: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
5
|
-
export const
|
|
6
|
-
export const
|
|
7
|
-
export const
|
|
5
|
+
export const __wasm_bindgen_func_elem_360: (a: number, b: number, c: number) => void;
|
|
6
|
+
export const __wasm_bindgen_func_elem_359: (a: number, b: number) => void;
|
|
7
|
+
export const __wasm_bindgen_func_elem_369: (a: number, b: number) => void;
|
|
8
|
+
export const __wasm_bindgen_func_elem_2737: (a: number, b: number, c: number) => void;
|
|
9
|
+
export const __wasm_bindgen_func_elem_2736: (a: number, b: number) => void;
|
|
8
10
|
export const __wbindgen_export: (a: number, b: number) => number;
|
|
9
11
|
export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
10
12
|
export const __wbindgen_export3: (a: number) => void;
|