diff --git a/.gitkeep b/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/assets/index-5f2845a2.js b/assets/index-5f2845a2.js new file mode 100644 index 0000000..ce36971 --- /dev/null +++ b/assets/index-5f2845a2.js @@ -0,0 +1,2 @@ +var In=(v,l)=>()=>(l||v((l={exports:{}}).exports,l),l.exports);var En=In((Ln,I)=>{(async()=>{(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))t(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const u of o.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&t(u)}).observe(document,{childList:!0,subtree:!0});function e(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function t(r){if(r.ep)return;r.ep=!0;const o=e(r);fetch(r.href,o)}})();const v="/tangibl-wasm-rs/assets/tangibl_wasm_bg-da83c5a6.wasm",l=async(n={},e)=>{let t;if(e.startsWith("data:")){const r=e.replace(/^data:.*?base64,/,"");let o;if(typeof Buffer=="function"&&typeof Buffer.from=="function")o=Buffer.from(r,"base64");else if(typeof atob=="function"){const u=atob(r);o=new Uint8Array(u.length);for(let c=0;c"u"?(0,I.require)("util").TextEncoder:TextEncoder;let A=new $("utf-8");const C=typeof A.encodeInto=="function"?function(n,e){return A.encodeInto(n,e)}:function(n,e){const t=A.encode(n);return e.set(t),{read:n.length,written:t.length}};function T(n,e,t){if(t===void 0){const s=A.encode(n),y=e(s.length,1)>>>0;return p().subarray(y,y+s.length).set(s),m=s.length,y}let r=n.length,o=e(r,1)>>>0;const u=p();let c=0;for(;c127)break;u[o+c]=s}if(c!==r){c!==0&&(n=n.slice(c)),o=t(o,r,r=c+n.length*3,1)>>>0;const s=p().subarray(o+c,o+r),y=C(n,s);c+=y.written,o=t(o,r,c,1)>>>0}return m=c,o}const W=typeof TextDecoder>"u"?(0,I.require)("util").TextDecoder:TextDecoder;let L=new W("utf-8",{ignoreBOM:!0,fatal:!0});L.decode();function x(n,e){return n=n>>>0,L.decode(p().subarray(n,n+e))}function O(n){const e=typeof n;if(e=="number"||e=="boolean"||n==null)return`${n}`;if(e=="string")return`"${n}"`;if(e=="symbol"){const o=n.description;return o==null?"Symbol":`Symbol(${o})`}if(e=="function"){const o=n.name;return typeof o=="string"&&o.length>0?`Function(${o})`:"Function"}if(Array.isArray(n)){const o=n.length;let u="[";o>0&&(u+=O(n[0]));for(let c=1;c1)r=t[1];else return toString.call(n);if(r=="Object")try{return"Object("+JSON.stringify(n)+")"}catch{return"Object"}return n instanceof Error?`${n.name}: ${n.message} +${n.stack}`:r}function k(n){const e=f.parse(_(n));return E(e)}function S(n,e){try{return n.apply(this,e)}catch(t){f.__wbindgen_exn_store(_(t))}}function q(n){E(n)}function D(n){return i(n)===void 0}function P(n,e){return i(n)in i(e)}function R(n,e){const t=i(e),r=typeof t=="number"?t:void 0;d().setFloat64(n+8*1,j(r)?0:r,!0),d().setInt32(n+4*0,!j(r),!0)}function F(n){const e=i(n);return typeof e=="object"&&e!==null}function J(n){const e=i(n);return _(e)}function M(n,e){return i(n)==i(e)}function z(n){const e=i(n);return typeof e=="boolean"?e?1:0:2}function K(n,e){const t=i(e),r=typeof t=="string"?t:void 0;var o=j(r)?0:T(r,f.__wbindgen_malloc,f.__wbindgen_realloc),u=m;d().setInt32(n+4*1,u,!0),d().setInt32(n+4*0,o,!0)}function V(n,e){const t=new Error(x(n,e));return _(t)}function G(n,e){const t=x(n,e);return _(t)}function H(n,e){const t=i(n)[i(e)];return _(t)}function Q(n,e){const t=i(n)[e>>>0];return _(t)}function X(n){return i(n).length}function Y(n){return typeof i(n)=="function"}function Z(n){const e=i(n).next;return _(e)}function nn(){return S(function(n){const e=i(n).next();return _(e)},arguments)}function en(n){return i(n).done}function tn(n){const e=i(n).value;return _(e)}function rn(){return _(Symbol.iterator)}function on(){return S(function(n,e){const t=Reflect.get(i(n),i(e));return _(t)},arguments)}function cn(){return S(function(n,e){const t=i(n).call(i(e));return _(t)},arguments)}function un(n){return Array.isArray(i(n))}function _n(n){let e;try{e=i(n)instanceof ArrayBuffer}catch{e=!1}return e}function fn(n){return Number.isSafeInteger(i(n))}function an(n){const e=i(n).buffer;return _(e)}function sn(n){const e=new Uint8Array(i(n));return _(e)}function ln(n,e,t){i(n).set(i(e),t>>>0)}function bn(n){return i(n).length}function dn(n){let e;try{e=i(n)instanceof Uint8Array}catch{e=!1}return e}function gn(){return S(function(n,e){const t=JSON.parse(x(n,e));return _(t)},arguments)}function wn(n,e){const t=O(i(e)),r=T(t,f.__wbindgen_malloc,f.__wbindgen_realloc),o=m;d().setInt32(n+4*1,o,!0),d().setInt32(n+4*0,r,!0)}function yn(n,e){throw new Error(x(n,e))}function mn(){const n=f.memory;return _(n)}URL=globalThis.URL;const w=await l({"./tangibl_wasm_bg.js":{__wbindgen_object_drop_ref:q,__wbindgen_is_undefined:D,__wbindgen_in:P,__wbindgen_number_get:R,__wbindgen_is_object:F,__wbindgen_object_clone_ref:J,__wbindgen_jsval_loose_eq:M,__wbindgen_boolean_get:z,__wbindgen_string_get:K,__wbindgen_error_new:V,__wbindgen_string_new:G,__wbg_getwithrefkey_15c62c2b8546208d:H,__wbg_get_3baa728f9d58d3f6:Q,__wbg_length_ae22078168b726f5:X,__wbindgen_is_function:Y,__wbg_next_de3e9db4440638b2:Z,__wbg_next_f9cb570345655b9a:nn,__wbg_done_bfda7aa8f252b39f:en,__wbg_value_6d39332ab4788d86:tn,__wbg_iterator_888179a48810a9fe:rn,__wbg_get_224d16597dbbfd96:on,__wbg_call_1084a111329e68ce:cn,__wbg_isArray_8364a5371e9737d8:un,__wbg_instanceof_ArrayBuffer_61dfc3198373c902:_n,__wbg_isSafeInteger_7f1ed56200d90674:fn,__wbg_buffer_b7b08af79b0b0974:an,__wbg_new_ea1883e1e5e86686:sn,__wbg_set_d1e79e2388520f18:ln,__wbg_length_8339fcf5d8ecd12e:bn,__wbg_instanceof_Uint8Array_247a91427532499e:dn,__wbg_parse_52202f117ec9ecfa:gn,__wbindgen_debug_string:wn,__wbindgen_throw:yn,__wbindgen_memory:mn}},v),hn=w.memory,pn=w.parse,An=w.__wbindgen_malloc,xn=w.__wbindgen_realloc,Sn=w.__wbindgen_exn_store,vn=Object.freeze(Object.defineProperty({__proto__:null,__wbindgen_exn_store:Sn,__wbindgen_malloc:An,__wbindgen_realloc:xn,memory:hn,parse:pn},Symbol.toStringTag,{value:"Module"}));B(vn);const jn=[{code:61,unit:8,orientation:0,x:0,y:0},{code:55,unit:8,orientation:0,x:100,y:0}],On=k(jn),U=document.createElement("pre");U.textContent=JSON.stringify(On,void 0,4),document.body.appendChild(U)})()});export default En(); diff --git a/assets/index-8bf9c0d5.css b/assets/index-8bf9c0d5.css new file mode 100644 index 0000000..69932c6 --- /dev/null +++ b/assets/index-8bf9c0d5.css @@ -0,0 +1 @@ +html,body{padding:0;margin:0;width:100%;height:100%}body{display:flex;align-items:center;flex-direction:column;justify-content:center;width:100%;height:100%}.video-container{width:640px;height:480px}.video-container>*{position:absolute} diff --git a/assets/tangibl_wasm_bg-da83c5a6.wasm b/assets/tangibl_wasm_bg-da83c5a6.wasm new file mode 100644 index 0000000..cdfac0e Binary files /dev/null and b/assets/tangibl_wasm_bg-da83c5a6.wasm differ diff --git a/index.html b/index.html new file mode 100644 index 0000000..4c47213 --- /dev/null +++ b/index.html @@ -0,0 +1,14 @@ + + + + + + Tangibl WASM example + + + + + + + +