textmode.js 0.9.1-beta.1 → 0.9.2

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.
@@ -4217,7 +4217,7 @@ class xt {
4217
4217
  yt._(t);
4218
4218
  }
4219
4219
  static get version() {
4220
- return "0.9.1-beta.1";
4220
+ return "0.9.2";
4221
4221
  }
4222
4222
  }
4223
4223
  const oi = Object.freeze(Object.defineProperty({ __proto__: null, LoadingPhase: qt, LoadingPhaseTracker: Wt, LoadingScreenManager: Jt, LoadingScreenStateMachine: Vt, LoadingScreenTransition: Zt, resolveColorInputs: $t, resolveDefaultPalette: Qt, resolveTheme: At }, Symbol.toStringTag, { value: "Module" })), ai = Object.freeze(Object.defineProperty({ __proto__: null, TextmodeFont: Y, TextmodeImage: V, TextmodeSource: Et, TextmodeTexture: Z, TextmodeVideo: ut }, Symbol.toStringTag, { value: "Module" })), li = Object.freeze(Object.defineProperty({ __proto__: null, keyboard: je, mouse: Ge, touch: Ke }, Symbol.toStringTag, { value: "Module" })), ci = Object.freeze(Object.defineProperty({ __proto__: null, LayerCompositor: te, TextmodeLayer: ot, TextmodeLayerManager: ie }, Symbol.toStringTag, { value: "Module" })), ui = xt.create, fi = xt.setErrorLevel, di = xt.version;
@@ -16,4 +16,4 @@ precision highp float;uniform sampler2D u_texture;uniform float Ue;in vec2 v_uv;
16
16
  precision highp float;uniform sampler2D u_texture;uniform float Ue;in vec2 v_uv;out vec4 fragColor;void main(){vec4 A=texture(u_texture,v_uv);vec3 B;B.r=dot(A.rgb,vec3(0.393,0.769,0.189));B.g=dot(A.rgb,vec3(0.349,0.686,0.168));B.b=dot(A.rgb,vec3(0.272,0.534,0.131));vec3 C=mix(A.rgb,B,Ue);fragColor=vec4(C,A.a);}`,{Ue:["amount",1]}),this.register("threshold",`#version 300 es
