modern-canvas 0.4.29 → 0.4.31
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 +408 -275
- package/dist/index.d.cts +109 -75
- package/dist/index.d.mts +109 -75
- package/dist/index.d.ts +109 -75
- package/dist/index.js +41 -41
- package/dist/index.mjs +407 -276
- package/package.json +8 -8
package/dist/index.cjs
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
const colord = require('colord');
|
|
4
4
|
const namesPlugin = require('colord/plugins/names');
|
|
5
|
-
const modernPath2d = require('modern-path2d');
|
|
6
5
|
const modernIdoc = require('modern-idoc');
|
|
6
|
+
const modernPath2d = require('modern-path2d');
|
|
7
7
|
const modernText = require('modern-text');
|
|
8
8
|
const load = require('yoga-layout/load');
|
|
9
9
|
|
|
@@ -534,7 +534,7 @@ class CoreObject extends EventEmitter {
|
|
|
534
534
|
return properties;
|
|
535
535
|
}
|
|
536
536
|
setProperties(properties) {
|
|
537
|
-
if (properties) {
|
|
537
|
+
if (properties && typeof properties === "object") {
|
|
538
538
|
for (const [name] of this.getPropertyDeclarations()) {
|
|
539
539
|
if (name in properties) {
|
|
540
540
|
this.setProperty(name, properties[name]);
|
|
@@ -2156,13 +2156,13 @@ class Vector3 extends Vector {
|
|
|
2156
2156
|
}
|
|
2157
2157
|
}
|
|
2158
2158
|
|
|
2159
|
-
var __defProp$
|
|
2160
|
-
var __decorateClass$
|
|
2159
|
+
var __defProp$Q = Object.defineProperty;
|
|
2160
|
+
var __decorateClass$Y = (decorators, target, key, kind) => {
|
|
2161
2161
|
var result = void 0 ;
|
|
2162
2162
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
2163
2163
|
if (decorator = decorators[i])
|
|
2164
2164
|
result = (decorator(target, key, result) ) || result;
|
|
2165
|
-
if (result) __defProp$
|
|
2165
|
+
if (result) __defProp$Q(target, key, result);
|
|
2166
2166
|
return result;
|
|
2167
2167
|
};
|
|
2168
2168
|
class MainLoop extends CoreObject {
|
|
@@ -2205,10 +2205,10 @@ class MainLoop extends CoreObject {
|
|
|
2205
2205
|
this.stop();
|
|
2206
2206
|
}
|
|
2207
2207
|
}
|
|
2208
|
-
__decorateClass$
|
|
2208
|
+
__decorateClass$Y([
|
|
2209
2209
|
property({ default: 24 })
|
|
2210
2210
|
], MainLoop.prototype, "fps");
|
|
2211
|
-
__decorateClass$
|
|
2211
|
+
__decorateClass$Y([
|
|
2212
2212
|
property({ default: 1 })
|
|
2213
2213
|
], MainLoop.prototype, "speed");
|
|
2214
2214
|
|
|
@@ -4510,13 +4510,13 @@ class Geometry extends Resource {
|
|
|
4510
4510
|
}
|
|
4511
4511
|
}
|
|
4512
4512
|
|
|
4513
|
-
var __defProp$
|
|
4514
|
-
var __decorateClass$
|
|
4513
|
+
var __defProp$P = Object.defineProperty;
|
|
4514
|
+
var __decorateClass$X = (decorators, target, key, kind) => {
|
|
4515
4515
|
var result = void 0 ;
|
|
4516
4516
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
4517
4517
|
if (decorator = decorators[i])
|
|
4518
4518
|
result = (decorator(target, key, result) ) || result;
|
|
4519
|
-
if (result) __defProp$
|
|
4519
|
+
if (result) __defProp$P(target, key, result);
|
|
4520
4520
|
return result;
|
|
4521
4521
|
};
|
|
4522
4522
|
class IndexBuffer extends Resource {
|
|
@@ -4560,20 +4560,20 @@ class IndexBuffer extends Resource {
|
|
|
4560
4560
|
return result;
|
|
4561
4561
|
}
|
|
4562
4562
|
}
|
|
4563
|
-
__decorateClass$
|
|
4563
|
+
__decorateClass$X([
|
|
4564
4564
|
protectedProperty({ default: null })
|
|
4565
4565
|
], IndexBuffer.prototype, "data");
|
|
4566
|
-
__decorateClass$
|
|
4566
|
+
__decorateClass$X([
|
|
4567
4567
|
protectedProperty({ default: false })
|
|
4568
4568
|
], IndexBuffer.prototype, "dynamic");
|
|
4569
4569
|
|
|
4570
|
-
var __defProp$
|
|
4571
|
-
var __decorateClass$
|
|
4570
|
+
var __defProp$O = Object.defineProperty;
|
|
4571
|
+
var __decorateClass$W = (decorators, target, key, kind) => {
|
|
4572
4572
|
var result = void 0 ;
|
|
4573
4573
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
4574
4574
|
if (decorator = decorators[i])
|
|
4575
4575
|
result = (decorator(target, key, result) ) || result;
|
|
4576
|
-
if (result) __defProp$
|
|
4576
|
+
if (result) __defProp$O(target, key, result);
|
|
4577
4577
|
return result;
|
|
4578
4578
|
};
|
|
4579
4579
|
class VertexBuffer extends Resource {
|
|
@@ -4617,20 +4617,20 @@ class VertexBuffer extends Resource {
|
|
|
4617
4617
|
return result;
|
|
4618
4618
|
}
|
|
4619
4619
|
}
|
|
4620
|
-
__decorateClass$
|
|
4620
|
+
__decorateClass$W([
|
|
4621
4621
|
protectedProperty({ default: null })
|
|
4622
4622
|
], VertexBuffer.prototype, "data");
|
|
4623
|
-
__decorateClass$
|
|
4623
|
+
__decorateClass$W([
|
|
4624
4624
|
protectedProperty({ default: false })
|
|
4625
4625
|
], VertexBuffer.prototype, "dynamic");
|
|
4626
4626
|
|
|
4627
|
-
var __defProp$
|
|
4628
|
-
var __decorateClass$
|
|
4627
|
+
var __defProp$N = Object.defineProperty;
|
|
4628
|
+
var __decorateClass$V = (decorators, target, key, kind) => {
|
|
4629
4629
|
var result = void 0 ;
|
|
4630
4630
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
4631
4631
|
if (decorator = decorators[i])
|
|
4632
4632
|
result = (decorator(target, key, result) ) || result;
|
|
4633
|
-
if (result) __defProp$
|
|
4633
|
+
if (result) __defProp$N(target, key, result);
|
|
4634
4634
|
return result;
|
|
4635
4635
|
};
|
|
4636
4636
|
class VertexAttribute extends Resource {
|
|
@@ -4667,25 +4667,25 @@ class VertexAttribute extends Resource {
|
|
|
4667
4667
|
return result;
|
|
4668
4668
|
}
|
|
4669
4669
|
}
|
|
4670
|
-
__decorateClass$
|
|
4670
|
+
__decorateClass$V([
|
|
4671
4671
|
protectedProperty()
|
|
4672
4672
|
], VertexAttribute.prototype, "buffer");
|
|
4673
|
-
__decorateClass$
|
|
4673
|
+
__decorateClass$V([
|
|
4674
4674
|
protectedProperty({ default: 0 })
|
|
4675
4675
|
], VertexAttribute.prototype, "size");
|
|
4676
|
-
__decorateClass$
|
|
4676
|
+
__decorateClass$V([
|
|
4677
4677
|
protectedProperty({ default: false })
|
|
4678
4678
|
], VertexAttribute.prototype, "normalized");
|
|
4679
|
-
__decorateClass$
|
|
4679
|
+
__decorateClass$V([
|
|
4680
4680
|
protectedProperty({ default: "float" })
|
|
4681
4681
|
], VertexAttribute.prototype, "type");
|
|
4682
|
-
__decorateClass$
|
|
4682
|
+
__decorateClass$V([
|
|
4683
4683
|
protectedProperty()
|
|
4684
4684
|
], VertexAttribute.prototype, "stride");
|
|
4685
|
-
__decorateClass$
|
|
4685
|
+
__decorateClass$V([
|
|
4686
4686
|
protectedProperty()
|
|
4687
4687
|
], VertexAttribute.prototype, "offset");
|
|
4688
|
-
__decorateClass$
|
|
4688
|
+
__decorateClass$V([
|
|
4689
4689
|
protectedProperty()
|
|
4690
4690
|
], VertexAttribute.prototype, "divisor");
|
|
4691
4691
|
|
|
@@ -4929,13 +4929,13 @@ class UvGeometry extends Geometry {
|
|
|
4929
4929
|
}
|
|
4930
4930
|
}
|
|
4931
4931
|
|
|
4932
|
-
var __defProp$
|
|
4933
|
-
var __decorateClass$
|
|
4932
|
+
var __defProp$M = Object.defineProperty;
|
|
4933
|
+
var __decorateClass$U = (decorators, target, key, kind) => {
|
|
4934
4934
|
var result = void 0 ;
|
|
4935
4935
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
4936
4936
|
if (decorator = decorators[i])
|
|
4937
4937
|
result = (decorator(target, key, result) ) || result;
|
|
4938
|
-
if (result) __defProp$
|
|
4938
|
+
if (result) __defProp$M(target, key, result);
|
|
4939
4939
|
return result;
|
|
4940
4940
|
};
|
|
4941
4941
|
class Texture2D extends Resource {
|
|
@@ -5061,22 +5061,22 @@ class Texture2D extends Resource {
|
|
|
5061
5061
|
}
|
|
5062
5062
|
}
|
|
5063
5063
|
}
|
|
5064
|
-
__decorateClass$
|
|
5064
|
+
__decorateClass$U([
|
|
5065
5065
|
protectedProperty()
|
|
5066
5066
|
], Texture2D.prototype, "source");
|
|
5067
|
-
__decorateClass$
|
|
5067
|
+
__decorateClass$U([
|
|
5068
5068
|
property({ default: 0 })
|
|
5069
5069
|
], Texture2D.prototype, "width");
|
|
5070
|
-
__decorateClass$
|
|
5070
|
+
__decorateClass$U([
|
|
5071
5071
|
property({ default: 0 })
|
|
5072
5072
|
], Texture2D.prototype, "height");
|
|
5073
|
-
__decorateClass$
|
|
5073
|
+
__decorateClass$U([
|
|
5074
5074
|
property({ default: "linear" })
|
|
5075
5075
|
], Texture2D.prototype, "filterMode");
|
|
5076
|
-
__decorateClass$
|
|
5076
|
+
__decorateClass$U([
|
|
5077
5077
|
property({ default: "clamp_to_edge" })
|
|
5078
5078
|
], Texture2D.prototype, "wrapMode");
|
|
5079
|
-
__decorateClass$
|
|
5079
|
+
__decorateClass$U([
|
|
5080
5080
|
property({ default: 1 })
|
|
5081
5081
|
], Texture2D.prototype, "pixelRatio");
|
|
5082
5082
|
|
|
@@ -5106,13 +5106,13 @@ class AnimatedTexture extends Resource {
|
|
|
5106
5106
|
}
|
|
5107
5107
|
}
|
|
5108
5108
|
|
|
5109
|
-
var __defProp$
|
|
5110
|
-
var __decorateClass$
|
|
5109
|
+
var __defProp$L = Object.defineProperty;
|
|
5110
|
+
var __decorateClass$T = (decorators, target, key, kind) => {
|
|
5111
5111
|
var result = void 0 ;
|
|
5112
5112
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
5113
5113
|
if (decorator = decorators[i])
|
|
5114
5114
|
result = (decorator(target, key, result) ) || result;
|
|
5115
|
-
if (result) __defProp$
|
|
5115
|
+
if (result) __defProp$L(target, key, result);
|
|
5116
5116
|
return result;
|
|
5117
5117
|
};
|
|
5118
5118
|
class CanvasTexture extends Texture2D {
|
|
@@ -5131,7 +5131,7 @@ class CanvasTexture extends Texture2D {
|
|
|
5131
5131
|
super._updateProperty(key, value, oldValue, declaration);
|
|
5132
5132
|
}
|
|
5133
5133
|
}
|
|
5134
|
-
__decorateClass$
|
|
5134
|
+
__decorateClass$T([
|
|
5135
5135
|
property({ default: 2 })
|
|
5136
5136
|
], CanvasTexture.prototype, "pixelRatio");
|
|
5137
5137
|
|
|
@@ -5293,13 +5293,13 @@ class PixelsTexture extends Texture2D {
|
|
|
5293
5293
|
}
|
|
5294
5294
|
}
|
|
5295
5295
|
|
|
5296
|
-
var __defProp$
|
|
5297
|
-
var __decorateClass$
|
|
5296
|
+
var __defProp$K = Object.defineProperty;
|
|
5297
|
+
var __decorateClass$S = (decorators, target, key, kind) => {
|
|
5298
5298
|
var result = void 0 ;
|
|
5299
5299
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
5300
5300
|
if (decorator = decorators[i])
|
|
5301
5301
|
result = (decorator(target, key, result) ) || result;
|
|
5302
|
-
if (result) __defProp$
|
|
5302
|
+
if (result) __defProp$K(target, key, result);
|
|
5303
5303
|
return result;
|
|
5304
5304
|
};
|
|
5305
5305
|
function resolveOptions(options) {
|
|
@@ -5543,10 +5543,10 @@ const _VideoTexture = class _VideoTexture extends Texture2D {
|
|
|
5543
5543
|
}
|
|
5544
5544
|
}
|
|
5545
5545
|
};
|
|
5546
|
-
__decorateClass$
|
|
5546
|
+
__decorateClass$S([
|
|
5547
5547
|
protectedProperty({ default: true })
|
|
5548
5548
|
], _VideoTexture.prototype, "autoUpdate");
|
|
5549
|
-
__decorateClass$
|
|
5549
|
+
__decorateClass$S([
|
|
5550
5550
|
protectedProperty({ default: 0 })
|
|
5551
5551
|
], _VideoTexture.prototype, "fps");
|
|
5552
5552
|
let VideoTexture = _VideoTexture;
|
|
@@ -5555,14 +5555,14 @@ class ViewportTexture extends PixelsTexture {
|
|
|
5555
5555
|
//
|
|
5556
5556
|
}
|
|
5557
5557
|
|
|
5558
|
-
var __defProp$
|
|
5558
|
+
var __defProp$J = Object.defineProperty;
|
|
5559
5559
|
var __getOwnPropDesc$I = Object.getOwnPropertyDescriptor;
|
|
5560
|
-
var __decorateClass$
|
|
5560
|
+
var __decorateClass$R = (decorators, target, key, kind) => {
|
|
5561
5561
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$I(target, key) : target;
|
|
5562
5562
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
5563
5563
|
if (decorator = decorators[i])
|
|
5564
5564
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5565
|
-
if (kind && result) __defProp$
|
|
5565
|
+
if (kind && result) __defProp$J(target, key, result);
|
|
5566
5566
|
return result;
|
|
5567
5567
|
};
|
|
5568
5568
|
const tagUidMap = {};
|
|
@@ -6065,36 +6065,36 @@ exports.Node = class Node extends CoreObject {
|
|
|
6065
6065
|
return node;
|
|
6066
6066
|
}
|
|
6067
6067
|
};
|
|
6068
|
-
__decorateClass$
|
|
6068
|
+
__decorateClass$R([
|
|
6069
6069
|
protectedProperty()
|
|
6070
6070
|
], exports.Node.prototype, "name", 2);
|
|
6071
|
-
__decorateClass$
|
|
6071
|
+
__decorateClass$R([
|
|
6072
6072
|
property()
|
|
6073
6073
|
], exports.Node.prototype, "mask", 2);
|
|
6074
|
-
__decorateClass$
|
|
6074
|
+
__decorateClass$R([
|
|
6075
6075
|
property({ default: "inherit" })
|
|
6076
6076
|
], exports.Node.prototype, "processMode", 2);
|
|
6077
|
-
__decorateClass$
|
|
6077
|
+
__decorateClass$R([
|
|
6078
6078
|
property({ default: "default" })
|
|
6079
6079
|
], exports.Node.prototype, "processSortMode", 2);
|
|
6080
|
-
__decorateClass$
|
|
6080
|
+
__decorateClass$R([
|
|
6081
6081
|
property({ default: "inherit" })
|
|
6082
6082
|
], exports.Node.prototype, "renderMode", 2);
|
|
6083
|
-
__decorateClass$
|
|
6083
|
+
__decorateClass$R([
|
|
6084
6084
|
property({ default: "default" })
|
|
6085
6085
|
], exports.Node.prototype, "internalMode", 2);
|
|
6086
|
-
exports.Node = __decorateClass$
|
|
6086
|
+
exports.Node = __decorateClass$R([
|
|
6087
6087
|
customNode("Node")
|
|
6088
6088
|
], exports.Node);
|
|
6089
6089
|
|
|
6090
|
-
var __defProp$
|
|
6090
|
+
var __defProp$I = Object.defineProperty;
|
|
6091
6091
|
var __getOwnPropDesc$H = Object.getOwnPropertyDescriptor;
|
|
6092
|
-
var __decorateClass$
|
|
6092
|
+
var __decorateClass$Q = (decorators, target, key, kind) => {
|
|
6093
6093
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$H(target, key) : target;
|
|
6094
6094
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6095
6095
|
if (decorator = decorators[i])
|
|
6096
6096
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6097
|
-
if (kind && result) __defProp$
|
|
6097
|
+
if (kind && result) __defProp$I(target, key, result);
|
|
6098
6098
|
return result;
|
|
6099
6099
|
};
|
|
6100
6100
|
exports.TimelineNode = class TimelineNode extends exports.Node {
|
|
@@ -6154,30 +6154,30 @@ exports.TimelineNode = class TimelineNode extends exports.Node {
|
|
|
6154
6154
|
this._updateCurrentTime();
|
|
6155
6155
|
}
|
|
6156
6156
|
};
|
|
6157
|
-
__decorateClass$
|
|
6157
|
+
__decorateClass$Q([
|
|
6158
6158
|
property({ default: 0 })
|
|
6159
6159
|
], exports.TimelineNode.prototype, "delay", 2);
|
|
6160
|
-
__decorateClass$
|
|
6160
|
+
__decorateClass$Q([
|
|
6161
6161
|
property({ default: 0 })
|
|
6162
6162
|
], exports.TimelineNode.prototype, "duration", 2);
|
|
6163
|
-
__decorateClass$
|
|
6163
|
+
__decorateClass$Q([
|
|
6164
6164
|
property({ default: false })
|
|
6165
6165
|
], exports.TimelineNode.prototype, "paused", 2);
|
|
6166
|
-
__decorateClass$
|
|
6166
|
+
__decorateClass$Q([
|
|
6167
6167
|
protectedProperty()
|
|
6168
6168
|
], exports.TimelineNode.prototype, "insideTimeRange", 2);
|
|
6169
|
-
exports.TimelineNode = __decorateClass$
|
|
6169
|
+
exports.TimelineNode = __decorateClass$Q([
|
|
6170
6170
|
customNode("TimelineNode")
|
|
6171
6171
|
], exports.TimelineNode);
|
|
6172
6172
|
|
|
6173
|
-
var __defProp$
|
|
6173
|
+
var __defProp$H = Object.defineProperty;
|
|
6174
6174
|
var __getOwnPropDesc$G = Object.getOwnPropertyDescriptor;
|
|
6175
|
-
var __decorateClass$
|
|
6175
|
+
var __decorateClass$P = (decorators, target, key, kind) => {
|
|
6176
6176
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$G(target, key) : target;
|
|
6177
6177
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6178
6178
|
if (decorator = decorators[i])
|
|
6179
6179
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6180
|
-
if (kind && result) __defProp$
|
|
6180
|
+
if (kind && result) __defProp$H(target, key, result);
|
|
6181
6181
|
return result;
|
|
6182
6182
|
};
|
|
6183
6183
|
exports.Viewport = class Viewport extends exports.Node {
|
|
@@ -6315,30 +6315,30 @@ exports.Viewport = class Viewport extends exports.Node {
|
|
|
6315
6315
|
return this._projection.toArray(transpose);
|
|
6316
6316
|
}
|
|
6317
6317
|
};
|
|
6318
|
-
__decorateClass$
|
|
6318
|
+
__decorateClass$P([
|
|
6319
6319
|
property({ default: 0 })
|
|
6320
6320
|
], exports.Viewport.prototype, "x", 2);
|
|
6321
|
-
__decorateClass$
|
|
6321
|
+
__decorateClass$P([
|
|
6322
6322
|
property({ default: 0 })
|
|
6323
6323
|
], exports.Viewport.prototype, "y", 2);
|
|
6324
|
-
__decorateClass$
|
|
6324
|
+
__decorateClass$P([
|
|
6325
6325
|
property({ default: 0 })
|
|
6326
6326
|
], exports.Viewport.prototype, "width", 2);
|
|
6327
|
-
__decorateClass$
|
|
6327
|
+
__decorateClass$P([
|
|
6328
6328
|
property({ default: 0 })
|
|
6329
6329
|
], exports.Viewport.prototype, "height", 2);
|
|
6330
|
-
exports.Viewport = __decorateClass$
|
|
6330
|
+
exports.Viewport = __decorateClass$P([
|
|
6331
6331
|
customNode("Viewport")
|
|
6332
6332
|
], exports.Viewport);
|
|
6333
6333
|
|
|
6334
|
-
var __defProp$
|
|
6334
|
+
var __defProp$G = Object.defineProperty;
|
|
6335
6335
|
var __getOwnPropDesc$F = Object.getOwnPropertyDescriptor;
|
|
6336
|
-
var __decorateClass$
|
|
6336
|
+
var __decorateClass$O = (decorators, target, key, kind) => {
|
|
6337
6337
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$F(target, key) : target;
|
|
6338
6338
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6339
6339
|
if (decorator = decorators[i])
|
|
6340
6340
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6341
|
-
if (kind && result) __defProp$
|
|
6341
|
+
if (kind && result) __defProp$G(target, key, result);
|
|
6342
6342
|
return result;
|
|
6343
6343
|
};
|
|
6344
6344
|
exports.Effect = class Effect extends exports.TimelineNode {
|
|
@@ -6579,31 +6579,31 @@ exports.Effect = class Effect extends exports.TimelineNode {
|
|
|
6579
6579
|
}
|
|
6580
6580
|
}
|
|
6581
6581
|
};
|
|
6582
|
-
__decorateClass$
|
|
6582
|
+
__decorateClass$O([
|
|
6583
6583
|
protectedProperty()
|
|
6584
6584
|
], exports.Effect.prototype, "material", 2);
|
|
6585
|
-
__decorateClass$
|
|
6585
|
+
__decorateClass$O([
|
|
6586
6586
|
property()
|
|
6587
6587
|
], exports.Effect.prototype, "effectMode", 2);
|
|
6588
|
-
__decorateClass$
|
|
6588
|
+
__decorateClass$O([
|
|
6589
6589
|
property({ default: "" })
|
|
6590
6590
|
], exports.Effect.prototype, "glsl", 2);
|
|
6591
|
-
__decorateClass$
|
|
6591
|
+
__decorateClass$O([
|
|
6592
6592
|
property({ default: "" })
|
|
6593
6593
|
], exports.Effect.prototype, "glslSrc", 2);
|
|
6594
|
-
exports.Effect = __decorateClass$
|
|
6594
|
+
exports.Effect = __decorateClass$O([
|
|
6595
6595
|
customNode("Effect")
|
|
6596
6596
|
], exports.Effect);
|
|
6597
6597
|
|
|
6598
|
-
var __defProp$
|
|
6598
|
+
var __defProp$F = Object.defineProperty;
|
|
6599
6599
|
var __getOwnPropDesc$E = Object.getOwnPropertyDescriptor;
|
|
6600
|
-
var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$
|
|
6601
|
-
var __decorateClass$
|
|
6600
|
+
var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6601
|
+
var __decorateClass$N = (decorators, target, key, kind) => {
|
|
6602
6602
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$E(target, key) : target;
|
|
6603
6603
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6604
6604
|
if (decorator = decorators[i])
|
|
6605
6605
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6606
|
-
if (kind && result) __defProp$
|
|
6606
|
+
if (kind && result) __defProp$F(target, key, result);
|
|
6607
6607
|
return result;
|
|
6608
6608
|
};
|
|
6609
6609
|
var __publicField$i = (obj, key, value) => __defNormalProp$i(obj, key + "" , value);
|
|
@@ -6663,43 +6663,43 @@ void main(void) {
|
|
|
6663
6663
|
gl_FragColor = c * alpha;
|
|
6664
6664
|
}`
|
|
6665
6665
|
}));
|
|
6666
|
-
__decorateClass$
|
|
6666
|
+
__decorateClass$N([
|
|
6667
6667
|
property({ default: 1 })
|
|
6668
6668
|
], exports.ColorAdjustEffect.prototype, "saturation", 2);
|
|
6669
|
-
__decorateClass$
|
|
6669
|
+
__decorateClass$N([
|
|
6670
6670
|
property({ default: 1 })
|
|
6671
6671
|
], exports.ColorAdjustEffect.prototype, "contrast", 2);
|
|
6672
|
-
__decorateClass$
|
|
6672
|
+
__decorateClass$N([
|
|
6673
6673
|
property({ default: 1 })
|
|
6674
6674
|
], exports.ColorAdjustEffect.prototype, "brightness", 2);
|
|
6675
|
-
__decorateClass$
|
|
6675
|
+
__decorateClass$N([
|
|
6676
6676
|
property({ default: 1 })
|
|
6677
6677
|
], exports.ColorAdjustEffect.prototype, "red", 2);
|
|
6678
|
-
__decorateClass$
|
|
6678
|
+
__decorateClass$N([
|
|
6679
6679
|
property({ default: 1 })
|
|
6680
6680
|
], exports.ColorAdjustEffect.prototype, "green", 2);
|
|
6681
|
-
__decorateClass$
|
|
6681
|
+
__decorateClass$N([
|
|
6682
6682
|
property({ default: 1 })
|
|
6683
6683
|
], exports.ColorAdjustEffect.prototype, "blue", 2);
|
|
6684
|
-
__decorateClass$
|
|
6684
|
+
__decorateClass$N([
|
|
6685
6685
|
property({ default: 1 })
|
|
6686
6686
|
], exports.ColorAdjustEffect.prototype, "alpha", 2);
|
|
6687
|
-
__decorateClass$
|
|
6687
|
+
__decorateClass$N([
|
|
6688
6688
|
property({ default: 1 })
|
|
6689
6689
|
], exports.ColorAdjustEffect.prototype, "gamma", 2);
|
|
6690
|
-
exports.ColorAdjustEffect = __decorateClass$
|
|
6690
|
+
exports.ColorAdjustEffect = __decorateClass$N([
|
|
6691
6691
|
customNode("ColorAdjustEffect")
|
|
6692
6692
|
], exports.ColorAdjustEffect);
|
|
6693
6693
|
|
|
6694
|
-
var __defProp$
|
|
6694
|
+
var __defProp$E = Object.defineProperty;
|
|
6695
6695
|
var __getOwnPropDesc$D = Object.getOwnPropertyDescriptor;
|
|
6696
|
-
var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$
|
|
6697
|
-
var __decorateClass$
|
|
6696
|
+
var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6697
|
+
var __decorateClass$M = (decorators, target, key, kind) => {
|
|
6698
6698
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$D(target, key) : target;
|
|
6699
6699
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6700
6700
|
if (decorator = decorators[i])
|
|
6701
6701
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6702
|
-
if (kind && result) __defProp$
|
|
6702
|
+
if (kind && result) __defProp$E(target, key, result);
|
|
6703
6703
|
return result;
|
|
6704
6704
|
};
|
|
6705
6705
|
var __publicField$h = (obj, key, value) => __defNormalProp$h(obj, key + "" , value);
|
|
@@ -6779,22 +6779,22 @@ void main(void) {
|
|
|
6779
6779
|
);
|
|
6780
6780
|
}`
|
|
6781
6781
|
}));
|
|
6782
|
-
__decorateClass$
|
|
6782
|
+
__decorateClass$M([
|
|
6783
6783
|
property()
|
|
6784
6784
|
], exports.ColorFilterEffect.prototype, "filter", 2);
|
|
6785
|
-
exports.ColorFilterEffect = __decorateClass$
|
|
6785
|
+
exports.ColorFilterEffect = __decorateClass$M([
|
|
6786
6786
|
customNode("ColorFilterEffect")
|
|
6787
6787
|
], exports.ColorFilterEffect);
|
|
6788
6788
|
|
|
6789
|
-
var __defProp$
|
|
6789
|
+
var __defProp$D = Object.defineProperty;
|
|
6790
6790
|
var __getOwnPropDesc$C = Object.getOwnPropertyDescriptor;
|
|
6791
|
-
var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$
|
|
6792
|
-
var __decorateClass$
|
|
6791
|
+
var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6792
|
+
var __decorateClass$L = (decorators, target, key, kind) => {
|
|
6793
6793
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$C(target, key) : target;
|
|
6794
6794
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6795
6795
|
if (decorator = decorators[i])
|
|
6796
6796
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6797
|
-
if (kind && result) __defProp$
|
|
6797
|
+
if (kind && result) __defProp$D(target, key, result);
|
|
6798
6798
|
return result;
|
|
6799
6799
|
};
|
|
6800
6800
|
var __publicField$g = (obj, key, value) => __defNormalProp$g(obj, key + "" , value);
|
|
@@ -6870,25 +6870,25 @@ void main(void) {
|
|
|
6870
6870
|
gl_FragColor = vec4(mix(color.rgb, mask.rgb, color.a * mask.a), color.a);
|
|
6871
6871
|
}`
|
|
6872
6872
|
}));
|
|
6873
|
-
__decorateClass$
|
|
6873
|
+
__decorateClass$L([
|
|
6874
6874
|
property({ default: [] })
|
|
6875
6875
|
], exports.ColorOverlayEffect.prototype, "colors", 2);
|
|
6876
|
-
__decorateClass$
|
|
6876
|
+
__decorateClass$L([
|
|
6877
6877
|
property({ default: 0.5 })
|
|
6878
6878
|
], exports.ColorOverlayEffect.prototype, "alpha", 2);
|
|
6879
|
-
exports.ColorOverlayEffect = __decorateClass$
|
|
6879
|
+
exports.ColorOverlayEffect = __decorateClass$L([
|
|
6880
6880
|
customNode("ColorOverlayEffect")
|
|
6881
6881
|
], exports.ColorOverlayEffect);
|
|
6882
6882
|
|
|
6883
|
-
var __defProp$
|
|
6883
|
+
var __defProp$C = Object.defineProperty;
|
|
6884
6884
|
var __getOwnPropDesc$B = Object.getOwnPropertyDescriptor;
|
|
6885
|
-
var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$
|
|
6886
|
-
var __decorateClass$
|
|
6885
|
+
var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6886
|
+
var __decorateClass$K = (decorators, target, key, kind) => {
|
|
6887
6887
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$B(target, key) : target;
|
|
6888
6888
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6889
6889
|
if (decorator = decorators[i])
|
|
6890
6890
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6891
|
-
if (kind && result) __defProp$
|
|
6891
|
+
if (kind && result) __defProp$C(target, key, result);
|
|
6892
6892
|
return result;
|
|
6893
6893
|
};
|
|
6894
6894
|
var __publicField$f = (obj, key, value) => __defNormalProp$f(obj, key + "" , value);
|
|
@@ -6955,25 +6955,25 @@ void main(void) {
|
|
|
6955
6955
|
gl_FragColor = color;
|
|
6956
6956
|
}`
|
|
6957
6957
|
}));
|
|
6958
|
-
__decorateClass$
|
|
6958
|
+
__decorateClass$K([
|
|
6959
6959
|
property({ default: [] })
|
|
6960
6960
|
], exports.ColorRemoveEffect.prototype, "colors", 2);
|
|
6961
|
-
__decorateClass$
|
|
6961
|
+
__decorateClass$K([
|
|
6962
6962
|
property({ default: 0.5 })
|
|
6963
6963
|
], exports.ColorRemoveEffect.prototype, "epsilon", 2);
|
|
6964
|
-
exports.ColorRemoveEffect = __decorateClass$
|
|
6964
|
+
exports.ColorRemoveEffect = __decorateClass$K([
|
|
6965
6965
|
customNode("ColorRemoveEffect")
|
|
6966
6966
|
], exports.ColorRemoveEffect);
|
|
6967
6967
|
|
|
6968
|
-
var __defProp$
|
|
6968
|
+
var __defProp$B = Object.defineProperty;
|
|
6969
6969
|
var __getOwnPropDesc$A = Object.getOwnPropertyDescriptor;
|
|
6970
|
-
var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$
|
|
6971
|
-
var __decorateClass$
|
|
6970
|
+
var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6971
|
+
var __decorateClass$J = (decorators, target, key, kind) => {
|
|
6972
6972
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$A(target, key) : target;
|
|
6973
6973
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6974
6974
|
if (decorator = decorators[i])
|
|
6975
6975
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6976
|
-
if (kind && result) __defProp$
|
|
6976
|
+
if (kind && result) __defProp$B(target, key, result);
|
|
6977
6977
|
return result;
|
|
6978
6978
|
};
|
|
6979
6979
|
var __publicField$e = (obj, key, value) => __defNormalProp$e(obj, key + "" , value);
|
|
@@ -7062,13 +7062,13 @@ void main(void) {
|
|
|
7062
7062
|
}
|
|
7063
7063
|
}`
|
|
7064
7064
|
}));
|
|
7065
|
-
__decorateClass$
|
|
7065
|
+
__decorateClass$J([
|
|
7066
7066
|
property({ default: [] })
|
|
7067
7067
|
], exports.ColorReplaceEffect.prototype, "colors", 2);
|
|
7068
|
-
__decorateClass$
|
|
7068
|
+
__decorateClass$J([
|
|
7069
7069
|
property({ default: 0.05 })
|
|
7070
7070
|
], exports.ColorReplaceEffect.prototype, "epsilon", 2);
|
|
7071
|
-
exports.ColorReplaceEffect = __decorateClass$
|
|
7071
|
+
exports.ColorReplaceEffect = __decorateClass$J([
|
|
7072
7072
|
customNode("ColorReplaceEffect")
|
|
7073
7073
|
], exports.ColorReplaceEffect);
|
|
7074
7074
|
|
|
@@ -7239,14 +7239,14 @@ class CanvasContext extends modernPath2d.Path2D {
|
|
|
7239
7239
|
}
|
|
7240
7240
|
}
|
|
7241
7241
|
|
|
7242
|
-
var __defProp$
|
|
7242
|
+
var __defProp$A = Object.defineProperty;
|
|
7243
7243
|
var __getOwnPropDesc$z = Object.getOwnPropertyDescriptor;
|
|
7244
|
-
var __decorateClass$
|
|
7244
|
+
var __decorateClass$I = (decorators, target, key, kind) => {
|
|
7245
7245
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$z(target, key) : target;
|
|
7246
7246
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
7247
7247
|
if (decorator = decorators[i])
|
|
7248
7248
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7249
|
-
if (kind && result) __defProp$
|
|
7249
|
+
if (kind && result) __defProp$A(target, key, result);
|
|
7250
7250
|
return result;
|
|
7251
7251
|
};
|
|
7252
7252
|
exports.CanvasItem = class CanvasItem extends exports.TimelineNode {
|
|
@@ -7407,19 +7407,19 @@ exports.CanvasItem = class CanvasItem extends exports.TimelineNode {
|
|
|
7407
7407
|
super._render(renderer);
|
|
7408
7408
|
}
|
|
7409
7409
|
};
|
|
7410
|
-
__decorateClass$
|
|
7410
|
+
__decorateClass$I([
|
|
7411
7411
|
property()
|
|
7412
7412
|
], exports.CanvasItem.prototype, "modulate", 2);
|
|
7413
|
-
__decorateClass$
|
|
7413
|
+
__decorateClass$I([
|
|
7414
7414
|
property()
|
|
7415
7415
|
], exports.CanvasItem.prototype, "blendMode", 2);
|
|
7416
|
-
__decorateClass$
|
|
7416
|
+
__decorateClass$I([
|
|
7417
7417
|
protectedProperty({ default: true })
|
|
7418
7418
|
], exports.CanvasItem.prototype, "visible", 2);
|
|
7419
|
-
__decorateClass$
|
|
7419
|
+
__decorateClass$I([
|
|
7420
7420
|
protectedProperty({ default: 1 })
|
|
7421
7421
|
], exports.CanvasItem.prototype, "opacity", 2);
|
|
7422
|
-
exports.CanvasItem = __decorateClass$
|
|
7422
|
+
exports.CanvasItem = __decorateClass$I([
|
|
7423
7423
|
customNode("CanvasItem")
|
|
7424
7424
|
], exports.CanvasItem);
|
|
7425
7425
|
|
|
@@ -7449,14 +7449,14 @@ class RenderStack {
|
|
|
7449
7449
|
}
|
|
7450
7450
|
}
|
|
7451
7451
|
|
|
7452
|
-
var __defProp$
|
|
7452
|
+
var __defProp$z = Object.defineProperty;
|
|
7453
7453
|
var __getOwnPropDesc$y = Object.getOwnPropertyDescriptor;
|
|
7454
|
-
var __decorateClass$
|
|
7454
|
+
var __decorateClass$H = (decorators, target, key, kind) => {
|
|
7455
7455
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$y(target, key) : target;
|
|
7456
7456
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
7457
7457
|
if (decorator = decorators[i])
|
|
7458
7458
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7459
|
-
if (kind && result) __defProp$
|
|
7459
|
+
if (kind && result) __defProp$z(target, key, result);
|
|
7460
7460
|
return result;
|
|
7461
7461
|
};
|
|
7462
7462
|
exports.Timeline = class Timeline extends exports.Node {
|
|
@@ -7501,29 +7501,29 @@ exports.Timeline = class Timeline extends exports.Node {
|
|
|
7501
7501
|
this.addTime(delta);
|
|
7502
7502
|
}
|
|
7503
7503
|
};
|
|
7504
|
-
__decorateClass$
|
|
7504
|
+
__decorateClass$H([
|
|
7505
7505
|
property({ default: 0 })
|
|
7506
7506
|
], exports.Timeline.prototype, "startTime", 2);
|
|
7507
|
-
__decorateClass$
|
|
7507
|
+
__decorateClass$H([
|
|
7508
7508
|
property({ default: 0 })
|
|
7509
7509
|
], exports.Timeline.prototype, "currentTime", 2);
|
|
7510
|
-
__decorateClass$
|
|
7510
|
+
__decorateClass$H([
|
|
7511
7511
|
property({ default: Number.MAX_SAFE_INTEGER })
|
|
7512
7512
|
], exports.Timeline.prototype, "endTime", 2);
|
|
7513
|
-
__decorateClass$
|
|
7513
|
+
__decorateClass$H([
|
|
7514
7514
|
property({ default: false })
|
|
7515
7515
|
], exports.Timeline.prototype, "loop", 2);
|
|
7516
|
-
exports.Timeline = __decorateClass$
|
|
7516
|
+
exports.Timeline = __decorateClass$H([
|
|
7517
7517
|
customNode("Timeline")
|
|
7518
7518
|
], exports.Timeline);
|
|
7519
7519
|
|
|
7520
|
-
var __defProp$
|
|
7521
|
-
var __decorateClass$
|
|
7520
|
+
var __defProp$y = Object.defineProperty;
|
|
7521
|
+
var __decorateClass$G = (decorators, target, key, kind) => {
|
|
7522
7522
|
var result = void 0 ;
|
|
7523
7523
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
7524
7524
|
if (decorator = decorators[i])
|
|
7525
7525
|
result = (decorator(target, key, result) ) || result;
|
|
7526
|
-
if (result) __defProp$
|
|
7526
|
+
if (result) __defProp$y(target, key, result);
|
|
7527
7527
|
return result;
|
|
7528
7528
|
};
|
|
7529
7529
|
class SceneTree extends MainLoop {
|
|
@@ -7596,18 +7596,18 @@ class SceneTree extends MainLoop {
|
|
|
7596
7596
|
this.input.removeEventListeners();
|
|
7597
7597
|
}
|
|
7598
7598
|
}
|
|
7599
|
-
__decorateClass$
|
|
7599
|
+
__decorateClass$G([
|
|
7600
7600
|
property({ default: false })
|
|
7601
7601
|
], SceneTree.prototype, "processPaused");
|
|
7602
|
-
__decorateClass$
|
|
7602
|
+
__decorateClass$G([
|
|
7603
7603
|
property()
|
|
7604
7604
|
], SceneTree.prototype, "backgroundColor");
|
|
7605
|
-
__decorateClass$
|
|
7605
|
+
__decorateClass$G([
|
|
7606
7606
|
protectedProperty({ default: false })
|
|
7607
7607
|
], SceneTree.prototype, "debug");
|
|
7608
7608
|
|
|
7609
7609
|
var __getOwnPropDesc$x = Object.getOwnPropertyDescriptor;
|
|
7610
|
-
var __decorateClass$
|
|
7610
|
+
var __decorateClass$F = (decorators, target, key, kind) => {
|
|
7611
7611
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$x(target, key) : target;
|
|
7612
7612
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
7613
7613
|
if (decorator = decorators[i])
|
|
@@ -7620,7 +7620,7 @@ exports.Transition = class Transition extends exports.Effect {
|
|
|
7620
7620
|
this.setProperties(properties).append(children);
|
|
7621
7621
|
}
|
|
7622
7622
|
};
|
|
7623
|
-
exports.Transition = __decorateClass$
|
|
7623
|
+
exports.Transition = __decorateClass$F([
|
|
7624
7624
|
customNode("Transition", {
|
|
7625
7625
|
effectMode: "transition",
|
|
7626
7626
|
processMode: "pausable",
|
|
@@ -7628,15 +7628,15 @@ exports.Transition = __decorateClass$D([
|
|
|
7628
7628
|
})
|
|
7629
7629
|
], exports.Transition);
|
|
7630
7630
|
|
|
7631
|
-
var __defProp$
|
|
7631
|
+
var __defProp$x = Object.defineProperty;
|
|
7632
7632
|
var __getOwnPropDesc$w = Object.getOwnPropertyDescriptor;
|
|
7633
|
-
var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$
|
|
7634
|
-
var __decorateClass$
|
|
7633
|
+
var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7634
|
+
var __decorateClass$E = (decorators, target, key, kind) => {
|
|
7635
7635
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$w(target, key) : target;
|
|
7636
7636
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
7637
7637
|
if (decorator = decorators[i])
|
|
7638
7638
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7639
|
-
if (kind && result) __defProp$
|
|
7639
|
+
if (kind && result) __defProp$x(target, key, result);
|
|
7640
7640
|
return result;
|
|
7641
7641
|
};
|
|
7642
7642
|
var __publicField$d = (obj, key, value) => __defNormalProp$d(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
@@ -7742,25 +7742,25 @@ void main(void) {
|
|
|
7742
7742
|
}`,
|
|
7743
7743
|
frag: frag$2
|
|
7744
7744
|
}));
|
|
7745
|
-
__decorateClass$
|
|
7745
|
+
__decorateClass$E([
|
|
7746
7746
|
property({ default: 4 })
|
|
7747
7747
|
], exports.GaussianBlurEffect.prototype, "strength", 2);
|
|
7748
|
-
__decorateClass$
|
|
7748
|
+
__decorateClass$E([
|
|
7749
7749
|
property({ default: 3 })
|
|
7750
7750
|
], exports.GaussianBlurEffect.prototype, "quality", 2);
|
|
7751
|
-
exports.GaussianBlurEffect = __decorateClass$
|
|
7751
|
+
exports.GaussianBlurEffect = __decorateClass$E([
|
|
7752
7752
|
customNode("GaussianBlurEffect")
|
|
7753
7753
|
], exports.GaussianBlurEffect);
|
|
7754
7754
|
|
|
7755
|
-
var __defProp$
|
|
7755
|
+
var __defProp$w = Object.defineProperty;
|
|
7756
7756
|
var __getOwnPropDesc$v = Object.getOwnPropertyDescriptor;
|
|
7757
|
-
var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$
|
|
7758
|
-
var __decorateClass$
|
|
7757
|
+
var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7758
|
+
var __decorateClass$D = (decorators, target, key, kind) => {
|
|
7759
7759
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$v(target, key) : target;
|
|
7760
7760
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
7761
7761
|
if (decorator = decorators[i])
|
|
7762
7762
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7763
|
-
if (kind && result) __defProp$
|
|
7763
|
+
if (kind && result) __defProp$w(target, key, result);
|
|
7764
7764
|
return result;
|
|
7765
7765
|
};
|
|
7766
7766
|
var __publicField$c = (obj, key, value) => __defNormalProp$c(obj, key + "" , value);
|
|
@@ -7824,34 +7824,34 @@ void main(void) {
|
|
|
7824
7824
|
gl_FragColor = sample;
|
|
7825
7825
|
}`
|
|
7826
7826
|
}));
|
|
7827
|
-
__decorateClass$
|
|
7827
|
+
__decorateClass$D([
|
|
7828
7828
|
property({ default: 0 })
|
|
7829
7829
|
], exports.DropShadowEffect.prototype, "color", 2);
|
|
7830
|
-
__decorateClass$
|
|
7830
|
+
__decorateClass$D([
|
|
7831
7831
|
property({ default: 4 })
|
|
7832
7832
|
], exports.DropShadowEffect.prototype, "blur", 2);
|
|
7833
|
-
__decorateClass$
|
|
7833
|
+
__decorateClass$D([
|
|
7834
7834
|
property({ default: 4 })
|
|
7835
7835
|
], exports.DropShadowEffect.prototype, "offsetX", 2);
|
|
7836
|
-
__decorateClass$
|
|
7836
|
+
__decorateClass$D([
|
|
7837
7837
|
property({ default: 4 })
|
|
7838
7838
|
], exports.DropShadowEffect.prototype, "offsetY", 2);
|
|
7839
|
-
__decorateClass$
|
|
7839
|
+
__decorateClass$D([
|
|
7840
7840
|
property({ default: false })
|
|
7841
7841
|
], exports.DropShadowEffect.prototype, "shadowOnly", 2);
|
|
7842
|
-
exports.DropShadowEffect = __decorateClass$
|
|
7842
|
+
exports.DropShadowEffect = __decorateClass$D([
|
|
7843
7843
|
customNode("DropShadowEffect")
|
|
7844
7844
|
], exports.DropShadowEffect);
|
|
7845
7845
|
|
|
7846
|
-
var __defProp$
|
|
7846
|
+
var __defProp$v = Object.defineProperty;
|
|
7847
7847
|
var __getOwnPropDesc$u = Object.getOwnPropertyDescriptor;
|
|
7848
|
-
var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$
|
|
7849
|
-
var __decorateClass$
|
|
7848
|
+
var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7849
|
+
var __decorateClass$C = (decorators, target, key, kind) => {
|
|
7850
7850
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$u(target, key) : target;
|
|
7851
7851
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
7852
7852
|
if (decorator = decorators[i])
|
|
7853
7853
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7854
|
-
if (kind && result) __defProp$
|
|
7854
|
+
if (kind && result) __defProp$v(target, key, result);
|
|
7855
7855
|
return result;
|
|
7856
7856
|
};
|
|
7857
7857
|
var __publicField$b = (obj, key, value) => __defNormalProp$b(obj, key + "" , value);
|
|
@@ -7896,22 +7896,22 @@ void main(void) {
|
|
|
7896
7896
|
gl_FragColor = vec4(color.rgb * alpha, alpha);
|
|
7897
7897
|
}`
|
|
7898
7898
|
}));
|
|
7899
|
-
__decorateClass$
|
|
7899
|
+
__decorateClass$C([
|
|
7900
7900
|
property({ default: 5 })
|
|
7901
7901
|
], exports.EmbossEffect.prototype, "strength", 2);
|
|
7902
|
-
exports.EmbossEffect = __decorateClass$
|
|
7902
|
+
exports.EmbossEffect = __decorateClass$C([
|
|
7903
7903
|
customNode("EmbossEffect")
|
|
7904
7904
|
], exports.EmbossEffect);
|
|
7905
7905
|
|
|
7906
|
-
var __defProp$
|
|
7906
|
+
var __defProp$u = Object.defineProperty;
|
|
7907
7907
|
var __getOwnPropDesc$t = Object.getOwnPropertyDescriptor;
|
|
7908
|
-
var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$
|
|
7909
|
-
var __decorateClass$
|
|
7908
|
+
var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7909
|
+
var __decorateClass$B = (decorators, target, key, kind) => {
|
|
7910
7910
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$t(target, key) : target;
|
|
7911
7911
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
7912
7912
|
if (decorator = decorators[i])
|
|
7913
7913
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7914
|
-
if (kind && result) __defProp$
|
|
7914
|
+
if (kind && result) __defProp$u(target, key, result);
|
|
7915
7915
|
return result;
|
|
7916
7916
|
};
|
|
7917
7917
|
var __publicField$a = (obj, key, value) => __defNormalProp$a(obj, key + "" , value);
|
|
@@ -8085,46 +8085,46 @@ void main(void) {
|
|
|
8085
8085
|
gl_FragColor.a = texture2D(sampler, coord).a;
|
|
8086
8086
|
}`
|
|
8087
8087
|
}));
|
|
8088
|
-
__decorateClass$
|
|
8088
|
+
__decorateClass$B([
|
|
8089
8089
|
property({ default: 10 })
|
|
8090
8090
|
], exports.GlitchEffect.prototype, "slices", 2);
|
|
8091
|
-
__decorateClass$
|
|
8091
|
+
__decorateClass$B([
|
|
8092
8092
|
property({ default: 512 })
|
|
8093
8093
|
], exports.GlitchEffect.prototype, "sampleSize", 2);
|
|
8094
|
-
__decorateClass$
|
|
8094
|
+
__decorateClass$B([
|
|
8095
8095
|
property({ default: 100 })
|
|
8096
8096
|
], exports.GlitchEffect.prototype, "offset", 2);
|
|
8097
|
-
__decorateClass$
|
|
8097
|
+
__decorateClass$B([
|
|
8098
8098
|
property({ default: 0 })
|
|
8099
8099
|
], exports.GlitchEffect.prototype, "direction", 2);
|
|
8100
|
-
__decorateClass$
|
|
8100
|
+
__decorateClass$B([
|
|
8101
8101
|
property({ default: 2 })
|
|
8102
8102
|
], exports.GlitchEffect.prototype, "fillMode", 2);
|
|
8103
|
-
__decorateClass$
|
|
8103
|
+
__decorateClass$B([
|
|
8104
8104
|
property({ default: 0 })
|
|
8105
8105
|
], exports.GlitchEffect.prototype, "seed", 2);
|
|
8106
|
-
__decorateClass$
|
|
8106
|
+
__decorateClass$B([
|
|
8107
8107
|
property({ default: [2, 2] })
|
|
8108
8108
|
], exports.GlitchEffect.prototype, "red", 2);
|
|
8109
|
-
__decorateClass$
|
|
8109
|
+
__decorateClass$B([
|
|
8110
8110
|
property({ default: [-10, 4] })
|
|
8111
8111
|
], exports.GlitchEffect.prototype, "green", 2);
|
|
8112
|
-
__decorateClass$
|
|
8112
|
+
__decorateClass$B([
|
|
8113
8113
|
property({ default: [10, -4] })
|
|
8114
8114
|
], exports.GlitchEffect.prototype, "blue", 2);
|
|
8115
|
-
exports.GlitchEffect = __decorateClass$
|
|
8115
|
+
exports.GlitchEffect = __decorateClass$B([
|
|
8116
8116
|
customNode("GlitchEffect")
|
|
8117
8117
|
], exports.GlitchEffect);
|
|
8118
8118
|
|
|
8119
|
-
var __defProp$
|
|
8119
|
+
var __defProp$t = Object.defineProperty;
|
|
8120
8120
|
var __getOwnPropDesc$s = Object.getOwnPropertyDescriptor;
|
|
8121
|
-
var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$
|
|
8122
|
-
var __decorateClass$
|
|
8121
|
+
var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8122
|
+
var __decorateClass$A = (decorators, target, key, kind) => {
|
|
8123
8123
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$s(target, key) : target;
|
|
8124
8124
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
8125
8125
|
if (decorator = decorators[i])
|
|
8126
8126
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8127
|
-
if (kind && result) __defProp$
|
|
8127
|
+
if (kind && result) __defProp$t(target, key, result);
|
|
8128
8128
|
return result;
|
|
8129
8129
|
};
|
|
8130
8130
|
var __publicField$9 = (obj, key, value) => __defNormalProp$9(obj, key + "" , value);
|
|
@@ -8302,39 +8302,39 @@ void main(void) {
|
|
|
8302
8302
|
gl_FragColor = vec4(color.rgb + mist.rgb, color.a);
|
|
8303
8303
|
}`
|
|
8304
8304
|
}));
|
|
8305
|
-
__decorateClass$
|
|
8305
|
+
__decorateClass$A([
|
|
8306
8306
|
property({ default: 0 })
|
|
8307
8307
|
], exports.GodrayEffect.prototype, "time", 2);
|
|
8308
|
-
__decorateClass$
|
|
8308
|
+
__decorateClass$A([
|
|
8309
8309
|
property({ default: 30 })
|
|
8310
8310
|
], exports.GodrayEffect.prototype, "angle", 2);
|
|
8311
|
-
__decorateClass$
|
|
8311
|
+
__decorateClass$A([
|
|
8312
8312
|
property({ default: 0.5 })
|
|
8313
8313
|
], exports.GodrayEffect.prototype, "gain", 2);
|
|
8314
|
-
__decorateClass$
|
|
8314
|
+
__decorateClass$A([
|
|
8315
8315
|
property({ default: 2.5 })
|
|
8316
8316
|
], exports.GodrayEffect.prototype, "lacunarity", 2);
|
|
8317
|
-
__decorateClass$
|
|
8317
|
+
__decorateClass$A([
|
|
8318
8318
|
property({ default: true })
|
|
8319
8319
|
], exports.GodrayEffect.prototype, "parallel", 2);
|
|
8320
|
-
__decorateClass$
|
|
8320
|
+
__decorateClass$A([
|
|
8321
8321
|
property({ default: [0, 0] })
|
|
8322
8322
|
], exports.GodrayEffect.prototype, "center", 2);
|
|
8323
|
-
__decorateClass$
|
|
8323
|
+
__decorateClass$A([
|
|
8324
8324
|
property({ default: 1 })
|
|
8325
8325
|
], exports.GodrayEffect.prototype, "alpha", 2);
|
|
8326
|
-
exports.GodrayEffect = __decorateClass$
|
|
8326
|
+
exports.GodrayEffect = __decorateClass$A([
|
|
8327
8327
|
customNode("GodrayEffect")
|
|
8328
8328
|
], exports.GodrayEffect);
|
|
8329
8329
|
|
|
8330
|
-
var __defProp$
|
|
8330
|
+
var __defProp$s = Object.defineProperty;
|
|
8331
8331
|
var __getOwnPropDesc$r = Object.getOwnPropertyDescriptor;
|
|
8332
|
-
var __decorateClass$
|
|
8332
|
+
var __decorateClass$z = (decorators, target, key, kind) => {
|
|
8333
8333
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$r(target, key) : target;
|
|
8334
8334
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
8335
8335
|
if (decorator = decorators[i])
|
|
8336
8336
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8337
|
-
if (kind && result) __defProp$
|
|
8337
|
+
if (kind && result) __defProp$s(target, key, result);
|
|
8338
8338
|
return result;
|
|
8339
8339
|
};
|
|
8340
8340
|
const frag$1 = `varying vec2 vUv;
|
|
@@ -8425,28 +8425,28 @@ void main() {
|
|
|
8425
8425
|
});
|
|
8426
8426
|
}
|
|
8427
8427
|
};
|
|
8428
|
-
__decorateClass$
|
|
8428
|
+
__decorateClass$z([
|
|
8429
8429
|
property({ default: 4 })
|
|
8430
8430
|
], exports.KawaseBlurEffect.prototype, "strength", 2);
|
|
8431
|
-
__decorateClass$
|
|
8431
|
+
__decorateClass$z([
|
|
8432
8432
|
property({ default: 3 })
|
|
8433
8433
|
], exports.KawaseBlurEffect.prototype, "quality", 2);
|
|
8434
|
-
__decorateClass$
|
|
8434
|
+
__decorateClass$z([
|
|
8435
8435
|
property({ default: [1, 1] })
|
|
8436
8436
|
], exports.KawaseBlurEffect.prototype, "pixelSize", 2);
|
|
8437
|
-
exports.KawaseBlurEffect = __decorateClass$
|
|
8437
|
+
exports.KawaseBlurEffect = __decorateClass$z([
|
|
8438
8438
|
customNode("KawaseBlurEffect")
|
|
8439
8439
|
], exports.KawaseBlurEffect);
|
|
8440
8440
|
|
|
8441
|
-
var __defProp$
|
|
8441
|
+
var __defProp$r = Object.defineProperty;
|
|
8442
8442
|
var __getOwnPropDesc$q = Object.getOwnPropertyDescriptor;
|
|
8443
|
-
var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$
|
|
8444
|
-
var __decorateClass$
|
|
8443
|
+
var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8444
|
+
var __decorateClass$y = (decorators, target, key, kind) => {
|
|
8445
8445
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$q(target, key) : target;
|
|
8446
8446
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
8447
8447
|
if (decorator = decorators[i])
|
|
8448
8448
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8449
|
-
if (kind && result) __defProp$
|
|
8449
|
+
if (kind && result) __defProp$r(target, key, result);
|
|
8450
8450
|
return result;
|
|
8451
8451
|
};
|
|
8452
8452
|
var __publicField$8 = (obj, key, value) => __defNormalProp$8(obj, key + "" , value);
|
|
@@ -8535,25 +8535,25 @@ void main(void) {
|
|
|
8535
8535
|
}
|
|
8536
8536
|
}`
|
|
8537
8537
|
}));
|
|
8538
|
-
__decorateClass$
|
|
8538
|
+
__decorateClass$y([
|
|
8539
8539
|
protectedProperty()
|
|
8540
8540
|
], exports.MaskEffect.prototype, "texture", 2);
|
|
8541
|
-
__decorateClass$
|
|
8541
|
+
__decorateClass$y([
|
|
8542
8542
|
property({ default: "" })
|
|
8543
8543
|
], exports.MaskEffect.prototype, "src", 2);
|
|
8544
|
-
exports.MaskEffect = __decorateClass$
|
|
8544
|
+
exports.MaskEffect = __decorateClass$y([
|
|
8545
8545
|
customNode("MaskEffect")
|
|
8546
8546
|
], exports.MaskEffect);
|
|
8547
8547
|
|
|
8548
|
-
var __defProp$
|
|
8548
|
+
var __defProp$q = Object.defineProperty;
|
|
8549
8549
|
var __getOwnPropDesc$p = Object.getOwnPropertyDescriptor;
|
|
8550
|
-
var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$
|
|
8551
|
-
var __decorateClass$
|
|
8550
|
+
var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8551
|
+
var __decorateClass$x = (decorators, target, key, kind) => {
|
|
8552
8552
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$p(target, key) : target;
|
|
8553
8553
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
8554
8554
|
if (decorator = decorators[i])
|
|
8555
8555
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8556
|
-
if (kind && result) __defProp$
|
|
8556
|
+
if (kind && result) __defProp$q(target, key, result);
|
|
8557
8557
|
return result;
|
|
8558
8558
|
};
|
|
8559
8559
|
var __publicField$7 = (obj, key, value) => __defNormalProp$7(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
@@ -8641,40 +8641,40 @@ void main() {
|
|
|
8641
8641
|
};
|
|
8642
8642
|
__publicField$7(exports.OutlineEffect, "MIN_SAMPLES", 1);
|
|
8643
8643
|
__publicField$7(exports.OutlineEffect, "MAX_SAMPLES", 100);
|
|
8644
|
-
__decorateClass$
|
|
8644
|
+
__decorateClass$x([
|
|
8645
8645
|
property({ default: 0 })
|
|
8646
8646
|
], exports.OutlineEffect.prototype, "color", 2);
|
|
8647
|
-
__decorateClass$
|
|
8647
|
+
__decorateClass$x([
|
|
8648
8648
|
property({ default: 1 })
|
|
8649
8649
|
], exports.OutlineEffect.prototype, "width", 2);
|
|
8650
|
-
__decorateClass$
|
|
8650
|
+
__decorateClass$x([
|
|
8651
8651
|
property({ default: "solid" })
|
|
8652
8652
|
], exports.OutlineEffect.prototype, "style", 2);
|
|
8653
|
-
__decorateClass$
|
|
8653
|
+
__decorateClass$x([
|
|
8654
8654
|
property()
|
|
8655
8655
|
], exports.OutlineEffect.prototype, "image", 2);
|
|
8656
|
-
__decorateClass$
|
|
8656
|
+
__decorateClass$x([
|
|
8657
8657
|
property({ default: 1 })
|
|
8658
8658
|
], exports.OutlineEffect.prototype, "opacity", 2);
|
|
8659
|
-
__decorateClass$
|
|
8659
|
+
__decorateClass$x([
|
|
8660
8660
|
property({ default: 0.1 })
|
|
8661
8661
|
], exports.OutlineEffect.prototype, "quality", 2);
|
|
8662
|
-
__decorateClass$
|
|
8662
|
+
__decorateClass$x([
|
|
8663
8663
|
property({ default: false })
|
|
8664
8664
|
], exports.OutlineEffect.prototype, "knockout", 2);
|
|
8665
|
-
exports.OutlineEffect = __decorateClass$
|
|
8665
|
+
exports.OutlineEffect = __decorateClass$x([
|
|
8666
8666
|
customNode("OutlineEffect")
|
|
8667
8667
|
], exports.OutlineEffect);
|
|
8668
8668
|
|
|
8669
|
-
var __defProp$
|
|
8669
|
+
var __defProp$p = Object.defineProperty;
|
|
8670
8670
|
var __getOwnPropDesc$o = Object.getOwnPropertyDescriptor;
|
|
8671
|
-
var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$
|
|
8672
|
-
var __decorateClass$
|
|
8671
|
+
var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8672
|
+
var __decorateClass$w = (decorators, target, key, kind) => {
|
|
8673
8673
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$o(target, key) : target;
|
|
8674
8674
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
8675
8675
|
if (decorator = decorators[i])
|
|
8676
8676
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8677
|
-
if (kind && result) __defProp$
|
|
8677
|
+
if (kind && result) __defProp$p(target, key, result);
|
|
8678
8678
|
return result;
|
|
8679
8679
|
};
|
|
8680
8680
|
var __publicField$6 = (obj, key, value) => __defNormalProp$6(obj, key + "" , value);
|
|
@@ -8730,22 +8730,22 @@ void main(void) {
|
|
|
8730
8730
|
gl_FragColor = texture2D(sampler, coord);
|
|
8731
8731
|
}`
|
|
8732
8732
|
}));
|
|
8733
|
-
__decorateClass$
|
|
8733
|
+
__decorateClass$w([
|
|
8734
8734
|
property({ default: 10 })
|
|
8735
8735
|
], exports.PixelateEffect.prototype, "strength", 2);
|
|
8736
|
-
exports.PixelateEffect = __decorateClass$
|
|
8736
|
+
exports.PixelateEffect = __decorateClass$w([
|
|
8737
8737
|
customNode("PixelateEffect")
|
|
8738
8738
|
], exports.PixelateEffect);
|
|
8739
8739
|
|
|
8740
|
-
var __defProp$
|
|
8740
|
+
var __defProp$o = Object.defineProperty;
|
|
8741
8741
|
var __getOwnPropDesc$n = Object.getOwnPropertyDescriptor;
|
|
8742
|
-
var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$
|
|
8743
|
-
var __decorateClass$
|
|
8742
|
+
var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8743
|
+
var __decorateClass$v = (decorators, target, key, kind) => {
|
|
8744
8744
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$n(target, key) : target;
|
|
8745
8745
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
8746
8746
|
if (decorator = decorators[i])
|
|
8747
8747
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8748
|
-
if (kind && result) __defProp$
|
|
8748
|
+
if (kind && result) __defProp$o(target, key, result);
|
|
8749
8749
|
return result;
|
|
8750
8750
|
};
|
|
8751
8751
|
var __publicField$5 = (obj, key, value) => __defNormalProp$5(obj, key + "" , value);
|
|
@@ -8858,38 +8858,40 @@ void main() {
|
|
|
8858
8858
|
gl_FragColor = color;
|
|
8859
8859
|
}`
|
|
8860
8860
|
}));
|
|
8861
|
-
__decorateClass$
|
|
8861
|
+
__decorateClass$v([
|
|
8862
8862
|
property()
|
|
8863
8863
|
], exports.ZoomBlurEffect.prototype, "center", 2);
|
|
8864
|
-
__decorateClass$
|
|
8864
|
+
__decorateClass$v([
|
|
8865
8865
|
property({ default: 20 })
|
|
8866
8866
|
], exports.ZoomBlurEffect.prototype, "innerRadius", 2);
|
|
8867
|
-
__decorateClass$
|
|
8867
|
+
__decorateClass$v([
|
|
8868
8868
|
property({ default: -1 })
|
|
8869
8869
|
], exports.ZoomBlurEffect.prototype, "radius", 2);
|
|
8870
|
-
__decorateClass$
|
|
8870
|
+
__decorateClass$v([
|
|
8871
8871
|
property({ default: 0.1 })
|
|
8872
8872
|
], exports.ZoomBlurEffect.prototype, "strength", 2);
|
|
8873
|
-
exports.ZoomBlurEffect = __decorateClass$
|
|
8873
|
+
exports.ZoomBlurEffect = __decorateClass$v([
|
|
8874
8874
|
customNode("ZoomBlurEffect")
|
|
8875
8875
|
], exports.ZoomBlurEffect);
|
|
8876
8876
|
|
|
8877
|
-
var __defProp$
|
|
8878
|
-
var __decorateClass$
|
|
8877
|
+
var __defProp$n = Object.defineProperty;
|
|
8878
|
+
var __decorateClass$u = (decorators, target, key, kind) => {
|
|
8879
8879
|
var result = void 0 ;
|
|
8880
8880
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
8881
8881
|
if (decorator = decorators[i])
|
|
8882
8882
|
result = (decorator(target, key, result) ) || result;
|
|
8883
|
-
if (result) __defProp$
|
|
8883
|
+
if (result) __defProp$n(target, key, result);
|
|
8884
8884
|
return result;
|
|
8885
8885
|
};
|
|
8886
8886
|
class BaseElement2DFill extends CoreObject {
|
|
8887
|
-
constructor(parent
|
|
8887
|
+
constructor(parent) {
|
|
8888
8888
|
super();
|
|
8889
8889
|
this.parent = parent;
|
|
8890
|
-
this.setProperties(properties);
|
|
8891
8890
|
}
|
|
8892
|
-
|
|
8891
|
+
_src;
|
|
8892
|
+
setProperties(properties) {
|
|
8893
|
+
return super.setProperties(modernIdoc.normalizeFill(properties));
|
|
8894
|
+
}
|
|
8893
8895
|
_updateProperty(key, value, oldValue, declaration) {
|
|
8894
8896
|
super._updateProperty(key, value, oldValue, declaration);
|
|
8895
8897
|
switch (key) {
|
|
@@ -8899,31 +8901,47 @@ class BaseElement2DFill extends CoreObject {
|
|
|
8899
8901
|
case "tile":
|
|
8900
8902
|
this.parent.requestRedraw();
|
|
8901
8903
|
break;
|
|
8902
|
-
case "
|
|
8903
|
-
this.
|
|
8904
|
+
case "src":
|
|
8905
|
+
this._updateSource();
|
|
8904
8906
|
break;
|
|
8905
8907
|
}
|
|
8906
8908
|
}
|
|
8907
|
-
async
|
|
8908
|
-
if (this.
|
|
8909
|
-
return await assets.texture.load(this.
|
|
8909
|
+
async loadSource() {
|
|
8910
|
+
if (this.src && this.src !== "none") {
|
|
8911
|
+
return await assets.texture.load(this.src);
|
|
8910
8912
|
}
|
|
8911
8913
|
}
|
|
8912
|
-
async
|
|
8913
|
-
this.
|
|
8914
|
+
async _updateSource() {
|
|
8915
|
+
this._src = await this.loadSource();
|
|
8914
8916
|
this.parent.requestRedraw();
|
|
8915
8917
|
}
|
|
8916
8918
|
canDraw() {
|
|
8917
8919
|
return Boolean(
|
|
8918
|
-
this.
|
|
8920
|
+
this._src || this.color
|
|
8919
8921
|
);
|
|
8920
8922
|
}
|
|
8921
8923
|
draw() {
|
|
8922
8924
|
const ctx = this.parent.context;
|
|
8923
|
-
if (this.
|
|
8924
|
-
const { width: imageWidth, height: imageHeight } = this.
|
|
8925
|
+
if (this._src) {
|
|
8926
|
+
const { width: imageWidth, height: imageHeight } = this._src;
|
|
8925
8927
|
const { width, height } = this.parent.size;
|
|
8926
8928
|
const transform = new Transform2D();
|
|
8929
|
+
let disableWrapMode = false;
|
|
8930
|
+
if (this.srcRect) {
|
|
8931
|
+
const {
|
|
8932
|
+
left = 0,
|
|
8933
|
+
top = 0,
|
|
8934
|
+
right = 0,
|
|
8935
|
+
bottom = 0
|
|
8936
|
+
} = this.srcRect;
|
|
8937
|
+
const w = Math.abs(1 + (left + right)) * width;
|
|
8938
|
+
const h = Math.abs(1 + (top + bottom)) * height;
|
|
8939
|
+
const sx = 1 / w;
|
|
8940
|
+
const sy = 1 / h;
|
|
8941
|
+
const tx = left * width * sx;
|
|
8942
|
+
const ty = top * height * sy;
|
|
8943
|
+
transform.scale(sx, sy).translate(tx, ty);
|
|
8944
|
+
}
|
|
8927
8945
|
if (this.tile) {
|
|
8928
8946
|
const {
|
|
8929
8947
|
translateX = 0,
|
|
@@ -8934,6 +8952,7 @@ class BaseElement2DFill extends CoreObject {
|
|
|
8934
8952
|
// alignment, TODO
|
|
8935
8953
|
} = this.tile;
|
|
8936
8954
|
transform.scale(1 / imageWidth, 1 / imageHeight).scale(1 / scaleX, 1 / scaleY).translate(-translateX / imageWidth, -translateY / imageHeight);
|
|
8955
|
+
disableWrapMode = true;
|
|
8937
8956
|
} else if (this.stretch) {
|
|
8938
8957
|
const { left = 0, top = 0, right = 0, bottom = 0 } = this.stretch.rect ?? {};
|
|
8939
8958
|
const w = Math.abs(1 + (-left + -right)) * width;
|
|
@@ -8943,13 +8962,14 @@ class BaseElement2DFill extends CoreObject {
|
|
|
8943
8962
|
const translateX = -left * width * scaleX;
|
|
8944
8963
|
const translateY = -top * height * scaleY;
|
|
8945
8964
|
transform.scale(scaleX, scaleY).translate(translateX, translateY);
|
|
8965
|
+
disableWrapMode = true;
|
|
8946
8966
|
} else {
|
|
8947
8967
|
transform.scale(1 / width, 1 / height);
|
|
8948
8968
|
}
|
|
8949
8969
|
ctx.textureTransform = transform;
|
|
8950
|
-
ctx.fillStyle = this.
|
|
8970
|
+
ctx.fillStyle = this._src;
|
|
8951
8971
|
ctx.fill({
|
|
8952
|
-
disableWrapMode
|
|
8972
|
+
disableWrapMode
|
|
8953
8973
|
});
|
|
8954
8974
|
} else {
|
|
8955
8975
|
ctx.fillStyle = this.color;
|
|
@@ -8957,24 +8977,99 @@ class BaseElement2DFill extends CoreObject {
|
|
|
8957
8977
|
}
|
|
8958
8978
|
}
|
|
8959
8979
|
}
|
|
8960
|
-
__decorateClass$
|
|
8980
|
+
__decorateClass$u([
|
|
8961
8981
|
property()
|
|
8962
8982
|
], BaseElement2DFill.prototype, "color");
|
|
8983
|
+
__decorateClass$u([
|
|
8984
|
+
property()
|
|
8985
|
+
], BaseElement2DFill.prototype, "src");
|
|
8986
|
+
__decorateClass$u([
|
|
8987
|
+
property()
|
|
8988
|
+
], BaseElement2DFill.prototype, "dpi");
|
|
8989
|
+
__decorateClass$u([
|
|
8990
|
+
property()
|
|
8991
|
+
], BaseElement2DFill.prototype, "rotateWithShape");
|
|
8992
|
+
__decorateClass$u([
|
|
8993
|
+
property()
|
|
8994
|
+
], BaseElement2DFill.prototype, "tile");
|
|
8995
|
+
__decorateClass$u([
|
|
8996
|
+
property()
|
|
8997
|
+
], BaseElement2DFill.prototype, "stretch");
|
|
8998
|
+
__decorateClass$u([
|
|
8999
|
+
property()
|
|
9000
|
+
], BaseElement2DFill.prototype, "opacity");
|
|
9001
|
+
|
|
9002
|
+
var __defProp$m = Object.defineProperty;
|
|
9003
|
+
var __decorateClass$t = (decorators, target, key, kind) => {
|
|
9004
|
+
var result = void 0 ;
|
|
9005
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
9006
|
+
if (decorator = decorators[i])
|
|
9007
|
+
result = (decorator(target, key, result) ) || result;
|
|
9008
|
+
if (result) __defProp$m(target, key, result);
|
|
9009
|
+
return result;
|
|
9010
|
+
};
|
|
9011
|
+
class BaseElement2DBackground extends BaseElement2DFill {
|
|
9012
|
+
setProperties(properties) {
|
|
9013
|
+
return super.setProperties(modernIdoc.normalizeBackground(properties));
|
|
9014
|
+
}
|
|
9015
|
+
}
|
|
9016
|
+
__decorateClass$t([
|
|
9017
|
+
property()
|
|
9018
|
+
], BaseElement2DBackground.prototype, "color");
|
|
9019
|
+
__decorateClass$t([
|
|
9020
|
+
property()
|
|
9021
|
+
], BaseElement2DBackground.prototype, "src");
|
|
9022
|
+
__decorateClass$t([
|
|
9023
|
+
property()
|
|
9024
|
+
], BaseElement2DBackground.prototype, "dpi");
|
|
9025
|
+
__decorateClass$t([
|
|
9026
|
+
property()
|
|
9027
|
+
], BaseElement2DBackground.prototype, "rotateWithShape");
|
|
9028
|
+
__decorateClass$t([
|
|
9029
|
+
property()
|
|
9030
|
+
], BaseElement2DBackground.prototype, "tile");
|
|
9031
|
+
__decorateClass$t([
|
|
9032
|
+
property()
|
|
9033
|
+
], BaseElement2DBackground.prototype, "stretch");
|
|
9034
|
+
__decorateClass$t([
|
|
9035
|
+
property()
|
|
9036
|
+
], BaseElement2DBackground.prototype, "opacity");
|
|
9037
|
+
|
|
9038
|
+
var __defProp$l = Object.defineProperty;
|
|
9039
|
+
var __decorateClass$s = (decorators, target, key, kind) => {
|
|
9040
|
+
var result = void 0 ;
|
|
9041
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
9042
|
+
if (decorator = decorators[i])
|
|
9043
|
+
result = (decorator(target, key, result) ) || result;
|
|
9044
|
+
if (result) __defProp$l(target, key, result);
|
|
9045
|
+
return result;
|
|
9046
|
+
};
|
|
9047
|
+
class BaseElement2DForeground extends BaseElement2DFill {
|
|
9048
|
+
setProperties(properties) {
|
|
9049
|
+
return super.setProperties(modernIdoc.normalizeForeground(properties));
|
|
9050
|
+
}
|
|
9051
|
+
}
|
|
8963
9052
|
__decorateClass$s([
|
|
8964
9053
|
property()
|
|
8965
|
-
],
|
|
9054
|
+
], BaseElement2DForeground.prototype, "color");
|
|
8966
9055
|
__decorateClass$s([
|
|
8967
9056
|
property()
|
|
8968
|
-
],
|
|
9057
|
+
], BaseElement2DForeground.prototype, "src");
|
|
8969
9058
|
__decorateClass$s([
|
|
8970
9059
|
property()
|
|
8971
|
-
],
|
|
9060
|
+
], BaseElement2DForeground.prototype, "dpi");
|
|
8972
9061
|
__decorateClass$s([
|
|
8973
9062
|
property()
|
|
8974
|
-
],
|
|
9063
|
+
], BaseElement2DForeground.prototype, "rotateWithShape");
|
|
8975
9064
|
__decorateClass$s([
|
|
8976
9065
|
property()
|
|
8977
|
-
],
|
|
9066
|
+
], BaseElement2DForeground.prototype, "tile");
|
|
9067
|
+
__decorateClass$s([
|
|
9068
|
+
property()
|
|
9069
|
+
], BaseElement2DForeground.prototype, "stretch");
|
|
9070
|
+
__decorateClass$s([
|
|
9071
|
+
property()
|
|
9072
|
+
], BaseElement2DForeground.prototype, "opacity");
|
|
8978
9073
|
|
|
8979
9074
|
var __defProp$k = Object.defineProperty;
|
|
8980
9075
|
var __decorateClass$r = (decorators, target, key, kind) => {
|
|
@@ -8986,13 +9081,15 @@ var __decorateClass$r = (decorators, target, key, kind) => {
|
|
|
8986
9081
|
return result;
|
|
8987
9082
|
};
|
|
8988
9083
|
class BaseElement2DGeometry extends CoreObject {
|
|
8989
|
-
constructor(parent
|
|
9084
|
+
constructor(parent) {
|
|
8990
9085
|
super();
|
|
8991
9086
|
this.parent = parent;
|
|
8992
|
-
this.setProperties(properties);
|
|
8993
9087
|
this._updatePath2DSet();
|
|
8994
9088
|
}
|
|
8995
9089
|
_path2DSet = new modernPath2d.Path2DSet();
|
|
9090
|
+
setProperties(properties) {
|
|
9091
|
+
return super.setProperties(modernIdoc.normalizeGeometry(properties));
|
|
9092
|
+
}
|
|
8996
9093
|
_updateProperty(key, value, oldValue, declaration) {
|
|
8997
9094
|
super._updateProperty(key, value, oldValue, declaration);
|
|
8998
9095
|
switch (key) {
|
|
@@ -9072,10 +9169,12 @@ var __decorateClass$q = (decorators, target, key, kind) => {
|
|
|
9072
9169
|
return result;
|
|
9073
9170
|
};
|
|
9074
9171
|
class BaseElement2DOutline extends CoreObject {
|
|
9075
|
-
constructor(parent
|
|
9172
|
+
constructor(parent) {
|
|
9076
9173
|
super();
|
|
9077
9174
|
this.parent = parent;
|
|
9078
|
-
|
|
9175
|
+
}
|
|
9176
|
+
setProperties(properties) {
|
|
9177
|
+
return super.setProperties(modernIdoc.normalizeOutline(properties));
|
|
9079
9178
|
}
|
|
9080
9179
|
_updateProperty(key, value, oldValue, declaration) {
|
|
9081
9180
|
super._updateProperty(key, value, oldValue, declaration);
|
|
@@ -9083,7 +9182,7 @@ class BaseElement2DOutline extends CoreObject {
|
|
|
9083
9182
|
case "color":
|
|
9084
9183
|
case "width":
|
|
9085
9184
|
case "style":
|
|
9086
|
-
case "
|
|
9185
|
+
case "src":
|
|
9087
9186
|
case "opacity":
|
|
9088
9187
|
this.parent.requestRedraw();
|
|
9089
9188
|
break;
|
|
@@ -9112,7 +9211,7 @@ __decorateClass$q([
|
|
|
9112
9211
|
], BaseElement2DOutline.prototype, "style");
|
|
9113
9212
|
__decorateClass$q([
|
|
9114
9213
|
property()
|
|
9115
|
-
], BaseElement2DOutline.prototype, "
|
|
9214
|
+
], BaseElement2DOutline.prototype, "src");
|
|
9116
9215
|
__decorateClass$q([
|
|
9117
9216
|
property({ default: 1 })
|
|
9118
9217
|
], BaseElement2DOutline.prototype, "opacity");
|
|
@@ -9127,10 +9226,12 @@ var __decorateClass$p = (decorators, target, key, kind) => {
|
|
|
9127
9226
|
return result;
|
|
9128
9227
|
};
|
|
9129
9228
|
class BaseElement2DShadow extends CoreObject {
|
|
9130
|
-
constructor(parent
|
|
9229
|
+
constructor(parent) {
|
|
9131
9230
|
super();
|
|
9132
9231
|
this.parent = parent;
|
|
9133
|
-
|
|
9232
|
+
}
|
|
9233
|
+
setProperties(properties) {
|
|
9234
|
+
return super.setProperties(modernIdoc.normalizeShadow(properties));
|
|
9134
9235
|
}
|
|
9135
9236
|
_updateProperty(key, value, oldValue, declaration) {
|
|
9136
9237
|
super._updateProperty(key, value, oldValue, declaration);
|
|
@@ -9199,10 +9300,9 @@ var __decorateClass$o = (decorators, target, key, kind) => {
|
|
|
9199
9300
|
return result;
|
|
9200
9301
|
};
|
|
9201
9302
|
class BaseElement2DText extends CoreObject {
|
|
9202
|
-
constructor(parent
|
|
9303
|
+
constructor(parent) {
|
|
9203
9304
|
super();
|
|
9204
9305
|
this.parent = parent;
|
|
9205
|
-
this.setProperties(properties);
|
|
9206
9306
|
}
|
|
9207
9307
|
effects;
|
|
9208
9308
|
measureDom;
|
|
@@ -9210,6 +9310,9 @@ class BaseElement2DText extends CoreObject {
|
|
|
9210
9310
|
texture = new CanvasTexture();
|
|
9211
9311
|
baseText = new modernText.Text();
|
|
9212
9312
|
measureResult;
|
|
9313
|
+
setProperties(properties) {
|
|
9314
|
+
return super.setProperties(modernIdoc.normalizeText(properties));
|
|
9315
|
+
}
|
|
9213
9316
|
_updateProperty(key, value, oldValue, declaration) {
|
|
9214
9317
|
super._updateProperty(key, value, oldValue, declaration);
|
|
9215
9318
|
switch (key) {
|
|
@@ -9388,12 +9491,12 @@ exports.BaseElement2D = class BaseElement2D extends exports.Node2D {
|
|
|
9388
9491
|
this._style?.off("updateProperty", cb);
|
|
9389
9492
|
this._style = style;
|
|
9390
9493
|
}
|
|
9391
|
-
|
|
9392
|
-
get
|
|
9393
|
-
return this.
|
|
9494
|
+
_background = new BaseElement2DBackground(this);
|
|
9495
|
+
get background() {
|
|
9496
|
+
return this._background;
|
|
9394
9497
|
}
|
|
9395
|
-
set
|
|
9396
|
-
this.
|
|
9498
|
+
set background(value) {
|
|
9499
|
+
this._background.setProperties(value);
|
|
9397
9500
|
}
|
|
9398
9501
|
_geometry = new BaseElement2DGeometry(this);
|
|
9399
9502
|
get geometry() {
|
|
@@ -9416,6 +9519,20 @@ exports.BaseElement2D = class BaseElement2D extends exports.Node2D {
|
|
|
9416
9519
|
set outline(value) {
|
|
9417
9520
|
this._outline.setProperties(value);
|
|
9418
9521
|
}
|
|
9522
|
+
_foreground = new BaseElement2DForeground(this);
|
|
9523
|
+
get foreground() {
|
|
9524
|
+
return this._foreground;
|
|
9525
|
+
}
|
|
9526
|
+
set foreground(value) {
|
|
9527
|
+
this._foreground.setProperties(value);
|
|
9528
|
+
}
|
|
9529
|
+
_text = new BaseElement2DText(this);
|
|
9530
|
+
get text() {
|
|
9531
|
+
return this._text;
|
|
9532
|
+
}
|
|
9533
|
+
set text(value) {
|
|
9534
|
+
this._text.setProperties(value);
|
|
9535
|
+
}
|
|
9419
9536
|
_shadow = new BaseElement2DShadow(this);
|
|
9420
9537
|
get shadow() {
|
|
9421
9538
|
return this._shadow;
|
|
@@ -9435,16 +9552,20 @@ exports.BaseElement2D = class BaseElement2D extends exports.Node2D {
|
|
|
9435
9552
|
style,
|
|
9436
9553
|
text,
|
|
9437
9554
|
geometry,
|
|
9555
|
+
background,
|
|
9438
9556
|
fill,
|
|
9439
9557
|
outline,
|
|
9558
|
+
foreground,
|
|
9440
9559
|
shadow,
|
|
9441
9560
|
...restProperties
|
|
9442
9561
|
} = properties;
|
|
9443
9562
|
style && this.style.setProperties(style);
|
|
9444
|
-
|
|
9563
|
+
background && this.background.setProperties(background);
|
|
9445
9564
|
geometry && this.geometry.setProperties(geometry);
|
|
9446
9565
|
fill && this.fill.setProperties(fill);
|
|
9447
9566
|
outline && this.outline.setProperties(outline);
|
|
9567
|
+
text && this.text.setProperties(text);
|
|
9568
|
+
foreground && this.foreground.setProperties(foreground);
|
|
9448
9569
|
shadow && this.shadow.setProperties(shadow);
|
|
9449
9570
|
super.setProperties(restProperties);
|
|
9450
9571
|
}
|
|
@@ -9503,10 +9624,10 @@ exports.BaseElement2D = class BaseElement2D extends exports.Node2D {
|
|
|
9503
9624
|
this.requestRedraw();
|
|
9504
9625
|
break;
|
|
9505
9626
|
case "backgroundColor":
|
|
9506
|
-
this.
|
|
9627
|
+
this.background.color = this.style.backgroundColor;
|
|
9507
9628
|
break;
|
|
9508
9629
|
case "backgroundImage":
|
|
9509
|
-
this.
|
|
9630
|
+
this.background.src = this.style.backgroundImage;
|
|
9510
9631
|
break;
|
|
9511
9632
|
case "borderStyle":
|
|
9512
9633
|
case "outlineStyle":
|
|
@@ -9601,6 +9722,11 @@ exports.BaseElement2D = class BaseElement2D extends exports.Node2D {
|
|
|
9601
9722
|
if (this.text.canDraw()) {
|
|
9602
9723
|
this.text.updateMeasure();
|
|
9603
9724
|
}
|
|
9725
|
+
if (this.background.canDraw()) {
|
|
9726
|
+
this._tree?.log(this.name, "draw background");
|
|
9727
|
+
this.geometry.drawRect();
|
|
9728
|
+
this.background.draw();
|
|
9729
|
+
}
|
|
9604
9730
|
if (this.fill.canDraw()) {
|
|
9605
9731
|
this._tree?.log(this.name, "draw fill");
|
|
9606
9732
|
this.geometry.draw();
|
|
@@ -9611,6 +9737,11 @@ exports.BaseElement2D = class BaseElement2D extends exports.Node2D {
|
|
|
9611
9737
|
this.geometry.draw();
|
|
9612
9738
|
this.outline.draw();
|
|
9613
9739
|
}
|
|
9740
|
+
if (this.foreground.canDraw()) {
|
|
9741
|
+
this._tree?.log(this.name, "draw foreground");
|
|
9742
|
+
this.geometry.drawRect();
|
|
9743
|
+
this.foreground.draw();
|
|
9744
|
+
}
|
|
9614
9745
|
if (this.text.canDraw()) {
|
|
9615
9746
|
this._tree?.log(this.name, "draw text");
|
|
9616
9747
|
this.geometry.drawRect();
|
|
@@ -13908,7 +14039,9 @@ exports.Assets = Assets;
|
|
|
13908
14039
|
exports.AudioPipeline = AudioPipeline;
|
|
13909
14040
|
exports.AudioProcessor = AudioProcessor;
|
|
13910
14041
|
exports.AudioSpectrum = AudioSpectrum;
|
|
14042
|
+
exports.BaseElement2DBackground = BaseElement2DBackground;
|
|
13911
14043
|
exports.BaseElement2DFill = BaseElement2DFill;
|
|
14044
|
+
exports.BaseElement2DForeground = BaseElement2DForeground;
|
|
13912
14045
|
exports.BaseElement2DGeometry = BaseElement2DGeometry;
|
|
13913
14046
|
exports.BaseElement2DOutline = BaseElement2DOutline;
|
|
13914
14047
|
exports.BaseElement2DShadow = BaseElement2DShadow;
|