@mirage-engine/core 0.0.2 → 0.2.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/CHANGELOG.md +17 -0
- package/dist/mirage-engine.js +483 -299
- package/dist/mirage-engine.umd.js +57 -27
- package/dist/src/core/Syncer.d.ts +7 -1
- package/dist/src/dom/Extractor.d.ts +3 -2
- package/dist/src/renderer/Renderer.d.ts +6 -2
- package/dist/src/types/common.d.ts +3 -0
- package/dist/src/types/config.d.ts +16 -2
- package/dist/src/types/flags.d.ts +5 -0
- package/package.json +2 -2
- package/src/core/Engine.ts +1 -1
- package/src/core/Syncer.ts +72 -4
- package/src/dom/Extractor.ts +87 -4
- package/src/renderer/Renderer.ts +135 -31
- package/src/types/common.ts +8 -5
- package/src/types/config.ts +21 -6
- package/src/types/flags.ts +16 -1
package/dist/mirage-engine.js
CHANGED
|
@@ -1,223 +1,302 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import * as
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
var A = Object.defineProperty;
|
|
2
|
+
var P = (i, e, t) => e in i ? A(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
|
|
3
|
+
var h = (i, e, t) => (P(i, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
|
+
import * as d from "three";
|
|
5
|
+
const E = 0, O = 1, D = 2, k = 4, z = 8, N = 16, x = 1, R = 2, Z = 0, q = [
|
|
6
|
+
"include-tree",
|
|
7
|
+
"exclude-tree",
|
|
8
|
+
"include-self",
|
|
9
|
+
"exclude-self",
|
|
10
|
+
"end"
|
|
11
|
+
];
|
|
12
|
+
function Y(i, e, t) {
|
|
13
|
+
const r = e.split(`
|
|
8
14
|
`), s = [];
|
|
9
|
-
return
|
|
10
|
-
const
|
|
11
|
-
let o =
|
|
12
|
-
for (let l = 1; l <
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
+
return r.forEach((a) => {
|
|
16
|
+
const n = a.split(" ");
|
|
17
|
+
let o = n[0];
|
|
18
|
+
for (let l = 1; l < n.length; l++) {
|
|
19
|
+
const c = n[l];
|
|
20
|
+
i.measureText(o + " " + c).width < t ? o += " " + c : (s.push(o), o = c);
|
|
15
21
|
}
|
|
16
22
|
s.push(o);
|
|
17
23
|
}), s;
|
|
18
24
|
}
|
|
19
|
-
function
|
|
20
|
-
const
|
|
21
|
-
if (!
|
|
25
|
+
function I(i, e, t, r, s = 2) {
|
|
26
|
+
const a = document.createElement("canvas"), n = a.getContext("2d");
|
|
27
|
+
if (!n)
|
|
22
28
|
throw new Error("[Mirage] Failed to create canvas context");
|
|
23
29
|
const l = (window.devicePixelRatio || 1) * s;
|
|
24
|
-
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
const
|
|
28
|
-
let
|
|
29
|
-
|
|
30
|
+
a.width = t * l, a.height = r * l, n.scale(l, l), n.font = e.font, n.fillStyle = e.color, n.textBaseline = "top", n.globalAlpha = 1;
|
|
31
|
+
const c = Y(n, i, t), g = e.lineHeight;
|
|
32
|
+
c.forEach((p, m) => {
|
|
33
|
+
const T = m * g + 2;
|
|
34
|
+
let v = 0;
|
|
35
|
+
e.textAlign === "center" ? v = t / 2 : e.textAlign === "right" && (v = t), n.textAlign = e.textAlign, n.fillText(p, v, T);
|
|
30
36
|
});
|
|
31
|
-
const u = new
|
|
32
|
-
return u.colorSpace =
|
|
37
|
+
const u = new d.CanvasTexture(a);
|
|
38
|
+
return u.colorSpace = d.SRGBColorSpace, u.minFilter = d.LinearFilter, u.magFilter = d.LinearFilter, u.needsUpdate = !0, u;
|
|
33
39
|
}
|
|
34
|
-
function
|
|
35
|
-
return typeof
|
|
40
|
+
function w(i) {
|
|
41
|
+
return typeof i == "number" ? i : parseFloat(i) || 0;
|
|
36
42
|
}
|
|
37
|
-
|
|
43
|
+
function _(i, e) {
|
|
44
|
+
var o, l, c, g;
|
|
45
|
+
if (!e) {
|
|
46
|
+
i.set(0, 0, 0, 0);
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
const t = e.split("/")[0].trim().split(/\s+/), r = w(t[0]), s = w((o = t[1]) != null ? o : t[0]), a = w((l = t[2]) != null ? l : t[0]), n = w((g = (c = t[3]) != null ? c : t[1]) != null ? g : t[0]);
|
|
50
|
+
i.set(r, s, a, n);
|
|
51
|
+
}
|
|
52
|
+
const U = (
|
|
53
|
+
/* glsl */
|
|
54
|
+
`
|
|
38
55
|
varying vec2 vUv;
|
|
56
|
+
varying vec4 vScreenPos;
|
|
39
57
|
void main() {
|
|
40
58
|
vUv = uv;
|
|
41
59
|
gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
|
|
60
|
+
vScreenPos = gl_Position;
|
|
42
61
|
}
|
|
43
|
-
|
|
62
|
+
`
|
|
63
|
+
), W = (
|
|
64
|
+
/* glsl */
|
|
65
|
+
`
|
|
66
|
+
|
|
44
67
|
varying vec2 vUv;
|
|
45
68
|
|
|
46
69
|
uniform vec2 uSize;
|
|
47
|
-
uniform
|
|
70
|
+
uniform vec4 uBorderRadius;
|
|
48
71
|
uniform float uBorderWidth;
|
|
49
|
-
uniform vec3
|
|
72
|
+
uniform vec3 uBgColor;
|
|
50
73
|
uniform vec3 uBorderColor;
|
|
51
74
|
uniform float uOpacity;
|
|
52
75
|
uniform float uBgOpacity;
|
|
76
|
+
uniform float uBorderOpacity;
|
|
77
|
+
|
|
78
|
+
#INJECT_DECLARATIONS
|
|
53
79
|
|
|
54
|
-
// SDF 박스 함수
|
|
55
80
|
float sdRoundedBox(vec2 p, vec2 b, float r) {
|
|
56
81
|
vec2 q = abs(p) - b + r;
|
|
82
|
+
|
|
57
83
|
return min(max(q.x, q.y), 0.0) + length(max(q, 0.0)) - r;
|
|
58
84
|
}
|
|
59
85
|
|
|
60
86
|
void main() {
|
|
61
87
|
vec2 p = (vUv - 0.5) * uSize;
|
|
62
88
|
vec2 halfSize = uSize * 0.5;
|
|
63
|
-
|
|
64
|
-
float d = sdRoundedBox(p, halfSize, uRadius);
|
|
65
|
-
|
|
66
|
-
float smoothEdge = 1.0;
|
|
67
89
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
float borderAlpha = 0.0;
|
|
90
|
+
#INJECT_UV_MODIFIER
|
|
71
91
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
}
|
|
92
|
+
// color decision pipeline
|
|
93
|
+
vec4 baseColor = vec4(uBgColor, uBgOpacity);
|
|
75
94
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
95
|
+
#INJECT_BASE_COLOR
|
|
96
|
+
|
|
97
|
+
// sdf shape pipeline
|
|
98
|
+
vec2 xRadii = mix(uBorderRadius.xw, uBorderRadius.yz, step(0.0, p.x));
|
|
99
|
+
float r = mix(xRadii.y, xRadii.x, step(0.0, p.y));
|
|
100
|
+
float d = sdRoundedBox(p, halfSize, r);
|
|
101
|
+
|
|
102
|
+
float aa = 1.0;
|
|
103
|
+
float bgMask = 1.0 - smoothstep(0.0, aa, d);
|
|
104
|
+
|
|
105
|
+
float halfBorder = uBorderWidth * 0.5;
|
|
106
|
+
float borderD = abs(d + halfBorder) - halfBorder;
|
|
107
|
+
float borderAlpha = (1.0 - smoothstep(0.0, aa, borderD)) * uBorderOpacity;
|
|
108
|
+
if (uBorderWidth <= 0.01) {
|
|
109
|
+
borderAlpha = 0.0;
|
|
81
110
|
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
float
|
|
85
|
-
|
|
111
|
+
|
|
112
|
+
// final blending (border + background)
|
|
113
|
+
float aFront = borderAlpha;
|
|
114
|
+
float aBack = baseColor.a;
|
|
115
|
+
float aOut = aFront + aBack * (1.0 - aFront);
|
|
116
|
+
|
|
117
|
+
float safeAlpha = max(aOut, 0.0001);
|
|
118
|
+
vec3 cOut = (uBorderColor * aFront + baseColor.rgb * aBack * (1.0 - aFront)) / safeAlpha;
|
|
119
|
+
vec4 finalColor = vec4(cOut, aOut);
|
|
120
|
+
|
|
121
|
+
// final color control (Tint, Noise)
|
|
122
|
+
#INJECT_COLOR_MODIFIER
|
|
123
|
+
|
|
124
|
+
float finalOpacity = finalColor.a * bgMask * uOpacity;
|
|
86
125
|
if (finalOpacity < 0.001) discard;
|
|
87
126
|
|
|
88
|
-
gl_FragColor = vec4(
|
|
127
|
+
gl_FragColor = vec4(finalColor.rgb, finalOpacity);
|
|
128
|
+
|
|
129
|
+
#include <colorspace_fragment>
|
|
89
130
|
}
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
131
|
+
`
|
|
132
|
+
);
|
|
133
|
+
function S(i) {
|
|
134
|
+
if (!i || i === "transparent")
|
|
135
|
+
return { color: new d.Color(16777215), alpha: 0 };
|
|
136
|
+
const e = i.match(
|
|
95
137
|
/rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*([\d.]+))?\)/
|
|
96
138
|
);
|
|
97
|
-
if (
|
|
98
|
-
const
|
|
99
|
-
return { color: new
|
|
139
|
+
if (e) {
|
|
140
|
+
const t = parseInt(e[1], 10), r = parseInt(e[2], 10), s = parseInt(e[3], 10), a = e[4] !== void 0 ? parseFloat(e[4]) : 1;
|
|
141
|
+
return { color: new d.Color(`rgb(${t}, ${r}, ${s})`), alpha: a };
|
|
100
142
|
}
|
|
101
|
-
return { color: new
|
|
143
|
+
return { color: new d.Color(i), alpha: 1 };
|
|
102
144
|
}
|
|
103
|
-
function
|
|
104
|
-
var
|
|
105
|
-
const
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
145
|
+
function H(i, e, t, r = null, s) {
|
|
146
|
+
var v;
|
|
147
|
+
const a = r !== null, n = a ? (
|
|
148
|
+
/* glsl */
|
|
149
|
+
`
|
|
150
|
+
uniform sampler2D uTexture;
|
|
151
|
+
varying vec4 vScreenPos;
|
|
152
|
+
`
|
|
153
|
+
) : "", o = a ? (
|
|
154
|
+
/* glsl */
|
|
155
|
+
`
|
|
156
|
+
vec2 screenUv = (vScreenPos.xy / vScreenPos.w) * 0.5 + 0.5;
|
|
157
|
+
vec2 resultUv = screenUv;
|
|
158
|
+
${(s == null ? void 0 : s.uvModifier) || ""}
|
|
159
|
+
`
|
|
160
|
+
) : "", l = a ? (
|
|
161
|
+
/* glsl */
|
|
162
|
+
`
|
|
163
|
+
baseColor = texture2D(uTexture, resultUv);
|
|
164
|
+
`
|
|
165
|
+
) : "", c = (s == null ? void 0 : s.colorModifier) || "", g = W.replace("#INJECT_DECLARATIONS", n).replace("#INJECT_UV_MODIFIER", o).replace("#INJECT_BASE_COLOR", l).replace("#INJECT_COLOR_MODIFIER", c), u = S(i.backgroundColor), p = S(i.borderColor), m = {
|
|
166
|
+
uSize: { value: new d.Vector2(e, t) },
|
|
167
|
+
uBorderRadius: { value: new d.Vector4(0, 0, 0, 0) },
|
|
168
|
+
uBorderWidth: { value: w(i.borderWidth) },
|
|
169
|
+
uBgColor: { value: u.color },
|
|
170
|
+
uBorderColor: { value: p.color },
|
|
171
|
+
uOpacity: { value: (v = i.opacity) != null ? v : 1 },
|
|
172
|
+
uBgOpacity: { value: u.alpha },
|
|
173
|
+
uBorderOpacity: { value: p.alpha },
|
|
174
|
+
uTexture: { value: null }
|
|
113
175
|
};
|
|
114
|
-
return new
|
|
115
|
-
uniforms:
|
|
116
|
-
vertexShader:
|
|
117
|
-
fragmentShader:
|
|
176
|
+
return _(m.uBorderRadius.value, i.borderRadius), a && (m.uTexture.value = r), new d.ShaderMaterial({
|
|
177
|
+
uniforms: m,
|
|
178
|
+
vertexShader: U,
|
|
179
|
+
fragmentShader: g,
|
|
118
180
|
transparent: !0,
|
|
119
|
-
side:
|
|
181
|
+
side: d.FrontSide
|
|
120
182
|
// for better performance
|
|
121
183
|
});
|
|
122
184
|
}
|
|
123
|
-
function
|
|
124
|
-
var
|
|
125
|
-
const
|
|
126
|
-
|
|
185
|
+
function $(i, e, t, r, s) {
|
|
186
|
+
var o;
|
|
187
|
+
const a = S(e.backgroundColor), n = S(e.borderColor);
|
|
188
|
+
i.uniforms.uSize.value.set(t, r), _(i.uniforms.uBorderRadius.value, e.borderRadius), i.uniforms.uBorderWidth.value = w(e.borderWidth), i.uniforms.uBgColor.value.copy(a.color), i.uniforms.uBorderColor.value.copy(n.color), i.uniforms.uOpacity.value = (o = e.opacity) != null ? o : 1, i.uniforms.uBgOpacity.value = a.alpha, i.uniforms.uBorderOpacity.value = n.alpha, i.uniforms.uTexture && s !== void 0 && (i.uniforms.uTexture.value = s);
|
|
127
189
|
}
|
|
128
|
-
const
|
|
129
|
-
create(
|
|
130
|
-
if (
|
|
131
|
-
return
|
|
132
|
-
if (
|
|
133
|
-
const
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
190
|
+
const F = {
|
|
191
|
+
create(i, e, t, r, s, a = 2, n = null) {
|
|
192
|
+
if (i === "BOX")
|
|
193
|
+
return H(e, r, s, n);
|
|
194
|
+
if (i === "TEXT") {
|
|
195
|
+
const o = I(
|
|
196
|
+
t || "",
|
|
197
|
+
e,
|
|
198
|
+
r,
|
|
137
199
|
s,
|
|
138
|
-
|
|
200
|
+
a
|
|
139
201
|
);
|
|
140
|
-
return new
|
|
141
|
-
map:
|
|
202
|
+
return new d.MeshBasicMaterial({
|
|
203
|
+
map: o,
|
|
142
204
|
transparent: !0,
|
|
143
|
-
side:
|
|
205
|
+
side: d.FrontSide,
|
|
144
206
|
color: 16777215
|
|
145
207
|
});
|
|
146
208
|
}
|
|
147
|
-
return new
|
|
209
|
+
return new d.MeshBasicMaterial({ visible: !1 });
|
|
148
210
|
},
|
|
149
|
-
update(
|
|
150
|
-
if (
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
211
|
+
update(i, e, t, r, s, a, n = 2, o) {
|
|
212
|
+
if (e === "BOX")
|
|
213
|
+
$(
|
|
214
|
+
i,
|
|
215
|
+
t,
|
|
154
216
|
s,
|
|
155
|
-
|
|
217
|
+
a,
|
|
218
|
+
o
|
|
156
219
|
);
|
|
157
|
-
else if (
|
|
158
|
-
const
|
|
159
|
-
|
|
160
|
-
const
|
|
161
|
-
|
|
162
|
-
|
|
220
|
+
else if (e === "TEXT") {
|
|
221
|
+
const l = i;
|
|
222
|
+
l.map && l.map.dispose();
|
|
223
|
+
const c = I(
|
|
224
|
+
r || "",
|
|
225
|
+
t,
|
|
163
226
|
s,
|
|
164
|
-
|
|
165
|
-
|
|
227
|
+
a,
|
|
228
|
+
n
|
|
166
229
|
);
|
|
167
|
-
|
|
230
|
+
l.map = c, l.needsUpdate = !0;
|
|
168
231
|
}
|
|
169
232
|
}
|
|
170
233
|
};
|
|
171
|
-
class
|
|
172
|
-
constructor(
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
var
|
|
186
|
-
this.target =
|
|
187
|
-
const s = this.targetRect.width,
|
|
188
|
-
this.camera = new
|
|
234
|
+
class G {
|
|
235
|
+
constructor(e, t, r) {
|
|
236
|
+
h(this, "canvas");
|
|
237
|
+
h(this, "scene");
|
|
238
|
+
h(this, "camera");
|
|
239
|
+
h(this, "renderer");
|
|
240
|
+
h(this, "renderTarget", null);
|
|
241
|
+
h(this, "renderOrder", 0);
|
|
242
|
+
h(this, "qualityFactor", 2);
|
|
243
|
+
h(this, "mode", "overlay");
|
|
244
|
+
h(this, "target");
|
|
245
|
+
h(this, "mountContainer");
|
|
246
|
+
h(this, "targetRect");
|
|
247
|
+
h(this, "meshMap", /* @__PURE__ */ new Map());
|
|
248
|
+
var n, o;
|
|
249
|
+
this.target = e, this.mountContainer = r, this.mode = (n = t.mode) != null ? n : "overlay", this.canvas = document.createElement("canvas"), this.scene = new d.Scene(), this.targetRect = this.target.getBoundingClientRect();
|
|
250
|
+
const s = this.targetRect.width, a = this.targetRect.height;
|
|
251
|
+
this.camera = new d.OrthographicCamera(
|
|
189
252
|
s / -2,
|
|
190
253
|
s / 2,
|
|
191
|
-
|
|
192
|
-
|
|
254
|
+
a / 2,
|
|
255
|
+
a / -2,
|
|
193
256
|
1,
|
|
194
257
|
1e3
|
|
195
|
-
), this.camera.position.z = 100, this.renderer = new
|
|
258
|
+
), this.camera.position.z = 100, this.camera.layers.set(0), this.renderer = new d.WebGLRenderer({
|
|
196
259
|
canvas: this.canvas,
|
|
197
260
|
alpha: !0,
|
|
198
261
|
antialias: !0
|
|
199
|
-
|
|
262
|
+
// [new]
|
|
263
|
+
// premultipliedAlpha: true
|
|
264
|
+
}), this.renderer.setPixelRatio(window.devicePixelRatio), this.renderer.setSize(s, a), this.applyTextQuality((o = t.quality) != null ? o : "medium");
|
|
265
|
+
}
|
|
266
|
+
createRenderTarget() {
|
|
267
|
+
this.renderTarget = new d.WebGLRenderTarget(
|
|
268
|
+
this.targetRect.width * this.qualityFactor,
|
|
269
|
+
this.targetRect.height * this.qualityFactor,
|
|
270
|
+
{
|
|
271
|
+
minFilter: d.LinearFilter,
|
|
272
|
+
magFilter: d.LinearFilter,
|
|
273
|
+
format: d.RGBAFormat,
|
|
274
|
+
stencilBuffer: !1,
|
|
275
|
+
depthBuffer: !0,
|
|
276
|
+
samples: 4
|
|
277
|
+
}
|
|
278
|
+
);
|
|
200
279
|
}
|
|
201
|
-
applyTextQuality(
|
|
202
|
-
if (typeof
|
|
203
|
-
this.
|
|
280
|
+
applyTextQuality(e) {
|
|
281
|
+
if (typeof e == "number") {
|
|
282
|
+
this.qualityFactor = Math.max(0.1, e);
|
|
204
283
|
return;
|
|
205
284
|
}
|
|
206
|
-
switch (
|
|
285
|
+
switch (e) {
|
|
207
286
|
case "low":
|
|
208
|
-
this.
|
|
287
|
+
this.qualityFactor = 1;
|
|
209
288
|
break;
|
|
210
289
|
case "high":
|
|
211
|
-
this.
|
|
290
|
+
this.qualityFactor = 4;
|
|
212
291
|
break;
|
|
213
292
|
case "medium":
|
|
214
293
|
default:
|
|
215
|
-
this.
|
|
294
|
+
this.qualityFactor = 2;
|
|
216
295
|
break;
|
|
217
296
|
}
|
|
218
297
|
}
|
|
219
298
|
mount() {
|
|
220
|
-
this.mountContainer.
|
|
299
|
+
this.mountContainer.prepend(this.canvas), this.canvas.style.pointerEvents = this.mode === "overlay" ? "none" : "auto", this.updateCanvasLayout();
|
|
221
300
|
}
|
|
222
301
|
updateCanvasLayout() {
|
|
223
302
|
this.canvas.style.width = `${this.targetRect.width}px`, this.canvas.style.height = `${this.targetRect.height}px`, this.mode === "duplicate" ? (this.canvas.style.position = "", this.canvas.style.top = "", this.canvas.style.left = "", this.canvas.style.display = "block") : (this.canvas.style.position = "absolute", this.canvas.style.top = `${this.target.offsetTop}px`, this.canvas.style.left = `${this.target.offsetLeft}px`, this.canvas.style.display = "block");
|
|
@@ -225,206 +304,300 @@ class X {
|
|
|
225
304
|
dispose() {
|
|
226
305
|
this.renderer.dispose(), this.canvas.remove();
|
|
227
306
|
}
|
|
228
|
-
setSize(
|
|
229
|
-
this.renderer.setSize(
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
this.
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
307
|
+
setSize(e, t) {
|
|
308
|
+
this.renderer.setSize(e, t), this.renderTarget && this.renderTarget.setSize(
|
|
309
|
+
e * this.qualityFactor,
|
|
310
|
+
t * this.qualityFactor
|
|
311
|
+
), this.camera.left = e / -2, this.camera.right = e / 2, this.camera.top = t / 2, this.camera.bottom = t / -2, this.camera.updateProjectionMatrix();
|
|
312
|
+
}
|
|
313
|
+
syncScene(e) {
|
|
314
|
+
const t = this.target.getBoundingClientRect(), r = Math.abs(t.width - this.targetRect.width) > 0.1 || Math.abs(t.height - this.targetRect.height) > 0.1, s = this.mode === "overlay" && (Math.abs(t.top - this.targetRect.top) > 0.1 || Math.abs(t.left - this.targetRect.left) > 0.1);
|
|
315
|
+
r ? (this.targetRect = t, this.setSize(this.targetRect.width, this.targetRect.height), this.updateCanvasLayout()) : s ? (this.targetRect = t, this.updateCanvasLayout()) : this.targetRect = t, this.renderOrder = 0;
|
|
316
|
+
const a = /* @__PURE__ */ new Set();
|
|
317
|
+
this.reconcileNode(e, a);
|
|
318
|
+
for (const [n, o] of this.meshMap.entries())
|
|
319
|
+
a.has(n) || (this.scene.remove(o), o.geometry.dispose(), o.material instanceof d.Material && o.material.dispose(), this.meshMap.delete(n));
|
|
320
|
+
}
|
|
321
|
+
reconcileNode(e, t) {
|
|
322
|
+
var s;
|
|
323
|
+
t.add(e.element);
|
|
324
|
+
let r = this.meshMap.get(e.element);
|
|
325
|
+
if (!r) {
|
|
326
|
+
const a = new d.PlaneGeometry(1, 1);
|
|
327
|
+
let n;
|
|
328
|
+
n = F.create(
|
|
244
329
|
"BOX",
|
|
245
|
-
|
|
330
|
+
e.styles,
|
|
246
331
|
"",
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
332
|
+
e.rect.width,
|
|
333
|
+
e.rect.height,
|
|
334
|
+
this.qualityFactor,
|
|
335
|
+
e.isTraveler ? (s = this.renderTarget) == null ? void 0 : s.texture : void 0
|
|
336
|
+
), r = new d.Mesh(a, n), e.type === "TEXT" && (r.name = "BG_MESH"), this.scene.add(r), this.meshMap.set(e.element, r);
|
|
251
337
|
}
|
|
252
|
-
if (
|
|
253
|
-
for (const
|
|
254
|
-
this.reconcileNode(
|
|
338
|
+
if (r.userData.domRect = e.rect, this.updateMeshProperties(r, e), this.updateMeshLayers(r, e), e.isTraveler && r.layers.enable(28), e.type === "BOX")
|
|
339
|
+
for (const a of e.children)
|
|
340
|
+
this.reconcileNode(a, t);
|
|
255
341
|
else
|
|
256
|
-
|
|
342
|
+
e.type === "TEXT" && this.reconcileTextChild(r, e);
|
|
257
343
|
}
|
|
258
|
-
reconcileTextChild(
|
|
344
|
+
reconcileTextChild(e, t) {
|
|
259
345
|
var o, l;
|
|
260
|
-
let
|
|
261
|
-
(
|
|
346
|
+
let r = e.children.find(
|
|
347
|
+
(c) => c.name === "TEXT_CHILD"
|
|
262
348
|
);
|
|
263
|
-
const s = JSON.stringify(
|
|
264
|
-
if (!
|
|
265
|
-
|
|
266
|
-
const
|
|
349
|
+
const s = JSON.stringify(t.textStyles), a = (o = r == null ? void 0 : r.userData) == null ? void 0 : o.styleHash;
|
|
350
|
+
if (!r || t.dirtyMask & N || s !== a) {
|
|
351
|
+
r && ((l = r.material.map) == null || l.dispose(), r.geometry.dispose(), e.remove(r));
|
|
352
|
+
const c = F.create(
|
|
267
353
|
"TEXT",
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
this.
|
|
273
|
-
),
|
|
274
|
-
|
|
354
|
+
t.textStyles,
|
|
355
|
+
t.textContent || "",
|
|
356
|
+
t.rect.width,
|
|
357
|
+
t.rect.height,
|
|
358
|
+
this.qualityFactor
|
|
359
|
+
), g = new d.PlaneGeometry(1, 1);
|
|
360
|
+
r = new d.Mesh(g, c), r.name = "TEXT_CHILD", r.userData = { styleHash: s }, this.updateMeshLayers(r, t), r.position.z = 5e-3, e.add(r);
|
|
275
361
|
}
|
|
276
|
-
if (
|
|
277
|
-
const
|
|
278
|
-
|
|
362
|
+
if (r) {
|
|
363
|
+
const c = e.userData.domRect, g = c.x + c.width / 2, u = c.y + c.height / 2, p = t.rect.x + t.rect.width / 2, m = t.rect.y + t.rect.height / 2, T = p - g, v = -(m - u);
|
|
364
|
+
r.position.set(T, v, 5e-3);
|
|
279
365
|
}
|
|
280
366
|
}
|
|
281
|
-
updateMeshProperties(
|
|
282
|
-
|
|
283
|
-
t.
|
|
367
|
+
updateMeshProperties(e, t) {
|
|
368
|
+
var m;
|
|
369
|
+
const { rect: r, styles: s } = t, a = this.renderer.getPixelRatio(), n = this.renderer.domElement.width / a, o = this.renderer.domElement.height / a;
|
|
370
|
+
e.scale.set(r.width, r.height, 1);
|
|
284
371
|
const l = 1e-3;
|
|
285
372
|
this.renderOrder++;
|
|
286
|
-
const
|
|
287
|
-
|
|
288
|
-
u -
|
|
289
|
-
-
|
|
373
|
+
const c = this.targetRect.left + window.scrollX, g = this.targetRect.top + window.scrollY, u = r.x - c, p = r.y - g;
|
|
374
|
+
e.position.set(
|
|
375
|
+
u - n / 2 + r.width / 2,
|
|
376
|
+
-p + o / 2 - r.height / 2,
|
|
290
377
|
s.zIndex + this.renderOrder * l
|
|
291
|
-
),
|
|
292
|
-
|
|
378
|
+
), F.update(
|
|
379
|
+
e.material,
|
|
293
380
|
"BOX",
|
|
294
|
-
|
|
381
|
+
t.styles,
|
|
295
382
|
"",
|
|
296
|
-
|
|
297
|
-
|
|
383
|
+
t.rect.width,
|
|
384
|
+
t.rect.height,
|
|
385
|
+
this.qualityFactor,
|
|
386
|
+
t.isTraveler ? (m = this.renderTarget) == null ? void 0 : m.texture : void 0
|
|
298
387
|
);
|
|
299
388
|
}
|
|
389
|
+
updateMeshLayers(e, t) {
|
|
390
|
+
const r = (1 - (t.visibility & x)) * 30;
|
|
391
|
+
e.layers.set(r), t.visibility === (x | R) && e.layers.enable(29);
|
|
392
|
+
}
|
|
393
|
+
captureRenderTarget() {
|
|
394
|
+
const e = [];
|
|
395
|
+
for (const l of this.meshMap.values())
|
|
396
|
+
l.layers.mask & 1 << 28 && e.push(l);
|
|
397
|
+
if (e.length === 0)
|
|
398
|
+
return;
|
|
399
|
+
const t = new d.Color(), r = this.renderer.getClearAlpha();
|
|
400
|
+
this.renderer.getClearColor(t), this.renderer.setClearColor(0, 0), this.renderer.setRenderTarget(this.renderTarget), this.renderer.clear(), this.renderer.autoClear = !1, this.renderer.setScissorTest(!0), this.camera.layers.set(29);
|
|
401
|
+
const s = new d.Vector3(), a = this.targetRect.width, n = this.targetRect.height, o = this.renderer.getPixelRatio();
|
|
402
|
+
for (const l of e) {
|
|
403
|
+
s.setFromMatrixPosition(l.matrixWorld), s.project(this.camera);
|
|
404
|
+
const c = (s.x + 1) / 2 * a, g = (s.y + 1) / 2 * n, u = l.scale.x, p = l.scale.y, m = c - u / 2, T = g - p / 2, v = m * this.qualityFactor / o, B = T * this.qualityFactor / o, b = u * this.qualityFactor / o, f = p * this.qualityFactor / o;
|
|
405
|
+
this.renderer.setScissor(v, B, b, f), this.renderer.render(this.scene, this.camera);
|
|
406
|
+
}
|
|
407
|
+
this.renderer.setScissorTest(!1), this.renderer.autoClear = !0, this.renderer.setRenderTarget(null), this.camera.layers.set(28), this.renderer.setClearColor(t, r);
|
|
408
|
+
}
|
|
300
409
|
render() {
|
|
301
|
-
this.renderer.render(this.scene, this.camera);
|
|
410
|
+
this.renderTarget && this.captureRenderTarget(), this.renderer.render(this.scene, this.camera);
|
|
411
|
+
}
|
|
412
|
+
// for debugging
|
|
413
|
+
showScissoredRenderTarget() {
|
|
414
|
+
if (!this.renderTarget)
|
|
415
|
+
return;
|
|
416
|
+
const e = this.targetRect.width, t = this.targetRect.height, r = new d.PlaneGeometry(e, t), s = new d.MeshBasicMaterial({
|
|
417
|
+
map: this.renderTarget.texture,
|
|
418
|
+
side: d.DoubleSide,
|
|
419
|
+
transparent: !0,
|
|
420
|
+
opacity: 0.8
|
|
421
|
+
}), a = new d.Mesh(r, s);
|
|
422
|
+
a.position.set(0, 0, 90), a.layers.set(28), this.scene.add(a);
|
|
302
423
|
}
|
|
303
424
|
}
|
|
304
|
-
function
|
|
305
|
-
const
|
|
306
|
-
|
|
307
|
-
const
|
|
425
|
+
function J(i) {
|
|
426
|
+
const e = document.createRange();
|
|
427
|
+
e.selectNodeContents(i);
|
|
428
|
+
const t = e.getBoundingClientRect();
|
|
308
429
|
return {
|
|
309
|
-
left:
|
|
310
|
-
top:
|
|
311
|
-
width:
|
|
312
|
-
height:
|
|
430
|
+
left: t.left,
|
|
431
|
+
top: t.top,
|
|
432
|
+
width: t.width,
|
|
433
|
+
height: t.height
|
|
313
434
|
};
|
|
314
435
|
}
|
|
315
|
-
function
|
|
316
|
-
const
|
|
317
|
-
let
|
|
318
|
-
isNaN(
|
|
319
|
-
let
|
|
320
|
-
return isNaN(
|
|
321
|
-
font: `${
|
|
322
|
-
color:
|
|
323
|
-
textAlign:
|
|
436
|
+
function V(i) {
|
|
437
|
+
const e = parseFloat(i.fontSize);
|
|
438
|
+
let t = parseFloat(i.lineHeight);
|
|
439
|
+
isNaN(t) && (t = e * 1.2);
|
|
440
|
+
let r = parseFloat(i.letterSpacing);
|
|
441
|
+
return isNaN(r) && (r = 0), {
|
|
442
|
+
font: `${i.fontStyle} ${i.fontWeight} ${i.fontSize} ${i.fontFamily}`,
|
|
443
|
+
color: i.color,
|
|
444
|
+
textAlign: i.textAlign || "start",
|
|
324
445
|
textBaseline: "alphabetic",
|
|
325
|
-
direction:
|
|
326
|
-
lineHeight:
|
|
327
|
-
letterSpacing:
|
|
446
|
+
direction: i.direction || "inherit",
|
|
447
|
+
lineHeight: t,
|
|
448
|
+
letterSpacing: r
|
|
328
449
|
};
|
|
329
450
|
}
|
|
330
|
-
function
|
|
331
|
-
if (
|
|
332
|
-
const
|
|
333
|
-
if (!
|
|
451
|
+
function X(i, e = O | D | k | N | z, t, r) {
|
|
452
|
+
if (i.nodeType === Node.TEXT_NODE) {
|
|
453
|
+
const f = i;
|
|
454
|
+
if (!f.textContent || !f.textContent.trim())
|
|
334
455
|
return null;
|
|
335
|
-
const
|
|
336
|
-
if (
|
|
456
|
+
const C = f.textContent.replace(/\s+/g, " ").trim();
|
|
457
|
+
if (C.length === 0)
|
|
337
458
|
return null;
|
|
338
|
-
const
|
|
339
|
-
if (
|
|
459
|
+
const y = J(f);
|
|
460
|
+
if (y.width === 0 || y.height === 0)
|
|
340
461
|
return null;
|
|
341
|
-
const
|
|
342
|
-
return
|
|
462
|
+
const L = f.parentElement, M = L ? window.getComputedStyle(L) : null;
|
|
463
|
+
return M ? {
|
|
343
464
|
id: Math.random().toString(36).substring(2, 9),
|
|
344
465
|
type: "TEXT",
|
|
345
|
-
element:
|
|
466
|
+
element: f,
|
|
346
467
|
rect: {
|
|
347
|
-
x:
|
|
348
|
-
y:
|
|
349
|
-
width:
|
|
350
|
-
height:
|
|
468
|
+
x: y.left + window.scrollX,
|
|
469
|
+
y: y.top + window.scrollY,
|
|
470
|
+
width: y.width,
|
|
471
|
+
height: y.height
|
|
351
472
|
},
|
|
352
473
|
styles: {
|
|
353
474
|
backgroundColor: "transparent",
|
|
354
|
-
opacity: parseFloat(
|
|
475
|
+
opacity: parseFloat(M.opacity),
|
|
355
476
|
zIndex: 0,
|
|
356
477
|
borderRadius: "0px",
|
|
357
478
|
borderColor: "transparent",
|
|
358
479
|
borderWidth: "0px"
|
|
359
480
|
},
|
|
360
|
-
textContent:
|
|
361
|
-
textStyles:
|
|
362
|
-
dirtyMask:
|
|
481
|
+
textContent: C,
|
|
482
|
+
textStyles: V(M),
|
|
483
|
+
dirtyMask: e,
|
|
484
|
+
visibility: t,
|
|
485
|
+
isTraveler: !1,
|
|
363
486
|
children: []
|
|
364
487
|
} : null;
|
|
365
488
|
}
|
|
366
|
-
const
|
|
367
|
-
|
|
489
|
+
const s = i, a = s.dataset.mirageFilter;
|
|
490
|
+
let n = t, o = t;
|
|
491
|
+
if (a) {
|
|
492
|
+
const f = new Set(a.split(/\s+/));
|
|
493
|
+
for (const C of f)
|
|
494
|
+
if (!q.includes(C))
|
|
495
|
+
throw new Error(
|
|
496
|
+
`[MirageEngine] Invalid filter token: '${C}'. Expected one of: 'include-tree', 'exclude-tree', 'include-self', 'exclude-self', 'end'.`
|
|
497
|
+
);
|
|
498
|
+
if (f.has("end"))
|
|
499
|
+
return null;
|
|
500
|
+
if (f.has("include-tree") && f.has("exclude-tree"))
|
|
501
|
+
throw new Error(
|
|
502
|
+
"[MirageEngine] Conflicting filters: 'include-tree' and 'exclude-tree' cannot be used together on the same element."
|
|
503
|
+
);
|
|
504
|
+
if (f.has("include-self") && f.has("exclude-self"))
|
|
505
|
+
throw new Error(
|
|
506
|
+
"[MirageEngine] Conflicting filters: 'include-self' and 'exclude-self' cannot be used together on the same element."
|
|
507
|
+
);
|
|
508
|
+
f.has("include-tree") ? n = n | x : f.has("exclude-tree") && (n = n & ~x), o = n, f.has("include-self") ? o = o | x : f.has("exclude-self") && (o = o & ~x);
|
|
509
|
+
}
|
|
510
|
+
o = o | t & R;
|
|
511
|
+
const l = s.dataset.mirageTravel;
|
|
512
|
+
let c = !1;
|
|
513
|
+
l && new Set(l.split(/\s+/)).has("traveler") && (o = o & ~R, n = n & ~R, c = !0);
|
|
514
|
+
const g = s.getBoundingClientRect(), u = window.getComputedStyle(s);
|
|
515
|
+
if (g.width === 0 || g.height === 0 || u.display === "none")
|
|
368
516
|
return null;
|
|
369
|
-
let
|
|
370
|
-
|
|
371
|
-
const
|
|
372
|
-
backgroundColor:
|
|
373
|
-
opacity: parseFloat(
|
|
374
|
-
zIndex: isNaN(
|
|
375
|
-
borderRadius:
|
|
376
|
-
borderColor:
|
|
377
|
-
borderWidth:
|
|
517
|
+
let p = s.getAttribute("data-mid");
|
|
518
|
+
p || (p = Math.random().toString(36).substring(2, 11), s.setAttribute("data-mid", p));
|
|
519
|
+
const m = parseInt(u.zIndex), T = {
|
|
520
|
+
backgroundColor: u.backgroundColor,
|
|
521
|
+
opacity: parseFloat(u.opacity),
|
|
522
|
+
zIndex: isNaN(m) ? 0 : m,
|
|
523
|
+
borderRadius: u.borderRadius,
|
|
524
|
+
borderColor: u.borderColor,
|
|
525
|
+
borderWidth: u.borderWidth
|
|
378
526
|
};
|
|
379
|
-
let
|
|
380
|
-
const
|
|
381
|
-
return Array.from(
|
|
382
|
-
const
|
|
383
|
-
|
|
527
|
+
let v, B;
|
|
528
|
+
const b = [];
|
|
529
|
+
return Array.from(s.childNodes).forEach((f) => {
|
|
530
|
+
const C = f.nodeType === Node.TEXT_NODE ? o : n, y = X(
|
|
531
|
+
f,
|
|
532
|
+
e,
|
|
533
|
+
C
|
|
534
|
+
);
|
|
535
|
+
y && b.push(y);
|
|
384
536
|
}), {
|
|
385
|
-
id:
|
|
537
|
+
id: p,
|
|
386
538
|
type: "BOX",
|
|
387
|
-
element:
|
|
539
|
+
element: s,
|
|
388
540
|
rect: {
|
|
389
|
-
x:
|
|
390
|
-
y:
|
|
391
|
-
width:
|
|
392
|
-
height:
|
|
541
|
+
x: g.left + window.scrollX,
|
|
542
|
+
y: g.top + window.scrollY,
|
|
543
|
+
width: g.width,
|
|
544
|
+
height: g.height
|
|
393
545
|
},
|
|
394
|
-
styles:
|
|
395
|
-
textContent:
|
|
396
|
-
textStyles:
|
|
397
|
-
dirtyMask:
|
|
398
|
-
|
|
546
|
+
styles: T,
|
|
547
|
+
textContent: v,
|
|
548
|
+
textStyles: B,
|
|
549
|
+
dirtyMask: e,
|
|
550
|
+
visibility: o,
|
|
551
|
+
isTraveler: c,
|
|
552
|
+
children: b
|
|
399
553
|
};
|
|
400
554
|
}
|
|
401
|
-
class
|
|
402
|
-
constructor(t,
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
555
|
+
class j {
|
|
556
|
+
constructor(e, t, r) {
|
|
557
|
+
h(this, "target");
|
|
558
|
+
h(this, "renderer");
|
|
559
|
+
h(this, "filter");
|
|
560
|
+
h(this, "observer");
|
|
561
|
+
h(this, "isDomDirty", !1);
|
|
562
|
+
h(this, "isRunning", !1);
|
|
563
|
+
h(this, "isTravelEnabled", !1);
|
|
564
|
+
h(this, "pendingMask", E);
|
|
565
|
+
h(this, "mutationTimer", null);
|
|
566
|
+
h(this, "cssTimer", null);
|
|
567
|
+
h(this, "resizeConfig");
|
|
568
|
+
h(this, "resizeTimer", null);
|
|
569
|
+
h(this, "isResizing", !1);
|
|
570
|
+
h(this, "onTransitionFinished", (e) => {
|
|
571
|
+
this.target.contains(e.target) && this.mutationTimer === null && (this.cssTimer && clearTimeout(this.cssTimer), this.pendingMask |= O | D, this.cssTimer = window.setTimeout(() => {
|
|
413
572
|
this.isDomDirty = !0, this.cssTimer = null;
|
|
414
573
|
}, 50));
|
|
415
574
|
});
|
|
416
|
-
|
|
417
|
-
this.
|
|
575
|
+
h(this, "onWindowResize", () => {
|
|
576
|
+
if (!this.resizeConfig.enabled) {
|
|
577
|
+
this.isDomDirty = !0;
|
|
578
|
+
return;
|
|
579
|
+
}
|
|
580
|
+
this.isResizing || (this.isResizing = !0, this.resizeConfig.onStart && this.resizeConfig.onStart()), this.resizeTimer && clearTimeout(this.resizeTimer), this.resizeTimer = window.setTimeout(() => {
|
|
581
|
+
this.isDomDirty = !0, this.resizeConfig.onEnd && this.resizeConfig.onEnd(), this.isResizing = !1, this.resizeTimer = null;
|
|
582
|
+
}, this.resizeConfig.delay);
|
|
418
583
|
});
|
|
419
|
-
|
|
584
|
+
h(this, "renderLoop", () => {
|
|
420
585
|
this.isRunning && (this.isDomDirty && this.forceUpdateScene(), this.renderer.render(), requestAnimationFrame(this.renderLoop));
|
|
421
586
|
});
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
587
|
+
var a, n;
|
|
588
|
+
this.target = e, this.renderer = t, this.filter = r.filter;
|
|
589
|
+
const s = (a = r.resizeDebounce) != null ? a : !0;
|
|
590
|
+
s === !1 ? this.resizeConfig = { enabled: !1, delay: 0 } : s === !0 ? this.resizeConfig = { enabled: !0, delay: 150 } : this.resizeConfig = {
|
|
591
|
+
enabled: !0,
|
|
592
|
+
delay: (n = s.delay) != null ? n : 150,
|
|
593
|
+
onStart: s.onStart,
|
|
594
|
+
onEnd: s.onEnd
|
|
595
|
+
}, this.observer = new MutationObserver((o) => {
|
|
596
|
+
let l = E;
|
|
597
|
+
for (const c of o)
|
|
598
|
+
c.type === "childList" ? l |= z : c.type === "attributes" && (c.attributeName === "style" || c.attributeName === "class") && (l |= O | D);
|
|
599
|
+
if (l !== E) {
|
|
600
|
+
if (this.pendingMask |= l, l & z) {
|
|
428
601
|
this.clearTimers(), console.log("Structural Change detected"), this.isDomDirty = !0;
|
|
429
602
|
return;
|
|
430
603
|
}
|
|
@@ -450,21 +623,28 @@ class P {
|
|
|
450
623
|
}
|
|
451
624
|
forceUpdateScene() {
|
|
452
625
|
this.isDomDirty = !1;
|
|
453
|
-
const
|
|
454
|
-
|
|
626
|
+
const e = document.querySelector("[data-mirage-travel='traveler']") !== null;
|
|
627
|
+
e && !this.isTravelEnabled && (this.isTravelEnabled = !0, this.renderer.createRenderTarget());
|
|
628
|
+
const t = X(
|
|
629
|
+
this.target,
|
|
630
|
+
this.pendingMask,
|
|
631
|
+
e ? x | R : x,
|
|
632
|
+
this.filter
|
|
633
|
+
);
|
|
634
|
+
t && this.renderer.syncScene(t), this.pendingMask = E;
|
|
455
635
|
}
|
|
456
636
|
}
|
|
457
|
-
class
|
|
458
|
-
constructor(
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
var s,
|
|
463
|
-
this.target =
|
|
464
|
-
let
|
|
465
|
-
if (
|
|
637
|
+
class K {
|
|
638
|
+
constructor(e, t) {
|
|
639
|
+
h(this, "renderer");
|
|
640
|
+
h(this, "syncer");
|
|
641
|
+
h(this, "target");
|
|
642
|
+
var s, a, n;
|
|
643
|
+
this.target = e;
|
|
644
|
+
let r;
|
|
645
|
+
if (t.mode === "duplicate" ? r = (a = (s = t.container) != null ? s : this.target.parentElement) != null ? a : void 0 : r = (n = this.target.parentElement) != null ? n : void 0, !r)
|
|
466
646
|
throw new Error("[Mirage] Cannot find a container (parent or option).");
|
|
467
|
-
this.renderer = new
|
|
647
|
+
this.renderer = new G(this.target, t, r), this.renderer.mount(), this.syncer = new j(this.target, this.renderer, t);
|
|
468
648
|
}
|
|
469
649
|
start() {
|
|
470
650
|
this.syncer.start();
|
|
@@ -477,11 +657,15 @@ class Y {
|
|
|
477
657
|
}
|
|
478
658
|
}
|
|
479
659
|
export {
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
D as
|
|
486
|
-
|
|
660
|
+
q as ALLOWED_FILTERS,
|
|
661
|
+
N as DIRTY_CONTENT,
|
|
662
|
+
E as DIRTY_NONE,
|
|
663
|
+
O as DIRTY_RECT,
|
|
664
|
+
z as DIRTY_STRUCTURE,
|
|
665
|
+
D as DIRTY_STYLE,
|
|
666
|
+
k as DIRTY_ZINDEX,
|
|
667
|
+
Z as EXCLUDED,
|
|
668
|
+
K as Engine,
|
|
669
|
+
R as SYSTEM_LAYER,
|
|
670
|
+
x as USER_LAYER
|
|
487
671
|
};
|