17
17
  precision highp float;uniform sampler2D u_texture;uniform float Ui;in vec2 v_uv;out vec4 fragColor;void main(){vec4 A=texture(u_texture,v_uv);float B=dot(A.rgb,vec3(0.299,0.587,0.114));float C=step(Ui,B);fragColor=vec4(vec3(C),A.a);}`,{Ui:["threshold",.5]})}}const ti=Object.freeze(Object.defineProperty({__proto__:null,TextmodeFilterManager:ne},Symbol.toStringTag,{value:"Module"}));class he{constructor(t,e){o(this,"za");o(this,"R");o(this,"nu");o(this,"hu");o(this,"ou");o(this,"au");o(this,"Zl",!1);o(this,"cu",new Set);o(this,"lu",[]);o(this,"uu");o(this,"fu");this.za=t,this.R=t.R,this.hu=new ne(this.R),this.nu=new re(this.R,this.za.Xr.width,this.za.Xr.height),this.ou=new Je({onRemove:i=>this.za.yl.rc(i),onDispose:i=>i==null?void 0:i.Ss()}),this.au=new dt(this.R,{visible:!0,opacity:1,fontSize:e.fontSize,fontSource:e.fontSource})}async Er(){await this.du(this.au);const t=this.za.Xr;this.uu=this.R.Hi(t.width,t.height,1),this.fu=this.R.Hi(t.width,t.height,1),this.hu.Er(t.width,t.height),await this.ou.initialize(e=>this.du(e)),this.Zl=!0}pu(t,e){this.lu.push({name:t,params:e})}vu(){this.lu=[]}add(t={}){const e=new dt(this.R,t);return this.ou.isReady&&this.du(e),this.ou.add(e),e}remove(t){this.ou.remove(t)}move(t,e){this.ou.move(t,e)}swap(t,e){this.ou.swap(t,e)}clear(){this.ou.clear()}gu(t){this.za.yl.tc(),this.au.Da(this.za,this.za.Hl);const e=[...this.R.state.canvasBackgroundColor];this.ou.all.forEach(i=>i.Da(this.za,this.za.Hl)),this.mu(t,e)}_u(){this.gu(this.uu);let t=this.uu.textures[0];if(this.lu.length>0){const i=this.za.Xr;this.hu.su(this.uu.textures[0],this.fu,this.lu,i.width,i.height),t=this.fu.textures[0],this.lu=[]}const e=this.za.Xr;this.R.xe(0,0,0,0),this.R.xi(this.za.Bl),this.za.Bl.gt({u_texture:t}),this.R.Ei(0,0,e.width,e.height),this.za.yl.ec()}mu(t,e){const i=this.za.Xr,s=this.au.grid,r=this.au.texture;if(!r)return;const h={layer:this.au,texture:r,width:s.width,height:s.height,offsetX:s.offsetX+this.au.el,offsetY:s.offsetY+this.au.il},a=this.ou.all.filter(l=>!!l.grid&&!!l.texture).map(l=>{const u=l.grid;return{layer:l,texture:l.texture,width:u.width,height:u.height,offsetX:u.offsetX+l.el,offsetY:u.offsetY+l.il}});this.nu.Ql({base:h,layers:a,targetFramebuffer:t,backgroundColor:e,canvasWidth:i.width,canvasHeight:i.height})}vn(){var e,i,s;if(!this.Zl)return;const t=this.za.Xr;this.au.vn(),this.ou.all.forEach(r=>r.vn()),this.nu.vn(t.width,t.height),(e=this.uu)==null||e.resize(t.width,t.height),(i=this.fu)==null||i.resize(t.width,t.height),(s=this.hu)==null||s.vn(t.width,t.height)}Ss(){var t,e;this.ou.dispose(),this.za.yl.rc(this.au),this.au.Ss(),this.hu.Ss(),this.nu.Ss(),(t=this.uu)==null||t.dispose(),(e=this.fu)==null||e.dispose(),this.lu=[]}get all(){return this.ou.all}get base(){return this.au}get filters(){return this.hu}get resultFramebuffer(){return this.fu}yu(){const t=this.ou.all;for(let e=t.length-1;e>=0;e--){const i=t[e];if(i.tl&&i.grid)return i.grid}return this.au.grid}wu(t){this.cu.add(t)}Au(){for(const t of this.cu)t()}async du(t){var i;const e={renderer:this.R,canvas:this.za.Xr,filterManager:this.hu,createFramebuffer:(s,r,h=1,a)=>this.R.Hi(s,r,h,a)};await t.ml(e),(i=t.grid)==null||i.Vr(()=>this.Au())}}const ei={id:"brightness",createShader:({gl:n})=>new k(n,ht,`#version 300 es
18
18
  precision highp float;in vec2 v_uv;uniform sampler2D u_image;uniform bool u_invert;uniform bool u_flipX;uniform bool u_flipY;uniform float u_charRotation;uniform bool u_charColorFixed;uniform vec4 u_charColor;uniform bool u_cellColorFixed;uniform vec4 u_cellColor;uniform vec4 u_backgroundColor;uniform int u_charCount;uniform vec3 u_charList[255];layout(location=0)out vec4 o_character;layout(location=1)out vec4 o_primaryColor;layout(location=2)out vec4 o_secondaryColor;layout(location=3)out vec4 A;float B(vec3 C){return dot(C,vec3(0.299f,0.587f,0.114f));}void main(){vec2 D=vec2(v_uv.x,1.0f-v_uv.y);vec4 E=texture(u_image,D);float F=B(E.rgb);vec2 G=vec2(0.);if(u_charCount>0){float H=float(u_charCount);float I=clamp(F*(H-1.0f),0.0f,H-1.0f);int J=int(floor(I+0.5f));vec3 K=u_charList[J];G=K.xy;}else{G=vec2(0.0f,0.0f);}vec4 L=u_charColorFixed?u_charColor:E;vec4 M=u_cellColorFixed?u_cellColor:E;if(E.a<0.01f){discard;}o_primaryColor=vec4(L.rgb,L.a);o_secondaryColor=vec4(M.rgb,M.a);A=vec4(0.);int N=int(u_invert?1:0);int O=int(u_flipX?1:0);int P=int(u_flipY?1:0);float Q=float(N|(O<<1)|(P<<2))/255.;o_character=vec4(G,Q,clamp(u_charRotation,0.0f,1.0f));}`),createUniforms:({source:n})=>n.createBaseConversionUniforms()};class oe{constructor(){o(this,"bu",new Map);o(this,"Jl",new Map);this.Cu()}register(t){this.bu.set(t.id,t)}unregister(t){const e=this.Jl.get(t);return e&&(e.dispose(),this.Jl.delete(t)),this.bu.delete(t)}has(t){return this.bu.has(t)}jn(t){return this.bu.get(t)}Nn(t,e){let i=this.Jl.get(t);if(!i){const s=this.bu.get(t);if(!s)throw new Error(`[textmode.js] Conversion mode "${t}" is not registered.`);i=s.createShader(e),this.Jl.set(t,i)}return i}Ss(){for(const t of this.Jl.values())t.dispose();this.Jl.clear(),this.bu.clear()}Cu(){this.register(ei)}}const ii=Object.freeze(Object.defineProperty({__proto__:null,TextmodeConversionManager:oe},Symbol.toStringTag,{value:"Module"}));class ae extends function(e,...i){return i.reduce((s,r)=>r(s),e)}(class{},Ve,je,Ke,We,Ze){constructor(e={}){super();o(this,"R");o(this,"Hl");o(this,"Bl");o(this,"Xr");o(this,"Ra");o(this,"bo");o(this,"La");o(this,"Oa");o(this,"xu");o(this,"Mu");o(this,"wl");o(this,"En");o(this,"Fu",new Set);o(this,"yl");o(this,"$u",!1);o(this,"Pu",!1);o(this,"Tu",!1);o(this,"Su",!1);o(this,"Eu",()=>{});o(this,"ku",()=>{});o(this,"Ru");o(this,"Du");o(this,"Lu");o(this,"rn",!1);o(this,"Ou");o(this,"zu");this.yl=new Wt(this),this.rn=e.overlay??!1,this.Xr=new kt(e),this.R=new Fe(this.Xr.gn()),this.Hl=this.R.Mi($,`#version 300 es
