modern-canvas 0.4.22 → 0.4.24
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 +663 -369
- package/dist/index.d.cts +109 -50
- package/dist/index.d.mts +109 -50
- package/dist/index.d.ts +109 -50
- package/dist/index.js +42 -42
- package/dist/index.mjs +659 -370
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { colord, extend } from 'colord';
|
|
2
2
|
import namesPlugin from 'colord/plugins/names';
|
|
3
|
+
import { Path2D, Path2DSet, svgToDOM, svgToPath2DSet, Matrix3 as Matrix3$1 } from 'modern-path2d';
|
|
3
4
|
import { getDefaultStyle } from 'modern-idoc';
|
|
4
|
-
import { Path2D } from 'modern-path2d';
|
|
5
|
-
import { loadYoga, BoxSizing, PositionType, Edge, Overflow, Gutter, Justify, Wrap, FlexDirection, Display, Direction, Align } from 'yoga-layout/load';
|
|
6
5
|
import { Text, textDefaultStyle } from 'modern-text';
|
|
6
|
+
import { loadYoga, BoxSizing, PositionType, Edge, Overflow, Gutter, Justify, Wrap, FlexDirection, Display, Direction, Align } from 'yoga-layout/load';
|
|
7
7
|
|
|
8
8
|
const PI = Math.PI;
|
|
9
9
|
const PI_2 = PI * 2;
|
|
@@ -2149,13 +2149,13 @@ class Vector3 extends Vector {
|
|
|
2149
2149
|
}
|
|
2150
2150
|
}
|
|
2151
2151
|
|
|
2152
|
-
var __defProp$
|
|
2153
|
-
var __decorateClass$
|
|
2152
|
+
var __defProp$O = Object.defineProperty;
|
|
2153
|
+
var __decorateClass$W = (decorators, target, key, kind) => {
|
|
2154
2154
|
var result = void 0 ;
|
|
2155
2155
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
2156
2156
|
if (decorator = decorators[i])
|
|
2157
2157
|
result = (decorator(target, key, result) ) || result;
|
|
2158
|
-
if (result) __defProp$
|
|
2158
|
+
if (result) __defProp$O(target, key, result);
|
|
2159
2159
|
return result;
|
|
2160
2160
|
};
|
|
2161
2161
|
class MainLoop extends CoreObject {
|
|
@@ -2198,10 +2198,10 @@ class MainLoop extends CoreObject {
|
|
|
2198
2198
|
this.stop();
|
|
2199
2199
|
}
|
|
2200
2200
|
}
|
|
2201
|
-
__decorateClass$
|
|
2201
|
+
__decorateClass$W([
|
|
2202
2202
|
property({ default: 24 })
|
|
2203
2203
|
], MainLoop.prototype, "fps");
|
|
2204
|
-
__decorateClass$
|
|
2204
|
+
__decorateClass$W([
|
|
2205
2205
|
property({ default: 1 })
|
|
2206
2206
|
], MainLoop.prototype, "speed");
|
|
2207
2207
|
|
|
@@ -4503,13 +4503,13 @@ class Geometry extends Resource {
|
|
|
4503
4503
|
}
|
|
4504
4504
|
}
|
|
4505
4505
|
|
|
4506
|
-
var __defProp$
|
|
4507
|
-
var __decorateClass$
|
|
4506
|
+
var __defProp$N = Object.defineProperty;
|
|
4507
|
+
var __decorateClass$V = (decorators, target, key, kind) => {
|
|
4508
4508
|
var result = void 0 ;
|
|
4509
4509
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
4510
4510
|
if (decorator = decorators[i])
|
|
4511
4511
|
result = (decorator(target, key, result) ) || result;
|
|
4512
|
-
if (result) __defProp$
|
|
4512
|
+
if (result) __defProp$N(target, key, result);
|
|
4513
4513
|
return result;
|
|
4514
4514
|
};
|
|
4515
4515
|
class IndexBuffer extends Resource {
|
|
@@ -4553,20 +4553,20 @@ class IndexBuffer extends Resource {
|
|
|
4553
4553
|
return result;
|
|
4554
4554
|
}
|
|
4555
4555
|
}
|
|
4556
|
-
__decorateClass$
|
|
4556
|
+
__decorateClass$V([
|
|
4557
4557
|
protectedProperty({ default: null })
|
|
4558
4558
|
], IndexBuffer.prototype, "data");
|
|
4559
|
-
__decorateClass$
|
|
4559
|
+
__decorateClass$V([
|
|
4560
4560
|
protectedProperty({ default: false })
|
|
4561
4561
|
], IndexBuffer.prototype, "dynamic");
|
|
4562
4562
|
|
|
4563
|
-
var __defProp$
|
|
4564
|
-
var __decorateClass$
|
|
4563
|
+
var __defProp$M = Object.defineProperty;
|
|
4564
|
+
var __decorateClass$U = (decorators, target, key, kind) => {
|
|
4565
4565
|
var result = void 0 ;
|
|
4566
4566
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
4567
4567
|
if (decorator = decorators[i])
|
|
4568
4568
|
result = (decorator(target, key, result) ) || result;
|
|
4569
|
-
if (result) __defProp$
|
|
4569
|
+
if (result) __defProp$M(target, key, result);
|
|
4570
4570
|
return result;
|
|
4571
4571
|
};
|
|
4572
4572
|
class VertexBuffer extends Resource {
|
|
@@ -4610,20 +4610,20 @@ class VertexBuffer extends Resource {
|
|
|
4610
4610
|
return result;
|
|
4611
4611
|
}
|
|
4612
4612
|
}
|
|
4613
|
-
__decorateClass$
|
|
4613
|
+
__decorateClass$U([
|
|
4614
4614
|
protectedProperty({ default: null })
|
|
4615
4615
|
], VertexBuffer.prototype, "data");
|
|
4616
|
-
__decorateClass$
|
|
4616
|
+
__decorateClass$U([
|
|
4617
4617
|
protectedProperty({ default: false })
|
|
4618
4618
|
], VertexBuffer.prototype, "dynamic");
|
|
4619
4619
|
|
|
4620
|
-
var __defProp$
|
|
4621
|
-
var __decorateClass$
|
|
4620
|
+
var __defProp$L = Object.defineProperty;
|
|
4621
|
+
var __decorateClass$T = (decorators, target, key, kind) => {
|
|
4622
4622
|
var result = void 0 ;
|
|
4623
4623
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
4624
4624
|
if (decorator = decorators[i])
|
|
4625
4625
|
result = (decorator(target, key, result) ) || result;
|
|
4626
|
-
if (result) __defProp$
|
|
4626
|
+
if (result) __defProp$L(target, key, result);
|
|
4627
4627
|
return result;
|
|
4628
4628
|
};
|
|
4629
4629
|
class VertexAttribute extends Resource {
|
|
@@ -4660,25 +4660,25 @@ class VertexAttribute extends Resource {
|
|
|
4660
4660
|
return result;
|
|
4661
4661
|
}
|
|
4662
4662
|
}
|
|
4663
|
-
__decorateClass$
|
|
4663
|
+
__decorateClass$T([
|
|
4664
4664
|
protectedProperty()
|
|
4665
4665
|
], VertexAttribute.prototype, "buffer");
|
|
4666
|
-
__decorateClass$
|
|
4666
|
+
__decorateClass$T([
|
|
4667
4667
|
protectedProperty({ default: 0 })
|
|
4668
4668
|
], VertexAttribute.prototype, "size");
|
|
4669
|
-
__decorateClass$
|
|
4669
|
+
__decorateClass$T([
|
|
4670
4670
|
protectedProperty({ default: false })
|
|
4671
4671
|
], VertexAttribute.prototype, "normalized");
|
|
4672
|
-
__decorateClass$
|
|
4672
|
+
__decorateClass$T([
|
|
4673
4673
|
protectedProperty({ default: "float" })
|
|
4674
4674
|
], VertexAttribute.prototype, "type");
|
|
4675
|
-
__decorateClass$
|
|
4675
|
+
__decorateClass$T([
|
|
4676
4676
|
protectedProperty()
|
|
4677
4677
|
], VertexAttribute.prototype, "stride");
|
|
4678
|
-
__decorateClass$
|
|
4678
|
+
__decorateClass$T([
|
|
4679
4679
|
protectedProperty()
|
|
4680
4680
|
], VertexAttribute.prototype, "offset");
|
|
4681
|
-
__decorateClass$
|
|
4681
|
+
__decorateClass$T([
|
|
4682
4682
|
protectedProperty()
|
|
4683
4683
|
], VertexAttribute.prototype, "divisor");
|
|
4684
4684
|
|
|
@@ -4922,13 +4922,13 @@ class UvGeometry extends Geometry {
|
|
|
4922
4922
|
}
|
|
4923
4923
|
}
|
|
4924
4924
|
|
|
4925
|
-
var __defProp$
|
|
4926
|
-
var __decorateClass$
|
|
4925
|
+
var __defProp$K = Object.defineProperty;
|
|
4926
|
+
var __decorateClass$S = (decorators, target, key, kind) => {
|
|
4927
4927
|
var result = void 0 ;
|
|
4928
4928
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
4929
4929
|
if (decorator = decorators[i])
|
|
4930
4930
|
result = (decorator(target, key, result) ) || result;
|
|
4931
|
-
if (result) __defProp$
|
|
4931
|
+
if (result) __defProp$K(target, key, result);
|
|
4932
4932
|
return result;
|
|
4933
4933
|
};
|
|
4934
4934
|
class Texture2D extends Resource {
|
|
@@ -5054,22 +5054,22 @@ class Texture2D extends Resource {
|
|
|
5054
5054
|
}
|
|
5055
5055
|
}
|
|
5056
5056
|
}
|
|
5057
|
-
__decorateClass$
|
|
5057
|
+
__decorateClass$S([
|
|
5058
5058
|
protectedProperty()
|
|
5059
5059
|
], Texture2D.prototype, "source");
|
|
5060
|
-
__decorateClass$
|
|
5060
|
+
__decorateClass$S([
|
|
5061
5061
|
property({ default: 0 })
|
|
5062
5062
|
], Texture2D.prototype, "width");
|
|
5063
|
-
__decorateClass$
|
|
5063
|
+
__decorateClass$S([
|
|
5064
5064
|
property({ default: 0 })
|
|
5065
5065
|
], Texture2D.prototype, "height");
|
|
5066
|
-
__decorateClass$
|
|
5066
|
+
__decorateClass$S([
|
|
5067
5067
|
property({ default: "linear" })
|
|
5068
5068
|
], Texture2D.prototype, "filterMode");
|
|
5069
|
-
__decorateClass$
|
|
5069
|
+
__decorateClass$S([
|
|
5070
5070
|
property({ default: "clamp_to_edge" })
|
|
5071
5071
|
], Texture2D.prototype, "wrapMode");
|
|
5072
|
-
__decorateClass$
|
|
5072
|
+
__decorateClass$S([
|
|
5073
5073
|
property({ default: 1 })
|
|
5074
5074
|
], Texture2D.prototype, "pixelRatio");
|
|
5075
5075
|
|
|
@@ -5099,13 +5099,13 @@ class AnimatedTexture extends Resource {
|
|
|
5099
5099
|
}
|
|
5100
5100
|
}
|
|
5101
5101
|
|
|
5102
|
-
var __defProp$
|
|
5103
|
-
var __decorateClass$
|
|
5102
|
+
var __defProp$J = Object.defineProperty;
|
|
5103
|
+
var __decorateClass$R = (decorators, target, key, kind) => {
|
|
5104
5104
|
var result = void 0 ;
|
|
5105
5105
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
5106
5106
|
if (decorator = decorators[i])
|
|
5107
5107
|
result = (decorator(target, key, result) ) || result;
|
|
5108
|
-
if (result) __defProp$
|
|
5108
|
+
if (result) __defProp$J(target, key, result);
|
|
5109
5109
|
return result;
|
|
5110
5110
|
};
|
|
5111
5111
|
class CanvasTexture extends Texture2D {
|
|
@@ -5124,7 +5124,7 @@ class CanvasTexture extends Texture2D {
|
|
|
5124
5124
|
super._updateProperty(key, value, oldValue, declaration);
|
|
5125
5125
|
}
|
|
5126
5126
|
}
|
|
5127
|
-
__decorateClass$
|
|
5127
|
+
__decorateClass$R([
|
|
5128
5128
|
property({ default: 2 })
|
|
5129
5129
|
], CanvasTexture.prototype, "pixelRatio");
|
|
5130
5130
|
|
|
@@ -5286,13 +5286,13 @@ class PixelsTexture extends Texture2D {
|
|
|
5286
5286
|
}
|
|
5287
5287
|
}
|
|
5288
5288
|
|
|
5289
|
-
var __defProp$
|
|
5290
|
-
var __decorateClass$
|
|
5289
|
+
var __defProp$I = Object.defineProperty;
|
|
5290
|
+
var __decorateClass$Q = (decorators, target, key, kind) => {
|
|
5291
5291
|
var result = void 0 ;
|
|
5292
5292
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
5293
5293
|
if (decorator = decorators[i])
|
|
5294
5294
|
result = (decorator(target, key, result) ) || result;
|
|
5295
|
-
if (result) __defProp$
|
|
5295
|
+
if (result) __defProp$I(target, key, result);
|
|
5296
5296
|
return result;
|
|
5297
5297
|
};
|
|
5298
5298
|
function resolveOptions(options) {
|
|
@@ -5536,10 +5536,10 @@ const _VideoTexture = class _VideoTexture extends Texture2D {
|
|
|
5536
5536
|
}
|
|
5537
5537
|
}
|
|
5538
5538
|
};
|
|
5539
|
-
__decorateClass$
|
|
5539
|
+
__decorateClass$Q([
|
|
5540
5540
|
protectedProperty({ default: true })
|
|
5541
5541
|
], _VideoTexture.prototype, "autoUpdate");
|
|
5542
|
-
__decorateClass$
|
|
5542
|
+
__decorateClass$Q([
|
|
5543
5543
|
protectedProperty({ default: 0 })
|
|
5544
5544
|
], _VideoTexture.prototype, "fps");
|
|
5545
5545
|
let VideoTexture = _VideoTexture;
|
|
@@ -5548,14 +5548,14 @@ class ViewportTexture extends PixelsTexture {
|
|
|
5548
5548
|
//
|
|
5549
5549
|
}
|
|
5550
5550
|
|
|
5551
|
-
var __defProp$
|
|
5551
|
+
var __defProp$H = Object.defineProperty;
|
|
5552
5552
|
var __getOwnPropDesc$I = Object.getOwnPropertyDescriptor;
|
|
5553
|
-
var __decorateClass$
|
|
5553
|
+
var __decorateClass$P = (decorators, target, key, kind) => {
|
|
5554
5554
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$I(target, key) : target;
|
|
5555
5555
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
5556
5556
|
if (decorator = decorators[i])
|
|
5557
5557
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5558
|
-
if (kind && result) __defProp$
|
|
5558
|
+
if (kind && result) __defProp$H(target, key, result);
|
|
5559
5559
|
return result;
|
|
5560
5560
|
};
|
|
5561
5561
|
const tagUidMap = {};
|
|
@@ -5732,11 +5732,9 @@ let Node = class extends CoreObject {
|
|
|
5732
5732
|
}
|
|
5733
5733
|
}
|
|
5734
5734
|
_update(changed) {
|
|
5735
|
-
this._tree?.log(this.name, "updating");
|
|
5736
5735
|
super._update(changed);
|
|
5737
5736
|
}
|
|
5738
5737
|
_updateProperty(key, value, oldValue, declaration) {
|
|
5739
|
-
this._tree?.log(this.name, `updating [${String(key)}]`);
|
|
5740
5738
|
super._updateProperty(key, value, oldValue, declaration);
|
|
5741
5739
|
}
|
|
5742
5740
|
_onTreeEnter(tree) {
|
|
@@ -6060,36 +6058,36 @@ let Node = class extends CoreObject {
|
|
|
6060
6058
|
return node;
|
|
6061
6059
|
}
|
|
6062
6060
|
};
|
|
6063
|
-
__decorateClass$
|
|
6061
|
+
__decorateClass$P([
|
|
6064
6062
|
protectedProperty()
|
|
6065
6063
|
], Node.prototype, "name", 2);
|
|
6066
|
-
__decorateClass$
|
|
6064
|
+
__decorateClass$P([
|
|
6067
6065
|
property()
|
|
6068
6066
|
], Node.prototype, "mask", 2);
|
|
6069
|
-
__decorateClass$
|
|
6067
|
+
__decorateClass$P([
|
|
6070
6068
|
property({ default: "inherit" })
|
|
6071
6069
|
], Node.prototype, "processMode", 2);
|
|
6072
|
-
__decorateClass$
|
|
6070
|
+
__decorateClass$P([
|
|
6073
6071
|
property({ default: "default" })
|
|
6074
6072
|
], Node.prototype, "processSortMode", 2);
|
|
6075
|
-
__decorateClass$
|
|
6073
|
+
__decorateClass$P([
|
|
6076
6074
|
property({ default: "inherit" })
|
|
6077
6075
|
], Node.prototype, "renderMode", 2);
|
|
6078
|
-
__decorateClass$
|
|
6076
|
+
__decorateClass$P([
|
|
6079
6077
|
property({ default: "default" })
|
|
6080
6078
|
], Node.prototype, "internalMode", 2);
|
|
6081
|
-
Node = __decorateClass$
|
|
6079
|
+
Node = __decorateClass$P([
|
|
6082
6080
|
customNode("Node")
|
|
6083
6081
|
], Node);
|
|
6084
6082
|
|
|
6085
|
-
var __defProp$
|
|
6083
|
+
var __defProp$G = Object.defineProperty;
|
|
6086
6084
|
var __getOwnPropDesc$H = Object.getOwnPropertyDescriptor;
|
|
6087
|
-
var __decorateClass$
|
|
6085
|
+
var __decorateClass$O = (decorators, target, key, kind) => {
|
|
6088
6086
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$H(target, key) : target;
|
|
6089
6087
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6090
6088
|
if (decorator = decorators[i])
|
|
6091
6089
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6092
|
-
if (kind && result) __defProp$
|
|
6090
|
+
if (kind && result) __defProp$G(target, key, result);
|
|
6093
6091
|
return result;
|
|
6094
6092
|
};
|
|
6095
6093
|
let TimelineNode = class extends Node {
|
|
@@ -6149,30 +6147,30 @@ let TimelineNode = class extends Node {
|
|
|
6149
6147
|
this._updateCurrentTime();
|
|
6150
6148
|
}
|
|
6151
6149
|
};
|
|
6152
|
-
__decorateClass$
|
|
6150
|
+
__decorateClass$O([
|
|
6153
6151
|
property({ default: 0 })
|
|
6154
6152
|
], TimelineNode.prototype, "delay", 2);
|
|
6155
|
-
__decorateClass$
|
|
6153
|
+
__decorateClass$O([
|
|
6156
6154
|
property({ default: 0 })
|
|
6157
6155
|
], TimelineNode.prototype, "duration", 2);
|
|
6158
|
-
__decorateClass$
|
|
6156
|
+
__decorateClass$O([
|
|
6159
6157
|
property({ default: false })
|
|
6160
6158
|
], TimelineNode.prototype, "paused", 2);
|
|
6161
|
-
__decorateClass$
|
|
6159
|
+
__decorateClass$O([
|
|
6162
6160
|
protectedProperty()
|
|
6163
6161
|
], TimelineNode.prototype, "insideTimeRange", 2);
|
|
6164
|
-
TimelineNode = __decorateClass$
|
|
6162
|
+
TimelineNode = __decorateClass$O([
|
|
6165
6163
|
customNode("TimelineNode")
|
|
6166
6164
|
], TimelineNode);
|
|
6167
6165
|
|
|
6168
|
-
var __defProp$
|
|
6166
|
+
var __defProp$F = Object.defineProperty;
|
|
6169
6167
|
var __getOwnPropDesc$G = Object.getOwnPropertyDescriptor;
|
|
6170
|
-
var __decorateClass$
|
|
6168
|
+
var __decorateClass$N = (decorators, target, key, kind) => {
|
|
6171
6169
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$G(target, key) : target;
|
|
6172
6170
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6173
6171
|
if (decorator = decorators[i])
|
|
6174
6172
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6175
|
-
if (kind && result) __defProp$
|
|
6173
|
+
if (kind && result) __defProp$F(target, key, result);
|
|
6176
6174
|
return result;
|
|
6177
6175
|
};
|
|
6178
6176
|
let Viewport = class extends Node {
|
|
@@ -6310,30 +6308,30 @@ let Viewport = class extends Node {
|
|
|
6310
6308
|
return this._projection.toArray(transpose);
|
|
6311
6309
|
}
|
|
6312
6310
|
};
|
|
6313
|
-
__decorateClass$
|
|
6311
|
+
__decorateClass$N([
|
|
6314
6312
|
property({ default: 0 })
|
|
6315
6313
|
], Viewport.prototype, "x", 2);
|
|
6316
|
-
__decorateClass$
|
|
6314
|
+
__decorateClass$N([
|
|
6317
6315
|
property({ default: 0 })
|
|
6318
6316
|
], Viewport.prototype, "y", 2);
|
|
6319
|
-
__decorateClass$
|
|
6317
|
+
__decorateClass$N([
|
|
6320
6318
|
property({ default: 0 })
|
|
6321
6319
|
], Viewport.prototype, "width", 2);
|
|
6322
|
-
__decorateClass$
|
|
6320
|
+
__decorateClass$N([
|
|
6323
6321
|
property({ default: 0 })
|
|
6324
6322
|
], Viewport.prototype, "height", 2);
|
|
6325
|
-
Viewport = __decorateClass$
|
|
6323
|
+
Viewport = __decorateClass$N([
|
|
6326
6324
|
customNode("Viewport")
|
|
6327
6325
|
], Viewport);
|
|
6328
6326
|
|
|
6329
|
-
var __defProp$
|
|
6327
|
+
var __defProp$E = Object.defineProperty;
|
|
6330
6328
|
var __getOwnPropDesc$F = Object.getOwnPropertyDescriptor;
|
|
6331
|
-
var __decorateClass$
|
|
6329
|
+
var __decorateClass$M = (decorators, target, key, kind) => {
|
|
6332
6330
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$F(target, key) : target;
|
|
6333
6331
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6334
6332
|
if (decorator = decorators[i])
|
|
6335
6333
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6336
|
-
if (kind && result) __defProp$
|
|
6334
|
+
if (kind && result) __defProp$E(target, key, result);
|
|
6337
6335
|
return result;
|
|
6338
6336
|
};
|
|
6339
6337
|
let Effect = class extends TimelineNode {
|
|
@@ -6574,31 +6572,31 @@ let Effect = class extends TimelineNode {
|
|
|
6574
6572
|
}
|
|
6575
6573
|
}
|
|
6576
6574
|
};
|
|
6577
|
-
__decorateClass$
|
|
6575
|
+
__decorateClass$M([
|
|
6578
6576
|
protectedProperty()
|
|
6579
6577
|
], Effect.prototype, "material", 2);
|
|
6580
|
-
__decorateClass$
|
|
6578
|
+
__decorateClass$M([
|
|
6581
6579
|
property()
|
|
6582
6580
|
], Effect.prototype, "effectMode", 2);
|
|
6583
|
-
__decorateClass$
|
|
6581
|
+
__decorateClass$M([
|
|
6584
6582
|
property({ default: "" })
|
|
6585
6583
|
], Effect.prototype, "glsl", 2);
|
|
6586
|
-
__decorateClass$
|
|
6584
|
+
__decorateClass$M([
|
|
6587
6585
|
property({ default: "" })
|
|
6588
6586
|
], Effect.prototype, "glslSrc", 2);
|
|
6589
|
-
Effect = __decorateClass$
|
|
6587
|
+
Effect = __decorateClass$M([
|
|
6590
6588
|
customNode("Effect")
|
|
6591
6589
|
], Effect);
|
|
6592
6590
|
|
|
6593
|
-
var __defProp$
|
|
6591
|
+
var __defProp$D = Object.defineProperty;
|
|
6594
6592
|
var __getOwnPropDesc$E = Object.getOwnPropertyDescriptor;
|
|
6595
|
-
var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$
|
|
6596
|
-
var __decorateClass$
|
|
6593
|
+
var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6594
|
+
var __decorateClass$L = (decorators, target, key, kind) => {
|
|
6597
6595
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$E(target, key) : target;
|
|
6598
6596
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6599
6597
|
if (decorator = decorators[i])
|
|
6600
6598
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6601
|
-
if (kind && result) __defProp$
|
|
6599
|
+
if (kind && result) __defProp$D(target, key, result);
|
|
6602
6600
|
return result;
|
|
6603
6601
|
};
|
|
6604
6602
|
var __publicField$i = (obj, key, value) => __defNormalProp$i(obj, key + "" , value);
|
|
@@ -6658,43 +6656,43 @@ void main(void) {
|
|
|
6658
6656
|
gl_FragColor = c * alpha;
|
|
6659
6657
|
}`
|
|
6660
6658
|
}));
|
|
6661
|
-
__decorateClass$
|
|
6659
|
+
__decorateClass$L([
|
|
6662
6660
|
property({ default: 1 })
|
|
6663
6661
|
], ColorAdjustEffect.prototype, "saturation", 2);
|
|
6664
|
-
__decorateClass$
|
|
6662
|
+
__decorateClass$L([
|
|
6665
6663
|
property({ default: 1 })
|
|
6666
6664
|
], ColorAdjustEffect.prototype, "contrast", 2);
|
|
6667
|
-
__decorateClass$
|
|
6665
|
+
__decorateClass$L([
|
|
6668
6666
|
property({ default: 1 })
|
|
6669
6667
|
], ColorAdjustEffect.prototype, "brightness", 2);
|
|
6670
|
-
__decorateClass$
|
|
6668
|
+
__decorateClass$L([
|
|
6671
6669
|
property({ default: 1 })
|
|
6672
6670
|
], ColorAdjustEffect.prototype, "red", 2);
|
|
6673
|
-
__decorateClass$
|
|
6671
|
+
__decorateClass$L([
|
|
6674
6672
|
property({ default: 1 })
|
|
6675
6673
|
], ColorAdjustEffect.prototype, "green", 2);
|
|
6676
|
-
__decorateClass$
|
|
6674
|
+
__decorateClass$L([
|
|
6677
6675
|
property({ default: 1 })
|
|
6678
6676
|
], ColorAdjustEffect.prototype, "blue", 2);
|
|
6679
|
-
__decorateClass$
|
|
6677
|
+
__decorateClass$L([
|
|
6680
6678
|
property({ default: 1 })
|
|
6681
6679
|
], ColorAdjustEffect.prototype, "alpha", 2);
|
|
6682
|
-
__decorateClass$
|
|
6680
|
+
__decorateClass$L([
|
|
6683
6681
|
property({ default: 1 })
|
|
6684
6682
|
], ColorAdjustEffect.prototype, "gamma", 2);
|
|
6685
|
-
ColorAdjustEffect = __decorateClass$
|
|
6683
|
+
ColorAdjustEffect = __decorateClass$L([
|
|
6686
6684
|
customNode("ColorAdjustEffect")
|
|
6687
6685
|
], ColorAdjustEffect);
|
|
6688
6686
|
|
|
6689
|
-
var __defProp$
|
|
6687
|
+
var __defProp$C = Object.defineProperty;
|
|
6690
6688
|
var __getOwnPropDesc$D = Object.getOwnPropertyDescriptor;
|
|
6691
|
-
var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$
|
|
6692
|
-
var __decorateClass$
|
|
6689
|
+
var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6690
|
+
var __decorateClass$K = (decorators, target, key, kind) => {
|
|
6693
6691
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$D(target, key) : target;
|
|
6694
6692
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6695
6693
|
if (decorator = decorators[i])
|
|
6696
6694
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6697
|
-
if (kind && result) __defProp$
|
|
6695
|
+
if (kind && result) __defProp$C(target, key, result);
|
|
6698
6696
|
return result;
|
|
6699
6697
|
};
|
|
6700
6698
|
var __publicField$h = (obj, key, value) => __defNormalProp$h(obj, key + "" , value);
|
|
@@ -6774,22 +6772,22 @@ void main(void) {
|
|
|
6774
6772
|
);
|
|
6775
6773
|
}`
|
|
6776
6774
|
}));
|
|
6777
|
-
__decorateClass$
|
|
6775
|
+
__decorateClass$K([
|
|
6778
6776
|
property()
|
|
6779
6777
|
], ColorFilterEffect.prototype, "filter", 2);
|
|
6780
|
-
ColorFilterEffect = __decorateClass$
|
|
6778
|
+
ColorFilterEffect = __decorateClass$K([
|
|
6781
6779
|
customNode("ColorFilterEffect")
|
|
6782
6780
|
], ColorFilterEffect);
|
|
6783
6781
|
|
|
6784
|
-
var __defProp$
|
|
6782
|
+
var __defProp$B = Object.defineProperty;
|
|
6785
6783
|
var __getOwnPropDesc$C = Object.getOwnPropertyDescriptor;
|
|
6786
|
-
var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$
|
|
6787
|
-
var __decorateClass$
|
|
6784
|
+
var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6785
|
+
var __decorateClass$J = (decorators, target, key, kind) => {
|
|
6788
6786
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$C(target, key) : target;
|
|
6789
6787
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6790
6788
|
if (decorator = decorators[i])
|
|
6791
6789
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6792
|
-
if (kind && result) __defProp$
|
|
6790
|
+
if (kind && result) __defProp$B(target, key, result);
|
|
6793
6791
|
return result;
|
|
6794
6792
|
};
|
|
6795
6793
|
var __publicField$g = (obj, key, value) => __defNormalProp$g(obj, key + "" , value);
|
|
@@ -6865,25 +6863,25 @@ void main(void) {
|
|
|
6865
6863
|
gl_FragColor = vec4(mix(color.rgb, mask.rgb, color.a * mask.a), color.a);
|
|
6866
6864
|
}`
|
|
6867
6865
|
}));
|
|
6868
|
-
__decorateClass$
|
|
6866
|
+
__decorateClass$J([
|
|
6869
6867
|
property({ default: [] })
|
|
6870
6868
|
], ColorOverlayEffect.prototype, "colors", 2);
|
|
6871
|
-
__decorateClass$
|
|
6869
|
+
__decorateClass$J([
|
|
6872
6870
|
property({ default: 0.5 })
|
|
6873
6871
|
], ColorOverlayEffect.prototype, "alpha", 2);
|
|
6874
|
-
ColorOverlayEffect = __decorateClass$
|
|
6872
|
+
ColorOverlayEffect = __decorateClass$J([
|
|
6875
6873
|
customNode("ColorOverlayEffect")
|
|
6876
6874
|
], ColorOverlayEffect);
|
|
6877
6875
|
|
|
6878
|
-
var __defProp$
|
|
6876
|
+
var __defProp$A = Object.defineProperty;
|
|
6879
6877
|
var __getOwnPropDesc$B = Object.getOwnPropertyDescriptor;
|
|
6880
|
-
var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$
|
|
6881
|
-
var __decorateClass$
|
|
6878
|
+
var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6879
|
+
var __decorateClass$I = (decorators, target, key, kind) => {
|
|
6882
6880
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$B(target, key) : target;
|
|
6883
6881
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6884
6882
|
if (decorator = decorators[i])
|
|
6885
6883
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6886
|
-
if (kind && result) __defProp$
|
|
6884
|
+
if (kind && result) __defProp$A(target, key, result);
|
|
6887
6885
|
return result;
|
|
6888
6886
|
};
|
|
6889
6887
|
var __publicField$f = (obj, key, value) => __defNormalProp$f(obj, key + "" , value);
|
|
@@ -6950,25 +6948,25 @@ void main(void) {
|
|
|
6950
6948
|
gl_FragColor = color;
|
|
6951
6949
|
}`
|
|
6952
6950
|
}));
|
|
6953
|
-
__decorateClass$
|
|
6951
|
+
__decorateClass$I([
|
|
6954
6952
|
property({ default: [] })
|
|
6955
6953
|
], ColorRemoveEffect.prototype, "colors", 2);
|
|
6956
|
-
__decorateClass$
|
|
6954
|
+
__decorateClass$I([
|
|
6957
6955
|
property({ default: 0.5 })
|
|
6958
6956
|
], ColorRemoveEffect.prototype, "epsilon", 2);
|
|
6959
|
-
ColorRemoveEffect = __decorateClass$
|
|
6957
|
+
ColorRemoveEffect = __decorateClass$I([
|
|
6960
6958
|
customNode("ColorRemoveEffect")
|
|
6961
6959
|
], ColorRemoveEffect);
|
|
6962
6960
|
|
|
6963
|
-
var __defProp$
|
|
6961
|
+
var __defProp$z = Object.defineProperty;
|
|
6964
6962
|
var __getOwnPropDesc$A = Object.getOwnPropertyDescriptor;
|
|
6965
|
-
var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$
|
|
6966
|
-
var __decorateClass$
|
|
6963
|
+
var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6964
|
+
var __decorateClass$H = (decorators, target, key, kind) => {
|
|
6967
6965
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$A(target, key) : target;
|
|
6968
6966
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6969
6967
|
if (decorator = decorators[i])
|
|
6970
6968
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
6971
|
-
if (kind && result) __defProp$
|
|
6969
|
+
if (kind && result) __defProp$z(target, key, result);
|
|
6972
6970
|
return result;
|
|
6973
6971
|
};
|
|
6974
6972
|
var __publicField$e = (obj, key, value) => __defNormalProp$e(obj, key + "" , value);
|
|
@@ -7057,13 +7055,13 @@ void main(void) {
|
|
|
7057
7055
|
}
|
|
7058
7056
|
}`
|
|
7059
7057
|
}));
|
|
7060
|
-
__decorateClass$
|
|
7058
|
+
__decorateClass$H([
|
|
7061
7059
|
property({ default: [] })
|
|
7062
7060
|
], ColorReplaceEffect.prototype, "colors", 2);
|
|
7063
|
-
__decorateClass$
|
|
7061
|
+
__decorateClass$H([
|
|
7064
7062
|
property({ default: 0.05 })
|
|
7065
7063
|
], ColorReplaceEffect.prototype, "epsilon", 2);
|
|
7066
|
-
ColorReplaceEffect = __decorateClass$
|
|
7064
|
+
ColorReplaceEffect = __decorateClass$H([
|
|
7067
7065
|
customNode("ColorReplaceEffect")
|
|
7068
7066
|
], ColorReplaceEffect);
|
|
7069
7067
|
|
|
@@ -7077,7 +7075,7 @@ class CanvasContext extends Path2D {
|
|
|
7077
7075
|
miterLimit;
|
|
7078
7076
|
_defaultStyle = Texture2D.EMPTY;
|
|
7079
7077
|
_draws = [];
|
|
7080
|
-
stroke() {
|
|
7078
|
+
stroke(options) {
|
|
7081
7079
|
let texture = this._defaultStyle;
|
|
7082
7080
|
if (this.strokeStyle) {
|
|
7083
7081
|
if (this.strokeStyle instanceof Texture2D) {
|
|
@@ -7088,6 +7086,7 @@ class CanvasContext extends Path2D {
|
|
|
7088
7086
|
}
|
|
7089
7087
|
if (this.curves.length) {
|
|
7090
7088
|
this._draws.push({
|
|
7089
|
+
...options,
|
|
7091
7090
|
type: "stroke",
|
|
7092
7091
|
path: new Path2D(this),
|
|
7093
7092
|
texture,
|
|
@@ -7109,7 +7108,7 @@ class CanvasContext extends Path2D {
|
|
|
7109
7108
|
strokeRect(x, y, width, height) {
|
|
7110
7109
|
this.rect(x, y, width, height).stroke();
|
|
7111
7110
|
}
|
|
7112
|
-
fill() {
|
|
7111
|
+
fill(options) {
|
|
7113
7112
|
let texture = this._defaultStyle;
|
|
7114
7113
|
if (this.fillStyle) {
|
|
7115
7114
|
if (this.fillStyle instanceof Texture2D) {
|
|
@@ -7119,6 +7118,7 @@ class CanvasContext extends Path2D {
|
|
|
7119
7118
|
}
|
|
7120
7119
|
}
|
|
7121
7120
|
this._draws.push({
|
|
7121
|
+
...options,
|
|
7122
7122
|
type: "fill",
|
|
7123
7123
|
path: new Path2D(this),
|
|
7124
7124
|
texture,
|
|
@@ -7178,13 +7178,14 @@ class CanvasContext extends Path2D {
|
|
|
7178
7178
|
let indices = [];
|
|
7179
7179
|
let uvs = [];
|
|
7180
7180
|
let texture;
|
|
7181
|
-
const push = (
|
|
7181
|
+
const push = (draw) => {
|
|
7182
7182
|
batchables.push({
|
|
7183
|
-
type,
|
|
7184
7183
|
vertices,
|
|
7185
7184
|
indices,
|
|
7186
7185
|
uvs,
|
|
7187
|
-
texture
|
|
7186
|
+
texture,
|
|
7187
|
+
type: draw.type,
|
|
7188
|
+
disableWrapMode: draw.disableWrapMode
|
|
7188
7189
|
});
|
|
7189
7190
|
vertices = [];
|
|
7190
7191
|
indices = [];
|
|
@@ -7195,14 +7196,15 @@ class CanvasContext extends Path2D {
|
|
|
7195
7196
|
const draw = this._draws[i];
|
|
7196
7197
|
const prev = this._draws[i - 1];
|
|
7197
7198
|
if (vertices.length && prev && prev?.type !== draw.type) {
|
|
7198
|
-
push(prev
|
|
7199
|
+
push(prev);
|
|
7199
7200
|
}
|
|
7200
7201
|
const oldTexture = texture;
|
|
7201
7202
|
if (!oldTexture) {
|
|
7202
7203
|
texture = draw.texture;
|
|
7203
7204
|
}
|
|
7204
7205
|
if (vertices.length && oldTexture !== draw.texture && !oldTexture?.is(draw.texture)) {
|
|
7205
|
-
push(draw
|
|
7206
|
+
push(draw);
|
|
7207
|
+
texture = draw.texture;
|
|
7206
7208
|
}
|
|
7207
7209
|
const start = vertices.length;
|
|
7208
7210
|
if (draw.type === "fill") {
|
|
@@ -7224,20 +7226,20 @@ class CanvasContext extends Path2D {
|
|
|
7224
7226
|
}
|
|
7225
7227
|
const last = this._draws[this._draws.length - 1];
|
|
7226
7228
|
if (last && vertices.length) {
|
|
7227
|
-
push(last
|
|
7229
|
+
push(last);
|
|
7228
7230
|
}
|
|
7229
7231
|
return batchables;
|
|
7230
7232
|
}
|
|
7231
7233
|
}
|
|
7232
7234
|
|
|
7233
|
-
var __defProp$
|
|
7235
|
+
var __defProp$y = Object.defineProperty;
|
|
7234
7236
|
var __getOwnPropDesc$z = Object.getOwnPropertyDescriptor;
|
|
7235
|
-
var __decorateClass$
|
|
7237
|
+
var __decorateClass$G = (decorators, target, key, kind) => {
|
|
7236
7238
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$z(target, key) : target;
|
|
7237
7239
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
7238
7240
|
if (decorator = decorators[i])
|
|
7239
7241
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7240
|
-
if (kind && result) __defProp$
|
|
7242
|
+
if (kind && result) __defProp$y(target, key, result);
|
|
7241
7243
|
return result;
|
|
7242
7244
|
};
|
|
7243
7245
|
let CanvasItem = class extends TimelineNode {
|
|
@@ -7252,7 +7254,6 @@ let CanvasItem = class extends TimelineNode {
|
|
|
7252
7254
|
return this._globalOpacity ?? 1;
|
|
7253
7255
|
}
|
|
7254
7256
|
_modulate = new Color(4294967295);
|
|
7255
|
-
_backgroundImage;
|
|
7256
7257
|
// Batch render
|
|
7257
7258
|
context = new CanvasContext();
|
|
7258
7259
|
_resetContext = true;
|
|
@@ -7399,19 +7400,19 @@ let CanvasItem = class extends TimelineNode {
|
|
|
7399
7400
|
super._render(renderer);
|
|
7400
7401
|
}
|
|
7401
7402
|
};
|
|
7402
|
-
__decorateClass$
|
|
7403
|
+
__decorateClass$G([
|
|
7403
7404
|
property()
|
|
7404
7405
|
], CanvasItem.prototype, "modulate", 2);
|
|
7405
|
-
__decorateClass$
|
|
7406
|
+
__decorateClass$G([
|
|
7406
7407
|
property()
|
|
7407
7408
|
], CanvasItem.prototype, "blendMode", 2);
|
|
7408
|
-
__decorateClass$
|
|
7409
|
+
__decorateClass$G([
|
|
7409
7410
|
protectedProperty({ default: true })
|
|
7410
7411
|
], CanvasItem.prototype, "visible", 2);
|
|
7411
|
-
__decorateClass$
|
|
7412
|
+
__decorateClass$G([
|
|
7412
7413
|
protectedProperty({ default: 1 })
|
|
7413
7414
|
], CanvasItem.prototype, "opacity", 2);
|
|
7414
|
-
CanvasItem = __decorateClass$
|
|
7415
|
+
CanvasItem = __decorateClass$G([
|
|
7415
7416
|
customNode("CanvasItem")
|
|
7416
7417
|
], CanvasItem);
|
|
7417
7418
|
|
|
@@ -7441,14 +7442,14 @@ class RenderStack {
|
|
|
7441
7442
|
}
|
|
7442
7443
|
}
|
|
7443
7444
|
|
|
7444
|
-
var __defProp$
|
|
7445
|
+
var __defProp$x = Object.defineProperty;
|
|
7445
7446
|
var __getOwnPropDesc$y = Object.getOwnPropertyDescriptor;
|
|
7446
|
-
var __decorateClass$
|
|
7447
|
+
var __decorateClass$F = (decorators, target, key, kind) => {
|
|
7447
7448
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$y(target, key) : target;
|
|
7448
7449
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
7449
7450
|
if (decorator = decorators[i])
|
|
7450
7451
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7451
|
-
if (kind && result) __defProp$
|
|
7452
|
+
if (kind && result) __defProp$x(target, key, result);
|
|
7452
7453
|
return result;
|
|
7453
7454
|
};
|
|
7454
7455
|
let Timeline = class extends Node {
|
|
@@ -7493,29 +7494,29 @@ let Timeline = class extends Node {
|
|
|
7493
7494
|
this.addTime(delta);
|
|
7494
7495
|
}
|
|
7495
7496
|
};
|
|
7496
|
-
__decorateClass$
|
|
7497
|
+
__decorateClass$F([
|
|
7497
7498
|
property({ default: 0 })
|
|
7498
7499
|
], Timeline.prototype, "startTime", 2);
|
|
7499
|
-
__decorateClass$
|
|
7500
|
+
__decorateClass$F([
|
|
7500
7501
|
property({ default: 0 })
|
|
7501
7502
|
], Timeline.prototype, "currentTime", 2);
|
|
7502
|
-
__decorateClass$
|
|
7503
|
+
__decorateClass$F([
|
|
7503
7504
|
property({ default: Number.MAX_SAFE_INTEGER })
|
|
7504
7505
|
], Timeline.prototype, "endTime", 2);
|
|
7505
|
-
__decorateClass$
|
|
7506
|
+
__decorateClass$F([
|
|
7506
7507
|
property({ default: false })
|
|
7507
7508
|
], Timeline.prototype, "loop", 2);
|
|
7508
|
-
Timeline = __decorateClass$
|
|
7509
|
+
Timeline = __decorateClass$F([
|
|
7509
7510
|
customNode("Timeline")
|
|
7510
7511
|
], Timeline);
|
|
7511
7512
|
|
|
7512
|
-
var __defProp$
|
|
7513
|
-
var __decorateClass$
|
|
7513
|
+
var __defProp$w = Object.defineProperty;
|
|
7514
|
+
var __decorateClass$E = (decorators, target, key, kind) => {
|
|
7514
7515
|
var result = void 0 ;
|
|
7515
7516
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
7516
7517
|
if (decorator = decorators[i])
|
|
7517
7518
|
result = (decorator(target, key, result) ) || result;
|
|
7518
|
-
if (result) __defProp$
|
|
7519
|
+
if (result) __defProp$w(target, key, result);
|
|
7519
7520
|
return result;
|
|
7520
7521
|
};
|
|
7521
7522
|
class SceneTree extends MainLoop {
|
|
@@ -7588,18 +7589,18 @@ class SceneTree extends MainLoop {
|
|
|
7588
7589
|
this.input.removeEventListeners();
|
|
7589
7590
|
}
|
|
7590
7591
|
}
|
|
7591
|
-
__decorateClass$
|
|
7592
|
+
__decorateClass$E([
|
|
7592
7593
|
property({ default: false })
|
|
7593
7594
|
], SceneTree.prototype, "processPaused");
|
|
7594
|
-
__decorateClass$
|
|
7595
|
+
__decorateClass$E([
|
|
7595
7596
|
property()
|
|
7596
7597
|
], SceneTree.prototype, "backgroundColor");
|
|
7597
|
-
__decorateClass$
|
|
7598
|
+
__decorateClass$E([
|
|
7598
7599
|
protectedProperty({ default: false })
|
|
7599
7600
|
], SceneTree.prototype, "debug");
|
|
7600
7601
|
|
|
7601
7602
|
var __getOwnPropDesc$x = Object.getOwnPropertyDescriptor;
|
|
7602
|
-
var __decorateClass$
|
|
7603
|
+
var __decorateClass$D = (decorators, target, key, kind) => {
|
|
7603
7604
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$x(target, key) : target;
|
|
7604
7605
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
7605
7606
|
if (decorator = decorators[i])
|
|
@@ -7612,7 +7613,7 @@ let Transition = class extends Effect {
|
|
|
7612
7613
|
this.setProperties(properties).append(children);
|
|
7613
7614
|
}
|
|
7614
7615
|
};
|
|
7615
|
-
Transition = __decorateClass$
|
|
7616
|
+
Transition = __decorateClass$D([
|
|
7616
7617
|
customNode("Transition", {
|
|
7617
7618
|
effectMode: "transition",
|
|
7618
7619
|
processMode: "pausable",
|
|
@@ -7620,15 +7621,15 @@ Transition = __decorateClass$A([
|
|
|
7620
7621
|
})
|
|
7621
7622
|
], Transition);
|
|
7622
7623
|
|
|
7623
|
-
var __defProp$
|
|
7624
|
+
var __defProp$v = Object.defineProperty;
|
|
7624
7625
|
var __getOwnPropDesc$w = Object.getOwnPropertyDescriptor;
|
|
7625
|
-
var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$
|
|
7626
|
-
var __decorateClass$
|
|
7626
|
+
var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7627
|
+
var __decorateClass$C = (decorators, target, key, kind) => {
|
|
7627
7628
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$w(target, key) : target;
|
|
7628
7629
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
7629
7630
|
if (decorator = decorators[i])
|
|
7630
7631
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7631
|
-
if (kind && result) __defProp$
|
|
7632
|
+
if (kind && result) __defProp$v(target, key, result);
|
|
7632
7633
|
return result;
|
|
7633
7634
|
};
|
|
7634
7635
|
var __publicField$d = (obj, key, value) => __defNormalProp$d(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
@@ -7734,25 +7735,25 @@ void main(void) {
|
|
|
7734
7735
|
}`,
|
|
7735
7736
|
frag: frag$2
|
|
7736
7737
|
}));
|
|
7737
|
-
__decorateClass$
|
|
7738
|
+
__decorateClass$C([
|
|
7738
7739
|
property({ default: 4 })
|
|
7739
7740
|
], GaussianBlurEffect.prototype, "strength", 2);
|
|
7740
|
-
__decorateClass$
|
|
7741
|
+
__decorateClass$C([
|
|
7741
7742
|
property({ default: 3 })
|
|
7742
7743
|
], GaussianBlurEffect.prototype, "quality", 2);
|
|
7743
|
-
GaussianBlurEffect = __decorateClass$
|
|
7744
|
+
GaussianBlurEffect = __decorateClass$C([
|
|
7744
7745
|
customNode("GaussianBlurEffect")
|
|
7745
7746
|
], GaussianBlurEffect);
|
|
7746
7747
|
|
|
7747
|
-
var __defProp$
|
|
7748
|
+
var __defProp$u = Object.defineProperty;
|
|
7748
7749
|
var __getOwnPropDesc$v = Object.getOwnPropertyDescriptor;
|
|
7749
|
-
var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$
|
|
7750
|
-
var __decorateClass$
|
|
7750
|
+
var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7751
|
+
var __decorateClass$B = (decorators, target, key, kind) => {
|
|
7751
7752
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$v(target, key) : target;
|
|
7752
7753
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
7753
7754
|
if (decorator = decorators[i])
|
|
7754
7755
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7755
|
-
if (kind && result) __defProp$
|
|
7756
|
+
if (kind && result) __defProp$u(target, key, result);
|
|
7756
7757
|
return result;
|
|
7757
7758
|
};
|
|
7758
7759
|
var __publicField$c = (obj, key, value) => __defNormalProp$c(obj, key + "" , value);
|
|
@@ -7816,34 +7817,34 @@ void main(void) {
|
|
|
7816
7817
|
gl_FragColor = sample;
|
|
7817
7818
|
}`
|
|
7818
7819
|
}));
|
|
7819
|
-
__decorateClass$
|
|
7820
|
+
__decorateClass$B([
|
|
7820
7821
|
property({ default: 0 })
|
|
7821
7822
|
], DropShadowEffect.prototype, "color", 2);
|
|
7822
|
-
__decorateClass$
|
|
7823
|
+
__decorateClass$B([
|
|
7823
7824
|
property({ default: 4 })
|
|
7824
7825
|
], DropShadowEffect.prototype, "blur", 2);
|
|
7825
|
-
__decorateClass$
|
|
7826
|
+
__decorateClass$B([
|
|
7826
7827
|
property({ default: 4 })
|
|
7827
7828
|
], DropShadowEffect.prototype, "offsetX", 2);
|
|
7828
|
-
__decorateClass$
|
|
7829
|
+
__decorateClass$B([
|
|
7829
7830
|
property({ default: 4 })
|
|
7830
7831
|
], DropShadowEffect.prototype, "offsetY", 2);
|
|
7831
|
-
__decorateClass$
|
|
7832
|
+
__decorateClass$B([
|
|
7832
7833
|
property({ default: false })
|
|
7833
7834
|
], DropShadowEffect.prototype, "shadowOnly", 2);
|
|
7834
|
-
DropShadowEffect = __decorateClass$
|
|
7835
|
+
DropShadowEffect = __decorateClass$B([
|
|
7835
7836
|
customNode("DropShadowEffect")
|
|
7836
7837
|
], DropShadowEffect);
|
|
7837
7838
|
|
|
7838
|
-
var __defProp$
|
|
7839
|
+
var __defProp$t = Object.defineProperty;
|
|
7839
7840
|
var __getOwnPropDesc$u = Object.getOwnPropertyDescriptor;
|
|
7840
|
-
var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$
|
|
7841
|
-
var __decorateClass$
|
|
7841
|
+
var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7842
|
+
var __decorateClass$A = (decorators, target, key, kind) => {
|
|
7842
7843
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$u(target, key) : target;
|
|
7843
7844
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
7844
7845
|
if (decorator = decorators[i])
|
|
7845
7846
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7846
|
-
if (kind && result) __defProp$
|
|
7847
|
+
if (kind && result) __defProp$t(target, key, result);
|
|
7847
7848
|
return result;
|
|
7848
7849
|
};
|
|
7849
7850
|
var __publicField$b = (obj, key, value) => __defNormalProp$b(obj, key + "" , value);
|
|
@@ -7888,22 +7889,22 @@ void main(void) {
|
|
|
7888
7889
|
gl_FragColor = vec4(color.rgb * alpha, alpha);
|
|
7889
7890
|
}`
|
|
7890
7891
|
}));
|
|
7891
|
-
__decorateClass$
|
|
7892
|
+
__decorateClass$A([
|
|
7892
7893
|
property({ default: 5 })
|
|
7893
7894
|
], EmbossEffect.prototype, "strength", 2);
|
|
7894
|
-
EmbossEffect = __decorateClass$
|
|
7895
|
+
EmbossEffect = __decorateClass$A([
|
|
7895
7896
|
customNode("EmbossEffect")
|
|
7896
7897
|
], EmbossEffect);
|
|
7897
7898
|
|
|
7898
|
-
var __defProp$
|
|
7899
|
+
var __defProp$s = Object.defineProperty;
|
|
7899
7900
|
var __getOwnPropDesc$t = Object.getOwnPropertyDescriptor;
|
|
7900
|
-
var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$
|
|
7901
|
-
var __decorateClass$
|
|
7901
|
+
var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7902
|
+
var __decorateClass$z = (decorators, target, key, kind) => {
|
|
7902
7903
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$t(target, key) : target;
|
|
7903
7904
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
7904
7905
|
if (decorator = decorators[i])
|
|
7905
7906
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
7906
|
-
if (kind && result) __defProp$
|
|
7907
|
+
if (kind && result) __defProp$s(target, key, result);
|
|
7907
7908
|
return result;
|
|
7908
7909
|
};
|
|
7909
7910
|
var __publicField$a = (obj, key, value) => __defNormalProp$a(obj, key + "" , value);
|
|
@@ -8077,46 +8078,46 @@ void main(void) {
|
|
|
8077
8078
|
gl_FragColor.a = texture2D(sampler, coord).a;
|
|
8078
8079
|
}`
|
|
8079
8080
|
}));
|
|
8080
|
-
__decorateClass$
|
|
8081
|
+
__decorateClass$z([
|
|
8081
8082
|
property({ default: 10 })
|
|
8082
8083
|
], GlitchEffect.prototype, "slices", 2);
|
|
8083
|
-
__decorateClass$
|
|
8084
|
+
__decorateClass$z([
|
|
8084
8085
|
property({ default: 512 })
|
|
8085
8086
|
], GlitchEffect.prototype, "sampleSize", 2);
|
|
8086
|
-
__decorateClass$
|
|
8087
|
+
__decorateClass$z([
|
|
8087
8088
|
property({ default: 100 })
|
|
8088
8089
|
], GlitchEffect.prototype, "offset", 2);
|
|
8089
|
-
__decorateClass$
|
|
8090
|
+
__decorateClass$z([
|
|
8090
8091
|
property({ default: 0 })
|
|
8091
8092
|
], GlitchEffect.prototype, "direction", 2);
|
|
8092
|
-
__decorateClass$
|
|
8093
|
+
__decorateClass$z([
|
|
8093
8094
|
property({ default: 2 })
|
|
8094
8095
|
], GlitchEffect.prototype, "fillMode", 2);
|
|
8095
|
-
__decorateClass$
|
|
8096
|
+
__decorateClass$z([
|
|
8096
8097
|
property({ default: 0 })
|
|
8097
8098
|
], GlitchEffect.prototype, "seed", 2);
|
|
8098
|
-
__decorateClass$
|
|
8099
|
+
__decorateClass$z([
|
|
8099
8100
|
property({ default: [2, 2] })
|
|
8100
8101
|
], GlitchEffect.prototype, "red", 2);
|
|
8101
|
-
__decorateClass$
|
|
8102
|
+
__decorateClass$z([
|
|
8102
8103
|
property({ default: [-10, 4] })
|
|
8103
8104
|
], GlitchEffect.prototype, "green", 2);
|
|
8104
|
-
__decorateClass$
|
|
8105
|
+
__decorateClass$z([
|
|
8105
8106
|
property({ default: [10, -4] })
|
|
8106
8107
|
], GlitchEffect.prototype, "blue", 2);
|
|
8107
|
-
GlitchEffect = __decorateClass$
|
|
8108
|
+
GlitchEffect = __decorateClass$z([
|
|
8108
8109
|
customNode("GlitchEffect")
|
|
8109
8110
|
], GlitchEffect);
|
|
8110
8111
|
|
|
8111
|
-
var __defProp$
|
|
8112
|
+
var __defProp$r = Object.defineProperty;
|
|
8112
8113
|
var __getOwnPropDesc$s = Object.getOwnPropertyDescriptor;
|
|
8113
|
-
var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$
|
|
8114
|
-
var __decorateClass$
|
|
8114
|
+
var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8115
|
+
var __decorateClass$y = (decorators, target, key, kind) => {
|
|
8115
8116
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$s(target, key) : target;
|
|
8116
8117
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
8117
8118
|
if (decorator = decorators[i])
|
|
8118
8119
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8119
|
-
if (kind && result) __defProp$
|
|
8120
|
+
if (kind && result) __defProp$r(target, key, result);
|
|
8120
8121
|
return result;
|
|
8121
8122
|
};
|
|
8122
8123
|
var __publicField$9 = (obj, key, value) => __defNormalProp$9(obj, key + "" , value);
|
|
@@ -8294,39 +8295,39 @@ void main(void) {
|
|
|
8294
8295
|
gl_FragColor = vec4(color.rgb + mist.rgb, color.a);
|
|
8295
8296
|
}`
|
|
8296
8297
|
}));
|
|
8297
|
-
__decorateClass$
|
|
8298
|
+
__decorateClass$y([
|
|
8298
8299
|
property({ default: 0 })
|
|
8299
8300
|
], GodrayEffect.prototype, "time", 2);
|
|
8300
|
-
__decorateClass$
|
|
8301
|
+
__decorateClass$y([
|
|
8301
8302
|
property({ default: 30 })
|
|
8302
8303
|
], GodrayEffect.prototype, "angle", 2);
|
|
8303
|
-
__decorateClass$
|
|
8304
|
+
__decorateClass$y([
|
|
8304
8305
|
property({ default: 0.5 })
|
|
8305
8306
|
], GodrayEffect.prototype, "gain", 2);
|
|
8306
|
-
__decorateClass$
|
|
8307
|
+
__decorateClass$y([
|
|
8307
8308
|
property({ default: 2.5 })
|
|
8308
8309
|
], GodrayEffect.prototype, "lacunarity", 2);
|
|
8309
|
-
__decorateClass$
|
|
8310
|
+
__decorateClass$y([
|
|
8310
8311
|
property({ default: true })
|
|
8311
8312
|
], GodrayEffect.prototype, "parallel", 2);
|
|
8312
|
-
__decorateClass$
|
|
8313
|
+
__decorateClass$y([
|
|
8313
8314
|
property({ default: [0, 0] })
|
|
8314
8315
|
], GodrayEffect.prototype, "center", 2);
|
|
8315
|
-
__decorateClass$
|
|
8316
|
+
__decorateClass$y([
|
|
8316
8317
|
property({ default: 1 })
|
|
8317
8318
|
], GodrayEffect.prototype, "alpha", 2);
|
|
8318
|
-
GodrayEffect = __decorateClass$
|
|
8319
|
+
GodrayEffect = __decorateClass$y([
|
|
8319
8320
|
customNode("GodrayEffect")
|
|
8320
8321
|
], GodrayEffect);
|
|
8321
8322
|
|
|
8322
|
-
var __defProp$
|
|
8323
|
+
var __defProp$q = Object.defineProperty;
|
|
8323
8324
|
var __getOwnPropDesc$r = Object.getOwnPropertyDescriptor;
|
|
8324
|
-
var __decorateClass$
|
|
8325
|
+
var __decorateClass$x = (decorators, target, key, kind) => {
|
|
8325
8326
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$r(target, key) : target;
|
|
8326
8327
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
8327
8328
|
if (decorator = decorators[i])
|
|
8328
8329
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8329
|
-
if (kind && result) __defProp$
|
|
8330
|
+
if (kind && result) __defProp$q(target, key, result);
|
|
8330
8331
|
return result;
|
|
8331
8332
|
};
|
|
8332
8333
|
const frag$1 = `varying vec2 vUv;
|
|
@@ -8417,28 +8418,28 @@ void main() {
|
|
|
8417
8418
|
});
|
|
8418
8419
|
}
|
|
8419
8420
|
};
|
|
8420
|
-
__decorateClass$
|
|
8421
|
+
__decorateClass$x([
|
|
8421
8422
|
property({ default: 4 })
|
|
8422
8423
|
], KawaseBlurEffect.prototype, "strength", 2);
|
|
8423
|
-
__decorateClass$
|
|
8424
|
+
__decorateClass$x([
|
|
8424
8425
|
property({ default: 3 })
|
|
8425
8426
|
], KawaseBlurEffect.prototype, "quality", 2);
|
|
8426
|
-
__decorateClass$
|
|
8427
|
+
__decorateClass$x([
|
|
8427
8428
|
property({ default: [1, 1] })
|
|
8428
8429
|
], KawaseBlurEffect.prototype, "pixelSize", 2);
|
|
8429
|
-
KawaseBlurEffect = __decorateClass$
|
|
8430
|
+
KawaseBlurEffect = __decorateClass$x([
|
|
8430
8431
|
customNode("KawaseBlurEffect")
|
|
8431
8432
|
], KawaseBlurEffect);
|
|
8432
8433
|
|
|
8433
|
-
var __defProp$
|
|
8434
|
+
var __defProp$p = Object.defineProperty;
|
|
8434
8435
|
var __getOwnPropDesc$q = Object.getOwnPropertyDescriptor;
|
|
8435
|
-
var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$
|
|
8436
|
-
var __decorateClass$
|
|
8436
|
+
var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8437
|
+
var __decorateClass$w = (decorators, target, key, kind) => {
|
|
8437
8438
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$q(target, key) : target;
|
|
8438
8439
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
8439
8440
|
if (decorator = decorators[i])
|
|
8440
8441
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8441
|
-
if (kind && result) __defProp$
|
|
8442
|
+
if (kind && result) __defProp$p(target, key, result);
|
|
8442
8443
|
return result;
|
|
8443
8444
|
};
|
|
8444
8445
|
var __publicField$8 = (obj, key, value) => __defNormalProp$8(obj, key + "" , value);
|
|
@@ -8527,25 +8528,25 @@ void main(void) {
|
|
|
8527
8528
|
}
|
|
8528
8529
|
}`
|
|
8529
8530
|
}));
|
|
8530
|
-
__decorateClass$
|
|
8531
|
+
__decorateClass$w([
|
|
8531
8532
|
protectedProperty()
|
|
8532
8533
|
], MaskEffect.prototype, "texture", 2);
|
|
8533
|
-
__decorateClass$
|
|
8534
|
+
__decorateClass$w([
|
|
8534
8535
|
property({ default: "" })
|
|
8535
8536
|
], MaskEffect.prototype, "src", 2);
|
|
8536
|
-
MaskEffect = __decorateClass$
|
|
8537
|
+
MaskEffect = __decorateClass$w([
|
|
8537
8538
|
customNode("MaskEffect")
|
|
8538
8539
|
], MaskEffect);
|
|
8539
8540
|
|
|
8540
|
-
var __defProp$
|
|
8541
|
+
var __defProp$o = Object.defineProperty;
|
|
8541
8542
|
var __getOwnPropDesc$p = Object.getOwnPropertyDescriptor;
|
|
8542
|
-
var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$
|
|
8543
|
-
var __decorateClass$
|
|
8543
|
+
var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8544
|
+
var __decorateClass$v = (decorators, target, key, kind) => {
|
|
8544
8545
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$p(target, key) : target;
|
|
8545
8546
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
8546
8547
|
if (decorator = decorators[i])
|
|
8547
8548
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8548
|
-
if (kind && result) __defProp$
|
|
8549
|
+
if (kind && result) __defProp$o(target, key, result);
|
|
8549
8550
|
return result;
|
|
8550
8551
|
};
|
|
8551
8552
|
var __publicField$7 = (obj, key, value) => __defNormalProp$7(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
@@ -8633,40 +8634,40 @@ void main() {
|
|
|
8633
8634
|
};
|
|
8634
8635
|
__publicField$7(OutlineEffect, "MIN_SAMPLES", 1);
|
|
8635
8636
|
__publicField$7(OutlineEffect, "MAX_SAMPLES", 100);
|
|
8636
|
-
__decorateClass$
|
|
8637
|
+
__decorateClass$v([
|
|
8637
8638
|
property({ default: 0 })
|
|
8638
8639
|
], OutlineEffect.prototype, "color", 2);
|
|
8639
|
-
__decorateClass$
|
|
8640
|
+
__decorateClass$v([
|
|
8640
8641
|
property({ default: 1 })
|
|
8641
8642
|
], OutlineEffect.prototype, "width", 2);
|
|
8642
|
-
__decorateClass$
|
|
8643
|
+
__decorateClass$v([
|
|
8643
8644
|
property({ default: "solid" })
|
|
8644
8645
|
], OutlineEffect.prototype, "style", 2);
|
|
8645
|
-
__decorateClass$
|
|
8646
|
+
__decorateClass$v([
|
|
8646
8647
|
property()
|
|
8647
8648
|
], OutlineEffect.prototype, "image", 2);
|
|
8648
|
-
__decorateClass$
|
|
8649
|
+
__decorateClass$v([
|
|
8649
8650
|
property({ default: 1 })
|
|
8650
8651
|
], OutlineEffect.prototype, "opacity", 2);
|
|
8651
|
-
__decorateClass$
|
|
8652
|
+
__decorateClass$v([
|
|
8652
8653
|
property({ default: 0.1 })
|
|
8653
8654
|
], OutlineEffect.prototype, "quality", 2);
|
|
8654
|
-
__decorateClass$
|
|
8655
|
+
__decorateClass$v([
|
|
8655
8656
|
property({ default: false })
|
|
8656
8657
|
], OutlineEffect.prototype, "knockout", 2);
|
|
8657
|
-
OutlineEffect = __decorateClass$
|
|
8658
|
+
OutlineEffect = __decorateClass$v([
|
|
8658
8659
|
customNode("OutlineEffect")
|
|
8659
8660
|
], OutlineEffect);
|
|
8660
8661
|
|
|
8661
|
-
var __defProp$
|
|
8662
|
+
var __defProp$n = Object.defineProperty;
|
|
8662
8663
|
var __getOwnPropDesc$o = Object.getOwnPropertyDescriptor;
|
|
8663
|
-
var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$
|
|
8664
|
-
var __decorateClass$
|
|
8664
|
+
var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8665
|
+
var __decorateClass$u = (decorators, target, key, kind) => {
|
|
8665
8666
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$o(target, key) : target;
|
|
8666
8667
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
8667
8668
|
if (decorator = decorators[i])
|
|
8668
8669
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8669
|
-
if (kind && result) __defProp$
|
|
8670
|
+
if (kind && result) __defProp$n(target, key, result);
|
|
8670
8671
|
return result;
|
|
8671
8672
|
};
|
|
8672
8673
|
var __publicField$6 = (obj, key, value) => __defNormalProp$6(obj, key + "" , value);
|
|
@@ -8722,22 +8723,22 @@ void main(void) {
|
|
|
8722
8723
|
gl_FragColor = texture2D(sampler, coord);
|
|
8723
8724
|
}`
|
|
8724
8725
|
}));
|
|
8725
|
-
__decorateClass$
|
|
8726
|
+
__decorateClass$u([
|
|
8726
8727
|
property({ default: 10 })
|
|
8727
8728
|
], PixelateEffect.prototype, "strength", 2);
|
|
8728
|
-
PixelateEffect = __decorateClass$
|
|
8729
|
+
PixelateEffect = __decorateClass$u([
|
|
8729
8730
|
customNode("PixelateEffect")
|
|
8730
8731
|
], PixelateEffect);
|
|
8731
8732
|
|
|
8732
|
-
var __defProp$
|
|
8733
|
+
var __defProp$m = Object.defineProperty;
|
|
8733
8734
|
var __getOwnPropDesc$n = Object.getOwnPropertyDescriptor;
|
|
8734
|
-
var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$
|
|
8735
|
-
var __decorateClass$
|
|
8735
|
+
var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8736
|
+
var __decorateClass$t = (decorators, target, key, kind) => {
|
|
8736
8737
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$n(target, key) : target;
|
|
8737
8738
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
8738
8739
|
if (decorator = decorators[i])
|
|
8739
8740
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8740
|
-
if (kind && result) __defProp$
|
|
8741
|
+
if (kind && result) __defProp$m(target, key, result);
|
|
8741
8742
|
return result;
|
|
8742
8743
|
};
|
|
8743
8744
|
var __publicField$5 = (obj, key, value) => __defNormalProp$5(obj, key + "" , value);
|
|
@@ -8850,93 +8851,279 @@ void main() {
|
|
|
8850
8851
|
gl_FragColor = color;
|
|
8851
8852
|
}`
|
|
8852
8853
|
}));
|
|
8853
|
-
__decorateClass$
|
|
8854
|
+
__decorateClass$t([
|
|
8854
8855
|
property()
|
|
8855
8856
|
], ZoomBlurEffect.prototype, "center", 2);
|
|
8856
|
-
__decorateClass$
|
|
8857
|
+
__decorateClass$t([
|
|
8857
8858
|
property({ default: 20 })
|
|
8858
8859
|
], ZoomBlurEffect.prototype, "innerRadius", 2);
|
|
8859
|
-
__decorateClass$
|
|
8860
|
+
__decorateClass$t([
|
|
8860
8861
|
property({ default: -1 })
|
|
8861
8862
|
], ZoomBlurEffect.prototype, "radius", 2);
|
|
8862
|
-
__decorateClass$
|
|
8863
|
+
__decorateClass$t([
|
|
8863
8864
|
property({ default: 0.1 })
|
|
8864
8865
|
], ZoomBlurEffect.prototype, "strength", 2);
|
|
8865
|
-
ZoomBlurEffect = __decorateClass$
|
|
8866
|
+
ZoomBlurEffect = __decorateClass$t([
|
|
8866
8867
|
customNode("ZoomBlurEffect")
|
|
8867
8868
|
], ZoomBlurEffect);
|
|
8868
8869
|
|
|
8869
|
-
var __defProp$
|
|
8870
|
-
var __decorateClass$
|
|
8870
|
+
var __defProp$l = Object.defineProperty;
|
|
8871
|
+
var __decorateClass$s = (decorators, target, key, kind) => {
|
|
8871
8872
|
var result = void 0 ;
|
|
8872
8873
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
8873
8874
|
if (decorator = decorators[i])
|
|
8874
8875
|
result = (decorator(target, key, result) ) || result;
|
|
8875
|
-
if (result) __defProp$
|
|
8876
|
+
if (result) __defProp$l(target, key, result);
|
|
8876
8877
|
return result;
|
|
8877
8878
|
};
|
|
8878
|
-
class
|
|
8879
|
-
constructor(parent) {
|
|
8879
|
+
class BaseElement2DFill extends CoreObject {
|
|
8880
|
+
constructor(parent, properties) {
|
|
8880
8881
|
super();
|
|
8881
8882
|
this.parent = parent;
|
|
8883
|
+
this.setProperties(properties);
|
|
8882
8884
|
}
|
|
8885
|
+
_image;
|
|
8883
8886
|
_updateProperty(key, value, oldValue, declaration) {
|
|
8884
8887
|
super._updateProperty(key, value, oldValue, declaration);
|
|
8885
8888
|
switch (key) {
|
|
8886
8889
|
case "color":
|
|
8887
|
-
case "
|
|
8888
|
-
case "
|
|
8890
|
+
case "dpi":
|
|
8891
|
+
case "rotateWithShape":
|
|
8892
|
+
case "tile":
|
|
8893
|
+
this.parent.requestRedraw();
|
|
8894
|
+
break;
|
|
8889
8895
|
case "image":
|
|
8890
|
-
|
|
8891
|
-
this.updateEffect();
|
|
8896
|
+
this._updateImage();
|
|
8892
8897
|
break;
|
|
8893
8898
|
}
|
|
8894
8899
|
}
|
|
8895
|
-
|
|
8896
|
-
|
|
8897
|
-
|
|
8898
|
-
|
|
8899
|
-
|
|
8900
|
-
|
|
8901
|
-
|
|
8900
|
+
async loadImage() {
|
|
8901
|
+
if (this.image && this.image !== "none") {
|
|
8902
|
+
return await assets.texture.load(this.image);
|
|
8903
|
+
}
|
|
8904
|
+
}
|
|
8905
|
+
async _updateImage() {
|
|
8906
|
+
this._image = await this.loadImage();
|
|
8907
|
+
this.parent.requestRedraw();
|
|
8908
|
+
}
|
|
8909
|
+
canDraw() {
|
|
8910
|
+
return Boolean(
|
|
8911
|
+
this._image || this.color
|
|
8912
|
+
);
|
|
8913
|
+
}
|
|
8914
|
+
draw() {
|
|
8915
|
+
const ctx = this.parent.context;
|
|
8916
|
+
if (this._image) {
|
|
8917
|
+
const { width: imageWidth, height: imageHeight } = this._image;
|
|
8918
|
+
const { width, height } = this.parent.size;
|
|
8919
|
+
const transform = new Transform2D();
|
|
8920
|
+
if (this.tile) {
|
|
8921
|
+
const {
|
|
8922
|
+
translateX = 0,
|
|
8923
|
+
translateY = 0,
|
|
8924
|
+
scaleX = 1,
|
|
8925
|
+
scaleY = 1
|
|
8926
|
+
// flip, TODO
|
|
8927
|
+
// alignment, TODO
|
|
8928
|
+
} = this.tile;
|
|
8929
|
+
transform.scale(1 / imageWidth, 1 / imageHeight).scale(1 / scaleX, 1 / scaleY).translate(-translateX / imageWidth, -translateY / imageHeight);
|
|
8930
|
+
} else if (this.stretch) {
|
|
8931
|
+
const { left = 0, top = 0, right = 0, bottom = 0 } = this.stretch.rect ?? {};
|
|
8932
|
+
const w = Math.abs(1 + (-left + -right)) * width;
|
|
8933
|
+
const h = Math.abs(1 + (-top + -bottom)) * height;
|
|
8934
|
+
const scaleX = 1 / w;
|
|
8935
|
+
const scaleY = 1 / h;
|
|
8936
|
+
const translateX = -left * width * scaleX;
|
|
8937
|
+
const translateY = -top * height * scaleY;
|
|
8938
|
+
transform.scale(scaleX, scaleY).translate(translateX, translateY);
|
|
8939
|
+
} else {
|
|
8940
|
+
transform.scale(1 / width, 1 / height);
|
|
8902
8941
|
}
|
|
8903
|
-
|
|
8942
|
+
ctx.textureTransform = transform;
|
|
8943
|
+
ctx.fillStyle = this._image;
|
|
8944
|
+
ctx.fill({
|
|
8945
|
+
disableWrapMode: true
|
|
8946
|
+
});
|
|
8904
8947
|
} else {
|
|
8905
|
-
|
|
8906
|
-
|
|
8948
|
+
ctx.fillStyle = this.color;
|
|
8949
|
+
ctx.fill();
|
|
8950
|
+
}
|
|
8951
|
+
}
|
|
8952
|
+
}
|
|
8953
|
+
__decorateClass$s([
|
|
8954
|
+
property()
|
|
8955
|
+
], BaseElement2DFill.prototype, "color");
|
|
8956
|
+
__decorateClass$s([
|
|
8957
|
+
property()
|
|
8958
|
+
], BaseElement2DFill.prototype, "image");
|
|
8959
|
+
__decorateClass$s([
|
|
8960
|
+
property()
|
|
8961
|
+
], BaseElement2DFill.prototype, "dpi");
|
|
8962
|
+
__decorateClass$s([
|
|
8963
|
+
property()
|
|
8964
|
+
], BaseElement2DFill.prototype, "rotateWithShape");
|
|
8965
|
+
__decorateClass$s([
|
|
8966
|
+
property()
|
|
8967
|
+
], BaseElement2DFill.prototype, "tile");
|
|
8968
|
+
__decorateClass$s([
|
|
8969
|
+
property()
|
|
8970
|
+
], BaseElement2DFill.prototype, "stretch");
|
|
8971
|
+
|
|
8972
|
+
var __defProp$k = Object.defineProperty;
|
|
8973
|
+
var __decorateClass$r = (decorators, target, key, kind) => {
|
|
8974
|
+
var result = void 0 ;
|
|
8975
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
8976
|
+
if (decorator = decorators[i])
|
|
8977
|
+
result = (decorator(target, key, result) ) || result;
|
|
8978
|
+
if (result) __defProp$k(target, key, result);
|
|
8979
|
+
return result;
|
|
8980
|
+
};
|
|
8981
|
+
class BaseElement2DGeometry extends CoreObject {
|
|
8982
|
+
constructor(parent, properties) {
|
|
8983
|
+
super();
|
|
8984
|
+
this.parent = parent;
|
|
8985
|
+
this.setProperties(properties);
|
|
8986
|
+
this._updatePath2DSet();
|
|
8987
|
+
}
|
|
8988
|
+
_path2DSet = new Path2DSet();
|
|
8989
|
+
_updateProperty(key, value, oldValue, declaration) {
|
|
8990
|
+
super._updateProperty(key, value, oldValue, declaration);
|
|
8991
|
+
switch (key) {
|
|
8992
|
+
case "svg":
|
|
8993
|
+
case "data":
|
|
8994
|
+
case "viewBox":
|
|
8995
|
+
this._updatePath2DSet();
|
|
8996
|
+
this.parent.requestRedraw();
|
|
8997
|
+
break;
|
|
8998
|
+
}
|
|
8999
|
+
}
|
|
9000
|
+
_updatePath2DSet() {
|
|
9001
|
+
let viewBox;
|
|
9002
|
+
if (this.svg) {
|
|
9003
|
+
const dom = svgToDOM(this.svg);
|
|
9004
|
+
this._path2DSet = svgToPath2DSet(dom);
|
|
9005
|
+
viewBox = this._path2DSet.viewBox ?? this.viewBox;
|
|
9006
|
+
} else {
|
|
9007
|
+
viewBox = this.viewBox;
|
|
9008
|
+
this.data.forEach((path, i) => {
|
|
9009
|
+
const { data, ...style } = path;
|
|
9010
|
+
const path2D = new Path2D();
|
|
9011
|
+
path2D.style = style;
|
|
9012
|
+
path2D.addData(data);
|
|
9013
|
+
this._path2DSet.paths[i] = path2D;
|
|
9014
|
+
});
|
|
9015
|
+
}
|
|
9016
|
+
const [x, y, w, h] = viewBox;
|
|
9017
|
+
this._path2DSet.paths.forEach((path) => {
|
|
9018
|
+
path.applyTransform(new Matrix3$1().translate(-x, -y).scale(1 / w, 1 / h));
|
|
9019
|
+
});
|
|
9020
|
+
}
|
|
9021
|
+
draw() {
|
|
9022
|
+
if (this._path2DSet.paths.length) {
|
|
9023
|
+
const ctx = this.parent.context;
|
|
9024
|
+
const { width, height } = this.parent.size;
|
|
9025
|
+
this._path2DSet.paths.forEach((path) => {
|
|
9026
|
+
ctx.addPath(path.clone().applyTransform(new Matrix3$1().scale(width, height)));
|
|
9027
|
+
});
|
|
9028
|
+
} else {
|
|
9029
|
+
this.drawRect();
|
|
9030
|
+
}
|
|
9031
|
+
}
|
|
9032
|
+
drawRect() {
|
|
9033
|
+
const ctx = this.parent.context;
|
|
9034
|
+
const { width, height } = this.parent.size;
|
|
9035
|
+
const { borderRadius } = this.parent.style;
|
|
9036
|
+
if (width && height) {
|
|
9037
|
+
if (borderRadius) {
|
|
9038
|
+
ctx.roundRect(0, 0, width, height, borderRadius);
|
|
9039
|
+
} else {
|
|
9040
|
+
ctx.rect(0, 0, width, height);
|
|
8907
9041
|
}
|
|
8908
9042
|
}
|
|
8909
9043
|
}
|
|
8910
9044
|
}
|
|
8911
|
-
__decorateClass$
|
|
8912
|
-
property(
|
|
9045
|
+
__decorateClass$r([
|
|
9046
|
+
property()
|
|
9047
|
+
], BaseElement2DGeometry.prototype, "name");
|
|
9048
|
+
__decorateClass$r([
|
|
9049
|
+
property()
|
|
9050
|
+
], BaseElement2DGeometry.prototype, "svg");
|
|
9051
|
+
__decorateClass$r([
|
|
9052
|
+
property({ default: [0, 0, 1, 1] })
|
|
9053
|
+
], BaseElement2DGeometry.prototype, "viewBox");
|
|
9054
|
+
__decorateClass$r([
|
|
9055
|
+
property({ default: [] })
|
|
9056
|
+
], BaseElement2DGeometry.prototype, "data");
|
|
9057
|
+
|
|
9058
|
+
var __defProp$j = Object.defineProperty;
|
|
9059
|
+
var __decorateClass$q = (decorators, target, key, kind) => {
|
|
9060
|
+
var result = void 0 ;
|
|
9061
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
9062
|
+
if (decorator = decorators[i])
|
|
9063
|
+
result = (decorator(target, key, result) ) || result;
|
|
9064
|
+
if (result) __defProp$j(target, key, result);
|
|
9065
|
+
return result;
|
|
9066
|
+
};
|
|
9067
|
+
class BaseElement2DOutline extends CoreObject {
|
|
9068
|
+
constructor(parent, properties) {
|
|
9069
|
+
super();
|
|
9070
|
+
this.parent = parent;
|
|
9071
|
+
this.setProperties(properties);
|
|
9072
|
+
}
|
|
9073
|
+
_updateProperty(key, value, oldValue, declaration) {
|
|
9074
|
+
super._updateProperty(key, value, oldValue, declaration);
|
|
9075
|
+
switch (key) {
|
|
9076
|
+
case "color":
|
|
9077
|
+
case "width":
|
|
9078
|
+
case "style":
|
|
9079
|
+
case "image":
|
|
9080
|
+
case "opacity":
|
|
9081
|
+
this.parent.requestRedraw();
|
|
9082
|
+
break;
|
|
9083
|
+
}
|
|
9084
|
+
}
|
|
9085
|
+
canDraw() {
|
|
9086
|
+
return Boolean(
|
|
9087
|
+
this.width || this.color
|
|
9088
|
+
);
|
|
9089
|
+
}
|
|
9090
|
+
draw() {
|
|
9091
|
+
const ctx = this.parent.context;
|
|
9092
|
+
ctx.lineWidth = this.width;
|
|
9093
|
+
ctx.strokeStyle = this.color;
|
|
9094
|
+
ctx.stroke();
|
|
9095
|
+
}
|
|
9096
|
+
}
|
|
9097
|
+
__decorateClass$q([
|
|
9098
|
+
property({ default: 0 })
|
|
8913
9099
|
], BaseElement2DOutline.prototype, "color");
|
|
8914
|
-
__decorateClass$
|
|
9100
|
+
__decorateClass$q([
|
|
8915
9101
|
property({ default: 0 })
|
|
8916
9102
|
], BaseElement2DOutline.prototype, "width");
|
|
8917
|
-
__decorateClass$
|
|
9103
|
+
__decorateClass$q([
|
|
8918
9104
|
property({ default: "solid" })
|
|
8919
9105
|
], BaseElement2DOutline.prototype, "style");
|
|
8920
|
-
__decorateClass$
|
|
9106
|
+
__decorateClass$q([
|
|
8921
9107
|
property()
|
|
8922
9108
|
], BaseElement2DOutline.prototype, "image");
|
|
8923
|
-
__decorateClass$
|
|
9109
|
+
__decorateClass$q([
|
|
8924
9110
|
property({ default: 1 })
|
|
8925
9111
|
], BaseElement2DOutline.prototype, "opacity");
|
|
8926
9112
|
|
|
8927
|
-
var __defProp$
|
|
8928
|
-
var __decorateClass$
|
|
9113
|
+
var __defProp$i = Object.defineProperty;
|
|
9114
|
+
var __decorateClass$p = (decorators, target, key, kind) => {
|
|
8929
9115
|
var result = void 0 ;
|
|
8930
9116
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
8931
9117
|
if (decorator = decorators[i])
|
|
8932
9118
|
result = (decorator(target, key, result) ) || result;
|
|
8933
|
-
if (result) __defProp$
|
|
9119
|
+
if (result) __defProp$i(target, key, result);
|
|
8934
9120
|
return result;
|
|
8935
9121
|
};
|
|
8936
9122
|
class BaseElement2DShadow extends CoreObject {
|
|
8937
|
-
constructor(parent) {
|
|
9123
|
+
constructor(parent, properties) {
|
|
8938
9124
|
super();
|
|
8939
9125
|
this.parent = parent;
|
|
9126
|
+
this.setProperties(properties);
|
|
8940
9127
|
}
|
|
8941
9128
|
_updateProperty(key, value, oldValue, declaration) {
|
|
8942
9129
|
super._updateProperty(key, value, oldValue, declaration);
|
|
@@ -8965,16 +9152,16 @@ class BaseElement2DShadow extends CoreObject {
|
|
|
8965
9152
|
}
|
|
8966
9153
|
}
|
|
8967
9154
|
}
|
|
8968
|
-
__decorateClass$
|
|
9155
|
+
__decorateClass$p([
|
|
8969
9156
|
property({ default: "#000000" })
|
|
8970
9157
|
], BaseElement2DShadow.prototype, "color");
|
|
8971
|
-
__decorateClass$
|
|
9158
|
+
__decorateClass$p([
|
|
8972
9159
|
property({ default: 0 })
|
|
8973
9160
|
], BaseElement2DShadow.prototype, "blur");
|
|
8974
|
-
__decorateClass$
|
|
9161
|
+
__decorateClass$p([
|
|
8975
9162
|
property({ default: 0 })
|
|
8976
9163
|
], BaseElement2DShadow.prototype, "offsetY");
|
|
8977
|
-
__decorateClass$
|
|
9164
|
+
__decorateClass$p([
|
|
8978
9165
|
property({ default: 0 })
|
|
8979
9166
|
], BaseElement2DShadow.prototype, "offsetX");
|
|
8980
9167
|
|
|
@@ -9012,6 +9199,98 @@ for (const key in defaultStyles$1) {
|
|
|
9012
9199
|
});
|
|
9013
9200
|
}
|
|
9014
9201
|
|
|
9202
|
+
var __defProp$h = Object.defineProperty;
|
|
9203
|
+
var __decorateClass$o = (decorators, target, key, kind) => {
|
|
9204
|
+
var result = void 0 ;
|
|
9205
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
9206
|
+
if (decorator = decorators[i])
|
|
9207
|
+
result = (decorator(target, key, result) ) || result;
|
|
9208
|
+
if (result) __defProp$h(target, key, result);
|
|
9209
|
+
return result;
|
|
9210
|
+
};
|
|
9211
|
+
class BaseElement2DText extends CoreObject {
|
|
9212
|
+
constructor(parent, properties) {
|
|
9213
|
+
super();
|
|
9214
|
+
this.parent = parent;
|
|
9215
|
+
this.setProperties(properties);
|
|
9216
|
+
}
|
|
9217
|
+
effects;
|
|
9218
|
+
measureDom;
|
|
9219
|
+
fonts;
|
|
9220
|
+
texture = new CanvasTexture();
|
|
9221
|
+
baseText = new Text();
|
|
9222
|
+
measureResult;
|
|
9223
|
+
_updateProperty(key, value, oldValue, declaration) {
|
|
9224
|
+
super._updateProperty(key, value, oldValue, declaration);
|
|
9225
|
+
switch (key) {
|
|
9226
|
+
case "content":
|
|
9227
|
+
case "effects":
|
|
9228
|
+
case "measureDom":
|
|
9229
|
+
case "fonts":
|
|
9230
|
+
case "split":
|
|
9231
|
+
this.parent.requestRedraw();
|
|
9232
|
+
break;
|
|
9233
|
+
}
|
|
9234
|
+
}
|
|
9235
|
+
_updateText() {
|
|
9236
|
+
this.baseText.style = {
|
|
9237
|
+
justifyContent: "center",
|
|
9238
|
+
alignItems: "center",
|
|
9239
|
+
textAlign: "center",
|
|
9240
|
+
...this.parent.style.toJSON()
|
|
9241
|
+
};
|
|
9242
|
+
this.baseText.content = this.content ?? "";
|
|
9243
|
+
this.baseText.effects = this.effects;
|
|
9244
|
+
this.baseText.fonts = this.fonts;
|
|
9245
|
+
this.baseText.measureDom = this.measureDom;
|
|
9246
|
+
this.baseText.requestUpdate();
|
|
9247
|
+
}
|
|
9248
|
+
measure() {
|
|
9249
|
+
this._updateText();
|
|
9250
|
+
return this.baseText.measure();
|
|
9251
|
+
}
|
|
9252
|
+
updateMeasure() {
|
|
9253
|
+
this.measureResult = this.measure();
|
|
9254
|
+
const textWidth = this.measureResult.boundingBox.width;
|
|
9255
|
+
const textHeight = this.measureResult.boundingBox.height;
|
|
9256
|
+
const { left, top, width, height = textHeight } = this.parent.style;
|
|
9257
|
+
this.parent.position.x = left + Math.min(0, ((width || textWidth) - textWidth) / 2);
|
|
9258
|
+
this.parent.position.y = top + Math.min(0, ((height || textHeight) - textHeight) / 2);
|
|
9259
|
+
this.parent.size.width = textWidth;
|
|
9260
|
+
this.parent.size.height = textHeight;
|
|
9261
|
+
return this;
|
|
9262
|
+
}
|
|
9263
|
+
canDraw() {
|
|
9264
|
+
return Boolean(
|
|
9265
|
+
this.content && this.texture?.valid
|
|
9266
|
+
);
|
|
9267
|
+
}
|
|
9268
|
+
draw() {
|
|
9269
|
+
const ctx = this.parent.context;
|
|
9270
|
+
this.baseText.render({
|
|
9271
|
+
pixelRatio: this.texture.pixelRatio,
|
|
9272
|
+
view: this.texture.source
|
|
9273
|
+
});
|
|
9274
|
+
this.texture.requestUpload();
|
|
9275
|
+
const { width, height } = this.parent.size;
|
|
9276
|
+
ctx.fillStyle = this.texture;
|
|
9277
|
+
ctx.textureTransform = new Transform2D().scale(1 / width, 1 / height);
|
|
9278
|
+
ctx.fill();
|
|
9279
|
+
}
|
|
9280
|
+
}
|
|
9281
|
+
__decorateClass$o([
|
|
9282
|
+
property({ default: "" })
|
|
9283
|
+
], BaseElement2DText.prototype, "content");
|
|
9284
|
+
__decorateClass$o([
|
|
9285
|
+
property()
|
|
9286
|
+
], BaseElement2DText.prototype, "effects");
|
|
9287
|
+
__decorateClass$o([
|
|
9288
|
+
protectedProperty()
|
|
9289
|
+
], BaseElement2DText.prototype, "measureDom");
|
|
9290
|
+
__decorateClass$o([
|
|
9291
|
+
protectedProperty()
|
|
9292
|
+
], BaseElement2DText.prototype, "fonts");
|
|
9293
|
+
|
|
9015
9294
|
var __getOwnPropDesc$m = Object.getOwnPropertyDescriptor;
|
|
9016
9295
|
var __decorateClass$n = (decorators, target, key, kind) => {
|
|
9017
9296
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$m(target, key) : target;
|
|
@@ -9119,8 +9398,41 @@ let BaseElement2D = class extends Node2D {
|
|
|
9119
9398
|
this._style?.off("updateProperty", cb);
|
|
9120
9399
|
this._style = style;
|
|
9121
9400
|
}
|
|
9122
|
-
|
|
9123
|
-
|
|
9401
|
+
_text = new BaseElement2DText(this);
|
|
9402
|
+
get text() {
|
|
9403
|
+
return this._text;
|
|
9404
|
+
}
|
|
9405
|
+
set text(value) {
|
|
9406
|
+
this._text.setProperties(value);
|
|
9407
|
+
}
|
|
9408
|
+
_geometry = new BaseElement2DGeometry(this);
|
|
9409
|
+
get geometry() {
|
|
9410
|
+
return this._geometry;
|
|
9411
|
+
}
|
|
9412
|
+
set geometry(value) {
|
|
9413
|
+
this._geometry.setProperties(value);
|
|
9414
|
+
}
|
|
9415
|
+
_fill = new BaseElement2DFill(this);
|
|
9416
|
+
get fill() {
|
|
9417
|
+
return this._fill;
|
|
9418
|
+
}
|
|
9419
|
+
set fill(value) {
|
|
9420
|
+
this._fill.setProperties(value);
|
|
9421
|
+
}
|
|
9422
|
+
_outline = new BaseElement2DOutline(this);
|
|
9423
|
+
get outline() {
|
|
9424
|
+
return this._outline;
|
|
9425
|
+
}
|
|
9426
|
+
set outline(value) {
|
|
9427
|
+
this._outline.setProperties(value);
|
|
9428
|
+
}
|
|
9429
|
+
_shadow = new BaseElement2DShadow(this);
|
|
9430
|
+
get shadow() {
|
|
9431
|
+
return this._shadow;
|
|
9432
|
+
}
|
|
9433
|
+
set shadow(value) {
|
|
9434
|
+
this._shadow.setProperties(value);
|
|
9435
|
+
}
|
|
9124
9436
|
constructor(properties, nodes = []) {
|
|
9125
9437
|
super();
|
|
9126
9438
|
this._updateStyleProperty = this._updateStyleProperty.bind(this);
|
|
@@ -9129,10 +9441,21 @@ let BaseElement2D = class extends Node2D {
|
|
|
9129
9441
|
}
|
|
9130
9442
|
setProperties(properties) {
|
|
9131
9443
|
if (properties) {
|
|
9132
|
-
const {
|
|
9444
|
+
const {
|
|
9445
|
+
style,
|
|
9446
|
+
text,
|
|
9447
|
+
geometry,
|
|
9448
|
+
fill,
|
|
9449
|
+
outline,
|
|
9450
|
+
shadow,
|
|
9451
|
+
...restProperties
|
|
9452
|
+
} = properties;
|
|
9133
9453
|
style && this.style.setProperties(style);
|
|
9134
|
-
|
|
9454
|
+
text && this.text.setProperties(text);
|
|
9455
|
+
geometry && this.geometry.setProperties(geometry);
|
|
9456
|
+
fill && this.fill.setProperties(fill);
|
|
9135
9457
|
outline && this.outline.setProperties(outline);
|
|
9458
|
+
shadow && this.shadow.setProperties(shadow);
|
|
9136
9459
|
super.setProperties(restProperties);
|
|
9137
9460
|
}
|
|
9138
9461
|
return this;
|
|
@@ -9174,12 +9497,6 @@ let BaseElement2D = class extends Node2D {
|
|
|
9174
9497
|
this.requestRelayout();
|
|
9175
9498
|
break;
|
|
9176
9499
|
/** draw */
|
|
9177
|
-
case "backgroundColor":
|
|
9178
|
-
this._updateBackgroundColor();
|
|
9179
|
-
break;
|
|
9180
|
-
case "backgroundImage":
|
|
9181
|
-
this._updateBackgroundImage();
|
|
9182
|
-
break;
|
|
9183
9500
|
case "opacity":
|
|
9184
9501
|
this.opacity = this.style.opacity;
|
|
9185
9502
|
break;
|
|
@@ -9195,6 +9512,24 @@ let BaseElement2D = class extends Node2D {
|
|
|
9195
9512
|
case "borderRadius":
|
|
9196
9513
|
this.requestRedraw();
|
|
9197
9514
|
break;
|
|
9515
|
+
case "backgroundColor":
|
|
9516
|
+
this.fill.color = this.style.backgroundColor;
|
|
9517
|
+
break;
|
|
9518
|
+
case "backgroundImage":
|
|
9519
|
+
this.fill.image = this.style.backgroundImage;
|
|
9520
|
+
break;
|
|
9521
|
+
case "borderStyle":
|
|
9522
|
+
case "outlineStyle":
|
|
9523
|
+
this.outline.style = value;
|
|
9524
|
+
break;
|
|
9525
|
+
case "borderWidth":
|
|
9526
|
+
case "outlineWidth":
|
|
9527
|
+
this.outline.width = value;
|
|
9528
|
+
break;
|
|
9529
|
+
case "borderColor":
|
|
9530
|
+
case "outlineColor":
|
|
9531
|
+
this.outline.color = value;
|
|
9532
|
+
break;
|
|
9198
9533
|
}
|
|
9199
9534
|
}
|
|
9200
9535
|
_updateMaskImage() {
|
|
@@ -9214,18 +9549,6 @@ let BaseElement2D = class extends Node2D {
|
|
|
9214
9549
|
}
|
|
9215
9550
|
}
|
|
9216
9551
|
}
|
|
9217
|
-
_updateBackgroundColor() {
|
|
9218
|
-
const backgroundColor = this.style.getComputedBackgroundColor();
|
|
9219
|
-
if (this._originalBatchables.length) {
|
|
9220
|
-
this.requestRepaint();
|
|
9221
|
-
} else if (backgroundColor.a > 0) {
|
|
9222
|
-
this.requestRedraw();
|
|
9223
|
-
}
|
|
9224
|
-
}
|
|
9225
|
-
async _updateBackgroundImage() {
|
|
9226
|
-
this._backgroundImage = await this.style.loadBackgroundImage();
|
|
9227
|
-
this.requestRedraw();
|
|
9228
|
-
}
|
|
9229
9552
|
_updateTransform() {
|
|
9230
9553
|
const { width, height } = this.size;
|
|
9231
9554
|
const [originX, originY] = parseCSSTransformOrigin(this.style.transformOrigin);
|
|
@@ -9285,65 +9608,33 @@ let BaseElement2D = class extends Node2D {
|
|
|
9285
9608
|
}
|
|
9286
9609
|
_draw() {
|
|
9287
9610
|
super._draw();
|
|
9288
|
-
this.
|
|
9289
|
-
|
|
9290
|
-
this._drawBorder();
|
|
9291
|
-
this._drawOutline();
|
|
9292
|
-
}
|
|
9293
|
-
_drawBackground() {
|
|
9294
|
-
const texture = this._backgroundImage;
|
|
9295
|
-
if (texture?.valid) {
|
|
9296
|
-
const { width, height } = this.size;
|
|
9297
|
-
this.context.fillStyle = texture;
|
|
9298
|
-
this.context.textureTransform = new Transform2D().scale(
|
|
9299
|
-
1 / width,
|
|
9300
|
-
1 / height
|
|
9301
|
-
);
|
|
9302
|
-
this._fillBoundingRect();
|
|
9611
|
+
if (this.text.canDraw()) {
|
|
9612
|
+
this.text.updateMeasure();
|
|
9303
9613
|
}
|
|
9304
|
-
|
|
9305
|
-
|
|
9306
|
-
|
|
9307
|
-
|
|
9308
|
-
_drawBorder() {
|
|
9309
|
-
if (this.style.borderWidth && this.style.borderStyle !== "none") {
|
|
9310
|
-
this.context.lineWidth = this.style.borderWidth;
|
|
9311
|
-
this.context.strokeStyle = this.style.borderColor;
|
|
9312
|
-
this._strokeBoundingRect();
|
|
9614
|
+
if (this.fill.canDraw()) {
|
|
9615
|
+
this._tree?.log(this.name, "draw fill");
|
|
9616
|
+
this.geometry.draw();
|
|
9617
|
+
this.fill.draw();
|
|
9313
9618
|
}
|
|
9314
|
-
|
|
9315
|
-
|
|
9316
|
-
|
|
9317
|
-
this.
|
|
9318
|
-
this.context.strokeStyle = this.style.outlineColor;
|
|
9319
|
-
this._strokeBoundingRect();
|
|
9619
|
+
if (this.outline.canDraw()) {
|
|
9620
|
+
this._tree?.log(this.name, "draw outline");
|
|
9621
|
+
this.geometry.draw();
|
|
9622
|
+
this.outline.draw();
|
|
9320
9623
|
}
|
|
9321
|
-
|
|
9322
|
-
|
|
9323
|
-
|
|
9324
|
-
|
|
9325
|
-
if (width && height) {
|
|
9326
|
-
if (borderRadius) {
|
|
9327
|
-
this.context.roundRect(0, 0, width, height, borderRadius);
|
|
9328
|
-
} else {
|
|
9329
|
-
this.context.rect(0, 0, width, height);
|
|
9330
|
-
}
|
|
9624
|
+
if (this.text.canDraw()) {
|
|
9625
|
+
this._tree?.log(this.name, "draw text");
|
|
9626
|
+
this.geometry.drawRect();
|
|
9627
|
+
this.text.draw();
|
|
9331
9628
|
}
|
|
9629
|
+
this._drawContent();
|
|
9332
9630
|
}
|
|
9333
|
-
|
|
9334
|
-
this._drawBoundingRect();
|
|
9335
|
-
this.context.fill();
|
|
9336
|
-
}
|
|
9337
|
-
_strokeBoundingRect() {
|
|
9338
|
-
this._drawBoundingRect();
|
|
9339
|
-
this.context.stroke();
|
|
9631
|
+
_drawContent() {
|
|
9340
9632
|
}
|
|
9341
9633
|
_repaint(batchables) {
|
|
9342
9634
|
const colorMatrix = parseCSSFilter(this.style.filter);
|
|
9343
9635
|
return super._repaint(batchables).map((batchable) => {
|
|
9344
9636
|
return {
|
|
9345
9637
|
...batchable,
|
|
9346
|
-
backgroundColor: this.style.getComputedBackgroundColor().abgr,
|
|
9347
9638
|
colorMatrix: colorMatrix.toMatrix4().toArray(true),
|
|
9348
9639
|
colorMatrixOffset: colorMatrix.toVector4().toArray()
|
|
9349
9640
|
};
|
|
@@ -9360,13 +9651,6 @@ let BaseElement2D = class extends Node2D {
|
|
|
9360
9651
|
this._input(event, key);
|
|
9361
9652
|
}
|
|
9362
9653
|
}
|
|
9363
|
-
_pointerEntering = false;
|
|
9364
|
-
_pointerEntered() {
|
|
9365
|
-
this._pointerEntering = true;
|
|
9366
|
-
}
|
|
9367
|
-
_pointerExited() {
|
|
9368
|
-
if (this._pointerEntering) ;
|
|
9369
|
-
}
|
|
9370
9654
|
// eslint-disable-next-line unused-imports/no-unused-vars
|
|
9371
9655
|
_pointerInput(point, key) {
|
|
9372
9656
|
const { width, height } = this.size;
|
|
@@ -9399,8 +9683,11 @@ let BaseElement2D = class extends Node2D {
|
|
|
9399
9683
|
...json,
|
|
9400
9684
|
props: {
|
|
9401
9685
|
style: this.style.toJSON(),
|
|
9402
|
-
|
|
9686
|
+
text: this.text.toJSON(),
|
|
9687
|
+
geometry: this.geometry.toJSON(),
|
|
9688
|
+
fill: this.fill.toJSON(),
|
|
9403
9689
|
outline: this.outline.toJSON(),
|
|
9690
|
+
shadow: this.shadow.toJSON(),
|
|
9404
9691
|
...json.props
|
|
9405
9692
|
}
|
|
9406
9693
|
};
|
|
@@ -10050,7 +10337,8 @@ let Image2D = class extends Element2D {
|
|
|
10050
10337
|
const tx = left * width * sx;
|
|
10051
10338
|
const ty = top * height * sy;
|
|
10052
10339
|
this.context.textureTransform = new Transform2D().scale(sx, sy).translate(tx, ty);
|
|
10053
|
-
|
|
10340
|
+
this.geometry.drawRect();
|
|
10341
|
+
this.context.fill();
|
|
10054
10342
|
}
|
|
10055
10343
|
}
|
|
10056
10344
|
_repaint(batchables) {
|
|
@@ -10065,12 +10353,12 @@ let Image2D = class extends Element2D {
|
|
|
10065
10353
|
__decorateClass$i([
|
|
10066
10354
|
protectedProperty()
|
|
10067
10355
|
], Image2D.prototype, "texture", 2);
|
|
10068
|
-
__decorateClass$i([
|
|
10069
|
-
property()
|
|
10070
|
-
], Image2D.prototype, "srcRect", 2);
|
|
10071
10356
|
__decorateClass$i([
|
|
10072
10357
|
property({ default: "" })
|
|
10073
10358
|
], Image2D.prototype, "src", 2);
|
|
10359
|
+
__decorateClass$i([
|
|
10360
|
+
property()
|
|
10361
|
+
], Image2D.prototype, "srcRect", 2);
|
|
10074
10362
|
__decorateClass$i([
|
|
10075
10363
|
property({ default: false })
|
|
10076
10364
|
], Image2D.prototype, "gif", 2);
|
|
@@ -10092,7 +10380,8 @@ class TextureRect2D extends Element2D {
|
|
|
10092
10380
|
1 / width,
|
|
10093
10381
|
1 / height
|
|
10094
10382
|
);
|
|
10095
|
-
|
|
10383
|
+
this.geometry.drawRect();
|
|
10384
|
+
this.context.fill();
|
|
10096
10385
|
}
|
|
10097
10386
|
}
|
|
10098
10387
|
}
|
|
@@ -10170,7 +10459,7 @@ let Text2D = class extends TextureRect2D {
|
|
|
10170
10459
|
measureDom;
|
|
10171
10460
|
fonts;
|
|
10172
10461
|
texture = new CanvasTexture();
|
|
10173
|
-
|
|
10462
|
+
_baseText = new Text();
|
|
10174
10463
|
measureResult;
|
|
10175
10464
|
_subTextsCount = 0;
|
|
10176
10465
|
constructor(properties, children = []) {
|
|
@@ -10197,12 +10486,12 @@ let Text2D = class extends TextureRect2D {
|
|
|
10197
10486
|
}
|
|
10198
10487
|
}
|
|
10199
10488
|
_updateText() {
|
|
10200
|
-
this.
|
|
10201
|
-
this.
|
|
10202
|
-
this.
|
|
10203
|
-
this.
|
|
10204
|
-
this.
|
|
10205
|
-
this.
|
|
10489
|
+
this._baseText.style = this.style.toJSON();
|
|
10490
|
+
this._baseText.content = this.content ?? "";
|
|
10491
|
+
this._baseText.effects = this.effects;
|
|
10492
|
+
this._baseText.fonts = this.fonts;
|
|
10493
|
+
this._baseText.measureDom = this.measureDom;
|
|
10494
|
+
this._baseText.requestUpdate();
|
|
10206
10495
|
}
|
|
10207
10496
|
_updateStyleProperty(key, value, oldValue) {
|
|
10208
10497
|
switch (key) {
|
|
@@ -10255,7 +10544,7 @@ let Text2D = class extends TextureRect2D {
|
|
|
10255
10544
|
}
|
|
10256
10545
|
measure() {
|
|
10257
10546
|
this._updateText();
|
|
10258
|
-
return this.
|
|
10547
|
+
return this._baseText.measure();
|
|
10259
10548
|
}
|
|
10260
10549
|
updateMeasure() {
|
|
10261
10550
|
this.measureResult = this.measure();
|
|
@@ -10307,7 +10596,7 @@ let Text2D = class extends TextureRect2D {
|
|
|
10307
10596
|
if (onText2DRender) {
|
|
10308
10597
|
onText2DRender();
|
|
10309
10598
|
} else {
|
|
10310
|
-
this.
|
|
10599
|
+
this._baseText.render({
|
|
10311
10600
|
pixelRatio: this.texture.pixelRatio,
|
|
10312
10601
|
view: this.texture.source
|
|
10313
10602
|
});
|
|
@@ -13619,4 +13908,4 @@ async function render(options) {
|
|
|
13619
13908
|
});
|
|
13620
13909
|
}
|
|
13621
13910
|
|
|
13622
|
-
export { AnimatedTexture, Animation, Assets, Audio, AudioPipeline, AudioProcessor, AudioSpectrum, AudioWaveform, BaseElement2D, BaseElement2DStyle, CanvasContext, CanvasItem, CanvasItemEditor, CanvasTexture, Color, ColorAdjustEffect, ColorFilterEffect, ColorMatrix, ColorOverlayEffect, ColorRemoveEffect, ColorReplaceEffect, ColorTexture, Control, CoreObject, DEG_TO_RAD, DEVICE_PIXEL_RATIO, DropShadowEffect, Effect, EffectMaterial, Element2D, Element2DStyle, EmbossEffect, Engine, EventEmitter, FlexElement2D, FlexElement2DStyle, FlexLayout, FontLoader, GIFLoader, GaussianBlurEffect, Geometry, GlitchEffect, GodrayEffect, Graphics2D, HTMLAudio, HTMLAudioContext, HTMLSound, IN_BROWSER, Image2D, ImageTexture, IndexBuffer, Input, InputEvent, JSONLoader, KawaseBlurEffect, KawaseTransition, LeftEraseTransition, Loader, Lottie2D, LottieLoader, MainLoop, MaskEffect, Material, Matrix, Matrix2, Matrix3, Matrix4, MouseInputEvent, Node, Node2D, OutlineEffect, PI, PI_2, PixelateEffect, PixelsTexture, PointerInputEvent, Projection2D, QuadGeometry, QuadUvGeometry, RAD_TO_DEG, Range, RawWeakMap, Rect2, RefCounted, Renderer, Resource, Ruler, SUPPORTS_AUDIO_CONTEXT, SUPPORTS_CLICK_EVENTS, SUPPORTS_CREATE_IMAGE_BITMAP, SUPPORTS_IMAGE_BITMAP, SUPPORTS_MOUSE_EVENTS, SUPPORTS_OFFLINE_AUDIO_CONTEXT, SUPPORTS_POINTER_EVENTS, SUPPORTS_RESIZE_OBSERVER, SUPPORTS_TOUCH_EVENTS, SUPPORTS_WEBGL2, SUPPORTS_WEBKIT_AUDIO_CONTEXT, SUPPORTS_WEBKIT_OFFLINE_AUDIO_CONTEXT, SUPPORTS_WEB_AUDIO, SUPPORTS_WHEEL_EVENTS, Scaler, SceneTree, ScrollBar, Text2D, TextLoader, Texture2D, TextureLoader, TextureRect2D, Ticker, TiltShiftTransition, Timeline, TimelineNode, Transform2D, TransformRect2D, Transition, TwistTransition, UvGeometry, UvMaterial, Vector, Vector2, Vector3, Vector4, VertexAttribute, VertexBuffer, Video2D, VideoLoader, VideoTexture, Viewport, ViewportTexture, WebAudio, WebAudioContext, WebGLBatch2DModule, WebGLBlendMode, WebGLBufferModule, WebGLFramebufferModule, WebGLMaskModule, WebGLModule, WebGLProgramModule, WebGLRenderer, WebGLScissorModule, WebGLState, WebGLStateModule, WebGLStencilModule, WebGLTextureModule, WebGLVertexArrayModule, WebGLViewportModule, WebSound, WheelInputEvent, XScrollBar, YScrollBar, ZoomBlurEffect, assets, clamp, clampFrag, createHTMLCanvas, createNode, crossOrigin, cubicBezier, curves, customNode, customNodes, defaultOptions, defineProperty, determineCrossOrigin, ease, easeIn, easeInOut, easeOut, frag$1 as frag, getDeclarations, getDefaultCssPropertyValue, isCanvasElement, isElementNode, isImageElement, isPow2, isVideoElement, isWebgl2, lerp, linear, log2, mapWebGLBlendModes, nextPow2, nextTick, parseCSSFilter, parseCSSTransform, parseCSSTransformOrigin, parseCssFunctions, parseCssProperty, property, protectedProperty, render, timingFunctions, uid };
|
|
13911
|
+
export { AnimatedTexture, Animation, Assets, Audio, AudioPipeline, AudioProcessor, AudioSpectrum, AudioWaveform, BaseElement2D, BaseElement2DFill, BaseElement2DGeometry, BaseElement2DOutline, BaseElement2DShadow, BaseElement2DStyle, BaseElement2DText, CanvasContext, CanvasItem, CanvasItemEditor, CanvasTexture, Color, ColorAdjustEffect, ColorFilterEffect, ColorMatrix, ColorOverlayEffect, ColorRemoveEffect, ColorReplaceEffect, ColorTexture, Control, CoreObject, DEG_TO_RAD, DEVICE_PIXEL_RATIO, DropShadowEffect, Effect, EffectMaterial, Element2D, Element2DStyle, EmbossEffect, Engine, EventEmitter, FlexElement2D, FlexElement2DStyle, FlexLayout, FontLoader, GIFLoader, GaussianBlurEffect, Geometry, GlitchEffect, GodrayEffect, Graphics2D, HTMLAudio, HTMLAudioContext, HTMLSound, IN_BROWSER, Image2D, ImageTexture, IndexBuffer, Input, InputEvent, JSONLoader, KawaseBlurEffect, KawaseTransition, LeftEraseTransition, Loader, Lottie2D, LottieLoader, MainLoop, MaskEffect, Material, Matrix, Matrix2, Matrix3, Matrix4, MouseInputEvent, Node, Node2D, OutlineEffect, PI, PI_2, PixelateEffect, PixelsTexture, PointerInputEvent, Projection2D, QuadGeometry, QuadUvGeometry, RAD_TO_DEG, Range, RawWeakMap, Rect2, RefCounted, Renderer, Resource, Ruler, SUPPORTS_AUDIO_CONTEXT, SUPPORTS_CLICK_EVENTS, SUPPORTS_CREATE_IMAGE_BITMAP, SUPPORTS_IMAGE_BITMAP, SUPPORTS_MOUSE_EVENTS, SUPPORTS_OFFLINE_AUDIO_CONTEXT, SUPPORTS_POINTER_EVENTS, SUPPORTS_RESIZE_OBSERVER, SUPPORTS_TOUCH_EVENTS, SUPPORTS_WEBGL2, SUPPORTS_WEBKIT_AUDIO_CONTEXT, SUPPORTS_WEBKIT_OFFLINE_AUDIO_CONTEXT, SUPPORTS_WEB_AUDIO, SUPPORTS_WHEEL_EVENTS, Scaler, SceneTree, ScrollBar, Text2D, TextLoader, Texture2D, TextureLoader, TextureRect2D, Ticker, TiltShiftTransition, Timeline, TimelineNode, Transform2D, TransformRect2D, Transition, TwistTransition, UvGeometry, UvMaterial, Vector, Vector2, Vector3, Vector4, VertexAttribute, VertexBuffer, Video2D, VideoLoader, VideoTexture, Viewport, ViewportTexture, WebAudio, WebAudioContext, WebGLBatch2DModule, WebGLBlendMode, WebGLBufferModule, WebGLFramebufferModule, WebGLMaskModule, WebGLModule, WebGLProgramModule, WebGLRenderer, WebGLScissorModule, WebGLState, WebGLStateModule, WebGLStencilModule, WebGLTextureModule, WebGLVertexArrayModule, WebGLViewportModule, WebSound, WheelInputEvent, XScrollBar, YScrollBar, ZoomBlurEffect, assets, clamp, clampFrag, createHTMLCanvas, createNode, crossOrigin, cubicBezier, curves, customNode, customNodes, defaultOptions, defineProperty, determineCrossOrigin, ease, easeIn, easeInOut, easeOut, frag$1 as frag, getDeclarations, getDefaultCssPropertyValue, isCanvasElement, isElementNode, isImageElement, isPow2, isVideoElement, isWebgl2, lerp, linear, log2, mapWebGLBlendModes, nextPow2, nextTick, parseCSSFilter, parseCSSTransform, parseCSSTransformOrigin, parseCssFunctions, parseCssProperty, property, protectedProperty, render, timingFunctions, uid };
|