modern-canvas 0.6.7 → 0.6.8
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 +457 -411
- package/dist/index.d.cts +12 -7
- package/dist/index.d.mts +12 -7
- package/dist/index.d.ts +12 -7
- package/dist/index.js +36 -36
- package/dist/index.mjs +457 -410
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2078,7 +2078,7 @@ class Vector3 extends Vector {
|
|
|
2078
2078
|
}
|
|
2079
2079
|
|
|
2080
2080
|
var __defProp$Q = Object.defineProperty;
|
|
2081
|
-
var __decorateClass$
|
|
2081
|
+
var __decorateClass$Y = (decorators, target, key, kind) => {
|
|
2082
2082
|
var result = void 0 ;
|
|
2083
2083
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
2084
2084
|
if (decorator = decorators[i])
|
|
@@ -2126,10 +2126,10 @@ class MainLoop extends CoreObject {
|
|
|
2126
2126
|
this.stop();
|
|
2127
2127
|
}
|
|
2128
2128
|
}
|
|
2129
|
-
__decorateClass$
|
|
2129
|
+
__decorateClass$Y([
|
|
2130
2130
|
modernIdoc.property({ fallback: 24 })
|
|
2131
2131
|
], MainLoop.prototype, "fps");
|
|
2132
|
-
__decorateClass$
|
|
2132
|
+
__decorateClass$Y([
|
|
2133
2133
|
modernIdoc.property({ fallback: 1 })
|
|
2134
2134
|
], MainLoop.prototype, "speed");
|
|
2135
2135
|
|
|
@@ -4432,7 +4432,7 @@ class Geometry extends Resource {
|
|
|
4432
4432
|
}
|
|
4433
4433
|
|
|
4434
4434
|
var __defProp$P = Object.defineProperty;
|
|
4435
|
-
var __decorateClass$
|
|
4435
|
+
var __decorateClass$X = (decorators, target, key, kind) => {
|
|
4436
4436
|
var result = void 0 ;
|
|
4437
4437
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
4438
4438
|
if (decorator = decorators[i])
|
|
@@ -4481,15 +4481,15 @@ class IndexBuffer extends Resource {
|
|
|
4481
4481
|
return result;
|
|
4482
4482
|
}
|
|
4483
4483
|
}
|
|
4484
|
-
__decorateClass$
|
|
4484
|
+
__decorateClass$X([
|
|
4485
4485
|
modernIdoc.property({ protected: true, default: null })
|
|
4486
4486
|
], IndexBuffer.prototype, "data");
|
|
4487
|
-
__decorateClass$
|
|
4487
|
+
__decorateClass$X([
|
|
4488
4488
|
modernIdoc.property({ protected: true, fallback: false })
|
|
4489
4489
|
], IndexBuffer.prototype, "dynamic");
|
|
4490
4490
|
|
|
4491
4491
|
var __defProp$O = Object.defineProperty;
|
|
4492
|
-
var __decorateClass$
|
|
4492
|
+
var __decorateClass$W = (decorators, target, key, kind) => {
|
|
4493
4493
|
var result = void 0 ;
|
|
4494
4494
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
4495
4495
|
if (decorator = decorators[i])
|
|
@@ -4538,15 +4538,15 @@ class VertexBuffer extends Resource {
|
|
|
4538
4538
|
return result;
|
|
4539
4539
|
}
|
|
4540
4540
|
}
|
|
4541
|
-
__decorateClass$
|
|
4541
|
+
__decorateClass$W([
|
|
4542
4542
|
modernIdoc.property({ protected: true, default: null })
|
|
4543
4543
|
], VertexBuffer.prototype, "data");
|
|
4544
|
-
__decorateClass$
|
|
4544
|
+
__decorateClass$W([
|
|
4545
4545
|
modernIdoc.property({ protected: true, fallback: false })
|
|
4546
4546
|
], VertexBuffer.prototype, "dynamic");
|
|
4547
4547
|
|
|
4548
4548
|
var __defProp$N = Object.defineProperty;
|
|
4549
|
-
var __decorateClass$
|
|
4549
|
+
var __decorateClass$V = (decorators, target, key, kind) => {
|
|
4550
4550
|
var result = void 0 ;
|
|
4551
4551
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
4552
4552
|
if (decorator = decorators[i])
|
|
@@ -4585,25 +4585,25 @@ class VertexAttribute extends Resource {
|
|
|
4585
4585
|
return result;
|
|
4586
4586
|
}
|
|
4587
4587
|
}
|
|
4588
|
-
__decorateClass$
|
|
4588
|
+
__decorateClass$V([
|
|
4589
4589
|
modernIdoc.property({ protected: true })
|
|
4590
4590
|
], VertexAttribute.prototype, "buffer");
|
|
4591
|
-
__decorateClass$
|
|
4591
|
+
__decorateClass$V([
|
|
4592
4592
|
modernIdoc.property({ fallback: 0 })
|
|
4593
4593
|
], VertexAttribute.prototype, "size");
|
|
4594
|
-
__decorateClass$
|
|
4594
|
+
__decorateClass$V([
|
|
4595
4595
|
modernIdoc.property({ fallback: false })
|
|
4596
4596
|
], VertexAttribute.prototype, "normalized");
|
|
4597
|
-
__decorateClass$
|
|
4597
|
+
__decorateClass$V([
|
|
4598
4598
|
modernIdoc.property({ fallback: "float" })
|
|
4599
4599
|
], VertexAttribute.prototype, "type");
|
|
4600
|
-
__decorateClass$
|
|
4600
|
+
__decorateClass$V([
|
|
4601
4601
|
modernIdoc.property()
|
|
4602
4602
|
], VertexAttribute.prototype, "stride");
|
|
4603
|
-
__decorateClass$
|
|
4603
|
+
__decorateClass$V([
|
|
4604
4604
|
modernIdoc.property()
|
|
4605
4605
|
], VertexAttribute.prototype, "offset");
|
|
4606
|
-
__decorateClass$
|
|
4606
|
+
__decorateClass$V([
|
|
4607
4607
|
modernIdoc.property()
|
|
4608
4608
|
], VertexAttribute.prototype, "divisor");
|
|
4609
4609
|
|
|
@@ -4848,7 +4848,7 @@ class UvGeometry extends Geometry {
|
|
|
4848
4848
|
}
|
|
4849
4849
|
|
|
4850
4850
|
var __defProp$M = Object.defineProperty;
|
|
4851
|
-
var __decorateClass$
|
|
4851
|
+
var __decorateClass$U = (decorators, target, key, kind) => {
|
|
4852
4852
|
var result = void 0 ;
|
|
4853
4853
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
4854
4854
|
if (decorator = decorators[i])
|
|
@@ -4979,22 +4979,22 @@ class Texture2D extends Resource {
|
|
|
4979
4979
|
}
|
|
4980
4980
|
}
|
|
4981
4981
|
}
|
|
4982
|
-
__decorateClass$
|
|
4982
|
+
__decorateClass$U([
|
|
4983
4983
|
modernIdoc.property({ protected: true })
|
|
4984
4984
|
], Texture2D.prototype, "source");
|
|
4985
|
-
__decorateClass$
|
|
4985
|
+
__decorateClass$U([
|
|
4986
4986
|
modernIdoc.property({ fallback: 0 })
|
|
4987
4987
|
], Texture2D.prototype, "width");
|
|
4988
|
-
__decorateClass$
|
|
4988
|
+
__decorateClass$U([
|
|
4989
4989
|
modernIdoc.property({ fallback: 0 })
|
|
4990
4990
|
], Texture2D.prototype, "height");
|
|
4991
|
-
__decorateClass$
|
|
4991
|
+
__decorateClass$U([
|
|
4992
4992
|
modernIdoc.property({ fallback: "linear" })
|
|
4993
4993
|
], Texture2D.prototype, "filterMode");
|
|
4994
|
-
__decorateClass$
|
|
4994
|
+
__decorateClass$U([
|
|
4995
4995
|
modernIdoc.property({ fallback: "clamp_to_edge" })
|
|
4996
4996
|
], Texture2D.prototype, "wrapMode");
|
|
4997
|
-
__decorateClass$
|
|
4997
|
+
__decorateClass$U([
|
|
4998
4998
|
modernIdoc.property({ fallback: 1 })
|
|
4999
4999
|
], Texture2D.prototype, "pixelRatio");
|
|
5000
5000
|
|
|
@@ -5025,7 +5025,7 @@ class AnimatedTexture extends Resource {
|
|
|
5025
5025
|
}
|
|
5026
5026
|
|
|
5027
5027
|
var __defProp$L = Object.defineProperty;
|
|
5028
|
-
var __decorateClass$
|
|
5028
|
+
var __decorateClass$T = (decorators, target, key, kind) => {
|
|
5029
5029
|
var result = void 0 ;
|
|
5030
5030
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
5031
5031
|
if (decorator = decorators[i])
|
|
@@ -5049,11 +5049,26 @@ class CanvasTexture extends Texture2D {
|
|
|
5049
5049
|
super._updateProperty(key, value, oldValue, declaration);
|
|
5050
5050
|
}
|
|
5051
5051
|
}
|
|
5052
|
-
__decorateClass$
|
|
5053
|
-
modernIdoc.property()
|
|
5052
|
+
__decorateClass$T([
|
|
5053
|
+
modernIdoc.property({ fallback: 2 })
|
|
5054
5054
|
], CanvasTexture.prototype, "pixelRatio");
|
|
5055
5055
|
|
|
5056
5056
|
class ColorTexture extends Texture2D {
|
|
5057
|
+
static _cached = /* @__PURE__ */ new Map();
|
|
5058
|
+
static get(value) {
|
|
5059
|
+
const color = new Color(value);
|
|
5060
|
+
const hex = color.toHex();
|
|
5061
|
+
let result = this._cached.get(hex);
|
|
5062
|
+
if (!result) {
|
|
5063
|
+
result = new Texture2D({
|
|
5064
|
+
width: 1,
|
|
5065
|
+
height: 1,
|
|
5066
|
+
pixels: new Uint8Array([color.r8, color.g8, color.b8, color.a8])
|
|
5067
|
+
});
|
|
5068
|
+
this._cached.set(hex, result);
|
|
5069
|
+
}
|
|
5070
|
+
return result;
|
|
5071
|
+
}
|
|
5057
5072
|
constructor(value) {
|
|
5058
5073
|
const color = new Color(value);
|
|
5059
5074
|
super({
|
|
@@ -5255,7 +5270,7 @@ class PixelsTexture extends Texture2D {
|
|
|
5255
5270
|
}
|
|
5256
5271
|
|
|
5257
5272
|
var __defProp$K = Object.defineProperty;
|
|
5258
|
-
var __decorateClass$
|
|
5273
|
+
var __decorateClass$S = (decorators, target, key, kind) => {
|
|
5259
5274
|
var result = void 0 ;
|
|
5260
5275
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
5261
5276
|
if (decorator = decorators[i])
|
|
@@ -5504,10 +5519,10 @@ const _VideoTexture = class _VideoTexture extends Texture2D {
|
|
|
5504
5519
|
}
|
|
5505
5520
|
}
|
|
5506
5521
|
};
|
|
5507
|
-
__decorateClass$
|
|
5522
|
+
__decorateClass$S([
|
|
5508
5523
|
modernIdoc.property({ protected: true, fallback: true })
|
|
5509
5524
|
], _VideoTexture.prototype, "autoUpdate");
|
|
5510
|
-
__decorateClass$
|
|
5525
|
+
__decorateClass$S([
|
|
5511
5526
|
modernIdoc.property({ protected: true, fallback: 0 })
|
|
5512
5527
|
], _VideoTexture.prototype, "fps");
|
|
5513
5528
|
let VideoTexture = _VideoTexture;
|
|
@@ -5567,9 +5582,9 @@ class Children extends Array {
|
|
|
5567
5582
|
}
|
|
5568
5583
|
|
|
5569
5584
|
var __defProp$J = Object.defineProperty;
|
|
5570
|
-
var __getOwnPropDesc$
|
|
5571
|
-
var __decorateClass$
|
|
5572
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
5585
|
+
var __getOwnPropDesc$I = Object.getOwnPropertyDescriptor;
|
|
5586
|
+
var __decorateClass$R = (decorators, target, key, kind) => {
|
|
5587
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$I(target, key) : target;
|
|
5573
5588
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
5574
5589
|
if (decorator = decorators[i])
|
|
5575
5590
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
@@ -5670,6 +5685,9 @@ exports.Node = class Node extends CoreObject {
|
|
|
5670
5685
|
}
|
|
5671
5686
|
return this;
|
|
5672
5687
|
}
|
|
5688
|
+
log(...args) {
|
|
5689
|
+
this._tree?.log(...args);
|
|
5690
|
+
}
|
|
5673
5691
|
/** Parent */
|
|
5674
5692
|
_parent;
|
|
5675
5693
|
get parent() {
|
|
@@ -5848,7 +5866,10 @@ exports.Node = class Node extends CoreObject {
|
|
|
5848
5866
|
}
|
|
5849
5867
|
}
|
|
5850
5868
|
input(event, key) {
|
|
5851
|
-
this._children.internal
|
|
5869
|
+
const array = this._children.internal;
|
|
5870
|
+
for (let i = array.length - 1; i >= 0; i--) {
|
|
5871
|
+
array[i].input(event, key);
|
|
5872
|
+
}
|
|
5852
5873
|
this._input(event, key);
|
|
5853
5874
|
}
|
|
5854
5875
|
getIndex() {
|
|
@@ -6052,35 +6073,35 @@ exports.Node = class Node extends CoreObject {
|
|
|
6052
6073
|
return node;
|
|
6053
6074
|
}
|
|
6054
6075
|
};
|
|
6055
|
-
__decorateClass$
|
|
6076
|
+
__decorateClass$R([
|
|
6056
6077
|
modernIdoc.property({ fallback: modernIdoc.idGenerator() })
|
|
6057
6078
|
], exports.Node.prototype, "id", 2);
|
|
6058
|
-
__decorateClass$
|
|
6079
|
+
__decorateClass$R([
|
|
6059
6080
|
modernIdoc.property({ fallback: modernIdoc.idGenerator() })
|
|
6060
6081
|
], exports.Node.prototype, "name", 2);
|
|
6061
|
-
__decorateClass$
|
|
6082
|
+
__decorateClass$R([
|
|
6062
6083
|
modernIdoc.property({ fallback: "inherit" })
|
|
6063
6084
|
], exports.Node.prototype, "processMode", 2);
|
|
6064
|
-
__decorateClass$
|
|
6085
|
+
__decorateClass$R([
|
|
6065
6086
|
modernIdoc.property({ fallback: "default" })
|
|
6066
6087
|
], exports.Node.prototype, "processSortMode", 2);
|
|
6067
|
-
__decorateClass$
|
|
6088
|
+
__decorateClass$R([
|
|
6068
6089
|
modernIdoc.property({ fallback: "inherit" })
|
|
6069
6090
|
], exports.Node.prototype, "renderMode", 2);
|
|
6070
|
-
__decorateClass$
|
|
6091
|
+
__decorateClass$R([
|
|
6071
6092
|
modernIdoc.property({ fallback: "default" })
|
|
6072
6093
|
], exports.Node.prototype, "internalMode", 2);
|
|
6073
|
-
__decorateClass$
|
|
6094
|
+
__decorateClass$R([
|
|
6074
6095
|
modernIdoc.property({ protected: true })
|
|
6075
6096
|
], exports.Node.prototype, "mask", 2);
|
|
6076
|
-
exports.Node = __decorateClass$
|
|
6097
|
+
exports.Node = __decorateClass$R([
|
|
6077
6098
|
customNode("Node")
|
|
6078
6099
|
], exports.Node);
|
|
6079
6100
|
|
|
6080
6101
|
var __defProp$I = Object.defineProperty;
|
|
6081
|
-
var __getOwnPropDesc$
|
|
6082
|
-
var __decorateClass$
|
|
6083
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6102
|
+
var __getOwnPropDesc$H = Object.getOwnPropertyDescriptor;
|
|
6103
|
+
var __decorateClass$Q = (decorators, target, key, kind) => {
|
|
6104
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$H(target, key) : target;
|
|
6084
6105
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6085
6106
|
if (decorator = decorators[i])
|
|
6086
6107
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
@@ -6144,26 +6165,26 @@ exports.TimelineNode = class TimelineNode extends exports.Node {
|
|
|
6144
6165
|
this._updateCurrentTime();
|
|
6145
6166
|
}
|
|
6146
6167
|
};
|
|
6147
|
-
__decorateClass$
|
|
6168
|
+
__decorateClass$Q([
|
|
6148
6169
|
modernIdoc.property({ fallback: 0 })
|
|
6149
6170
|
], exports.TimelineNode.prototype, "delay", 2);
|
|
6150
|
-
__decorateClass$
|
|
6171
|
+
__decorateClass$Q([
|
|
6151
6172
|
modernIdoc.property({ fallback: 0 })
|
|
6152
6173
|
], exports.TimelineNode.prototype, "duration", 2);
|
|
6153
|
-
__decorateClass$
|
|
6174
|
+
__decorateClass$Q([
|
|
6154
6175
|
modernIdoc.property({ fallback: false })
|
|
6155
6176
|
], exports.TimelineNode.prototype, "paused", 2);
|
|
6156
|
-
__decorateClass$
|
|
6177
|
+
__decorateClass$Q([
|
|
6157
6178
|
modernIdoc.property({ protected: true, fallback: false })
|
|
6158
6179
|
], exports.TimelineNode.prototype, "insideTimeRange", 2);
|
|
6159
|
-
exports.TimelineNode = __decorateClass$
|
|
6180
|
+
exports.TimelineNode = __decorateClass$Q([
|
|
6160
6181
|
customNode("TimelineNode")
|
|
6161
6182
|
], exports.TimelineNode);
|
|
6162
6183
|
|
|
6163
6184
|
var __defProp$H = Object.defineProperty;
|
|
6164
|
-
var __getOwnPropDesc$
|
|
6165
|
-
var __decorateClass$
|
|
6166
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6185
|
+
var __getOwnPropDesc$G = Object.getOwnPropertyDescriptor;
|
|
6186
|
+
var __decorateClass$P = (decorators, target, key, kind) => {
|
|
6187
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$G(target, key) : target;
|
|
6167
6188
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6168
6189
|
if (decorator = decorators[i])
|
|
6169
6190
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
@@ -6305,26 +6326,26 @@ exports.Viewport = class Viewport extends exports.Node {
|
|
|
6305
6326
|
return this._projection.toArray(transpose);
|
|
6306
6327
|
}
|
|
6307
6328
|
};
|
|
6308
|
-
__decorateClass$
|
|
6329
|
+
__decorateClass$P([
|
|
6309
6330
|
modernIdoc.property({ fallback: 0 })
|
|
6310
6331
|
], exports.Viewport.prototype, "x", 2);
|
|
6311
|
-
__decorateClass$
|
|
6332
|
+
__decorateClass$P([
|
|
6312
6333
|
modernIdoc.property({ fallback: 0 })
|
|
6313
6334
|
], exports.Viewport.prototype, "y", 2);
|
|
6314
|
-
__decorateClass$
|
|
6335
|
+
__decorateClass$P([
|
|
6315
6336
|
modernIdoc.property({ fallback: 0 })
|
|
6316
6337
|
], exports.Viewport.prototype, "width", 2);
|
|
6317
|
-
__decorateClass$
|
|
6338
|
+
__decorateClass$P([
|
|
6318
6339
|
modernIdoc.property({ fallback: 0 })
|
|
6319
6340
|
], exports.Viewport.prototype, "height", 2);
|
|
6320
|
-
exports.Viewport = __decorateClass$
|
|
6341
|
+
exports.Viewport = __decorateClass$P([
|
|
6321
6342
|
customNode("Viewport")
|
|
6322
6343
|
], exports.Viewport);
|
|
6323
6344
|
|
|
6324
6345
|
var __defProp$G = Object.defineProperty;
|
|
6325
|
-
var __getOwnPropDesc$
|
|
6326
|
-
var __decorateClass$
|
|
6327
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6346
|
+
var __getOwnPropDesc$F = Object.getOwnPropertyDescriptor;
|
|
6347
|
+
var __decorateClass$O = (decorators, target, key, kind) => {
|
|
6348
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$F(target, key) : target;
|
|
6328
6349
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6329
6350
|
if (decorator = decorators[i])
|
|
6330
6351
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
@@ -6570,27 +6591,27 @@ exports.Effect = class Effect extends exports.TimelineNode {
|
|
|
6570
6591
|
}
|
|
6571
6592
|
}
|
|
6572
6593
|
};
|
|
6573
|
-
__decorateClass$
|
|
6594
|
+
__decorateClass$O([
|
|
6574
6595
|
modernIdoc.property({ protected: true })
|
|
6575
6596
|
], exports.Effect.prototype, "material", 2);
|
|
6576
|
-
__decorateClass$
|
|
6597
|
+
__decorateClass$O([
|
|
6577
6598
|
modernIdoc.property()
|
|
6578
6599
|
], exports.Effect.prototype, "effectMode", 2);
|
|
6579
|
-
__decorateClass$
|
|
6600
|
+
__decorateClass$O([
|
|
6580
6601
|
modernIdoc.property()
|
|
6581
6602
|
], exports.Effect.prototype, "glsl", 2);
|
|
6582
|
-
__decorateClass$
|
|
6603
|
+
__decorateClass$O([
|
|
6583
6604
|
modernIdoc.property()
|
|
6584
6605
|
], exports.Effect.prototype, "glslSrc", 2);
|
|
6585
|
-
exports.Effect = __decorateClass$
|
|
6606
|
+
exports.Effect = __decorateClass$O([
|
|
6586
6607
|
customNode("Effect")
|
|
6587
6608
|
], exports.Effect);
|
|
6588
6609
|
|
|
6589
6610
|
var __defProp$F = Object.defineProperty;
|
|
6590
|
-
var __getOwnPropDesc$
|
|
6611
|
+
var __getOwnPropDesc$E = Object.getOwnPropertyDescriptor;
|
|
6591
6612
|
var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6592
|
-
var __decorateClass$
|
|
6593
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6613
|
+
var __decorateClass$N = (decorators, target, key, kind) => {
|
|
6614
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$E(target, key) : target;
|
|
6594
6615
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6595
6616
|
if (decorator = decorators[i])
|
|
6596
6617
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
@@ -6654,39 +6675,39 @@ void main(void) {
|
|
|
6654
6675
|
gl_FragColor = c * alpha;
|
|
6655
6676
|
}`
|
|
6656
6677
|
}));
|
|
6657
|
-
__decorateClass$
|
|
6678
|
+
__decorateClass$N([
|
|
6658
6679
|
modernIdoc.property()
|
|
6659
6680
|
], exports.ColorAdjustEffect.prototype, "saturation", 2);
|
|
6660
|
-
__decorateClass$
|
|
6681
|
+
__decorateClass$N([
|
|
6661
6682
|
modernIdoc.property()
|
|
6662
6683
|
], exports.ColorAdjustEffect.prototype, "contrast", 2);
|
|
6663
|
-
__decorateClass$
|
|
6684
|
+
__decorateClass$N([
|
|
6664
6685
|
modernIdoc.property()
|
|
6665
6686
|
], exports.ColorAdjustEffect.prototype, "brightness", 2);
|
|
6666
|
-
__decorateClass$
|
|
6687
|
+
__decorateClass$N([
|
|
6667
6688
|
modernIdoc.property()
|
|
6668
6689
|
], exports.ColorAdjustEffect.prototype, "red", 2);
|
|
6669
|
-
__decorateClass$
|
|
6690
|
+
__decorateClass$N([
|
|
6670
6691
|
modernIdoc.property()
|
|
6671
6692
|
], exports.ColorAdjustEffect.prototype, "green", 2);
|
|
6672
|
-
__decorateClass$
|
|
6693
|
+
__decorateClass$N([
|
|
6673
6694
|
modernIdoc.property()
|
|
6674
6695
|
], exports.ColorAdjustEffect.prototype, "blue", 2);
|
|
6675
|
-
__decorateClass$
|
|
6696
|
+
__decorateClass$N([
|
|
6676
6697
|
modernIdoc.property()
|
|
6677
6698
|
], exports.ColorAdjustEffect.prototype, "alpha", 2);
|
|
6678
|
-
__decorateClass$
|
|
6699
|
+
__decorateClass$N([
|
|
6679
6700
|
modernIdoc.property()
|
|
6680
6701
|
], exports.ColorAdjustEffect.prototype, "gamma", 2);
|
|
6681
|
-
exports.ColorAdjustEffect = __decorateClass$
|
|
6702
|
+
exports.ColorAdjustEffect = __decorateClass$N([
|
|
6682
6703
|
customNode("ColorAdjustEffect")
|
|
6683
6704
|
], exports.ColorAdjustEffect);
|
|
6684
6705
|
|
|
6685
6706
|
var __defProp$E = Object.defineProperty;
|
|
6686
|
-
var __getOwnPropDesc$
|
|
6707
|
+
var __getOwnPropDesc$D = Object.getOwnPropertyDescriptor;
|
|
6687
6708
|
var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6688
|
-
var __decorateClass$
|
|
6689
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6709
|
+
var __decorateClass$M = (decorators, target, key, kind) => {
|
|
6710
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$D(target, key) : target;
|
|
6690
6711
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6691
6712
|
if (decorator = decorators[i])
|
|
6692
6713
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
@@ -6770,18 +6791,18 @@ void main(void) {
|
|
|
6770
6791
|
);
|
|
6771
6792
|
}`
|
|
6772
6793
|
}));
|
|
6773
|
-
__decorateClass$
|
|
6794
|
+
__decorateClass$M([
|
|
6774
6795
|
modernIdoc.property()
|
|
6775
6796
|
], exports.ColorFilterEffect.prototype, "filter", 2);
|
|
6776
|
-
exports.ColorFilterEffect = __decorateClass$
|
|
6797
|
+
exports.ColorFilterEffect = __decorateClass$M([
|
|
6777
6798
|
customNode("ColorFilterEffect")
|
|
6778
6799
|
], exports.ColorFilterEffect);
|
|
6779
6800
|
|
|
6780
6801
|
var __defProp$D = Object.defineProperty;
|
|
6781
|
-
var __getOwnPropDesc$
|
|
6802
|
+
var __getOwnPropDesc$C = Object.getOwnPropertyDescriptor;
|
|
6782
6803
|
var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6783
|
-
var __decorateClass$
|
|
6784
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6804
|
+
var __decorateClass$L = (decorators, target, key, kind) => {
|
|
6805
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$C(target, key) : target;
|
|
6785
6806
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6786
6807
|
if (decorator = decorators[i])
|
|
6787
6808
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
@@ -6861,21 +6882,21 @@ void main(void) {
|
|
|
6861
6882
|
gl_FragColor = vec4(mix(color.rgb, mask.rgb, color.a * mask.a), color.a);
|
|
6862
6883
|
}`
|
|
6863
6884
|
}));
|
|
6864
|
-
__decorateClass$
|
|
6885
|
+
__decorateClass$L([
|
|
6865
6886
|
modernIdoc.property()
|
|
6866
6887
|
], exports.ColorOverlayEffect.prototype, "colors", 2);
|
|
6867
|
-
__decorateClass$
|
|
6888
|
+
__decorateClass$L([
|
|
6868
6889
|
modernIdoc.property()
|
|
6869
6890
|
], exports.ColorOverlayEffect.prototype, "alpha", 2);
|
|
6870
|
-
exports.ColorOverlayEffect = __decorateClass$
|
|
6891
|
+
exports.ColorOverlayEffect = __decorateClass$L([
|
|
6871
6892
|
customNode("ColorOverlayEffect")
|
|
6872
6893
|
], exports.ColorOverlayEffect);
|
|
6873
6894
|
|
|
6874
6895
|
var __defProp$C = Object.defineProperty;
|
|
6875
|
-
var __getOwnPropDesc$
|
|
6896
|
+
var __getOwnPropDesc$B = Object.getOwnPropertyDescriptor;
|
|
6876
6897
|
var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6877
|
-
var __decorateClass$
|
|
6878
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6898
|
+
var __decorateClass$K = (decorators, target, key, kind) => {
|
|
6899
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$B(target, key) : target;
|
|
6879
6900
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6880
6901
|
if (decorator = decorators[i])
|
|
6881
6902
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
@@ -6946,21 +6967,21 @@ void main(void) {
|
|
|
6946
6967
|
gl_FragColor = color;
|
|
6947
6968
|
}`
|
|
6948
6969
|
}));
|
|
6949
|
-
__decorateClass$
|
|
6970
|
+
__decorateClass$K([
|
|
6950
6971
|
modernIdoc.property()
|
|
6951
6972
|
], exports.ColorRemoveEffect.prototype, "colors", 2);
|
|
6952
|
-
__decorateClass$
|
|
6973
|
+
__decorateClass$K([
|
|
6953
6974
|
modernIdoc.property()
|
|
6954
6975
|
], exports.ColorRemoveEffect.prototype, "epsilon", 2);
|
|
6955
|
-
exports.ColorRemoveEffect = __decorateClass$
|
|
6976
|
+
exports.ColorRemoveEffect = __decorateClass$K([
|
|
6956
6977
|
customNode("ColorRemoveEffect")
|
|
6957
6978
|
], exports.ColorRemoveEffect);
|
|
6958
6979
|
|
|
6959
6980
|
var __defProp$B = Object.defineProperty;
|
|
6960
|
-
var __getOwnPropDesc$
|
|
6981
|
+
var __getOwnPropDesc$A = Object.getOwnPropertyDescriptor;
|
|
6961
6982
|
var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6962
|
-
var __decorateClass$
|
|
6963
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6983
|
+
var __decorateClass$J = (decorators, target, key, kind) => {
|
|
6984
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$A(target, key) : target;
|
|
6964
6985
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6965
6986
|
if (decorator = decorators[i])
|
|
6966
6987
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
@@ -7053,13 +7074,13 @@ void main(void) {
|
|
|
7053
7074
|
}
|
|
7054
7075
|
}`
|
|
7055
7076
|
}));
|
|
7056
|
-
__decorateClass$
|
|
7077
|
+
__decorateClass$J([
|
|
7057
7078
|
modernIdoc.property()
|
|
7058
7079
|
], exports.ColorReplaceEffect.prototype, "colors", 2);
|
|
7059
|
-
__decorateClass$
|
|
7080
|
+
__decorateClass$J([
|
|
7060
7081
|
modernIdoc.property()
|
|
7061
7082
|
], exports.ColorReplaceEffect.prototype, "epsilon", 2);
|
|
7062
|
-
exports.ColorReplaceEffect = __decorateClass$
|
|
7083
|
+
exports.ColorReplaceEffect = __decorateClass$J([
|
|
7063
7084
|
customNode("ColorReplaceEffect")
|
|
7064
7085
|
], exports.ColorReplaceEffect);
|
|
7065
7086
|
|
|
@@ -7079,7 +7100,7 @@ class CanvasContext extends modernPath2d.Path2D {
|
|
|
7079
7100
|
if (source instanceof Texture2D) {
|
|
7080
7101
|
return source;
|
|
7081
7102
|
} else {
|
|
7082
|
-
return
|
|
7103
|
+
return ColorTexture.get(source);
|
|
7083
7104
|
}
|
|
7084
7105
|
}
|
|
7085
7106
|
stroke(options) {
|
|
@@ -7215,9 +7236,9 @@ class CanvasContext extends modernPath2d.Path2D {
|
|
|
7215
7236
|
}
|
|
7216
7237
|
|
|
7217
7238
|
var __defProp$A = Object.defineProperty;
|
|
7218
|
-
var __getOwnPropDesc$
|
|
7219
|
-
var __decorateClass$
|
|
7220
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7239
|
+
var __getOwnPropDesc$z = Object.getOwnPropertyDescriptor;
|
|
7240
|
+
var __decorateClass$I = (decorators, target, key, kind) => {
|
|
7241
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$z(target, key) : target;
|
|
7221
7242
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
7222
7243
|
if (decorator = decorators[i])
|
|
7223
7244
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
@@ -7308,16 +7329,16 @@ exports.CanvasItem = class CanvasItem extends exports.TimelineNode {
|
|
|
7308
7329
|
this.emit("draw");
|
|
7309
7330
|
}
|
|
7310
7331
|
_redraw() {
|
|
7311
|
-
this.
|
|
7332
|
+
this.log(this.name, "drawing");
|
|
7312
7333
|
this._draw();
|
|
7313
7334
|
return this.context.toBatchables();
|
|
7314
7335
|
}
|
|
7315
7336
|
_relayout(batchables) {
|
|
7316
|
-
this.
|
|
7337
|
+
this.log(this.name, "layouting");
|
|
7317
7338
|
return batchables;
|
|
7318
7339
|
}
|
|
7319
7340
|
_repaint(batchables) {
|
|
7320
|
-
this.
|
|
7341
|
+
this.log(this.name, "painting");
|
|
7321
7342
|
return batchables.map((batchable) => {
|
|
7322
7343
|
return {
|
|
7323
7344
|
...batchable,
|
|
@@ -7383,19 +7404,19 @@ exports.CanvasItem = class CanvasItem extends exports.TimelineNode {
|
|
|
7383
7404
|
super._render(renderer);
|
|
7384
7405
|
}
|
|
7385
7406
|
};
|
|
7386
|
-
__decorateClass$
|
|
7407
|
+
__decorateClass$I([
|
|
7387
7408
|
modernIdoc.property()
|
|
7388
7409
|
], exports.CanvasItem.prototype, "modulate", 2);
|
|
7389
|
-
__decorateClass$
|
|
7410
|
+
__decorateClass$I([
|
|
7390
7411
|
modernIdoc.property()
|
|
7391
7412
|
], exports.CanvasItem.prototype, "blendMode", 2);
|
|
7392
|
-
__decorateClass$
|
|
7413
|
+
__decorateClass$I([
|
|
7393
7414
|
modernIdoc.property({ protected: true, fallback: true })
|
|
7394
7415
|
], exports.CanvasItem.prototype, "visible", 2);
|
|
7395
|
-
__decorateClass$
|
|
7416
|
+
__decorateClass$I([
|
|
7396
7417
|
modernIdoc.property({ protected: true, fallback: 1 })
|
|
7397
7418
|
], exports.CanvasItem.prototype, "opacity", 2);
|
|
7398
|
-
exports.CanvasItem = __decorateClass$
|
|
7419
|
+
exports.CanvasItem = __decorateClass$I([
|
|
7399
7420
|
customNode("CanvasItem")
|
|
7400
7421
|
], exports.CanvasItem);
|
|
7401
7422
|
|
|
@@ -7426,9 +7447,9 @@ class RenderStack {
|
|
|
7426
7447
|
}
|
|
7427
7448
|
|
|
7428
7449
|
var __defProp$z = Object.defineProperty;
|
|
7429
|
-
var __getOwnPropDesc$
|
|
7430
|
-
var __decorateClass$
|
|
7431
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7450
|
+
var __getOwnPropDesc$y = Object.getOwnPropertyDescriptor;
|
|
7451
|
+
var __decorateClass$H = (decorators, target, key, kind) => {
|
|
7452
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$y(target, key) : target;
|
|
7432
7453
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
7433
7454
|
if (decorator = decorators[i])
|
|
7434
7455
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
@@ -7477,24 +7498,24 @@ exports.Timeline = class Timeline extends exports.Node {
|
|
|
7477
7498
|
this.addTime(delta);
|
|
7478
7499
|
}
|
|
7479
7500
|
};
|
|
7480
|
-
__decorateClass$
|
|
7501
|
+
__decorateClass$H([
|
|
7481
7502
|
modernIdoc.property({ fallback: 0 })
|
|
7482
7503
|
], exports.Timeline.prototype, "startTime", 2);
|
|
7483
|
-
__decorateClass$
|
|
7504
|
+
__decorateClass$H([
|
|
7484
7505
|
modernIdoc.property({ fallback: 0 })
|
|
7485
7506
|
], exports.Timeline.prototype, "currentTime", 2);
|
|
7486
|
-
__decorateClass$
|
|
7507
|
+
__decorateClass$H([
|
|
7487
7508
|
modernIdoc.property({ fallback: Number.MAX_SAFE_INTEGER })
|
|
7488
7509
|
], exports.Timeline.prototype, "endTime", 2);
|
|
7489
|
-
__decorateClass$
|
|
7510
|
+
__decorateClass$H([
|
|
7490
7511
|
modernIdoc.property({ fallback: false })
|
|
7491
7512
|
], exports.Timeline.prototype, "loop", 2);
|
|
7492
|
-
exports.Timeline = __decorateClass$
|
|
7513
|
+
exports.Timeline = __decorateClass$H([
|
|
7493
7514
|
customNode("Timeline")
|
|
7494
7515
|
], exports.Timeline);
|
|
7495
7516
|
|
|
7496
7517
|
var __defProp$y = Object.defineProperty;
|
|
7497
|
-
var __decorateClass$
|
|
7518
|
+
var __decorateClass$G = (decorators, target, key, kind) => {
|
|
7498
7519
|
var result = void 0 ;
|
|
7499
7520
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
7500
7521
|
if (decorator = decorators[i])
|
|
@@ -7530,7 +7551,7 @@ class SceneTree extends MainLoop {
|
|
|
7530
7551
|
}
|
|
7531
7552
|
log(...args) {
|
|
7532
7553
|
if (this.debug) {
|
|
7533
|
-
console.log(`[modern-canvas]`, ...args);
|
|
7554
|
+
console.log(`[modern-canvas][${performance.now().toFixed(4)}ms]`, ...args);
|
|
7534
7555
|
}
|
|
7535
7556
|
}
|
|
7536
7557
|
_process(delta = 0) {
|
|
@@ -7573,19 +7594,19 @@ class SceneTree extends MainLoop {
|
|
|
7573
7594
|
this.input.removeEventListeners();
|
|
7574
7595
|
}
|
|
7575
7596
|
}
|
|
7576
|
-
__decorateClass$
|
|
7597
|
+
__decorateClass$G([
|
|
7577
7598
|
modernIdoc.property({ fallback: false })
|
|
7578
7599
|
], SceneTree.prototype, "processPaused");
|
|
7579
|
-
__decorateClass$
|
|
7600
|
+
__decorateClass$G([
|
|
7580
7601
|
modernIdoc.property()
|
|
7581
7602
|
], SceneTree.prototype, "backgroundColor");
|
|
7582
|
-
__decorateClass$
|
|
7603
|
+
__decorateClass$G([
|
|
7583
7604
|
modernIdoc.property({ protected: true, fallback: false })
|
|
7584
7605
|
], SceneTree.prototype, "debug");
|
|
7585
7606
|
|
|
7586
|
-
var __getOwnPropDesc$
|
|
7587
|
-
var __decorateClass$
|
|
7588
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7607
|
+
var __getOwnPropDesc$x = Object.getOwnPropertyDescriptor;
|
|
7608
|
+
var __decorateClass$F = (decorators, target, key, kind) => {
|
|
7609
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$x(target, key) : target;
|
|
7589
7610
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
7590
7611
|
if (decorator = decorators[i])
|
|
7591
7612
|
result = (decorator(result)) || result;
|
|
@@ -7597,7 +7618,7 @@ exports.Transition = class Transition extends exports.Effect {
|
|
|
7597
7618
|
this.setProperties(properties).append(children);
|
|
7598
7619
|
}
|
|
7599
7620
|
};
|
|
7600
|
-
exports.Transition = __decorateClass$
|
|
7621
|
+
exports.Transition = __decorateClass$F([
|
|
7601
7622
|
customNode("Transition", {
|
|
7602
7623
|
effectMode: "transition",
|
|
7603
7624
|
processMode: "pausable",
|
|
@@ -7606,10 +7627,10 @@ exports.Transition = __decorateClass$E([
|
|
|
7606
7627
|
], exports.Transition);
|
|
7607
7628
|
|
|
7608
7629
|
var __defProp$x = Object.defineProperty;
|
|
7609
|
-
var __getOwnPropDesc$
|
|
7630
|
+
var __getOwnPropDesc$w = Object.getOwnPropertyDescriptor;
|
|
7610
7631
|
var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7611
|
-
var __decorateClass$
|
|
7612
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7632
|
+
var __decorateClass$E = (decorators, target, key, kind) => {
|
|
7633
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$w(target, key) : target;
|
|
7613
7634
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
7614
7635
|
if (decorator = decorators[i])
|
|
7615
7636
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
@@ -7719,21 +7740,21 @@ void main(void) {
|
|
|
7719
7740
|
}`,
|
|
7720
7741
|
frag: frag$2
|
|
7721
7742
|
}));
|
|
7722
|
-
__decorateClass$
|
|
7743
|
+
__decorateClass$E([
|
|
7723
7744
|
modernIdoc.property({ default: 4 })
|
|
7724
7745
|
], exports.GaussianBlurEffect.prototype, "strength", 2);
|
|
7725
|
-
__decorateClass$
|
|
7746
|
+
__decorateClass$E([
|
|
7726
7747
|
modernIdoc.property({ default: 3 })
|
|
7727
7748
|
], exports.GaussianBlurEffect.prototype, "quality", 2);
|
|
7728
|
-
exports.GaussianBlurEffect = __decorateClass$
|
|
7749
|
+
exports.GaussianBlurEffect = __decorateClass$E([
|
|
7729
7750
|
customNode("GaussianBlurEffect")
|
|
7730
7751
|
], exports.GaussianBlurEffect);
|
|
7731
7752
|
|
|
7732
7753
|
var __defProp$w = Object.defineProperty;
|
|
7733
|
-
var __getOwnPropDesc$
|
|
7754
|
+
var __getOwnPropDesc$v = Object.getOwnPropertyDescriptor;
|
|
7734
7755
|
var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7735
|
-
var __decorateClass$
|
|
7736
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7756
|
+
var __decorateClass$D = (decorators, target, key, kind) => {
|
|
7757
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$v(target, key) : target;
|
|
7737
7758
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
7738
7759
|
if (decorator = decorators[i])
|
|
7739
7760
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
@@ -7801,30 +7822,30 @@ void main(void) {
|
|
|
7801
7822
|
gl_FragColor = sample;
|
|
7802
7823
|
}`
|
|
7803
7824
|
}));
|
|
7804
|
-
__decorateClass$
|
|
7825
|
+
__decorateClass$D([
|
|
7805
7826
|
modernIdoc.property()
|
|
7806
7827
|
], exports.DropShadowEffect.prototype, "color", 2);
|
|
7807
|
-
__decorateClass$
|
|
7828
|
+
__decorateClass$D([
|
|
7808
7829
|
modernIdoc.property()
|
|
7809
7830
|
], exports.DropShadowEffect.prototype, "blur", 2);
|
|
7810
|
-
__decorateClass$
|
|
7831
|
+
__decorateClass$D([
|
|
7811
7832
|
modernIdoc.property()
|
|
7812
7833
|
], exports.DropShadowEffect.prototype, "offsetX", 2);
|
|
7813
|
-
__decorateClass$
|
|
7834
|
+
__decorateClass$D([
|
|
7814
7835
|
modernIdoc.property()
|
|
7815
7836
|
], exports.DropShadowEffect.prototype, "offsetY", 2);
|
|
7816
|
-
__decorateClass$
|
|
7837
|
+
__decorateClass$D([
|
|
7817
7838
|
modernIdoc.property()
|
|
7818
7839
|
], exports.DropShadowEffect.prototype, "shadowOnly", 2);
|
|
7819
|
-
exports.DropShadowEffect = __decorateClass$
|
|
7840
|
+
exports.DropShadowEffect = __decorateClass$D([
|
|
7820
7841
|
customNode("DropShadowEffect")
|
|
7821
7842
|
], exports.DropShadowEffect);
|
|
7822
7843
|
|
|
7823
7844
|
var __defProp$v = Object.defineProperty;
|
|
7824
|
-
var __getOwnPropDesc$
|
|
7845
|
+
var __getOwnPropDesc$u = Object.getOwnPropertyDescriptor;
|
|
7825
7846
|
var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7826
|
-
var __decorateClass$
|
|
7827
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7847
|
+
var __decorateClass$C = (decorators, target, key, kind) => {
|
|
7848
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$u(target, key) : target;
|
|
7828
7849
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
7829
7850
|
if (decorator = decorators[i])
|
|
7830
7851
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
@@ -7873,18 +7894,18 @@ void main(void) {
|
|
|
7873
7894
|
gl_FragColor = vec4(color.rgb * alpha, alpha);
|
|
7874
7895
|
}`
|
|
7875
7896
|
}));
|
|
7876
|
-
__decorateClass$
|
|
7897
|
+
__decorateClass$C([
|
|
7877
7898
|
modernIdoc.property()
|
|
7878
7899
|
], exports.EmbossEffect.prototype, "strength", 2);
|
|
7879
|
-
exports.EmbossEffect = __decorateClass$
|
|
7900
|
+
exports.EmbossEffect = __decorateClass$C([
|
|
7880
7901
|
customNode("EmbossEffect")
|
|
7881
7902
|
], exports.EmbossEffect);
|
|
7882
7903
|
|
|
7883
7904
|
var __defProp$u = Object.defineProperty;
|
|
7884
|
-
var __getOwnPropDesc$
|
|
7905
|
+
var __getOwnPropDesc$t = Object.getOwnPropertyDescriptor;
|
|
7885
7906
|
var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7886
|
-
var __decorateClass$
|
|
7887
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7907
|
+
var __decorateClass$B = (decorators, target, key, kind) => {
|
|
7908
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$t(target, key) : target;
|
|
7888
7909
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
7889
7910
|
if (decorator = decorators[i])
|
|
7890
7911
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
@@ -8062,42 +8083,42 @@ void main(void) {
|
|
|
8062
8083
|
gl_FragColor.a = texture2D(sampler, coord).a;
|
|
8063
8084
|
}`
|
|
8064
8085
|
}));
|
|
8065
|
-
__decorateClass$
|
|
8086
|
+
__decorateClass$B([
|
|
8066
8087
|
modernIdoc.property()
|
|
8067
8088
|
], exports.GlitchEffect.prototype, "slices", 2);
|
|
8068
|
-
__decorateClass$
|
|
8089
|
+
__decorateClass$B([
|
|
8069
8090
|
modernIdoc.property()
|
|
8070
8091
|
], exports.GlitchEffect.prototype, "sampleSize", 2);
|
|
8071
|
-
__decorateClass$
|
|
8092
|
+
__decorateClass$B([
|
|
8072
8093
|
modernIdoc.property()
|
|
8073
8094
|
], exports.GlitchEffect.prototype, "offset", 2);
|
|
8074
|
-
__decorateClass$
|
|
8095
|
+
__decorateClass$B([
|
|
8075
8096
|
modernIdoc.property()
|
|
8076
8097
|
], exports.GlitchEffect.prototype, "direction", 2);
|
|
8077
|
-
__decorateClass$
|
|
8098
|
+
__decorateClass$B([
|
|
8078
8099
|
modernIdoc.property()
|
|
8079
8100
|
], exports.GlitchEffect.prototype, "fillMode", 2);
|
|
8080
|
-
__decorateClass$
|
|
8101
|
+
__decorateClass$B([
|
|
8081
8102
|
modernIdoc.property()
|
|
8082
8103
|
], exports.GlitchEffect.prototype, "seed", 2);
|
|
8083
|
-
__decorateClass$
|
|
8104
|
+
__decorateClass$B([
|
|
8084
8105
|
modernIdoc.property()
|
|
8085
8106
|
], exports.GlitchEffect.prototype, "red", 2);
|
|
8086
|
-
__decorateClass$
|
|
8107
|
+
__decorateClass$B([
|
|
8087
8108
|
modernIdoc.property()
|
|
8088
8109
|
], exports.GlitchEffect.prototype, "green", 2);
|
|
8089
|
-
__decorateClass$
|
|
8110
|
+
__decorateClass$B([
|
|
8090
8111
|
modernIdoc.property()
|
|
8091
8112
|
], exports.GlitchEffect.prototype, "blue", 2);
|
|
8092
|
-
exports.GlitchEffect = __decorateClass$
|
|
8113
|
+
exports.GlitchEffect = __decorateClass$B([
|
|
8093
8114
|
customNode("GlitchEffect")
|
|
8094
8115
|
], exports.GlitchEffect);
|
|
8095
8116
|
|
|
8096
8117
|
var __defProp$t = Object.defineProperty;
|
|
8097
|
-
var __getOwnPropDesc$
|
|
8118
|
+
var __getOwnPropDesc$s = Object.getOwnPropertyDescriptor;
|
|
8098
8119
|
var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8099
|
-
var __decorateClass$
|
|
8100
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
8120
|
+
var __decorateClass$A = (decorators, target, key, kind) => {
|
|
8121
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$s(target, key) : target;
|
|
8101
8122
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
8102
8123
|
if (decorator = decorators[i])
|
|
8103
8124
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
@@ -8279,35 +8300,35 @@ void main(void) {
|
|
|
8279
8300
|
gl_FragColor = vec4(color.rgb + mist.rgb, color.a);
|
|
8280
8301
|
}`
|
|
8281
8302
|
}));
|
|
8282
|
-
__decorateClass$
|
|
8303
|
+
__decorateClass$A([
|
|
8283
8304
|
modernIdoc.property()
|
|
8284
8305
|
], exports.GodrayEffect.prototype, "time", 2);
|
|
8285
|
-
__decorateClass$
|
|
8306
|
+
__decorateClass$A([
|
|
8286
8307
|
modernIdoc.property()
|
|
8287
8308
|
], exports.GodrayEffect.prototype, "angle", 2);
|
|
8288
|
-
__decorateClass$
|
|
8309
|
+
__decorateClass$A([
|
|
8289
8310
|
modernIdoc.property()
|
|
8290
8311
|
], exports.GodrayEffect.prototype, "gain", 2);
|
|
8291
|
-
__decorateClass$
|
|
8312
|
+
__decorateClass$A([
|
|
8292
8313
|
modernIdoc.property()
|
|
8293
8314
|
], exports.GodrayEffect.prototype, "lacunarity", 2);
|
|
8294
|
-
__decorateClass$
|
|
8315
|
+
__decorateClass$A([
|
|
8295
8316
|
modernIdoc.property()
|
|
8296
8317
|
], exports.GodrayEffect.prototype, "parallel", 2);
|
|
8297
|
-
__decorateClass$
|
|
8318
|
+
__decorateClass$A([
|
|
8298
8319
|
modernIdoc.property()
|
|
8299
8320
|
], exports.GodrayEffect.prototype, "center", 2);
|
|
8300
|
-
__decorateClass$
|
|
8321
|
+
__decorateClass$A([
|
|
8301
8322
|
modernIdoc.property()
|
|
8302
8323
|
], exports.GodrayEffect.prototype, "alpha", 2);
|
|
8303
|
-
exports.GodrayEffect = __decorateClass$
|
|
8324
|
+
exports.GodrayEffect = __decorateClass$A([
|
|
8304
8325
|
customNode("GodrayEffect")
|
|
8305
8326
|
], exports.GodrayEffect);
|
|
8306
8327
|
|
|
8307
8328
|
var __defProp$s = Object.defineProperty;
|
|
8308
|
-
var __getOwnPropDesc$
|
|
8309
|
-
var __decorateClass$
|
|
8310
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
8329
|
+
var __getOwnPropDesc$r = Object.getOwnPropertyDescriptor;
|
|
8330
|
+
var __decorateClass$z = (decorators, target, key, kind) => {
|
|
8331
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$r(target, key) : target;
|
|
8311
8332
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
8312
8333
|
if (decorator = decorators[i])
|
|
8313
8334
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
@@ -8401,24 +8422,24 @@ void main() {
|
|
|
8401
8422
|
});
|
|
8402
8423
|
}
|
|
8403
8424
|
};
|
|
8404
|
-
__decorateClass$
|
|
8425
|
+
__decorateClass$z([
|
|
8405
8426
|
modernIdoc.property()
|
|
8406
8427
|
], exports.KawaseBlurEffect.prototype, "strength", 2);
|
|
8407
|
-
__decorateClass$
|
|
8428
|
+
__decorateClass$z([
|
|
8408
8429
|
modernIdoc.property()
|
|
8409
8430
|
], exports.KawaseBlurEffect.prototype, "quality", 2);
|
|
8410
|
-
__decorateClass$
|
|
8431
|
+
__decorateClass$z([
|
|
8411
8432
|
modernIdoc.property()
|
|
8412
8433
|
], exports.KawaseBlurEffect.prototype, "pixelSize", 2);
|
|
8413
|
-
exports.KawaseBlurEffect = __decorateClass$
|
|
8434
|
+
exports.KawaseBlurEffect = __decorateClass$z([
|
|
8414
8435
|
customNode("KawaseBlurEffect")
|
|
8415
8436
|
], exports.KawaseBlurEffect);
|
|
8416
8437
|
|
|
8417
8438
|
var __defProp$r = Object.defineProperty;
|
|
8418
|
-
var __getOwnPropDesc$
|
|
8439
|
+
var __getOwnPropDesc$q = Object.getOwnPropertyDescriptor;
|
|
8419
8440
|
var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8420
|
-
var __decorateClass$
|
|
8421
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
8441
|
+
var __decorateClass$y = (decorators, target, key, kind) => {
|
|
8442
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$q(target, key) : target;
|
|
8422
8443
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
8423
8444
|
if (decorator = decorators[i])
|
|
8424
8445
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
@@ -8510,21 +8531,21 @@ void main(void) {
|
|
|
8510
8531
|
}
|
|
8511
8532
|
}`
|
|
8512
8533
|
}));
|
|
8513
|
-
__decorateClass$
|
|
8534
|
+
__decorateClass$y([
|
|
8514
8535
|
modernIdoc.property({ protected: true })
|
|
8515
8536
|
], exports.MaskEffect.prototype, "texture", 2);
|
|
8516
|
-
__decorateClass$
|
|
8537
|
+
__decorateClass$y([
|
|
8517
8538
|
modernIdoc.property({ default: "" })
|
|
8518
8539
|
], exports.MaskEffect.prototype, "src", 2);
|
|
8519
|
-
exports.MaskEffect = __decorateClass$
|
|
8540
|
+
exports.MaskEffect = __decorateClass$y([
|
|
8520
8541
|
customNode("MaskEffect")
|
|
8521
8542
|
], exports.MaskEffect);
|
|
8522
8543
|
|
|
8523
8544
|
var __defProp$q = Object.defineProperty;
|
|
8524
|
-
var __getOwnPropDesc$
|
|
8545
|
+
var __getOwnPropDesc$p = Object.getOwnPropertyDescriptor;
|
|
8525
8546
|
var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8526
|
-
var __decorateClass$
|
|
8527
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
8547
|
+
var __decorateClass$x = (decorators, target, key, kind) => {
|
|
8548
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$p(target, key) : target;
|
|
8528
8549
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
8529
8550
|
if (decorator = decorators[i])
|
|
8530
8551
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
@@ -8615,36 +8636,36 @@ void main() {
|
|
|
8615
8636
|
};
|
|
8616
8637
|
__publicField$7(exports.OutlineEffect, "MIN_SAMPLES", 1);
|
|
8617
8638
|
__publicField$7(exports.OutlineEffect, "MAX_SAMPLES", 100);
|
|
8618
|
-
__decorateClass$
|
|
8639
|
+
__decorateClass$x([
|
|
8619
8640
|
modernIdoc.property()
|
|
8620
8641
|
], exports.OutlineEffect.prototype, "color", 2);
|
|
8621
|
-
__decorateClass$
|
|
8642
|
+
__decorateClass$x([
|
|
8622
8643
|
modernIdoc.property()
|
|
8623
8644
|
], exports.OutlineEffect.prototype, "width", 2);
|
|
8624
|
-
__decorateClass$
|
|
8645
|
+
__decorateClass$x([
|
|
8625
8646
|
modernIdoc.property()
|
|
8626
8647
|
], exports.OutlineEffect.prototype, "style", 2);
|
|
8627
|
-
__decorateClass$
|
|
8648
|
+
__decorateClass$x([
|
|
8628
8649
|
modernIdoc.property()
|
|
8629
8650
|
], exports.OutlineEffect.prototype, "image", 2);
|
|
8630
|
-
__decorateClass$
|
|
8651
|
+
__decorateClass$x([
|
|
8631
8652
|
modernIdoc.property()
|
|
8632
8653
|
], exports.OutlineEffect.prototype, "opacity", 2);
|
|
8633
|
-
__decorateClass$
|
|
8654
|
+
__decorateClass$x([
|
|
8634
8655
|
modernIdoc.property()
|
|
8635
8656
|
], exports.OutlineEffect.prototype, "quality", 2);
|
|
8636
|
-
__decorateClass$
|
|
8657
|
+
__decorateClass$x([
|
|
8637
8658
|
modernIdoc.property()
|
|
8638
8659
|
], exports.OutlineEffect.prototype, "knockout", 2);
|
|
8639
|
-
exports.OutlineEffect = __decorateClass$
|
|
8660
|
+
exports.OutlineEffect = __decorateClass$x([
|
|
8640
8661
|
customNode("OutlineEffect")
|
|
8641
8662
|
], exports.OutlineEffect);
|
|
8642
8663
|
|
|
8643
8664
|
var __defProp$p = Object.defineProperty;
|
|
8644
|
-
var __getOwnPropDesc$
|
|
8665
|
+
var __getOwnPropDesc$o = Object.getOwnPropertyDescriptor;
|
|
8645
8666
|
var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8646
|
-
var __decorateClass$
|
|
8647
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
8667
|
+
var __decorateClass$w = (decorators, target, key, kind) => {
|
|
8668
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$o(target, key) : target;
|
|
8648
8669
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
8649
8670
|
if (decorator = decorators[i])
|
|
8650
8671
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
@@ -8704,18 +8725,18 @@ void main(void) {
|
|
|
8704
8725
|
gl_FragColor = texture2D(sampler, coord);
|
|
8705
8726
|
}`
|
|
8706
8727
|
}));
|
|
8707
|
-
__decorateClass$
|
|
8728
|
+
__decorateClass$w([
|
|
8708
8729
|
modernIdoc.property()
|
|
8709
8730
|
], exports.PixelateEffect.prototype, "strength", 2);
|
|
8710
|
-
exports.PixelateEffect = __decorateClass$
|
|
8731
|
+
exports.PixelateEffect = __decorateClass$w([
|
|
8711
8732
|
customNode("PixelateEffect")
|
|
8712
8733
|
], exports.PixelateEffect);
|
|
8713
8734
|
|
|
8714
8735
|
var __defProp$o = Object.defineProperty;
|
|
8715
|
-
var __getOwnPropDesc$
|
|
8736
|
+
var __getOwnPropDesc$n = Object.getOwnPropertyDescriptor;
|
|
8716
8737
|
var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8717
|
-
var __decorateClass$
|
|
8718
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
8738
|
+
var __decorateClass$v = (decorators, target, key, kind) => {
|
|
8739
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$n(target, key) : target;
|
|
8719
8740
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
8720
8741
|
if (decorator = decorators[i])
|
|
8721
8742
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
@@ -8832,24 +8853,24 @@ void main() {
|
|
|
8832
8853
|
gl_FragColor = color;
|
|
8833
8854
|
}`
|
|
8834
8855
|
}));
|
|
8835
|
-
__decorateClass$
|
|
8856
|
+
__decorateClass$v([
|
|
8836
8857
|
modernIdoc.property()
|
|
8837
8858
|
], exports.ZoomBlurEffect.prototype, "center", 2);
|
|
8838
|
-
__decorateClass$
|
|
8859
|
+
__decorateClass$v([
|
|
8839
8860
|
modernIdoc.property()
|
|
8840
8861
|
], exports.ZoomBlurEffect.prototype, "innerRadius", 2);
|
|
8841
|
-
__decorateClass$
|
|
8862
|
+
__decorateClass$v([
|
|
8842
8863
|
modernIdoc.property()
|
|
8843
8864
|
], exports.ZoomBlurEffect.prototype, "radius", 2);
|
|
8844
|
-
__decorateClass$
|
|
8865
|
+
__decorateClass$v([
|
|
8845
8866
|
modernIdoc.property()
|
|
8846
8867
|
], exports.ZoomBlurEffect.prototype, "strength", 2);
|
|
8847
|
-
exports.ZoomBlurEffect = __decorateClass$
|
|
8868
|
+
exports.ZoomBlurEffect = __decorateClass$v([
|
|
8848
8869
|
customNode("ZoomBlurEffect")
|
|
8849
8870
|
], exports.ZoomBlurEffect);
|
|
8850
8871
|
|
|
8851
8872
|
var __defProp$n = Object.defineProperty;
|
|
8852
|
-
var __decorateClass$
|
|
8873
|
+
var __decorateClass$u = (decorators, target, key, kind) => {
|
|
8853
8874
|
var result = void 0 ;
|
|
8854
8875
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
8855
8876
|
if (decorator = decorators[i])
|
|
@@ -8962,42 +8983,42 @@ class BaseElement2DFill extends CoreObject {
|
|
|
8962
8983
|
});
|
|
8963
8984
|
}
|
|
8964
8985
|
}
|
|
8965
|
-
__decorateClass$
|
|
8986
|
+
__decorateClass$u([
|
|
8966
8987
|
modernIdoc.property({ fallback: true })
|
|
8967
8988
|
], BaseElement2DFill.prototype, "enabled");
|
|
8968
|
-
__decorateClass$
|
|
8989
|
+
__decorateClass$u([
|
|
8969
8990
|
modernIdoc.property()
|
|
8970
8991
|
], BaseElement2DFill.prototype, "color");
|
|
8971
|
-
__decorateClass$
|
|
8992
|
+
__decorateClass$u([
|
|
8972
8993
|
modernIdoc.property()
|
|
8973
8994
|
], BaseElement2DFill.prototype, "image");
|
|
8974
|
-
__decorateClass$
|
|
8995
|
+
__decorateClass$u([
|
|
8975
8996
|
modernIdoc.property()
|
|
8976
8997
|
], BaseElement2DFill.prototype, "linearGradient");
|
|
8977
|
-
__decorateClass$
|
|
8998
|
+
__decorateClass$u([
|
|
8978
8999
|
modernIdoc.property()
|
|
8979
9000
|
], BaseElement2DFill.prototype, "radialGradient");
|
|
8980
|
-
__decorateClass$
|
|
9001
|
+
__decorateClass$u([
|
|
8981
9002
|
modernIdoc.property()
|
|
8982
9003
|
], BaseElement2DFill.prototype, "cropRect");
|
|
8983
|
-
__decorateClass$
|
|
9004
|
+
__decorateClass$u([
|
|
8984
9005
|
modernIdoc.property()
|
|
8985
9006
|
], BaseElement2DFill.prototype, "stretchRect");
|
|
8986
|
-
__decorateClass$
|
|
9007
|
+
__decorateClass$u([
|
|
8987
9008
|
modernIdoc.property()
|
|
8988
9009
|
], BaseElement2DFill.prototype, "dpi");
|
|
8989
|
-
__decorateClass$
|
|
9010
|
+
__decorateClass$u([
|
|
8990
9011
|
modernIdoc.property()
|
|
8991
9012
|
], BaseElement2DFill.prototype, "rotateWithShape");
|
|
8992
|
-
__decorateClass$
|
|
9013
|
+
__decorateClass$u([
|
|
8993
9014
|
modernIdoc.property()
|
|
8994
9015
|
], BaseElement2DFill.prototype, "tile");
|
|
8995
|
-
__decorateClass$
|
|
9016
|
+
__decorateClass$u([
|
|
8996
9017
|
modernIdoc.property()
|
|
8997
9018
|
], BaseElement2DFill.prototype, "opacity");
|
|
8998
9019
|
|
|
8999
9020
|
var __defProp$m = Object.defineProperty;
|
|
9000
|
-
var __decorateClass$
|
|
9021
|
+
var __decorateClass$t = (decorators, target, key, kind) => {
|
|
9001
9022
|
var result = void 0 ;
|
|
9002
9023
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
9003
9024
|
if (decorator = decorators[i])
|
|
@@ -9012,12 +9033,12 @@ class BaseElement2DBackground extends BaseElement2DFill {
|
|
|
9012
9033
|
);
|
|
9013
9034
|
}
|
|
9014
9035
|
}
|
|
9015
|
-
__decorateClass$
|
|
9036
|
+
__decorateClass$t([
|
|
9016
9037
|
modernIdoc.property()
|
|
9017
9038
|
], BaseElement2DBackground.prototype, "fillWithShape");
|
|
9018
9039
|
|
|
9019
9040
|
var __defProp$l = Object.defineProperty;
|
|
9020
|
-
var __decorateClass$
|
|
9041
|
+
var __decorateClass$s = (decorators, target, key, kind) => {
|
|
9021
9042
|
var result = void 0 ;
|
|
9022
9043
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
9023
9044
|
if (decorator = decorators[i])
|
|
@@ -9032,12 +9053,12 @@ class BaseElement2DForeground extends BaseElement2DFill {
|
|
|
9032
9053
|
);
|
|
9033
9054
|
}
|
|
9034
9055
|
}
|
|
9035
|
-
__decorateClass$
|
|
9056
|
+
__decorateClass$s([
|
|
9036
9057
|
modernIdoc.property()
|
|
9037
9058
|
], BaseElement2DForeground.prototype, "fillWithShape");
|
|
9038
9059
|
|
|
9039
9060
|
var __defProp$k = Object.defineProperty;
|
|
9040
|
-
var __decorateClass$
|
|
9061
|
+
var __decorateClass$r = (decorators, target, key, kind) => {
|
|
9041
9062
|
var result = void 0 ;
|
|
9042
9063
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
9043
9064
|
if (decorator = decorators[i])
|
|
@@ -9075,18 +9096,18 @@ class BaseElement2DOutline extends BaseElement2DFill {
|
|
|
9075
9096
|
ctx.stroke({ disableWrapMode });
|
|
9076
9097
|
}
|
|
9077
9098
|
}
|
|
9078
|
-
__decorateClass$
|
|
9099
|
+
__decorateClass$r([
|
|
9079
9100
|
modernIdoc.property({ fallback: "#00000000" })
|
|
9080
9101
|
], BaseElement2DOutline.prototype, "color");
|
|
9081
|
-
__decorateClass$
|
|
9102
|
+
__decorateClass$r([
|
|
9082
9103
|
modernIdoc.property({ fallback: 0 })
|
|
9083
9104
|
], BaseElement2DOutline.prototype, "width");
|
|
9084
|
-
__decorateClass$
|
|
9105
|
+
__decorateClass$r([
|
|
9085
9106
|
modernIdoc.property({ fallback: "solid" })
|
|
9086
9107
|
], BaseElement2DOutline.prototype, "style");
|
|
9087
9108
|
|
|
9088
9109
|
var __defProp$j = Object.defineProperty;
|
|
9089
|
-
var __decorateClass$
|
|
9110
|
+
var __decorateClass$q = (decorators, target, key, kind) => {
|
|
9090
9111
|
var result = void 0 ;
|
|
9091
9112
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
9092
9113
|
if (decorator = decorators[i])
|
|
@@ -9131,24 +9152,24 @@ class BaseElement2DShadow extends CoreObject {
|
|
|
9131
9152
|
}
|
|
9132
9153
|
}
|
|
9133
9154
|
}
|
|
9134
|
-
__decorateClass$
|
|
9155
|
+
__decorateClass$q([
|
|
9135
9156
|
modernIdoc.property({ fallback: true })
|
|
9136
9157
|
], BaseElement2DShadow.prototype, "enabled");
|
|
9137
|
-
__decorateClass$
|
|
9158
|
+
__decorateClass$q([
|
|
9138
9159
|
modernIdoc.property({ fallback: "#000000FF" })
|
|
9139
9160
|
], BaseElement2DShadow.prototype, "color");
|
|
9140
|
-
__decorateClass$
|
|
9161
|
+
__decorateClass$q([
|
|
9141
9162
|
modernIdoc.property({ fallback: 0 })
|
|
9142
9163
|
], BaseElement2DShadow.prototype, "blur");
|
|
9143
|
-
__decorateClass$
|
|
9164
|
+
__decorateClass$q([
|
|
9144
9165
|
modernIdoc.property({ fallback: 0 })
|
|
9145
9166
|
], BaseElement2DShadow.prototype, "offsetY");
|
|
9146
|
-
__decorateClass$
|
|
9167
|
+
__decorateClass$q([
|
|
9147
9168
|
modernIdoc.property({ fallback: 0 })
|
|
9148
9169
|
], BaseElement2DShadow.prototype, "offsetX");
|
|
9149
9170
|
|
|
9150
9171
|
var __defProp$i = Object.defineProperty;
|
|
9151
|
-
var __decorateClass$
|
|
9172
|
+
var __decorateClass$p = (decorators, target, key, kind) => {
|
|
9152
9173
|
var result = void 0 ;
|
|
9153
9174
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
9154
9175
|
if (decorator = decorators[i])
|
|
@@ -9228,19 +9249,19 @@ class BaseElement2DShape extends CoreObject {
|
|
|
9228
9249
|
}
|
|
9229
9250
|
}
|
|
9230
9251
|
}
|
|
9231
|
-
__decorateClass$
|
|
9252
|
+
__decorateClass$p([
|
|
9232
9253
|
modernIdoc.property({ fallback: true })
|
|
9233
9254
|
], BaseElement2DShape.prototype, "enabled");
|
|
9234
|
-
__decorateClass$
|
|
9255
|
+
__decorateClass$p([
|
|
9235
9256
|
modernIdoc.property()
|
|
9236
9257
|
], BaseElement2DShape.prototype, "preset");
|
|
9237
|
-
__decorateClass$
|
|
9258
|
+
__decorateClass$p([
|
|
9238
9259
|
modernIdoc.property()
|
|
9239
9260
|
], BaseElement2DShape.prototype, "svg");
|
|
9240
|
-
__decorateClass$
|
|
9261
|
+
__decorateClass$p([
|
|
9241
9262
|
modernIdoc.property()
|
|
9242
9263
|
], BaseElement2DShape.prototype, "viewBox");
|
|
9243
|
-
__decorateClass$
|
|
9264
|
+
__decorateClass$p([
|
|
9244
9265
|
modernIdoc.property()
|
|
9245
9266
|
], BaseElement2DShape.prototype, "paths");
|
|
9246
9267
|
|
|
@@ -9257,7 +9278,7 @@ for (const key in defaultStyles$1) {
|
|
|
9257
9278
|
}
|
|
9258
9279
|
|
|
9259
9280
|
var __defProp$h = Object.defineProperty;
|
|
9260
|
-
var __decorateClass$
|
|
9281
|
+
var __decorateClass$o = (decorators, target, key, kind) => {
|
|
9261
9282
|
var result = void 0 ;
|
|
9262
9283
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
9263
9284
|
if (decorator = decorators[i])
|
|
@@ -9337,26 +9358,26 @@ class BaseElement2DText extends CoreObject {
|
|
|
9337
9358
|
});
|
|
9338
9359
|
}
|
|
9339
9360
|
}
|
|
9340
|
-
__decorateClass$
|
|
9361
|
+
__decorateClass$o([
|
|
9341
9362
|
modernIdoc.property({ fallback: true })
|
|
9342
9363
|
], BaseElement2DText.prototype, "enabled");
|
|
9343
|
-
__decorateClass$
|
|
9364
|
+
__decorateClass$o([
|
|
9344
9365
|
modernIdoc.property({ alias: "base.content", fallback: () => [] })
|
|
9345
9366
|
], BaseElement2DText.prototype, "content");
|
|
9346
|
-
__decorateClass$
|
|
9367
|
+
__decorateClass$o([
|
|
9347
9368
|
modernIdoc.property({ alias: "base.effects" })
|
|
9348
9369
|
], BaseElement2DText.prototype, "effects");
|
|
9349
|
-
__decorateClass$
|
|
9370
|
+
__decorateClass$o([
|
|
9350
9371
|
modernIdoc.property({ protected: true, alias: "base.measureDOM" })
|
|
9351
9372
|
], BaseElement2DText.prototype, "measureDOM");
|
|
9352
|
-
__decorateClass$
|
|
9373
|
+
__decorateClass$o([
|
|
9353
9374
|
modernIdoc.property({ protected: true, alias: "base.fonts" })
|
|
9354
9375
|
], BaseElement2DText.prototype, "fonts");
|
|
9355
9376
|
|
|
9356
9377
|
var __defProp$g = Object.defineProperty;
|
|
9357
|
-
var __getOwnPropDesc$
|
|
9358
|
-
var __decorateClass$
|
|
9359
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
9378
|
+
var __getOwnPropDesc$m = Object.getOwnPropertyDescriptor;
|
|
9379
|
+
var __decorateClass$n = (decorators, target, key, kind) => {
|
|
9380
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$m(target, key) : target;
|
|
9360
9381
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
9361
9382
|
if (decorator = decorators[i])
|
|
9362
9383
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
@@ -9446,8 +9467,9 @@ exports.Node2D = class Node2D extends exports.CanvasItem {
|
|
|
9446
9467
|
return newVertices;
|
|
9447
9468
|
}
|
|
9448
9469
|
_relayout(batchables) {
|
|
9470
|
+
batchables = super._relayout(batchables);
|
|
9449
9471
|
this.updateGlobalTransform();
|
|
9450
|
-
return
|
|
9472
|
+
return batchables.map((batchable) => {
|
|
9451
9473
|
return {
|
|
9452
9474
|
...batchable,
|
|
9453
9475
|
vertices: this._transformVertices(batchable.vertices, batchable.vertTransform)
|
|
@@ -9462,19 +9484,19 @@ exports.Node2D = class Node2D extends exports.CanvasItem {
|
|
|
9462
9484
|
}
|
|
9463
9485
|
}
|
|
9464
9486
|
};
|
|
9465
|
-
__decorateClass$
|
|
9487
|
+
__decorateClass$n([
|
|
9466
9488
|
modernIdoc.property({ protected: true, fallback: 0 })
|
|
9467
9489
|
], exports.Node2D.prototype, "rotation", 2);
|
|
9468
|
-
__decorateClass$
|
|
9490
|
+
__decorateClass$n([
|
|
9469
9491
|
modernIdoc.property({ protected: true, fallback: 0 })
|
|
9470
9492
|
], exports.Node2D.prototype, "globalRotation", 2);
|
|
9471
|
-
exports.Node2D = __decorateClass$
|
|
9493
|
+
exports.Node2D = __decorateClass$n([
|
|
9472
9494
|
customNode("Node2D")
|
|
9473
9495
|
], exports.Node2D);
|
|
9474
9496
|
|
|
9475
|
-
var __getOwnPropDesc$
|
|
9476
|
-
var __decorateClass$
|
|
9477
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
9497
|
+
var __getOwnPropDesc$l = Object.getOwnPropertyDescriptor;
|
|
9498
|
+
var __decorateClass$m = (decorators, target, key, kind) => {
|
|
9499
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$l(target, key) : target;
|
|
9478
9500
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
9479
9501
|
if (decorator = decorators[i])
|
|
9480
9502
|
result = (decorator(result)) || result;
|
|
@@ -9758,8 +9780,9 @@ exports.BaseElement2D = class BaseElement2D extends exports.Node2D {
|
|
|
9758
9780
|
return this.style.pointerEvents !== "none";
|
|
9759
9781
|
}
|
|
9760
9782
|
input(event, key) {
|
|
9761
|
-
|
|
9762
|
-
|
|
9783
|
+
const array = this._children.internal;
|
|
9784
|
+
for (let i = array.length - 1; i >= 0; i--) {
|
|
9785
|
+
array[i].input(event, key);
|
|
9763
9786
|
}
|
|
9764
9787
|
if (this.isVisibleInTree()) {
|
|
9765
9788
|
this._input(event, key);
|
|
@@ -9808,7 +9831,7 @@ exports.BaseElement2D = class BaseElement2D extends exports.Node2D {
|
|
|
9808
9831
|
});
|
|
9809
9832
|
}
|
|
9810
9833
|
};
|
|
9811
|
-
exports.BaseElement2D = __decorateClass$
|
|
9834
|
+
exports.BaseElement2D = __decorateClass$m([
|
|
9812
9835
|
customNode("BaseElement2D")
|
|
9813
9836
|
], exports.BaseElement2D);
|
|
9814
9837
|
|
|
@@ -9828,9 +9851,9 @@ for (const key in defaultStyles) {
|
|
|
9828
9851
|
modernIdoc.defineProperty(Element2DStyle, key, { fallback: defaultStyles[key] });
|
|
9829
9852
|
}
|
|
9830
9853
|
|
|
9831
|
-
var __getOwnPropDesc$
|
|
9832
|
-
var __decorateClass$
|
|
9833
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
9854
|
+
var __getOwnPropDesc$k = Object.getOwnPropertyDescriptor;
|
|
9855
|
+
var __decorateClass$l = (decorators, target, key, kind) => {
|
|
9856
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$k(target, key) : target;
|
|
9834
9857
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
9835
9858
|
if (decorator = decorators[i])
|
|
9836
9859
|
result = (decorator(result)) || result;
|
|
@@ -9881,7 +9904,7 @@ exports.Element2D = class Element2D extends exports.BaseElement2D {
|
|
|
9881
9904
|
}
|
|
9882
9905
|
}
|
|
9883
9906
|
};
|
|
9884
|
-
exports.Element2D = __decorateClass$
|
|
9907
|
+
exports.Element2D = __decorateClass$l([
|
|
9885
9908
|
customNode("Element2D")
|
|
9886
9909
|
], exports.Element2D);
|
|
9887
9910
|
|
|
@@ -10133,9 +10156,9 @@ class FlexLayout {
|
|
|
10133
10156
|
}
|
|
10134
10157
|
}
|
|
10135
10158
|
|
|
10136
|
-
var __getOwnPropDesc$
|
|
10137
|
-
var __decorateClass$
|
|
10138
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
10159
|
+
var __getOwnPropDesc$j = Object.getOwnPropertyDescriptor;
|
|
10160
|
+
var __decorateClass$k = (decorators, target, key, kind) => {
|
|
10161
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$j(target, key) : target;
|
|
10139
10162
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
10140
10163
|
if (decorator = decorators[i])
|
|
10141
10164
|
result = (decorator(result)) || result;
|
|
@@ -10212,14 +10235,14 @@ exports.FlexElement2D = class FlexElement2D extends exports.BaseElement2D {
|
|
|
10212
10235
|
}
|
|
10213
10236
|
}
|
|
10214
10237
|
};
|
|
10215
|
-
exports.FlexElement2D = __decorateClass$
|
|
10238
|
+
exports.FlexElement2D = __decorateClass$k([
|
|
10216
10239
|
customNode("FlexElement2D")
|
|
10217
10240
|
], exports.FlexElement2D);
|
|
10218
10241
|
|
|
10219
10242
|
var __defProp$f = Object.defineProperty;
|
|
10220
|
-
var __getOwnPropDesc$
|
|
10221
|
-
var __decorateClass$
|
|
10222
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
10243
|
+
var __getOwnPropDesc$i = Object.getOwnPropertyDescriptor;
|
|
10244
|
+
var __decorateClass$j = (decorators, target, key, kind) => {
|
|
10245
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$i(target, key) : target;
|
|
10223
10246
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
10224
10247
|
if (decorator = decorators[i])
|
|
10225
10248
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
@@ -10359,19 +10382,19 @@ exports.Image2D = class Image2D extends exports.Element2D {
|
|
|
10359
10382
|
});
|
|
10360
10383
|
}
|
|
10361
10384
|
};
|
|
10362
|
-
__decorateClass$
|
|
10385
|
+
__decorateClass$j([
|
|
10363
10386
|
modernIdoc.property({ protected: true })
|
|
10364
10387
|
], exports.Image2D.prototype, "texture", 2);
|
|
10365
|
-
__decorateClass$
|
|
10388
|
+
__decorateClass$j([
|
|
10366
10389
|
modernIdoc.property({ fallback: "" })
|
|
10367
10390
|
], exports.Image2D.prototype, "src", 2);
|
|
10368
|
-
__decorateClass$
|
|
10391
|
+
__decorateClass$j([
|
|
10369
10392
|
modernIdoc.property()
|
|
10370
10393
|
], exports.Image2D.prototype, "srcRect", 2);
|
|
10371
|
-
__decorateClass$
|
|
10394
|
+
__decorateClass$j([
|
|
10372
10395
|
modernIdoc.property({ fallback: false })
|
|
10373
10396
|
], exports.Image2D.prototype, "gif", 2);
|
|
10374
|
-
exports.Image2D = __decorateClass$
|
|
10397
|
+
exports.Image2D = __decorateClass$j([
|
|
10375
10398
|
customNode("Image2D")
|
|
10376
10399
|
], exports.Image2D);
|
|
10377
10400
|
|
|
@@ -10396,9 +10419,9 @@ class TextureRect2D extends exports.Element2D {
|
|
|
10396
10419
|
}
|
|
10397
10420
|
|
|
10398
10421
|
var __defProp$e = Object.defineProperty;
|
|
10399
|
-
var __getOwnPropDesc$
|
|
10400
|
-
var __decorateClass$
|
|
10401
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
10422
|
+
var __getOwnPropDesc$h = Object.getOwnPropertyDescriptor;
|
|
10423
|
+
var __decorateClass$i = (decorators, target, key, kind) => {
|
|
10424
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$h(target, key) : target;
|
|
10402
10425
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
10403
10426
|
if (decorator = decorators[i])
|
|
10404
10427
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
@@ -10445,17 +10468,17 @@ exports.Lottie2D = class Lottie2D extends TextureRect2D {
|
|
|
10445
10468
|
super._process(delta);
|
|
10446
10469
|
}
|
|
10447
10470
|
};
|
|
10448
|
-
__decorateClass$
|
|
10471
|
+
__decorateClass$i([
|
|
10449
10472
|
modernIdoc.property({ fallback: "" })
|
|
10450
10473
|
], exports.Lottie2D.prototype, "src", 2);
|
|
10451
|
-
exports.Lottie2D = __decorateClass$
|
|
10474
|
+
exports.Lottie2D = __decorateClass$i([
|
|
10452
10475
|
customNode("Lottie2D")
|
|
10453
10476
|
], exports.Lottie2D);
|
|
10454
10477
|
|
|
10455
10478
|
var __defProp$d = Object.defineProperty;
|
|
10456
|
-
var __getOwnPropDesc$
|
|
10457
|
-
var __decorateClass$
|
|
10458
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
10479
|
+
var __getOwnPropDesc$g = Object.getOwnPropertyDescriptor;
|
|
10480
|
+
var __decorateClass$h = (decorators, target, key, kind) => {
|
|
10481
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$g(target, key) : target;
|
|
10459
10482
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
10460
10483
|
if (decorator = decorators[i])
|
|
10461
10484
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
@@ -10609,27 +10632,27 @@ exports.Text2D = class Text2D extends TextureRect2D {
|
|
|
10609
10632
|
}
|
|
10610
10633
|
}
|
|
10611
10634
|
};
|
|
10612
|
-
__decorateClass$
|
|
10635
|
+
__decorateClass$h([
|
|
10613
10636
|
modernIdoc.property({ fallback: false })
|
|
10614
10637
|
], exports.Text2D.prototype, "split", 2);
|
|
10615
|
-
__decorateClass$
|
|
10638
|
+
__decorateClass$h([
|
|
10616
10639
|
modernIdoc.property({ alias: "base.content" })
|
|
10617
10640
|
], exports.Text2D.prototype, "content", 2);
|
|
10618
|
-
__decorateClass$
|
|
10641
|
+
__decorateClass$h([
|
|
10619
10642
|
modernIdoc.property({ alias: "base.effects" })
|
|
10620
10643
|
], exports.Text2D.prototype, "effects", 2);
|
|
10621
|
-
__decorateClass$
|
|
10644
|
+
__decorateClass$h([
|
|
10622
10645
|
modernIdoc.property({ protected: true, alias: "base.measureDOM" })
|
|
10623
10646
|
], exports.Text2D.prototype, "measureDOM", 2);
|
|
10624
|
-
__decorateClass$
|
|
10647
|
+
__decorateClass$h([
|
|
10625
10648
|
modernIdoc.property({ protected: true, alias: "base.fonts" })
|
|
10626
10649
|
], exports.Text2D.prototype, "fonts", 2);
|
|
10627
|
-
exports.Text2D = __decorateClass$
|
|
10650
|
+
exports.Text2D = __decorateClass$h([
|
|
10628
10651
|
customNode("Text2D")
|
|
10629
10652
|
], exports.Text2D);
|
|
10630
10653
|
|
|
10631
10654
|
var __defProp$c = Object.defineProperty;
|
|
10632
|
-
var __decorateClass$
|
|
10655
|
+
var __decorateClass$g = (decorators, target, key, kind) => {
|
|
10633
10656
|
var result = void 0 ;
|
|
10634
10657
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
10635
10658
|
if (decorator = decorators[i])
|
|
@@ -10680,14 +10703,14 @@ class TransformRect2D extends exports.Element2D {
|
|
|
10680
10703
|
this._drawEllipse(width, height / 2);
|
|
10681
10704
|
}
|
|
10682
10705
|
}
|
|
10683
|
-
__decorateClass$
|
|
10706
|
+
__decorateClass$g([
|
|
10684
10707
|
modernIdoc.property({ fallback: 6 })
|
|
10685
10708
|
], TransformRect2D.prototype, "handleSize");
|
|
10686
10709
|
|
|
10687
10710
|
var __defProp$b = Object.defineProperty;
|
|
10688
|
-
var __getOwnPropDesc$
|
|
10689
|
-
var __decorateClass$
|
|
10690
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
10711
|
+
var __getOwnPropDesc$f = Object.getOwnPropertyDescriptor;
|
|
10712
|
+
var __decorateClass$f = (decorators, target, key, kind) => {
|
|
10713
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$f(target, key) : target;
|
|
10691
10714
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
10692
10715
|
if (decorator = decorators[i])
|
|
10693
10716
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
@@ -10744,17 +10767,17 @@ exports.Video2D = class Video2D extends TextureRect2D {
|
|
|
10744
10767
|
super._process(delta);
|
|
10745
10768
|
}
|
|
10746
10769
|
};
|
|
10747
|
-
__decorateClass$
|
|
10770
|
+
__decorateClass$f([
|
|
10748
10771
|
modernIdoc.property({ fallback: "" })
|
|
10749
10772
|
], exports.Video2D.prototype, "src", 2);
|
|
10750
|
-
exports.Video2D = __decorateClass$
|
|
10773
|
+
exports.Video2D = __decorateClass$f([
|
|
10751
10774
|
customNode("Video2D")
|
|
10752
10775
|
], exports.Video2D);
|
|
10753
10776
|
|
|
10754
10777
|
var __defProp$a = Object.defineProperty;
|
|
10755
|
-
var __getOwnPropDesc$
|
|
10756
|
-
var __decorateClass$
|
|
10757
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
10778
|
+
var __getOwnPropDesc$e = Object.getOwnPropertyDescriptor;
|
|
10779
|
+
var __decorateClass$e = (decorators, target, key, kind) => {
|
|
10780
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$e(target, key) : target;
|
|
10758
10781
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
10759
10782
|
if (decorator = decorators[i])
|
|
10760
10783
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
@@ -11077,19 +11100,19 @@ exports.Animation = class Animation extends exports.TimelineNode {
|
|
|
11077
11100
|
});
|
|
11078
11101
|
}
|
|
11079
11102
|
};
|
|
11080
|
-
__decorateClass$
|
|
11103
|
+
__decorateClass$e([
|
|
11081
11104
|
modernIdoc.property()
|
|
11082
11105
|
], exports.Animation.prototype, "effectMode", 2);
|
|
11083
|
-
__decorateClass$
|
|
11106
|
+
__decorateClass$e([
|
|
11084
11107
|
modernIdoc.property()
|
|
11085
11108
|
], exports.Animation.prototype, "loop", 2);
|
|
11086
|
-
__decorateClass$
|
|
11109
|
+
__decorateClass$e([
|
|
11087
11110
|
modernIdoc.property()
|
|
11088
11111
|
], exports.Animation.prototype, "keyframes", 2);
|
|
11089
|
-
__decorateClass$
|
|
11112
|
+
__decorateClass$e([
|
|
11090
11113
|
modernIdoc.property()
|
|
11091
11114
|
], exports.Animation.prototype, "easing", 2);
|
|
11092
|
-
exports.Animation = __decorateClass$
|
|
11115
|
+
exports.Animation = __decorateClass$e([
|
|
11093
11116
|
customNode("Animation", {
|
|
11094
11117
|
renderMode: "disabled",
|
|
11095
11118
|
processMode: "pausable",
|
|
@@ -11974,10 +11997,10 @@ class WebAudio extends AudioPipeline {
|
|
|
11974
11997
|
}
|
|
11975
11998
|
|
|
11976
11999
|
var __defProp$9 = Object.defineProperty;
|
|
11977
|
-
var __getOwnPropDesc$
|
|
12000
|
+
var __getOwnPropDesc$d = Object.getOwnPropertyDescriptor;
|
|
11978
12001
|
var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
11979
|
-
var __decorateClass$
|
|
11980
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
12002
|
+
var __decorateClass$d = (decorators, target, key, kind) => {
|
|
12003
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$d(target, key) : target;
|
|
11981
12004
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
11982
12005
|
if (decorator = decorators[i])
|
|
11983
12006
|
result = (decorator(result)) || result;
|
|
@@ -12188,7 +12211,7 @@ exports.Audio = class Audio extends exports.TimelineNode {
|
|
|
12188
12211
|
}
|
|
12189
12212
|
};
|
|
12190
12213
|
__publicField$4(exports.Audio, "_soundPool", []);
|
|
12191
|
-
exports.Audio = __decorateClass$
|
|
12214
|
+
exports.Audio = __decorateClass$d([
|
|
12192
12215
|
customNode("Audio")
|
|
12193
12216
|
], exports.Audio);
|
|
12194
12217
|
|
|
@@ -12197,9 +12220,9 @@ class AudioSpectrum extends exports.Node2D {
|
|
|
12197
12220
|
}
|
|
12198
12221
|
|
|
12199
12222
|
var __defProp$8 = Object.defineProperty;
|
|
12200
|
-
var __getOwnPropDesc$
|
|
12201
|
-
var __decorateClass$
|
|
12202
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
12223
|
+
var __getOwnPropDesc$c = Object.getOwnPropertyDescriptor;
|
|
12224
|
+
var __decorateClass$c = (decorators, target, key, kind) => {
|
|
12225
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$c(target, key) : target;
|
|
12203
12226
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
12204
12227
|
if (decorator = decorators[i])
|
|
12205
12228
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
@@ -12294,22 +12317,22 @@ exports.AudioWaveform = class AudioWaveform extends exports.Element2D {
|
|
|
12294
12317
|
}
|
|
12295
12318
|
}
|
|
12296
12319
|
};
|
|
12297
|
-
__decorateClass$
|
|
12320
|
+
__decorateClass$c([
|
|
12298
12321
|
modernIdoc.property()
|
|
12299
12322
|
], exports.AudioWaveform.prototype, "src", 2);
|
|
12300
|
-
__decorateClass$
|
|
12323
|
+
__decorateClass$c([
|
|
12301
12324
|
modernIdoc.property()
|
|
12302
12325
|
], exports.AudioWaveform.prototype, "gap", 2);
|
|
12303
|
-
__decorateClass$
|
|
12326
|
+
__decorateClass$c([
|
|
12304
12327
|
modernIdoc.property()
|
|
12305
12328
|
], exports.AudioWaveform.prototype, "color", 2);
|
|
12306
|
-
exports.AudioWaveform = __decorateClass$
|
|
12329
|
+
exports.AudioWaveform = __decorateClass$c([
|
|
12307
12330
|
customNode("AudioWaveform")
|
|
12308
12331
|
], exports.AudioWaveform);
|
|
12309
12332
|
|
|
12310
|
-
var __getOwnPropDesc$
|
|
12311
|
-
var __decorateClass$
|
|
12312
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
12333
|
+
var __getOwnPropDesc$b = Object.getOwnPropertyDescriptor;
|
|
12334
|
+
var __decorateClass$b = (decorators, target, key, kind) => {
|
|
12335
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$b(target, key) : target;
|
|
12313
12336
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
12314
12337
|
if (decorator = decorators[i])
|
|
12315
12338
|
result = (decorator(result)) || result;
|
|
@@ -12356,14 +12379,14 @@ exports.Control = class Control extends exports.Element2D {
|
|
|
12356
12379
|
_guiInput(event, key) {
|
|
12357
12380
|
}
|
|
12358
12381
|
};
|
|
12359
|
-
exports.Control = __decorateClass$
|
|
12382
|
+
exports.Control = __decorateClass$b([
|
|
12360
12383
|
customNode("Control")
|
|
12361
12384
|
], exports.Control);
|
|
12362
12385
|
|
|
12363
12386
|
var __defProp$7 = Object.defineProperty;
|
|
12364
|
-
var __getOwnPropDesc$
|
|
12365
|
-
var __decorateClass$
|
|
12366
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
12387
|
+
var __getOwnPropDesc$a = Object.getOwnPropertyDescriptor;
|
|
12388
|
+
var __decorateClass$a = (decorators, target, key, kind) => {
|
|
12389
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$a(target, key) : target;
|
|
12367
12390
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
12368
12391
|
if (decorator = decorators[i])
|
|
12369
12392
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
@@ -12390,35 +12413,35 @@ exports.Range = class Range extends exports.Control {
|
|
|
12390
12413
|
}
|
|
12391
12414
|
}
|
|
12392
12415
|
};
|
|
12393
|
-
__decorateClass$
|
|
12416
|
+
__decorateClass$a([
|
|
12394
12417
|
modernIdoc.property({ fallback: false })
|
|
12395
12418
|
], exports.Range.prototype, "allowGreater", 2);
|
|
12396
|
-
__decorateClass$
|
|
12419
|
+
__decorateClass$a([
|
|
12397
12420
|
modernIdoc.property({ fallback: false })
|
|
12398
12421
|
], exports.Range.prototype, "allowLesser", 2);
|
|
12399
|
-
__decorateClass$
|
|
12422
|
+
__decorateClass$a([
|
|
12400
12423
|
modernIdoc.property({ fallback: 1 })
|
|
12401
12424
|
], exports.Range.prototype, "page", 2);
|
|
12402
|
-
__decorateClass$
|
|
12425
|
+
__decorateClass$a([
|
|
12403
12426
|
modernIdoc.property({ fallback: 0 })
|
|
12404
12427
|
], exports.Range.prototype, "minValue", 2);
|
|
12405
|
-
__decorateClass$
|
|
12428
|
+
__decorateClass$a([
|
|
12406
12429
|
modernIdoc.property({ fallback: 100 })
|
|
12407
12430
|
], exports.Range.prototype, "maxValue", 2);
|
|
12408
|
-
__decorateClass$
|
|
12431
|
+
__decorateClass$a([
|
|
12409
12432
|
modernIdoc.property({ fallback: 0.01 })
|
|
12410
12433
|
], exports.Range.prototype, "step", 2);
|
|
12411
|
-
__decorateClass$
|
|
12434
|
+
__decorateClass$a([
|
|
12412
12435
|
modernIdoc.property({ fallback: 0 })
|
|
12413
12436
|
], exports.Range.prototype, "value", 2);
|
|
12414
|
-
exports.Range = __decorateClass$
|
|
12437
|
+
exports.Range = __decorateClass$a([
|
|
12415
12438
|
customNode("Range")
|
|
12416
12439
|
], exports.Range);
|
|
12417
12440
|
|
|
12418
12441
|
var __defProp$6 = Object.defineProperty;
|
|
12419
|
-
var __getOwnPropDesc$
|
|
12420
|
-
var __decorateClass$
|
|
12421
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
12442
|
+
var __getOwnPropDesc$9 = Object.getOwnPropertyDescriptor;
|
|
12443
|
+
var __decorateClass$9 = (decorators, target, key, kind) => {
|
|
12444
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$9(target, key) : target;
|
|
12422
12445
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
12423
12446
|
if (decorator = decorators[i])
|
|
12424
12447
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
@@ -12570,41 +12593,41 @@ exports.Ruler = class Ruler extends exports.Control {
|
|
|
12570
12593
|
}
|
|
12571
12594
|
}
|
|
12572
12595
|
};
|
|
12573
|
-
__decorateClass$
|
|
12596
|
+
__decorateClass$9([
|
|
12574
12597
|
modernIdoc.property({ fallback: 0 })
|
|
12575
12598
|
], exports.Ruler.prototype, "offsetX", 2);
|
|
12576
|
-
__decorateClass$
|
|
12599
|
+
__decorateClass$9([
|
|
12577
12600
|
modernIdoc.property({ fallback: 0 })
|
|
12578
12601
|
], exports.Ruler.prototype, "offsetY", 2);
|
|
12579
|
-
__decorateClass$
|
|
12602
|
+
__decorateClass$9([
|
|
12580
12603
|
modernIdoc.property({ fallback: 20 })
|
|
12581
12604
|
], exports.Ruler.prototype, "thickness", 2);
|
|
12582
|
-
__decorateClass$
|
|
12605
|
+
__decorateClass$9([
|
|
12583
12606
|
modernIdoc.property({ fallback: 3 })
|
|
12584
12607
|
], exports.Ruler.prototype, "markHeight", 2);
|
|
12585
|
-
__decorateClass$
|
|
12608
|
+
__decorateClass$9([
|
|
12586
12609
|
modernIdoc.property({ fallback: "#b2b6bc" })
|
|
12587
12610
|
], exports.Ruler.prototype, "color", 2);
|
|
12588
|
-
__decorateClass$
|
|
12611
|
+
__decorateClass$9([
|
|
12589
12612
|
modernIdoc.property({ fallback: "#f9f9fa" })
|
|
12590
12613
|
], exports.Ruler.prototype, "markBackgroundColor", 2);
|
|
12591
|
-
__decorateClass$
|
|
12614
|
+
__decorateClass$9([
|
|
12592
12615
|
modernIdoc.property({ fallback: "#b2b6bc" })
|
|
12593
12616
|
], exports.Ruler.prototype, "markColor", 2);
|
|
12594
|
-
__decorateClass$
|
|
12617
|
+
__decorateClass$9([
|
|
12595
12618
|
modernIdoc.property({ fallback: 300 })
|
|
12596
12619
|
], exports.Ruler.prototype, "gap", 2);
|
|
12597
|
-
__decorateClass$
|
|
12620
|
+
__decorateClass$9([
|
|
12598
12621
|
modernIdoc.property({ fallback: 1 })
|
|
12599
12622
|
], exports.Ruler.prototype, "gapScale", 2);
|
|
12600
|
-
exports.Ruler = __decorateClass$
|
|
12623
|
+
exports.Ruler = __decorateClass$9([
|
|
12601
12624
|
customNode("Ruler")
|
|
12602
12625
|
], exports.Ruler);
|
|
12603
12626
|
|
|
12604
12627
|
var __defProp$5 = Object.defineProperty;
|
|
12605
|
-
var __getOwnPropDesc$
|
|
12606
|
-
var __decorateClass$
|
|
12607
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
12628
|
+
var __getOwnPropDesc$8 = Object.getOwnPropertyDescriptor;
|
|
12629
|
+
var __decorateClass$8 = (decorators, target, key, kind) => {
|
|
12630
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$8(target, key) : target;
|
|
12608
12631
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
12609
12632
|
if (decorator = decorators[i])
|
|
12610
12633
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
@@ -12667,16 +12690,16 @@ exports.ScrollBar = class ScrollBar extends exports.Range {
|
|
|
12667
12690
|
return false;
|
|
12668
12691
|
}
|
|
12669
12692
|
};
|
|
12670
|
-
__decorateClass$
|
|
12693
|
+
__decorateClass$8([
|
|
12671
12694
|
modernIdoc.property({ fallback: "vertical" })
|
|
12672
12695
|
], exports.ScrollBar.prototype, "direction", 2);
|
|
12673
|
-
exports.ScrollBar = __decorateClass$
|
|
12696
|
+
exports.ScrollBar = __decorateClass$8([
|
|
12674
12697
|
customNode("ScrollBar")
|
|
12675
12698
|
], exports.ScrollBar);
|
|
12676
12699
|
|
|
12677
|
-
var __getOwnPropDesc$
|
|
12678
|
-
var __decorateClass$
|
|
12679
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
12700
|
+
var __getOwnPropDesc$7 = Object.getOwnPropertyDescriptor;
|
|
12701
|
+
var __decorateClass$7 = (decorators, target, key, kind) => {
|
|
12702
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$7(target, key) : target;
|
|
12680
12703
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
12681
12704
|
if (decorator = decorators[i])
|
|
12682
12705
|
result = (decorator(result)) || result;
|
|
@@ -12688,15 +12711,15 @@ exports.XScrollBar = class XScrollBar extends exports.ScrollBar {
|
|
|
12688
12711
|
this.setProperties(properties).append(children);
|
|
12689
12712
|
}
|
|
12690
12713
|
};
|
|
12691
|
-
exports.XScrollBar = __decorateClass$
|
|
12714
|
+
exports.XScrollBar = __decorateClass$7([
|
|
12692
12715
|
customNode("XScrollBar", {
|
|
12693
12716
|
direction: "horizontal"
|
|
12694
12717
|
})
|
|
12695
12718
|
], exports.XScrollBar);
|
|
12696
12719
|
|
|
12697
|
-
var __getOwnPropDesc$
|
|
12698
|
-
var __decorateClass$
|
|
12699
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
12720
|
+
var __getOwnPropDesc$6 = Object.getOwnPropertyDescriptor;
|
|
12721
|
+
var __decorateClass$6 = (decorators, target, key, kind) => {
|
|
12722
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$6(target, key) : target;
|
|
12700
12723
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
12701
12724
|
if (decorator = decorators[i])
|
|
12702
12725
|
result = (decorator(result)) || result;
|
|
@@ -12708,16 +12731,16 @@ exports.YScrollBar = class YScrollBar extends exports.ScrollBar {
|
|
|
12708
12731
|
this.setProperties(properties).append(children);
|
|
12709
12732
|
}
|
|
12710
12733
|
};
|
|
12711
|
-
exports.YScrollBar = __decorateClass$
|
|
12734
|
+
exports.YScrollBar = __decorateClass$6([
|
|
12712
12735
|
customNode("YScrollBar", {
|
|
12713
12736
|
direction: "vertical"
|
|
12714
12737
|
})
|
|
12715
12738
|
], exports.YScrollBar);
|
|
12716
12739
|
|
|
12717
12740
|
var __defProp$4 = Object.defineProperty;
|
|
12718
|
-
var __getOwnPropDesc$
|
|
12719
|
-
var __decorateClass$
|
|
12720
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
12741
|
+
var __getOwnPropDesc$5 = Object.getOwnPropertyDescriptor;
|
|
12742
|
+
var __decorateClass$5 = (decorators, target, key, kind) => {
|
|
12743
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$5(target, key) : target;
|
|
12721
12744
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
12722
12745
|
if (decorator = decorators[i])
|
|
12723
12746
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
@@ -12739,21 +12762,22 @@ exports.Scaler = class Scaler extends exports.Node {
|
|
|
12739
12762
|
_updateProperty(key, value, oldValue, declaration) {
|
|
12740
12763
|
super._updateProperty(key, value, oldValue, declaration);
|
|
12741
12764
|
switch (key) {
|
|
12742
|
-
case "
|
|
12765
|
+
case "translateY":
|
|
12766
|
+
case "translateX":
|
|
12767
|
+
case "scale":
|
|
12743
12768
|
case "min":
|
|
12744
12769
|
case "max": {
|
|
12745
|
-
this.
|
|
12746
|
-
this.
|
|
12770
|
+
this.scale = clamp(this.minScale, this.scale, this.maxScale);
|
|
12771
|
+
this._updateTarget();
|
|
12747
12772
|
break;
|
|
12748
12773
|
}
|
|
12749
12774
|
}
|
|
12750
12775
|
}
|
|
12751
|
-
|
|
12776
|
+
_updateTarget() {
|
|
12752
12777
|
const target = this.target;
|
|
12753
12778
|
if (target) {
|
|
12754
|
-
target.style.
|
|
12755
|
-
|
|
12756
|
-
this.emit("updateScale", this.value);
|
|
12779
|
+
target.style.transform = `translate(${this.translateX}px, ${this.translateY}px) scale(${this.scale})`;
|
|
12780
|
+
this.emit("updateScale", this.scale);
|
|
12757
12781
|
}
|
|
12758
12782
|
}
|
|
12759
12783
|
_onWheel(e) {
|
|
@@ -12761,12 +12785,15 @@ exports.Scaler = class Scaler extends exports.Node {
|
|
|
12761
12785
|
if (!target)
|
|
12762
12786
|
return;
|
|
12763
12787
|
e.preventDefault();
|
|
12764
|
-
|
|
12765
|
-
|
|
12766
|
-
|
|
12767
|
-
|
|
12768
|
-
|
|
12769
|
-
|
|
12788
|
+
if (e.ctrlKey) {
|
|
12789
|
+
const isTouchPad = e.wheelDeltaY ? Math.abs(Math.abs(e.wheelDeltaY) - Math.abs(3 * e.deltaY)) < 3 : e.deltaMode === 0;
|
|
12790
|
+
if (!isTouchPad) {
|
|
12791
|
+
e.preventDefault();
|
|
12792
|
+
this.scale += e.deltaY * -0.015;
|
|
12793
|
+
}
|
|
12794
|
+
} else {
|
|
12795
|
+
this.translateX -= e.deltaX;
|
|
12796
|
+
this.translateY -= e.deltaY;
|
|
12770
12797
|
}
|
|
12771
12798
|
}
|
|
12772
12799
|
_input(event, key) {
|
|
@@ -12778,16 +12805,22 @@ exports.Scaler = class Scaler extends exports.Node {
|
|
|
12778
12805
|
}
|
|
12779
12806
|
}
|
|
12780
12807
|
};
|
|
12781
|
-
__decorateClass$
|
|
12808
|
+
__decorateClass$5([
|
|
12809
|
+
modernIdoc.property({ default: 1 })
|
|
12810
|
+
], exports.Scaler.prototype, "translateX", 2);
|
|
12811
|
+
__decorateClass$5([
|
|
12782
12812
|
modernIdoc.property({ default: 1 })
|
|
12783
|
-
], exports.Scaler.prototype, "
|
|
12784
|
-
__decorateClass$
|
|
12813
|
+
], exports.Scaler.prototype, "translateY", 2);
|
|
12814
|
+
__decorateClass$5([
|
|
12815
|
+
modernIdoc.property({ default: 1 })
|
|
12816
|
+
], exports.Scaler.prototype, "scale", 2);
|
|
12817
|
+
__decorateClass$5([
|
|
12785
12818
|
modernIdoc.property({ default: 0.05 })
|
|
12786
|
-
], exports.Scaler.prototype, "
|
|
12787
|
-
__decorateClass$
|
|
12819
|
+
], exports.Scaler.prototype, "minScale", 2);
|
|
12820
|
+
__decorateClass$5([
|
|
12788
12821
|
modernIdoc.property({ default: 10 })
|
|
12789
|
-
], exports.Scaler.prototype, "
|
|
12790
|
-
exports.Scaler = __decorateClass$
|
|
12822
|
+
], exports.Scaler.prototype, "maxScale", 2);
|
|
12823
|
+
exports.Scaler = __decorateClass$5([
|
|
12791
12824
|
customNode("Scaler", {
|
|
12792
12825
|
processMode: "disabled",
|
|
12793
12826
|
renderMode: "disabled"
|
|
@@ -12795,10 +12828,10 @@ exports.Scaler = __decorateClass$4([
|
|
|
12795
12828
|
], exports.Scaler);
|
|
12796
12829
|
|
|
12797
12830
|
var __defProp$3 = Object.defineProperty;
|
|
12798
|
-
var __getOwnPropDesc$
|
|
12831
|
+
var __getOwnPropDesc$4 = Object.getOwnPropertyDescriptor;
|
|
12799
12832
|
var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
12800
|
-
var __decorateClass$
|
|
12801
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
12833
|
+
var __decorateClass$4 = (decorators, target, key, kind) => {
|
|
12834
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$4(target, key) : target;
|
|
12802
12835
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
12803
12836
|
if (decorator = decorators[i])
|
|
12804
12837
|
result = (decorator(result)) || result;
|
|
@@ -12886,15 +12919,15 @@ void main(void) {
|
|
|
12886
12919
|
gl_FragColor = color;
|
|
12887
12920
|
}`
|
|
12888
12921
|
}));
|
|
12889
|
-
exports.KawaseTransition = __decorateClass$
|
|
12922
|
+
exports.KawaseTransition = __decorateClass$4([
|
|
12890
12923
|
customNode("KawaseTransition")
|
|
12891
12924
|
], exports.KawaseTransition);
|
|
12892
12925
|
|
|
12893
12926
|
var __defProp$2 = Object.defineProperty;
|
|
12894
|
-
var __getOwnPropDesc$
|
|
12927
|
+
var __getOwnPropDesc$3 = Object.getOwnPropertyDescriptor;
|
|
12895
12928
|
var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
12896
|
-
var __decorateClass$
|
|
12897
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
12929
|
+
var __decorateClass$3 = (decorators, target, key, kind) => {
|
|
12930
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$3(target, key) : target;
|
|
12898
12931
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
12899
12932
|
if (decorator = decorators[i])
|
|
12900
12933
|
result = (decorator(result)) || result;
|
|
@@ -12939,15 +12972,15 @@ void main() {
|
|
|
12939
12972
|
gl_FragColor = mix(src2Color, src1Color, mixPercent);
|
|
12940
12973
|
}`
|
|
12941
12974
|
}));
|
|
12942
|
-
exports.LeftEraseTransition = __decorateClass$
|
|
12975
|
+
exports.LeftEraseTransition = __decorateClass$3([
|
|
12943
12976
|
customNode("LeftEraseTransition")
|
|
12944
12977
|
], exports.LeftEraseTransition);
|
|
12945
12978
|
|
|
12946
12979
|
var __defProp$1 = Object.defineProperty;
|
|
12947
|
-
var __getOwnPropDesc$
|
|
12980
|
+
var __getOwnPropDesc$2 = Object.getOwnPropertyDescriptor;
|
|
12948
12981
|
var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
12949
|
-
var __decorateClass$
|
|
12950
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
12982
|
+
var __decorateClass$2 = (decorators, target, key, kind) => {
|
|
12983
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$2(target, key) : target;
|
|
12951
12984
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
12952
12985
|
if (decorator = decorators[i])
|
|
12953
12986
|
result = (decorator(result)) || result;
|
|
@@ -13046,15 +13079,15 @@ void main(void) {
|
|
|
13046
13079
|
gl_FragColor = color;
|
|
13047
13080
|
}`
|
|
13048
13081
|
}));
|
|
13049
|
-
exports.TiltShiftTransition = __decorateClass$
|
|
13082
|
+
exports.TiltShiftTransition = __decorateClass$2([
|
|
13050
13083
|
customNode("TiltShiftTransition")
|
|
13051
13084
|
], exports.TiltShiftTransition);
|
|
13052
13085
|
|
|
13053
13086
|
var __defProp = Object.defineProperty;
|
|
13054
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
13087
|
+
var __getOwnPropDesc$1 = Object.getOwnPropertyDescriptor;
|
|
13055
13088
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13056
|
-
var __decorateClass = (decorators, target, key, kind) => {
|
|
13057
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
13089
|
+
var __decorateClass$1 = (decorators, target, key, kind) => {
|
|
13090
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$1(target, key) : target;
|
|
13058
13091
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
13059
13092
|
if (decorator = decorators[i])
|
|
13060
13093
|
result = (decorator(result)) || result;
|
|
@@ -13140,7 +13173,7 @@ void main(void) {
|
|
|
13140
13173
|
gl_FragColor = texture2D(sampler, coord);
|
|
13141
13174
|
}`
|
|
13142
13175
|
}));
|
|
13143
|
-
exports.TwistTransition = __decorateClass([
|
|
13176
|
+
exports.TwistTransition = __decorateClass$1([
|
|
13144
13177
|
customNode("TwistTransition")
|
|
13145
13178
|
], exports.TwistTransition);
|
|
13146
13179
|
|
|
@@ -13504,7 +13537,15 @@ class Assets {
|
|
|
13504
13537
|
}
|
|
13505
13538
|
const assets = new Assets().use(new FontLoader()).use(new GIFLoader()).use(new JSONLoader()).use(new LottieLoader()).use(new TextLoader()).use(new TextureLoader()).use(new VideoLoader());
|
|
13506
13539
|
|
|
13507
|
-
|
|
13540
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
13541
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
13542
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
13543
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
13544
|
+
if (decorator = decorators[i])
|
|
13545
|
+
result = (decorator(result)) || result;
|
|
13546
|
+
return result;
|
|
13547
|
+
};
|
|
13548
|
+
exports.CanvasItemEditor = class CanvasItemEditor extends exports.Control {
|
|
13508
13549
|
_pointerStart;
|
|
13509
13550
|
_pointerOffset;
|
|
13510
13551
|
selected;
|
|
@@ -13530,6 +13571,7 @@ class CanvasItemEditor extends exports.Control {
|
|
|
13530
13571
|
}
|
|
13531
13572
|
});
|
|
13532
13573
|
scaler = new exports.Scaler({
|
|
13574
|
+
name: "Scaler",
|
|
13533
13575
|
internalMode: "back"
|
|
13534
13576
|
}).on("updateScale", (scale) => {
|
|
13535
13577
|
this.ruler.gapScale = scale;
|
|
@@ -13537,12 +13579,14 @@ class CanvasItemEditor extends exports.Control {
|
|
|
13537
13579
|
this._updateSelectionRect();
|
|
13538
13580
|
});
|
|
13539
13581
|
xScrollBar = new exports.XScrollBar({
|
|
13582
|
+
name: "XScrollBar",
|
|
13540
13583
|
internalMode: "back",
|
|
13541
13584
|
style: {
|
|
13542
13585
|
visibility: "hidden"
|
|
13543
13586
|
}
|
|
13544
13587
|
});
|
|
13545
13588
|
yScrollBar = new exports.YScrollBar({
|
|
13589
|
+
name: "yScrollBar",
|
|
13546
13590
|
internalMode: "back",
|
|
13547
13591
|
style: {
|
|
13548
13592
|
visibility: "hidden"
|
|
@@ -13554,9 +13598,9 @@ class CanvasItemEditor extends exports.Control {
|
|
|
13554
13598
|
width: 500,
|
|
13555
13599
|
height: 500,
|
|
13556
13600
|
backgroundColor: "#FFFFFFFF",
|
|
13557
|
-
overflow:
|
|
13558
|
-
pointerEvents: "none"
|
|
13559
|
-
boxShadow:
|
|
13601
|
+
// overflow: 'hidden',
|
|
13602
|
+
pointerEvents: "none"
|
|
13603
|
+
// boxShadow: '2px 2px 2px 1px rgba(0, 0, 0, 0.2)',
|
|
13560
13604
|
}
|
|
13561
13605
|
}, [
|
|
13562
13606
|
this.scaler
|
|
@@ -13611,10 +13655,10 @@ class CanvasItemEditor extends exports.Control {
|
|
|
13611
13655
|
}
|
|
13612
13656
|
_onPointerdown(e) {
|
|
13613
13657
|
let target = e.target;
|
|
13614
|
-
if (target?.
|
|
13658
|
+
if (target?.equal(this)) {
|
|
13615
13659
|
target = void 0;
|
|
13616
13660
|
}
|
|
13617
|
-
if (target?.
|
|
13661
|
+
if (target?.equal(this.transformRect)) {
|
|
13618
13662
|
target = this.selected;
|
|
13619
13663
|
}
|
|
13620
13664
|
this._pointerOffset = { x: e.offsetX, y: e.offsetY };
|
|
@@ -13630,22 +13674,22 @@ class CanvasItemEditor extends exports.Control {
|
|
|
13630
13674
|
}
|
|
13631
13675
|
_onPointermove(e) {
|
|
13632
13676
|
let target = e.target;
|
|
13633
|
-
if (target?.
|
|
13677
|
+
if (target?.equal(this)) {
|
|
13634
13678
|
target = void 0;
|
|
13635
13679
|
}
|
|
13636
|
-
if (target?.
|
|
13680
|
+
if (target?.equal(this.transformRect)) {
|
|
13637
13681
|
target = this.selected;
|
|
13638
13682
|
}
|
|
13639
13683
|
const { selected, dragging, _pointerStart, _pointerOffset } = this;
|
|
13640
|
-
if (selected && target?.
|
|
13684
|
+
if (selected && target?.equal(selected)) {
|
|
13641
13685
|
this.hovered = void 0;
|
|
13642
13686
|
} else {
|
|
13643
13687
|
this.hovered = target;
|
|
13644
13688
|
}
|
|
13645
13689
|
const offset = _pointerOffset ? { x: e.offsetX - _pointerOffset.x, y: e.offsetY - _pointerOffset.y } : { x: 0, y: 0 };
|
|
13646
13690
|
if (dragging && _pointerStart) {
|
|
13647
|
-
dragging.style.left = _pointerStart.left + offset.x / this.scaler.
|
|
13648
|
-
dragging.style.top = _pointerStart.top + offset.y / this.scaler.
|
|
13691
|
+
dragging.style.left = _pointerStart.left + offset.x / this.scaler.scale;
|
|
13692
|
+
dragging.style.top = _pointerStart.top + offset.y / this.scaler.scale;
|
|
13649
13693
|
dragging.update();
|
|
13650
13694
|
}
|
|
13651
13695
|
this._updateHover();
|
|
@@ -13702,7 +13746,10 @@ class CanvasItemEditor extends exports.Control {
|
|
|
13702
13746
|
this.xScrollBar.style.visibility = "hidden";
|
|
13703
13747
|
}
|
|
13704
13748
|
}
|
|
13705
|
-
}
|
|
13749
|
+
};
|
|
13750
|
+
exports.CanvasItemEditor = __decorateClass([
|
|
13751
|
+
customNode("CanvasItemEditor")
|
|
13752
|
+
], exports.CanvasItemEditor);
|
|
13706
13753
|
|
|
13707
13754
|
const defaultOptions = {
|
|
13708
13755
|
alpha: true,
|
|
@@ -13944,7 +13991,6 @@ exports.BaseElement2DShape = BaseElement2DShape;
|
|
|
13944
13991
|
exports.BaseElement2DStyle = BaseElement2DStyle;
|
|
13945
13992
|
exports.BaseElement2DText = BaseElement2DText;
|
|
13946
13993
|
exports.CanvasContext = CanvasContext;
|
|
13947
|
-
exports.CanvasItemEditor = CanvasItemEditor;
|
|
13948
13994
|
exports.CanvasTexture = CanvasTexture;
|
|
13949
13995
|
exports.Color = Color;
|
|
13950
13996
|
exports.ColorMatrix = ColorMatrix;
|