@rive-app/webgl-single 1.0.26 → 1.0.27

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.
Files changed (3) hide show
  1. package/package.json +1 -1
  2. package/rive.js +2 -2
  3. package/rive.js.map +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rive-app/webgl-single",
3
- "version": "1.0.26",
3
+ "version": "1.0.27",
4
4
  "description": "Rive's webgl based web api with bundled wasm.",
5
5
  "main": "rive.js",
6
6
  "homepage": "https://rive.app",
package/rive.js CHANGED
@@ -30,7 +30,7 @@ function(Rive) {
30
30
 
31
31
  null;var k;k||(k=typeof Rive !== 'undefined' ? Rive : {});var aa,ba;k.ready=new Promise(function(a,b){aa=a;ba=b});
32
32
  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=
33
- "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,
33
+ "copy";h.drawImage(c.xd,0,0)}}function b(g){var h={alpha:1,depth:1,stencil:8,antialias:1,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,
34
34
  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=
35
35
  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;
36
36
  if(ka)w=ja?require("path").dirname(w)+"/":__dirname+"/",la=function(a,b){var c=qa(a);if(c)return b?c:c.toString();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));assert(a.buffer);return a},ma=function(a,b,c){var d=qa(a);d&&b(d);oa||(oa=require("fs"));pa||(pa=require("path"));a=pa.normalize(a);oa.readFile(a,function(e,f){e?c(e):b(f.buffer)})},1<process.argv.length&&(ha=process.argv[1].replace(/\\/g,
@@ -169,7 +169,7 @@ k.run=sd;if(k.preInit)for("function"==typeof k.preInit&&(k.preInit=[k.preInit]);
169
169
  /* 2 */
170
170
  /***/ ((module) => {
171
171
 
172
- module.exports = JSON.parse('{"name":"@rive-app/webgl-single","version":"1.0.26","description":"Rive\'s webgl based web api with bundled wasm.","main":"rive.js","homepage":"https://rive.app","repository":{"type":"git","url":"https://github.com/rive-app/rive-wasm/tree/master/js"},"keywords":["rive","animation"],"author":"Rive","contributors":["Luigi Rosso <luigi@rive.app> (https://rive.app)","Maxwell Talbot <max@rive.app> (https://rive.app)","Arthur Vivian <arthur@rive.app> (https://rive.app)","Umberto Sonnino <umberto@rive.app> (https://rive.app)","Matthew Sullivan <matt.j.sullivan@gmail.com> (mailto:matt.j.sullivan@gmail.com)"],"license":"MIT","files":["rive.js","rive.js.map","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
172
+ module.exports = JSON.parse('{"name":"@rive-app/webgl-single","version":"1.0.27","description":"Rive\'s webgl based web api with bundled wasm.","main":"rive.js","homepage":"https://rive.app","repository":{"type":"git","url":"https://github.com/rive-app/rive-wasm/tree/master/js"},"keywords":["rive","animation"],"author":"Rive","contributors":["Luigi Rosso <luigi@rive.app> (https://rive.app)","Maxwell Talbot <max@rive.app> (https://rive.app)","Arthur Vivian <arthur@rive.app> (https://rive.app)","Umberto Sonnino <umberto@rive.app> (https://rive.app)","Matthew Sullivan <matt.j.sullivan@gmail.com> (mailto:matt.j.sullivan@gmail.com)"],"license":"MIT","files":["rive.js","rive.js.map","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}');
173
173
 
174
174
  /***/ })
175
175
  /******/ ]);