modern-canvas 0.2.0 → 0.2.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 +702 -508
- package/dist/index.d.cts +112 -45
- package/dist/index.d.mts +112 -45
- package/dist/index.d.ts +112 -45
- package/dist/index.js +27 -27
- package/dist/index.mjs +703 -509
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1918,6 +1918,12 @@ class Rect2 {
|
|
|
1918
1918
|
get top() {
|
|
1919
1919
|
return this.position.y;
|
|
1920
1920
|
}
|
|
1921
|
+
get right() {
|
|
1922
|
+
return this.x + this.width;
|
|
1923
|
+
}
|
|
1924
|
+
get bottom() {
|
|
1925
|
+
return this.y + this.height;
|
|
1926
|
+
}
|
|
1921
1927
|
get width() {
|
|
1922
1928
|
return this.size.x;
|
|
1923
1929
|
}
|
|
@@ -1958,6 +1964,9 @@ class Rect2 {
|
|
|
1958
1964
|
);
|
|
1959
1965
|
return this;
|
|
1960
1966
|
}
|
|
1967
|
+
toArray() {
|
|
1968
|
+
return [this.x, this.y, this.width, this.height];
|
|
1969
|
+
}
|
|
1961
1970
|
}
|
|
1962
1971
|
|
|
1963
1972
|
class Transform2D extends Matrix3 {
|
|
@@ -2189,13 +2198,13 @@ class Vector3 extends Vector {
|
|
|
2189
2198
|
}
|
|
2190
2199
|
}
|
|
2191
2200
|
|
|
2192
|
-
var __defProp$
|
|
2193
|
-
var __decorateClass$
|
|
2201
|
+
var __defProp$L = Object.defineProperty;
|
|
2202
|
+
var __decorateClass$L = (decorators, target, key, kind) => {
|
|
2194
2203
|
var result = undefined ;
|
|
2195
2204
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
2196
2205
|
if (decorator = decorators[i])
|
|
2197
2206
|
result = (decorator(target, key, result) ) || result;
|
|
2198
|
-
if (result) __defProp$
|
|
2207
|
+
if (result) __defProp$L(target, key, result);
|
|
2199
2208
|
return result;
|
|
2200
2209
|
};
|
|
2201
2210
|
class MainLoop extends CoreObject {
|
|
@@ -2236,10 +2245,10 @@ class MainLoop extends CoreObject {
|
|
|
2236
2245
|
}
|
|
2237
2246
|
}
|
|
2238
2247
|
}
|
|
2239
|
-
__decorateClass$
|
|
2248
|
+
__decorateClass$L([
|
|
2240
2249
|
property({ default: 24 })
|
|
2241
2250
|
], MainLoop.prototype, "fps");
|
|
2242
|
-
__decorateClass$
|
|
2251
|
+
__decorateClass$L([
|
|
2243
2252
|
property({ default: 1 })
|
|
2244
2253
|
], MainLoop.prototype, "speed");
|
|
2245
2254
|
|
|
@@ -4383,13 +4392,13 @@ class Geometry extends Resource {
|
|
|
4383
4392
|
}
|
|
4384
4393
|
}
|
|
4385
4394
|
|
|
4386
|
-
var __defProp$
|
|
4387
|
-
var __decorateClass$
|
|
4395
|
+
var __defProp$K = Object.defineProperty;
|
|
4396
|
+
var __decorateClass$K = (decorators, target, key, kind) => {
|
|
4388
4397
|
var result = undefined ;
|
|
4389
4398
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
4390
4399
|
if (decorator = decorators[i])
|
|
4391
4400
|
result = (decorator(target, key, result) ) || result;
|
|
4392
|
-
if (result) __defProp$
|
|
4401
|
+
if (result) __defProp$K(target, key, result);
|
|
4393
4402
|
return result;
|
|
4394
4403
|
};
|
|
4395
4404
|
class IndexBuffer extends Resource {
|
|
@@ -4433,20 +4442,20 @@ class IndexBuffer extends Resource {
|
|
|
4433
4442
|
return result;
|
|
4434
4443
|
}
|
|
4435
4444
|
}
|
|
4436
|
-
__decorateClass$
|
|
4445
|
+
__decorateClass$K([
|
|
4437
4446
|
protectedProperty({ default: null })
|
|
4438
4447
|
], IndexBuffer.prototype, "data");
|
|
4439
|
-
__decorateClass$
|
|
4448
|
+
__decorateClass$K([
|
|
4440
4449
|
protectedProperty({ default: false })
|
|
4441
4450
|
], IndexBuffer.prototype, "dynamic");
|
|
4442
4451
|
|
|
4443
|
-
var __defProp$
|
|
4444
|
-
var __decorateClass$
|
|
4452
|
+
var __defProp$J = Object.defineProperty;
|
|
4453
|
+
var __decorateClass$J = (decorators, target, key, kind) => {
|
|
4445
4454
|
var result = undefined ;
|
|
4446
4455
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
4447
4456
|
if (decorator = decorators[i])
|
|
4448
4457
|
result = (decorator(target, key, result) ) || result;
|
|
4449
|
-
if (result) __defProp$
|
|
4458
|
+
if (result) __defProp$J(target, key, result);
|
|
4450
4459
|
return result;
|
|
4451
4460
|
};
|
|
4452
4461
|
class VertexBuffer extends Resource {
|
|
@@ -4490,20 +4499,20 @@ class VertexBuffer extends Resource {
|
|
|
4490
4499
|
return result;
|
|
4491
4500
|
}
|
|
4492
4501
|
}
|
|
4493
|
-
__decorateClass$
|
|
4502
|
+
__decorateClass$J([
|
|
4494
4503
|
protectedProperty({ default: null })
|
|
4495
4504
|
], VertexBuffer.prototype, "data");
|
|
4496
|
-
__decorateClass$
|
|
4505
|
+
__decorateClass$J([
|
|
4497
4506
|
protectedProperty({ default: false })
|
|
4498
4507
|
], VertexBuffer.prototype, "dynamic");
|
|
4499
4508
|
|
|
4500
|
-
var __defProp$
|
|
4501
|
-
var __decorateClass$
|
|
4509
|
+
var __defProp$I = Object.defineProperty;
|
|
4510
|
+
var __decorateClass$I = (decorators, target, key, kind) => {
|
|
4502
4511
|
var result = undefined ;
|
|
4503
4512
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
4504
4513
|
if (decorator = decorators[i])
|
|
4505
4514
|
result = (decorator(target, key, result) ) || result;
|
|
4506
|
-
if (result) __defProp$
|
|
4515
|
+
if (result) __defProp$I(target, key, result);
|
|
4507
4516
|
return result;
|
|
4508
4517
|
};
|
|
4509
4518
|
class VertexAttribute extends Resource {
|
|
@@ -4540,25 +4549,25 @@ class VertexAttribute extends Resource {
|
|
|
4540
4549
|
return result;
|
|
4541
4550
|
}
|
|
4542
4551
|
}
|
|
4543
|
-
__decorateClass$
|
|
4552
|
+
__decorateClass$I([
|
|
4544
4553
|
protectedProperty()
|
|
4545
4554
|
], VertexAttribute.prototype, "buffer");
|
|
4546
|
-
__decorateClass$
|
|
4555
|
+
__decorateClass$I([
|
|
4547
4556
|
protectedProperty({ default: 0 })
|
|
4548
4557
|
], VertexAttribute.prototype, "size");
|
|
4549
|
-
__decorateClass$
|
|
4558
|
+
__decorateClass$I([
|
|
4550
4559
|
protectedProperty({ default: false })
|
|
4551
4560
|
], VertexAttribute.prototype, "normalized");
|
|
4552
|
-
__decorateClass$
|
|
4561
|
+
__decorateClass$I([
|
|
4553
4562
|
protectedProperty({ default: "float" })
|
|
4554
4563
|
], VertexAttribute.prototype, "type");
|
|
4555
|
-
__decorateClass$
|
|
4564
|
+
__decorateClass$I([
|
|
4556
4565
|
protectedProperty()
|
|
4557
4566
|
], VertexAttribute.prototype, "stride");
|
|
4558
|
-
__decorateClass$
|
|
4567
|
+
__decorateClass$I([
|
|
4559
4568
|
protectedProperty()
|
|
4560
4569
|
], VertexAttribute.prototype, "offset");
|
|
4561
|
-
__decorateClass$
|
|
4570
|
+
__decorateClass$I([
|
|
4562
4571
|
protectedProperty()
|
|
4563
4572
|
], VertexAttribute.prototype, "divisor");
|
|
4564
4573
|
|
|
@@ -4808,13 +4817,13 @@ class UvGeometry extends Geometry {
|
|
|
4808
4817
|
}
|
|
4809
4818
|
}
|
|
4810
4819
|
|
|
4811
|
-
var __defProp$
|
|
4812
|
-
var __decorateClass$
|
|
4820
|
+
var __defProp$H = Object.defineProperty;
|
|
4821
|
+
var __decorateClass$H = (decorators, target, key, kind) => {
|
|
4813
4822
|
var result = undefined ;
|
|
4814
4823
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
4815
4824
|
if (decorator = decorators[i])
|
|
4816
4825
|
result = (decorator(target, key, result) ) || result;
|
|
4817
|
-
if (result) __defProp$
|
|
4826
|
+
if (result) __defProp$H(target, key, result);
|
|
4818
4827
|
return result;
|
|
4819
4828
|
};
|
|
4820
4829
|
const style2DFilterDefault = {
|
|
@@ -5027,64 +5036,64 @@ class CanvasItemStyle extends Resource {
|
|
|
5027
5036
|
return m;
|
|
5028
5037
|
}
|
|
5029
5038
|
}
|
|
5030
|
-
__decorateClass$
|
|
5039
|
+
__decorateClass$H([
|
|
5031
5040
|
property()
|
|
5032
5041
|
], CanvasItemStyle.prototype, "backgroundColor");
|
|
5033
|
-
__decorateClass$
|
|
5042
|
+
__decorateClass$H([
|
|
5034
5043
|
property()
|
|
5035
5044
|
], CanvasItemStyle.prototype, "backgroundImage");
|
|
5036
|
-
__decorateClass$
|
|
5045
|
+
__decorateClass$H([
|
|
5037
5046
|
property({ default: "" })
|
|
5038
5047
|
], CanvasItemStyle.prototype, "filter");
|
|
5039
|
-
__decorateClass$
|
|
5048
|
+
__decorateClass$H([
|
|
5040
5049
|
property({ default: "inherit" })
|
|
5041
5050
|
], CanvasItemStyle.prototype, "direction");
|
|
5042
|
-
__decorateClass$
|
|
5051
|
+
__decorateClass$H([
|
|
5043
5052
|
property({ default: "#000000" })
|
|
5044
5053
|
], CanvasItemStyle.prototype, "shadowColor");
|
|
5045
|
-
__decorateClass$
|
|
5054
|
+
__decorateClass$H([
|
|
5046
5055
|
property({ default: 0 })
|
|
5047
5056
|
], CanvasItemStyle.prototype, "shadowOffsetX");
|
|
5048
|
-
__decorateClass$
|
|
5057
|
+
__decorateClass$H([
|
|
5049
5058
|
property({ default: 0 })
|
|
5050
5059
|
], CanvasItemStyle.prototype, "shadowOffsetY");
|
|
5051
|
-
__decorateClass$
|
|
5060
|
+
__decorateClass$H([
|
|
5052
5061
|
property({ default: 0 })
|
|
5053
5062
|
], CanvasItemStyle.prototype, "shadowBlur");
|
|
5054
|
-
__decorateClass$
|
|
5063
|
+
__decorateClass$H([
|
|
5055
5064
|
property({ default: 1 })
|
|
5056
5065
|
], CanvasItemStyle.prototype, "opacity");
|
|
5057
|
-
__decorateClass$
|
|
5066
|
+
__decorateClass$H([
|
|
5058
5067
|
property({ default: 0 })
|
|
5059
5068
|
], CanvasItemStyle.prototype, "borderWidth");
|
|
5060
|
-
__decorateClass$
|
|
5069
|
+
__decorateClass$H([
|
|
5061
5070
|
property({ default: 0 })
|
|
5062
5071
|
], CanvasItemStyle.prototype, "borderRadius");
|
|
5063
|
-
__decorateClass$
|
|
5072
|
+
__decorateClass$H([
|
|
5064
5073
|
property({ default: "#000000" })
|
|
5065
5074
|
], CanvasItemStyle.prototype, "borderColor");
|
|
5066
|
-
__decorateClass$
|
|
5075
|
+
__decorateClass$H([
|
|
5067
5076
|
property({ default: "none" })
|
|
5068
5077
|
], CanvasItemStyle.prototype, "borderStyle");
|
|
5069
|
-
__decorateClass$
|
|
5078
|
+
__decorateClass$H([
|
|
5070
5079
|
property({ default: 0 })
|
|
5071
5080
|
], CanvasItemStyle.prototype, "outlineWidth");
|
|
5072
|
-
__decorateClass$
|
|
5081
|
+
__decorateClass$H([
|
|
5073
5082
|
property({ default: 0 })
|
|
5074
5083
|
], CanvasItemStyle.prototype, "outlineOffset");
|
|
5075
|
-
__decorateClass$
|
|
5084
|
+
__decorateClass$H([
|
|
5076
5085
|
property({ default: "#000000" })
|
|
5077
5086
|
], CanvasItemStyle.prototype, "outlineColor");
|
|
5078
|
-
__decorateClass$
|
|
5087
|
+
__decorateClass$H([
|
|
5079
5088
|
property({ default: "none" })
|
|
5080
5089
|
], CanvasItemStyle.prototype, "outlineStyle");
|
|
5081
|
-
__decorateClass$
|
|
5090
|
+
__decorateClass$H([
|
|
5082
5091
|
property({ default: "visible" })
|
|
5083
5092
|
], CanvasItemStyle.prototype, "visibility");
|
|
5084
|
-
__decorateClass$
|
|
5093
|
+
__decorateClass$H([
|
|
5085
5094
|
property({ default: "visible" })
|
|
5086
5095
|
], CanvasItemStyle.prototype, "overflow");
|
|
5087
|
-
__decorateClass$
|
|
5096
|
+
__decorateClass$H([
|
|
5088
5097
|
property({ default: "auto" })
|
|
5089
5098
|
], CanvasItemStyle.prototype, "pointerEvents");
|
|
5090
5099
|
const transformStyle = getDefaultTransformStyle();
|
|
@@ -5096,13 +5105,13 @@ for (const key in textStyle) {
|
|
|
5096
5105
|
defineProperty(CanvasItemStyle, key, { default: textStyle[key] });
|
|
5097
5106
|
}
|
|
5098
5107
|
|
|
5099
|
-
var __defProp$
|
|
5100
|
-
var __decorateClass$
|
|
5108
|
+
var __defProp$G = Object.defineProperty;
|
|
5109
|
+
var __decorateClass$G = (decorators, target, key, kind) => {
|
|
5101
5110
|
var result = undefined ;
|
|
5102
5111
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
5103
5112
|
if (decorator = decorators[i])
|
|
5104
5113
|
result = (decorator(target, key, result) ) || result;
|
|
5105
|
-
if (result) __defProp$
|
|
5114
|
+
if (result) __defProp$G(target, key, result);
|
|
5106
5115
|
return result;
|
|
5107
5116
|
};
|
|
5108
5117
|
class Texture2D extends Resource {
|
|
@@ -5228,32 +5237,32 @@ class Texture2D extends Resource {
|
|
|
5228
5237
|
}
|
|
5229
5238
|
}
|
|
5230
5239
|
}
|
|
5231
|
-
__decorateClass$
|
|
5240
|
+
__decorateClass$G([
|
|
5232
5241
|
protectedProperty()
|
|
5233
5242
|
], Texture2D.prototype, "source");
|
|
5234
|
-
__decorateClass$
|
|
5243
|
+
__decorateClass$G([
|
|
5235
5244
|
property({ default: 0 })
|
|
5236
5245
|
], Texture2D.prototype, "width");
|
|
5237
|
-
__decorateClass$
|
|
5246
|
+
__decorateClass$G([
|
|
5238
5247
|
property({ default: 0 })
|
|
5239
5248
|
], Texture2D.prototype, "height");
|
|
5240
|
-
__decorateClass$
|
|
5249
|
+
__decorateClass$G([
|
|
5241
5250
|
property({ default: "linear" })
|
|
5242
5251
|
], Texture2D.prototype, "filterMode");
|
|
5243
|
-
__decorateClass$
|
|
5252
|
+
__decorateClass$G([
|
|
5244
5253
|
property({ default: "clamp_to_edge" })
|
|
5245
5254
|
], Texture2D.prototype, "wrapMode");
|
|
5246
|
-
__decorateClass$
|
|
5255
|
+
__decorateClass$G([
|
|
5247
5256
|
property({ default: 1 })
|
|
5248
5257
|
], Texture2D.prototype, "pixelRatio");
|
|
5249
5258
|
|
|
5250
|
-
var __defProp$
|
|
5251
|
-
var __decorateClass$
|
|
5259
|
+
var __defProp$F = Object.defineProperty;
|
|
5260
|
+
var __decorateClass$F = (decorators, target, key, kind) => {
|
|
5252
5261
|
var result = undefined ;
|
|
5253
5262
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
5254
5263
|
if (decorator = decorators[i])
|
|
5255
5264
|
result = (decorator(target, key, result) ) || result;
|
|
5256
|
-
if (result) __defProp$
|
|
5265
|
+
if (result) __defProp$F(target, key, result);
|
|
5257
5266
|
return result;
|
|
5258
5267
|
};
|
|
5259
5268
|
class CanvasTexture extends Texture2D {
|
|
@@ -5263,16 +5272,16 @@ class CanvasTexture extends Texture2D {
|
|
|
5263
5272
|
_updateProperty(key, value, oldValue, declaration) {
|
|
5264
5273
|
switch (key) {
|
|
5265
5274
|
case "width":
|
|
5266
|
-
this.source.width = value * this.pixelRatio;
|
|
5275
|
+
this.source.width = Math.max(1, Math.ceil(value * this.pixelRatio));
|
|
5267
5276
|
break;
|
|
5268
5277
|
case "height":
|
|
5269
|
-
this.source.height = value * this.pixelRatio;
|
|
5278
|
+
this.source.height = Math.max(1, Math.ceil(value * this.pixelRatio));
|
|
5270
5279
|
break;
|
|
5271
5280
|
}
|
|
5272
5281
|
super._updateProperty(key, value, oldValue, declaration);
|
|
5273
5282
|
}
|
|
5274
5283
|
}
|
|
5275
|
-
__decorateClass$
|
|
5284
|
+
__decorateClass$F([
|
|
5276
5285
|
property({ default: 2 })
|
|
5277
5286
|
], CanvasTexture.prototype, "pixelRatio");
|
|
5278
5287
|
|
|
@@ -5430,13 +5439,13 @@ class PixelsTexture extends Texture2D {
|
|
|
5430
5439
|
}
|
|
5431
5440
|
}
|
|
5432
5441
|
|
|
5433
|
-
var __defProp$
|
|
5434
|
-
var __decorateClass$
|
|
5442
|
+
var __defProp$E = Object.defineProperty;
|
|
5443
|
+
var __decorateClass$E = (decorators, target, key, kind) => {
|
|
5435
5444
|
var result = undefined ;
|
|
5436
5445
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
5437
5446
|
if (decorator = decorators[i])
|
|
5438
5447
|
result = (decorator(target, key, result) ) || result;
|
|
5439
|
-
if (result) __defProp$
|
|
5448
|
+
if (result) __defProp$E(target, key, result);
|
|
5440
5449
|
return result;
|
|
5441
5450
|
};
|
|
5442
5451
|
function resolveOptions(options) {
|
|
@@ -5680,10 +5689,10 @@ const _VideoTexture = class _VideoTexture extends Texture2D {
|
|
|
5680
5689
|
}
|
|
5681
5690
|
}
|
|
5682
5691
|
};
|
|
5683
|
-
__decorateClass$
|
|
5692
|
+
__decorateClass$E([
|
|
5684
5693
|
protectedProperty({ default: true })
|
|
5685
5694
|
], _VideoTexture.prototype, "autoUpdate");
|
|
5686
|
-
__decorateClass$
|
|
5695
|
+
__decorateClass$E([
|
|
5687
5696
|
protectedProperty({ default: 0 })
|
|
5688
5697
|
], _VideoTexture.prototype, "fps");
|
|
5689
5698
|
let VideoTexture = _VideoTexture;
|
|
@@ -5853,14 +5862,14 @@ class CanvasContext extends Path2D {
|
|
|
5853
5862
|
}
|
|
5854
5863
|
}
|
|
5855
5864
|
|
|
5856
|
-
var __defProp$
|
|
5857
|
-
var __getOwnPropDesc$
|
|
5858
|
-
var __decorateClass$
|
|
5859
|
-
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$
|
|
5865
|
+
var __defProp$D = Object.defineProperty;
|
|
5866
|
+
var __getOwnPropDesc$C = Object.getOwnPropertyDescriptor;
|
|
5867
|
+
var __decorateClass$D = (decorators, target, key, kind) => {
|
|
5868
|
+
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$C(target, key) : target;
|
|
5860
5869
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
5861
5870
|
if (decorator = decorators[i])
|
|
5862
5871
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5863
|
-
if (kind && result) __defProp$
|
|
5872
|
+
if (kind && result) __defProp$D(target, key, result);
|
|
5864
5873
|
return result;
|
|
5865
5874
|
};
|
|
5866
5875
|
let Node = class extends CoreObject {
|
|
@@ -5960,9 +5969,6 @@ let Node = class extends CoreObject {
|
|
|
5960
5969
|
}
|
|
5961
5970
|
/** Children */
|
|
5962
5971
|
_children = [];
|
|
5963
|
-
get children() {
|
|
5964
|
-
return this.getChildren();
|
|
5965
|
-
}
|
|
5966
5972
|
get siblingIndex() {
|
|
5967
5973
|
return this.getIndex();
|
|
5968
5974
|
}
|
|
@@ -6227,17 +6233,17 @@ let Node = class extends CoreObject {
|
|
|
6227
6233
|
return this;
|
|
6228
6234
|
}
|
|
6229
6235
|
removeChildren() {
|
|
6230
|
-
this.
|
|
6236
|
+
this.getChildren().forEach((child) => this.removeChild(child));
|
|
6231
6237
|
}
|
|
6232
6238
|
remove() {
|
|
6233
6239
|
this._parent?.removeChild(this);
|
|
6234
6240
|
}
|
|
6235
6241
|
forEach(fn) {
|
|
6236
|
-
this.
|
|
6242
|
+
this.getChildren().forEach(fn);
|
|
6237
6243
|
return this;
|
|
6238
6244
|
}
|
|
6239
6245
|
deepForEach(fn) {
|
|
6240
|
-
this.
|
|
6246
|
+
this.getChildren().forEach((child) => {
|
|
6241
6247
|
fn(child);
|
|
6242
6248
|
child.deepForEach(fn);
|
|
6243
6249
|
});
|
|
@@ -6274,7 +6280,7 @@ let Node = class extends CoreObject {
|
|
|
6274
6280
|
return {
|
|
6275
6281
|
tag: this.tag,
|
|
6276
6282
|
props: super.toJSON(),
|
|
6277
|
-
children: this.
|
|
6283
|
+
children: this.getChildren().map((child) => child.toJSON())
|
|
6278
6284
|
};
|
|
6279
6285
|
}
|
|
6280
6286
|
static parse(JSON) {
|
|
@@ -6288,33 +6294,33 @@ let Node = class extends CoreObject {
|
|
|
6288
6294
|
return node;
|
|
6289
6295
|
}
|
|
6290
6296
|
};
|
|
6291
|
-
__decorateClass$
|
|
6297
|
+
__decorateClass$D([
|
|
6292
6298
|
property()
|
|
6293
6299
|
], Node.prototype, "name", 2);
|
|
6294
|
-
__decorateClass$
|
|
6300
|
+
__decorateClass$D([
|
|
6295
6301
|
property()
|
|
6296
6302
|
], Node.prototype, "mask", 2);
|
|
6297
|
-
__decorateClass$
|
|
6303
|
+
__decorateClass$D([
|
|
6298
6304
|
property({ default: "inherit" })
|
|
6299
6305
|
], Node.prototype, "processMode", 2);
|
|
6300
|
-
__decorateClass$
|
|
6306
|
+
__decorateClass$D([
|
|
6301
6307
|
property({ default: "inherit" })
|
|
6302
6308
|
], Node.prototype, "renderMode", 2);
|
|
6303
|
-
__decorateClass$
|
|
6309
|
+
__decorateClass$D([
|
|
6304
6310
|
property({ default: "default" })
|
|
6305
6311
|
], Node.prototype, "internalMode", 2);
|
|
6306
|
-
Node = __decorateClass$
|
|
6312
|
+
Node = __decorateClass$D([
|
|
6307
6313
|
customNode("Node")
|
|
6308
6314
|
], Node);
|
|
6309
6315
|
|
|
6310
|
-
var __defProp$
|
|
6311
|
-
var __getOwnPropDesc$
|
|
6312
|
-
var __decorateClass$
|
|
6313
|
-
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$
|
|
6316
|
+
var __defProp$C = Object.defineProperty;
|
|
6317
|
+
var __getOwnPropDesc$B = Object.getOwnPropertyDescriptor;
|
|
6318
|
+
var __decorateClass$C = (decorators, target, key, kind) => {
|
|
6319
|
+
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$B(target, key) : target;
|
|
6314
6320
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6315
6321
|
if (decorator = decorators[i])
|
|
6316
6322
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6317
|
-
if (kind && result) __defProp$
|
|
6323
|
+
if (kind && result) __defProp$C(target, key, result);
|
|
6318
6324
|
return result;
|
|
6319
6325
|
};
|
|
6320
6326
|
let TimelineNode = class extends Node {
|
|
@@ -6373,27 +6379,27 @@ let TimelineNode = class extends Node {
|
|
|
6373
6379
|
super._process(delta);
|
|
6374
6380
|
}
|
|
6375
6381
|
};
|
|
6376
|
-
__decorateClass$
|
|
6382
|
+
__decorateClass$C([
|
|
6377
6383
|
property({ default: 0 })
|
|
6378
6384
|
], TimelineNode.prototype, "delay", 2);
|
|
6379
|
-
__decorateClass$
|
|
6385
|
+
__decorateClass$C([
|
|
6380
6386
|
property({ default: 0 })
|
|
6381
6387
|
], TimelineNode.prototype, "duration", 2);
|
|
6382
|
-
__decorateClass$
|
|
6388
|
+
__decorateClass$C([
|
|
6383
6389
|
property({ default: false })
|
|
6384
6390
|
], TimelineNode.prototype, "paused", 2);
|
|
6385
|
-
TimelineNode = __decorateClass$
|
|
6391
|
+
TimelineNode = __decorateClass$C([
|
|
6386
6392
|
customNode("TimelineNode")
|
|
6387
6393
|
], TimelineNode);
|
|
6388
6394
|
|
|
6389
|
-
var __defProp$
|
|
6390
|
-
var __getOwnPropDesc$
|
|
6391
|
-
var __decorateClass$
|
|
6392
|
-
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$
|
|
6395
|
+
var __defProp$B = Object.defineProperty;
|
|
6396
|
+
var __getOwnPropDesc$A = Object.getOwnPropertyDescriptor;
|
|
6397
|
+
var __decorateClass$B = (decorators, target, key, kind) => {
|
|
6398
|
+
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$A(target, key) : target;
|
|
6393
6399
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6394
6400
|
if (decorator = decorators[i])
|
|
6395
6401
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6396
|
-
if (kind && result) __defProp$
|
|
6402
|
+
if (kind && result) __defProp$B(target, key, result);
|
|
6397
6403
|
return result;
|
|
6398
6404
|
};
|
|
6399
6405
|
let CanvasItem = class extends TimelineNode {
|
|
@@ -6411,11 +6417,11 @@ let CanvasItem = class extends TimelineNode {
|
|
|
6411
6417
|
}
|
|
6412
6418
|
/** @internal */
|
|
6413
6419
|
opacity = 1;
|
|
6414
|
-
|
|
6420
|
+
visible = true;
|
|
6415
6421
|
_parentOpacity;
|
|
6422
|
+
_parentVisible;
|
|
6416
6423
|
_modulate = new Color(4294967295);
|
|
6417
6424
|
_backgroundImage;
|
|
6418
|
-
_computedVisible = true;
|
|
6419
6425
|
// Batch render
|
|
6420
6426
|
context = new CanvasContext();
|
|
6421
6427
|
_resetContext = true;
|
|
@@ -6449,9 +6455,6 @@ let CanvasItem = class extends TimelineNode {
|
|
|
6449
6455
|
this._modulate.value = value;
|
|
6450
6456
|
this.requestRepaint();
|
|
6451
6457
|
break;
|
|
6452
|
-
case "visible":
|
|
6453
|
-
this._updateVisible();
|
|
6454
|
-
break;
|
|
6455
6458
|
}
|
|
6456
6459
|
}
|
|
6457
6460
|
// eslint-disable-next-line unused-imports/no-unused-vars
|
|
@@ -6473,23 +6476,10 @@ let CanvasItem = class extends TimelineNode {
|
|
|
6473
6476
|
this.requestRedraw();
|
|
6474
6477
|
break;
|
|
6475
6478
|
case "visibility":
|
|
6476
|
-
this.
|
|
6477
|
-
break;
|
|
6478
|
-
case "width":
|
|
6479
|
-
case "height":
|
|
6480
|
-
this._updateSize();
|
|
6479
|
+
this._updateVisible();
|
|
6481
6480
|
break;
|
|
6482
6481
|
}
|
|
6483
6482
|
}
|
|
6484
|
-
_updateSize() {
|
|
6485
|
-
if (this.inheritSize) {
|
|
6486
|
-
this.size.width = this.style.width || this._parent?.size?.width || this._parent?.width;
|
|
6487
|
-
this.size.height = this.style.height || this._parent?.size?.height || this._parent?.height;
|
|
6488
|
-
} else {
|
|
6489
|
-
this.size.width = this.style.width;
|
|
6490
|
-
this.size.height = this.style.height;
|
|
6491
|
-
}
|
|
6492
|
-
}
|
|
6493
6483
|
_updateBackgroundColor() {
|
|
6494
6484
|
const backgroundColor = this.style.getComputedBackgroundColor();
|
|
6495
6485
|
if (this._originalBatchables.length) {
|
|
@@ -6503,31 +6493,31 @@ let CanvasItem = class extends TimelineNode {
|
|
|
6503
6493
|
this.requestRedraw();
|
|
6504
6494
|
}
|
|
6505
6495
|
_updateOpacity() {
|
|
6506
|
-
const
|
|
6507
|
-
if (
|
|
6508
|
-
this.
|
|
6509
|
-
|
|
6510
|
-
if (this.opacity !== opacity) {
|
|
6511
|
-
this.opacity = opacity;
|
|
6512
|
-
this.requestRepaint();
|
|
6513
|
-
}
|
|
6496
|
+
const opacity = this.style.getComputedOpacity() * (this.getParent()?.opacity ?? 1);
|
|
6497
|
+
if (this.opacity !== opacity) {
|
|
6498
|
+
this.opacity = opacity;
|
|
6499
|
+
this.requestRepaint();
|
|
6514
6500
|
}
|
|
6515
6501
|
}
|
|
6502
|
+
_updateCurrentTime(force = false) {
|
|
6503
|
+
super._updateCurrentTime(force);
|
|
6504
|
+
this._updateVisible();
|
|
6505
|
+
}
|
|
6516
6506
|
_updateVisible() {
|
|
6517
|
-
let visible = this.visible
|
|
6507
|
+
let visible = this.style.visibility === "visible" && (this.getParent()?.visible ?? true);
|
|
6518
6508
|
if (visible && !this.isInsideTimeRange()) {
|
|
6519
6509
|
visible = false;
|
|
6520
6510
|
}
|
|
6521
|
-
this.
|
|
6511
|
+
this.visible = visible;
|
|
6522
6512
|
}
|
|
6523
6513
|
show() {
|
|
6524
|
-
this.
|
|
6514
|
+
this.style.visibility = "visible";
|
|
6525
6515
|
}
|
|
6526
6516
|
hide() {
|
|
6527
|
-
this.
|
|
6517
|
+
this.style.visibility = "hidden";
|
|
6528
6518
|
}
|
|
6529
6519
|
isVisibleInTree() {
|
|
6530
|
-
return this.opacity > 0 && this.
|
|
6520
|
+
return this.opacity > 0 && this.visible;
|
|
6531
6521
|
}
|
|
6532
6522
|
canRender() {
|
|
6533
6523
|
return super.canRender() && this.isVisibleInTree();
|
|
@@ -6542,10 +6532,14 @@ let CanvasItem = class extends TimelineNode {
|
|
|
6542
6532
|
this._repainting = true;
|
|
6543
6533
|
}
|
|
6544
6534
|
_process(delta) {
|
|
6545
|
-
this.
|
|
6546
|
-
this.
|
|
6547
|
-
|
|
6548
|
-
this.
|
|
6535
|
+
const parent = this.getParent();
|
|
6536
|
+
if (this._parentVisible !== parent?.visible) {
|
|
6537
|
+
this._parentVisible = parent?.visible;
|
|
6538
|
+
this._updateVisible();
|
|
6539
|
+
}
|
|
6540
|
+
if (this._parentOpacity !== parent?.opacity) {
|
|
6541
|
+
this._parentOpacity = parent?.opacity;
|
|
6542
|
+
this._updateOpacity();
|
|
6549
6543
|
}
|
|
6550
6544
|
super._process(delta);
|
|
6551
6545
|
}
|
|
@@ -6584,8 +6578,7 @@ let CanvasItem = class extends TimelineNode {
|
|
|
6584
6578
|
}
|
|
6585
6579
|
}
|
|
6586
6580
|
_drawBoundingRect() {
|
|
6587
|
-
const { borderRadius } = this.style;
|
|
6588
|
-
const { width, height } = this.size;
|
|
6581
|
+
const { borderRadius, width, height } = this.style;
|
|
6589
6582
|
if (width && height) {
|
|
6590
6583
|
if (borderRadius) {
|
|
6591
6584
|
this.context.roundRect(0, 0, width, height, borderRadius);
|
|
@@ -6664,19 +6657,13 @@ let CanvasItem = class extends TimelineNode {
|
|
|
6664
6657
|
};
|
|
6665
6658
|
}
|
|
6666
6659
|
};
|
|
6667
|
-
__decorateClass$
|
|
6668
|
-
property({ default: true })
|
|
6669
|
-
], CanvasItem.prototype, "visible", 2);
|
|
6670
|
-
__decorateClass$y([
|
|
6660
|
+
__decorateClass$B([
|
|
6671
6661
|
property()
|
|
6672
6662
|
], CanvasItem.prototype, "modulate", 2);
|
|
6673
|
-
__decorateClass$
|
|
6663
|
+
__decorateClass$B([
|
|
6674
6664
|
property()
|
|
6675
6665
|
], CanvasItem.prototype, "blendMode", 2);
|
|
6676
|
-
__decorateClass$
|
|
6677
|
-
property()
|
|
6678
|
-
], CanvasItem.prototype, "inheritSize", 2);
|
|
6679
|
-
CanvasItem = __decorateClass$y([
|
|
6666
|
+
CanvasItem = __decorateClass$B([
|
|
6680
6667
|
customNode("CanvasItem")
|
|
6681
6668
|
], CanvasItem);
|
|
6682
6669
|
|
|
@@ -6706,14 +6693,14 @@ class RenderStack extends Node {
|
|
|
6706
6693
|
}
|
|
6707
6694
|
}
|
|
6708
6695
|
|
|
6709
|
-
var __defProp$
|
|
6710
|
-
var __getOwnPropDesc$
|
|
6711
|
-
var __decorateClass$
|
|
6712
|
-
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$
|
|
6696
|
+
var __defProp$A = Object.defineProperty;
|
|
6697
|
+
var __getOwnPropDesc$z = Object.getOwnPropertyDescriptor;
|
|
6698
|
+
var __decorateClass$A = (decorators, target, key, kind) => {
|
|
6699
|
+
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$z(target, key) : target;
|
|
6713
6700
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6714
6701
|
if (decorator = decorators[i])
|
|
6715
6702
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6716
|
-
if (kind && result) __defProp$
|
|
6703
|
+
if (kind && result) __defProp$A(target, key, result);
|
|
6717
6704
|
return result;
|
|
6718
6705
|
};
|
|
6719
6706
|
let Timeline = class extends Node {
|
|
@@ -6758,30 +6745,30 @@ let Timeline = class extends Node {
|
|
|
6758
6745
|
this.addTime(delta);
|
|
6759
6746
|
}
|
|
6760
6747
|
};
|
|
6761
|
-
__decorateClass$
|
|
6748
|
+
__decorateClass$A([
|
|
6762
6749
|
property({ default: 0 })
|
|
6763
6750
|
], Timeline.prototype, "startTime", 2);
|
|
6764
|
-
__decorateClass$
|
|
6751
|
+
__decorateClass$A([
|
|
6765
6752
|
property({ default: 0 })
|
|
6766
6753
|
], Timeline.prototype, "currentTime", 2);
|
|
6767
|
-
__decorateClass$
|
|
6754
|
+
__decorateClass$A([
|
|
6768
6755
|
property({ default: Number.MAX_SAFE_INTEGER })
|
|
6769
6756
|
], Timeline.prototype, "endTime", 2);
|
|
6770
|
-
__decorateClass$
|
|
6757
|
+
__decorateClass$A([
|
|
6771
6758
|
property({ default: false })
|
|
6772
6759
|
], Timeline.prototype, "loop", 2);
|
|
6773
|
-
Timeline = __decorateClass$
|
|
6760
|
+
Timeline = __decorateClass$A([
|
|
6774
6761
|
customNode("Timeline")
|
|
6775
6762
|
], Timeline);
|
|
6776
6763
|
|
|
6777
|
-
var __defProp$
|
|
6778
|
-
var __getOwnPropDesc$
|
|
6779
|
-
var __decorateClass$
|
|
6780
|
-
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$
|
|
6764
|
+
var __defProp$z = Object.defineProperty;
|
|
6765
|
+
var __getOwnPropDesc$y = Object.getOwnPropertyDescriptor;
|
|
6766
|
+
var __decorateClass$z = (decorators, target, key, kind) => {
|
|
6767
|
+
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$y(target, key) : target;
|
|
6781
6768
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6782
6769
|
if (decorator = decorators[i])
|
|
6783
6770
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6784
|
-
if (kind && result) __defProp$
|
|
6771
|
+
if (kind && result) __defProp$z(target, key, result);
|
|
6785
6772
|
return result;
|
|
6786
6773
|
};
|
|
6787
6774
|
let Viewport = class extends Node {
|
|
@@ -6837,11 +6824,13 @@ let Viewport = class extends Node {
|
|
|
6837
6824
|
case "y":
|
|
6838
6825
|
this.requestUpload();
|
|
6839
6826
|
this._projection.translate(this.x, this.y);
|
|
6827
|
+
this.emit("updateRect");
|
|
6840
6828
|
break;
|
|
6841
6829
|
case "width":
|
|
6842
6830
|
case "height":
|
|
6843
6831
|
this.requestUpload();
|
|
6844
6832
|
this._projection.resize(this.width, this.height);
|
|
6833
|
+
this.emit("updateRect");
|
|
6845
6834
|
break;
|
|
6846
6835
|
}
|
|
6847
6836
|
}
|
|
@@ -6910,33 +6899,36 @@ let Viewport = class extends Node {
|
|
|
6910
6899
|
this._tree?.setCurrentViewport(undefined);
|
|
6911
6900
|
}
|
|
6912
6901
|
}
|
|
6902
|
+
getRect() {
|
|
6903
|
+
return new Rect2(this.x, this.y, this.width, this.height);
|
|
6904
|
+
}
|
|
6913
6905
|
toProjectionArray(transpose = false) {
|
|
6914
6906
|
return this._projection.toArray(transpose);
|
|
6915
6907
|
}
|
|
6916
6908
|
};
|
|
6917
|
-
__decorateClass$
|
|
6909
|
+
__decorateClass$z([
|
|
6918
6910
|
property({ default: 0 })
|
|
6919
6911
|
], Viewport.prototype, "x", 2);
|
|
6920
|
-
__decorateClass$
|
|
6912
|
+
__decorateClass$z([
|
|
6921
6913
|
property({ default: 0 })
|
|
6922
6914
|
], Viewport.prototype, "y", 2);
|
|
6923
|
-
__decorateClass$
|
|
6915
|
+
__decorateClass$z([
|
|
6924
6916
|
property({ default: 0 })
|
|
6925
6917
|
], Viewport.prototype, "width", 2);
|
|
6926
|
-
__decorateClass$
|
|
6918
|
+
__decorateClass$z([
|
|
6927
6919
|
property({ default: 0 })
|
|
6928
6920
|
], Viewport.prototype, "height", 2);
|
|
6929
|
-
Viewport = __decorateClass$
|
|
6921
|
+
Viewport = __decorateClass$z([
|
|
6930
6922
|
customNode("Viewport")
|
|
6931
6923
|
], Viewport);
|
|
6932
6924
|
|
|
6933
|
-
var __defProp$
|
|
6934
|
-
var __decorateClass$
|
|
6925
|
+
var __defProp$y = Object.defineProperty;
|
|
6926
|
+
var __decorateClass$y = (decorators, target, key, kind) => {
|
|
6935
6927
|
var result = undefined ;
|
|
6936
6928
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6937
6929
|
if (decorator = decorators[i])
|
|
6938
6930
|
result = (decorator(target, key, result) ) || result;
|
|
6939
|
-
if (result) __defProp$
|
|
6931
|
+
if (result) __defProp$y(target, key, result);
|
|
6940
6932
|
return result;
|
|
6941
6933
|
};
|
|
6942
6934
|
class SceneTree extends MainLoop {
|
|
@@ -6997,21 +6989,21 @@ class SceneTree extends MainLoop {
|
|
|
6997
6989
|
renderer.texture.unbind(texture);
|
|
6998
6990
|
}
|
|
6999
6991
|
}
|
|
7000
|
-
__decorateClass$
|
|
6992
|
+
__decorateClass$y([
|
|
7001
6993
|
property({ default: false })
|
|
7002
6994
|
], SceneTree.prototype, "paused");
|
|
7003
|
-
__decorateClass$
|
|
6995
|
+
__decorateClass$y([
|
|
7004
6996
|
property()
|
|
7005
6997
|
], SceneTree.prototype, "backgroundColor");
|
|
7006
6998
|
|
|
7007
|
-
var __defProp$
|
|
7008
|
-
var __getOwnPropDesc$
|
|
7009
|
-
var __decorateClass$
|
|
7010
|
-
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$
|
|
6999
|
+
var __defProp$x = Object.defineProperty;
|
|
7000
|
+
var __getOwnPropDesc$x = Object.getOwnPropertyDescriptor;
|
|
7001
|
+
var __decorateClass$x = (decorators, target, key, kind) => {
|
|
7002
|
+
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$x(target, key) : target;
|
|
7011
7003
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
7012
7004
|
if (decorator = decorators[i])
|
|
7013
7005
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7014
|
-
if (kind && result) __defProp$
|
|
7006
|
+
if (kind && result) __defProp$x(target, key, result);
|
|
7015
7007
|
return result;
|
|
7016
7008
|
};
|
|
7017
7009
|
let Node2D = class extends CanvasItem {
|
|
@@ -7143,18 +7135,18 @@ let Node2D = class extends CanvasItem {
|
|
|
7143
7135
|
);
|
|
7144
7136
|
}
|
|
7145
7137
|
};
|
|
7146
|
-
Node2D = __decorateClass$
|
|
7138
|
+
Node2D = __decorateClass$x([
|
|
7147
7139
|
customNode("Node2D")
|
|
7148
7140
|
], Node2D);
|
|
7149
7141
|
|
|
7150
|
-
var __defProp$
|
|
7151
|
-
var __getOwnPropDesc$
|
|
7152
|
-
var __decorateClass$
|
|
7153
|
-
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$
|
|
7142
|
+
var __defProp$w = Object.defineProperty;
|
|
7143
|
+
var __getOwnPropDesc$w = Object.getOwnPropertyDescriptor;
|
|
7144
|
+
var __decorateClass$w = (decorators, target, key, kind) => {
|
|
7145
|
+
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$w(target, key) : target;
|
|
7154
7146
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
7155
7147
|
if (decorator = decorators[i])
|
|
7156
7148
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7157
|
-
if (kind && result) __defProp$
|
|
7149
|
+
if (kind && result) __defProp$w(target, key, result);
|
|
7158
7150
|
return result;
|
|
7159
7151
|
};
|
|
7160
7152
|
function proxy(options) {
|
|
@@ -7199,61 +7191,61 @@ let Graphics2D = class extends Node2D {
|
|
|
7199
7191
|
return this;
|
|
7200
7192
|
}
|
|
7201
7193
|
};
|
|
7202
|
-
__decorateClass$
|
|
7194
|
+
__decorateClass$w([
|
|
7203
7195
|
proxy()
|
|
7204
7196
|
], Graphics2D.prototype, "lineCap", 2);
|
|
7205
|
-
__decorateClass$
|
|
7197
|
+
__decorateClass$w([
|
|
7206
7198
|
proxy()
|
|
7207
7199
|
], Graphics2D.prototype, "lineJoin", 2);
|
|
7208
|
-
__decorateClass$
|
|
7200
|
+
__decorateClass$w([
|
|
7209
7201
|
proxy()
|
|
7210
7202
|
], Graphics2D.prototype, "fillStyle", 2);
|
|
7211
|
-
__decorateClass$
|
|
7203
|
+
__decorateClass$w([
|
|
7212
7204
|
proxy()
|
|
7213
7205
|
], Graphics2D.prototype, "strokeStyle", 2);
|
|
7214
|
-
__decorateClass$
|
|
7206
|
+
__decorateClass$w([
|
|
7215
7207
|
proxy()
|
|
7216
7208
|
], Graphics2D.prototype, "lineWidth", 2);
|
|
7217
|
-
__decorateClass$
|
|
7209
|
+
__decorateClass$w([
|
|
7218
7210
|
proxy()
|
|
7219
7211
|
], Graphics2D.prototype, "miterLimit", 2);
|
|
7220
|
-
__decorateClass$
|
|
7212
|
+
__decorateClass$w([
|
|
7221
7213
|
proxy({ method: true })
|
|
7222
7214
|
], Graphics2D.prototype, "rect", 2);
|
|
7223
|
-
__decorateClass$
|
|
7215
|
+
__decorateClass$w([
|
|
7224
7216
|
proxy({ method: true, redraw: true })
|
|
7225
7217
|
], Graphics2D.prototype, "fillRect", 2);
|
|
7226
|
-
__decorateClass$
|
|
7218
|
+
__decorateClass$w([
|
|
7227
7219
|
proxy({ method: true, redraw: true })
|
|
7228
7220
|
], Graphics2D.prototype, "strokeRect", 2);
|
|
7229
|
-
__decorateClass$
|
|
7221
|
+
__decorateClass$w([
|
|
7230
7222
|
proxy({ method: true })
|
|
7231
7223
|
], Graphics2D.prototype, "roundRect", 2);
|
|
7232
|
-
__decorateClass$
|
|
7224
|
+
__decorateClass$w([
|
|
7233
7225
|
proxy({ method: true })
|
|
7234
7226
|
], Graphics2D.prototype, "ellipse", 2);
|
|
7235
|
-
__decorateClass$
|
|
7227
|
+
__decorateClass$w([
|
|
7236
7228
|
proxy({ method: true })
|
|
7237
7229
|
], Graphics2D.prototype, "arc", 2);
|
|
7238
|
-
__decorateClass$
|
|
7230
|
+
__decorateClass$w([
|
|
7239
7231
|
proxy({ method: true })
|
|
7240
7232
|
], Graphics2D.prototype, "beginPath", 2);
|
|
7241
|
-
__decorateClass$
|
|
7233
|
+
__decorateClass$w([
|
|
7242
7234
|
proxy({ method: true })
|
|
7243
7235
|
], Graphics2D.prototype, "moveTo", 2);
|
|
7244
|
-
__decorateClass$
|
|
7236
|
+
__decorateClass$w([
|
|
7245
7237
|
proxy({ method: true })
|
|
7246
7238
|
], Graphics2D.prototype, "lineTo", 2);
|
|
7247
|
-
__decorateClass$
|
|
7239
|
+
__decorateClass$w([
|
|
7248
7240
|
proxy({ method: true })
|
|
7249
7241
|
], Graphics2D.prototype, "closePath", 2);
|
|
7250
|
-
__decorateClass$
|
|
7242
|
+
__decorateClass$w([
|
|
7251
7243
|
proxy({ method: true, redraw: true })
|
|
7252
7244
|
], Graphics2D.prototype, "fill", 2);
|
|
7253
|
-
__decorateClass$
|
|
7245
|
+
__decorateClass$w([
|
|
7254
7246
|
proxy({ method: true, redraw: true })
|
|
7255
7247
|
], Graphics2D.prototype, "stroke", 2);
|
|
7256
|
-
Graphics2D = __decorateClass$
|
|
7248
|
+
Graphics2D = __decorateClass$w([
|
|
7257
7249
|
customNode("Graphics2D")
|
|
7258
7250
|
], Graphics2D);
|
|
7259
7251
|
|
|
@@ -7283,14 +7275,14 @@ class Image2DResource extends Resource {
|
|
|
7283
7275
|
}
|
|
7284
7276
|
}
|
|
7285
7277
|
|
|
7286
|
-
var __defProp$
|
|
7287
|
-
var __getOwnPropDesc$
|
|
7288
|
-
var __decorateClass$
|
|
7289
|
-
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$
|
|
7278
|
+
var __defProp$v = Object.defineProperty;
|
|
7279
|
+
var __getOwnPropDesc$v = Object.getOwnPropertyDescriptor;
|
|
7280
|
+
var __decorateClass$v = (decorators, target, key, kind) => {
|
|
7281
|
+
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$v(target, key) : target;
|
|
7290
7282
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
7291
7283
|
if (decorator = decorators[i])
|
|
7292
7284
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7293
|
-
if (kind && result) __defProp$
|
|
7285
|
+
if (kind && result) __defProp$v(target, key, result);
|
|
7294
7286
|
return result;
|
|
7295
7287
|
};
|
|
7296
7288
|
let Image2D = class extends Node2D {
|
|
@@ -7424,16 +7416,16 @@ let Image2D = class extends Node2D {
|
|
|
7424
7416
|
);
|
|
7425
7417
|
}
|
|
7426
7418
|
};
|
|
7427
|
-
__decorateClass$
|
|
7419
|
+
__decorateClass$v([
|
|
7428
7420
|
protectedProperty()
|
|
7429
7421
|
], Image2D.prototype, "resource", 2);
|
|
7430
|
-
__decorateClass$
|
|
7422
|
+
__decorateClass$v([
|
|
7431
7423
|
property({ default: false })
|
|
7432
7424
|
], Image2D.prototype, "gif", 2);
|
|
7433
|
-
__decorateClass$
|
|
7425
|
+
__decorateClass$v([
|
|
7434
7426
|
property({ default: "" })
|
|
7435
7427
|
], Image2D.prototype, "src", 2);
|
|
7436
|
-
Image2D = __decorateClass$
|
|
7428
|
+
Image2D = __decorateClass$v([
|
|
7437
7429
|
customNode("Image2D")
|
|
7438
7430
|
], Image2D);
|
|
7439
7431
|
|
|
@@ -7467,14 +7459,14 @@ class TextureRect2D extends Node2D {
|
|
|
7467
7459
|
}
|
|
7468
7460
|
}
|
|
7469
7461
|
|
|
7470
|
-
var __defProp$
|
|
7471
|
-
var __getOwnPropDesc$
|
|
7472
|
-
var __decorateClass$
|
|
7473
|
-
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$
|
|
7462
|
+
var __defProp$u = Object.defineProperty;
|
|
7463
|
+
var __getOwnPropDesc$u = Object.getOwnPropertyDescriptor;
|
|
7464
|
+
var __decorateClass$u = (decorators, target, key, kind) => {
|
|
7465
|
+
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$u(target, key) : target;
|
|
7474
7466
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
7475
7467
|
if (decorator = decorators[i])
|
|
7476
7468
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7477
|
-
if (kind && result) __defProp$
|
|
7469
|
+
if (kind && result) __defProp$u(target, key, result);
|
|
7478
7470
|
return result;
|
|
7479
7471
|
};
|
|
7480
7472
|
let Lottie2D = class extends TextureRect2D {
|
|
@@ -7517,21 +7509,21 @@ let Lottie2D = class extends TextureRect2D {
|
|
|
7517
7509
|
super._process(delta);
|
|
7518
7510
|
}
|
|
7519
7511
|
};
|
|
7520
|
-
__decorateClass$
|
|
7512
|
+
__decorateClass$u([
|
|
7521
7513
|
property({ default: "" })
|
|
7522
7514
|
], Lottie2D.prototype, "src", 2);
|
|
7523
|
-
Lottie2D = __decorateClass$
|
|
7515
|
+
Lottie2D = __decorateClass$u([
|
|
7524
7516
|
customNode("Lottie2D")
|
|
7525
7517
|
], Lottie2D);
|
|
7526
7518
|
|
|
7527
|
-
var __defProp$
|
|
7528
|
-
var __getOwnPropDesc$
|
|
7529
|
-
var __decorateClass$
|
|
7530
|
-
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$
|
|
7519
|
+
var __defProp$t = Object.defineProperty;
|
|
7520
|
+
var __getOwnPropDesc$t = Object.getOwnPropertyDescriptor;
|
|
7521
|
+
var __decorateClass$t = (decorators, target, key, kind) => {
|
|
7522
|
+
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$t(target, key) : target;
|
|
7531
7523
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
7532
7524
|
if (decorator = decorators[i])
|
|
7533
7525
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7534
|
-
if (kind && result) __defProp$
|
|
7526
|
+
if (kind && result) __defProp$t(target, key, result);
|
|
7535
7527
|
return result;
|
|
7536
7528
|
};
|
|
7537
7529
|
const textStyles = new Set(Object.keys(textDefaultStyle));
|
|
@@ -7654,7 +7646,7 @@ let Text2D = class extends TextureRect2D {
|
|
|
7654
7646
|
}
|
|
7655
7647
|
_drawContent() {
|
|
7656
7648
|
if (!this.split) {
|
|
7657
|
-
const onText2DRender = this.
|
|
7649
|
+
const onText2DRender = this.getChildren()?.find((child) => "onText2DRender" in child)?.onText2DRender;
|
|
7658
7650
|
if (onText2DRender) {
|
|
7659
7651
|
onText2DRender();
|
|
7660
7652
|
} else {
|
|
@@ -7669,33 +7661,33 @@ let Text2D = class extends TextureRect2D {
|
|
|
7669
7661
|
}
|
|
7670
7662
|
}
|
|
7671
7663
|
};
|
|
7672
|
-
__decorateClass$
|
|
7664
|
+
__decorateClass$t([
|
|
7673
7665
|
property({ default: false })
|
|
7674
7666
|
], Text2D.prototype, "split", 2);
|
|
7675
|
-
__decorateClass$
|
|
7667
|
+
__decorateClass$t([
|
|
7676
7668
|
property({ default: "" })
|
|
7677
7669
|
], Text2D.prototype, "content", 2);
|
|
7678
|
-
__decorateClass$
|
|
7670
|
+
__decorateClass$t([
|
|
7679
7671
|
property()
|
|
7680
7672
|
], Text2D.prototype, "effects", 2);
|
|
7681
|
-
__decorateClass$
|
|
7673
|
+
__decorateClass$t([
|
|
7682
7674
|
protectedProperty()
|
|
7683
7675
|
], Text2D.prototype, "measureDom", 2);
|
|
7684
|
-
__decorateClass$
|
|
7676
|
+
__decorateClass$t([
|
|
7685
7677
|
protectedProperty()
|
|
7686
7678
|
], Text2D.prototype, "fonts", 2);
|
|
7687
|
-
Text2D = __decorateClass$
|
|
7679
|
+
Text2D = __decorateClass$t([
|
|
7688
7680
|
customNode("Text2D")
|
|
7689
7681
|
], Text2D);
|
|
7690
7682
|
|
|
7691
|
-
var __defProp$
|
|
7692
|
-
var __getOwnPropDesc$
|
|
7693
|
-
var __decorateClass$
|
|
7694
|
-
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$
|
|
7683
|
+
var __defProp$s = Object.defineProperty;
|
|
7684
|
+
var __getOwnPropDesc$s = Object.getOwnPropertyDescriptor;
|
|
7685
|
+
var __decorateClass$s = (decorators, target, key, kind) => {
|
|
7686
|
+
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$s(target, key) : target;
|
|
7695
7687
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
7696
7688
|
if (decorator = decorators[i])
|
|
7697
7689
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7698
|
-
if (kind && result) __defProp$
|
|
7690
|
+
if (kind && result) __defProp$s(target, key, result);
|
|
7699
7691
|
return result;
|
|
7700
7692
|
};
|
|
7701
7693
|
let Video2D = class extends TextureRect2D {
|
|
@@ -7748,21 +7740,21 @@ let Video2D = class extends TextureRect2D {
|
|
|
7748
7740
|
super._process(delta);
|
|
7749
7741
|
}
|
|
7750
7742
|
};
|
|
7751
|
-
__decorateClass$
|
|
7743
|
+
__decorateClass$s([
|
|
7752
7744
|
property({ default: "" })
|
|
7753
7745
|
], Video2D.prototype, "src", 2);
|
|
7754
|
-
Video2D = __decorateClass$
|
|
7746
|
+
Video2D = __decorateClass$s([
|
|
7755
7747
|
customNode("Video2D")
|
|
7756
7748
|
], Video2D);
|
|
7757
7749
|
|
|
7758
|
-
var __defProp$
|
|
7759
|
-
var __getOwnPropDesc$
|
|
7760
|
-
var __decorateClass$
|
|
7761
|
-
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$
|
|
7750
|
+
var __defProp$r = Object.defineProperty;
|
|
7751
|
+
var __getOwnPropDesc$r = Object.getOwnPropertyDescriptor;
|
|
7752
|
+
var __decorateClass$r = (decorators, target, key, kind) => {
|
|
7753
|
+
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$r(target, key) : target;
|
|
7762
7754
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
7763
7755
|
if (decorator = decorators[i])
|
|
7764
7756
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7765
|
-
if (kind && result) __defProp$
|
|
7757
|
+
if (kind && result) __defProp$r(target, key, result);
|
|
7766
7758
|
return result;
|
|
7767
7759
|
};
|
|
7768
7760
|
const linear = (amount) => amount;
|
|
@@ -7844,7 +7836,7 @@ let Animation = class extends TimelineNode {
|
|
|
7844
7836
|
_updateProperty(key, value, oldValue, declaration) {
|
|
7845
7837
|
super._updateProperty(key, value, oldValue, declaration);
|
|
7846
7838
|
switch (key) {
|
|
7847
|
-
case "
|
|
7839
|
+
case "animationMode":
|
|
7848
7840
|
case "keyframes":
|
|
7849
7841
|
this._updateKeyframes();
|
|
7850
7842
|
break;
|
|
@@ -8074,19 +8066,19 @@ let Animation = class extends TimelineNode {
|
|
|
8074
8066
|
});
|
|
8075
8067
|
}
|
|
8076
8068
|
};
|
|
8077
|
-
__decorateClass$
|
|
8069
|
+
__decorateClass$r([
|
|
8078
8070
|
property({ default: "parent" })
|
|
8079
8071
|
], Animation.prototype, "animationMode", 2);
|
|
8080
|
-
__decorateClass$
|
|
8072
|
+
__decorateClass$r([
|
|
8081
8073
|
property({ default: false })
|
|
8082
8074
|
], Animation.prototype, "loop", 2);
|
|
8083
|
-
__decorateClass$
|
|
8075
|
+
__decorateClass$r([
|
|
8084
8076
|
property({ default: [] })
|
|
8085
8077
|
], Animation.prototype, "keyframes", 2);
|
|
8086
|
-
__decorateClass$
|
|
8078
|
+
__decorateClass$r([
|
|
8087
8079
|
property()
|
|
8088
8080
|
], Animation.prototype, "easing", 2);
|
|
8089
|
-
Animation = __decorateClass$
|
|
8081
|
+
Animation = __decorateClass$r([
|
|
8090
8082
|
customNode("Animation", {
|
|
8091
8083
|
renderMode: "disabled",
|
|
8092
8084
|
processMode: "disabled",
|
|
@@ -8969,15 +8961,15 @@ class WebAudio extends AudioPipeline {
|
|
|
8969
8961
|
}
|
|
8970
8962
|
}
|
|
8971
8963
|
|
|
8972
|
-
var __defProp$
|
|
8973
|
-
var __getOwnPropDesc$
|
|
8974
|
-
var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$
|
|
8975
|
-
var __decorateClass$
|
|
8976
|
-
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$
|
|
8964
|
+
var __defProp$q = Object.defineProperty;
|
|
8965
|
+
var __getOwnPropDesc$q = Object.getOwnPropertyDescriptor;
|
|
8966
|
+
var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8967
|
+
var __decorateClass$q = (decorators, target, key, kind) => {
|
|
8968
|
+
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$q(target, key) : target;
|
|
8977
8969
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
8978
8970
|
if (decorator = decorators[i])
|
|
8979
8971
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8980
|
-
if (kind && result) __defProp$
|
|
8972
|
+
if (kind && result) __defProp$q(target, key, result);
|
|
8981
8973
|
return result;
|
|
8982
8974
|
};
|
|
8983
8975
|
var __publicField$h = (obj, key, value) => __defNormalProp$h(obj, key + "" , value);
|
|
@@ -9185,7 +9177,7 @@ let Audio = class extends TimelineNode {
|
|
|
9185
9177
|
}
|
|
9186
9178
|
};
|
|
9187
9179
|
__publicField$h(Audio, "_soundPool", []);
|
|
9188
|
-
Audio = __decorateClass$
|
|
9180
|
+
Audio = __decorateClass$q([
|
|
9189
9181
|
customNode("Audio")
|
|
9190
9182
|
], Audio);
|
|
9191
9183
|
|
|
@@ -9193,14 +9185,14 @@ class AudioSpectrum extends Node2D {
|
|
|
9193
9185
|
//
|
|
9194
9186
|
}
|
|
9195
9187
|
|
|
9196
|
-
var __defProp$
|
|
9197
|
-
var __getOwnPropDesc$
|
|
9198
|
-
var __decorateClass$
|
|
9199
|
-
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$
|
|
9188
|
+
var __defProp$p = Object.defineProperty;
|
|
9189
|
+
var __getOwnPropDesc$p = Object.getOwnPropertyDescriptor;
|
|
9190
|
+
var __decorateClass$p = (decorators, target, key, kind) => {
|
|
9191
|
+
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$p(target, key) : target;
|
|
9200
9192
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
9201
9193
|
if (decorator = decorators[i])
|
|
9202
9194
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
9203
|
-
if (kind && result) __defProp$
|
|
9195
|
+
if (kind && result) __defProp$p(target, key, result);
|
|
9204
9196
|
return result;
|
|
9205
9197
|
};
|
|
9206
9198
|
let AudioWaveform = class extends Node2D {
|
|
@@ -9294,27 +9286,27 @@ let AudioWaveform = class extends Node2D {
|
|
|
9294
9286
|
}
|
|
9295
9287
|
}
|
|
9296
9288
|
};
|
|
9297
|
-
__decorateClass$
|
|
9289
|
+
__decorateClass$p([
|
|
9298
9290
|
property()
|
|
9299
9291
|
], AudioWaveform.prototype, "src", 2);
|
|
9300
|
-
__decorateClass$
|
|
9292
|
+
__decorateClass$p([
|
|
9301
9293
|
property()
|
|
9302
9294
|
], AudioWaveform.prototype, "gap", 2);
|
|
9303
|
-
__decorateClass$
|
|
9295
|
+
__decorateClass$p([
|
|
9304
9296
|
property()
|
|
9305
9297
|
], AudioWaveform.prototype, "color", 2);
|
|
9306
|
-
AudioWaveform = __decorateClass$
|
|
9298
|
+
AudioWaveform = __decorateClass$p([
|
|
9307
9299
|
customNode("AudioWaveform")
|
|
9308
9300
|
], AudioWaveform);
|
|
9309
9301
|
|
|
9310
|
-
var __defProp$
|
|
9311
|
-
var __getOwnPropDesc$
|
|
9312
|
-
var __decorateClass$
|
|
9313
|
-
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$
|
|
9302
|
+
var __defProp$o = Object.defineProperty;
|
|
9303
|
+
var __getOwnPropDesc$o = Object.getOwnPropertyDescriptor;
|
|
9304
|
+
var __decorateClass$o = (decorators, target, key, kind) => {
|
|
9305
|
+
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$o(target, key) : target;
|
|
9314
9306
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
9315
9307
|
if (decorator = decorators[i])
|
|
9316
9308
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
9317
|
-
if (kind && result) __defProp$
|
|
9309
|
+
if (kind && result) __defProp$o(target, key, result);
|
|
9318
9310
|
return result;
|
|
9319
9311
|
};
|
|
9320
9312
|
let Effect = class extends TimelineNode {
|
|
@@ -9332,11 +9324,11 @@ let Effect = class extends TimelineNode {
|
|
|
9332
9324
|
/** Temporary nodes for transition */
|
|
9333
9325
|
_previousSibling;
|
|
9334
9326
|
_nextSibling;
|
|
9335
|
-
constructor(
|
|
9327
|
+
constructor(properties, children = []) {
|
|
9336
9328
|
super();
|
|
9337
9329
|
this._onProcessing = this._onProcessing.bind(this);
|
|
9338
9330
|
this._onNodeProcessed = this._onNodeProcessed.bind(this);
|
|
9339
|
-
this.setProperties(
|
|
9331
|
+
this.setProperties(properties).append(children);
|
|
9340
9332
|
}
|
|
9341
9333
|
_updateProperty(key, value, oldValue, declaration) {
|
|
9342
9334
|
super._updateProperty(key, value, oldValue, declaration);
|
|
@@ -9502,7 +9494,7 @@ let Effect = class extends TimelineNode {
|
|
|
9502
9494
|
_parseTargetArea() {
|
|
9503
9495
|
if (this._mode === "parent" && this._parent && "getRect" in this._parent) {
|
|
9504
9496
|
const rect = this._parent.getRect();
|
|
9505
|
-
if (rect
|
|
9497
|
+
if (rect) {
|
|
9506
9498
|
return [
|
|
9507
9499
|
rect.left / this.viewport1.width,
|
|
9508
9500
|
rect.top / this.viewport1.height,
|
|
@@ -9551,31 +9543,31 @@ let Effect = class extends TimelineNode {
|
|
|
9551
9543
|
}
|
|
9552
9544
|
}
|
|
9553
9545
|
};
|
|
9554
|
-
__decorateClass$
|
|
9546
|
+
__decorateClass$o([
|
|
9555
9547
|
protectedProperty()
|
|
9556
9548
|
], Effect.prototype, "material", 2);
|
|
9557
|
-
__decorateClass$
|
|
9549
|
+
__decorateClass$o([
|
|
9558
9550
|
property()
|
|
9559
9551
|
], Effect.prototype, "mode", 2);
|
|
9560
|
-
__decorateClass$
|
|
9552
|
+
__decorateClass$o([
|
|
9561
9553
|
property({ default: "" })
|
|
9562
9554
|
], Effect.prototype, "glsl", 2);
|
|
9563
|
-
__decorateClass$
|
|
9555
|
+
__decorateClass$o([
|
|
9564
9556
|
property({ default: "" })
|
|
9565
9557
|
], Effect.prototype, "glslSrc", 2);
|
|
9566
|
-
Effect = __decorateClass$
|
|
9558
|
+
Effect = __decorateClass$o([
|
|
9567
9559
|
customNode("Effect")
|
|
9568
9560
|
], Effect);
|
|
9569
9561
|
|
|
9570
|
-
var __defProp$
|
|
9571
|
-
var __getOwnPropDesc$
|
|
9572
|
-
var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$
|
|
9573
|
-
var __decorateClass$
|
|
9574
|
-
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$
|
|
9562
|
+
var __defProp$n = Object.defineProperty;
|
|
9563
|
+
var __getOwnPropDesc$n = Object.getOwnPropertyDescriptor;
|
|
9564
|
+
var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9565
|
+
var __decorateClass$n = (decorators, target, key, kind) => {
|
|
9566
|
+
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$n(target, key) : target;
|
|
9575
9567
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
9576
9568
|
if (decorator = decorators[i])
|
|
9577
9569
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
9578
|
-
if (kind && result) __defProp$
|
|
9570
|
+
if (kind && result) __defProp$n(target, key, result);
|
|
9579
9571
|
return result;
|
|
9580
9572
|
};
|
|
9581
9573
|
var __publicField$g = (obj, key, value) => __defNormalProp$g(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
@@ -9672,25 +9664,25 @@ __publicField$g(BlurEffect, "materialY", new Material({
|
|
|
9672
9664
|
vert: vertY,
|
|
9673
9665
|
frag
|
|
9674
9666
|
}));
|
|
9675
|
-
__decorateClass$
|
|
9667
|
+
__decorateClass$n([
|
|
9676
9668
|
property({ default: 8 })
|
|
9677
9669
|
], BlurEffect.prototype, "strength", 2);
|
|
9678
|
-
__decorateClass$
|
|
9670
|
+
__decorateClass$n([
|
|
9679
9671
|
property({ default: 4 })
|
|
9680
9672
|
], BlurEffect.prototype, "quality", 2);
|
|
9681
|
-
BlurEffect = __decorateClass$
|
|
9673
|
+
BlurEffect = __decorateClass$n([
|
|
9682
9674
|
customNode("BlurEffect")
|
|
9683
9675
|
], BlurEffect);
|
|
9684
9676
|
|
|
9685
|
-
var __defProp$
|
|
9686
|
-
var __getOwnPropDesc$
|
|
9687
|
-
var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$
|
|
9688
|
-
var __decorateClass$
|
|
9689
|
-
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$
|
|
9677
|
+
var __defProp$m = Object.defineProperty;
|
|
9678
|
+
var __getOwnPropDesc$m = Object.getOwnPropertyDescriptor;
|
|
9679
|
+
var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9680
|
+
var __decorateClass$m = (decorators, target, key, kind) => {
|
|
9681
|
+
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$m(target, key) : target;
|
|
9690
9682
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
9691
9683
|
if (decorator = decorators[i])
|
|
9692
9684
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
9693
|
-
if (kind && result) __defProp$
|
|
9685
|
+
if (kind && result) __defProp$m(target, key, result);
|
|
9694
9686
|
return result;
|
|
9695
9687
|
};
|
|
9696
9688
|
var __publicField$f = (obj, key, value) => __defNormalProp$f(obj, key + "" , value);
|
|
@@ -9754,43 +9746,43 @@ void main(void) {
|
|
|
9754
9746
|
gl_FragColor = c * alpha;
|
|
9755
9747
|
}`
|
|
9756
9748
|
}));
|
|
9757
|
-
__decorateClass$
|
|
9749
|
+
__decorateClass$m([
|
|
9758
9750
|
property()
|
|
9759
9751
|
], ColorAdjustEffect.prototype, "saturation", 2);
|
|
9760
|
-
__decorateClass$
|
|
9752
|
+
__decorateClass$m([
|
|
9761
9753
|
property()
|
|
9762
9754
|
], ColorAdjustEffect.prototype, "contrast", 2);
|
|
9763
|
-
__decorateClass$
|
|
9755
|
+
__decorateClass$m([
|
|
9764
9756
|
property()
|
|
9765
9757
|
], ColorAdjustEffect.prototype, "brightness", 2);
|
|
9766
|
-
__decorateClass$
|
|
9758
|
+
__decorateClass$m([
|
|
9767
9759
|
property()
|
|
9768
9760
|
], ColorAdjustEffect.prototype, "red", 2);
|
|
9769
|
-
__decorateClass$
|
|
9761
|
+
__decorateClass$m([
|
|
9770
9762
|
property()
|
|
9771
9763
|
], ColorAdjustEffect.prototype, "green", 2);
|
|
9772
|
-
__decorateClass$
|
|
9764
|
+
__decorateClass$m([
|
|
9773
9765
|
property()
|
|
9774
9766
|
], ColorAdjustEffect.prototype, "blue", 2);
|
|
9775
|
-
__decorateClass$
|
|
9767
|
+
__decorateClass$m([
|
|
9776
9768
|
property()
|
|
9777
9769
|
], ColorAdjustEffect.prototype, "alpha", 2);
|
|
9778
|
-
__decorateClass$
|
|
9770
|
+
__decorateClass$m([
|
|
9779
9771
|
property()
|
|
9780
9772
|
], ColorAdjustEffect.prototype, "gamma", 2);
|
|
9781
|
-
ColorAdjustEffect = __decorateClass$
|
|
9773
|
+
ColorAdjustEffect = __decorateClass$m([
|
|
9782
9774
|
customNode("ColorAdjustEffect")
|
|
9783
9775
|
], ColorAdjustEffect);
|
|
9784
9776
|
|
|
9785
|
-
var __defProp$
|
|
9786
|
-
var __getOwnPropDesc$
|
|
9787
|
-
var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$
|
|
9788
|
-
var __decorateClass$
|
|
9789
|
-
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$
|
|
9777
|
+
var __defProp$l = Object.defineProperty;
|
|
9778
|
+
var __getOwnPropDesc$l = Object.getOwnPropertyDescriptor;
|
|
9779
|
+
var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9780
|
+
var __decorateClass$l = (decorators, target, key, kind) => {
|
|
9781
|
+
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$l(target, key) : target;
|
|
9790
9782
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
9791
9783
|
if (decorator = decorators[i])
|
|
9792
9784
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
9793
|
-
if (kind && result) __defProp$
|
|
9785
|
+
if (kind && result) __defProp$l(target, key, result);
|
|
9794
9786
|
return result;
|
|
9795
9787
|
};
|
|
9796
9788
|
var __publicField$e = (obj, key, value) => __defNormalProp$e(obj, key + "" , value);
|
|
@@ -9870,22 +9862,22 @@ void main(void) {
|
|
|
9870
9862
|
);
|
|
9871
9863
|
}`
|
|
9872
9864
|
}));
|
|
9873
|
-
__decorateClass$
|
|
9865
|
+
__decorateClass$l([
|
|
9874
9866
|
property({ default: "" })
|
|
9875
9867
|
], ColorFilterEffect.prototype, "filter", 2);
|
|
9876
|
-
ColorFilterEffect = __decorateClass$
|
|
9868
|
+
ColorFilterEffect = __decorateClass$l([
|
|
9877
9869
|
customNode("ColorFilterEffect")
|
|
9878
9870
|
], ColorFilterEffect);
|
|
9879
9871
|
|
|
9880
|
-
var __defProp$
|
|
9881
|
-
var __getOwnPropDesc$
|
|
9882
|
-
var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$
|
|
9883
|
-
var __decorateClass$
|
|
9884
|
-
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$
|
|
9872
|
+
var __defProp$k = Object.defineProperty;
|
|
9873
|
+
var __getOwnPropDesc$k = Object.getOwnPropertyDescriptor;
|
|
9874
|
+
var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9875
|
+
var __decorateClass$k = (decorators, target, key, kind) => {
|
|
9876
|
+
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$k(target, key) : target;
|
|
9885
9877
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
9886
9878
|
if (decorator = decorators[i])
|
|
9887
9879
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
9888
|
-
if (kind && result) __defProp$
|
|
9880
|
+
if (kind && result) __defProp$k(target, key, result);
|
|
9889
9881
|
return result;
|
|
9890
9882
|
};
|
|
9891
9883
|
var __publicField$d = (obj, key, value) => __defNormalProp$d(obj, key + "" , value);
|
|
@@ -9959,25 +9951,25 @@ void main(void) {
|
|
|
9959
9951
|
gl_FragColor = vec4(mix(color.rgb, mask.rgb, color.a * mask.a), color.a);
|
|
9960
9952
|
}`
|
|
9961
9953
|
}));
|
|
9962
|
-
__decorateClass$
|
|
9954
|
+
__decorateClass$k([
|
|
9963
9955
|
property()
|
|
9964
9956
|
], ColorOverlayEffect.prototype, "colors", 2);
|
|
9965
|
-
__decorateClass$
|
|
9957
|
+
__decorateClass$k([
|
|
9966
9958
|
property()
|
|
9967
9959
|
], ColorOverlayEffect.prototype, "alpha", 2);
|
|
9968
|
-
ColorOverlayEffect = __decorateClass$
|
|
9960
|
+
ColorOverlayEffect = __decorateClass$k([
|
|
9969
9961
|
customNode("ColorOverlayEffect")
|
|
9970
9962
|
], ColorOverlayEffect);
|
|
9971
9963
|
|
|
9972
|
-
var __defProp$
|
|
9973
|
-
var __getOwnPropDesc$
|
|
9974
|
-
var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$
|
|
9975
|
-
var __decorateClass$
|
|
9976
|
-
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$
|
|
9964
|
+
var __defProp$j = Object.defineProperty;
|
|
9965
|
+
var __getOwnPropDesc$j = Object.getOwnPropertyDescriptor;
|
|
9966
|
+
var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9967
|
+
var __decorateClass$j = (decorators, target, key, kind) => {
|
|
9968
|
+
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$j(target, key) : target;
|
|
9977
9969
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
9978
9970
|
if (decorator = decorators[i])
|
|
9979
9971
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
9980
|
-
if (kind && result) __defProp$
|
|
9972
|
+
if (kind && result) __defProp$j(target, key, result);
|
|
9981
9973
|
return result;
|
|
9982
9974
|
};
|
|
9983
9975
|
var __publicField$c = (obj, key, value) => __defNormalProp$c(obj, key + "" , value);
|
|
@@ -10042,25 +10034,25 @@ void main(void) {
|
|
|
10042
10034
|
gl_FragColor = color;
|
|
10043
10035
|
}`
|
|
10044
10036
|
}));
|
|
10045
|
-
__decorateClass$
|
|
10037
|
+
__decorateClass$j([
|
|
10046
10038
|
property()
|
|
10047
10039
|
], ColorRemoveEffect.prototype, "colors", 2);
|
|
10048
|
-
__decorateClass$
|
|
10040
|
+
__decorateClass$j([
|
|
10049
10041
|
property()
|
|
10050
10042
|
], ColorRemoveEffect.prototype, "epsilon", 2);
|
|
10051
|
-
ColorRemoveEffect = __decorateClass$
|
|
10043
|
+
ColorRemoveEffect = __decorateClass$j([
|
|
10052
10044
|
customNode("ColorRemoveEffect")
|
|
10053
10045
|
], ColorRemoveEffect);
|
|
10054
10046
|
|
|
10055
|
-
var __defProp$
|
|
10056
|
-
var __getOwnPropDesc$
|
|
10057
|
-
var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$
|
|
10058
|
-
var __decorateClass$
|
|
10059
|
-
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$
|
|
10047
|
+
var __defProp$i = Object.defineProperty;
|
|
10048
|
+
var __getOwnPropDesc$i = Object.getOwnPropertyDescriptor;
|
|
10049
|
+
var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
10050
|
+
var __decorateClass$i = (decorators, target, key, kind) => {
|
|
10051
|
+
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$i(target, key) : target;
|
|
10060
10052
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
10061
10053
|
if (decorator = decorators[i])
|
|
10062
10054
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
10063
|
-
if (kind && result) __defProp$
|
|
10055
|
+
if (kind && result) __defProp$i(target, key, result);
|
|
10064
10056
|
return result;
|
|
10065
10057
|
};
|
|
10066
10058
|
var __publicField$b = (obj, key, value) => __defNormalProp$b(obj, key + "" , value);
|
|
@@ -10147,25 +10139,25 @@ void main(void) {
|
|
|
10147
10139
|
}
|
|
10148
10140
|
}`
|
|
10149
10141
|
}));
|
|
10150
|
-
__decorateClass$
|
|
10142
|
+
__decorateClass$i([
|
|
10151
10143
|
property()
|
|
10152
10144
|
], ColorReplaceEffect.prototype, "colors", 2);
|
|
10153
|
-
__decorateClass$
|
|
10145
|
+
__decorateClass$i([
|
|
10154
10146
|
property()
|
|
10155
10147
|
], ColorReplaceEffect.prototype, "epsilon", 2);
|
|
10156
|
-
ColorReplaceEffect = __decorateClass$
|
|
10148
|
+
ColorReplaceEffect = __decorateClass$i([
|
|
10157
10149
|
customNode("ColorReplaceEffect")
|
|
10158
10150
|
], ColorReplaceEffect);
|
|
10159
10151
|
|
|
10160
|
-
var __defProp$
|
|
10161
|
-
var __getOwnPropDesc$
|
|
10162
|
-
var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$
|
|
10163
|
-
var __decorateClass$
|
|
10164
|
-
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$
|
|
10152
|
+
var __defProp$h = Object.defineProperty;
|
|
10153
|
+
var __getOwnPropDesc$h = Object.getOwnPropertyDescriptor;
|
|
10154
|
+
var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
10155
|
+
var __decorateClass$h = (decorators, target, key, kind) => {
|
|
10156
|
+
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$h(target, key) : target;
|
|
10165
10157
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
10166
10158
|
if (decorator = decorators[i])
|
|
10167
10159
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
10168
|
-
if (kind && result) __defProp$
|
|
10160
|
+
if (kind && result) __defProp$h(target, key, result);
|
|
10169
10161
|
return result;
|
|
10170
10162
|
};
|
|
10171
10163
|
var __publicField$a = (obj, key, value) => __defNormalProp$a(obj, key + "" , value);
|
|
@@ -10211,22 +10203,22 @@ void main(void) {
|
|
|
10211
10203
|
gl_FragColor = vec4(color.rgb * alpha, alpha);
|
|
10212
10204
|
}`
|
|
10213
10205
|
}));
|
|
10214
|
-
__decorateClass$
|
|
10206
|
+
__decorateClass$h([
|
|
10215
10207
|
property()
|
|
10216
10208
|
], EmbossEffect.prototype, "strength", 2);
|
|
10217
|
-
EmbossEffect = __decorateClass$
|
|
10209
|
+
EmbossEffect = __decorateClass$h([
|
|
10218
10210
|
customNode("EmbossEffect")
|
|
10219
10211
|
], EmbossEffect);
|
|
10220
10212
|
|
|
10221
|
-
var __defProp$
|
|
10222
|
-
var __getOwnPropDesc$
|
|
10223
|
-
var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$
|
|
10224
|
-
var __decorateClass$
|
|
10225
|
-
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$
|
|
10213
|
+
var __defProp$g = Object.defineProperty;
|
|
10214
|
+
var __getOwnPropDesc$g = Object.getOwnPropertyDescriptor;
|
|
10215
|
+
var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
10216
|
+
var __decorateClass$g = (decorators, target, key, kind) => {
|
|
10217
|
+
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$g(target, key) : target;
|
|
10226
10218
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
10227
10219
|
if (decorator = decorators[i])
|
|
10228
10220
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
10229
|
-
if (kind && result) __defProp$
|
|
10221
|
+
if (kind && result) __defProp$g(target, key, result);
|
|
10230
10222
|
return result;
|
|
10231
10223
|
};
|
|
10232
10224
|
var __publicField$9 = (obj, key, value) => __defNormalProp$9(obj, key + "" , value);
|
|
@@ -10408,46 +10400,46 @@ void main(void) {
|
|
|
10408
10400
|
gl_FragColor.a = texture2D(sampler, coord).a;
|
|
10409
10401
|
}`
|
|
10410
10402
|
}));
|
|
10411
|
-
__decorateClass$
|
|
10403
|
+
__decorateClass$g([
|
|
10412
10404
|
property()
|
|
10413
10405
|
], GlitchEffect.prototype, "slices", 2);
|
|
10414
|
-
__decorateClass$
|
|
10406
|
+
__decorateClass$g([
|
|
10415
10407
|
property()
|
|
10416
10408
|
], GlitchEffect.prototype, "sampleSize", 2);
|
|
10417
|
-
__decorateClass$
|
|
10409
|
+
__decorateClass$g([
|
|
10418
10410
|
property()
|
|
10419
10411
|
], GlitchEffect.prototype, "offset", 2);
|
|
10420
|
-
__decorateClass$
|
|
10412
|
+
__decorateClass$g([
|
|
10421
10413
|
property()
|
|
10422
10414
|
], GlitchEffect.prototype, "direction", 2);
|
|
10423
|
-
__decorateClass$
|
|
10415
|
+
__decorateClass$g([
|
|
10424
10416
|
property()
|
|
10425
10417
|
], GlitchEffect.prototype, "fillMode", 2);
|
|
10426
|
-
__decorateClass$
|
|
10418
|
+
__decorateClass$g([
|
|
10427
10419
|
property()
|
|
10428
10420
|
], GlitchEffect.prototype, "seed", 2);
|
|
10429
|
-
__decorateClass$
|
|
10421
|
+
__decorateClass$g([
|
|
10430
10422
|
property()
|
|
10431
10423
|
], GlitchEffect.prototype, "red", 2);
|
|
10432
|
-
__decorateClass$
|
|
10424
|
+
__decorateClass$g([
|
|
10433
10425
|
property()
|
|
10434
10426
|
], GlitchEffect.prototype, "green", 2);
|
|
10435
|
-
__decorateClass$
|
|
10427
|
+
__decorateClass$g([
|
|
10436
10428
|
property()
|
|
10437
10429
|
], GlitchEffect.prototype, "blue", 2);
|
|
10438
|
-
GlitchEffect = __decorateClass$
|
|
10430
|
+
GlitchEffect = __decorateClass$g([
|
|
10439
10431
|
customNode("GlitchEffect")
|
|
10440
10432
|
], GlitchEffect);
|
|
10441
10433
|
|
|
10442
|
-
var __defProp$
|
|
10443
|
-
var __getOwnPropDesc$
|
|
10444
|
-
var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$
|
|
10445
|
-
var __decorateClass$
|
|
10446
|
-
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$
|
|
10434
|
+
var __defProp$f = Object.defineProperty;
|
|
10435
|
+
var __getOwnPropDesc$f = Object.getOwnPropertyDescriptor;
|
|
10436
|
+
var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
10437
|
+
var __decorateClass$f = (decorators, target, key, kind) => {
|
|
10438
|
+
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$f(target, key) : target;
|
|
10447
10439
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
10448
10440
|
if (decorator = decorators[i])
|
|
10449
10441
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
10450
|
-
if (kind && result) __defProp$
|
|
10442
|
+
if (kind && result) __defProp$f(target, key, result);
|
|
10451
10443
|
return result;
|
|
10452
10444
|
};
|
|
10453
10445
|
var __publicField$8 = (obj, key, value) => __defNormalProp$8(obj, key + "" , value);
|
|
@@ -10609,37 +10601,37 @@ void main(void) {
|
|
|
10609
10601
|
gl_FragColor = vec4(color.rgb + mist.rgb, color.a);
|
|
10610
10602
|
}`
|
|
10611
10603
|
}));
|
|
10612
|
-
__decorateClass$
|
|
10604
|
+
__decorateClass$f([
|
|
10613
10605
|
property()
|
|
10614
10606
|
], GodrayEffect.prototype, "angle", 2);
|
|
10615
|
-
__decorateClass$
|
|
10607
|
+
__decorateClass$f([
|
|
10616
10608
|
property()
|
|
10617
10609
|
], GodrayEffect.prototype, "gain", 2);
|
|
10618
|
-
__decorateClass$
|
|
10610
|
+
__decorateClass$f([
|
|
10619
10611
|
property()
|
|
10620
10612
|
], GodrayEffect.prototype, "lacunarity", 2);
|
|
10621
|
-
__decorateClass$
|
|
10613
|
+
__decorateClass$f([
|
|
10622
10614
|
property()
|
|
10623
10615
|
], GodrayEffect.prototype, "parallel", 2);
|
|
10624
|
-
__decorateClass$
|
|
10616
|
+
__decorateClass$f([
|
|
10625
10617
|
property()
|
|
10626
10618
|
], GodrayEffect.prototype, "center", 2);
|
|
10627
|
-
__decorateClass$
|
|
10619
|
+
__decorateClass$f([
|
|
10628
10620
|
property()
|
|
10629
10621
|
], GodrayEffect.prototype, "alpha", 2);
|
|
10630
|
-
GodrayEffect = __decorateClass$
|
|
10622
|
+
GodrayEffect = __decorateClass$f([
|
|
10631
10623
|
customNode("GodrayEffect")
|
|
10632
10624
|
], GodrayEffect);
|
|
10633
10625
|
|
|
10634
|
-
var __defProp$
|
|
10635
|
-
var __getOwnPropDesc$
|
|
10636
|
-
var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$
|
|
10637
|
-
var __decorateClass$
|
|
10638
|
-
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$
|
|
10626
|
+
var __defProp$e = Object.defineProperty;
|
|
10627
|
+
var __getOwnPropDesc$e = Object.getOwnPropertyDescriptor;
|
|
10628
|
+
var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
10629
|
+
var __decorateClass$e = (decorators, target, key, kind) => {
|
|
10630
|
+
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$e(target, key) : target;
|
|
10639
10631
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
10640
10632
|
if (decorator = decorators[i])
|
|
10641
10633
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
10642
|
-
if (kind && result) __defProp$
|
|
10634
|
+
if (kind && result) __defProp$e(target, key, result);
|
|
10643
10635
|
return result;
|
|
10644
10636
|
};
|
|
10645
10637
|
var __publicField$7 = (obj, key, value) => __defNormalProp$7(obj, key + "" , value);
|
|
@@ -10724,19 +10716,19 @@ void main(void) {
|
|
|
10724
10716
|
gl_FragColor = color;
|
|
10725
10717
|
}`
|
|
10726
10718
|
}));
|
|
10727
|
-
KawaseEffect = __decorateClass$
|
|
10719
|
+
KawaseEffect = __decorateClass$e([
|
|
10728
10720
|
customNode("KawaseEffect")
|
|
10729
10721
|
], KawaseEffect);
|
|
10730
10722
|
|
|
10731
|
-
var __defProp$
|
|
10732
|
-
var __getOwnPropDesc$
|
|
10733
|
-
var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$
|
|
10734
|
-
var __decorateClass$
|
|
10735
|
-
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$
|
|
10723
|
+
var __defProp$d = Object.defineProperty;
|
|
10724
|
+
var __getOwnPropDesc$d = Object.getOwnPropertyDescriptor;
|
|
10725
|
+
var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
10726
|
+
var __decorateClass$d = (decorators, target, key, kind) => {
|
|
10727
|
+
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$d(target, key) : target;
|
|
10736
10728
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
10737
10729
|
if (decorator = decorators[i])
|
|
10738
10730
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
10739
|
-
if (kind && result) __defProp$
|
|
10731
|
+
if (kind && result) __defProp$d(target, key, result);
|
|
10740
10732
|
return result;
|
|
10741
10733
|
};
|
|
10742
10734
|
var __publicField$6 = (obj, key, value) => __defNormalProp$6(obj, key + "" , value);
|
|
@@ -10778,27 +10770,27 @@ void main() {
|
|
|
10778
10770
|
gl_FragColor = mix(src2Color, src1Color, mixPercent);
|
|
10779
10771
|
}`
|
|
10780
10772
|
}));
|
|
10781
|
-
LeftEraseEffect = __decorateClass$
|
|
10773
|
+
LeftEraseEffect = __decorateClass$d([
|
|
10782
10774
|
customNode("LeftEraseEffect")
|
|
10783
10775
|
], LeftEraseEffect);
|
|
10784
10776
|
|
|
10785
|
-
var __defProp$
|
|
10786
|
-
var __getOwnPropDesc$
|
|
10787
|
-
var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$
|
|
10788
|
-
var __decorateClass$
|
|
10789
|
-
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$
|
|
10777
|
+
var __defProp$c = Object.defineProperty;
|
|
10778
|
+
var __getOwnPropDesc$c = Object.getOwnPropertyDescriptor;
|
|
10779
|
+
var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
10780
|
+
var __decorateClass$c = (decorators, target, key, kind) => {
|
|
10781
|
+
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$c(target, key) : target;
|
|
10790
10782
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
10791
10783
|
if (decorator = decorators[i])
|
|
10792
10784
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
10793
|
-
if (kind && result) __defProp$
|
|
10785
|
+
if (kind && result) __defProp$c(target, key, result);
|
|
10794
10786
|
return result;
|
|
10795
10787
|
};
|
|
10796
10788
|
var __publicField$5 = (obj, key, value) => __defNormalProp$5(obj, key + "" , value);
|
|
10797
10789
|
let MaskEffect = class extends Effect {
|
|
10798
10790
|
texture;
|
|
10799
|
-
constructor(
|
|
10791
|
+
constructor(properties, children = []) {
|
|
10800
10792
|
super();
|
|
10801
|
-
this.setProperties(
|
|
10793
|
+
this.setProperties(properties).append(children);
|
|
10802
10794
|
}
|
|
10803
10795
|
async load() {
|
|
10804
10796
|
this.texture = undefined;
|
|
@@ -10864,25 +10856,25 @@ void main(void) {
|
|
|
10864
10856
|
}
|
|
10865
10857
|
}`
|
|
10866
10858
|
}));
|
|
10867
|
-
__decorateClass$
|
|
10859
|
+
__decorateClass$c([
|
|
10868
10860
|
protectedProperty()
|
|
10869
10861
|
], MaskEffect.prototype, "texture", 2);
|
|
10870
|
-
__decorateClass$
|
|
10862
|
+
__decorateClass$c([
|
|
10871
10863
|
property({ default: "" })
|
|
10872
10864
|
], MaskEffect.prototype, "src", 2);
|
|
10873
|
-
MaskEffect = __decorateClass$
|
|
10865
|
+
MaskEffect = __decorateClass$c([
|
|
10874
10866
|
customNode("MaskEffect")
|
|
10875
10867
|
], MaskEffect);
|
|
10876
10868
|
|
|
10877
|
-
var __defProp$
|
|
10878
|
-
var __getOwnPropDesc$
|
|
10879
|
-
var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$
|
|
10880
|
-
var __decorateClass$
|
|
10881
|
-
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$
|
|
10869
|
+
var __defProp$b = Object.defineProperty;
|
|
10870
|
+
var __getOwnPropDesc$b = Object.getOwnPropertyDescriptor;
|
|
10871
|
+
var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
10872
|
+
var __decorateClass$b = (decorators, target, key, kind) => {
|
|
10873
|
+
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$b(target, key) : target;
|
|
10882
10874
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
10883
10875
|
if (decorator = decorators[i])
|
|
10884
10876
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
10885
|
-
if (kind && result) __defProp$
|
|
10877
|
+
if (kind && result) __defProp$b(target, key, result);
|
|
10886
10878
|
return result;
|
|
10887
10879
|
};
|
|
10888
10880
|
var __publicField$4 = (obj, key, value) => __defNormalProp$4(obj, key + "" , value);
|
|
@@ -10939,22 +10931,22 @@ void main(void) {
|
|
|
10939
10931
|
gl_FragColor = texture2D(sampler, coord);
|
|
10940
10932
|
}`
|
|
10941
10933
|
}));
|
|
10942
|
-
__decorateClass$
|
|
10934
|
+
__decorateClass$b([
|
|
10943
10935
|
property()
|
|
10944
10936
|
], PixelateEffect.prototype, "size", 2);
|
|
10945
|
-
PixelateEffect = __decorateClass$
|
|
10937
|
+
PixelateEffect = __decorateClass$b([
|
|
10946
10938
|
customNode("PixelateEffect")
|
|
10947
10939
|
], PixelateEffect);
|
|
10948
10940
|
|
|
10949
|
-
var __defProp$
|
|
10950
|
-
var __getOwnPropDesc$
|
|
10951
|
-
var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$
|
|
10952
|
-
var __decorateClass$
|
|
10953
|
-
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$
|
|
10941
|
+
var __defProp$a = Object.defineProperty;
|
|
10942
|
+
var __getOwnPropDesc$a = Object.getOwnPropertyDescriptor;
|
|
10943
|
+
var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
10944
|
+
var __decorateClass$a = (decorators, target, key, kind) => {
|
|
10945
|
+
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$a(target, key) : target;
|
|
10954
10946
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
10955
10947
|
if (decorator = decorators[i])
|
|
10956
10948
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
10957
|
-
if (kind && result) __defProp$
|
|
10949
|
+
if (kind && result) __defProp$a(target, key, result);
|
|
10958
10950
|
return result;
|
|
10959
10951
|
};
|
|
10960
10952
|
var __publicField$3 = (obj, key, value) => __defNormalProp$3(obj, key + "" , value);
|
|
@@ -11007,19 +10999,19 @@ void main(void) {
|
|
|
11007
10999
|
gl_FragColor = sample;
|
|
11008
11000
|
}`
|
|
11009
11001
|
}));
|
|
11010
|
-
ShadowEffect = __decorateClass$
|
|
11002
|
+
ShadowEffect = __decorateClass$a([
|
|
11011
11003
|
customNode("ShadowEffect")
|
|
11012
11004
|
], ShadowEffect);
|
|
11013
11005
|
|
|
11014
|
-
var __defProp$
|
|
11015
|
-
var __getOwnPropDesc$
|
|
11016
|
-
var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$
|
|
11017
|
-
var __decorateClass$
|
|
11018
|
-
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$
|
|
11006
|
+
var __defProp$9 = Object.defineProperty;
|
|
11007
|
+
var __getOwnPropDesc$9 = Object.getOwnPropertyDescriptor;
|
|
11008
|
+
var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
11009
|
+
var __decorateClass$9 = (decorators, target, key, kind) => {
|
|
11010
|
+
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$9(target, key) : target;
|
|
11019
11011
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
11020
11012
|
if (decorator = decorators[i])
|
|
11021
11013
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
11022
|
-
if (kind && result) __defProp$
|
|
11014
|
+
if (kind && result) __defProp$9(target, key, result);
|
|
11023
11015
|
return result;
|
|
11024
11016
|
};
|
|
11025
11017
|
var __publicField$2 = (obj, key, value) => __defNormalProp$2(obj, key + "" , value);
|
|
@@ -11115,19 +11107,19 @@ void main(void) {
|
|
|
11115
11107
|
gl_FragColor = color;
|
|
11116
11108
|
}`
|
|
11117
11109
|
}));
|
|
11118
|
-
TiltShiftEffect = __decorateClass$
|
|
11110
|
+
TiltShiftEffect = __decorateClass$9([
|
|
11119
11111
|
customNode("TiltShiftEffect")
|
|
11120
11112
|
], TiltShiftEffect);
|
|
11121
11113
|
|
|
11122
|
-
var __defProp$
|
|
11123
|
-
var __getOwnPropDesc$
|
|
11124
|
-
var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$
|
|
11125
|
-
var __decorateClass$
|
|
11126
|
-
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$
|
|
11114
|
+
var __defProp$8 = Object.defineProperty;
|
|
11115
|
+
var __getOwnPropDesc$8 = Object.getOwnPropertyDescriptor;
|
|
11116
|
+
var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
11117
|
+
var __decorateClass$8 = (decorators, target, key, kind) => {
|
|
11118
|
+
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$8(target, key) : target;
|
|
11127
11119
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
11128
11120
|
if (decorator = decorators[i])
|
|
11129
11121
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
11130
|
-
if (kind && result) __defProp$
|
|
11122
|
+
if (kind && result) __defProp$8(target, key, result);
|
|
11131
11123
|
return result;
|
|
11132
11124
|
};
|
|
11133
11125
|
var __publicField$1 = (obj, key, value) => __defNormalProp$1(obj, key + "" , value);
|
|
@@ -11210,19 +11202,19 @@ void main(void) {
|
|
|
11210
11202
|
gl_FragColor = texture2D(sampler, coord);
|
|
11211
11203
|
}`
|
|
11212
11204
|
}));
|
|
11213
|
-
TwistEffect = __decorateClass$
|
|
11205
|
+
TwistEffect = __decorateClass$8([
|
|
11214
11206
|
customNode("TwistEffect")
|
|
11215
11207
|
], TwistEffect);
|
|
11216
11208
|
|
|
11217
|
-
var __defProp$
|
|
11218
|
-
var __getOwnPropDesc$
|
|
11219
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp$
|
|
11220
|
-
var __decorateClass$
|
|
11221
|
-
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$
|
|
11209
|
+
var __defProp$7 = Object.defineProperty;
|
|
11210
|
+
var __getOwnPropDesc$7 = Object.getOwnPropertyDescriptor;
|
|
11211
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
11212
|
+
var __decorateClass$7 = (decorators, target, key, kind) => {
|
|
11213
|
+
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$7(target, key) : target;
|
|
11222
11214
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
11223
11215
|
if (decorator = decorators[i])
|
|
11224
11216
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
11225
|
-
if (kind && result) __defProp$
|
|
11217
|
+
if (kind && result) __defProp$7(target, key, result);
|
|
11226
11218
|
return result;
|
|
11227
11219
|
};
|
|
11228
11220
|
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "" , value);
|
|
@@ -11328,42 +11320,69 @@ void main() {
|
|
|
11328
11320
|
gl_FragColor = color;
|
|
11329
11321
|
}`
|
|
11330
11322
|
}));
|
|
11331
|
-
__decorateClass$
|
|
11323
|
+
__decorateClass$7([
|
|
11332
11324
|
property()
|
|
11333
11325
|
], ZoomBlurEffect.prototype, "center", 2);
|
|
11334
|
-
__decorateClass$
|
|
11326
|
+
__decorateClass$7([
|
|
11335
11327
|
property()
|
|
11336
11328
|
], ZoomBlurEffect.prototype, "innerRadius", 2);
|
|
11337
|
-
__decorateClass$
|
|
11329
|
+
__decorateClass$7([
|
|
11338
11330
|
property()
|
|
11339
11331
|
], ZoomBlurEffect.prototype, "radius", 2);
|
|
11340
|
-
__decorateClass$
|
|
11332
|
+
__decorateClass$7([
|
|
11341
11333
|
property()
|
|
11342
11334
|
], ZoomBlurEffect.prototype, "strength", 2);
|
|
11343
|
-
ZoomBlurEffect = __decorateClass$
|
|
11335
|
+
ZoomBlurEffect = __decorateClass$7([
|
|
11344
11336
|
customNode("ZoomBlurEffect")
|
|
11345
11337
|
], ZoomBlurEffect);
|
|
11346
11338
|
|
|
11347
|
-
var __defProp$
|
|
11348
|
-
var __getOwnPropDesc$
|
|
11349
|
-
var __decorateClass$
|
|
11350
|
-
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$
|
|
11339
|
+
var __defProp$6 = Object.defineProperty;
|
|
11340
|
+
var __getOwnPropDesc$6 = Object.getOwnPropertyDescriptor;
|
|
11341
|
+
var __decorateClass$6 = (decorators, target, key, kind) => {
|
|
11342
|
+
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$6(target, key) : target;
|
|
11351
11343
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
11352
11344
|
if (decorator = decorators[i])
|
|
11353
11345
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
11354
|
-
if (kind && result) __defProp$
|
|
11346
|
+
if (kind && result) __defProp$6(target, key, result);
|
|
11355
11347
|
return result;
|
|
11356
11348
|
};
|
|
11357
11349
|
let Control = class extends CanvasItem {
|
|
11358
11350
|
constructor(properties, children = []) {
|
|
11359
11351
|
super();
|
|
11352
|
+
this._parentUpdateRect = this._parentUpdateRect.bind(this);
|
|
11360
11353
|
this.setProperties(properties);
|
|
11361
11354
|
this.append(children);
|
|
11362
11355
|
}
|
|
11356
|
+
_parented(parent) {
|
|
11357
|
+
super._parented(parent);
|
|
11358
|
+
parent.on("updateRect", this._parentUpdateRect);
|
|
11359
|
+
}
|
|
11360
|
+
_unparented(oldParent) {
|
|
11361
|
+
super._unparented(oldParent);
|
|
11362
|
+
oldParent.off("updateRect", this._parentUpdateRect);
|
|
11363
|
+
}
|
|
11364
|
+
_parentUpdateRect() {
|
|
11365
|
+
const rect = this._parent.getRect();
|
|
11366
|
+
this.style.left = rect.left;
|
|
11367
|
+
this.style.top = rect.top;
|
|
11368
|
+
this.style.width = rect.width;
|
|
11369
|
+
this.style.height = rect.height;
|
|
11370
|
+
}
|
|
11363
11371
|
_input(event, key) {
|
|
11364
11372
|
super._input(event, key);
|
|
11365
11373
|
this._guiInput(event, key);
|
|
11366
11374
|
}
|
|
11375
|
+
_updateStyleProperty(key, value, oldValue, declaration) {
|
|
11376
|
+
super._updateStyleProperty(key, value, oldValue, declaration);
|
|
11377
|
+
switch (key) {
|
|
11378
|
+
case "width":
|
|
11379
|
+
case "height":
|
|
11380
|
+
case "left":
|
|
11381
|
+
case "top":
|
|
11382
|
+
this.emit("updateRect");
|
|
11383
|
+
break;
|
|
11384
|
+
}
|
|
11385
|
+
}
|
|
11367
11386
|
// eslint-disable-next-line unused-imports/no-unused-vars
|
|
11368
11387
|
_guiInput(event, key) {
|
|
11369
11388
|
}
|
|
@@ -11384,18 +11403,73 @@ let Control = class extends CanvasItem {
|
|
|
11384
11403
|
return new Rect2(left, top, width, height);
|
|
11385
11404
|
}
|
|
11386
11405
|
};
|
|
11387
|
-
Control = __decorateClass$
|
|
11406
|
+
Control = __decorateClass$6([
|
|
11388
11407
|
customNode("Control")
|
|
11389
11408
|
], Control);
|
|
11390
11409
|
|
|
11391
|
-
var __defProp$
|
|
11392
|
-
var __getOwnPropDesc$
|
|
11393
|
-
var __decorateClass$
|
|
11394
|
-
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$
|
|
11410
|
+
var __defProp$5 = Object.defineProperty;
|
|
11411
|
+
var __getOwnPropDesc$5 = Object.getOwnPropertyDescriptor;
|
|
11412
|
+
var __decorateClass$5 = (decorators, target, key, kind) => {
|
|
11413
|
+
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$5(target, key) : target;
|
|
11395
11414
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
11396
11415
|
if (decorator = decorators[i])
|
|
11397
11416
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
11398
|
-
if (kind && result) __defProp$
|
|
11417
|
+
if (kind && result) __defProp$5(target, key, result);
|
|
11418
|
+
return result;
|
|
11419
|
+
};
|
|
11420
|
+
let Range = class extends Control {
|
|
11421
|
+
constructor(properties, children = []) {
|
|
11422
|
+
super();
|
|
11423
|
+
this.setProperties(properties).append(children);
|
|
11424
|
+
}
|
|
11425
|
+
_updateProperty(key, value, oldValue, declaration) {
|
|
11426
|
+
super._updateProperty(key, value, oldValue, declaration);
|
|
11427
|
+
switch (key) {
|
|
11428
|
+
case "allowGreater":
|
|
11429
|
+
case "allowLesser":
|
|
11430
|
+
case "page":
|
|
11431
|
+
case "minValue":
|
|
11432
|
+
case "maxValue":
|
|
11433
|
+
case "step":
|
|
11434
|
+
case "value":
|
|
11435
|
+
this.requestRedraw();
|
|
11436
|
+
break;
|
|
11437
|
+
}
|
|
11438
|
+
}
|
|
11439
|
+
};
|
|
11440
|
+
__decorateClass$5([
|
|
11441
|
+
property({ default: false })
|
|
11442
|
+
], Range.prototype, "allowGreater", 2);
|
|
11443
|
+
__decorateClass$5([
|
|
11444
|
+
property({ default: false })
|
|
11445
|
+
], Range.prototype, "allowLesser", 2);
|
|
11446
|
+
__decorateClass$5([
|
|
11447
|
+
property({ default: 1 })
|
|
11448
|
+
], Range.prototype, "page", 2);
|
|
11449
|
+
__decorateClass$5([
|
|
11450
|
+
property({ default: 0 })
|
|
11451
|
+
], Range.prototype, "minValue", 2);
|
|
11452
|
+
__decorateClass$5([
|
|
11453
|
+
property({ default: 100 })
|
|
11454
|
+
], Range.prototype, "maxValue", 2);
|
|
11455
|
+
__decorateClass$5([
|
|
11456
|
+
property({ default: 0.01 })
|
|
11457
|
+
], Range.prototype, "step", 2);
|
|
11458
|
+
__decorateClass$5([
|
|
11459
|
+
property({ default: 0 })
|
|
11460
|
+
], Range.prototype, "value", 2);
|
|
11461
|
+
Range = __decorateClass$5([
|
|
11462
|
+
customNode("Range")
|
|
11463
|
+
], Range);
|
|
11464
|
+
|
|
11465
|
+
var __defProp$4 = Object.defineProperty;
|
|
11466
|
+
var __getOwnPropDesc$4 = Object.getOwnPropertyDescriptor;
|
|
11467
|
+
var __decorateClass$4 = (decorators, target, key, kind) => {
|
|
11468
|
+
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$4(target, key) : target;
|
|
11469
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
11470
|
+
if (decorator = decorators[i])
|
|
11471
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
11472
|
+
if (kind && result) __defProp$4(target, key, result);
|
|
11399
11473
|
return result;
|
|
11400
11474
|
};
|
|
11401
11475
|
let Ruler = class extends Control {
|
|
@@ -11408,7 +11482,6 @@ let Ruler = class extends Control {
|
|
|
11408
11482
|
_updateProperty(key, value, oldValue, declaration) {
|
|
11409
11483
|
super._updateProperty(key, value, oldValue, declaration);
|
|
11410
11484
|
switch (key) {
|
|
11411
|
-
case "pixelRatio":
|
|
11412
11485
|
case "offsetX":
|
|
11413
11486
|
case "offsetY":
|
|
11414
11487
|
case "thickness":
|
|
@@ -11417,20 +11490,27 @@ let Ruler = class extends Control {
|
|
|
11417
11490
|
case "markBackgroundColor":
|
|
11418
11491
|
case "markColor":
|
|
11419
11492
|
case "gap":
|
|
11493
|
+
case "scale":
|
|
11420
11494
|
this.requestRedraw();
|
|
11421
11495
|
break;
|
|
11422
11496
|
}
|
|
11423
11497
|
}
|
|
11424
|
-
|
|
11425
|
-
super.
|
|
11426
|
-
|
|
11498
|
+
_updateStyleProperty(key, value, oldValue, declaration) {
|
|
11499
|
+
super._updateStyleProperty(key, value, oldValue, declaration);
|
|
11500
|
+
switch (key) {
|
|
11501
|
+
case "width":
|
|
11502
|
+
case "height":
|
|
11503
|
+
this.texture[key] = value;
|
|
11504
|
+
this.requestRedraw();
|
|
11505
|
+
break;
|
|
11506
|
+
}
|
|
11427
11507
|
}
|
|
11428
11508
|
_drawTexture() {
|
|
11429
|
-
const { width, height } = this.size;
|
|
11430
|
-
this.style.width = width;
|
|
11431
|
-
this.style.height = height;
|
|
11432
11509
|
const {
|
|
11433
|
-
|
|
11510
|
+
width,
|
|
11511
|
+
height
|
|
11512
|
+
} = this.style;
|
|
11513
|
+
const {
|
|
11434
11514
|
offsetX,
|
|
11435
11515
|
offsetY,
|
|
11436
11516
|
thickness,
|
|
@@ -11438,14 +11518,13 @@ let Ruler = class extends Control {
|
|
|
11438
11518
|
markBackgroundColor,
|
|
11439
11519
|
markColor,
|
|
11440
11520
|
color,
|
|
11441
|
-
gap: _gap
|
|
11521
|
+
gap: _gap,
|
|
11522
|
+
scale: _scale
|
|
11442
11523
|
} = this;
|
|
11443
|
-
const _scale = 1;
|
|
11444
11524
|
const canvas = this.texture.source;
|
|
11445
|
-
canvas.width = Math.max(1, Math.ceil(width * pixelRatio));
|
|
11446
|
-
canvas.height = Math.max(1, Math.ceil(height * pixelRatio));
|
|
11447
11525
|
const ctx = canvas.getContext("2d");
|
|
11448
|
-
ctx.
|
|
11526
|
+
ctx.reset();
|
|
11527
|
+
ctx.scale(this.texture.pixelRatio, this.texture.pixelRatio);
|
|
11449
11528
|
const x = Math.round(offsetX);
|
|
11450
11529
|
const y = Math.round(offsetY);
|
|
11451
11530
|
ctx.beginPath();
|
|
@@ -11527,7 +11606,7 @@ let Ruler = class extends Control {
|
|
|
11527
11606
|
ctx.stroke();
|
|
11528
11607
|
this.texture.requestUpload();
|
|
11529
11608
|
}
|
|
11530
|
-
|
|
11609
|
+
_draw() {
|
|
11531
11610
|
this._drawTexture();
|
|
11532
11611
|
const texture = this.texture;
|
|
11533
11612
|
if (texture?.valid) {
|
|
@@ -11536,41 +11615,120 @@ let Ruler = class extends Control {
|
|
|
11536
11615
|
this.style.width / texture.width,
|
|
11537
11616
|
this.style.height / texture.height
|
|
11538
11617
|
);
|
|
11539
|
-
|
|
11618
|
+
this.context.rect(0, 0, texture.width, texture.height);
|
|
11619
|
+
this.context.fill();
|
|
11540
11620
|
}
|
|
11541
11621
|
}
|
|
11542
11622
|
};
|
|
11543
|
-
__decorateClass$
|
|
11544
|
-
property({ default: 2 })
|
|
11545
|
-
], Ruler.prototype, "pixelRatio", 2);
|
|
11546
|
-
__decorateClass$2([
|
|
11623
|
+
__decorateClass$4([
|
|
11547
11624
|
property({ default: 0 })
|
|
11548
11625
|
], Ruler.prototype, "offsetX", 2);
|
|
11549
|
-
__decorateClass$
|
|
11626
|
+
__decorateClass$4([
|
|
11550
11627
|
property({ default: 0 })
|
|
11551
11628
|
], Ruler.prototype, "offsetY", 2);
|
|
11552
|
-
__decorateClass$
|
|
11629
|
+
__decorateClass$4([
|
|
11553
11630
|
property({ default: 20 })
|
|
11554
11631
|
], Ruler.prototype, "thickness", 2);
|
|
11555
|
-
__decorateClass$
|
|
11632
|
+
__decorateClass$4([
|
|
11556
11633
|
property({ default: 3 })
|
|
11557
11634
|
], Ruler.prototype, "markHeight", 2);
|
|
11558
|
-
__decorateClass$
|
|
11635
|
+
__decorateClass$4([
|
|
11559
11636
|
property({ default: "#b2b6bc" })
|
|
11560
11637
|
], Ruler.prototype, "color", 2);
|
|
11561
|
-
__decorateClass$
|
|
11638
|
+
__decorateClass$4([
|
|
11562
11639
|
property({ default: "#f9f9fa" })
|
|
11563
11640
|
], Ruler.prototype, "markBackgroundColor", 2);
|
|
11564
|
-
__decorateClass$
|
|
11641
|
+
__decorateClass$4([
|
|
11565
11642
|
property({ default: "#b2b6bc" })
|
|
11566
11643
|
], Ruler.prototype, "markColor", 2);
|
|
11567
|
-
__decorateClass$
|
|
11644
|
+
__decorateClass$4([
|
|
11568
11645
|
property({ default: 300 })
|
|
11569
11646
|
], Ruler.prototype, "gap", 2);
|
|
11570
|
-
|
|
11647
|
+
__decorateClass$4([
|
|
11648
|
+
property({ default: 1 })
|
|
11649
|
+
], Ruler.prototype, "scale", 2);
|
|
11650
|
+
Ruler = __decorateClass$4([
|
|
11571
11651
|
customNode("Ruler")
|
|
11572
11652
|
], Ruler);
|
|
11573
11653
|
|
|
11654
|
+
var __defProp$3 = Object.defineProperty;
|
|
11655
|
+
var __getOwnPropDesc$3 = Object.getOwnPropertyDescriptor;
|
|
11656
|
+
var __decorateClass$3 = (decorators, target, key, kind) => {
|
|
11657
|
+
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$3(target, key) : target;
|
|
11658
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
11659
|
+
if (decorator = decorators[i])
|
|
11660
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
11661
|
+
if (kind && result) __defProp$3(target, key, result);
|
|
11662
|
+
return result;
|
|
11663
|
+
};
|
|
11664
|
+
let ScrollBar = class extends Range {
|
|
11665
|
+
constructor(properties, children = []) {
|
|
11666
|
+
super();
|
|
11667
|
+
this.setProperties(properties).append(children);
|
|
11668
|
+
}
|
|
11669
|
+
_updateStyleProperty(key, value, oldValue, declaration) {
|
|
11670
|
+
super._updateStyleProperty(key, value, oldValue, declaration);
|
|
11671
|
+
switch (key) {
|
|
11672
|
+
case "width":
|
|
11673
|
+
case "height":
|
|
11674
|
+
case "left":
|
|
11675
|
+
case "top":
|
|
11676
|
+
this.requestRedraw();
|
|
11677
|
+
break;
|
|
11678
|
+
}
|
|
11679
|
+
}
|
|
11680
|
+
_guiInput(event, key) {
|
|
11681
|
+
super._guiInput(event, key);
|
|
11682
|
+
}
|
|
11683
|
+
_draw() {
|
|
11684
|
+
let left, top, width, height, radii;
|
|
11685
|
+
if (this.direction === "vertical") {
|
|
11686
|
+
width = 10;
|
|
11687
|
+
height = this.style.height * (this.page / (this.maxValue - this.minValue));
|
|
11688
|
+
left = this.style.left + this.style.width - width;
|
|
11689
|
+
top = this.style.height * (this.value / (this.maxValue - this.minValue));
|
|
11690
|
+
radii = width / 2;
|
|
11691
|
+
} else {
|
|
11692
|
+
width = this.style.width * (this.page / (this.maxValue - this.minValue));
|
|
11693
|
+
height = 10;
|
|
11694
|
+
left = this.style.width * (this.value / (this.maxValue - this.minValue));
|
|
11695
|
+
top = this.style.top + this.style.height - height;
|
|
11696
|
+
radii = height / 2;
|
|
11697
|
+
}
|
|
11698
|
+
this.context.roundRect(left, top, width, height, radii);
|
|
11699
|
+
this.context.fillStyle = 34;
|
|
11700
|
+
this.context.fill();
|
|
11701
|
+
}
|
|
11702
|
+
};
|
|
11703
|
+
__decorateClass$3([
|
|
11704
|
+
property({ default: "vertical" })
|
|
11705
|
+
], ScrollBar.prototype, "direction", 2);
|
|
11706
|
+
ScrollBar = __decorateClass$3([
|
|
11707
|
+
customNode("ScrollBar")
|
|
11708
|
+
], ScrollBar);
|
|
11709
|
+
|
|
11710
|
+
var __defProp$2 = Object.defineProperty;
|
|
11711
|
+
var __getOwnPropDesc$2 = Object.getOwnPropertyDescriptor;
|
|
11712
|
+
var __decorateClass$2 = (decorators, target, key, kind) => {
|
|
11713
|
+
var result = kind > 1 ? undefined : kind ? __getOwnPropDesc$2(target, key) : target;
|
|
11714
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
11715
|
+
if (decorator = decorators[i])
|
|
11716
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
11717
|
+
if (kind && result) __defProp$2(target, key, result);
|
|
11718
|
+
return result;
|
|
11719
|
+
};
|
|
11720
|
+
let XScrollBar = class extends ScrollBar {
|
|
11721
|
+
constructor(properties, children = []) {
|
|
11722
|
+
super();
|
|
11723
|
+
this.setProperties(properties).append(children);
|
|
11724
|
+
}
|
|
11725
|
+
};
|
|
11726
|
+
XScrollBar = __decorateClass$2([
|
|
11727
|
+
customNode("XScrollBar", {
|
|
11728
|
+
direction: "horizontal"
|
|
11729
|
+
})
|
|
11730
|
+
], XScrollBar);
|
|
11731
|
+
|
|
11574
11732
|
var __defProp$1 = Object.defineProperty;
|
|
11575
11733
|
var __getOwnPropDesc$1 = Object.getOwnPropertyDescriptor;
|
|
11576
11734
|
var __decorateClass$1 = (decorators, target, key, kind) => {
|
|
@@ -11581,12 +11739,17 @@ var __decorateClass$1 = (decorators, target, key, kind) => {
|
|
|
11581
11739
|
if (kind && result) __defProp$1(target, key, result);
|
|
11582
11740
|
return result;
|
|
11583
11741
|
};
|
|
11584
|
-
let
|
|
11585
|
-
|
|
11742
|
+
let YScrollBar = class extends ScrollBar {
|
|
11743
|
+
constructor(properties, children = []) {
|
|
11744
|
+
super();
|
|
11745
|
+
this.setProperties(properties).append(children);
|
|
11746
|
+
}
|
|
11586
11747
|
};
|
|
11587
|
-
|
|
11588
|
-
customNode("
|
|
11589
|
-
|
|
11748
|
+
YScrollBar = __decorateClass$1([
|
|
11749
|
+
customNode("YScrollBar", {
|
|
11750
|
+
direction: "vertical"
|
|
11751
|
+
})
|
|
11752
|
+
], YScrollBar);
|
|
11590
11753
|
|
|
11591
11754
|
var __defProp = Object.defineProperty;
|
|
11592
11755
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -11613,10 +11776,10 @@ let Scaler = class extends Node {
|
|
|
11613
11776
|
_updateProperty(key, value, oldValue, declaration) {
|
|
11614
11777
|
super._updateProperty(key, value, oldValue, declaration);
|
|
11615
11778
|
switch (key) {
|
|
11616
|
-
case "
|
|
11779
|
+
case "value":
|
|
11617
11780
|
case "min":
|
|
11618
11781
|
case "max": {
|
|
11619
|
-
this.
|
|
11782
|
+
this.value = clamp(this.minValue, this.value, this.maxValue);
|
|
11620
11783
|
this._updateScale();
|
|
11621
11784
|
break;
|
|
11622
11785
|
}
|
|
@@ -11625,9 +11788,9 @@ let Scaler = class extends Node {
|
|
|
11625
11788
|
_updateScale() {
|
|
11626
11789
|
const target = this.target;
|
|
11627
11790
|
if (target) {
|
|
11628
|
-
target.style.scaleX = this.
|
|
11629
|
-
target.style.scaleY = this.
|
|
11630
|
-
this.emit("updateScale", this.
|
|
11791
|
+
target.style.scaleX = this.value;
|
|
11792
|
+
target.style.scaleY = this.value;
|
|
11793
|
+
this.emit("updateScale", this.value);
|
|
11631
11794
|
}
|
|
11632
11795
|
}
|
|
11633
11796
|
_onWheel(e) {
|
|
@@ -11640,7 +11803,7 @@ let Scaler = class extends Node {
|
|
|
11640
11803
|
e.preventDefault();
|
|
11641
11804
|
let distance = e.deltaY / (e.ctrlKey ? 1 : 100);
|
|
11642
11805
|
distance *= -0.015;
|
|
11643
|
-
this.
|
|
11806
|
+
this.value += distance;
|
|
11644
11807
|
}
|
|
11645
11808
|
}
|
|
11646
11809
|
_input(event, key) {
|
|
@@ -11654,13 +11817,13 @@ let Scaler = class extends Node {
|
|
|
11654
11817
|
};
|
|
11655
11818
|
__decorateClass([
|
|
11656
11819
|
property({ default: 1 })
|
|
11657
|
-
], Scaler.prototype, "
|
|
11820
|
+
], Scaler.prototype, "value", 2);
|
|
11658
11821
|
__decorateClass([
|
|
11659
11822
|
property({ default: 0.05 })
|
|
11660
|
-
], Scaler.prototype, "
|
|
11823
|
+
], Scaler.prototype, "minValue", 2);
|
|
11661
11824
|
__decorateClass([
|
|
11662
11825
|
property({ default: 10 })
|
|
11663
|
-
], Scaler.prototype, "
|
|
11826
|
+
], Scaler.prototype, "maxValue", 2);
|
|
11664
11827
|
Scaler = __decorateClass([
|
|
11665
11828
|
customNode("Scaler", {
|
|
11666
11829
|
processMode: "disabled",
|
|
@@ -12002,7 +12165,7 @@ class Assets {
|
|
|
12002
12165
|
}
|
|
12003
12166
|
const assets = new Assets().use(new FontLoader()).use(new GifLoader()).use(new JsonLoader()).use(new LottieLoader()).use(new TextLoader()).use(new TextureLoader()).use(new VideoLoader());
|
|
12004
12167
|
|
|
12005
|
-
class CanvasEditor extends
|
|
12168
|
+
class CanvasEditor extends Control {
|
|
12006
12169
|
name = "CanvasEditor";
|
|
12007
12170
|
hover = new Node2D({
|
|
12008
12171
|
name: "hover",
|
|
@@ -12035,36 +12198,55 @@ class CanvasEditor extends CanvasItem {
|
|
|
12035
12198
|
scaler = new Scaler({
|
|
12036
12199
|
internalMode: "back"
|
|
12037
12200
|
}).on("updateScale", (scale) => {
|
|
12038
|
-
this.ruler.
|
|
12201
|
+
this.ruler.scale = scale;
|
|
12202
|
+
const scrollHeight = this.drawboard.style.height * scale;
|
|
12203
|
+
const scrollWidth = this.drawboard.style.width * scale;
|
|
12204
|
+
if (scrollHeight > this.style.height) {
|
|
12205
|
+
this.yScrollBar.style.visibility = "visible";
|
|
12206
|
+
this.yScrollBar.maxValue = scrollHeight;
|
|
12207
|
+
this.yScrollBar.page = this.style.height;
|
|
12208
|
+
} else {
|
|
12209
|
+
this.yScrollBar.style.visibility = "hidden";
|
|
12210
|
+
}
|
|
12211
|
+
if (scrollWidth > this.style.width) {
|
|
12212
|
+
this.xScrollBar.style.visibility = "visible";
|
|
12213
|
+
this.xScrollBar.maxValue = scrollWidth;
|
|
12214
|
+
this.xScrollBar.page = this.style.width;
|
|
12215
|
+
} else {
|
|
12216
|
+
this.xScrollBar.style.visibility = "hidden";
|
|
12217
|
+
}
|
|
12039
12218
|
});
|
|
12040
|
-
xScrollBar = new
|
|
12041
|
-
internalMode: "back"
|
|
12219
|
+
xScrollBar = new XScrollBar({
|
|
12220
|
+
internalMode: "back",
|
|
12221
|
+
style: {
|
|
12222
|
+
visibility: "hidden"
|
|
12223
|
+
}
|
|
12042
12224
|
});
|
|
12043
|
-
yScrollBar = new
|
|
12044
|
-
internalMode: "back"
|
|
12225
|
+
yScrollBar = new YScrollBar({
|
|
12226
|
+
internalMode: "back",
|
|
12227
|
+
style: {
|
|
12228
|
+
visibility: "hidden"
|
|
12229
|
+
}
|
|
12045
12230
|
});
|
|
12046
12231
|
drawboard = new Node2D({
|
|
12047
12232
|
name: "drawboard",
|
|
12048
12233
|
style: {
|
|
12049
|
-
left: 100,
|
|
12050
|
-
top: 100,
|
|
12051
12234
|
width: 500,
|
|
12052
12235
|
height: 500,
|
|
12053
12236
|
backgroundColor: 4294967295,
|
|
12054
12237
|
overflow: "hidden",
|
|
12055
|
-
|
|
12056
|
-
borderWidth: 2,
|
|
12057
|
-
pointerEvents: "none",
|
|
12058
|
-
transformOrigin: "left top"
|
|
12238
|
+
pointerEvents: "none"
|
|
12059
12239
|
}
|
|
12060
12240
|
}).append(
|
|
12061
|
-
this.scaler
|
|
12241
|
+
this.scaler,
|
|
12242
|
+
new ShadowEffect({
|
|
12243
|
+
internalMode: "back"
|
|
12244
|
+
})
|
|
12062
12245
|
);
|
|
12063
12246
|
ruler = new Ruler({
|
|
12064
12247
|
name: "ruler",
|
|
12065
12248
|
offsetX: 100,
|
|
12066
|
-
offsetY: 100
|
|
12067
|
-
inheritSize: true
|
|
12249
|
+
offsetY: 100
|
|
12068
12250
|
}).append(
|
|
12069
12251
|
this.drawboard,
|
|
12070
12252
|
this.hover,
|
|
@@ -12081,10 +12263,22 @@ class CanvasEditor extends CanvasItem {
|
|
|
12081
12263
|
this._onPointermove = this._onPointermove.bind(this);
|
|
12082
12264
|
this._onPointerup = this._onPointerup.bind(this);
|
|
12083
12265
|
this.append(this.ruler);
|
|
12084
|
-
this.inheritSize = true;
|
|
12085
12266
|
}
|
|
12086
|
-
|
|
12087
|
-
super.
|
|
12267
|
+
_updateStyleProperty(key, value, oldValue, declaration) {
|
|
12268
|
+
super._updateStyleProperty(key, value, oldValue, declaration);
|
|
12269
|
+
switch (key) {
|
|
12270
|
+
case "width":
|
|
12271
|
+
this.drawboard.style.left = (this.style.width - this.drawboard.style.width) / 2;
|
|
12272
|
+
this.ruler.offsetX = this.drawboard.style.left;
|
|
12273
|
+
break;
|
|
12274
|
+
case "height":
|
|
12275
|
+
this.drawboard.style.top = (this.style.height - this.drawboard.style.height) / 2;
|
|
12276
|
+
this.ruler.offsetY = this.drawboard.style.top;
|
|
12277
|
+
break;
|
|
12278
|
+
}
|
|
12279
|
+
}
|
|
12280
|
+
_guiInput(event, key) {
|
|
12281
|
+
super._guiInput(event, key);
|
|
12088
12282
|
switch (key) {
|
|
12089
12283
|
case "pointerdown":
|
|
12090
12284
|
this._onPointerdown(event);
|
|
@@ -12353,4 +12547,4 @@ async function render(options) {
|
|
|
12353
12547
|
});
|
|
12354
12548
|
}
|
|
12355
12549
|
|
|
12356
|
-
export { Animation, Assets, Audio, AudioPipeline, AudioProcessor, AudioSpectrum, AudioWaveform, BlurEffect, CanvasContext, CanvasEditor, CanvasItem, CanvasItemStyle, CanvasTexture, Color, ColorAdjustEffect, ColorFilterEffect, ColorMatrix, ColorOverlayEffect, ColorRemoveEffect, ColorReplaceEffect, ColorTexture, Control, CoreObject, DEG_TO_RAD, DEVICE_PIXEL_RATIO, Effect, EffectMaterial, EmbossEffect, Engine, EventEmitter, FontLoader, Geometry, GifLoader, GlitchEffect, GodrayEffect, Graphics2D, HTMLAudio, HTMLAudioContext, HTMLSound, IN_BROWSER, Image2D, Image2DResource, ImageTexture, IndexBuffer, Input, InputEvent, JsonLoader, KawaseEffect, LeftEraseEffect, Loader, Lottie2D, LottieLoader, MainLoop, MaskEffect, Material, Matrix, Matrix2, Matrix3, Matrix4, MouseInputEvent, Node, Node2D, PI, PI_2, PixelateEffect, PixelsTexture, PointerInputEvent, Projection2D, QuadGeometry, QuadUvGeometry, RAD_TO_DEG, 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, ShadowEffect, Text2D, TextLoader, Texture2D, TextureLoader, TextureRect2D, Ticker, TiltShiftEffect, Timeline, TimelineNode, Transform2D, TwistEffect, 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, ZoomBlurEffect, assets, clamp, createHTMLCanvas, createNode, crossOrigin, cubicBezier, curves, customNode, customNodes, defaultOptions, defineProperty, determineCrossOrigin, ease, easeIn, easeInOut, easeOut, getDeclarations, getDefaultCssPropertyValue, isCanvasElement, isElementNode, isImageElement, isPow2, isVideoElement, isWebgl2, lerp, linear, log2, mapWebGLBlendModes, nextPow2, nextTick, parseCssFunctions, parseCssProperty, property, protectedProperty, render, timingFunctions, uid };
|
|
12550
|
+
export { Animation, Assets, Audio, AudioPipeline, AudioProcessor, AudioSpectrum, AudioWaveform, BlurEffect, CanvasContext, CanvasEditor, CanvasItem, CanvasItemStyle, CanvasTexture, Color, ColorAdjustEffect, ColorFilterEffect, ColorMatrix, ColorOverlayEffect, ColorRemoveEffect, ColorReplaceEffect, ColorTexture, Control, CoreObject, DEG_TO_RAD, DEVICE_PIXEL_RATIO, Effect, EffectMaterial, EmbossEffect, Engine, EventEmitter, FontLoader, Geometry, GifLoader, GlitchEffect, GodrayEffect, Graphics2D, HTMLAudio, HTMLAudioContext, HTMLSound, IN_BROWSER, Image2D, Image2DResource, ImageTexture, IndexBuffer, Input, InputEvent, JsonLoader, KawaseEffect, LeftEraseEffect, Loader, Lottie2D, LottieLoader, MainLoop, MaskEffect, Material, Matrix, Matrix2, Matrix3, Matrix4, MouseInputEvent, Node, Node2D, 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, ShadowEffect, Text2D, TextLoader, Texture2D, TextureLoader, TextureRect2D, Ticker, TiltShiftEffect, Timeline, TimelineNode, Transform2D, TwistEffect, 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, createHTMLCanvas, createNode, crossOrigin, cubicBezier, curves, customNode, customNodes, defaultOptions, defineProperty, determineCrossOrigin, ease, easeIn, easeInOut, easeOut, getDeclarations, getDefaultCssPropertyValue, isCanvasElement, isElementNode, isImageElement, isPow2, isVideoElement, isWebgl2, lerp, linear, log2, mapWebGLBlendModes, nextPow2, nextTick, parseCssFunctions, parseCssProperty, property, protectedProperty, render, timingFunctions, uid };
|