19
- precision highp float;uniform sampler2D u_characterTexture;uniform vec2 u_charsetDimensions;uniform sampler2D U0;uniform sampler2D U1;uniform sampler2D U2;uniform vec2 U3;uniform vec2 U4;uniform vec4 U5;in vec2 v_uv;out vec4 fragColor;mat2 A(float B){float C=sin(B);float D=cos(B);return mat2(D,-C,C,D);}void main(){vec2 E=gl_FragCoord.xy/U4;vec2 F=E*U3;vec2 G=floor(F);vec2 H=(G+0.5)/U3;vec4 I=texture(U0,H);vec4 J=texture(U1,H);vec4 K=texture(U2,H);int L=int(K.b*255.+0.5);bool M=(L&1)!=0;bool N=(L&2)!=0;bool O=(L&4)!=0;int P=int(K.r*255.+0.5)+int(K.g*255.+0.5)*256;int Q=int(u_charsetDimensions.x);int R=P/Q;int S=P-(R*Q);float T=(u_charsetDimensions.y-1.)-float(R);vec2 U=1./u_charsetDimensions;vec2 V=vec2(float(S),T)*U;vec2 W=V+U;float X=-K.a*360.*0.017453292;vec2 Y=fract(F)-0.5f;vec2 Z=vec2(N?-1.:1.,O?-1.:1.);Y*=Z;Y=A(X)*Y+0.5;vec2 a=V+clamp(Y,0.,1.)*U;const float b=0.0001;if(any(lessThan(a,V-b))||any(greaterThan(a,W+b))){fragColor=M?I:J;return;}vec4 c=texture(u_characterTexture,a);if(M)c.rgb=mix(c.rgb,1.-c.rgb,float(M));vec4 d=mix(U5,J,J.a);fragColor=mix(d,I,c);}`),this.Bl=this.R.Mi($,Zt),this.Ra=new Ht(e.frameRate??60),this.xu=new ie(this,e.loadingScreen,this.Xr.pn()),this.xu.Ol(()=>{this.Ra.gh=0,this.Su=!0}),this.Mu=new he(this,e);const i=()=>this.Hu();this.bo=new Vt(this.Xr,i),this.La=new Kt(this.Xr,i,this.bo),this.Oa=new jt,this.En=new oe,this.yl.Wa(e.plugins??[]),this.xu.rh(),this.Bu()}ka(e){var i;this.Fu.add(e),(i=e.C)==null||i.call(e,()=>{this.Fu.delete(e)})}async Bu(){await this.Mu.Er(),await this.xu.Er();const e=this.Mu.base.grid;this.Mu.wu(()=>{this.bo.Wh(),this.La.Wh()}),this.rn&&(this.Ou=Z.Qn(this.R,this.En,this.Xr.targetCanvas,e.cols,e.rows)),this.Iu(),this.Ra.rh(()=>this.Da());try{await this.yl.oc(),await this.Eu(),await this.yl.cc(),this.xu.Ic()}catch(i){console.error("Error during setup:",i),this.xu.error(i)}}Iu(){this.Ru=()=>{this.rn&&this.resizeCanvas(this.Xr.targetCanvas.width,this.Xr.targetCanvas.height),this.ku()},window.addEventListener("resize",this.Ru),this.bo.Ih(),this.La.Ih(),this.Oa.Ih(),this.Du=()=>{this.Oa.Ao()},window.addEventListener("blur",this.Du),this.rn&&(this.Lu=new ResizeObserver(()=>{this.resizeCanvas(this.Xr.targetCanvas.width,this.Xr.targetCanvas.height)}),this.Lu.observe(this.Xr.targetCanvas))}Da(){if(!this.xu.Oc&&this.Su){this.Pu=!0;try{this.Ra.uh(),this.Ra.mh(),this.rn&&et(this.R.context,this.Ou.texture,this.Xr.targetCanvas),this.Mu._u()}finally{this.Pu=!1,this.$u&&!this.Tu&&this.Gu()}}}resizeCanvas(e,i){var s;this.Xr.vn(e,i),this.xu.Il(this.Xr.pn()),this.xu.vn(),(s=this.Mu)==null||s.vn(),this.R.Gi(),this.Da()}destroy(){this.Tu||this.$u||(this.$u=!0,this.Ra.hh(),this.Pu||this.Gu())}Gu(){var e,i,s,r;this.$u=!1,this.Xr.Ss(),this.xu.Ss(),this.yl.lc(),window.removeEventListener("resize",this.Ru),window.removeEventListener("blur",this.Du),(e=this.Lu)==null||e.disconnect(),this.bo.Kh(),this.La.Kh(),this.Oa.Kh(),(i=this.Mu)==null||i.Ss(),(s=this.En)==null||s.Ss();for(const h of this.Fu)h.dispose();this.Fu.clear(),this.Hl.dispose(),this.Bl.dispose(),this.R.Ss(),(r=this.Ou)==null||r.dispose(),this.Tu=!0}filter(e,i){this.Mu.pu(e,i)}draw(e){this.Mu.base.draw(e)}async loadFont(e,i=!0){if(i)return await this.Mu.base.loadFont(e),this.Mu.base.font;if(e instanceof V)return e.Gr||await e.Er(),e;const s=new V(this.R);return await s.Er(e),this.ka(s),s}fontSize(e){return this.Mu.base.fontSize(e)}inputGrid(e){return e===void 0?this.zu??"topmost":e==="topmost"?(this.zu=void 0,this.bo.Wh(),void this.La.Wh()):(this.zu=e,this.bo.Wh(),void this.La.Wh())}Hu(){return this.zu?this.zu:this.Mu.yu()}async setup(e){this.Eu=e}windowResized(e){this.ku=e}get grid(){var e;return((e=this.wl)==null?void 0:e.grid)??this.Mu.base.grid}get font(){var e;return((e=this.wl)==null?void 0:e.font)??this.Mu.base.font}get width(){return this.Xr.width}get height(){return this.Xr.height}get canvas(){return this.Xr.canvas}get isDisposed(){return this.Tu}get overlay(){return this.Ou}get loading(){return this.xu}get layers(){return this.Mu}get filters(){return this.Mu.filters}get conversions(){return this.En}get isRenderingFrame(){return this.Pu}}class gt{constructor(){}static create(t={}){return new ae(t)}static setErrorLevel(t){mt._(t)}static get version(){return"0.9.1-beta.1"}}const si=Object.freeze(Object.defineProperty({__proto__:null,LoadingPhase:ee,LoadingPhaseTracker:Qt,LoadingScreenManager:ie,LoadingScreenStateMachine:$t,LoadingScreenTransition:qt,resolveColorInputs:te,resolveDefaultPalette:Jt,resolveTheme:Tt},Symbol.toStringTag,{value:"Module"})),ri=Object.freeze(Object.defineProperty({__proto__:null,TextmodeFont:V,TextmodeImage:Z,TextmodeSource:Rt,TextmodeTexture:Q,TextmodeVideo:ut},Symbol.toStringTag,{value:"Module"})),ni=Object.freeze(Object.defineProperty({__proto__:null,keyboard:He,mouse:ke,touch:Ge},Symbol.toStringTag,{value:"Module"})),hi=Object.freeze(Object.defineProperty({__proto__:null,LayerCompositor:re,TextmodeLayer:dt,TextmodeLayerManager:he},Symbol.toStringTag,{value:"Module"})),oi=gt.create,ai=gt.setErrorLevel,li=gt.version;E.TextmodeCanvas=kt,E.TextmodeColor=x,E.TextmodeError=R,E.TextmodeErrorLevel=N,E.TextmodeFramebuffer=it,E.TextmodeGrid=zt,E.TextmodeShader=k,E.Textmodifier=ae,E.conversion=ii,E.create=oi,E.filters=ti,E.input=ni,E.layering=hi,E.loadables=ri,E.loading=si,E.plugins=Qe,E.setErrorLevel=ai,E.textmode=gt,E.version=li,Object.defineProperty(E,Symbol.toStringTag,{value:"Module"})});
19
+ precision highp float;uniform sampler2D u_characterTexture;uniform vec2 u_charsetDimensions;uniform sampler2D U0;uniform sampler2D U1;uniform sampler2D U2;uniform vec2 U3;uniform vec2 U4;uniform vec4 U5;in vec2 v_uv;out vec4 fragColor;mat2 A(float B){float C=sin(B);float D=cos(B);return mat2(D,-C,C,D);}void main(){vec2 E=gl_FragCoord.xy/U4;vec2 F=E*U3;vec2 G=floor(F);vec2 H=(G+0.5)/U3;vec4 I=texture(U0,H);vec4 J=texture(U1,H);vec4 K=texture(U2,H);int L=int(K.b*255.+0.5);bool M=(L&1)!=0;bool N=(L&2)!=0;bool O=(L&4)!=0;int P=int(K.r*255.+0.5)+int(K.g*255.+0.5)*256;int Q=int(u_charsetDimensions.x);int R=P/Q;int S=P-(R*Q);float T=(u_charsetDimensions.y-1.)-float(R);vec2 U=1./u_charsetDimensions;vec2 V=vec2(float(S),T)*U;vec2 W=V+U;float X=-K.a*360.*0.017453292;vec2 Y=fract(F)-0.5f;vec2 Z=vec2(N?-1.:1.,O?-1.:1.);Y*=Z;Y=A(X)*Y+0.5;vec2 a=V+clamp(Y,0.,1.)*U;const float b=0.0001;if(any(lessThan(a,V-b))||any(greaterThan(a,W+b))){fragColor=M?I:J;return;}vec4 c=texture(u_characterTexture,a);if(M)c.rgb=mix(c.rgb,1.-c.rgb,float(M));vec4 d=mix(U5,J,J.a);fragColor=mix(d,I,c);}`),this.Bl=this.R.Mi($,Zt),this.Ra=new Ht(e.frameRate??60),this.xu=new ie(this,e.loadingScreen,this.Xr.pn()),this.xu.Ol(()=>{this.Ra.gh=0,this.Su=!0}),this.Mu=new he(this,e);const i=()=>this.Hu();this.bo=new Vt(this.Xr,i),this.La=new Kt(this.Xr,i,this.bo),this.Oa=new jt,this.En=new oe,this.yl.Wa(e.plugins??[]),this.xu.rh(),this.Bu()}ka(e){var i;this.Fu.add(e),(i=e.C)==null||i.call(e,()=>{this.Fu.delete(e)})}async Bu(){await this.Mu.Er(),await this.xu.Er();const e=this.Mu.base.grid;this.Mu.wu(()=>{this.bo.Wh(),this.La.Wh()}),this.rn&&(this.Ou=Z.Qn(this.R,this.En,this.Xr.targetCanvas,e.cols,e.rows)),this.Iu(),this.Ra.rh(()=>this.Da());try{await this.yl.oc(),await this.Eu(),await this.yl.cc(),this.xu.Ic()}catch(i){console.error("Error during setup:",i),this.xu.error(i)}}Iu(){this.Ru=()=>{this.rn&&this.resizeCanvas(this.Xr.targetCanvas.width,this.Xr.targetCanvas.height),this.ku()},window.addEventListener("resize",this.Ru),this.bo.Ih(),this.La.Ih(),this.Oa.Ih(),this.Du=()=>{this.Oa.Ao()},window.addEventListener("blur",this.Du),this.rn&&(this.Lu=new ResizeObserver(()=>{this.resizeCanvas(this.Xr.targetCanvas.width,this.Xr.targetCanvas.height)}),this.Lu.observe(this.Xr.targetCanvas))}Da(){if(!this.xu.Oc&&this.Su){this.Pu=!0;try{this.Ra.uh(),this.Ra.mh(),this.rn&&et(this.R.context,this.Ou.texture,this.Xr.targetCanvas),this.Mu._u()}finally{this.Pu=!1,this.$u&&!this.Tu&&this.Gu()}}}resizeCanvas(e,i){var s;this.Xr.vn(e,i),this.xu.Il(this.Xr.pn()),this.xu.vn(),(s=this.Mu)==null||s.vn(),this.R.Gi(),this.Da()}destroy(){this.Tu||this.$u||(this.$u=!0,this.Ra.hh(),this.Pu||this.Gu())}Gu(){var e,i,s,r;this.$u=!1,this.Xr.Ss(),this.xu.Ss(),this.yl.lc(),window.removeEventListener("resize",this.Ru),window.removeEventListener("blur",this.Du),(e=this.Lu)==null||e.disconnect(),this.bo.Kh(),this.La.Kh(),this.Oa.Kh(),(i=this.Mu)==null||i.Ss(),(s=this.En)==null||s.Ss();for(const h of this.Fu)h.dispose();this.Fu.clear(),this.Hl.dispose(),this.Bl.dispose(),this.R.Ss(),(r=this.Ou)==null||r.dispose(),this.Tu=!0}filter(e,i){this.Mu.pu(e,i)}draw(e){this.Mu.base.draw(e)}async loadFont(e,i=!0){if(i)return await this.Mu.base.loadFont(e),this.Mu.base.font;if(e instanceof V)return e.Gr||await e.Er(),e;const s=new V(this.R);return await s.Er(e),this.ka(s),s}fontSize(e){return this.Mu.base.fontSize(e)}inputGrid(e){return e===void 0?this.zu??"topmost":e==="topmost"?(this.zu=void 0,this.bo.Wh(),void this.La.Wh()):(this.zu=e,this.bo.Wh(),void this.La.Wh())}Hu(){return this.zu?this.zu:this.Mu.yu()}async setup(e){this.Eu=e}windowResized(e){this.ku=e}get grid(){var e;return((e=this.wl)==null?void 0:e.grid)??this.Mu.base.grid}get font(){var e;return((e=this.wl)==null?void 0:e.font)??this.Mu.base.font}get width(){return this.Xr.width}get height(){return this.Xr.height}get canvas(){return this.Xr.canvas}get isDisposed(){return this.Tu}get overlay(){return this.Ou}get loading(){return this.xu}get layers(){return this.Mu}get filters(){return this.Mu.filters}get conversions(){return this.En}get isRenderingFrame(){return this.Pu}}class gt{constructor(){}static create(t={}){return new ae(t)}static setErrorLevel(t){mt._(t)}static get version(){return"0.9.2"}}const si=Object.freeze(Object.defineProperty({__proto__:null,LoadingPhase:ee,LoadingPhaseTracker:Qt,LoadingScreenManager:ie,LoadingScreenStateMachine:$t,LoadingScreenTransition:qt,resolveColorInputs:te,resolveDefaultPalette:Jt,resolveTheme:Tt},Symbol.toStringTag,{value:"Module"})),ri=Object.freeze(Object.defineProperty({__proto__:null,TextmodeFont:V,TextmodeImage:Z,TextmodeSource:Rt,TextmodeTexture:Q,TextmodeVideo:ut},Symbol.toStringTag,{value:"Module"})),ni=Object.freeze(Object.defineProperty({__proto__:null,keyboard:He,mouse:ke,touch:Ge},Symbol.toStringTag,{value:"Module"})),hi=Object.freeze(Object.defineProperty({__proto__:null,LayerCompositor:re,TextmodeLayer:dt,TextmodeLayerManager:he},Symbol.toStringTag,{value:"Module"})),oi=gt.create,ai=gt.setErrorLevel,li=gt.version;E.TextmodeCanvas=kt,E.TextmodeColor=x,E.TextmodeError=R,E.TextmodeErrorLevel=N,E.TextmodeFramebuffer=it,E.TextmodeGrid=zt,E.TextmodeShader=k,E.Textmodifier=ae,E.conversion=ii,E.create=oi,E.filters=ti,E.input=ni,E.layering=hi,E.loadables=ri,E.loading=si,E.plugins=Qe,E.setErrorLevel=ai,E.textmode=gt,E.version=li,Object.defineProperty(E,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "textmode.js",
3
- "version": "0.9.1-beta.1",
3
+ "version": "0.9.2",
4
4
  "description": "textmode.js is a lightweight creative coding library for creating real-time ASCII art on the web.",
5
5
  "type": "module",
6
6
  "engines": {