@rive-app/webgl-advanced 1.0.33 → 1.0.34

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.33",
3
+ "version": "1.0.34",
4
4
  "description": "Rive's webgl low-level canvas based web api.",
5
5
  "main": "webgl_advanced.mjs",
6
6
  "homepage": "https://rive.app",
@@ -9,7 +9,7 @@ function(Rive) {
9
9
 
10
10
  null;var k;k||(k=typeof Rive !== 'undefined' ? Rive : {});var aa,ba;k.ready=new Promise(function(a,b){aa=a;ba=b});
11
11
  k.onRuntimeInitialized=function(){function a(g){this.xd=g;this.be=g.getContext("2d");this.de=c;this.clear=function(){const h=this.xd,m=c.xd;if(m.width<h.width||m.height<h.height)m.width=h.width,m.height=h.height;c.clear()};this.save=function(){c.save()};this.restore=function(){c.restore()};this.transform=function(h){c.transform(h)};this.align=function(h,m,p,q){c.align(h,m,p,q)};this.computeAlignment=function(h,m,p,q,v){c.Ee(h,m,p,q,v)};this.flush=function(){c.flush();const h=this.be;h.globalCompositeOperation=
12
- "copy";h.drawImage(c.xd,0,0)}}function b(g){var h={alpha:1,depth:1,stencil:8,antialias:0,premultipliedAlpha:1,preserveDrawingBuffer:0,preferLowPowerToHighPerformance:0,failIfMajorPerformanceCaveat:0,enableExtensionsByDefault:1,explicitSwapControl:0,renderViaOffscreenBackBuffer:0},m=g.getContext("webgl2",h);m||(m=g.getContext("webgl",h));var p=m;m=ca(da);var q={Ge:m,attributes:h,version:h.He,Ld:p};p.canvas&&(p.canvas.De=q);da[m]=q;("undefined"===typeof h.ie||h.ie)&&ea(q);l=da[m];k.fe=r=l&&l.Ld;h=d(g.width,
12
+ "copy";h.drawImage(c.xd,0,0)}}function b(g){var h={alpha:1,depth:0,stencil:8,antialias:0,premultipliedAlpha:1,preserveDrawingBuffer:0,preferLowPowerToHighPerformance:0,failIfMajorPerformanceCaveat:0,enableExtensionsByDefault:1,explicitSwapControl:0,renderViaOffscreenBackBuffer:0},m=g.getContext("webgl2",h);m||(m=g.getContext("webgl",h));var p=m;m=ca(da);var q={Ge:m,attributes:h,version:h.He,Ld:p};p.canvas&&(p.canvas.De=q);da[m]=q;("undefined"===typeof h.ie||h.ie)&&ea(q);l=da[m];k.fe=r=l&&l.Ld;h=d(g.width,
13
13
  g.height);h.ce=m;h.xd=g;h.Td=g.width;h.Sd=g.height;return h}let c=null;const d=k.makeRenderer;k.makeRenderer=function(g,h){return h?(c||(c=b(document.createElement("canvas"))),new a(g)):b(g)};const e=k.Artboard.prototype.draw;k.Artboard.prototype.draw=function(g){e.call(this,g.de||g)};const f=k.WebGLRenderer.prototype.clear;k.WebGLRenderer.prototype.clear=function(){l=da[this.ce];k.fe=r=l&&l.Ld;const g=this.xd;if(this.Td!=g.width||this.Sd!=g.height)this.resize(g.width,g.height),this.Td=g.width,this.Sd=
14
14
  g.height;f.call(this)}};var fa={},u;for(u in k)k.hasOwnProperty(u)&&(fa[u]=k[u]);var ha="./this.program",ia="object"===typeof window,ja="function"===typeof importScripts,ka="object"===typeof process&&"object"===typeof process.versions&&"string"===typeof process.versions.node,w="",la,ma,na,oa,pa;
15
15
  if(ka)w=ja?require("path").dirname(w)+"/":__dirname+"/",la=function(a,b){oa||(oa=require("fs"));pa||(pa=require("path"));a=pa.normalize(a);return oa.readFileSync(a,b?null:"utf8")},na=function(a){a=la(a,!0);a.buffer||(a=new Uint8Array(a));a.buffer||qa("Assertion failed: undefined");return a},ma=function(a,b,c){oa||(oa=require("fs"));pa||(pa=require("path"));a=pa.normalize(a);oa.readFile(a,function(d,e){d?c(d):b(e.buffer)})},1<process.argv.length&&(ha=process.argv[1].replace(/\\/g,"/")),process.argv.slice(2),