modern-canvas 0.5.2 → 0.6.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.
- package/dist/index.cjs +625 -716
- package/dist/index.d.cts +122 -145
- package/dist/index.d.mts +122 -145
- package/dist/index.d.ts +122 -145
- package/dist/index.js +48 -47
- package/dist/index.mjs +627 -717
- package/package.json +5 -5
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineProperty,
|
|
1
|
+
import { defineProperty, getDeclarations, parseColor, property, RawWeakMap as RawWeakMap$1, isGradient, clearUndef, idGenerator, normalizeFill, isNone, normalizeBackground, normalizeForeground, normalizeOutline, normalizeShadow, normalizeShape, getDefaultStyle, normalizeText } from 'modern-idoc';
|
|
2
2
|
import { extend } from 'colord';
|
|
3
3
|
import namesPlugin from 'colord/plugins/names';
|
|
4
4
|
import { Path2D, Path2DSet, svgToDom, svgToPath2DSet, Matrix3 as Matrix3$1 } from 'modern-path2d';
|
|
@@ -6,26 +6,24 @@ import { Text, textDefaultStyle } from 'modern-text';
|
|
|
6
6
|
import { loadYoga, BoxSizing, PositionType, Edge, Overflow, Gutter, Justify, Wrap, FlexDirection, Display, Direction, Align } from 'yoga-layout/load';
|
|
7
7
|
|
|
8
8
|
const customNodes = /* @__PURE__ */ new Map();
|
|
9
|
-
function customNode(
|
|
9
|
+
function customNode(name, defaultProperties) {
|
|
10
10
|
return function(constructor) {
|
|
11
|
-
Object.defineProperty(constructor.prototype, "
|
|
12
|
-
value:
|
|
11
|
+
Object.defineProperty(constructor.prototype, "is", {
|
|
12
|
+
value: name,
|
|
13
13
|
enumerable: true,
|
|
14
14
|
configurable: true
|
|
15
15
|
});
|
|
16
16
|
if (defaultProperties) {
|
|
17
17
|
Object.keys(defaultProperties).forEach((key) => {
|
|
18
|
-
defineProperty(constructor, key, {
|
|
18
|
+
defineProperty(constructor.prototype, key, {
|
|
19
|
+
fallback: defaultProperties[key]
|
|
20
|
+
});
|
|
19
21
|
});
|
|
20
22
|
}
|
|
21
|
-
customNodes.set(
|
|
23
|
+
customNodes.set(name, constructor);
|
|
22
24
|
};
|
|
23
25
|
}
|
|
24
26
|
|
|
25
|
-
function protectedProperty(options) {
|
|
26
|
-
return property({ ...options, protected: true });
|
|
27
|
-
}
|
|
28
|
-
|
|
29
27
|
function createNode(tag = "node", options = {}) {
|
|
30
28
|
const Klass = customNodes.get(tag);
|
|
31
29
|
if (!Klass) {
|
|
@@ -204,15 +202,50 @@ class EventEmitter {
|
|
|
204
202
|
}
|
|
205
203
|
}
|
|
206
204
|
|
|
207
|
-
let
|
|
205
|
+
let IID = 0;
|
|
208
206
|
class CoreObject extends EventEmitter {
|
|
209
|
-
instanceId = ++
|
|
210
|
-
|
|
207
|
+
instanceId = ++IID;
|
|
208
|
+
_customPropertyAccessor;
|
|
209
|
+
_properties = /* @__PURE__ */ new Map();
|
|
211
210
|
_updatedProperties = /* @__PURE__ */ new Map();
|
|
212
211
|
_changedProperties = /* @__PURE__ */ new Set();
|
|
213
212
|
_updatingPromise = Promise.resolve();
|
|
214
213
|
_updating = false;
|
|
215
|
-
|
|
214
|
+
useCustomPropertyAccessor(accessor) {
|
|
215
|
+
this._customPropertyAccessor = accessor;
|
|
216
|
+
this.getPropertyDeclarations().forEach((declaration, key) => {
|
|
217
|
+
const newValue = accessor.get(key, () => void 0);
|
|
218
|
+
const oldValue = this._properties.get(key);
|
|
219
|
+
if (newValue === void 0) {
|
|
220
|
+
if (oldValue !== void 0) {
|
|
221
|
+
accessor.set(key, oldValue);
|
|
222
|
+
}
|
|
223
|
+
} else if (newValue !== oldValue) {
|
|
224
|
+
this._properties.set(key, newValue);
|
|
225
|
+
this._updateProperty(key, newValue, oldValue, declaration);
|
|
226
|
+
this.emit("updateProperty", key, newValue, oldValue, declaration);
|
|
227
|
+
}
|
|
228
|
+
});
|
|
229
|
+
return this;
|
|
230
|
+
}
|
|
231
|
+
getter(key, context) {
|
|
232
|
+
if (context.declaration.protected) {
|
|
233
|
+
return this[context.internalKey];
|
|
234
|
+
} else {
|
|
235
|
+
return this._customPropertyAccessor ? this._customPropertyAccessor.get(key, () => this._properties.get(key)) : this._properties.get(key);
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
setter(key, value, context) {
|
|
239
|
+
if (context.declaration.protected) {
|
|
240
|
+
this[context.internalKey] = value;
|
|
241
|
+
} else {
|
|
242
|
+
if (this._customPropertyAccessor) {
|
|
243
|
+
this._customPropertyAccessor.set(key, value);
|
|
244
|
+
}
|
|
245
|
+
this._properties.set(key, value);
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
equal(target) {
|
|
216
249
|
return Boolean(target && this.instanceId === target.instanceId);
|
|
217
250
|
}
|
|
218
251
|
async _enqueueUpdate() {
|
|
@@ -247,17 +280,6 @@ class CoreObject extends EventEmitter {
|
|
|
247
280
|
getPropertyDeclaration(key) {
|
|
248
281
|
return this.getPropertyDeclarations().get(key);
|
|
249
282
|
}
|
|
250
|
-
getDefaultProperties() {
|
|
251
|
-
if (!this._defaultProperties) {
|
|
252
|
-
this._defaultProperties = {};
|
|
253
|
-
for (const [name, property] of this.getPropertyDeclarations()) {
|
|
254
|
-
if (!property.protected && !property.alias) {
|
|
255
|
-
this._defaultProperties[name] = typeof property.default === "function" ? property.default() : property.default;
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
return this._defaultProperties;
|
|
260
|
-
}
|
|
261
283
|
getProperty(key) {
|
|
262
284
|
return this[key];
|
|
263
285
|
}
|
|
@@ -286,10 +308,16 @@ class CoreObject extends EventEmitter {
|
|
|
286
308
|
}
|
|
287
309
|
resetProperties() {
|
|
288
310
|
for (const [name, property] of this.getPropertyDeclarations()) {
|
|
289
|
-
this.setProperty(
|
|
311
|
+
this.setProperty(
|
|
312
|
+
name,
|
|
313
|
+
typeof property.fallback === "function" ? property.fallback() : property.fallback
|
|
314
|
+
);
|
|
290
315
|
}
|
|
291
316
|
return this;
|
|
292
317
|
}
|
|
318
|
+
onUpdateProperty(key, newValue, oldValue, declaration) {
|
|
319
|
+
this.requestUpdate(key, newValue, oldValue, declaration);
|
|
320
|
+
}
|
|
293
321
|
requestUpdate(key, newValue, oldValue, declaration) {
|
|
294
322
|
if (key !== void 0) {
|
|
295
323
|
if (!Object.is(newValue, oldValue)) {
|
|
@@ -308,9 +336,10 @@ class CoreObject extends EventEmitter {
|
|
|
308
336
|
}
|
|
309
337
|
toJSON() {
|
|
310
338
|
const json = {};
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
339
|
+
this._properties.forEach((value, key) => {
|
|
340
|
+
if (value === void 0) {
|
|
341
|
+
return;
|
|
342
|
+
}
|
|
314
343
|
if (value && typeof value === "object") {
|
|
315
344
|
if ("toJSON" in value && typeof value.toJSON === "function") {
|
|
316
345
|
json[key] = value.toJSON();
|
|
@@ -320,7 +349,7 @@ class CoreObject extends EventEmitter {
|
|
|
320
349
|
} else {
|
|
321
350
|
json[key] = value;
|
|
322
351
|
}
|
|
323
|
-
}
|
|
352
|
+
});
|
|
324
353
|
return json;
|
|
325
354
|
}
|
|
326
355
|
clone() {
|
|
@@ -2115,13 +2144,13 @@ class Vector3 extends Vector {
|
|
|
2115
2144
|
}
|
|
2116
2145
|
}
|
|
2117
2146
|
|
|
2118
|
-
var __defProp$
|
|
2119
|
-
var __decorateClass$
|
|
2147
|
+
var __defProp$Q = Object.defineProperty;
|
|
2148
|
+
var __decorateClass$X = (decorators, target, key, kind) => {
|
|
2120
2149
|
var result = void 0 ;
|
|
2121
2150
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
2122
2151
|
if (decorator = decorators[i])
|
|
2123
2152
|
result = (decorator(target, key, result) ) || result;
|
|
2124
|
-
if (result) __defProp$
|
|
2153
|
+
if (result) __defProp$Q(target, key, result);
|
|
2125
2154
|
return result;
|
|
2126
2155
|
};
|
|
2127
2156
|
class MainLoop extends CoreObject {
|
|
@@ -2164,11 +2193,11 @@ class MainLoop extends CoreObject {
|
|
|
2164
2193
|
this.stop();
|
|
2165
2194
|
}
|
|
2166
2195
|
}
|
|
2167
|
-
__decorateClass$
|
|
2168
|
-
property({
|
|
2196
|
+
__decorateClass$X([
|
|
2197
|
+
property({ fallback: 24 })
|
|
2169
2198
|
], MainLoop.prototype, "fps");
|
|
2170
|
-
__decorateClass$
|
|
2171
|
-
property({
|
|
2199
|
+
__decorateClass$X([
|
|
2200
|
+
property({ fallback: 1 })
|
|
2172
2201
|
], MainLoop.prototype, "speed");
|
|
2173
2202
|
|
|
2174
2203
|
class Renderer {
|
|
@@ -4469,13 +4498,13 @@ class Geometry extends Resource {
|
|
|
4469
4498
|
}
|
|
4470
4499
|
}
|
|
4471
4500
|
|
|
4472
|
-
var __defProp$
|
|
4473
|
-
var __decorateClass$
|
|
4501
|
+
var __defProp$P = Object.defineProperty;
|
|
4502
|
+
var __decorateClass$W = (decorators, target, key, kind) => {
|
|
4474
4503
|
var result = void 0 ;
|
|
4475
4504
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
4476
4505
|
if (decorator = decorators[i])
|
|
4477
4506
|
result = (decorator(target, key, result) ) || result;
|
|
4478
|
-
if (result) __defProp$
|
|
4507
|
+
if (result) __defProp$P(target, key, result);
|
|
4479
4508
|
return result;
|
|
4480
4509
|
};
|
|
4481
4510
|
class IndexBuffer extends Resource {
|
|
@@ -4519,20 +4548,20 @@ class IndexBuffer extends Resource {
|
|
|
4519
4548
|
return result;
|
|
4520
4549
|
}
|
|
4521
4550
|
}
|
|
4522
|
-
__decorateClass$
|
|
4523
|
-
|
|
4551
|
+
__decorateClass$W([
|
|
4552
|
+
property({ protected: true, default: null })
|
|
4524
4553
|
], IndexBuffer.prototype, "data");
|
|
4525
|
-
__decorateClass$
|
|
4526
|
-
|
|
4554
|
+
__decorateClass$W([
|
|
4555
|
+
property({ protected: true, fallback: false })
|
|
4527
4556
|
], IndexBuffer.prototype, "dynamic");
|
|
4528
4557
|
|
|
4529
|
-
var __defProp$
|
|
4530
|
-
var __decorateClass$
|
|
4558
|
+
var __defProp$O = Object.defineProperty;
|
|
4559
|
+
var __decorateClass$V = (decorators, target, key, kind) => {
|
|
4531
4560
|
var result = void 0 ;
|
|
4532
4561
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
4533
4562
|
if (decorator = decorators[i])
|
|
4534
4563
|
result = (decorator(target, key, result) ) || result;
|
|
4535
|
-
if (result) __defProp$
|
|
4564
|
+
if (result) __defProp$O(target, key, result);
|
|
4536
4565
|
return result;
|
|
4537
4566
|
};
|
|
4538
4567
|
class VertexBuffer extends Resource {
|
|
@@ -4576,26 +4605,23 @@ class VertexBuffer extends Resource {
|
|
|
4576
4605
|
return result;
|
|
4577
4606
|
}
|
|
4578
4607
|
}
|
|
4579
|
-
__decorateClass$
|
|
4580
|
-
|
|
4608
|
+
__decorateClass$V([
|
|
4609
|
+
property({ protected: true, default: null })
|
|
4581
4610
|
], VertexBuffer.prototype, "data");
|
|
4582
|
-
__decorateClass$
|
|
4583
|
-
|
|
4611
|
+
__decorateClass$V([
|
|
4612
|
+
property({ protected: true, fallback: false })
|
|
4584
4613
|
], VertexBuffer.prototype, "dynamic");
|
|
4585
4614
|
|
|
4586
|
-
var __defProp$
|
|
4587
|
-
var __decorateClass$
|
|
4615
|
+
var __defProp$N = Object.defineProperty;
|
|
4616
|
+
var __decorateClass$U = (decorators, target, key, kind) => {
|
|
4588
4617
|
var result = void 0 ;
|
|
4589
4618
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
4590
4619
|
if (decorator = decorators[i])
|
|
4591
4620
|
result = (decorator(target, key, result) ) || result;
|
|
4592
|
-
if (result) __defProp$
|
|
4621
|
+
if (result) __defProp$N(target, key, result);
|
|
4593
4622
|
return result;
|
|
4594
4623
|
};
|
|
4595
4624
|
class VertexAttribute extends Resource {
|
|
4596
|
-
stride;
|
|
4597
|
-
offset;
|
|
4598
|
-
divisor;
|
|
4599
4625
|
needsUpload = false;
|
|
4600
4626
|
constructor(options) {
|
|
4601
4627
|
super();
|
|
@@ -4626,26 +4652,26 @@ class VertexAttribute extends Resource {
|
|
|
4626
4652
|
return result;
|
|
4627
4653
|
}
|
|
4628
4654
|
}
|
|
4629
|
-
__decorateClass$
|
|
4630
|
-
|
|
4655
|
+
__decorateClass$U([
|
|
4656
|
+
property({ protected: true })
|
|
4631
4657
|
], VertexAttribute.prototype, "buffer");
|
|
4632
|
-
__decorateClass$
|
|
4633
|
-
|
|
4658
|
+
__decorateClass$U([
|
|
4659
|
+
property({ fallback: 0 })
|
|
4634
4660
|
], VertexAttribute.prototype, "size");
|
|
4635
|
-
__decorateClass$
|
|
4636
|
-
|
|
4661
|
+
__decorateClass$U([
|
|
4662
|
+
property({ fallback: false })
|
|
4637
4663
|
], VertexAttribute.prototype, "normalized");
|
|
4638
|
-
__decorateClass$
|
|
4639
|
-
|
|
4664
|
+
__decorateClass$U([
|
|
4665
|
+
property({ fallback: "float" })
|
|
4640
4666
|
], VertexAttribute.prototype, "type");
|
|
4641
|
-
__decorateClass$
|
|
4642
|
-
|
|
4667
|
+
__decorateClass$U([
|
|
4668
|
+
property()
|
|
4643
4669
|
], VertexAttribute.prototype, "stride");
|
|
4644
|
-
__decorateClass$
|
|
4645
|
-
|
|
4670
|
+
__decorateClass$U([
|
|
4671
|
+
property()
|
|
4646
4672
|
], VertexAttribute.prototype, "offset");
|
|
4647
|
-
__decorateClass$
|
|
4648
|
-
|
|
4673
|
+
__decorateClass$U([
|
|
4674
|
+
property()
|
|
4649
4675
|
], VertexAttribute.prototype, "divisor");
|
|
4650
4676
|
|
|
4651
4677
|
class QuadGeometry extends Geometry {
|
|
@@ -4888,13 +4914,13 @@ class UvGeometry extends Geometry {
|
|
|
4888
4914
|
}
|
|
4889
4915
|
}
|
|
4890
4916
|
|
|
4891
|
-
var __defProp$
|
|
4892
|
-
var __decorateClass$
|
|
4917
|
+
var __defProp$M = Object.defineProperty;
|
|
4918
|
+
var __decorateClass$T = (decorators, target, key, kind) => {
|
|
4893
4919
|
var result = void 0 ;
|
|
4894
4920
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
4895
4921
|
if (decorator = decorators[i])
|
|
4896
4922
|
result = (decorator(target, key, result) ) || result;
|
|
4897
|
-
if (result) __defProp$
|
|
4923
|
+
if (result) __defProp$M(target, key, result);
|
|
4898
4924
|
return result;
|
|
4899
4925
|
};
|
|
4900
4926
|
class Texture2D extends Resource {
|
|
@@ -5020,23 +5046,23 @@ class Texture2D extends Resource {
|
|
|
5020
5046
|
}
|
|
5021
5047
|
}
|
|
5022
5048
|
}
|
|
5023
|
-
__decorateClass$
|
|
5024
|
-
|
|
5049
|
+
__decorateClass$T([
|
|
5050
|
+
property({ protected: true })
|
|
5025
5051
|
], Texture2D.prototype, "source");
|
|
5026
|
-
__decorateClass$
|
|
5027
|
-
property({
|
|
5052
|
+
__decorateClass$T([
|
|
5053
|
+
property({ fallback: 0 })
|
|
5028
5054
|
], Texture2D.prototype, "width");
|
|
5029
|
-
__decorateClass$
|
|
5030
|
-
property({
|
|
5055
|
+
__decorateClass$T([
|
|
5056
|
+
property({ fallback: 0 })
|
|
5031
5057
|
], Texture2D.prototype, "height");
|
|
5032
|
-
__decorateClass$
|
|
5033
|
-
property({
|
|
5058
|
+
__decorateClass$T([
|
|
5059
|
+
property({ fallback: "linear" })
|
|
5034
5060
|
], Texture2D.prototype, "filterMode");
|
|
5035
|
-
__decorateClass$
|
|
5036
|
-
property({
|
|
5061
|
+
__decorateClass$T([
|
|
5062
|
+
property({ fallback: "clamp_to_edge" })
|
|
5037
5063
|
], Texture2D.prototype, "wrapMode");
|
|
5038
|
-
__decorateClass$
|
|
5039
|
-
property({
|
|
5064
|
+
__decorateClass$T([
|
|
5065
|
+
property({ fallback: 1 })
|
|
5040
5066
|
], Texture2D.prototype, "pixelRatio");
|
|
5041
5067
|
|
|
5042
5068
|
class AnimatedTexture extends Resource {
|
|
@@ -5065,13 +5091,13 @@ class AnimatedTexture extends Resource {
|
|
|
5065
5091
|
}
|
|
5066
5092
|
}
|
|
5067
5093
|
|
|
5068
|
-
var __defProp$
|
|
5069
|
-
var __decorateClass$
|
|
5094
|
+
var __defProp$L = Object.defineProperty;
|
|
5095
|
+
var __decorateClass$S = (decorators, target, key, kind) => {
|
|
5070
5096
|
var result = void 0 ;
|
|
5071
5097
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
5072
5098
|
if (decorator = decorators[i])
|
|
5073
5099
|
result = (decorator(target, key, result) ) || result;
|
|
5074
|
-
if (result) __defProp$
|
|
5100
|
+
if (result) __defProp$L(target, key, result);
|
|
5075
5101
|
return result;
|
|
5076
5102
|
};
|
|
5077
5103
|
class CanvasTexture extends Texture2D {
|
|
@@ -5090,8 +5116,8 @@ class CanvasTexture extends Texture2D {
|
|
|
5090
5116
|
super._updateProperty(key, value, oldValue, declaration);
|
|
5091
5117
|
}
|
|
5092
5118
|
}
|
|
5093
|
-
__decorateClass$
|
|
5094
|
-
property(
|
|
5119
|
+
__decorateClass$S([
|
|
5120
|
+
property()
|
|
5095
5121
|
], CanvasTexture.prototype, "pixelRatio");
|
|
5096
5122
|
|
|
5097
5123
|
class ColorTexture extends Texture2D {
|
|
@@ -5110,6 +5136,8 @@ class GradientTexture extends Texture2D {
|
|
|
5110
5136
|
return isGradient(value);
|
|
5111
5137
|
}
|
|
5112
5138
|
static linearGradient(linearGradient, width, height) {
|
|
5139
|
+
width = width || 1;
|
|
5140
|
+
height = height || 1;
|
|
5113
5141
|
const canvas = document.createElement("canvas");
|
|
5114
5142
|
canvas.width = width;
|
|
5115
5143
|
canvas.height = height;
|
|
@@ -5293,13 +5321,13 @@ class PixelsTexture extends Texture2D {
|
|
|
5293
5321
|
}
|
|
5294
5322
|
}
|
|
5295
5323
|
|
|
5296
|
-
var __defProp$
|
|
5297
|
-
var __decorateClass$
|
|
5324
|
+
var __defProp$K = Object.defineProperty;
|
|
5325
|
+
var __decorateClass$R = (decorators, target, key, kind) => {
|
|
5298
5326
|
var result = void 0 ;
|
|
5299
5327
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
5300
5328
|
if (decorator = decorators[i])
|
|
5301
5329
|
result = (decorator(target, key, result) ) || result;
|
|
5302
|
-
if (result) __defProp$
|
|
5330
|
+
if (result) __defProp$K(target, key, result);
|
|
5303
5331
|
return result;
|
|
5304
5332
|
};
|
|
5305
5333
|
function resolveOptions(options) {
|
|
@@ -5543,11 +5571,11 @@ const _VideoTexture = class _VideoTexture extends Texture2D {
|
|
|
5543
5571
|
}
|
|
5544
5572
|
}
|
|
5545
5573
|
};
|
|
5546
|
-
__decorateClass$
|
|
5547
|
-
|
|
5574
|
+
__decorateClass$R([
|
|
5575
|
+
property({ protected: true, fallback: true })
|
|
5548
5576
|
], _VideoTexture.prototype, "autoUpdate");
|
|
5549
|
-
__decorateClass$
|
|
5550
|
-
|
|
5577
|
+
__decorateClass$R([
|
|
5578
|
+
property({ protected: true, fallback: 0 })
|
|
5551
5579
|
], _VideoTexture.prototype, "fps");
|
|
5552
5580
|
let VideoTexture = _VideoTexture;
|
|
5553
5581
|
|
|
@@ -5605,22 +5633,22 @@ class Children extends Array {
|
|
|
5605
5633
|
}
|
|
5606
5634
|
}
|
|
5607
5635
|
|
|
5608
|
-
var __defProp$
|
|
5609
|
-
var __getOwnPropDesc$
|
|
5610
|
-
var __decorateClass$
|
|
5611
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
5636
|
+
var __defProp$J = Object.defineProperty;
|
|
5637
|
+
var __getOwnPropDesc$H = Object.getOwnPropertyDescriptor;
|
|
5638
|
+
var __decorateClass$Q = (decorators, target, key, kind) => {
|
|
5639
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$H(target, key) : target;
|
|
5612
5640
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
5613
5641
|
if (decorator = decorators[i])
|
|
5614
5642
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5615
|
-
if (kind && result) __defProp$
|
|
5643
|
+
if (kind && result) __defProp$J(target, key, result);
|
|
5616
5644
|
return result;
|
|
5617
5645
|
};
|
|
5618
|
-
const
|
|
5619
|
-
function
|
|
5620
|
-
let
|
|
5621
|
-
|
|
5622
|
-
|
|
5623
|
-
return
|
|
5646
|
+
const iidMap = {};
|
|
5647
|
+
function getNodeIid(key) {
|
|
5648
|
+
let iid = iidMap[key] ?? 0;
|
|
5649
|
+
iid++;
|
|
5650
|
+
iidMap[key] = iid;
|
|
5651
|
+
return iid;
|
|
5624
5652
|
}
|
|
5625
5653
|
let Node = class extends CoreObject {
|
|
5626
5654
|
_readyed = false;
|
|
@@ -5633,7 +5661,7 @@ let Node = class extends CoreObject {
|
|
|
5633
5661
|
this._onReady = this._onReady.bind(this);
|
|
5634
5662
|
this._onProcess = this._onProcess.bind(this);
|
|
5635
5663
|
this.setProperties({
|
|
5636
|
-
name: `${this.
|
|
5664
|
+
name: `${this.is}:${getNodeIid(this.is)}`,
|
|
5637
5665
|
...properties
|
|
5638
5666
|
}).append(nodes);
|
|
5639
5667
|
this.on("treeEnter", this._onTreeEnter).on("treeExit", this._onTreeExit).on("parented", this._onParented).on("unparented", this._onUnparented).on("ready", this._onReady).on("process", this._onProcess);
|
|
@@ -5683,7 +5711,7 @@ let Node = class extends CoreObject {
|
|
|
5683
5711
|
}
|
|
5684
5712
|
setTree(tree) {
|
|
5685
5713
|
const oldTree = this._tree;
|
|
5686
|
-
if (!tree?.
|
|
5714
|
+
if (!tree?.equal(oldTree)) {
|
|
5687
5715
|
if (oldTree) {
|
|
5688
5716
|
this.emit("treeExit", oldTree);
|
|
5689
5717
|
}
|
|
@@ -5723,7 +5751,7 @@ let Node = class extends CoreObject {
|
|
|
5723
5751
|
return this._parent;
|
|
5724
5752
|
}
|
|
5725
5753
|
setParent(parent) {
|
|
5726
|
-
if (!this._parent?.
|
|
5754
|
+
if (!this._parent?.equal(parent)) {
|
|
5727
5755
|
const oldParent = this._parent;
|
|
5728
5756
|
if (oldParent) {
|
|
5729
5757
|
this.emit("unparented", oldParent);
|
|
@@ -5899,7 +5927,7 @@ let Node = class extends CoreObject {
|
|
|
5899
5927
|
this.getNode(path)?.remove();
|
|
5900
5928
|
}
|
|
5901
5929
|
addSibling(sibling) {
|
|
5902
|
-
if (this.
|
|
5930
|
+
if (this.equal(sibling) || !this.hasParent() || sibling.hasParent()) {
|
|
5903
5931
|
return this;
|
|
5904
5932
|
}
|
|
5905
5933
|
sibling.internalMode = this.internalMode;
|
|
@@ -5951,14 +5979,14 @@ let Node = class extends CoreObject {
|
|
|
5951
5979
|
});
|
|
5952
5980
|
}
|
|
5953
5981
|
insertBefore(node, child) {
|
|
5954
|
-
if (!child.hasParent() || !this.
|
|
5982
|
+
if (!child.hasParent() || !this.equal(child.parent)) {
|
|
5955
5983
|
return node;
|
|
5956
5984
|
}
|
|
5957
5985
|
this.moveChild(node, child.getIndex());
|
|
5958
5986
|
return node;
|
|
5959
5987
|
}
|
|
5960
5988
|
appendChild(node, internalMode = node.internalMode) {
|
|
5961
|
-
if (this.
|
|
5989
|
+
if (this.equal(node) || node.hasParent()) {
|
|
5962
5990
|
return node;
|
|
5963
5991
|
}
|
|
5964
5992
|
switch (internalMode) {
|
|
@@ -5972,13 +6000,15 @@ let Node = class extends CoreObject {
|
|
|
5972
6000
|
this._children.back.push(node);
|
|
5973
6001
|
break;
|
|
5974
6002
|
}
|
|
5975
|
-
node.internalMode
|
|
6003
|
+
if (node.internalMode !== internalMode) {
|
|
6004
|
+
node.internalMode = internalMode;
|
|
6005
|
+
}
|
|
5976
6006
|
node.setParent(this);
|
|
5977
6007
|
this.emit("appendChild", node);
|
|
5978
6008
|
return node;
|
|
5979
6009
|
}
|
|
5980
6010
|
moveChild(node, toIndex, internalMode = node.internalMode) {
|
|
5981
|
-
if (this.
|
|
6011
|
+
if (this.equal(node) || node.hasParent() && !this.equal(node.parent)) {
|
|
5982
6012
|
return this;
|
|
5983
6013
|
}
|
|
5984
6014
|
const fromArray = this._children.getInternal(node.internalMode);
|
|
@@ -6000,12 +6030,14 @@ let Node = class extends CoreObject {
|
|
|
6000
6030
|
this.emit("appendChild", node);
|
|
6001
6031
|
}
|
|
6002
6032
|
}
|
|
6003
|
-
node.internalMode
|
|
6033
|
+
if (node.internalMode !== internalMode) {
|
|
6034
|
+
node.internalMode = internalMode;
|
|
6035
|
+
}
|
|
6004
6036
|
return this;
|
|
6005
6037
|
}
|
|
6006
6038
|
removeChild(child) {
|
|
6007
6039
|
const index = child.getIndex();
|
|
6008
|
-
if (this.
|
|
6040
|
+
if (this.equal(child.parent) && index > -1) {
|
|
6009
6041
|
this._children.getInternal(child.internalMode).splice(index, 1);
|
|
6010
6042
|
child.setParent(void 0);
|
|
6011
6043
|
this.emit("removeChild", child, index);
|
|
@@ -6063,61 +6095,64 @@ let Node = class extends CoreObject {
|
|
|
6063
6095
|
}
|
|
6064
6096
|
clone() {
|
|
6065
6097
|
return new this.constructor(
|
|
6066
|
-
this.toJSON()
|
|
6098
|
+
this.toJSON(),
|
|
6067
6099
|
this._children.internal
|
|
6068
6100
|
);
|
|
6069
6101
|
}
|
|
6070
6102
|
toJSON() {
|
|
6071
|
-
return {
|
|
6072
|
-
|
|
6073
|
-
|
|
6074
|
-
children: [...this._children.map((child) => child.toJSON())]
|
|
6075
|
-
};
|
|
6103
|
+
return clearUndef({
|
|
6104
|
+
...super.toJSON(),
|
|
6105
|
+
is: this.is,
|
|
6106
|
+
children: this._children.length ? [...this._children.map((child) => child.toJSON())] : void 0
|
|
6107
|
+
});
|
|
6076
6108
|
}
|
|
6077
|
-
static parse(
|
|
6078
|
-
if (Array.isArray(
|
|
6079
|
-
return
|
|
6109
|
+
static parse(value) {
|
|
6110
|
+
if (Array.isArray(value)) {
|
|
6111
|
+
return value.map((val) => this.parse(val));
|
|
6080
6112
|
}
|
|
6081
|
-
const {
|
|
6082
|
-
const
|
|
6083
|
-
const node = new
|
|
6113
|
+
const { is, props, children } = value;
|
|
6114
|
+
const Class = customNodes.get(is) ?? Node;
|
|
6115
|
+
const node = new Class(props);
|
|
6084
6116
|
children?.forEach((child) => node.appendChild(this.parse(child)));
|
|
6085
6117
|
return node;
|
|
6086
6118
|
}
|
|
6087
6119
|
};
|
|
6088
|
-
__decorateClass$
|
|
6089
|
-
property()
|
|
6120
|
+
__decorateClass$Q([
|
|
6121
|
+
property({ fallback: idGenerator() })
|
|
6122
|
+
], Node.prototype, "id", 2);
|
|
6123
|
+
__decorateClass$Q([
|
|
6124
|
+
property({ fallback: idGenerator() })
|
|
6090
6125
|
], Node.prototype, "name", 2);
|
|
6091
|
-
__decorateClass$
|
|
6092
|
-
property()
|
|
6093
|
-
], Node.prototype, "mask", 2);
|
|
6094
|
-
__decorateClass$R([
|
|
6095
|
-
property({ default: "inherit" })
|
|
6126
|
+
__decorateClass$Q([
|
|
6127
|
+
property({ fallback: "inherit" })
|
|
6096
6128
|
], Node.prototype, "processMode", 2);
|
|
6097
|
-
__decorateClass$
|
|
6098
|
-
property({
|
|
6129
|
+
__decorateClass$Q([
|
|
6130
|
+
property({ fallback: "default" })
|
|
6099
6131
|
], Node.prototype, "processSortMode", 2);
|
|
6100
|
-
__decorateClass$
|
|
6101
|
-
property({
|
|
6132
|
+
__decorateClass$Q([
|
|
6133
|
+
property({ fallback: "inherit" })
|
|
6102
6134
|
], Node.prototype, "renderMode", 2);
|
|
6103
|
-
__decorateClass$
|
|
6104
|
-
property({
|
|
6135
|
+
__decorateClass$Q([
|
|
6136
|
+
property({ fallback: "default" })
|
|
6105
6137
|
], Node.prototype, "internalMode", 2);
|
|
6106
|
-
__decorateClass$
|
|
6138
|
+
__decorateClass$Q([
|
|
6107
6139
|
property({ default: () => ({}) })
|
|
6108
6140
|
], Node.prototype, "meta", 2);
|
|
6109
|
-
|
|
6141
|
+
__decorateClass$Q([
|
|
6142
|
+
property({ protected: true })
|
|
6143
|
+
], Node.prototype, "mask", 2);
|
|
6144
|
+
Node = __decorateClass$Q([
|
|
6110
6145
|
customNode("Node")
|
|
6111
6146
|
], Node);
|
|
6112
6147
|
|
|
6113
|
-
var __defProp$
|
|
6114
|
-
var __getOwnPropDesc$
|
|
6115
|
-
var __decorateClass$
|
|
6116
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6148
|
+
var __defProp$I = Object.defineProperty;
|
|
6149
|
+
var __getOwnPropDesc$G = Object.getOwnPropertyDescriptor;
|
|
6150
|
+
var __decorateClass$P = (decorators, target, key, kind) => {
|
|
6151
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$G(target, key) : target;
|
|
6117
6152
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6118
6153
|
if (decorator = decorators[i])
|
|
6119
6154
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6120
|
-
if (kind && result) __defProp$
|
|
6155
|
+
if (kind && result) __defProp$I(target, key, result);
|
|
6121
6156
|
return result;
|
|
6122
6157
|
};
|
|
6123
6158
|
let TimelineNode = class extends Node {
|
|
@@ -6177,30 +6212,30 @@ let TimelineNode = class extends Node {
|
|
|
6177
6212
|
this._updateCurrentTime();
|
|
6178
6213
|
}
|
|
6179
6214
|
};
|
|
6180
|
-
__decorateClass$
|
|
6181
|
-
property({
|
|
6215
|
+
__decorateClass$P([
|
|
6216
|
+
property({ fallback: 0 })
|
|
6182
6217
|
], TimelineNode.prototype, "delay", 2);
|
|
6183
|
-
__decorateClass$
|
|
6184
|
-
property({
|
|
6218
|
+
__decorateClass$P([
|
|
6219
|
+
property({ fallback: 0 })
|
|
6185
6220
|
], TimelineNode.prototype, "duration", 2);
|
|
6186
|
-
__decorateClass$
|
|
6187
|
-
property({
|
|
6221
|
+
__decorateClass$P([
|
|
6222
|
+
property({ fallback: false })
|
|
6188
6223
|
], TimelineNode.prototype, "paused", 2);
|
|
6189
|
-
__decorateClass$
|
|
6190
|
-
|
|
6224
|
+
__decorateClass$P([
|
|
6225
|
+
property({ protected: true, fallback: false })
|
|
6191
6226
|
], TimelineNode.prototype, "insideTimeRange", 2);
|
|
6192
|
-
TimelineNode = __decorateClass$
|
|
6227
|
+
TimelineNode = __decorateClass$P([
|
|
6193
6228
|
customNode("TimelineNode")
|
|
6194
6229
|
], TimelineNode);
|
|
6195
6230
|
|
|
6196
|
-
var __defProp$
|
|
6197
|
-
var __getOwnPropDesc$
|
|
6198
|
-
var __decorateClass$
|
|
6199
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6231
|
+
var __defProp$H = Object.defineProperty;
|
|
6232
|
+
var __getOwnPropDesc$F = Object.getOwnPropertyDescriptor;
|
|
6233
|
+
var __decorateClass$O = (decorators, target, key, kind) => {
|
|
6234
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$F(target, key) : target;
|
|
6200
6235
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6201
6236
|
if (decorator = decorators[i])
|
|
6202
6237
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6203
|
-
if (kind && result) __defProp$
|
|
6238
|
+
if (kind && result) __defProp$H(target, key, result);
|
|
6204
6239
|
return result;
|
|
6205
6240
|
};
|
|
6206
6241
|
let Viewport = class extends Node {
|
|
@@ -6209,15 +6244,15 @@ let Viewport = class extends Node {
|
|
|
6209
6244
|
this.flipY = flipY;
|
|
6210
6245
|
this._projection.flipY(flipY);
|
|
6211
6246
|
}
|
|
6212
|
-
get valid() {
|
|
6213
|
-
return Boolean(this.width && this.height);
|
|
6214
|
-
}
|
|
6215
6247
|
_projection = new Projection2D();
|
|
6216
6248
|
_framebufferIndex = 0;
|
|
6217
6249
|
_framebuffers = [
|
|
6218
6250
|
{ texture: new ViewportTexture(), needsUpload: false },
|
|
6219
6251
|
{ texture: new ViewportTexture(), needsUpload: false }
|
|
6220
6252
|
];
|
|
6253
|
+
get valid() {
|
|
6254
|
+
return Boolean(this.width && this.height);
|
|
6255
|
+
}
|
|
6221
6256
|
get framebuffer() {
|
|
6222
6257
|
return this._framebuffers[this._framebufferIndex];
|
|
6223
6258
|
}
|
|
@@ -6338,33 +6373,34 @@ let Viewport = class extends Node {
|
|
|
6338
6373
|
return this._projection.toArray(transpose);
|
|
6339
6374
|
}
|
|
6340
6375
|
};
|
|
6341
|
-
__decorateClass$
|
|
6342
|
-
property({
|
|
6376
|
+
__decorateClass$O([
|
|
6377
|
+
property({ fallback: 0 })
|
|
6343
6378
|
], Viewport.prototype, "x", 2);
|
|
6344
|
-
__decorateClass$
|
|
6345
|
-
property({
|
|
6379
|
+
__decorateClass$O([
|
|
6380
|
+
property({ fallback: 0 })
|
|
6346
6381
|
], Viewport.prototype, "y", 2);
|
|
6347
|
-
__decorateClass$
|
|
6348
|
-
property({
|
|
6382
|
+
__decorateClass$O([
|
|
6383
|
+
property({ fallback: 0 })
|
|
6349
6384
|
], Viewport.prototype, "width", 2);
|
|
6350
|
-
__decorateClass$
|
|
6351
|
-
property({
|
|
6385
|
+
__decorateClass$O([
|
|
6386
|
+
property({ fallback: 0 })
|
|
6352
6387
|
], Viewport.prototype, "height", 2);
|
|
6353
|
-
Viewport = __decorateClass$
|
|
6388
|
+
Viewport = __decorateClass$O([
|
|
6354
6389
|
customNode("Viewport")
|
|
6355
6390
|
], Viewport);
|
|
6356
6391
|
|
|
6357
|
-
var __defProp$
|
|
6358
|
-
var __getOwnPropDesc$
|
|
6359
|
-
var __decorateClass$
|
|
6360
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6392
|
+
var __defProp$G = Object.defineProperty;
|
|
6393
|
+
var __getOwnPropDesc$E = Object.getOwnPropertyDescriptor;
|
|
6394
|
+
var __decorateClass$N = (decorators, target, key, kind) => {
|
|
6395
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$E(target, key) : target;
|
|
6361
6396
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6362
6397
|
if (decorator = decorators[i])
|
|
6363
6398
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6364
|
-
if (kind && result) __defProp$
|
|
6399
|
+
if (kind && result) __defProp$G(target, key, result);
|
|
6365
6400
|
return result;
|
|
6366
6401
|
};
|
|
6367
6402
|
let Effect = class extends TimelineNode {
|
|
6403
|
+
material;
|
|
6368
6404
|
get _effectMode() {
|
|
6369
6405
|
return this.effectMode ?? "parent";
|
|
6370
6406
|
}
|
|
@@ -6441,10 +6477,10 @@ let Effect = class extends TimelineNode {
|
|
|
6441
6477
|
return;
|
|
6442
6478
|
switch (this._effectMode) {
|
|
6443
6479
|
case "transition":
|
|
6444
|
-
if (node.
|
|
6480
|
+
if (node.equal(this._previousSibling)) {
|
|
6445
6481
|
this._previousSibling = void 0;
|
|
6446
6482
|
renderStack.push(this);
|
|
6447
|
-
} else if (node.
|
|
6483
|
+
} else if (node.equal(this._nextSibling)) {
|
|
6448
6484
|
this._nextSibling = void 0;
|
|
6449
6485
|
renderStack.push(this);
|
|
6450
6486
|
}
|
|
@@ -6462,7 +6498,7 @@ let Effect = class extends TimelineNode {
|
|
|
6462
6498
|
let start;
|
|
6463
6499
|
let end;
|
|
6464
6500
|
calls.forEach((call, index) => {
|
|
6465
|
-
if (call.renderable.
|
|
6501
|
+
if (call.renderable.equal(this._parent) || call.renderable.parent?.equal(this._parent)) {
|
|
6466
6502
|
start = start ?? index;
|
|
6467
6503
|
end = index;
|
|
6468
6504
|
}
|
|
@@ -6602,31 +6638,31 @@ let Effect = class extends TimelineNode {
|
|
|
6602
6638
|
}
|
|
6603
6639
|
}
|
|
6604
6640
|
};
|
|
6605
|
-
__decorateClass$
|
|
6606
|
-
|
|
6641
|
+
__decorateClass$N([
|
|
6642
|
+
property({ protected: true })
|
|
6607
6643
|
], Effect.prototype, "material", 2);
|
|
6608
|
-
__decorateClass$
|
|
6644
|
+
__decorateClass$N([
|
|
6609
6645
|
property()
|
|
6610
6646
|
], Effect.prototype, "effectMode", 2);
|
|
6611
|
-
__decorateClass$
|
|
6612
|
-
property(
|
|
6647
|
+
__decorateClass$N([
|
|
6648
|
+
property()
|
|
6613
6649
|
], Effect.prototype, "glsl", 2);
|
|
6614
|
-
__decorateClass$
|
|
6615
|
-
property(
|
|
6650
|
+
__decorateClass$N([
|
|
6651
|
+
property()
|
|
6616
6652
|
], Effect.prototype, "glslSrc", 2);
|
|
6617
|
-
Effect = __decorateClass$
|
|
6653
|
+
Effect = __decorateClass$N([
|
|
6618
6654
|
customNode("Effect")
|
|
6619
6655
|
], Effect);
|
|
6620
6656
|
|
|
6621
|
-
var __defProp$
|
|
6622
|
-
var __getOwnPropDesc$
|
|
6623
|
-
var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$
|
|
6624
|
-
var __decorateClass$
|
|
6625
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6657
|
+
var __defProp$F = Object.defineProperty;
|
|
6658
|
+
var __getOwnPropDesc$D = Object.getOwnPropertyDescriptor;
|
|
6659
|
+
var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6660
|
+
var __decorateClass$M = (decorators, target, key, kind) => {
|
|
6661
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$D(target, key) : target;
|
|
6626
6662
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6627
6663
|
if (decorator = decorators[i])
|
|
6628
6664
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6629
|
-
if (kind && result) __defProp$
|
|
6665
|
+
if (kind && result) __defProp$F(target, key, result);
|
|
6630
6666
|
return result;
|
|
6631
6667
|
};
|
|
6632
6668
|
var __publicField$i = (obj, key, value) => __defNormalProp$i(obj, key + "" , value);
|
|
@@ -6686,43 +6722,43 @@ void main(void) {
|
|
|
6686
6722
|
gl_FragColor = c * alpha;
|
|
6687
6723
|
}`
|
|
6688
6724
|
}));
|
|
6689
|
-
__decorateClass$
|
|
6690
|
-
property(
|
|
6725
|
+
__decorateClass$M([
|
|
6726
|
+
property()
|
|
6691
6727
|
], ColorAdjustEffect.prototype, "saturation", 2);
|
|
6692
|
-
__decorateClass$
|
|
6693
|
-
property(
|
|
6728
|
+
__decorateClass$M([
|
|
6729
|
+
property()
|
|
6694
6730
|
], ColorAdjustEffect.prototype, "contrast", 2);
|
|
6695
|
-
__decorateClass$
|
|
6696
|
-
property(
|
|
6731
|
+
__decorateClass$M([
|
|
6732
|
+
property()
|
|
6697
6733
|
], ColorAdjustEffect.prototype, "brightness", 2);
|
|
6698
|
-
__decorateClass$
|
|
6699
|
-
property(
|
|
6734
|
+
__decorateClass$M([
|
|
6735
|
+
property()
|
|
6700
6736
|
], ColorAdjustEffect.prototype, "red", 2);
|
|
6701
|
-
__decorateClass$
|
|
6702
|
-
property(
|
|
6737
|
+
__decorateClass$M([
|
|
6738
|
+
property()
|
|
6703
6739
|
], ColorAdjustEffect.prototype, "green", 2);
|
|
6704
|
-
__decorateClass$
|
|
6705
|
-
property(
|
|
6740
|
+
__decorateClass$M([
|
|
6741
|
+
property()
|
|
6706
6742
|
], ColorAdjustEffect.prototype, "blue", 2);
|
|
6707
|
-
__decorateClass$
|
|
6708
|
-
property(
|
|
6743
|
+
__decorateClass$M([
|
|
6744
|
+
property()
|
|
6709
6745
|
], ColorAdjustEffect.prototype, "alpha", 2);
|
|
6710
|
-
__decorateClass$
|
|
6711
|
-
property(
|
|
6746
|
+
__decorateClass$M([
|
|
6747
|
+
property()
|
|
6712
6748
|
], ColorAdjustEffect.prototype, "gamma", 2);
|
|
6713
|
-
ColorAdjustEffect = __decorateClass$
|
|
6749
|
+
ColorAdjustEffect = __decorateClass$M([
|
|
6714
6750
|
customNode("ColorAdjustEffect")
|
|
6715
6751
|
], ColorAdjustEffect);
|
|
6716
6752
|
|
|
6717
|
-
var __defProp$
|
|
6718
|
-
var __getOwnPropDesc$
|
|
6719
|
-
var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$
|
|
6720
|
-
var __decorateClass$
|
|
6721
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6753
|
+
var __defProp$E = Object.defineProperty;
|
|
6754
|
+
var __getOwnPropDesc$C = Object.getOwnPropertyDescriptor;
|
|
6755
|
+
var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6756
|
+
var __decorateClass$L = (decorators, target, key, kind) => {
|
|
6757
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$C(target, key) : target;
|
|
6722
6758
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6723
6759
|
if (decorator = decorators[i])
|
|
6724
6760
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6725
|
-
if (kind && result) __defProp$
|
|
6761
|
+
if (kind && result) __defProp$E(target, key, result);
|
|
6726
6762
|
return result;
|
|
6727
6763
|
};
|
|
6728
6764
|
var __publicField$h = (obj, key, value) => __defNormalProp$h(obj, key + "" , value);
|
|
@@ -6802,22 +6838,22 @@ void main(void) {
|
|
|
6802
6838
|
);
|
|
6803
6839
|
}`
|
|
6804
6840
|
}));
|
|
6805
|
-
__decorateClass$
|
|
6841
|
+
__decorateClass$L([
|
|
6806
6842
|
property()
|
|
6807
6843
|
], ColorFilterEffect.prototype, "filter", 2);
|
|
6808
|
-
ColorFilterEffect = __decorateClass$
|
|
6844
|
+
ColorFilterEffect = __decorateClass$L([
|
|
6809
6845
|
customNode("ColorFilterEffect")
|
|
6810
6846
|
], ColorFilterEffect);
|
|
6811
6847
|
|
|
6812
|
-
var __defProp$
|
|
6813
|
-
var __getOwnPropDesc$
|
|
6814
|
-
var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$
|
|
6815
|
-
var __decorateClass$
|
|
6816
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6848
|
+
var __defProp$D = Object.defineProperty;
|
|
6849
|
+
var __getOwnPropDesc$B = Object.getOwnPropertyDescriptor;
|
|
6850
|
+
var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6851
|
+
var __decorateClass$K = (decorators, target, key, kind) => {
|
|
6852
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$B(target, key) : target;
|
|
6817
6853
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6818
6854
|
if (decorator = decorators[i])
|
|
6819
6855
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6820
|
-
if (kind && result) __defProp$
|
|
6856
|
+
if (kind && result) __defProp$D(target, key, result);
|
|
6821
6857
|
return result;
|
|
6822
6858
|
};
|
|
6823
6859
|
var __publicField$g = (obj, key, value) => __defNormalProp$g(obj, key + "" , value);
|
|
@@ -6893,25 +6929,25 @@ void main(void) {
|
|
|
6893
6929
|
gl_FragColor = vec4(mix(color.rgb, mask.rgb, color.a * mask.a), color.a);
|
|
6894
6930
|
}`
|
|
6895
6931
|
}));
|
|
6896
|
-
__decorateClass$
|
|
6897
|
-
property(
|
|
6932
|
+
__decorateClass$K([
|
|
6933
|
+
property()
|
|
6898
6934
|
], ColorOverlayEffect.prototype, "colors", 2);
|
|
6899
|
-
__decorateClass$
|
|
6900
|
-
property(
|
|
6935
|
+
__decorateClass$K([
|
|
6936
|
+
property()
|
|
6901
6937
|
], ColorOverlayEffect.prototype, "alpha", 2);
|
|
6902
|
-
ColorOverlayEffect = __decorateClass$
|
|
6938
|
+
ColorOverlayEffect = __decorateClass$K([
|
|
6903
6939
|
customNode("ColorOverlayEffect")
|
|
6904
6940
|
], ColorOverlayEffect);
|
|
6905
6941
|
|
|
6906
|
-
var __defProp$
|
|
6907
|
-
var __getOwnPropDesc$
|
|
6908
|
-
var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$
|
|
6909
|
-
var __decorateClass$
|
|
6910
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6942
|
+
var __defProp$C = Object.defineProperty;
|
|
6943
|
+
var __getOwnPropDesc$A = Object.getOwnPropertyDescriptor;
|
|
6944
|
+
var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6945
|
+
var __decorateClass$J = (decorators, target, key, kind) => {
|
|
6946
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$A(target, key) : target;
|
|
6911
6947
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6912
6948
|
if (decorator = decorators[i])
|
|
6913
6949
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6914
|
-
if (kind && result) __defProp$
|
|
6950
|
+
if (kind && result) __defProp$C(target, key, result);
|
|
6915
6951
|
return result;
|
|
6916
6952
|
};
|
|
6917
6953
|
var __publicField$f = (obj, key, value) => __defNormalProp$f(obj, key + "" , value);
|
|
@@ -6978,25 +7014,25 @@ void main(void) {
|
|
|
6978
7014
|
gl_FragColor = color;
|
|
6979
7015
|
}`
|
|
6980
7016
|
}));
|
|
6981
|
-
__decorateClass$
|
|
6982
|
-
property(
|
|
7017
|
+
__decorateClass$J([
|
|
7018
|
+
property()
|
|
6983
7019
|
], ColorRemoveEffect.prototype, "colors", 2);
|
|
6984
|
-
__decorateClass$
|
|
6985
|
-
property(
|
|
7020
|
+
__decorateClass$J([
|
|
7021
|
+
property()
|
|
6986
7022
|
], ColorRemoveEffect.prototype, "epsilon", 2);
|
|
6987
|
-
ColorRemoveEffect = __decorateClass$
|
|
7023
|
+
ColorRemoveEffect = __decorateClass$J([
|
|
6988
7024
|
customNode("ColorRemoveEffect")
|
|
6989
7025
|
], ColorRemoveEffect);
|
|
6990
7026
|
|
|
6991
|
-
var __defProp$
|
|
6992
|
-
var __getOwnPropDesc$
|
|
6993
|
-
var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$
|
|
6994
|
-
var __decorateClass$
|
|
6995
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7027
|
+
var __defProp$B = Object.defineProperty;
|
|
7028
|
+
var __getOwnPropDesc$z = Object.getOwnPropertyDescriptor;
|
|
7029
|
+
var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7030
|
+
var __decorateClass$I = (decorators, target, key, kind) => {
|
|
7031
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$z(target, key) : target;
|
|
6996
7032
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6997
7033
|
if (decorator = decorators[i])
|
|
6998
7034
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6999
|
-
if (kind && result) __defProp$
|
|
7035
|
+
if (kind && result) __defProp$B(target, key, result);
|
|
7000
7036
|
return result;
|
|
7001
7037
|
};
|
|
7002
7038
|
var __publicField$e = (obj, key, value) => __defNormalProp$e(obj, key + "" , value);
|
|
@@ -7085,13 +7121,13 @@ void main(void) {
|
|
|
7085
7121
|
}
|
|
7086
7122
|
}`
|
|
7087
7123
|
}));
|
|
7088
|
-
__decorateClass$
|
|
7089
|
-
property(
|
|
7124
|
+
__decorateClass$I([
|
|
7125
|
+
property()
|
|
7090
7126
|
], ColorReplaceEffect.prototype, "colors", 2);
|
|
7091
|
-
__decorateClass$
|
|
7092
|
-
property(
|
|
7127
|
+
__decorateClass$I([
|
|
7128
|
+
property()
|
|
7093
7129
|
], ColorReplaceEffect.prototype, "epsilon", 2);
|
|
7094
|
-
ColorReplaceEffect = __decorateClass$
|
|
7130
|
+
ColorReplaceEffect = __decorateClass$I([
|
|
7095
7131
|
customNode("ColorReplaceEffect")
|
|
7096
7132
|
], ColorReplaceEffect);
|
|
7097
7133
|
|
|
@@ -7246,14 +7282,14 @@ class CanvasContext extends Path2D {
|
|
|
7246
7282
|
}
|
|
7247
7283
|
}
|
|
7248
7284
|
|
|
7249
|
-
var __defProp$
|
|
7250
|
-
var __getOwnPropDesc$
|
|
7251
|
-
var __decorateClass$
|
|
7252
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7285
|
+
var __defProp$A = Object.defineProperty;
|
|
7286
|
+
var __getOwnPropDesc$y = Object.getOwnPropertyDescriptor;
|
|
7287
|
+
var __decorateClass$H = (decorators, target, key, kind) => {
|
|
7288
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$y(target, key) : target;
|
|
7253
7289
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
7254
7290
|
if (decorator = decorators[i])
|
|
7255
7291
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7256
|
-
if (kind && result) __defProp$
|
|
7292
|
+
if (kind && result) __defProp$A(target, key, result);
|
|
7257
7293
|
return result;
|
|
7258
7294
|
};
|
|
7259
7295
|
let CanvasItem = class extends TimelineNode {
|
|
@@ -7271,7 +7307,7 @@ let CanvasItem = class extends TimelineNode {
|
|
|
7271
7307
|
// Batch render
|
|
7272
7308
|
context = new CanvasContext();
|
|
7273
7309
|
_resetContext = true;
|
|
7274
|
-
_redrawing =
|
|
7310
|
+
_redrawing = true;
|
|
7275
7311
|
_relayouting = false;
|
|
7276
7312
|
_repainting = false;
|
|
7277
7313
|
_originalBatchables = [];
|
|
@@ -7340,16 +7376,16 @@ let CanvasItem = class extends TimelineNode {
|
|
|
7340
7376
|
this.emit("draw");
|
|
7341
7377
|
}
|
|
7342
7378
|
_redraw() {
|
|
7343
|
-
this._tree?.log(this.name, "
|
|
7379
|
+
this._tree?.log(this.name, "drawing");
|
|
7344
7380
|
this._draw();
|
|
7345
7381
|
return this.context.toBatchables();
|
|
7346
7382
|
}
|
|
7347
7383
|
_relayout(batchables) {
|
|
7348
|
-
this._tree?.log(this.name, "
|
|
7384
|
+
this._tree?.log(this.name, "layouting");
|
|
7349
7385
|
return batchables;
|
|
7350
7386
|
}
|
|
7351
7387
|
_repaint(batchables) {
|
|
7352
|
-
this._tree?.log(this.name, "
|
|
7388
|
+
this._tree?.log(this.name, "painting");
|
|
7353
7389
|
return batchables.map((batchable) => {
|
|
7354
7390
|
return {
|
|
7355
7391
|
...batchable,
|
|
@@ -7415,19 +7451,19 @@ let CanvasItem = class extends TimelineNode {
|
|
|
7415
7451
|
super._render(renderer);
|
|
7416
7452
|
}
|
|
7417
7453
|
};
|
|
7418
|
-
__decorateClass$
|
|
7454
|
+
__decorateClass$H([
|
|
7419
7455
|
property()
|
|
7420
7456
|
], CanvasItem.prototype, "modulate", 2);
|
|
7421
|
-
__decorateClass$
|
|
7457
|
+
__decorateClass$H([
|
|
7422
7458
|
property()
|
|
7423
7459
|
], CanvasItem.prototype, "blendMode", 2);
|
|
7424
|
-
__decorateClass$
|
|
7425
|
-
|
|
7460
|
+
__decorateClass$H([
|
|
7461
|
+
property({ protected: true, fallback: true })
|
|
7426
7462
|
], CanvasItem.prototype, "visible", 2);
|
|
7427
|
-
__decorateClass$
|
|
7428
|
-
|
|
7463
|
+
__decorateClass$H([
|
|
7464
|
+
property({ protected: true, fallback: 1 })
|
|
7429
7465
|
], CanvasItem.prototype, "opacity", 2);
|
|
7430
|
-
CanvasItem = __decorateClass$
|
|
7466
|
+
CanvasItem = __decorateClass$H([
|
|
7431
7467
|
customNode("CanvasItem")
|
|
7432
7468
|
], CanvasItem);
|
|
7433
7469
|
|
|
@@ -7457,14 +7493,14 @@ class RenderStack {
|
|
|
7457
7493
|
}
|
|
7458
7494
|
}
|
|
7459
7495
|
|
|
7460
|
-
var __defProp$
|
|
7461
|
-
var __getOwnPropDesc$
|
|
7462
|
-
var __decorateClass$
|
|
7463
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7496
|
+
var __defProp$z = Object.defineProperty;
|
|
7497
|
+
var __getOwnPropDesc$x = Object.getOwnPropertyDescriptor;
|
|
7498
|
+
var __decorateClass$G = (decorators, target, key, kind) => {
|
|
7499
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$x(target, key) : target;
|
|
7464
7500
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
7465
7501
|
if (decorator = decorators[i])
|
|
7466
7502
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7467
|
-
if (kind && result) __defProp$
|
|
7503
|
+
if (kind && result) __defProp$z(target, key, result);
|
|
7468
7504
|
return result;
|
|
7469
7505
|
};
|
|
7470
7506
|
let Timeline = class extends Node {
|
|
@@ -7509,29 +7545,29 @@ let Timeline = class extends Node {
|
|
|
7509
7545
|
this.addTime(delta);
|
|
7510
7546
|
}
|
|
7511
7547
|
};
|
|
7512
|
-
__decorateClass$
|
|
7513
|
-
property({
|
|
7548
|
+
__decorateClass$G([
|
|
7549
|
+
property({ fallback: 0 })
|
|
7514
7550
|
], Timeline.prototype, "startTime", 2);
|
|
7515
|
-
__decorateClass$
|
|
7516
|
-
property({
|
|
7551
|
+
__decorateClass$G([
|
|
7552
|
+
property({ fallback: 0 })
|
|
7517
7553
|
], Timeline.prototype, "currentTime", 2);
|
|
7518
|
-
__decorateClass$
|
|
7519
|
-
property({
|
|
7554
|
+
__decorateClass$G([
|
|
7555
|
+
property({ fallback: Number.MAX_SAFE_INTEGER })
|
|
7520
7556
|
], Timeline.prototype, "endTime", 2);
|
|
7521
|
-
__decorateClass$
|
|
7522
|
-
property({
|
|
7557
|
+
__decorateClass$G([
|
|
7558
|
+
property({ fallback: false })
|
|
7523
7559
|
], Timeline.prototype, "loop", 2);
|
|
7524
|
-
Timeline = __decorateClass$
|
|
7560
|
+
Timeline = __decorateClass$G([
|
|
7525
7561
|
customNode("Timeline")
|
|
7526
7562
|
], Timeline);
|
|
7527
7563
|
|
|
7528
|
-
var __defProp$
|
|
7529
|
-
var __decorateClass$
|
|
7564
|
+
var __defProp$y = Object.defineProperty;
|
|
7565
|
+
var __decorateClass$F = (decorators, target, key, kind) => {
|
|
7530
7566
|
var result = void 0 ;
|
|
7531
7567
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
7532
7568
|
if (decorator = decorators[i])
|
|
7533
7569
|
result = (decorator(target, key, result) ) || result;
|
|
7534
|
-
if (result) __defProp$
|
|
7570
|
+
if (result) __defProp$y(target, key, result);
|
|
7535
7571
|
return result;
|
|
7536
7572
|
};
|
|
7537
7573
|
class SceneTree extends MainLoop {
|
|
@@ -7539,6 +7575,7 @@ class SceneTree extends MainLoop {
|
|
|
7539
7575
|
renderStack = new RenderStack();
|
|
7540
7576
|
root = new Viewport(true).setTree(this);
|
|
7541
7577
|
timeline;
|
|
7578
|
+
nodes = /* @__PURE__ */ new Map();
|
|
7542
7579
|
_backgroundColor = new Color();
|
|
7543
7580
|
_currentViewport;
|
|
7544
7581
|
getCurrentViewport() {
|
|
@@ -7604,19 +7641,19 @@ class SceneTree extends MainLoop {
|
|
|
7604
7641
|
this.input.removeEventListeners();
|
|
7605
7642
|
}
|
|
7606
7643
|
}
|
|
7607
|
-
__decorateClass$
|
|
7608
|
-
property({
|
|
7644
|
+
__decorateClass$F([
|
|
7645
|
+
property({ fallback: false })
|
|
7609
7646
|
], SceneTree.prototype, "processPaused");
|
|
7610
|
-
__decorateClass$
|
|
7647
|
+
__decorateClass$F([
|
|
7611
7648
|
property()
|
|
7612
7649
|
], SceneTree.prototype, "backgroundColor");
|
|
7613
|
-
__decorateClass$
|
|
7614
|
-
|
|
7650
|
+
__decorateClass$F([
|
|
7651
|
+
property({ protected: true, fallback: false })
|
|
7615
7652
|
], SceneTree.prototype, "debug");
|
|
7616
7653
|
|
|
7617
|
-
var __getOwnPropDesc$
|
|
7618
|
-
var __decorateClass$
|
|
7619
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7654
|
+
var __getOwnPropDesc$w = Object.getOwnPropertyDescriptor;
|
|
7655
|
+
var __decorateClass$E = (decorators, target, key, kind) => {
|
|
7656
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$w(target, key) : target;
|
|
7620
7657
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
7621
7658
|
if (decorator = decorators[i])
|
|
7622
7659
|
result = (decorator(result)) || result;
|
|
@@ -7628,7 +7665,7 @@ let Transition = class extends Effect {
|
|
|
7628
7665
|
this.setProperties(properties).append(children);
|
|
7629
7666
|
}
|
|
7630
7667
|
};
|
|
7631
|
-
Transition = __decorateClass$
|
|
7668
|
+
Transition = __decorateClass$E([
|
|
7632
7669
|
customNode("Transition", {
|
|
7633
7670
|
effectMode: "transition",
|
|
7634
7671
|
processMode: "pausable",
|
|
@@ -7636,15 +7673,15 @@ Transition = __decorateClass$F([
|
|
|
7636
7673
|
})
|
|
7637
7674
|
], Transition);
|
|
7638
7675
|
|
|
7639
|
-
var __defProp$
|
|
7640
|
-
var __getOwnPropDesc$
|
|
7641
|
-
var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$
|
|
7642
|
-
var __decorateClass$
|
|
7643
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7676
|
+
var __defProp$x = Object.defineProperty;
|
|
7677
|
+
var __getOwnPropDesc$v = Object.getOwnPropertyDescriptor;
|
|
7678
|
+
var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7679
|
+
var __decorateClass$D = (decorators, target, key, kind) => {
|
|
7680
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$v(target, key) : target;
|
|
7644
7681
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
7645
7682
|
if (decorator = decorators[i])
|
|
7646
7683
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7647
|
-
if (kind && result) __defProp$
|
|
7684
|
+
if (kind && result) __defProp$x(target, key, result);
|
|
7648
7685
|
return result;
|
|
7649
7686
|
};
|
|
7650
7687
|
var __publicField$d = (obj, key, value) => __defNormalProp$d(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
@@ -7750,25 +7787,25 @@ void main(void) {
|
|
|
7750
7787
|
}`,
|
|
7751
7788
|
frag: frag$2
|
|
7752
7789
|
}));
|
|
7753
|
-
__decorateClass$
|
|
7790
|
+
__decorateClass$D([
|
|
7754
7791
|
property({ default: 4 })
|
|
7755
7792
|
], GaussianBlurEffect.prototype, "strength", 2);
|
|
7756
|
-
__decorateClass$
|
|
7793
|
+
__decorateClass$D([
|
|
7757
7794
|
property({ default: 3 })
|
|
7758
7795
|
], GaussianBlurEffect.prototype, "quality", 2);
|
|
7759
|
-
GaussianBlurEffect = __decorateClass$
|
|
7796
|
+
GaussianBlurEffect = __decorateClass$D([
|
|
7760
7797
|
customNode("GaussianBlurEffect")
|
|
7761
7798
|
], GaussianBlurEffect);
|
|
7762
7799
|
|
|
7763
|
-
var __defProp$
|
|
7764
|
-
var __getOwnPropDesc$
|
|
7765
|
-
var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$
|
|
7766
|
-
var __decorateClass$
|
|
7767
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7800
|
+
var __defProp$w = Object.defineProperty;
|
|
7801
|
+
var __getOwnPropDesc$u = Object.getOwnPropertyDescriptor;
|
|
7802
|
+
var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7803
|
+
var __decorateClass$C = (decorators, target, key, kind) => {
|
|
7804
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$u(target, key) : target;
|
|
7768
7805
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
7769
7806
|
if (decorator = decorators[i])
|
|
7770
7807
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7771
|
-
if (kind && result) __defProp$
|
|
7808
|
+
if (kind && result) __defProp$w(target, key, result);
|
|
7772
7809
|
return result;
|
|
7773
7810
|
};
|
|
7774
7811
|
var __publicField$c = (obj, key, value) => __defNormalProp$c(obj, key + "" , value);
|
|
@@ -7832,34 +7869,34 @@ void main(void) {
|
|
|
7832
7869
|
gl_FragColor = sample;
|
|
7833
7870
|
}`
|
|
7834
7871
|
}));
|
|
7835
|
-
__decorateClass$
|
|
7836
|
-
property(
|
|
7872
|
+
__decorateClass$C([
|
|
7873
|
+
property()
|
|
7837
7874
|
], DropShadowEffect.prototype, "color", 2);
|
|
7838
|
-
__decorateClass$
|
|
7839
|
-
property(
|
|
7875
|
+
__decorateClass$C([
|
|
7876
|
+
property()
|
|
7840
7877
|
], DropShadowEffect.prototype, "blur", 2);
|
|
7841
|
-
__decorateClass$
|
|
7842
|
-
property(
|
|
7878
|
+
__decorateClass$C([
|
|
7879
|
+
property()
|
|
7843
7880
|
], DropShadowEffect.prototype, "offsetX", 2);
|
|
7844
|
-
__decorateClass$
|
|
7845
|
-
property(
|
|
7881
|
+
__decorateClass$C([
|
|
7882
|
+
property()
|
|
7846
7883
|
], DropShadowEffect.prototype, "offsetY", 2);
|
|
7847
|
-
__decorateClass$
|
|
7848
|
-
property(
|
|
7884
|
+
__decorateClass$C([
|
|
7885
|
+
property()
|
|
7849
7886
|
], DropShadowEffect.prototype, "shadowOnly", 2);
|
|
7850
|
-
DropShadowEffect = __decorateClass$
|
|
7887
|
+
DropShadowEffect = __decorateClass$C([
|
|
7851
7888
|
customNode("DropShadowEffect")
|
|
7852
7889
|
], DropShadowEffect);
|
|
7853
7890
|
|
|
7854
|
-
var __defProp$
|
|
7855
|
-
var __getOwnPropDesc$
|
|
7856
|
-
var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$
|
|
7857
|
-
var __decorateClass$
|
|
7858
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7891
|
+
var __defProp$v = Object.defineProperty;
|
|
7892
|
+
var __getOwnPropDesc$t = Object.getOwnPropertyDescriptor;
|
|
7893
|
+
var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7894
|
+
var __decorateClass$B = (decorators, target, key, kind) => {
|
|
7895
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$t(target, key) : target;
|
|
7859
7896
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
7860
7897
|
if (decorator = decorators[i])
|
|
7861
7898
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7862
|
-
if (kind && result) __defProp$
|
|
7899
|
+
if (kind && result) __defProp$v(target, key, result);
|
|
7863
7900
|
return result;
|
|
7864
7901
|
};
|
|
7865
7902
|
var __publicField$b = (obj, key, value) => __defNormalProp$b(obj, key + "" , value);
|
|
@@ -7904,22 +7941,22 @@ void main(void) {
|
|
|
7904
7941
|
gl_FragColor = vec4(color.rgb * alpha, alpha);
|
|
7905
7942
|
}`
|
|
7906
7943
|
}));
|
|
7907
|
-
__decorateClass$
|
|
7908
|
-
property(
|
|
7944
|
+
__decorateClass$B([
|
|
7945
|
+
property()
|
|
7909
7946
|
], EmbossEffect.prototype, "strength", 2);
|
|
7910
|
-
EmbossEffect = __decorateClass$
|
|
7947
|
+
EmbossEffect = __decorateClass$B([
|
|
7911
7948
|
customNode("EmbossEffect")
|
|
7912
7949
|
], EmbossEffect);
|
|
7913
7950
|
|
|
7914
|
-
var __defProp$
|
|
7915
|
-
var __getOwnPropDesc$
|
|
7916
|
-
var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$
|
|
7917
|
-
var __decorateClass$
|
|
7918
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7951
|
+
var __defProp$u = Object.defineProperty;
|
|
7952
|
+
var __getOwnPropDesc$s = Object.getOwnPropertyDescriptor;
|
|
7953
|
+
var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7954
|
+
var __decorateClass$A = (decorators, target, key, kind) => {
|
|
7955
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$s(target, key) : target;
|
|
7919
7956
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
7920
7957
|
if (decorator = decorators[i])
|
|
7921
7958
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7922
|
-
if (kind && result) __defProp$
|
|
7959
|
+
if (kind && result) __defProp$u(target, key, result);
|
|
7923
7960
|
return result;
|
|
7924
7961
|
};
|
|
7925
7962
|
var __publicField$a = (obj, key, value) => __defNormalProp$a(obj, key + "" , value);
|
|
@@ -8093,46 +8130,46 @@ void main(void) {
|
|
|
8093
8130
|
gl_FragColor.a = texture2D(sampler, coord).a;
|
|
8094
8131
|
}`
|
|
8095
8132
|
}));
|
|
8096
|
-
__decorateClass$
|
|
8097
|
-
property(
|
|
8133
|
+
__decorateClass$A([
|
|
8134
|
+
property()
|
|
8098
8135
|
], GlitchEffect.prototype, "slices", 2);
|
|
8099
|
-
__decorateClass$
|
|
8100
|
-
property(
|
|
8136
|
+
__decorateClass$A([
|
|
8137
|
+
property()
|
|
8101
8138
|
], GlitchEffect.prototype, "sampleSize", 2);
|
|
8102
|
-
__decorateClass$
|
|
8103
|
-
property(
|
|
8139
|
+
__decorateClass$A([
|
|
8140
|
+
property()
|
|
8104
8141
|
], GlitchEffect.prototype, "offset", 2);
|
|
8105
|
-
__decorateClass$
|
|
8106
|
-
property(
|
|
8142
|
+
__decorateClass$A([
|
|
8143
|
+
property()
|
|
8107
8144
|
], GlitchEffect.prototype, "direction", 2);
|
|
8108
|
-
__decorateClass$
|
|
8109
|
-
property(
|
|
8145
|
+
__decorateClass$A([
|
|
8146
|
+
property()
|
|
8110
8147
|
], GlitchEffect.prototype, "fillMode", 2);
|
|
8111
|
-
__decorateClass$
|
|
8112
|
-
property(
|
|
8148
|
+
__decorateClass$A([
|
|
8149
|
+
property()
|
|
8113
8150
|
], GlitchEffect.prototype, "seed", 2);
|
|
8114
|
-
__decorateClass$
|
|
8115
|
-
property(
|
|
8151
|
+
__decorateClass$A([
|
|
8152
|
+
property()
|
|
8116
8153
|
], GlitchEffect.prototype, "red", 2);
|
|
8117
|
-
__decorateClass$
|
|
8118
|
-
property(
|
|
8154
|
+
__decorateClass$A([
|
|
8155
|
+
property()
|
|
8119
8156
|
], GlitchEffect.prototype, "green", 2);
|
|
8120
|
-
__decorateClass$
|
|
8121
|
-
property(
|
|
8157
|
+
__decorateClass$A([
|
|
8158
|
+
property()
|
|
8122
8159
|
], GlitchEffect.prototype, "blue", 2);
|
|
8123
|
-
GlitchEffect = __decorateClass$
|
|
8160
|
+
GlitchEffect = __decorateClass$A([
|
|
8124
8161
|
customNode("GlitchEffect")
|
|
8125
8162
|
], GlitchEffect);
|
|
8126
8163
|
|
|
8127
|
-
var __defProp$
|
|
8128
|
-
var __getOwnPropDesc$
|
|
8129
|
-
var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$
|
|
8130
|
-
var __decorateClass$
|
|
8131
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
8164
|
+
var __defProp$t = Object.defineProperty;
|
|
8165
|
+
var __getOwnPropDesc$r = Object.getOwnPropertyDescriptor;
|
|
8166
|
+
var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8167
|
+
var __decorateClass$z = (decorators, target, key, kind) => {
|
|
8168
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$r(target, key) : target;
|
|
8132
8169
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
8133
8170
|
if (decorator = decorators[i])
|
|
8134
8171
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8135
|
-
if (kind && result) __defProp$
|
|
8172
|
+
if (kind && result) __defProp$t(target, key, result);
|
|
8136
8173
|
return result;
|
|
8137
8174
|
};
|
|
8138
8175
|
var __publicField$9 = (obj, key, value) => __defNormalProp$9(obj, key + "" , value);
|
|
@@ -8310,39 +8347,39 @@ void main(void) {
|
|
|
8310
8347
|
gl_FragColor = vec4(color.rgb + mist.rgb, color.a);
|
|
8311
8348
|
}`
|
|
8312
8349
|
}));
|
|
8313
|
-
__decorateClass$
|
|
8314
|
-
property(
|
|
8350
|
+
__decorateClass$z([
|
|
8351
|
+
property()
|
|
8315
8352
|
], GodrayEffect.prototype, "time", 2);
|
|
8316
|
-
__decorateClass$
|
|
8317
|
-
property(
|
|
8353
|
+
__decorateClass$z([
|
|
8354
|
+
property()
|
|
8318
8355
|
], GodrayEffect.prototype, "angle", 2);
|
|
8319
|
-
__decorateClass$
|
|
8320
|
-
property(
|
|
8356
|
+
__decorateClass$z([
|
|
8357
|
+
property()
|
|
8321
8358
|
], GodrayEffect.prototype, "gain", 2);
|
|
8322
|
-
__decorateClass$
|
|
8323
|
-
property(
|
|
8359
|
+
__decorateClass$z([
|
|
8360
|
+
property()
|
|
8324
8361
|
], GodrayEffect.prototype, "lacunarity", 2);
|
|
8325
|
-
__decorateClass$
|
|
8326
|
-
property(
|
|
8362
|
+
__decorateClass$z([
|
|
8363
|
+
property()
|
|
8327
8364
|
], GodrayEffect.prototype, "parallel", 2);
|
|
8328
|
-
__decorateClass$
|
|
8329
|
-
property(
|
|
8365
|
+
__decorateClass$z([
|
|
8366
|
+
property()
|
|
8330
8367
|
], GodrayEffect.prototype, "center", 2);
|
|
8331
|
-
__decorateClass$
|
|
8332
|
-
property(
|
|
8368
|
+
__decorateClass$z([
|
|
8369
|
+
property()
|
|
8333
8370
|
], GodrayEffect.prototype, "alpha", 2);
|
|
8334
|
-
GodrayEffect = __decorateClass$
|
|
8371
|
+
GodrayEffect = __decorateClass$z([
|
|
8335
8372
|
customNode("GodrayEffect")
|
|
8336
8373
|
], GodrayEffect);
|
|
8337
8374
|
|
|
8338
|
-
var __defProp$
|
|
8339
|
-
var __getOwnPropDesc$
|
|
8340
|
-
var __decorateClass$
|
|
8341
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
8375
|
+
var __defProp$s = Object.defineProperty;
|
|
8376
|
+
var __getOwnPropDesc$q = Object.getOwnPropertyDescriptor;
|
|
8377
|
+
var __decorateClass$y = (decorators, target, key, kind) => {
|
|
8378
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$q(target, key) : target;
|
|
8342
8379
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
8343
8380
|
if (decorator = decorators[i])
|
|
8344
8381
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8345
|
-
if (kind && result) __defProp$
|
|
8382
|
+
if (kind && result) __defProp$s(target, key, result);
|
|
8346
8383
|
return result;
|
|
8347
8384
|
};
|
|
8348
8385
|
const frag$1 = `varying vec2 vUv;
|
|
@@ -8373,7 +8410,6 @@ void main(void) {
|
|
|
8373
8410
|
gl_FragColor = color;
|
|
8374
8411
|
}`;
|
|
8375
8412
|
let KawaseBlurEffect = class extends Effect {
|
|
8376
|
-
material;
|
|
8377
8413
|
_kernels = [0];
|
|
8378
8414
|
constructor(properties, children = []) {
|
|
8379
8415
|
super();
|
|
@@ -8433,33 +8469,32 @@ void main() {
|
|
|
8433
8469
|
});
|
|
8434
8470
|
}
|
|
8435
8471
|
};
|
|
8436
|
-
__decorateClass$
|
|
8437
|
-
property(
|
|
8472
|
+
__decorateClass$y([
|
|
8473
|
+
property()
|
|
8438
8474
|
], KawaseBlurEffect.prototype, "strength", 2);
|
|
8439
|
-
__decorateClass$
|
|
8440
|
-
property(
|
|
8475
|
+
__decorateClass$y([
|
|
8476
|
+
property()
|
|
8441
8477
|
], KawaseBlurEffect.prototype, "quality", 2);
|
|
8442
|
-
__decorateClass$
|
|
8443
|
-
property(
|
|
8478
|
+
__decorateClass$y([
|
|
8479
|
+
property()
|
|
8444
8480
|
], KawaseBlurEffect.prototype, "pixelSize", 2);
|
|
8445
|
-
KawaseBlurEffect = __decorateClass$
|
|
8481
|
+
KawaseBlurEffect = __decorateClass$y([
|
|
8446
8482
|
customNode("KawaseBlurEffect")
|
|
8447
8483
|
], KawaseBlurEffect);
|
|
8448
8484
|
|
|
8449
|
-
var __defProp$
|
|
8450
|
-
var __getOwnPropDesc$
|
|
8451
|
-
var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$
|
|
8452
|
-
var __decorateClass$
|
|
8453
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
8485
|
+
var __defProp$r = Object.defineProperty;
|
|
8486
|
+
var __getOwnPropDesc$p = Object.getOwnPropertyDescriptor;
|
|
8487
|
+
var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8488
|
+
var __decorateClass$x = (decorators, target, key, kind) => {
|
|
8489
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$p(target, key) : target;
|
|
8454
8490
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
8455
8491
|
if (decorator = decorators[i])
|
|
8456
8492
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8457
|
-
if (kind && result) __defProp$
|
|
8493
|
+
if (kind && result) __defProp$r(target, key, result);
|
|
8458
8494
|
return result;
|
|
8459
8495
|
};
|
|
8460
8496
|
var __publicField$8 = (obj, key, value) => __defNormalProp$8(obj, key + "" , value);
|
|
8461
8497
|
let MaskEffect = class extends Effect {
|
|
8462
|
-
texture;
|
|
8463
8498
|
constructor(properties, children = []) {
|
|
8464
8499
|
super();
|
|
8465
8500
|
this.setProperties(properties).append(children);
|
|
@@ -8543,25 +8578,25 @@ void main(void) {
|
|
|
8543
8578
|
}
|
|
8544
8579
|
}`
|
|
8545
8580
|
}));
|
|
8546
|
-
__decorateClass$
|
|
8547
|
-
|
|
8581
|
+
__decorateClass$x([
|
|
8582
|
+
property({ protected: true })
|
|
8548
8583
|
], MaskEffect.prototype, "texture", 2);
|
|
8549
|
-
__decorateClass$
|
|
8584
|
+
__decorateClass$x([
|
|
8550
8585
|
property({ default: "" })
|
|
8551
8586
|
], MaskEffect.prototype, "src", 2);
|
|
8552
|
-
MaskEffect = __decorateClass$
|
|
8587
|
+
MaskEffect = __decorateClass$x([
|
|
8553
8588
|
customNode("MaskEffect")
|
|
8554
8589
|
], MaskEffect);
|
|
8555
8590
|
|
|
8556
|
-
var __defProp$
|
|
8557
|
-
var __getOwnPropDesc$
|
|
8558
|
-
var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$
|
|
8559
|
-
var __decorateClass$
|
|
8560
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
8591
|
+
var __defProp$q = Object.defineProperty;
|
|
8592
|
+
var __getOwnPropDesc$o = Object.getOwnPropertyDescriptor;
|
|
8593
|
+
var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8594
|
+
var __decorateClass$w = (decorators, target, key, kind) => {
|
|
8595
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$o(target, key) : target;
|
|
8561
8596
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
8562
8597
|
if (decorator = decorators[i])
|
|
8563
8598
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8564
|
-
if (kind && result) __defProp$
|
|
8599
|
+
if (kind && result) __defProp$q(target, key, result);
|
|
8565
8600
|
return result;
|
|
8566
8601
|
};
|
|
8567
8602
|
var __publicField$7 = (obj, key, value) => __defNormalProp$7(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
@@ -8601,7 +8636,6 @@ void main(void) {
|
|
|
8601
8636
|
gl_FragColor = contentColor + outlineColor;
|
|
8602
8637
|
}`;
|
|
8603
8638
|
let OutlineEffect = class extends Effect {
|
|
8604
|
-
material;
|
|
8605
8639
|
static getAngleStep(quality) {
|
|
8606
8640
|
return Number.parseFloat(
|
|
8607
8641
|
(Math.PI * 2 / Math.max(
|
|
@@ -8649,40 +8683,40 @@ void main() {
|
|
|
8649
8683
|
};
|
|
8650
8684
|
__publicField$7(OutlineEffect, "MIN_SAMPLES", 1);
|
|
8651
8685
|
__publicField$7(OutlineEffect, "MAX_SAMPLES", 100);
|
|
8652
|
-
__decorateClass$
|
|
8653
|
-
property(
|
|
8686
|
+
__decorateClass$w([
|
|
8687
|
+
property()
|
|
8654
8688
|
], OutlineEffect.prototype, "color", 2);
|
|
8655
|
-
__decorateClass$
|
|
8656
|
-
property(
|
|
8689
|
+
__decorateClass$w([
|
|
8690
|
+
property()
|
|
8657
8691
|
], OutlineEffect.prototype, "width", 2);
|
|
8658
|
-
__decorateClass$
|
|
8659
|
-
property(
|
|
8692
|
+
__decorateClass$w([
|
|
8693
|
+
property()
|
|
8660
8694
|
], OutlineEffect.prototype, "style", 2);
|
|
8661
|
-
__decorateClass$
|
|
8695
|
+
__decorateClass$w([
|
|
8662
8696
|
property()
|
|
8663
8697
|
], OutlineEffect.prototype, "image", 2);
|
|
8664
|
-
__decorateClass$
|
|
8665
|
-
property(
|
|
8698
|
+
__decorateClass$w([
|
|
8699
|
+
property()
|
|
8666
8700
|
], OutlineEffect.prototype, "opacity", 2);
|
|
8667
|
-
__decorateClass$
|
|
8668
|
-
property(
|
|
8701
|
+
__decorateClass$w([
|
|
8702
|
+
property()
|
|
8669
8703
|
], OutlineEffect.prototype, "quality", 2);
|
|
8670
|
-
__decorateClass$
|
|
8671
|
-
property(
|
|
8704
|
+
__decorateClass$w([
|
|
8705
|
+
property()
|
|
8672
8706
|
], OutlineEffect.prototype, "knockout", 2);
|
|
8673
|
-
OutlineEffect = __decorateClass$
|
|
8707
|
+
OutlineEffect = __decorateClass$w([
|
|
8674
8708
|
customNode("OutlineEffect")
|
|
8675
8709
|
], OutlineEffect);
|
|
8676
8710
|
|
|
8677
|
-
var __defProp$
|
|
8678
|
-
var __getOwnPropDesc$
|
|
8679
|
-
var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$
|
|
8680
|
-
var __decorateClass$
|
|
8681
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
8711
|
+
var __defProp$p = Object.defineProperty;
|
|
8712
|
+
var __getOwnPropDesc$n = Object.getOwnPropertyDescriptor;
|
|
8713
|
+
var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8714
|
+
var __decorateClass$v = (decorators, target, key, kind) => {
|
|
8715
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$n(target, key) : target;
|
|
8682
8716
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
8683
8717
|
if (decorator = decorators[i])
|
|
8684
8718
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8685
|
-
if (kind && result) __defProp$
|
|
8719
|
+
if (kind && result) __defProp$p(target, key, result);
|
|
8686
8720
|
return result;
|
|
8687
8721
|
};
|
|
8688
8722
|
var __publicField$6 = (obj, key, value) => __defNormalProp$6(obj, key + "" , value);
|
|
@@ -8738,22 +8772,22 @@ void main(void) {
|
|
|
8738
8772
|
gl_FragColor = texture2D(sampler, coord);
|
|
8739
8773
|
}`
|
|
8740
8774
|
}));
|
|
8741
|
-
__decorateClass$
|
|
8742
|
-
property(
|
|
8775
|
+
__decorateClass$v([
|
|
8776
|
+
property()
|
|
8743
8777
|
], PixelateEffect.prototype, "strength", 2);
|
|
8744
|
-
PixelateEffect = __decorateClass$
|
|
8778
|
+
PixelateEffect = __decorateClass$v([
|
|
8745
8779
|
customNode("PixelateEffect")
|
|
8746
8780
|
], PixelateEffect);
|
|
8747
8781
|
|
|
8748
|
-
var __defProp$
|
|
8749
|
-
var __getOwnPropDesc$
|
|
8750
|
-
var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$
|
|
8751
|
-
var __decorateClass$
|
|
8752
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
8782
|
+
var __defProp$o = Object.defineProperty;
|
|
8783
|
+
var __getOwnPropDesc$m = Object.getOwnPropertyDescriptor;
|
|
8784
|
+
var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8785
|
+
var __decorateClass$u = (decorators, target, key, kind) => {
|
|
8786
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$m(target, key) : target;
|
|
8753
8787
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
8754
8788
|
if (decorator = decorators[i])
|
|
8755
8789
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8756
|
-
if (kind && result) __defProp$
|
|
8790
|
+
if (kind && result) __defProp$o(target, key, result);
|
|
8757
8791
|
return result;
|
|
8758
8792
|
};
|
|
8759
8793
|
var __publicField$5 = (obj, key, value) => __defNormalProp$5(obj, key + "" , value);
|
|
@@ -8866,29 +8900,29 @@ void main() {
|
|
|
8866
8900
|
gl_FragColor = color;
|
|
8867
8901
|
}`
|
|
8868
8902
|
}));
|
|
8869
|
-
__decorateClass$
|
|
8903
|
+
__decorateClass$u([
|
|
8870
8904
|
property()
|
|
8871
8905
|
], ZoomBlurEffect.prototype, "center", 2);
|
|
8872
|
-
__decorateClass$
|
|
8873
|
-
property(
|
|
8906
|
+
__decorateClass$u([
|
|
8907
|
+
property()
|
|
8874
8908
|
], ZoomBlurEffect.prototype, "innerRadius", 2);
|
|
8875
|
-
__decorateClass$
|
|
8876
|
-
property(
|
|
8909
|
+
__decorateClass$u([
|
|
8910
|
+
property()
|
|
8877
8911
|
], ZoomBlurEffect.prototype, "radius", 2);
|
|
8878
|
-
__decorateClass$
|
|
8879
|
-
property(
|
|
8912
|
+
__decorateClass$u([
|
|
8913
|
+
property()
|
|
8880
8914
|
], ZoomBlurEffect.prototype, "strength", 2);
|
|
8881
|
-
ZoomBlurEffect = __decorateClass$
|
|
8915
|
+
ZoomBlurEffect = __decorateClass$u([
|
|
8882
8916
|
customNode("ZoomBlurEffect")
|
|
8883
8917
|
], ZoomBlurEffect);
|
|
8884
8918
|
|
|
8885
|
-
var __defProp$
|
|
8886
|
-
var __decorateClass$
|
|
8919
|
+
var __defProp$n = Object.defineProperty;
|
|
8920
|
+
var __decorateClass$t = (decorators, target, key, kind) => {
|
|
8887
8921
|
var result = void 0 ;
|
|
8888
8922
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
8889
8923
|
if (decorator = decorators[i])
|
|
8890
8924
|
result = (decorator(target, key, result) ) || result;
|
|
8891
|
-
if (result) __defProp$
|
|
8925
|
+
if (result) __defProp$n(target, key, result);
|
|
8892
8926
|
return result;
|
|
8893
8927
|
};
|
|
8894
8928
|
class BaseElement2DFill extends CoreObject {
|
|
@@ -8933,6 +8967,7 @@ class BaseElement2DFill extends CoreObject {
|
|
|
8933
8967
|
this.parent.size.height
|
|
8934
8968
|
);
|
|
8935
8969
|
} else if (!isNone(this.image)) {
|
|
8970
|
+
this.parent.tree?.log(`load image ${this.image}`);
|
|
8936
8971
|
return await assets.texture.load(this.image);
|
|
8937
8972
|
} else {
|
|
8938
8973
|
return void 0;
|
|
@@ -8995,47 +9030,47 @@ class BaseElement2DFill extends CoreObject {
|
|
|
8995
9030
|
});
|
|
8996
9031
|
}
|
|
8997
9032
|
}
|
|
8998
|
-
__decorateClass$
|
|
8999
|
-
property({
|
|
9033
|
+
__decorateClass$t([
|
|
9034
|
+
property({ fallback: true })
|
|
9000
9035
|
], BaseElement2DFill.prototype, "enabled");
|
|
9001
|
-
__decorateClass$
|
|
9036
|
+
__decorateClass$t([
|
|
9002
9037
|
property()
|
|
9003
9038
|
], BaseElement2DFill.prototype, "color");
|
|
9004
|
-
__decorateClass$
|
|
9039
|
+
__decorateClass$t([
|
|
9005
9040
|
property()
|
|
9006
9041
|
], BaseElement2DFill.prototype, "image");
|
|
9007
|
-
__decorateClass$
|
|
9042
|
+
__decorateClass$t([
|
|
9008
9043
|
property()
|
|
9009
9044
|
], BaseElement2DFill.prototype, "linearGradient");
|
|
9010
|
-
__decorateClass$
|
|
9045
|
+
__decorateClass$t([
|
|
9011
9046
|
property()
|
|
9012
9047
|
], BaseElement2DFill.prototype, "radialGradient");
|
|
9013
|
-
__decorateClass$
|
|
9048
|
+
__decorateClass$t([
|
|
9014
9049
|
property()
|
|
9015
9050
|
], BaseElement2DFill.prototype, "cropRect");
|
|
9016
|
-
__decorateClass$
|
|
9051
|
+
__decorateClass$t([
|
|
9017
9052
|
property()
|
|
9018
9053
|
], BaseElement2DFill.prototype, "stretchRect");
|
|
9019
|
-
__decorateClass$
|
|
9054
|
+
__decorateClass$t([
|
|
9020
9055
|
property()
|
|
9021
9056
|
], BaseElement2DFill.prototype, "dpi");
|
|
9022
|
-
__decorateClass$
|
|
9057
|
+
__decorateClass$t([
|
|
9023
9058
|
property()
|
|
9024
9059
|
], BaseElement2DFill.prototype, "rotateWithShape");
|
|
9025
|
-
__decorateClass$
|
|
9060
|
+
__decorateClass$t([
|
|
9026
9061
|
property()
|
|
9027
9062
|
], BaseElement2DFill.prototype, "tile");
|
|
9028
|
-
__decorateClass$
|
|
9063
|
+
__decorateClass$t([
|
|
9029
9064
|
property()
|
|
9030
9065
|
], BaseElement2DFill.prototype, "opacity");
|
|
9031
9066
|
|
|
9032
|
-
var __defProp$
|
|
9033
|
-
var __decorateClass$
|
|
9067
|
+
var __defProp$m = Object.defineProperty;
|
|
9068
|
+
var __decorateClass$s = (decorators, target, key, kind) => {
|
|
9034
9069
|
var result = void 0 ;
|
|
9035
9070
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
9036
9071
|
if (decorator = decorators[i])
|
|
9037
9072
|
result = (decorator(target, key, result) ) || result;
|
|
9038
|
-
if (result) __defProp$
|
|
9073
|
+
if (result) __defProp$m(target, key, result);
|
|
9039
9074
|
return result;
|
|
9040
9075
|
};
|
|
9041
9076
|
class BaseElement2DBackground extends BaseElement2DFill {
|
|
@@ -9045,17 +9080,17 @@ class BaseElement2DBackground extends BaseElement2DFill {
|
|
|
9045
9080
|
);
|
|
9046
9081
|
}
|
|
9047
9082
|
}
|
|
9048
|
-
__decorateClass$
|
|
9083
|
+
__decorateClass$s([
|
|
9049
9084
|
property()
|
|
9050
9085
|
], BaseElement2DBackground.prototype, "fillWithShape");
|
|
9051
9086
|
|
|
9052
|
-
var __defProp$
|
|
9053
|
-
var __decorateClass$
|
|
9087
|
+
var __defProp$l = Object.defineProperty;
|
|
9088
|
+
var __decorateClass$r = (decorators, target, key, kind) => {
|
|
9054
9089
|
var result = void 0 ;
|
|
9055
9090
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
9056
9091
|
if (decorator = decorators[i])
|
|
9057
9092
|
result = (decorator(target, key, result) ) || result;
|
|
9058
|
-
if (result) __defProp$
|
|
9093
|
+
if (result) __defProp$l(target, key, result);
|
|
9059
9094
|
return result;
|
|
9060
9095
|
};
|
|
9061
9096
|
class BaseElement2DForeground extends BaseElement2DFill {
|
|
@@ -9065,17 +9100,17 @@ class BaseElement2DForeground extends BaseElement2DFill {
|
|
|
9065
9100
|
);
|
|
9066
9101
|
}
|
|
9067
9102
|
}
|
|
9068
|
-
__decorateClass$
|
|
9103
|
+
__decorateClass$r([
|
|
9069
9104
|
property()
|
|
9070
9105
|
], BaseElement2DForeground.prototype, "fillWithShape");
|
|
9071
9106
|
|
|
9072
|
-
var __defProp$
|
|
9073
|
-
var __decorateClass$
|
|
9107
|
+
var __defProp$k = Object.defineProperty;
|
|
9108
|
+
var __decorateClass$q = (decorators, target, key, kind) => {
|
|
9074
9109
|
var result = void 0 ;
|
|
9075
9110
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
9076
9111
|
if (decorator = decorators[i])
|
|
9077
9112
|
result = (decorator(target, key, result) ) || result;
|
|
9078
|
-
if (result) __defProp$
|
|
9113
|
+
if (result) __defProp$k(target, key, result);
|
|
9079
9114
|
return result;
|
|
9080
9115
|
};
|
|
9081
9116
|
class BaseElement2DOutline extends BaseElement2DFill {
|
|
@@ -9108,26 +9143,23 @@ class BaseElement2DOutline extends BaseElement2DFill {
|
|
|
9108
9143
|
ctx.stroke({ disableWrapMode });
|
|
9109
9144
|
}
|
|
9110
9145
|
}
|
|
9111
|
-
__decorateClass$
|
|
9112
|
-
property({
|
|
9113
|
-
], BaseElement2DOutline.prototype, "enabled");
|
|
9114
|
-
__decorateClass$r([
|
|
9115
|
-
property({ default: 0 })
|
|
9146
|
+
__decorateClass$q([
|
|
9147
|
+
property({ fallback: "#00000000" })
|
|
9116
9148
|
], BaseElement2DOutline.prototype, "color");
|
|
9117
|
-
__decorateClass$
|
|
9118
|
-
property({
|
|
9149
|
+
__decorateClass$q([
|
|
9150
|
+
property({ fallback: 0 })
|
|
9119
9151
|
], BaseElement2DOutline.prototype, "width");
|
|
9120
|
-
__decorateClass$
|
|
9121
|
-
property({
|
|
9152
|
+
__decorateClass$q([
|
|
9153
|
+
property({ fallback: "solid" })
|
|
9122
9154
|
], BaseElement2DOutline.prototype, "style");
|
|
9123
9155
|
|
|
9124
|
-
var __defProp$
|
|
9125
|
-
var __decorateClass$
|
|
9156
|
+
var __defProp$j = Object.defineProperty;
|
|
9157
|
+
var __decorateClass$p = (decorators, target, key, kind) => {
|
|
9126
9158
|
var result = void 0 ;
|
|
9127
9159
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
9128
9160
|
if (decorator = decorators[i])
|
|
9129
9161
|
result = (decorator(target, key, result) ) || result;
|
|
9130
|
-
if (result) __defProp$
|
|
9162
|
+
if (result) __defProp$j(target, key, result);
|
|
9131
9163
|
return result;
|
|
9132
9164
|
};
|
|
9133
9165
|
class BaseElement2DShadow extends CoreObject {
|
|
@@ -9167,29 +9199,29 @@ class BaseElement2DShadow extends CoreObject {
|
|
|
9167
9199
|
}
|
|
9168
9200
|
}
|
|
9169
9201
|
}
|
|
9170
|
-
__decorateClass$
|
|
9171
|
-
property({
|
|
9202
|
+
__decorateClass$p([
|
|
9203
|
+
property({ fallback: true })
|
|
9172
9204
|
], BaseElement2DShadow.prototype, "enabled");
|
|
9173
|
-
__decorateClass$
|
|
9174
|
-
property({
|
|
9205
|
+
__decorateClass$p([
|
|
9206
|
+
property({ fallback: "#000000FF" })
|
|
9175
9207
|
], BaseElement2DShadow.prototype, "color");
|
|
9176
|
-
__decorateClass$
|
|
9177
|
-
property({
|
|
9208
|
+
__decorateClass$p([
|
|
9209
|
+
property({ fallback: 0 })
|
|
9178
9210
|
], BaseElement2DShadow.prototype, "blur");
|
|
9179
|
-
__decorateClass$
|
|
9180
|
-
property({
|
|
9211
|
+
__decorateClass$p([
|
|
9212
|
+
property({ fallback: 0 })
|
|
9181
9213
|
], BaseElement2DShadow.prototype, "offsetY");
|
|
9182
|
-
__decorateClass$
|
|
9183
|
-
property({
|
|
9214
|
+
__decorateClass$p([
|
|
9215
|
+
property({ fallback: 0 })
|
|
9184
9216
|
], BaseElement2DShadow.prototype, "offsetX");
|
|
9185
9217
|
|
|
9186
|
-
var __defProp$
|
|
9187
|
-
var __decorateClass$
|
|
9218
|
+
var __defProp$i = Object.defineProperty;
|
|
9219
|
+
var __decorateClass$o = (decorators, target, key, kind) => {
|
|
9188
9220
|
var result = void 0 ;
|
|
9189
9221
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
9190
9222
|
if (decorator = decorators[i])
|
|
9191
9223
|
result = (decorator(target, key, result) ) || result;
|
|
9192
|
-
if (result) __defProp$
|
|
9224
|
+
if (result) __defProp$i(target, key, result);
|
|
9193
9225
|
return result;
|
|
9194
9226
|
};
|
|
9195
9227
|
class BaseElement2DShape extends CoreObject {
|
|
@@ -9264,20 +9296,20 @@ class BaseElement2DShape extends CoreObject {
|
|
|
9264
9296
|
}
|
|
9265
9297
|
}
|
|
9266
9298
|
}
|
|
9267
|
-
__decorateClass$
|
|
9268
|
-
property({
|
|
9299
|
+
__decorateClass$o([
|
|
9300
|
+
property({ fallback: true })
|
|
9269
9301
|
], BaseElement2DShape.prototype, "enabled");
|
|
9270
|
-
__decorateClass$
|
|
9302
|
+
__decorateClass$o([
|
|
9271
9303
|
property()
|
|
9272
9304
|
], BaseElement2DShape.prototype, "preset");
|
|
9273
|
-
__decorateClass$
|
|
9305
|
+
__decorateClass$o([
|
|
9274
9306
|
property()
|
|
9275
9307
|
], BaseElement2DShape.prototype, "svg");
|
|
9276
|
-
__decorateClass$
|
|
9308
|
+
__decorateClass$o([
|
|
9277
9309
|
property()
|
|
9278
9310
|
], BaseElement2DShape.prototype, "viewBox");
|
|
9279
|
-
__decorateClass$
|
|
9280
|
-
property(
|
|
9311
|
+
__decorateClass$o([
|
|
9312
|
+
property()
|
|
9281
9313
|
], BaseElement2DShape.prototype, "paths");
|
|
9282
9314
|
|
|
9283
9315
|
class BaseElement2DStyle extends Resource {
|
|
@@ -9287,23 +9319,18 @@ class BaseElement2DStyle extends Resource {
|
|
|
9287
9319
|
}
|
|
9288
9320
|
}
|
|
9289
9321
|
const defaultStyles$1 = getDefaultStyle();
|
|
9290
|
-
delete defaultStyles$1.top;
|
|
9291
|
-
delete defaultStyles$1.left;
|
|
9292
|
-
delete defaultStyles$1.width;
|
|
9293
|
-
delete defaultStyles$1.height;
|
|
9294
9322
|
for (const key in defaultStyles$1) {
|
|
9295
|
-
|
|
9296
|
-
|
|
9297
|
-
});
|
|
9323
|
+
const fallback = defaultStyles$1[key];
|
|
9324
|
+
defineProperty(BaseElement2DStyle.prototype, key, { fallback });
|
|
9298
9325
|
}
|
|
9299
9326
|
|
|
9300
|
-
var __defProp$
|
|
9301
|
-
var __decorateClass$
|
|
9327
|
+
var __defProp$h = Object.defineProperty;
|
|
9328
|
+
var __decorateClass$n = (decorators, target, key, kind) => {
|
|
9302
9329
|
var result = void 0 ;
|
|
9303
9330
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
9304
9331
|
if (decorator = decorators[i])
|
|
9305
9332
|
result = (decorator(target, key, result) ) || result;
|
|
9306
|
-
if (result) __defProp$
|
|
9333
|
+
if (result) __defProp$h(target, key, result);
|
|
9307
9334
|
return result;
|
|
9308
9335
|
};
|
|
9309
9336
|
class BaseElement2DText extends CoreObject {
|
|
@@ -9369,30 +9396,30 @@ class BaseElement2DText extends CoreObject {
|
|
|
9369
9396
|
});
|
|
9370
9397
|
}
|
|
9371
9398
|
}
|
|
9372
|
-
__decorateClass$
|
|
9373
|
-
property({
|
|
9399
|
+
__decorateClass$n([
|
|
9400
|
+
property({ fallback: true })
|
|
9374
9401
|
], BaseElement2DText.prototype, "enabled");
|
|
9375
|
-
__decorateClass$
|
|
9376
|
-
property({ alias: "base.content" })
|
|
9402
|
+
__decorateClass$n([
|
|
9403
|
+
property({ alias: "base.content", fallback: () => [] })
|
|
9377
9404
|
], BaseElement2DText.prototype, "content");
|
|
9378
|
-
__decorateClass$
|
|
9405
|
+
__decorateClass$n([
|
|
9379
9406
|
property({ alias: "base.effects" })
|
|
9380
9407
|
], BaseElement2DText.prototype, "effects");
|
|
9381
|
-
__decorateClass$
|
|
9382
|
-
|
|
9408
|
+
__decorateClass$n([
|
|
9409
|
+
property({ protected: true, alias: "base.measureDOM" })
|
|
9383
9410
|
], BaseElement2DText.prototype, "measureDOM");
|
|
9384
|
-
__decorateClass$
|
|
9385
|
-
|
|
9411
|
+
__decorateClass$n([
|
|
9412
|
+
property({ protected: true, alias: "base.fonts" })
|
|
9386
9413
|
], BaseElement2DText.prototype, "fonts");
|
|
9387
9414
|
|
|
9388
|
-
var __defProp$
|
|
9389
|
-
var __getOwnPropDesc$
|
|
9390
|
-
var __decorateClass$
|
|
9391
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
9415
|
+
var __defProp$g = Object.defineProperty;
|
|
9416
|
+
var __getOwnPropDesc$l = Object.getOwnPropertyDescriptor;
|
|
9417
|
+
var __decorateClass$m = (decorators, target, key, kind) => {
|
|
9418
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$l(target, key) : target;
|
|
9392
9419
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
9393
9420
|
if (decorator = decorators[i])
|
|
9394
9421
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
9395
|
-
if (kind && result) __defProp$
|
|
9422
|
+
if (kind && result) __defProp$g(target, key, result);
|
|
9396
9423
|
return result;
|
|
9397
9424
|
};
|
|
9398
9425
|
let Node2D = class extends CanvasItem {
|
|
@@ -9494,19 +9521,19 @@ let Node2D = class extends CanvasItem {
|
|
|
9494
9521
|
}
|
|
9495
9522
|
}
|
|
9496
9523
|
};
|
|
9497
|
-
__decorateClass$
|
|
9498
|
-
|
|
9524
|
+
__decorateClass$m([
|
|
9525
|
+
property({ protected: true, fallback: 0 })
|
|
9499
9526
|
], Node2D.prototype, "rotation", 2);
|
|
9500
|
-
__decorateClass$
|
|
9501
|
-
|
|
9527
|
+
__decorateClass$m([
|
|
9528
|
+
property({ protected: true, fallback: 0 })
|
|
9502
9529
|
], Node2D.prototype, "globalRotation", 2);
|
|
9503
|
-
Node2D = __decorateClass$
|
|
9530
|
+
Node2D = __decorateClass$m([
|
|
9504
9531
|
customNode("Node2D")
|
|
9505
9532
|
], Node2D);
|
|
9506
9533
|
|
|
9507
|
-
var __getOwnPropDesc$
|
|
9508
|
-
var __decorateClass$
|
|
9509
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
9534
|
+
var __getOwnPropDesc$k = Object.getOwnPropertyDescriptor;
|
|
9535
|
+
var __decorateClass$l = (decorators, target, key, kind) => {
|
|
9536
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$k(target, key) : target;
|
|
9510
9537
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
9511
9538
|
if (decorator = decorators[i])
|
|
9512
9539
|
result = (decorator(result)) || result;
|
|
@@ -9606,8 +9633,7 @@ let BaseElement2D = class extends Node2D {
|
|
|
9606
9633
|
}
|
|
9607
9634
|
return this;
|
|
9608
9635
|
}
|
|
9609
|
-
|
|
9610
|
-
_updateStyleProperty(key, value, oldValue, declaration) {
|
|
9636
|
+
_updateStyleProperty(key, value, _oldValue, _declaration) {
|
|
9611
9637
|
switch (key) {
|
|
9612
9638
|
case "width":
|
|
9613
9639
|
case "height":
|
|
@@ -9756,27 +9782,27 @@ let BaseElement2D = class extends Node2D {
|
|
|
9756
9782
|
this._text.updateMeasure();
|
|
9757
9783
|
}
|
|
9758
9784
|
if (this._background.canDraw()) {
|
|
9759
|
-
this._tree?.log(this.name, "
|
|
9785
|
+
this._tree?.log(this.name, "background drawing");
|
|
9760
9786
|
this._shape.drawRect();
|
|
9761
9787
|
this._background.draw();
|
|
9762
9788
|
}
|
|
9763
9789
|
if (this._fill.canDraw()) {
|
|
9764
|
-
this._tree?.log(this.name, "
|
|
9790
|
+
this._tree?.log(this.name, "fill drawing");
|
|
9765
9791
|
this._shape.draw();
|
|
9766
9792
|
this._fill.draw();
|
|
9767
9793
|
}
|
|
9768
9794
|
if (this._outline.canDraw()) {
|
|
9769
|
-
this._tree?.log(this.name, "
|
|
9795
|
+
this._tree?.log(this.name, "outline drawing");
|
|
9770
9796
|
this._shape.draw();
|
|
9771
9797
|
this._outline.draw();
|
|
9772
9798
|
}
|
|
9773
9799
|
if (this._foreground.canDraw()) {
|
|
9774
|
-
this._tree?.log(this.name, "
|
|
9800
|
+
this._tree?.log(this.name, "foreground drawing");
|
|
9775
9801
|
this._shape.drawRect();
|
|
9776
9802
|
this._foreground.draw();
|
|
9777
9803
|
}
|
|
9778
9804
|
if (this._text.canDraw()) {
|
|
9779
|
-
this._tree?.log(this.name, "
|
|
9805
|
+
this._tree?.log(this.name, "text drawing");
|
|
9780
9806
|
this._text.draw();
|
|
9781
9807
|
}
|
|
9782
9808
|
this._drawContent();
|
|
@@ -9831,24 +9857,23 @@ let BaseElement2D = class extends Node2D {
|
|
|
9831
9857
|
}
|
|
9832
9858
|
}
|
|
9833
9859
|
toJSON() {
|
|
9834
|
-
const
|
|
9835
|
-
|
|
9836
|
-
...json,
|
|
9837
|
-
props: {
|
|
9838
|
-
...json.props,
|
|
9839
|
-
style: this.style.toJSON(),
|
|
9840
|
-
background: this.background.toJSON(),
|
|
9841
|
-
shape: this.shape.toJSON(),
|
|
9842
|
-
fill: this.fill.toJSON(),
|
|
9843
|
-
outline: this.outline.toJSON(),
|
|
9844
|
-
text: this.text.toJSON(),
|
|
9845
|
-
foreground: this.foreground.toJSON(),
|
|
9846
|
-
shadow: this.shadow.toJSON()
|
|
9847
|
-
}
|
|
9860
|
+
const notEmptyObjectOrUndef = (obj) => {
|
|
9861
|
+
return Object.keys(obj).length > 0 ? obj : void 0;
|
|
9848
9862
|
};
|
|
9863
|
+
return clearUndef({
|
|
9864
|
+
...super.toJSON(),
|
|
9865
|
+
style: notEmptyObjectOrUndef(this.style.toJSON()),
|
|
9866
|
+
background: notEmptyObjectOrUndef(this.background.toJSON()),
|
|
9867
|
+
shape: notEmptyObjectOrUndef(this.shape.toJSON()),
|
|
9868
|
+
fill: notEmptyObjectOrUndef(this.fill.toJSON()),
|
|
9869
|
+
outline: notEmptyObjectOrUndef(this.outline.toJSON()),
|
|
9870
|
+
text: notEmptyObjectOrUndef(this.text.toJSON()),
|
|
9871
|
+
foreground: notEmptyObjectOrUndef(this.foreground.toJSON()),
|
|
9872
|
+
shadow: notEmptyObjectOrUndef(this.shadow.toJSON())
|
|
9873
|
+
});
|
|
9849
9874
|
}
|
|
9850
9875
|
};
|
|
9851
|
-
BaseElement2D = __decorateClass$
|
|
9876
|
+
BaseElement2D = __decorateClass$l([
|
|
9852
9877
|
customNode("BaseElement2D")
|
|
9853
9878
|
], BaseElement2D);
|
|
9854
9879
|
|
|
@@ -9865,12 +9890,12 @@ const defaultStyles = {
|
|
|
9865
9890
|
height: 0
|
|
9866
9891
|
};
|
|
9867
9892
|
for (const key in defaultStyles) {
|
|
9868
|
-
defineProperty(Element2DStyle, key, {
|
|
9893
|
+
defineProperty(Element2DStyle.prototype, key, { fallback: defaultStyles[key] });
|
|
9869
9894
|
}
|
|
9870
9895
|
|
|
9871
|
-
var __getOwnPropDesc$
|
|
9872
|
-
var __decorateClass$
|
|
9873
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
9896
|
+
var __getOwnPropDesc$j = Object.getOwnPropertyDescriptor;
|
|
9897
|
+
var __decorateClass$k = (decorators, target, key, kind) => {
|
|
9898
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$j(target, key) : target;
|
|
9874
9899
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
9875
9900
|
if (decorator = decorators[i])
|
|
9876
9901
|
result = (decorator(result)) || result;
|
|
@@ -9912,7 +9937,7 @@ let Element2D = class extends BaseElement2D {
|
|
|
9912
9937
|
}
|
|
9913
9938
|
}
|
|
9914
9939
|
};
|
|
9915
|
-
Element2D = __decorateClass$
|
|
9940
|
+
Element2D = __decorateClass$k([
|
|
9916
9941
|
customNode("Element2D")
|
|
9917
9942
|
], Element2D);
|
|
9918
9943
|
|
|
@@ -10164,9 +10189,9 @@ class FlexLayout {
|
|
|
10164
10189
|
}
|
|
10165
10190
|
}
|
|
10166
10191
|
|
|
10167
|
-
var __getOwnPropDesc$
|
|
10168
|
-
var __decorateClass$
|
|
10169
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
10192
|
+
var __getOwnPropDesc$i = Object.getOwnPropertyDescriptor;
|
|
10193
|
+
var __decorateClass$j = (decorators, target, key, kind) => {
|
|
10194
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$i(target, key) : target;
|
|
10170
10195
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
10171
10196
|
if (decorator = decorators[i])
|
|
10172
10197
|
result = (decorator(result)) || result;
|
|
@@ -10243,120 +10268,10 @@ let FlexElement2D = class extends BaseElement2D {
|
|
|
10243
10268
|
}
|
|
10244
10269
|
}
|
|
10245
10270
|
};
|
|
10246
|
-
FlexElement2D = __decorateClass$
|
|
10271
|
+
FlexElement2D = __decorateClass$j([
|
|
10247
10272
|
customNode("FlexElement2D")
|
|
10248
10273
|
], FlexElement2D);
|
|
10249
10274
|
|
|
10250
|
-
var __defProp$g = Object.defineProperty;
|
|
10251
|
-
var __getOwnPropDesc$i = Object.getOwnPropertyDescriptor;
|
|
10252
|
-
var __decorateClass$j = (decorators, target, key, kind) => {
|
|
10253
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$i(target, key) : target;
|
|
10254
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
10255
|
-
if (decorator = decorators[i])
|
|
10256
|
-
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
10257
|
-
if (kind && result) __defProp$g(target, key, result);
|
|
10258
|
-
return result;
|
|
10259
|
-
};
|
|
10260
|
-
function proxy(options) {
|
|
10261
|
-
return function(target, name) {
|
|
10262
|
-
Object.defineProperty(target.constructor.prototype, name, {
|
|
10263
|
-
get() {
|
|
10264
|
-
if (options?.method) {
|
|
10265
|
-
return (...args) => {
|
|
10266
|
-
this.context[name].call(this.context, ...args);
|
|
10267
|
-
options.redraw && this.requestRedraw();
|
|
10268
|
-
return target;
|
|
10269
|
-
};
|
|
10270
|
-
}
|
|
10271
|
-
return this.context[name];
|
|
10272
|
-
},
|
|
10273
|
-
set(value) {
|
|
10274
|
-
this.context[name] = value;
|
|
10275
|
-
},
|
|
10276
|
-
configurable: true,
|
|
10277
|
-
enumerable: true
|
|
10278
|
-
});
|
|
10279
|
-
};
|
|
10280
|
-
}
|
|
10281
|
-
let Graphics2D = class extends Node2D {
|
|
10282
|
-
_resetContext = false;
|
|
10283
|
-
lineCap;
|
|
10284
|
-
lineJoin;
|
|
10285
|
-
fillStyle;
|
|
10286
|
-
strokeStyle;
|
|
10287
|
-
lineWidth;
|
|
10288
|
-
miterLimit;
|
|
10289
|
-
drawCircle(x, y, radius) {
|
|
10290
|
-
this.arc(x + radius, y + radius, radius, 0, PI_2);
|
|
10291
|
-
this.fill();
|
|
10292
|
-
return this;
|
|
10293
|
-
}
|
|
10294
|
-
drawEllipse(x, y, width, height) {
|
|
10295
|
-
const rx = width / 2;
|
|
10296
|
-
const ry = height / 2;
|
|
10297
|
-
this.ellipse(x + rx, y + ry, rx, ry, 0, 0, PI_2);
|
|
10298
|
-
this.fill();
|
|
10299
|
-
return this;
|
|
10300
|
-
}
|
|
10301
|
-
};
|
|
10302
|
-
__decorateClass$j([
|
|
10303
|
-
proxy()
|
|
10304
|
-
], Graphics2D.prototype, "lineCap", 2);
|
|
10305
|
-
__decorateClass$j([
|
|
10306
|
-
proxy()
|
|
10307
|
-
], Graphics2D.prototype, "lineJoin", 2);
|
|
10308
|
-
__decorateClass$j([
|
|
10309
|
-
proxy()
|
|
10310
|
-
], Graphics2D.prototype, "fillStyle", 2);
|
|
10311
|
-
__decorateClass$j([
|
|
10312
|
-
proxy()
|
|
10313
|
-
], Graphics2D.prototype, "strokeStyle", 2);
|
|
10314
|
-
__decorateClass$j([
|
|
10315
|
-
proxy()
|
|
10316
|
-
], Graphics2D.prototype, "lineWidth", 2);
|
|
10317
|
-
__decorateClass$j([
|
|
10318
|
-
proxy()
|
|
10319
|
-
], Graphics2D.prototype, "miterLimit", 2);
|
|
10320
|
-
__decorateClass$j([
|
|
10321
|
-
proxy({ method: true })
|
|
10322
|
-
], Graphics2D.prototype, "rect", 2);
|
|
10323
|
-
__decorateClass$j([
|
|
10324
|
-
proxy({ method: true, redraw: true })
|
|
10325
|
-
], Graphics2D.prototype, "fillRect", 2);
|
|
10326
|
-
__decorateClass$j([
|
|
10327
|
-
proxy({ method: true, redraw: true })
|
|
10328
|
-
], Graphics2D.prototype, "strokeRect", 2);
|
|
10329
|
-
__decorateClass$j([
|
|
10330
|
-
proxy({ method: true })
|
|
10331
|
-
], Graphics2D.prototype, "roundRect", 2);
|
|
10332
|
-
__decorateClass$j([
|
|
10333
|
-
proxy({ method: true })
|
|
10334
|
-
], Graphics2D.prototype, "ellipse", 2);
|
|
10335
|
-
__decorateClass$j([
|
|
10336
|
-
proxy({ method: true })
|
|
10337
|
-
], Graphics2D.prototype, "arc", 2);
|
|
10338
|
-
__decorateClass$j([
|
|
10339
|
-
proxy({ method: true })
|
|
10340
|
-
], Graphics2D.prototype, "beginPath", 2);
|
|
10341
|
-
__decorateClass$j([
|
|
10342
|
-
proxy({ method: true })
|
|
10343
|
-
], Graphics2D.prototype, "moveTo", 2);
|
|
10344
|
-
__decorateClass$j([
|
|
10345
|
-
proxy({ method: true })
|
|
10346
|
-
], Graphics2D.prototype, "lineTo", 2);
|
|
10347
|
-
__decorateClass$j([
|
|
10348
|
-
proxy({ method: true })
|
|
10349
|
-
], Graphics2D.prototype, "closePath", 2);
|
|
10350
|
-
__decorateClass$j([
|
|
10351
|
-
proxy({ method: true, redraw: true })
|
|
10352
|
-
], Graphics2D.prototype, "fill", 2);
|
|
10353
|
-
__decorateClass$j([
|
|
10354
|
-
proxy({ method: true, redraw: true })
|
|
10355
|
-
], Graphics2D.prototype, "stroke", 2);
|
|
10356
|
-
Graphics2D = __decorateClass$j([
|
|
10357
|
-
customNode("Graphics2D")
|
|
10358
|
-
], Graphics2D);
|
|
10359
|
-
|
|
10360
10275
|
var __defProp$f = Object.defineProperty;
|
|
10361
10276
|
var __getOwnPropDesc$h = Object.getOwnPropertyDescriptor;
|
|
10362
10277
|
var __decorateClass$i = (decorators, target, key, kind) => {
|
|
@@ -10368,7 +10283,6 @@ var __decorateClass$i = (decorators, target, key, kind) => {
|
|
|
10368
10283
|
return result;
|
|
10369
10284
|
};
|
|
10370
10285
|
let Image2D = class extends Element2D {
|
|
10371
|
-
texture;
|
|
10372
10286
|
get currentFrameTexture() {
|
|
10373
10287
|
return this.texture?.frames[this._frameIndex]?.texture;
|
|
10374
10288
|
}
|
|
@@ -10502,16 +10416,16 @@ let Image2D = class extends Element2D {
|
|
|
10502
10416
|
}
|
|
10503
10417
|
};
|
|
10504
10418
|
__decorateClass$i([
|
|
10505
|
-
|
|
10419
|
+
property({ protected: true })
|
|
10506
10420
|
], Image2D.prototype, "texture", 2);
|
|
10507
10421
|
__decorateClass$i([
|
|
10508
|
-
property({
|
|
10422
|
+
property({ fallback: "" })
|
|
10509
10423
|
], Image2D.prototype, "src", 2);
|
|
10510
10424
|
__decorateClass$i([
|
|
10511
10425
|
property()
|
|
10512
10426
|
], Image2D.prototype, "srcRect", 2);
|
|
10513
10427
|
__decorateClass$i([
|
|
10514
|
-
property({
|
|
10428
|
+
property({ fallback: false })
|
|
10515
10429
|
], Image2D.prototype, "gif", 2);
|
|
10516
10430
|
Image2D = __decorateClass$i([
|
|
10517
10431
|
customNode("Image2D")
|
|
@@ -10588,7 +10502,7 @@ let Lottie2D = class extends TextureRect2D {
|
|
|
10588
10502
|
}
|
|
10589
10503
|
};
|
|
10590
10504
|
__decorateClass$h([
|
|
10591
|
-
property({
|
|
10505
|
+
property({ fallback: "" })
|
|
10592
10506
|
], Lottie2D.prototype, "src", 2);
|
|
10593
10507
|
Lottie2D = __decorateClass$h([
|
|
10594
10508
|
customNode("Lottie2D")
|
|
@@ -10752,7 +10666,7 @@ let Text2D = class extends TextureRect2D {
|
|
|
10752
10666
|
}
|
|
10753
10667
|
};
|
|
10754
10668
|
__decorateClass$g([
|
|
10755
|
-
property({
|
|
10669
|
+
property({ fallback: false })
|
|
10756
10670
|
], Text2D.prototype, "split", 2);
|
|
10757
10671
|
__decorateClass$g([
|
|
10758
10672
|
property({ alias: "base.content" })
|
|
@@ -10761,10 +10675,10 @@ __decorateClass$g([
|
|
|
10761
10675
|
property({ alias: "base.effects" })
|
|
10762
10676
|
], Text2D.prototype, "effects", 2);
|
|
10763
10677
|
__decorateClass$g([
|
|
10764
|
-
|
|
10678
|
+
property({ protected: true, alias: "base.measureDOM" })
|
|
10765
10679
|
], Text2D.prototype, "measureDOM", 2);
|
|
10766
10680
|
__decorateClass$g([
|
|
10767
|
-
|
|
10681
|
+
property({ protected: true, alias: "base.fonts" })
|
|
10768
10682
|
], Text2D.prototype, "fonts", 2);
|
|
10769
10683
|
Text2D = __decorateClass$g([
|
|
10770
10684
|
customNode("Text2D")
|
|
@@ -10823,7 +10737,7 @@ class TransformRect2D extends Element2D {
|
|
|
10823
10737
|
}
|
|
10824
10738
|
}
|
|
10825
10739
|
__decorateClass$f([
|
|
10826
|
-
property({
|
|
10740
|
+
property({ fallback: 6 })
|
|
10827
10741
|
], TransformRect2D.prototype, "handleSize");
|
|
10828
10742
|
|
|
10829
10743
|
var __defProp$b = Object.defineProperty;
|
|
@@ -10887,7 +10801,7 @@ let Video2D = class extends TextureRect2D {
|
|
|
10887
10801
|
}
|
|
10888
10802
|
};
|
|
10889
10803
|
__decorateClass$e([
|
|
10890
|
-
property({
|
|
10804
|
+
property({ fallback: "" })
|
|
10891
10805
|
], Video2D.prototype, "src", 2);
|
|
10892
10806
|
Video2D = __decorateClass$e([
|
|
10893
10807
|
customNode("Video2D")
|
|
@@ -10961,7 +10875,6 @@ const timingFunctions = {
|
|
|
10961
10875
|
easeInOut
|
|
10962
10876
|
};
|
|
10963
10877
|
let Animation = class extends TimelineNode {
|
|
10964
|
-
easing;
|
|
10965
10878
|
_keyframes = [];
|
|
10966
10879
|
_isFirstUpdatePosition = false;
|
|
10967
10880
|
_cachedProps = new RawWeakMap$1();
|
|
@@ -11221,13 +11134,13 @@ let Animation = class extends TimelineNode {
|
|
|
11221
11134
|
}
|
|
11222
11135
|
};
|
|
11223
11136
|
__decorateClass$d([
|
|
11224
|
-
property(
|
|
11137
|
+
property()
|
|
11225
11138
|
], Animation.prototype, "effectMode", 2);
|
|
11226
11139
|
__decorateClass$d([
|
|
11227
|
-
property(
|
|
11140
|
+
property()
|
|
11228
11141
|
], Animation.prototype, "loop", 2);
|
|
11229
11142
|
__decorateClass$d([
|
|
11230
|
-
property(
|
|
11143
|
+
property()
|
|
11231
11144
|
], Animation.prototype, "keyframes", 2);
|
|
11232
11145
|
__decorateClass$d([
|
|
11233
11146
|
property()
|
|
@@ -12350,9 +12263,6 @@ var __decorateClass$b = (decorators, target, key, kind) => {
|
|
|
12350
12263
|
return result;
|
|
12351
12264
|
};
|
|
12352
12265
|
let AudioWaveform = class extends Element2D {
|
|
12353
|
-
src;
|
|
12354
|
-
gap = 0;
|
|
12355
|
-
color = "#000000";
|
|
12356
12266
|
_audioBuffer;
|
|
12357
12267
|
_src = IN_BROWSER ? new Texture2D(document.createElement("canvas")) : void 0;
|
|
12358
12268
|
_needsUpdateTexture = false;
|
|
@@ -12537,25 +12447,25 @@ let Range = class extends Control {
|
|
|
12537
12447
|
}
|
|
12538
12448
|
};
|
|
12539
12449
|
__decorateClass$9([
|
|
12540
|
-
property({
|
|
12450
|
+
property({ fallback: false })
|
|
12541
12451
|
], Range.prototype, "allowGreater", 2);
|
|
12542
12452
|
__decorateClass$9([
|
|
12543
|
-
property({
|
|
12453
|
+
property({ fallback: false })
|
|
12544
12454
|
], Range.prototype, "allowLesser", 2);
|
|
12545
12455
|
__decorateClass$9([
|
|
12546
|
-
property({
|
|
12456
|
+
property({ fallback: 1 })
|
|
12547
12457
|
], Range.prototype, "page", 2);
|
|
12548
12458
|
__decorateClass$9([
|
|
12549
|
-
property({
|
|
12459
|
+
property({ fallback: 0 })
|
|
12550
12460
|
], Range.prototype, "minValue", 2);
|
|
12551
12461
|
__decorateClass$9([
|
|
12552
|
-
property({
|
|
12462
|
+
property({ fallback: 100 })
|
|
12553
12463
|
], Range.prototype, "maxValue", 2);
|
|
12554
12464
|
__decorateClass$9([
|
|
12555
|
-
property({
|
|
12465
|
+
property({ fallback: 0.01 })
|
|
12556
12466
|
], Range.prototype, "step", 2);
|
|
12557
12467
|
__decorateClass$9([
|
|
12558
|
-
property({
|
|
12468
|
+
property({ fallback: 0 })
|
|
12559
12469
|
], Range.prototype, "value", 2);
|
|
12560
12470
|
Range = __decorateClass$9([
|
|
12561
12471
|
customNode("Range")
|
|
@@ -12717,31 +12627,31 @@ let Ruler = class extends Control {
|
|
|
12717
12627
|
}
|
|
12718
12628
|
};
|
|
12719
12629
|
__decorateClass$8([
|
|
12720
|
-
property({
|
|
12630
|
+
property({ fallback: 0 })
|
|
12721
12631
|
], Ruler.prototype, "offsetX", 2);
|
|
12722
12632
|
__decorateClass$8([
|
|
12723
|
-
property({
|
|
12633
|
+
property({ fallback: 0 })
|
|
12724
12634
|
], Ruler.prototype, "offsetY", 2);
|
|
12725
12635
|
__decorateClass$8([
|
|
12726
|
-
property({
|
|
12636
|
+
property({ fallback: 20 })
|
|
12727
12637
|
], Ruler.prototype, "thickness", 2);
|
|
12728
12638
|
__decorateClass$8([
|
|
12729
|
-
property({
|
|
12639
|
+
property({ fallback: 3 })
|
|
12730
12640
|
], Ruler.prototype, "markHeight", 2);
|
|
12731
12641
|
__decorateClass$8([
|
|
12732
|
-
property({
|
|
12642
|
+
property({ fallback: "#b2b6bc" })
|
|
12733
12643
|
], Ruler.prototype, "color", 2);
|
|
12734
12644
|
__decorateClass$8([
|
|
12735
|
-
property({
|
|
12645
|
+
property({ fallback: "#f9f9fa" })
|
|
12736
12646
|
], Ruler.prototype, "markBackgroundColor", 2);
|
|
12737
12647
|
__decorateClass$8([
|
|
12738
|
-
property({
|
|
12648
|
+
property({ fallback: "#b2b6bc" })
|
|
12739
12649
|
], Ruler.prototype, "markColor", 2);
|
|
12740
12650
|
__decorateClass$8([
|
|
12741
|
-
property({
|
|
12651
|
+
property({ fallback: 300 })
|
|
12742
12652
|
], Ruler.prototype, "gap", 2);
|
|
12743
12653
|
__decorateClass$8([
|
|
12744
|
-
property({
|
|
12654
|
+
property({ fallback: 1 })
|
|
12745
12655
|
], Ruler.prototype, "gapScale", 2);
|
|
12746
12656
|
Ruler = __decorateClass$8([
|
|
12747
12657
|
customNode("Ruler")
|
|
@@ -12814,7 +12724,7 @@ let ScrollBar = class extends Range {
|
|
|
12814
12724
|
}
|
|
12815
12725
|
};
|
|
12816
12726
|
__decorateClass$7([
|
|
12817
|
-
property({
|
|
12727
|
+
property({ fallback: "vertical" })
|
|
12818
12728
|
], ScrollBar.prototype, "direction", 2);
|
|
12819
12729
|
ScrollBar = __decorateClass$7([
|
|
12820
12730
|
customNode("ScrollBar")
|
|
@@ -12925,13 +12835,13 @@ let Scaler = class extends Node {
|
|
|
12925
12835
|
}
|
|
12926
12836
|
};
|
|
12927
12837
|
__decorateClass$4([
|
|
12928
|
-
property(
|
|
12838
|
+
property()
|
|
12929
12839
|
], Scaler.prototype, "value", 2);
|
|
12930
12840
|
__decorateClass$4([
|
|
12931
|
-
property(
|
|
12841
|
+
property()
|
|
12932
12842
|
], Scaler.prototype, "minValue", 2);
|
|
12933
12843
|
__decorateClass$4([
|
|
12934
|
-
property(
|
|
12844
|
+
property()
|
|
12935
12845
|
], Scaler.prototype, "maxValue", 2);
|
|
12936
12846
|
Scaler = __decorateClass$4([
|
|
12937
12847
|
customNode("Scaler", {
|
|
@@ -14071,4 +13981,4 @@ async function render(options) {
|
|
|
14071
13981
|
});
|
|
14072
13982
|
}
|
|
14073
13983
|
|
|
14074
|
-
export { AnimatedTexture, Animation, Assets, Audio, AudioPipeline, AudioProcessor, AudioSpectrum, AudioWaveform, BaseElement2D, BaseElement2DBackground, BaseElement2DFill, BaseElement2DForeground, BaseElement2DOutline, BaseElement2DShadow, BaseElement2DShape, BaseElement2DStyle, BaseElement2DText, CanvasContext, CanvasItem, CanvasItemEditor, CanvasTexture, Color, ColorAdjustEffect, ColorFilterEffect, ColorMatrix, ColorOverlayEffect, ColorRemoveEffect, ColorReplaceEffect, ColorTexture, Control, CoreObject, DEG_TO_RAD, DEVICE_PIXEL_RATIO, DropShadowEffect, Effect, EffectMaterial, Element2D, Element2DStyle, EmbossEffect, Engine, EventEmitter, FlexElement2D, FlexElement2DStyle, FlexLayout, FontLoader, GIFLoader, GaussianBlurEffect, Geometry, GlitchEffect, GodrayEffect, GradientTexture,
|
|
13984
|
+
export { AnimatedTexture, Animation, Assets, Audio, AudioPipeline, AudioProcessor, AudioSpectrum, AudioWaveform, BaseElement2D, BaseElement2DBackground, BaseElement2DFill, BaseElement2DForeground, BaseElement2DOutline, BaseElement2DShadow, BaseElement2DShape, BaseElement2DStyle, BaseElement2DText, CanvasContext, CanvasItem, CanvasItemEditor, CanvasTexture, Color, ColorAdjustEffect, ColorFilterEffect, ColorMatrix, ColorOverlayEffect, ColorRemoveEffect, ColorReplaceEffect, ColorTexture, Control, CoreObject, DEG_TO_RAD, DEVICE_PIXEL_RATIO, DropShadowEffect, Effect, EffectMaterial, Element2D, Element2DStyle, EmbossEffect, Engine, EventEmitter, FlexElement2D, FlexElement2DStyle, FlexLayout, FontLoader, GIFLoader, GaussianBlurEffect, Geometry, GlitchEffect, GodrayEffect, GradientTexture, HTMLAudio, HTMLAudioContext, HTMLSound, IN_BROWSER, Image2D, ImageTexture, IndexBuffer, Input, InputEvent, JSONLoader, KawaseBlurEffect, KawaseTransition, LeftEraseTransition, Loader, Lottie2D, LottieLoader, MainLoop, MaskEffect, Material, Matrix, Matrix2, Matrix3, Matrix4, MouseInputEvent, Node, Node2D, OutlineEffect, PI, PI_2, PixelateEffect, PixelsTexture, PointerInputEvent, Projection2D, QuadGeometry, QuadUvGeometry, RAD_TO_DEG, Range, RawWeakMap, Rect2, RefCounted, Renderer, Resource, Ruler, SUPPORTS_AUDIO_CONTEXT, SUPPORTS_CLICK_EVENTS, SUPPORTS_CREATE_IMAGE_BITMAP, SUPPORTS_IMAGE_BITMAP, SUPPORTS_MOUSE_EVENTS, SUPPORTS_OFFLINE_AUDIO_CONTEXT, SUPPORTS_POINTER_EVENTS, SUPPORTS_RESIZE_OBSERVER, SUPPORTS_TOUCH_EVENTS, SUPPORTS_WEBGL2, SUPPORTS_WEBKIT_AUDIO_CONTEXT, SUPPORTS_WEBKIT_OFFLINE_AUDIO_CONTEXT, SUPPORTS_WEB_AUDIO, SUPPORTS_WHEEL_EVENTS, Scaler, SceneTree, ScrollBar, Text2D, TextLoader, Texture2D, TextureLoader, TextureRect2D, Ticker, TiltShiftTransition, Timeline, TimelineNode, Transform2D, TransformRect2D, Transition, TwistTransition, UvGeometry, UvMaterial, Vector, Vector2, Vector3, Vector4, VertexAttribute, VertexBuffer, Video2D, VideoLoader, VideoTexture, Viewport, ViewportTexture, WebAudio, WebAudioContext, WebGLBatch2DModule, WebGLBlendMode, WebGLBufferModule, WebGLFramebufferModule, WebGLMaskModule, WebGLModule, WebGLProgramModule, WebGLRenderer, WebGLScissorModule, WebGLState, WebGLStateModule, WebGLStencilModule, WebGLTextureModule, WebGLVertexArrayModule, WebGLViewportModule, WebSound, WheelInputEvent, XScrollBar, YScrollBar, ZoomBlurEffect, assets, clamp, clampFrag, createHTMLCanvas, createNode, crossOrigin, cubicBezier, curves, customNode, customNodes, defaultOptions, determineCrossOrigin, ease, easeIn, easeInOut, easeOut, frag$1 as frag, getDefaultCssPropertyValue, isCanvasElement, isElementNode, isImageElement, isPow2, isVideoElement, isWebgl2, lerp, linear, log2, mapWebGLBlendModes, nextPow2, nextTick, parseCSSFilter, parseCSSTransform, parseCSSTransformOrigin, parseCssFunctions, parseCssProperty, render, timingFunctions, uid };
|