@sqaitech/playground 0.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.
- package/dist/es/adapters/base.mjs +131 -0
- package/dist/es/adapters/base.mjs.map +1 -0
- package/dist/es/adapters/local-execution.mjs +140 -0
- package/dist/es/adapters/local-execution.mjs.map +1 -0
- package/dist/es/adapters/remote-execution.mjs +308 -0
- package/dist/es/adapters/remote-execution.mjs.map +1 -0
- package/dist/es/common.mjs +148 -0
- package/dist/es/common.mjs.map +1 -0
- package/dist/es/index.browser.mjs +9 -0
- package/dist/es/index.browser.mjs.map +1 -0
- package/dist/es/index.mjs +8 -0
- package/dist/es/launcher.mjs +95 -0
- package/dist/es/launcher.mjs.map +1 -0
- package/dist/es/sdk/index.mjs +102 -0
- package/dist/es/sdk/index.mjs.map +1 -0
- package/dist/es/server.mjs +385 -0
- package/dist/es/server.mjs.map +1 -0
- package/dist/es/types.mjs +0 -0
- package/dist/lib/adapters/base.js +165 -0
- package/dist/lib/adapters/base.js.map +1 -0
- package/dist/lib/adapters/local-execution.js +174 -0
- package/dist/lib/adapters/local-execution.js.map +1 -0
- package/dist/lib/adapters/remote-execution.js +342 -0
- package/dist/lib/adapters/remote-execution.js.map +1 -0
- package/dist/lib/common.js +200 -0
- package/dist/lib/common.js.map +1 -0
- package/dist/lib/index.browser.js +73 -0
- package/dist/lib/index.browser.js.map +1 -0
- package/dist/lib/index.js +77 -0
- package/dist/lib/index.js.map +1 -0
- package/dist/lib/launcher.js +140 -0
- package/dist/lib/launcher.js.map +1 -0
- package/dist/lib/sdk/index.js +136 -0
- package/dist/lib/sdk/index.js.map +1 -0
- package/dist/lib/server.js +435 -0
- package/dist/lib/server.js.map +1 -0
- package/dist/lib/types.js +20 -0
- package/dist/lib/types.js.map +1 -0
- package/dist/types/adapters/base.d.ts +20 -0
- package/dist/types/adapters/local-execution.d.ts +31 -0
- package/dist/types/adapters/remote-execution.d.ts +38 -0
- package/dist/types/common.d.ts +9 -0
- package/dist/types/index.browser.d.ts +7 -0
- package/dist/types/index.d.ts +9 -0
- package/dist/types/launcher.d.ts +97 -0
- package/dist/types/sdk/index.d.ts +31 -0
- package/dist/types/server.d.ts +75 -0
- package/dist/types/types.d.ts +49 -0
- package/package.json +51 -0
- package/static/favicon.ico +0 -0
- package/static/index.html +1 -0
- package/static/static/css/index.60c69390.css +2 -0
- package/static/static/css/index.60c69390.css.map +1 -0
- package/static/static/image/sqai-logo.b7f781cd.png +0 -0
- package/static/static/js/931.dc961e99.js +620 -0
- package/static/static/js/931.dc961e99.js.LICENSE.txt +146 -0
- package/static/static/js/931.dc961e99.js.map +1 -0
- package/static/static/js/async/173.9cf6b074.js +3 -0
- package/static/static/js/async/173.9cf6b074.js.map +1 -0
- package/static/static/js/async/212.e243c338.js +158 -0
- package/static/static/js/async/212.e243c338.js.map +1 -0
- package/static/static/js/async/329.f888b505.js +26 -0
- package/static/static/js/async/329.f888b505.js.map +1 -0
- package/static/static/js/async/364.1821e74b.js +30 -0
- package/static/static/js/async/364.1821e74b.js.map +1 -0
- package/static/static/js/async/544.b73fa603.js +2 -0
- package/static/static/js/async/544.b73fa603.js.map +1 -0
- package/static/static/js/async/582.5dccae2d.js +21 -0
- package/static/static/js/async/582.5dccae2d.js.map +1 -0
- package/static/static/js/async/624.45ee2b2c.js +3 -0
- package/static/static/js/async/624.45ee2b2c.js.map +1 -0
- package/static/static/js/async/644.6bdc4065.js +1 -0
- package/static/static/js/async/659.9afd03db.js +21 -0
- package/static/static/js/async/659.9afd03db.js.map +1 -0
- package/static/static/js/async/702.60261735.js +231 -0
- package/static/static/js/async/702.60261735.js.map +1 -0
- package/static/static/js/async/920.7d9a9aa8.js +2 -0
- package/static/static/js/async/920.7d9a9aa8.js.map +1 -0
- package/static/static/js/async/983.8b91303f.js +1 -0
- package/static/static/js/index.0c5d4f3b.js +10 -0
- package/static/static/js/index.0c5d4f3b.js.LICENSE.txt +7 -0
- package/static/static/js/index.0c5d4f3b.js.map +1 -0
- package/static/static/js/index.3890f2de.js +10 -0
- package/static/static/js/index.3890f2de.js.LICENSE.txt +7 -0
- package/static/static/js/index.3890f2de.js.map +1 -0
- package/static/static/js/index.39b0d1ea.js +10 -0
- package/static/static/js/index.39b0d1ea.js.LICENSE.txt +7 -0
- package/static/static/js/index.39b0d1ea.js.map +1 -0
- package/static/static/js/index.3f24d218.js +10 -0
- package/static/static/js/index.3f24d218.js.LICENSE.txt +7 -0
- package/static/static/js/index.3f24d218.js.map +1 -0
- package/static/static/js/index.5cccbdaf.js +10 -0
- package/static/static/js/index.5cccbdaf.js.LICENSE.txt +7 -0
- package/static/static/js/index.5cccbdaf.js.map +1 -0
- package/static/static/js/index.8a10896b.js +10 -0
- package/static/static/js/index.8a10896b.js.LICENSE.txt +7 -0
- package/static/static/js/index.8a10896b.js.map +1 -0
- package/static/static/js/index.afc8ef37.js +10 -0
- package/static/static/js/index.afc8ef37.js.LICENSE.txt +7 -0
- package/static/static/js/index.afc8ef37.js.map +1 -0
- package/static/static/js/index.b8a17a87.js +10 -0
- package/static/static/js/index.b8a17a87.js.LICENSE.txt +7 -0
- package/static/static/js/index.b8a17a87.js.map +1 -0
- package/static/static/js/index.d0dcab60.js +10 -0
- package/static/static/js/index.d0dcab60.js.LICENSE.txt +7 -0
- package/static/static/js/index.d0dcab60.js.map +1 -0
- package/static/static/js/index.f21bb1df.js +10 -0
- package/static/static/js/index.f21bb1df.js.LICENSE.txt +7 -0
- package/static/static/js/index.f21bb1df.js.map +1 -0
- package/static/static/js/lib-react.f566a9ed.js +3 -0
- package/static/static/js/lib-react.f566a9ed.js.LICENSE.txt +39 -0
- package/static/static/js/lib-react.f566a9ed.js.map +1 -0
- package/static/static/svg/server-offline-foreground.3113df3c.svg +36 -0
- package/static/static/wasm/9e906fbf55e08f98.module.wasm +0 -0
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkplayground=self.webpackChunkplayground||[]).push([["702"],{43200:function(e,r,t){t.d(r,{o:()=>U,d:()=>M});var o=t(95098),n=t(45025),i=t(92245);function a(e,r,t){if(e)for(let o in e){let n=r[o.toLocaleLowerCase()];if(n){let r=e[o];"header"===o&&(r=r.replace(/@in\s+[^;]+;\s*/g,"").replace(/@out\s+[^;]+;\s*/g,"")),t&&n.push(`//----${t}----//`),n.push(r)}else(0,i.Z)(`${o} placement hook does not exist in shader`)}}let u=/\{\{(.*?)\}\}/g;function l(e){let r={};return(e.match(u)?.map(e=>e.replace(/[{()}]/g,""))??[]).forEach(e=>{r[e]=[]}),r}function s(e,r){let t,o=/@in\s+([^;]+);/g;for(;null!==(t=o.exec(e));)r.push(t[1])}function f(e,r,t=!1){let o=[];s(r,o),e.forEach(e=>{e.header&&s(e.header,o)}),t&&o.sort();let n=o.map((e,r)=>` @location(${r}) ${e},`).join("\n"),i=r.replace(/@in\s+[^;]+;\s*/g,"");return i.replace("{{in}}",`
|
|
2
|
+
${n}
|
|
3
|
+
`)}function c(e,r){let t,o=/@out\s+([^;]+);/g;for(;null!==(t=o.exec(e));)r.push(t[1])}function v(e,r){let t=e;for(let e in r){let o=r[e];t=o.join("\n").length?t.replace(`{{${e}}}`,`//-----${e} START-----//
|
|
4
|
+
${o.join("\n")}
|
|
5
|
+
//----${e} FINISH----//`):t.replace(`{{${e}}}`,"")}return t}let d=Object.create(null),m=new Map,x=0;function p(e,r){return r.map(e=>(m.has(e)||m.set(e,x++),m.get(e))).sort((e,r)=>e-r).join("-")+e.vertex+e.fragment}function h(e,r,t){let o=l(e),n=l(r);return t.forEach(e=>{a(e.vertex,o,e.name),a(e.fragment,n,e.name)}),{vertex:v(e,o),fragment:v(r,n)}}let g=`
|
|
6
|
+
@in aPosition: vec2<f32>;
|
|
7
|
+
@in aUV: vec2<f32>;
|
|
8
|
+
|
|
9
|
+
@out @builtin(position) vPosition: vec4<f32>;
|
|
10
|
+
@out vUV : vec2<f32>;
|
|
11
|
+
@out vColor : vec4<f32>;
|
|
12
|
+
|
|
13
|
+
{{header}}
|
|
14
|
+
|
|
15
|
+
struct VSOutput {
|
|
16
|
+
{{struct}}
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
@vertex
|
|
20
|
+
fn main( {{in}} ) -> VSOutput {
|
|
21
|
+
|
|
22
|
+
var worldTransformMatrix = globalUniforms.uWorldTransformMatrix;
|
|
23
|
+
var modelMatrix = mat3x3<f32>(
|
|
24
|
+
1.0, 0.0, 0.0,
|
|
25
|
+
0.0, 1.0, 0.0,
|
|
26
|
+
0.0, 0.0, 1.0
|
|
27
|
+
);
|
|
28
|
+
var position = aPosition;
|
|
29
|
+
var uv = aUV;
|
|
30
|
+
|
|
31
|
+
{{start}}
|
|
32
|
+
|
|
33
|
+
vColor = vec4<f32>(1., 1., 1., 1.);
|
|
34
|
+
|
|
35
|
+
{{main}}
|
|
36
|
+
|
|
37
|
+
vUV = uv;
|
|
38
|
+
|
|
39
|
+
var modelViewProjectionMatrix = globalUniforms.uProjectionMatrix * worldTransformMatrix * modelMatrix;
|
|
40
|
+
|
|
41
|
+
vPosition = vec4<f32>((modelViewProjectionMatrix * vec3<f32>(position, 1.0)).xy, 0.0, 1.0);
|
|
42
|
+
|
|
43
|
+
vColor *= globalUniforms.uWorldColorAlpha;
|
|
44
|
+
|
|
45
|
+
{{end}}
|
|
46
|
+
|
|
47
|
+
{{return}}
|
|
48
|
+
};
|
|
49
|
+
`,b=`
|
|
50
|
+
@in vUV : vec2<f32>;
|
|
51
|
+
@in vColor : vec4<f32>;
|
|
52
|
+
|
|
53
|
+
{{header}}
|
|
54
|
+
|
|
55
|
+
@fragment
|
|
56
|
+
fn main(
|
|
57
|
+
{{in}}
|
|
58
|
+
) -> @location(0) vec4<f32> {
|
|
59
|
+
|
|
60
|
+
{{start}}
|
|
61
|
+
|
|
62
|
+
var outColor:vec4<f32>;
|
|
63
|
+
|
|
64
|
+
{{main}}
|
|
65
|
+
|
|
66
|
+
return outColor * vColor;
|
|
67
|
+
};
|
|
68
|
+
`,C=`
|
|
69
|
+
in vec2 aPosition;
|
|
70
|
+
in vec2 aUV;
|
|
71
|
+
|
|
72
|
+
out vec4 vColor;
|
|
73
|
+
out vec2 vUV;
|
|
74
|
+
|
|
75
|
+
{{header}}
|
|
76
|
+
|
|
77
|
+
void main(void){
|
|
78
|
+
|
|
79
|
+
mat3 worldTransformMatrix = uWorldTransformMatrix;
|
|
80
|
+
mat3 modelMatrix = mat3(
|
|
81
|
+
1.0, 0.0, 0.0,
|
|
82
|
+
0.0, 1.0, 0.0,
|
|
83
|
+
0.0, 0.0, 1.0
|
|
84
|
+
);
|
|
85
|
+
vec2 position = aPosition;
|
|
86
|
+
vec2 uv = aUV;
|
|
87
|
+
|
|
88
|
+
{{start}}
|
|
89
|
+
|
|
90
|
+
vColor = vec4(1.);
|
|
91
|
+
|
|
92
|
+
{{main}}
|
|
93
|
+
|
|
94
|
+
vUV = uv;
|
|
95
|
+
|
|
96
|
+
mat3 modelViewProjectionMatrix = uProjectionMatrix * worldTransformMatrix * modelMatrix;
|
|
97
|
+
|
|
98
|
+
gl_Position = vec4((modelViewProjectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);
|
|
99
|
+
|
|
100
|
+
vColor *= uWorldColorAlpha;
|
|
101
|
+
|
|
102
|
+
{{end}}
|
|
103
|
+
}
|
|
104
|
+
`,P=`
|
|
105
|
+
|
|
106
|
+
in vec4 vColor;
|
|
107
|
+
in vec2 vUV;
|
|
108
|
+
|
|
109
|
+
out vec4 finalColor;
|
|
110
|
+
|
|
111
|
+
{{header}}
|
|
112
|
+
|
|
113
|
+
void main(void) {
|
|
114
|
+
|
|
115
|
+
{{start}}
|
|
116
|
+
|
|
117
|
+
vec4 outColor;
|
|
118
|
+
|
|
119
|
+
{{main}}
|
|
120
|
+
|
|
121
|
+
finalColor = outColor * vColor;
|
|
122
|
+
}
|
|
123
|
+
`,T={name:"global-uniforms-bit",vertex:{header:`
|
|
124
|
+
struct GlobalUniforms {
|
|
125
|
+
uProjectionMatrix:mat3x3<f32>,
|
|
126
|
+
uWorldTransformMatrix:mat3x3<f32>,
|
|
127
|
+
uWorldColorAlpha: vec4<f32>,
|
|
128
|
+
uResolution: vec2<f32>,
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
@group(0) @binding(0) var<uniform> globalUniforms : GlobalUniforms;
|
|
132
|
+
`}},$={name:"global-uniforms-bit",vertex:{header:`
|
|
133
|
+
uniform mat3 uProjectionMatrix;
|
|
134
|
+
uniform mat3 uWorldTransformMatrix;
|
|
135
|
+
uniform vec4 uWorldColorAlpha;
|
|
136
|
+
uniform vec2 uResolution;
|
|
137
|
+
`}};function M({bits:e,name:r}){let t=function({template:e,bits:r}){let t=p(e,r);if(d[t])return d[t];let{vertex:o,fragment:n}=function(e,r){let t=r.map(e=>e.vertex).filter(e=>!!e),o=r.map(e=>e.fragment).filter(e=>!!e),n=f(t,e.vertex,!0);return{vertex:n=function(e,r){let t=[];c(r,t),e.forEach(e=>{e.header&&c(e.header,t)});let o=0,n=t.sort().map(e=>e.indexOf("builtin")>-1?e:`@location(${o++}) ${e}`).join(",\n"),i=t.sort().map(e=>` var ${e.replace(/@.*?\s+/g,"")};`).join("\n"),a=`return VSOutput(
|
|
138
|
+
${t.sort().map(e=>` ${function(e){let r=/\b(\w+)\s*:/g.exec(e);return r?r[1]:""}(e)}`).join(",\n")});`,u=r.replace(/@out\s+[^;]+;\s*/g,"");return(u=(u=u.replace("{{struct}}",`
|
|
139
|
+
${n}
|
|
140
|
+
`)).replace("{{start}}",`
|
|
141
|
+
${i}
|
|
142
|
+
`)).replace("{{return}}",`
|
|
143
|
+
${a}
|
|
144
|
+
`)}(t,n),fragment:f(o,e.fragment,!0)}}(e,r);return d[t]=h(o,n,r),d[t]}({template:{fragment:b,vertex:g},bits:[T,...e]});return n.O.from({name:r,vertex:{source:t.vertex,entryPoint:"main"},fragment:{source:t.fragment,entryPoint:"main"}})}function U({bits:e,name:r}){return new o.J({name:r,...function({template:e,bits:r}){let t=p(e,r);return d[t]||(d[t]=h(e.vertex,e.fragment,r)),d[t]}({template:{vertex:C,fragment:P},bits:[$,...e]})})}},23149:function(e,r,t){t.d(r,{M:()=>o,T:()=>n});let o={name:"color-bit",vertex:{header:`
|
|
145
|
+
@in aColor: vec4<f32>;
|
|
146
|
+
`,main:`
|
|
147
|
+
vColor *= vec4<f32>(aColor.rgb * aColor.a, aColor.a);
|
|
148
|
+
`}},n={name:"color-bit",vertex:{header:`
|
|
149
|
+
in vec4 aColor;
|
|
150
|
+
`,main:`
|
|
151
|
+
vColor *= vec4(aColor.rgb * aColor.a, aColor.a);
|
|
152
|
+
`}}},39193:function(e,r,t){t.d(r,{h:()=>a,m:()=>n});let o={};function n(e){return o[e]||(o[e]={name:"texture-batch-bit",vertex:{header:`
|
|
153
|
+
@in aTextureIdAndRound: vec2<u32>;
|
|
154
|
+
@out @interpolate(flat) vTextureId : u32;
|
|
155
|
+
`,main:`
|
|
156
|
+
vTextureId = aTextureIdAndRound.y;
|
|
157
|
+
`,end:`
|
|
158
|
+
if(aTextureIdAndRound.x == 1)
|
|
159
|
+
{
|
|
160
|
+
vPosition = vec4<f32>(roundPixels(vPosition.xy, globalUniforms.uResolution), vPosition.zw);
|
|
161
|
+
}
|
|
162
|
+
`},fragment:{header:`
|
|
163
|
+
@in @interpolate(flat) vTextureId: u32;
|
|
164
|
+
|
|
165
|
+
${function(e){let r=[];{let e=0;for(let t=0;t<16;t++)r.push(`@group(1) @binding(${e++}) var textureSource${t+1}: texture_2d<f32>;`),r.push(`@group(1) @binding(${e++}) var textureSampler${t+1}: sampler;`)}return r.join("\n")}(16)}
|
|
166
|
+
`,main:`
|
|
167
|
+
var uvDx = dpdx(vUV);
|
|
168
|
+
var uvDy = dpdy(vUV);
|
|
169
|
+
|
|
170
|
+
${function(e){let r=[];r.push("switch vTextureId {");for(let t=0;t<16;t++)t===e-1?r.push(" default:{"):r.push(` case ${t}:{`),r.push(` outColor = textureSampleGrad(textureSource${t+1}, textureSampler${t+1}, vUV, uvDx, uvDy);`),r.push(" break;}");return r.push("}"),r.join("\n")}(16)}
|
|
171
|
+
`}}),o[e]}let i={};function a(e){return i[e]||(i[e]={name:"texture-batch-bit",vertex:{header:`
|
|
172
|
+
in vec2 aTextureIdAndRound;
|
|
173
|
+
out float vTextureId;
|
|
174
|
+
|
|
175
|
+
`,main:`
|
|
176
|
+
vTextureId = aTextureIdAndRound.y;
|
|
177
|
+
`,end:`
|
|
178
|
+
if(aTextureIdAndRound.x == 1.)
|
|
179
|
+
{
|
|
180
|
+
gl_Position.xy = roundPixels(gl_Position.xy, uResolution);
|
|
181
|
+
}
|
|
182
|
+
`},fragment:{header:`
|
|
183
|
+
in float vTextureId;
|
|
184
|
+
|
|
185
|
+
uniform sampler2D uTextures[${e}];
|
|
186
|
+
|
|
187
|
+
`,main:`
|
|
188
|
+
|
|
189
|
+
${function(e){let r=[];for(let e=0;e<16;e++)e>0&&r.push("else"),e<15&&r.push(`if(vTextureId < ${e}.5)`),r.push("{"),r.push(` outColor = texture(uTextures[${e}], vUV);`),r.push("}");return r.join("\n")}(16)}
|
|
190
|
+
`}}),i[e]}},78300:function(e,r,t){t.d(r,{$g:()=>i,Kt:()=>n,XH:()=>o});let o={name:"local-uniform-bit",vertex:{header:`
|
|
191
|
+
|
|
192
|
+
struct LocalUniforms {
|
|
193
|
+
uTransformMatrix:mat3x3<f32>,
|
|
194
|
+
uColor:vec4<f32>,
|
|
195
|
+
uRound:f32,
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
@group(1) @binding(0) var<uniform> localUniforms : LocalUniforms;
|
|
199
|
+
`,main:`
|
|
200
|
+
vColor *= localUniforms.uColor;
|
|
201
|
+
modelMatrix *= localUniforms.uTransformMatrix;
|
|
202
|
+
`,end:`
|
|
203
|
+
if(localUniforms.uRound == 1)
|
|
204
|
+
{
|
|
205
|
+
vPosition = vec4(roundPixels(vPosition.xy, globalUniforms.uResolution), vPosition.zw);
|
|
206
|
+
}
|
|
207
|
+
`}},n={...o,vertex:{...o.vertex,header:o.vertex.header.replace("group(1)","group(2)")}},i={name:"local-uniform-bit",vertex:{header:`
|
|
208
|
+
|
|
209
|
+
uniform mat3 uTransformMatrix;
|
|
210
|
+
uniform vec4 uColor;
|
|
211
|
+
uniform float uRound;
|
|
212
|
+
`,main:`
|
|
213
|
+
vColor *= uColor;
|
|
214
|
+
modelMatrix = uTransformMatrix;
|
|
215
|
+
`,end:`
|
|
216
|
+
if(uRound == 1.)
|
|
217
|
+
{
|
|
218
|
+
gl_Position.xy = roundPixels(gl_Position.xy, uResolution);
|
|
219
|
+
}
|
|
220
|
+
`}}},71067:function(e,r,t){t.d(r,{X:()=>n,j:()=>o});let o={name:"round-pixels-bit",vertex:{header:`
|
|
221
|
+
fn roundPixels(position: vec2<f32>, targetSize: vec2<f32>) -> vec2<f32>
|
|
222
|
+
{
|
|
223
|
+
return (floor(((position * 0.5 + 0.5) * targetSize) + 0.5) / targetSize) * 2.0 - 1.0;
|
|
224
|
+
}
|
|
225
|
+
`}},n={name:"round-pixels-bit",vertex:{header:`
|
|
226
|
+
vec2 roundPixels(vec2 position, vec2 targetSize)
|
|
227
|
+
{
|
|
228
|
+
return (floor(((position * 0.5 + 0.5) * targetSize) + 0.5) / targetSize) * 2.0 - 1.0;
|
|
229
|
+
}
|
|
230
|
+
`}}},23947:function(e,r,t){t.d(r,{V:()=>o});function o(e,r,t){let o=(e>>24&255)/255;r[t++]=(255&e)/255*o,r[t++]=(e>>8&255)/255*o,r[t++]=(e>>16&255)/255*o,r[t++]=o}},88556:function(e,r,t){t.d(r,{c:()=>o});class o{constructor(){this.vertexSize=4,this.indexSize=6,this.location=0,this.batcher=null,this.batch=null,this.roundPixels=0}get blendMode(){return this.renderable.groupBlendMode}packAttributes(e,r,t,o){let n=this.renderable,i=this.texture,a=n.groupTransform,u=a.a,l=a.b,s=a.c,f=a.d,c=a.tx,v=a.ty,d=this.bounds,m=d.maxX,x=d.minX,p=d.maxY,h=d.minY,g=i.uvs,b=n.groupColorAlpha,C=o<<16|65535&this.roundPixels;e[t+0]=u*x+s*h+c,e[t+1]=f*h+l*x+v,e[t+2]=g.x0,e[t+3]=g.y0,r[t+4]=b,r[t+5]=C,e[t+6]=u*m+s*h+c,e[t+7]=f*h+l*m+v,e[t+8]=g.x1,e[t+9]=g.y1,r[t+10]=b,r[t+11]=C,e[t+12]=u*m+s*p+c,e[t+13]=f*p+l*m+v,e[t+14]=g.x2,e[t+15]=g.y2,r[t+16]=b,r[t+17]=C,e[t+18]=u*x+s*p+c,e[t+19]=f*p+l*x+v,e[t+20]=g.x3,e[t+21]=g.y3,r[t+22]=b,r[t+23]=C}packIndex(e,r,t){e[r]=t+0,e[r+1]=t+1,e[r+2]=t+2,e[r+3]=t+0,e[r+4]=t+2,e[r+5]=t+3}reset(){this.renderable=null,this.texture=null,this.batcher=null,this.batch=null,this.bounds=null}}}}]);
|
|
231
|
+
//# sourceMappingURL=702.60261735.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"static/js/async/702.60261735.js","sources":["webpack://playground/../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/high-shader/compiler/utils/addBits.mjs","webpack://playground/../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/high-shader/compiler/utils/compileHooks.mjs","webpack://playground/../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/high-shader/compiler/utils/compileInputs.mjs","webpack://playground/../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/high-shader/compiler/utils/compileOutputs.mjs","webpack://playground/../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/high-shader/compiler/utils/injectBits.mjs","webpack://playground/../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/high-shader/compiler/compileHighShader.mjs","webpack://playground/../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/high-shader/defaultProgramTemplate.mjs","webpack://playground/../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/high-shader/shader-bits/globalUniformsBit.mjs","webpack://playground/../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/high-shader/compileHighShaderToProgram.mjs","webpack://playground/../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/high-shader/shader-bits/colorBit.mjs","webpack://playground/../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/high-shader/shader-bits/generateTextureBatchBit.mjs","webpack://playground/../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/high-shader/shader-bits/localUniformBit.mjs","webpack://playground/../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/rendering/high-shader/shader-bits/roundPixelsBit.mjs","webpack://playground/../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/graphics/gpu/colorToUniform.mjs","webpack://playground/../../node_modules/.pnpm/pixi.js@8.1.1/node_modules/pixi.js/lib/scene/sprite/BatchableSprite.mjs"],"sourcesContent":["import { warn } from '../../../../utils/logging/warn.mjs';\n\n\"use strict\";\nfunction addBits(srcParts, parts, name) {\n if (srcParts) {\n for (const i in srcParts) {\n const id = i.toLocaleLowerCase();\n const part = parts[id];\n if (part) {\n let sanitisedPart = srcParts[i];\n if (i === \"header\") {\n sanitisedPart = sanitisedPart.replace(/@in\\s+[^;]+;\\s*/g, \"\").replace(/@out\\s+[^;]+;\\s*/g, \"\");\n }\n if (name) {\n part.push(`//----${name}----//`);\n }\n part.push(sanitisedPart);\n } else {\n warn(`${i} placement hook does not exist in shader`);\n }\n }\n }\n}\n\nexport { addBits };\n//# sourceMappingURL=addBits.mjs.map\n","\"use strict\";\nconst findHooksRx = /\\{\\{(.*?)\\}\\}/g;\nfunction compileHooks(programSrc) {\n const parts = {};\n const partMatches = programSrc.match(findHooksRx)?.map((hook) => hook.replace(/[{()}]/g, \"\")) ?? [];\n partMatches.forEach((hook) => {\n parts[hook] = [];\n });\n return parts;\n}\n\nexport { compileHooks, findHooksRx };\n//# sourceMappingURL=compileHooks.mjs.map\n","\"use strict\";\nfunction extractInputs(fragmentSource, out) {\n let match;\n const regex = /@in\\s+([^;]+);/g;\n while ((match = regex.exec(fragmentSource)) !== null) {\n out.push(match[1]);\n }\n}\nfunction compileInputs(fragments, template, sort = false) {\n const results = [];\n extractInputs(template, results);\n fragments.forEach((fragment) => {\n if (fragment.header) {\n extractInputs(fragment.header, results);\n }\n });\n const mainInput = results;\n if (sort) {\n mainInput.sort();\n }\n const finalString = mainInput.map((inValue, i) => ` @location(${i}) ${inValue},`).join(\"\\n\");\n let cleanedString = template.replace(/@in\\s+[^;]+;\\s*/g, \"\");\n cleanedString = cleanedString.replace(\"{{in}}\", `\n${finalString}\n`);\n return cleanedString;\n}\n\nexport { compileInputs };\n//# sourceMappingURL=compileInputs.mjs.map\n","\"use strict\";\nfunction extractOutputs(fragmentSource, out) {\n let match;\n const regex = /@out\\s+([^;]+);/g;\n while ((match = regex.exec(fragmentSource)) !== null) {\n out.push(match[1]);\n }\n}\nfunction extractVariableName(value) {\n const regex = /\\b(\\w+)\\s*:/g;\n const match = regex.exec(value);\n return match ? match[1] : \"\";\n}\nfunction stripVariable(value) {\n const regex = /@.*?\\s+/g;\n return value.replace(regex, \"\");\n}\nfunction compileOutputs(fragments, template) {\n const results = [];\n extractOutputs(template, results);\n fragments.forEach((fragment) => {\n if (fragment.header) {\n extractOutputs(fragment.header, results);\n }\n });\n let index = 0;\n const mainStruct = results.sort().map((inValue) => {\n if (inValue.indexOf(\"builtin\") > -1) {\n return inValue;\n }\n return `@location(${index++}) ${inValue}`;\n }).join(\",\\n\");\n const mainStart = results.sort().map((inValue) => ` var ${stripVariable(inValue)};`).join(\"\\n\");\n const mainEnd = `return VSOutput(\n ${results.sort().map((inValue) => ` ${extractVariableName(inValue)}`).join(\",\\n\")});`;\n let compiledCode = template.replace(/@out\\s+[^;]+;\\s*/g, \"\");\n compiledCode = compiledCode.replace(\"{{struct}}\", `\n${mainStruct}\n`);\n compiledCode = compiledCode.replace(\"{{start}}\", `\n${mainStart}\n`);\n compiledCode = compiledCode.replace(\"{{return}}\", `\n${mainEnd}\n`);\n return compiledCode;\n}\n\nexport { compileOutputs };\n//# sourceMappingURL=compileOutputs.mjs.map\n","\"use strict\";\nfunction injectBits(templateSrc, fragmentParts) {\n let out = templateSrc;\n for (const i in fragmentParts) {\n const parts = fragmentParts[i];\n const toInject = parts.join(\"\\n\");\n if (toInject.length) {\n out = out.replace(`{{${i}}}`, `//-----${i} START-----//\n${parts.join(\"\\n\")}\n//----${i} FINISH----//`);\n } else {\n out = out.replace(`{{${i}}}`, \"\");\n }\n }\n return out;\n}\n\nexport { injectBits };\n//# sourceMappingURL=injectBits.mjs.map\n","import { addBits } from './utils/addBits.mjs';\nimport { compileHooks } from './utils/compileHooks.mjs';\nimport { compileInputs } from './utils/compileInputs.mjs';\nimport { compileOutputs } from './utils/compileOutputs.mjs';\nimport { injectBits } from './utils/injectBits.mjs';\n\n\"use strict\";\nconst cacheMap = /* @__PURE__ */ Object.create(null);\nconst bitCacheMap = /* @__PURE__ */ new Map();\nlet CACHE_UID = 0;\nfunction compileHighShader({\n template,\n bits\n}) {\n const cacheId = generateCacheId(template, bits);\n if (cacheMap[cacheId])\n return cacheMap[cacheId];\n const { vertex, fragment } = compileInputsAndOutputs(template, bits);\n cacheMap[cacheId] = compileBits(vertex, fragment, bits);\n return cacheMap[cacheId];\n}\nfunction compileHighShaderGl({\n template,\n bits\n}) {\n const cacheId = generateCacheId(template, bits);\n if (cacheMap[cacheId])\n return cacheMap[cacheId];\n cacheMap[cacheId] = compileBits(template.vertex, template.fragment, bits);\n return cacheMap[cacheId];\n}\nfunction compileInputsAndOutputs(template, bits) {\n const vertexFragments = bits.map((shaderBit) => shaderBit.vertex).filter((v) => !!v);\n const fragmentFragments = bits.map((shaderBit) => shaderBit.fragment).filter((v) => !!v);\n let compiledVertex = compileInputs(vertexFragments, template.vertex, true);\n compiledVertex = compileOutputs(vertexFragments, compiledVertex);\n const compiledFragment = compileInputs(fragmentFragments, template.fragment, true);\n return {\n vertex: compiledVertex,\n fragment: compiledFragment\n };\n}\nfunction generateCacheId(template, bits) {\n return bits.map((highFragment) => {\n if (!bitCacheMap.has(highFragment)) {\n bitCacheMap.set(highFragment, CACHE_UID++);\n }\n return bitCacheMap.get(highFragment);\n }).sort((a, b) => a - b).join(\"-\") + template.vertex + template.fragment;\n}\nfunction compileBits(vertex, fragment, bits) {\n const vertexParts = compileHooks(vertex);\n const fragmentParts = compileHooks(fragment);\n bits.forEach((shaderBit) => {\n addBits(shaderBit.vertex, vertexParts, shaderBit.name);\n addBits(shaderBit.fragment, fragmentParts, shaderBit.name);\n });\n return {\n vertex: injectBits(vertex, vertexParts),\n fragment: injectBits(fragment, fragmentParts)\n };\n}\n\nexport { compileHighShader, compileHighShaderGl };\n//# sourceMappingURL=compileHighShader.mjs.map\n","\"use strict\";\nconst vertexGPUTemplate = (\n /* wgsl */\n `\n @in aPosition: vec2<f32>;\n @in aUV: vec2<f32>;\n\n @out @builtin(position) vPosition: vec4<f32>;\n @out vUV : vec2<f32>;\n @out vColor : vec4<f32>;\n\n {{header}}\n\n struct VSOutput {\n {{struct}}\n };\n\n @vertex\n fn main( {{in}} ) -> VSOutput {\n\n var worldTransformMatrix = globalUniforms.uWorldTransformMatrix;\n var modelMatrix = mat3x3<f32>(\n 1.0, 0.0, 0.0,\n 0.0, 1.0, 0.0,\n 0.0, 0.0, 1.0\n );\n var position = aPosition;\n var uv = aUV;\n\n {{start}}\n \n vColor = vec4<f32>(1., 1., 1., 1.);\n\n {{main}}\n\n vUV = uv;\n\n var modelViewProjectionMatrix = globalUniforms.uProjectionMatrix * worldTransformMatrix * modelMatrix;\n\n vPosition = vec4<f32>((modelViewProjectionMatrix * vec3<f32>(position, 1.0)).xy, 0.0, 1.0);\n \n vColor *= globalUniforms.uWorldColorAlpha;\n\n {{end}}\n\n {{return}}\n };\n`\n);\nconst fragmentGPUTemplate = (\n /* wgsl */\n `\n @in vUV : vec2<f32>;\n @in vColor : vec4<f32>;\n \n {{header}}\n\n @fragment\n fn main(\n {{in}}\n ) -> @location(0) vec4<f32> {\n \n {{start}}\n\n var outColor:vec4<f32>;\n \n {{main}}\n \n return outColor * vColor;\n };\n`\n);\nconst vertexGlTemplate = (\n /* glsl */\n `\n in vec2 aPosition;\n in vec2 aUV;\n\n out vec4 vColor;\n out vec2 vUV;\n\n {{header}}\n\n void main(void){\n\n mat3 worldTransformMatrix = uWorldTransformMatrix;\n mat3 modelMatrix = mat3(\n 1.0, 0.0, 0.0,\n 0.0, 1.0, 0.0,\n 0.0, 0.0, 1.0\n );\n vec2 position = aPosition;\n vec2 uv = aUV;\n \n {{start}}\n \n vColor = vec4(1.);\n \n {{main}}\n \n vUV = uv;\n \n mat3 modelViewProjectionMatrix = uProjectionMatrix * worldTransformMatrix * modelMatrix;\n\n gl_Position = vec4((modelViewProjectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);\n\n vColor *= uWorldColorAlpha;\n\n {{end}}\n }\n`\n);\nconst fragmentGlTemplate = (\n /* glsl */\n `\n \n in vec4 vColor;\n in vec2 vUV;\n\n out vec4 finalColor;\n\n {{header}}\n\n void main(void) {\n \n {{start}}\n\n vec4 outColor;\n \n {{main}}\n \n finalColor = outColor * vColor;\n }\n`\n);\n\nexport { fragmentGPUTemplate, fragmentGlTemplate, vertexGPUTemplate, vertexGlTemplate };\n//# sourceMappingURL=defaultProgramTemplate.mjs.map\n","\"use strict\";\nconst globalUniformsBit = {\n name: \"global-uniforms-bit\",\n vertex: {\n header: (\n /* wgsl */\n `\n struct GlobalUniforms {\n uProjectionMatrix:mat3x3<f32>,\n uWorldTransformMatrix:mat3x3<f32>,\n uWorldColorAlpha: vec4<f32>,\n uResolution: vec2<f32>,\n }\n\n @group(0) @binding(0) var<uniform> globalUniforms : GlobalUniforms;\n `\n )\n }\n};\nconst globalUniformsUBOBitGl = {\n name: \"global-uniforms-ubo-bit\",\n vertex: {\n header: (\n /* glsl */\n `\n uniform globalUniforms {\n mat3 uProjectionMatrix;\n mat3 uWorldTransformMatrix;\n vec4 uWorldColorAlpha;\n vec2 uResolution;\n };\n `\n )\n }\n};\nconst globalUniformsBitGl = {\n name: \"global-uniforms-bit\",\n vertex: {\n header: (\n /* glsl */\n `\n uniform mat3 uProjectionMatrix;\n uniform mat3 uWorldTransformMatrix;\n uniform vec4 uWorldColorAlpha;\n uniform vec2 uResolution;\n `\n )\n }\n};\n\nexport { globalUniformsBit, globalUniformsBitGl, globalUniformsUBOBitGl };\n//# sourceMappingURL=globalUniformsBit.mjs.map\n","import { GlProgram } from '../renderers/gl/shader/GlProgram.mjs';\nimport { GpuProgram } from '../renderers/gpu/shader/GpuProgram.mjs';\nimport { compileHighShader, compileHighShaderGl } from './compiler/compileHighShader.mjs';\nimport { fragmentGPUTemplate, vertexGPUTemplate, vertexGlTemplate, fragmentGlTemplate } from './defaultProgramTemplate.mjs';\nimport { globalUniformsBit, globalUniformsBitGl } from './shader-bits/globalUniformsBit.mjs';\n\n\"use strict\";\nfunction compileHighShaderGpuProgram({ bits, name }) {\n const source = compileHighShader({\n template: {\n fragment: fragmentGPUTemplate,\n vertex: vertexGPUTemplate\n },\n bits: [\n globalUniformsBit,\n ...bits\n ]\n });\n return GpuProgram.from({\n name,\n vertex: {\n source: source.vertex,\n entryPoint: \"main\"\n },\n fragment: {\n source: source.fragment,\n entryPoint: \"main\"\n }\n });\n}\nfunction compileHighShaderGlProgram({ bits, name }) {\n return new GlProgram({\n name,\n ...compileHighShaderGl({\n template: {\n vertex: vertexGlTemplate,\n fragment: fragmentGlTemplate\n },\n bits: [\n globalUniformsBitGl,\n ...bits\n ]\n })\n });\n}\n\nexport { compileHighShaderGlProgram, compileHighShaderGpuProgram };\n//# sourceMappingURL=compileHighShaderToProgram.mjs.map\n","\"use strict\";\nconst colorBit = {\n name: \"color-bit\",\n vertex: {\n header: (\n /* wgsl */\n `\n @in aColor: vec4<f32>;\n `\n ),\n main: (\n /* wgsl */\n `\n vColor *= vec4<f32>(aColor.rgb * aColor.a, aColor.a);\n `\n )\n }\n};\nconst colorBitGl = {\n name: \"color-bit\",\n vertex: {\n header: (\n /* glsl */\n `\n in vec4 aColor;\n `\n ),\n main: (\n /* glsl */\n `\n vColor *= vec4(aColor.rgb * aColor.a, aColor.a);\n `\n )\n }\n};\n\nexport { colorBit, colorBitGl };\n//# sourceMappingURL=colorBit.mjs.map\n","\"use strict\";\nconst textureBatchBitGpuCache = {};\nfunction generateBindingSrc(maxTextures) {\n const src = [];\n if (maxTextures === 1) {\n src.push(\"@group(1) @binding(0) var textureSource1: texture_2d<f32>;\");\n src.push(\"@group(1) @binding(1) var textureSampler1: sampler;\");\n } else {\n let bindingIndex = 0;\n for (let i = 0; i < maxTextures; i++) {\n src.push(`@group(1) @binding(${bindingIndex++}) var textureSource${i + 1}: texture_2d<f32>;`);\n src.push(`@group(1) @binding(${bindingIndex++}) var textureSampler${i + 1}: sampler;`);\n }\n }\n return src.join(\"\\n\");\n}\nfunction generateSampleSrc(maxTextures) {\n const src = [];\n if (maxTextures === 1) {\n src.push(\"outColor = textureSampleGrad(textureSource1, textureSampler1, vUV, uvDx, uvDy);\");\n } else {\n src.push(\"switch vTextureId {\");\n for (let i = 0; i < maxTextures; i++) {\n if (i === maxTextures - 1) {\n src.push(` default:{`);\n } else {\n src.push(` case ${i}:{`);\n }\n src.push(` outColor = textureSampleGrad(textureSource${i + 1}, textureSampler${i + 1}, vUV, uvDx, uvDy);`);\n src.push(` break;}`);\n }\n src.push(`}`);\n }\n return src.join(\"\\n\");\n}\nfunction generateTextureBatchBit(maxTextures) {\n if (!textureBatchBitGpuCache[maxTextures]) {\n textureBatchBitGpuCache[maxTextures] = {\n name: \"texture-batch-bit\",\n vertex: {\n header: `\n @in aTextureIdAndRound: vec2<u32>;\n @out @interpolate(flat) vTextureId : u32;\n `,\n main: `\n vTextureId = aTextureIdAndRound.y;\n `,\n end: `\n if(aTextureIdAndRound.x == 1)\n {\n vPosition = vec4<f32>(roundPixels(vPosition.xy, globalUniforms.uResolution), vPosition.zw);\n }\n `\n },\n fragment: {\n header: `\n @in @interpolate(flat) vTextureId: u32;\n \n ${generateBindingSrc(16)}\n `,\n main: `\n var uvDx = dpdx(vUV);\n var uvDy = dpdy(vUV);\n \n ${generateSampleSrc(16)}\n `\n }\n };\n }\n return textureBatchBitGpuCache[maxTextures];\n}\nconst textureBatchBitGlCache = {};\nfunction generateSampleGlSrc(maxTextures) {\n const src = [];\n for (let i = 0; i < maxTextures; i++) {\n if (i > 0) {\n src.push(\"else\");\n }\n if (i < maxTextures - 1) {\n src.push(`if(vTextureId < ${i}.5)`);\n }\n src.push(\"{\");\n src.push(`\toutColor = texture(uTextures[${i}], vUV);`);\n src.push(\"}\");\n }\n return src.join(\"\\n\");\n}\nfunction generateTextureBatchBitGl(maxTextures) {\n if (!textureBatchBitGlCache[maxTextures]) {\n textureBatchBitGlCache[maxTextures] = {\n name: \"texture-batch-bit\",\n vertex: {\n header: `\n in vec2 aTextureIdAndRound;\n out float vTextureId;\n \n `,\n main: `\n vTextureId = aTextureIdAndRound.y;\n `,\n end: `\n if(aTextureIdAndRound.x == 1.)\n {\n gl_Position.xy = roundPixels(gl_Position.xy, uResolution);\n }\n `\n },\n fragment: {\n header: `\n in float vTextureId;\n \n uniform sampler2D uTextures[${maxTextures}];\n \n `,\n main: `\n \n ${generateSampleGlSrc(16)}\n `\n }\n };\n }\n return textureBatchBitGlCache[maxTextures];\n}\n\nexport { generateTextureBatchBit, generateTextureBatchBitGl };\n//# sourceMappingURL=generateTextureBatchBit.mjs.map\n","\"use strict\";\nconst localUniformBit = {\n name: \"local-uniform-bit\",\n vertex: {\n header: (\n /* wgsl */\n `\n\n struct LocalUniforms {\n uTransformMatrix:mat3x3<f32>,\n uColor:vec4<f32>,\n uRound:f32,\n }\n\n @group(1) @binding(0) var<uniform> localUniforms : LocalUniforms;\n `\n ),\n main: (\n /* wgsl */\n `\n vColor *= localUniforms.uColor;\n modelMatrix *= localUniforms.uTransformMatrix;\n `\n ),\n end: (\n /* wgsl */\n `\n if(localUniforms.uRound == 1)\n {\n vPosition = vec4(roundPixels(vPosition.xy, globalUniforms.uResolution), vPosition.zw);\n }\n `\n )\n }\n};\nconst localUniformBitGroup2 = {\n ...localUniformBit,\n vertex: {\n ...localUniformBit.vertex,\n // replace the group!\n header: localUniformBit.vertex.header.replace(\"group(1)\", \"group(2)\")\n }\n};\nconst localUniformBitGl = {\n name: \"local-uniform-bit\",\n vertex: {\n header: (\n /* glsl */\n `\n\n uniform mat3 uTransformMatrix;\n uniform vec4 uColor;\n uniform float uRound;\n `\n ),\n main: (\n /* glsl */\n `\n vColor *= uColor;\n modelMatrix = uTransformMatrix;\n `\n ),\n end: (\n /* glsl */\n `\n if(uRound == 1.)\n {\n gl_Position.xy = roundPixels(gl_Position.xy, uResolution);\n }\n `\n )\n }\n};\n\nexport { localUniformBit, localUniformBitGl, localUniformBitGroup2 };\n//# sourceMappingURL=localUniformBit.mjs.map\n","\"use strict\";\nconst roundPixelsBit = {\n name: \"round-pixels-bit\",\n vertex: {\n header: (\n /* wgsl */\n `\n fn roundPixels(position: vec2<f32>, targetSize: vec2<f32>) -> vec2<f32> \n {\n return (floor(((position * 0.5 + 0.5) * targetSize) + 0.5) / targetSize) * 2.0 - 1.0;\n }\n `\n )\n }\n};\nconst roundPixelsBitGl = {\n name: \"round-pixels-bit\",\n vertex: {\n header: (\n /* glsl */\n ` \n vec2 roundPixels(vec2 position, vec2 targetSize)\n { \n return (floor(((position * 0.5 + 0.5) * targetSize) + 0.5) / targetSize) * 2.0 - 1.0;\n }\n `\n )\n }\n};\n\nexport { roundPixelsBit, roundPixelsBitGl };\n//# sourceMappingURL=roundPixelsBit.mjs.map\n","\"use strict\";\nfunction colorToUniform(rgb, alpha, out, offset) {\n out[offset++] = (rgb >> 16 & 255) / 255;\n out[offset++] = (rgb >> 8 & 255) / 255;\n out[offset++] = (rgb & 255) / 255;\n out[offset++] = alpha;\n}\nfunction color32BitToUniform(abgr, out, offset) {\n const alpha = (abgr >> 24 & 255) / 255;\n out[offset++] = (abgr & 255) / 255 * alpha;\n out[offset++] = (abgr >> 8 & 255) / 255 * alpha;\n out[offset++] = (abgr >> 16 & 255) / 255 * alpha;\n out[offset++] = alpha;\n}\n\nexport { color32BitToUniform, colorToUniform };\n//# sourceMappingURL=colorToUniform.mjs.map\n","\"use strict\";\nclass BatchableSprite {\n constructor() {\n // batch specific..\n this.vertexSize = 4;\n this.indexSize = 6;\n this.location = 0;\n // location in the buffer\n this.batcher = null;\n this.batch = null;\n this.roundPixels = 0;\n }\n get blendMode() {\n return this.renderable.groupBlendMode;\n }\n packAttributes(float32View, uint32View, index, textureId) {\n const sprite = this.renderable;\n const texture = this.texture;\n const wt = sprite.groupTransform;\n const a = wt.a;\n const b = wt.b;\n const c = wt.c;\n const d = wt.d;\n const tx = wt.tx;\n const ty = wt.ty;\n const bounds = this.bounds;\n const w0 = bounds.maxX;\n const w1 = bounds.minX;\n const h0 = bounds.maxY;\n const h1 = bounds.minY;\n const uvs = texture.uvs;\n const argb = sprite.groupColorAlpha;\n const textureIdAndRound = textureId << 16 | this.roundPixels & 65535;\n float32View[index + 0] = a * w1 + c * h1 + tx;\n float32View[index + 1] = d * h1 + b * w1 + ty;\n float32View[index + 2] = uvs.x0;\n float32View[index + 3] = uvs.y0;\n uint32View[index + 4] = argb;\n uint32View[index + 5] = textureIdAndRound;\n float32View[index + 6] = a * w0 + c * h1 + tx;\n float32View[index + 7] = d * h1 + b * w0 + ty;\n float32View[index + 8] = uvs.x1;\n float32View[index + 9] = uvs.y1;\n uint32View[index + 10] = argb;\n uint32View[index + 11] = textureIdAndRound;\n float32View[index + 12] = a * w0 + c * h0 + tx;\n float32View[index + 13] = d * h0 + b * w0 + ty;\n float32View[index + 14] = uvs.x2;\n float32View[index + 15] = uvs.y2;\n uint32View[index + 16] = argb;\n uint32View[index + 17] = textureIdAndRound;\n float32View[index + 18] = a * w1 + c * h0 + tx;\n float32View[index + 19] = d * h0 + b * w1 + ty;\n float32View[index + 20] = uvs.x3;\n float32View[index + 21] = uvs.y3;\n uint32View[index + 22] = argb;\n uint32View[index + 23] = textureIdAndRound;\n }\n packIndex(indexBuffer, index, indicesOffset) {\n indexBuffer[index] = indicesOffset + 0;\n indexBuffer[index + 1] = indicesOffset + 1;\n indexBuffer[index + 2] = indicesOffset + 2;\n indexBuffer[index + 3] = indicesOffset + 0;\n indexBuffer[index + 4] = indicesOffset + 2;\n indexBuffer[index + 5] = indicesOffset + 3;\n }\n reset() {\n this.renderable = null;\n this.texture = null;\n this.batcher = null;\n this.batch = null;\n this.bounds = null;\n }\n}\n\nexport { BatchableSprite };\n//# sourceMappingURL=BatchableSprite.mjs.map\n"],"names":["a","Object","Map","h"],"mappings":"8KAGA,SAASA,EAAQ,CAAQ,CAAE,CAAK,CAAE,CAAI,EACpC,GAAI,EACF,IAAK,IAAM,KAAK,EAAU,CAExB,IAAM,EAAO,CAAK,CADP,EAAE,iBAAiB,GACR,CACtB,GAAI,EAAM,CACR,IAAI,EAAgB,CAAQ,CAAC,EAAE,AAC3B,AAAM,YAAN,GACF,GAAgB,EAAc,OAAO,CAAC,mBAAoB,IAAI,OAAO,CAAC,oBAAqB,GAAE,EAE3F,GACF,EAAK,IAAI,CAAC,CAAC,MAAM,EAAE,EAAK,MAAM,CAAC,EAEjC,EAAK,IAAI,CAAC,EACZ,KACE,QAAK,CAAC,EAAE,EAAE,wCAAwC,CAAC,CAEvD,CAEJ,CCrBA,IAAM,EAAc,iBACpB,SAAS,EAAa,CAAU,EAC9B,IAAM,EAAQ,CAAC,EAKf,MAHA,AADoB,GAAW,KAAK,CAAC,IAAc,IAAI,AAAC,GAAS,EAAK,OAAO,CAAC,UAAW,MAAQ,EAAE,AAAD,EACtF,OAAO,CAAC,AAAC,IACnB,CAAK,CAAC,EAAK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AK,EAAI,EAAK,EAC5C,CAAW,CAAC,EAAQ,GAAG,CAAG,EAAI,EAAK,EAAI,EAAK,EAC5C,CAAW,CAAC,EAAQ,GAAG,CAAG,EAAI,EAAE,CAChC,CAAW,CAAC,EAAQ,GAAG,CAAG,EAAI,EAAE,CAChC,CAAU,CAAC,EAAQ,GAAG,CAAG,EACzB,CAAU,CAAC,EAAQ,GAAG,CAAG,EACzB,CAAW,CAAC,EAAQ,GAAG,CAAG,EAAI,EAAK,EAAI,EAAK,EAC5C,CAAW,CAAC,EAAQ,GAAG,CAAG,EAAI,EAAK,EAAI,EAAK,EAC5C,CAAW,CAAC,EAAQ,GAAG,CAAG,EAAI,EAAE,CAChC,CAAW,CAAC,EAAQ,GAAG,CAAG,EAAI,EAAE,CAChC,CAAU,CAAC,EAAQ,GAAG,CAAG,EACzB,CAAU,CAAC,EAAQ,GAAG,CAAG,CAC3B,CACA,UAAU,CAAW,CAAE,CAAK,CAAE,CAAa,CAAE,CAC3C,CAAW,CAAC,EAAM,CAAG,EAAgB,EACrC,CAAW,CAAC,EAAQ,EAAE,CAAG,EAAgB,EACzC,CAAW,CAAC,EAAQ,EAAE,CAAG,EAAgB,EACzC,CAAW,CAAC,EAAQ,EAAE,CAAG,EAAgB,EACzC,CAAW,CAAC,EAAQ,EAAE,CAAG,EAAgB,EACzC,CAAW,CAAC,EAAQ,EAAE,CAAG,EAAgB,CAC3C,CACA,OAAQ,CACN,IAAI,CAAC,UAAU,CAAG,KAClB,IAAI,CAAC,OAAO,CAAG,KACf,IAAI,CAAC,OAAO,CAAG,KACf,IAAI,CAAC,KAAK,CAAG,KACb,IAAI,CAAC,MAAM,CAAG,IAChB,CACF,C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"static/js/async/920.7d9a9aa8.js","sources":["webpack://playground/../../packages/shared/src/polyfills/async-hooks.ts"],"sourcesContent":["/**\r\n * Browser polyfill for Node.js async_hooks module\r\n * Provides empty implementation for browser environments where async_hooks is not available\r\n */\r\nconst AsyncLocalStorage = {};\r\nexport { AsyncLocalStorage };\r\n"],"names":["AsyncLocalStorage"],"mappings":"iIAIA,IAAMA,EAAoB,CAAC,C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkplayground=self.webpackChunkplayground||[]).push([["983"],{95751:function(u,n,e){e.r(n),e(52818),e(65003),e(62737),e(42454),e(30773),e(66241),e(53828),e(19921),e(28803),e(34354),e(24508)}}]);
|