@rive-app/webgl-advanced 1.0.19 → 1.0.20

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rive-app/webgl-advanced",
3
- "version": "1.0.19",
3
+ "version": "1.0.20",
4
4
  "description": "Rive's webgl low-level canvas based web api.",
5
5
  "main": "webgl_advanced.mjs",
6
6
  "homepage": "https://rive.app",
package/rive.wasm CHANGED
Binary file
@@ -87,9 +87,9 @@ Db(r)+'" from JS side to C/C++ side to an argument of type "'+b+'", which is out
87
87
  b;J(a,{name:b,fromWireType:function(d){var e=D[d>>2];if(c)for(var f=d+4,g=0;g<=e;++g){var h=d+4+g;if(g==e||0==z[h]){f=ya(f,h-f);if(void 0===n)var n=f;else n+=String.fromCharCode(0),n+=f;f=h+1}}else{n=Array(e);for(g=0;g<e;++g)n[g]=String.fromCharCode(z[d+4+g]);n=n.join("")}O(d);return n},toWireType:function(d,e){e instanceof ArrayBuffer&&(e=new Uint8Array(e));var f="string"===typeof e;f||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int8Array||L("Cannot pass non-string to std::string");
88
88
  var g=(c&&f?function(){return Aa(e)}:function(){return e.length})(),h=Cc(4+g+1);D[h>>2]=g;if(c&&f)za(e,z,h+4,g+1);else if(f)for(f=0;f<g;++f){var n=e.charCodeAt(f);255<n&&(O(h),L("String has UTF-16 code units that do not fit in 8 bits"));z[h+4+f]=n}else for(f=0;f<g;++f)z[h+4+f]=e[f];null!==d&&d.push(O,h);return h},argPackAdvance:8,readValueFromPointer:cb,nd:function(d){O(d)}})},u:function(a,b,c){c=K(c);if(2===b){var d=Ca;var e=Ea;var f=Fa;var g=function(){return Da};var h=1}else 4===b&&(d=Ga,e=Ha,
89
89
  f=Ia,g=function(){return D},h=2);J(a,{name:c,fromWireType:function(n){for(var q=D[n>>2],r=g(),v,A=n+4,m=0;m<=q;++m){var t=n+4+m*b;if(m==q||0==r[t>>h])A=d(A,t-A),void 0===v?v=A:(v+=String.fromCharCode(0),v+=A),A=t+b}O(n);return v},toWireType:function(n,q){"string"!==typeof q&&L("Cannot pass non-string to C++ string type "+c);var r=f(q),v=Cc(4+r+b);D[v>>2]=r>>h;e(q,v+4,r+b);null!==n&&n.push(O,v);return v},argPackAdvance:8,readValueFromPointer:cb,nd:function(n){O(n)}})},ib:function(a,b,c,d,e,f){ab[a]=
90
- {name:K(b),Nd:N(c,d),qd:N(e,f),Vd:[]}},bb:function(a,b,c,d,e,f,g,h,n,q){ab[a].Vd.push({ge:K(b),le:c,je:N(d,e),ke:f,te:g,se:N(h,n),ue:q})},xb:function(a,b){b=K(b);J(a,{oe:!0,name:b,argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},nb:function(){throw"longjmp";},oa:function(a,b,c){a=Xb(a);b=Zb(b,"emval::as");var d=[],e=Fb(d);C[c>>2]=e;return b.toWireType(d,a)},U:function(a,b,c,d){a=dc[a];b=Xb(b);c=cc(c);a(b,c,null,d)},Fc:Wb,J:function(a,b){var c=fc(a,b),d=c[0];b=d.name+"_$"+c.slice(1).map(function(r){return r.name}).join("_")+
90
+ {name:K(b),Nd:N(c,d),qd:N(e,f),Vd:[]}},bb:function(a,b,c,d,e,f,g,h,n,q){ab[a].Vd.push({ge:K(b),le:c,je:N(d,e),ke:f,te:g,se:N(h,n),ue:q})},xb:function(a,b){b=K(b);J(a,{oe:!0,name:b,argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},nb:function(){throw"longjmp";},za:function(a,b,c){a=Xb(a);b=Zb(b,"emval::as");var d=[],e=Fb(d);C[c>>2]=e;return b.toWireType(d,a)},U:function(a,b,c,d){a=dc[a];b=Xb(b);c=cc(c);a(b,c,null,d)},Fc:Wb,J:function(a,b){var c=fc(a,b),d=c[0];b=d.name+"_$"+c.slice(1).map(function(r){return r.name}).join("_")+
91
91
  "$";var e=gc[b];if(void 0!==e)return e;e=["retType"];for(var f=[d],g="",h=0;h<a-1;++h)g+=(0!==h?", ":"")+"arg"+h,e.push("argType"+h),f.push(c[1+h]);var n="return function "+gb("methodCaller_"+b)+"(handle, name, destructors, args) {\n",q=0;for(h=0;h<a-1;++h)n+=" var arg"+h+" = argType"+h+".readValueFromPointer(args"+(q?"+"+q:"")+");\n",q+=c[h+1].argPackAdvance;n+=" var rv = handle[name]("+g+");\n";for(h=0;h<a-1;++h)c[h+1].deleteObject&&(n+=" argType"+h+".deleteObject(arg"+h+");\n");d.oe||
92
- (n+=" return retType.toWireType(destructors, rv);\n");e.push(n+"};\n");a=Tb(e).apply(null,f);e=ec(a);return gc[b]=e},Ka:function(a,b){a=Xb(a);b=Xb(b);return Fb(a[b])},Ec:function(a){4<a&&(Q[a].Od+=1)},za:function(a){return Fb(cc(a))},da:function(a){var b=Xb(a);bb(b);Wb(a)},Va:function(a,b){a=Zb(a,"_emval_take_value");a=a.readValueFromPointer(b);return Fb(a)},a:function(){qa("")},ob:function(a,b){if(0===a)a=Date.now();else if(1===a||4===a)a=hc();else return C[Xc()>>2]=28,-1;C[b>>2]=a/1E3|0;C[b+
92
+ (n+=" return retType.toWireType(destructors, rv);\n");e.push(n+"};\n");a=Tb(e).apply(null,f);e=ec(a);return gc[b]=e},Va:function(a,b){a=Xb(a);b=Xb(b);return Fb(a[b])},Ec:function(a){4<a&&(Q[a].Od+=1)},Ka:function(a){return Fb(cc(a))},oa:function(a){var b=Xb(a);bb(b);Wb(a)},da:function(a,b){a=Zb(a,"_emval_take_value");a=a.readValueFromPointer(b);return Fb(a)},a:function(){qa("")},ob:function(a,b){if(0===a)a=Date.now();else if(1===a||4===a)a=hc();else return C[Xc()>>2]=28,-1;C[b>>2]=a/1E3|0;C[b+
93
93
  4>>2]=a%1E3*1E6|0;return 0},Ya:function(a){p.activeTexture(a)},Xa:function(a,b){p.attachShader(R[a],S[b])},Wa:function(a,b,c){p.bindAttribLocation(R[a],b,ya(c))},Ua:function(a,b){35051==a?p.Ld=b:35052==a&&(p.td=b);p.bindBuffer(a,mc[b])},Xb:function(a,b){p.bindFramebuffer(a,nc[b])},Wb:function(a,b){p.bindRenderbuffer(a,oc[b])},Fb:function(a,b){p.bindSampler(a,rc[b])},Ta:function(a,b){p.bindTexture(a,pc[b])},nc:function(a){p.bindVertexArray(qc[a])},kc:function(a){p.bindVertexArray(qc[a])},Sa:function(a,
94
94
  b,c,d){p.blendColor(a,b,c,d)},Ra:function(a){p.blendEquation(a)},Qa:function(a,b){p.blendFunc(a,b)},Kb:function(a,b,c,d,e,f,g,h,n,q){p.blitFramebuffer(a,b,c,d,e,f,g,h,n,q)},Pa:function(a,b,c,d){2<=l.version?c?p.bufferData(a,z,d,c,b):p.bufferData(a,b,d):p.bufferData(a,c?z.subarray(c,c+b):b,d)},Oa:function(a,b,c,d){2<=l.version?p.bufferSubData(a,b,z,d,c):p.bufferSubData(a,b,z.subarray(d,d+c))},Vb:function(a){return p.checkFramebufferStatus(a)},Na:function(a){p.clear(a)},Ma:function(a,b,c,d){p.clearColor(a,
95
95
  b,c,d)},La:function(a){p.clearStencil(a)},$a:function(a,b,c,d){return p.clientWaitSync(sc[a],b,(c>>>0)+4294967296*d)},Ja:function(a,b,c,d){p.colorMask(!!a,!!b,!!c,!!d)},Ia:function(a){p.compileShader(S[a])},Ha:function(a,b,c,d,e,f,g,h){2<=l.version?p.td?p.compressedTexImage2D(a,b,c,d,e,f,g,h):p.compressedTexImage2D(a,b,c,d,e,f,z,h,g):p.compressedTexImage2D(a,b,c,d,e,f,h?z.subarray(h,h+g):null)},Ga:function(a,b,c,d,e,f,g,h,n){2<=l.version?p.td?p.compressedTexSubImage2D(a,b,c,d,e,f,g,h,n):p.compressedTexSubImage2D(a,
@@ -121,7 +121,7 @@ b,c,d){p.viewport(a,b,c,d)},ab:function(a,b,c,d){p.waitSync(sc[a],b,(c>>>0)+4294
121
121
  d:fd,p:gd,i:hd,kb:jd,gb:kd,lb:ld,c:function(a){sa=a},pb:function(a,b,c,d){return Rc(a,b,c,d)}};
122
122
  (function(){function a(e){k.asm=e.exports;ua=k.asm.Gc;Na();Oa=k.asm.Qc;Qa.unshift(k.asm.Hc);Ta--;k.monitorRunDependencies&&k.monitorRunDependencies(Ta);0==Ta&&(null!==Ua&&(clearInterval(Ua),Ua=null),Va&&(e=Va,Va=null,e()))}function b(e){a(e.instance)}function c(e){return Za().then(function(f){return WebAssembly.instantiate(f,d)}).then(function(f){return f}).then(e,function(f){x("failed to asynchronously prepare wasm: "+f);qa(f)})}var d={a:md};Ta++;k.monitorRunDependencies&&k.monitorRunDependencies(Ta);
123
123
  if(k.instantiateWasm)try{return k.instantiateWasm(d,a)}catch(e){return x("Module.instantiateWasm callback failed with error: "+e),!1}(function(){return ta||"function"!==typeof WebAssembly.instantiateStreaming||Wa()||G.startsWith("file://")||"function"!==typeof fetch?c(b):fetch(G,{credentials:"same-origin"}).then(function(e){return WebAssembly.instantiateStreaming(e,d).then(b,function(f){x("wasm streaming compile failed: "+f);x("falling back to ArrayBuffer instantiation");return c(b)})})})().catch(ba);
124
- return{}})();k.___wasm_call_ctors=function(){return(k.___wasm_call_ctors=k.asm.Hc).apply(null,arguments)};var Cc=k._malloc=function(){return(Cc=k._malloc=k.asm.Ic).apply(null,arguments)},Xc=k.___errno_location=function(){return(Xc=k.___errno_location=k.asm.Jc).apply(null,arguments)},O=k._free=function(){return(O=k._free=k.asm.Kc).apply(null,arguments)},Pb=k.___getTypeName=function(){return(Pb=k.___getTypeName=k.asm.Lc).apply(null,arguments)};
124
+ return{}})();k.___wasm_call_ctors=function(){return(k.___wasm_call_ctors=k.asm.Hc).apply(null,arguments)};var Cc=k._malloc=function(){return(Cc=k._malloc=k.asm.Ic).apply(null,arguments)},O=k._free=function(){return(O=k._free=k.asm.Jc).apply(null,arguments)},Xc=k.___errno_location=function(){return(Xc=k.___errno_location=k.asm.Kc).apply(null,arguments)},Pb=k.___getTypeName=function(){return(Pb=k.___getTypeName=k.asm.Lc).apply(null,arguments)};
125
125
  k.___embind_register_native_and_builtin_types=function(){return(k.___embind_register_native_and_builtin_types=k.asm.Mc).apply(null,arguments)};var X=k.stackSave=function(){return(X=k.stackSave=k.asm.Nc).apply(null,arguments)},Y=k.stackRestore=function(){return(Y=k.stackRestore=k.asm.Oc).apply(null,arguments)},Z=k._setThrew=function(){return(Z=k._setThrew=k.asm.Pc).apply(null,arguments)};k.dynCall_iiiij=function(){return(k.dynCall_iiiij=k.asm.Rc).apply(null,arguments)};
126
126
  k.dynCall_viiij=function(){return(k.dynCall_viiij=k.asm.Sc).apply(null,arguments)};k.dynCall_iiij=function(){return(k.dynCall_iiij=k.asm.Tc).apply(null,arguments)};k.dynCall_viij=function(){return(k.dynCall_viij=k.asm.Uc).apply(null,arguments)};k.dynCall_viiiiij=function(){return(k.dynCall_viiiiij=k.asm.Vc).apply(null,arguments)};k.dynCall_jii=function(){return(k.dynCall_jii=k.asm.Wc).apply(null,arguments)};k.dynCall_viji=function(){return(k.dynCall_viji=k.asm.Xc).apply(null,arguments)};
127
127
  k.dynCall_ji=function(){return(k.dynCall_ji=k.asm.Yc).apply(null,arguments)};k.dynCall_iij=function(){return(k.dynCall_iij=k.asm.Zc).apply(null,arguments)};k.dynCall_vij=function(){return(k.dynCall_vij=k.asm._c).apply(null,arguments)};k.dynCall_jiji=function(){return(k.dynCall_jiji=k.asm.$c).apply(null,arguments)};k.dynCall_viijii=function(){return(k.dynCall_viijii=k.asm.ad).apply(null,arguments)};k.dynCall_iiiiij=function(){return(k.dynCall_iiiiij=k.asm.bd).apply(null,arguments)};