@agent-play/play-ui 3.4.0 → 3.5.0
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{S as M,b as A,G as R,c as k,E as _,M as S,d as C,B as E,f as m,g as v,h as z,R as U,w as V,i as q,e as G}from"./index-
|
|
1
|
+
import{S as M,b as A,G as R,c as k,E as _,M as S,d as C,B as E,f as m,g as v,h as z,R as U,w as V,i as q,e as G}from"./index-C0EYdIvE.js";const B=class y extends M{constructor(e){e={...y.defaultOptions,...e},super(e),this.enabled=!0,this._state=A.for2d(),this.blendMode=e.blendMode,this.padding=e.padding,typeof e.antialias=="boolean"?this.antialias=e.antialias?"on":"off":this.antialias=e.antialias,this.resolution=e.resolution,this.blendRequired=e.blendRequired,this.clipToViewport=e.clipToViewport,this.addResource("uTexture",0,1),e.blendRequired&&this.addResource("uBackTexture",0,3)}apply(e,t,r,i){e.applyFilter(this,t,r,i)}get blendMode(){return this._state.blendMode}set blendMode(e){this._state.blendMode=e}static from(e){const{gpu:t,gl:r,...i}=e;let n,s;return t&&(n=R.from(t)),r&&(s=k.from(r)),new y({gpuProgram:n,glProgram:s,...i})}};B.defaultOptions={blendMode:"normal",resolution:1,padding:0,antialias:"off",blendRequired:!1,clipToViewport:!0};let Y=B;var X=`in vec2 aPosition;
|
|
2
2
|
out vec2 vTextureCoord;
|
|
3
3
|
|
|
4
4
|
uniform vec4 uInputSize;
|
package/dist/index.html
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agent-play/play-ui",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.0",
|
|
4
4
|
"description": "Vite-built watch canvas (Pixi.js) for Agent Play. Publishes static files under dist/ for self-hosting or embedding beside your own API.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|