modern-canvas 0.6.7 → 0.6.9
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 +460 -427
- package/dist/index.d.cts +13 -9
- package/dist/index.d.mts +13 -9
- package/dist/index.d.ts +13 -9
- package/dist/index.js +36 -36
- package/dist/index.mjs +460 -426
- 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() {
|
|
@@ -5758,9 +5776,6 @@ exports.Node = class Node extends CoreObject {
|
|
|
5758
5776
|
return false;
|
|
5759
5777
|
}
|
|
5760
5778
|
}
|
|
5761
|
-
_update(changed) {
|
|
5762
|
-
super._update(changed);
|
|
5763
|
-
}
|
|
5764
5779
|
_updateProperty(key, value, oldValue, declaration) {
|
|
5765
5780
|
super._updateProperty(key, value, oldValue, declaration);
|
|
5766
5781
|
}
|
|
@@ -5848,7 +5863,10 @@ exports.Node = class Node extends CoreObject {
|
|
|
5848
5863
|
}
|
|
5849
5864
|
}
|
|
5850
5865
|
input(event, key) {
|
|
5851
|
-
this._children.internal
|
|
5866
|
+
const array = this._children.internal;
|
|
5867
|
+
for (let i = array.length - 1; i >= 0; i--) {
|
|
5868
|
+
array[i].input(event, key);
|
|
5869
|
+
}
|
|
5852
5870
|
this._input(event, key);
|
|
5853
5871
|
}
|
|
5854
5872
|
getIndex() {
|
|
@@ -6052,35 +6070,35 @@ exports.Node = class Node extends CoreObject {
|
|
|
6052
6070
|
return node;
|
|
6053
6071
|
}
|
|
6054
6072
|
};
|
|
6055
|
-
__decorateClass$
|
|
6073
|
+
__decorateClass$R([
|
|
6056
6074
|
modernIdoc.property({ fallback: modernIdoc.idGenerator() })
|
|
6057
6075
|
], exports.Node.prototype, "id", 2);
|
|
6058
|
-
__decorateClass$
|
|
6076
|
+
__decorateClass$R([
|
|
6059
6077
|
modernIdoc.property({ fallback: modernIdoc.idGenerator() })
|
|
6060
6078
|
], exports.Node.prototype, "name", 2);
|
|
6061
|
-
__decorateClass$
|
|
6079
|
+
__decorateClass$R([
|
|
6062
6080
|
modernIdoc.property({ fallback: "inherit" })
|
|
6063
6081
|
], exports.Node.prototype, "processMode", 2);
|
|
6064
|
-
__decorateClass$
|
|
6082
|
+
__decorateClass$R([
|
|
6065
6083
|
modernIdoc.property({ fallback: "default" })
|
|
6066
6084
|
], exports.Node.prototype, "processSortMode", 2);
|
|
6067
|
-
__decorateClass$
|
|
6085
|
+
__decorateClass$R([
|
|
6068
6086
|
modernIdoc.property({ fallback: "inherit" })
|
|
6069
6087
|
], exports.Node.prototype, "renderMode", 2);
|
|
6070
|
-
__decorateClass$
|
|
6088
|
+
__decorateClass$R([
|
|
6071
6089
|
modernIdoc.property({ fallback: "default" })
|
|
6072
6090
|
], exports.Node.prototype, "internalMode", 2);
|
|
6073
|
-
__decorateClass$
|
|
6091
|
+
__decorateClass$R([
|
|
6074
6092
|
modernIdoc.property({ protected: true })
|
|
6075
6093
|
], exports.Node.prototype, "mask", 2);
|
|
6076
|
-
exports.Node = __decorateClass$
|
|
6094
|
+
exports.Node = __decorateClass$R([
|
|
6077
6095
|
customNode("Node")
|
|
6078
6096
|
], exports.Node);
|
|
6079
6097
|
|
|
6080
6098
|
var __defProp$I = Object.defineProperty;
|
|
6081
|
-
var __getOwnPropDesc$
|
|
6082
|
-
var __decorateClass$
|
|
6083
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6099
|
+
var __getOwnPropDesc$H = Object.getOwnPropertyDescriptor;
|
|
6100
|
+
var __decorateClass$Q = (decorators, target, key, kind) => {
|
|
6101
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$H(target, key) : target;
|
|
6084
6102
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6085
6103
|
if (decorator = decorators[i])
|
|
6086
6104
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
@@ -6144,26 +6162,26 @@ exports.TimelineNode = class TimelineNode extends exports.Node {
|
|
|
6144
6162
|
this._updateCurrentTime();
|
|
6145
6163
|
}
|
|
6146
6164
|
};
|
|
6147
|
-
__decorateClass$
|
|
6165
|
+
__decorateClass$Q([
|
|
6148
6166
|
modernIdoc.property({ fallback: 0 })
|
|
6149
6167
|
], exports.TimelineNode.prototype, "delay", 2);
|
|
6150
|
-
__decorateClass$
|
|
6168
|
+
__decorateClass$Q([
|
|
6151
6169
|
modernIdoc.property({ fallback: 0 })
|
|
6152
6170
|
], exports.TimelineNode.prototype, "duration", 2);
|
|
6153
|
-
__decorateClass$
|
|
6171
|
+
__decorateClass$Q([
|
|
6154
6172
|
modernIdoc.property({ fallback: false })
|
|
6155
6173
|
], exports.TimelineNode.prototype, "paused", 2);
|
|
6156
|
-
__decorateClass$
|
|
6174
|
+
__decorateClass$Q([
|
|
6157
6175
|
modernIdoc.property({ protected: true, fallback: false })
|
|
6158
6176
|
], exports.TimelineNode.prototype, "insideTimeRange", 2);
|
|
6159
|
-
exports.TimelineNode = __decorateClass$
|
|
6177
|
+
exports.TimelineNode = __decorateClass$Q([
|
|
6160
6178
|
customNode("TimelineNode")
|
|
6161
6179
|
], exports.TimelineNode);
|
|
6162
6180
|
|
|
6163
6181
|
var __defProp$H = Object.defineProperty;
|
|
6164
|
-
var __getOwnPropDesc$
|
|
6165
|
-
var __decorateClass$
|
|
6166
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6182
|
+
var __getOwnPropDesc$G = Object.getOwnPropertyDescriptor;
|
|
6183
|
+
var __decorateClass$P = (decorators, target, key, kind) => {
|
|
6184
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$G(target, key) : target;
|
|
6167
6185
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6168
6186
|
if (decorator = decorators[i])
|
|
6169
6187
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
@@ -6305,26 +6323,26 @@ exports.Viewport = class Viewport extends exports.Node {
|
|
|
6305
6323
|
return this._projection.toArray(transpose);
|
|
6306
6324
|
}
|
|
6307
6325
|
};
|
|
6308
|
-
__decorateClass$
|
|
6326
|
+
__decorateClass$P([
|
|
6309
6327
|
modernIdoc.property({ fallback: 0 })
|
|
6310
6328
|
], exports.Viewport.prototype, "x", 2);
|
|
6311
|
-
__decorateClass$
|
|
6329
|
+
__decorateClass$P([
|
|
6312
6330
|
modernIdoc.property({ fallback: 0 })
|
|
6313
6331
|
], exports.Viewport.prototype, "y", 2);
|
|
6314
|
-
__decorateClass$
|
|
6332
|
+
__decorateClass$P([
|
|
6315
6333
|
modernIdoc.property({ fallback: 0 })
|
|
6316
6334
|
], exports.Viewport.prototype, "width", 2);
|
|
6317
|
-
__decorateClass$
|
|
6335
|
+
__decorateClass$P([
|
|
6318
6336
|
modernIdoc.property({ fallback: 0 })
|
|
6319
6337
|
], exports.Viewport.prototype, "height", 2);
|
|
6320
|
-
exports.Viewport = __decorateClass$
|
|
6338
|
+
exports.Viewport = __decorateClass$P([
|
|
6321
6339
|
customNode("Viewport")
|
|
6322
6340
|
], exports.Viewport);
|
|
6323
6341
|
|
|
6324
6342
|
var __defProp$G = Object.defineProperty;
|
|
6325
|
-
var __getOwnPropDesc$
|
|
6326
|
-
var __decorateClass$
|
|
6327
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
6343
|
+
var __getOwnPropDesc$F = Object.getOwnPropertyDescriptor;
|
|
6344
|
+
var __decorateClass$O = (decorators, target, key, kind) => {
|
|
6345
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$F(target, key) : target;
|
|
6328
6346
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6329
6347
|
if (decorator = decorators[i])
|
|
6330
6348
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
@@ -6570,27 +6588,27 @@ exports.Effect = class Effect extends exports.TimelineNode {
|
|
|
6570
6588
|
}
|
|
6571
6589
|
}
|
|
6572
6590
|
};
|
|
6573
|
-
__decorateClass$
|
|
6591
|
+
__decorateClass$O([
|
|
6574
6592
|
modernIdoc.property({ protected: true })
|
|
6575
6593
|
], exports.Effect.prototype, "material", 2);
|
|
6576
|
-
__decorateClass$
|
|
6594
|
+
__decorateClass$O([
|
|
6577
6595
|
modernIdoc.property()
|
|
6578
6596
|
], exports.Effect.prototype, "effectMode", 2);
|
|
6579
|
-
__decorateClass$
|
|
6597
|
+
__decorateClass$O([
|
|
6580
6598
|
modernIdoc.property()
|
|
6581
6599
|
], exports.Effect.prototype, "glsl", 2);
|
|
6582
|
-
__decorateClass$
|
|
6600
|
+
__decorateClass$O([
|
|
6583
6601
|
modernIdoc.property()
|
|
6584
6602
|
], exports.Effect.prototype, "glslSrc", 2);
|
|
6585
|
-
exports.Effect = __decorateClass$
|
|
6603
|
+
exports.Effect = __decorateClass$O([
|
|
6586
6604
|
customNode("Effect")
|
|
6587
6605
|
], exports.Effect);
|
|
6588
6606
|
|
|
6589
6607
|
var __defProp$F = Object.defineProperty;
|
|
6590
|
-
var __getOwnPropDesc$
|
|
6608
|
+
var __getOwnPropDesc$E = Object.getOwnPropertyDescriptor;
|
|
6591
6609
|
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$
|
|
6610
|
+
var __decorateClass$N = (decorators, target, key, kind) => {
|
|
6611
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$E(target, key) : target;
|
|
6594
6612
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6595
6613
|
if (decorator = decorators[i])
|
|
6596
6614
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
@@ -6654,39 +6672,39 @@ void main(void) {
|
|
|
6654
6672
|
gl_FragColor = c * alpha;
|
|
6655
6673
|
}`
|
|
6656
6674
|
}));
|
|
6657
|
-
__decorateClass$
|
|
6675
|
+
__decorateClass$N([
|
|
6658
6676
|
modernIdoc.property()
|
|
6659
6677
|
], exports.ColorAdjustEffect.prototype, "saturation", 2);
|
|
6660
|
-
__decorateClass$
|
|
6678
|
+
__decorateClass$N([
|
|
6661
6679
|
modernIdoc.property()
|
|
6662
6680
|
], exports.ColorAdjustEffect.prototype, "contrast", 2);
|
|
6663
|
-
__decorateClass$
|
|
6681
|
+
__decorateClass$N([
|
|
6664
6682
|
modernIdoc.property()
|
|
6665
6683
|
], exports.ColorAdjustEffect.prototype, "brightness", 2);
|
|
6666
|
-
__decorateClass$
|
|
6684
|
+
__decorateClass$N([
|
|
6667
6685
|
modernIdoc.property()
|
|
6668
6686
|
], exports.ColorAdjustEffect.prototype, "red", 2);
|
|
6669
|
-
__decorateClass$
|
|
6687
|
+
__decorateClass$N([
|
|
6670
6688
|
modernIdoc.property()
|
|
6671
6689
|
], exports.ColorAdjustEffect.prototype, "green", 2);
|
|
6672
|
-
__decorateClass$
|
|
6690
|
+
__decorateClass$N([
|
|
6673
6691
|
modernIdoc.property()
|
|
6674
6692
|
], exports.ColorAdjustEffect.prototype, "blue", 2);
|
|
6675
|
-
__decorateClass$
|
|
6693
|
+
__decorateClass$N([
|
|
6676
6694
|
modernIdoc.property()
|
|
6677
6695
|
], exports.ColorAdjustEffect.prototype, "alpha", 2);
|
|
6678
|
-
__decorateClass$
|
|
6696
|
+
__decorateClass$N([
|
|
6679
6697
|
modernIdoc.property()
|
|
6680
6698
|
], exports.ColorAdjustEffect.prototype, "gamma", 2);
|
|
6681
|
-
exports.ColorAdjustEffect = __decorateClass$
|
|
6699
|
+
exports.ColorAdjustEffect = __decorateClass$N([
|
|
6682
6700
|
customNode("ColorAdjustEffect")
|
|
6683
6701
|
], exports.ColorAdjustEffect);
|
|
6684
6702
|
|
|
6685
6703
|
var __defProp$E = Object.defineProperty;
|
|
6686
|
-
var __getOwnPropDesc$
|
|
6704
|
+
var __getOwnPropDesc$D = Object.getOwnPropertyDescriptor;
|
|
6687
6705
|
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$
|
|
6706
|
+
var __decorateClass$M = (decorators, target, key, kind) => {
|
|
6707
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$D(target, key) : target;
|
|
6690
6708
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6691
6709
|
if (decorator = decorators[i])
|
|
6692
6710
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
@@ -6770,18 +6788,18 @@ void main(void) {
|
|
|
6770
6788
|
);
|
|
6771
6789
|
}`
|
|
6772
6790
|
}));
|
|
6773
|
-
__decorateClass$
|
|
6791
|
+
__decorateClass$M([
|
|
6774
6792
|
modernIdoc.property()
|
|
6775
6793
|
], exports.ColorFilterEffect.prototype, "filter", 2);
|
|
6776
|
-
exports.ColorFilterEffect = __decorateClass$
|
|
6794
|
+
exports.ColorFilterEffect = __decorateClass$M([
|
|
6777
6795
|
customNode("ColorFilterEffect")
|
|
6778
6796
|
], exports.ColorFilterEffect);
|
|
6779
6797
|
|
|
6780
6798
|
var __defProp$D = Object.defineProperty;
|
|
6781
|
-
var __getOwnPropDesc$
|
|
6799
|
+
var __getOwnPropDesc$C = Object.getOwnPropertyDescriptor;
|
|
6782
6800
|
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$
|
|
6801
|
+
var __decorateClass$L = (decorators, target, key, kind) => {
|
|
6802
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$C(target, key) : target;
|
|
6785
6803
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6786
6804
|
if (decorator = decorators[i])
|
|
6787
6805
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
@@ -6861,21 +6879,21 @@ void main(void) {
|
|
|
6861
6879
|
gl_FragColor = vec4(mix(color.rgb, mask.rgb, color.a * mask.a), color.a);
|
|
6862
6880
|
}`
|
|
6863
6881
|
}));
|
|
6864
|
-
__decorateClass$
|
|
6882
|
+
__decorateClass$L([
|
|
6865
6883
|
modernIdoc.property()
|
|
6866
6884
|
], exports.ColorOverlayEffect.prototype, "colors", 2);
|
|
6867
|
-
__decorateClass$
|
|
6885
|
+
__decorateClass$L([
|
|
6868
6886
|
modernIdoc.property()
|
|
6869
6887
|
], exports.ColorOverlayEffect.prototype, "alpha", 2);
|
|
6870
|
-
exports.ColorOverlayEffect = __decorateClass$
|
|
6888
|
+
exports.ColorOverlayEffect = __decorateClass$L([
|
|
6871
6889
|
customNode("ColorOverlayEffect")
|
|
6872
6890
|
], exports.ColorOverlayEffect);
|
|
6873
6891
|
|
|
6874
6892
|
var __defProp$C = Object.defineProperty;
|
|
6875
|
-
var __getOwnPropDesc$
|
|
6893
|
+
var __getOwnPropDesc$B = Object.getOwnPropertyDescriptor;
|
|
6876
6894
|
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$
|
|
6895
|
+
var __decorateClass$K = (decorators, target, key, kind) => {
|
|
6896
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$B(target, key) : target;
|
|
6879
6897
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6880
6898
|
if (decorator = decorators[i])
|
|
6881
6899
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
@@ -6946,21 +6964,21 @@ void main(void) {
|
|
|
6946
6964
|
gl_FragColor = color;
|
|
6947
6965
|
}`
|
|
6948
6966
|
}));
|
|
6949
|
-
__decorateClass$
|
|
6967
|
+
__decorateClass$K([
|
|
6950
6968
|
modernIdoc.property()
|
|
6951
6969
|
], exports.ColorRemoveEffect.prototype, "colors", 2);
|
|
6952
|
-
__decorateClass$
|
|
6970
|
+
__decorateClass$K([
|
|
6953
6971
|
modernIdoc.property()
|
|
6954
6972
|
], exports.ColorRemoveEffect.prototype, "epsilon", 2);
|
|
6955
|
-
exports.ColorRemoveEffect = __decorateClass$
|
|
6973
|
+
exports.ColorRemoveEffect = __decorateClass$K([
|
|
6956
6974
|
customNode("ColorRemoveEffect")
|
|
6957
6975
|
], exports.ColorRemoveEffect);
|
|
6958
6976
|
|
|
6959
6977
|
var __defProp$B = Object.defineProperty;
|
|
6960
|
-
var __getOwnPropDesc$
|
|
6978
|
+
var __getOwnPropDesc$A = Object.getOwnPropertyDescriptor;
|
|
6961
6979
|
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$
|
|
6980
|
+
var __decorateClass$J = (decorators, target, key, kind) => {
|
|
6981
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$A(target, key) : target;
|
|
6964
6982
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6965
6983
|
if (decorator = decorators[i])
|
|
6966
6984
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
@@ -7053,13 +7071,13 @@ void main(void) {
|
|
|
7053
7071
|
}
|
|
7054
7072
|
}`
|
|
7055
7073
|
}));
|
|
7056
|
-
__decorateClass$
|
|
7074
|
+
__decorateClass$J([
|
|
7057
7075
|
modernIdoc.property()
|
|
7058
7076
|
], exports.ColorReplaceEffect.prototype, "colors", 2);
|
|
7059
|
-
__decorateClass$
|
|
7077
|
+
__decorateClass$J([
|
|
7060
7078
|
modernIdoc.property()
|
|
7061
7079
|
], exports.ColorReplaceEffect.prototype, "epsilon", 2);
|
|
7062
|
-
exports.ColorReplaceEffect = __decorateClass$
|
|
7080
|
+
exports.ColorReplaceEffect = __decorateClass$J([
|
|
7063
7081
|
customNode("ColorReplaceEffect")
|
|
7064
7082
|
], exports.ColorReplaceEffect);
|
|
7065
7083
|
|
|
@@ -7079,7 +7097,7 @@ class CanvasContext extends modernPath2d.Path2D {
|
|
|
7079
7097
|
if (source instanceof Texture2D) {
|
|
7080
7098
|
return source;
|
|
7081
7099
|
} else {
|
|
7082
|
-
return
|
|
7100
|
+
return ColorTexture.get(source);
|
|
7083
7101
|
}
|
|
7084
7102
|
}
|
|
7085
7103
|
stroke(options) {
|
|
@@ -7215,9 +7233,9 @@ class CanvasContext extends modernPath2d.Path2D {
|
|
|
7215
7233
|
}
|
|
7216
7234
|
|
|
7217
7235
|
var __defProp$A = Object.defineProperty;
|
|
7218
|
-
var __getOwnPropDesc$
|
|
7219
|
-
var __decorateClass$
|
|
7220
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7236
|
+
var __getOwnPropDesc$z = Object.getOwnPropertyDescriptor;
|
|
7237
|
+
var __decorateClass$I = (decorators, target, key, kind) => {
|
|
7238
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$z(target, key) : target;
|
|
7221
7239
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
7222
7240
|
if (decorator = decorators[i])
|
|
7223
7241
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
@@ -7282,15 +7300,12 @@ exports.CanvasItem = class CanvasItem extends exports.TimelineNode {
|
|
|
7282
7300
|
}
|
|
7283
7301
|
requestRedraw() {
|
|
7284
7302
|
this._redrawing = true;
|
|
7285
|
-
this.requestUpdate();
|
|
7286
7303
|
}
|
|
7287
7304
|
requestRelayout() {
|
|
7288
7305
|
this._relayouting = true;
|
|
7289
|
-
this.requestUpdate();
|
|
7290
7306
|
}
|
|
7291
7307
|
requestRepaint() {
|
|
7292
7308
|
this._repainting = true;
|
|
7293
|
-
this.requestUpdate();
|
|
7294
7309
|
}
|
|
7295
7310
|
_updateGlobalVisible() {
|
|
7296
7311
|
this._parentGlobalVisible = this.getParent()?.globalVisible;
|
|
@@ -7308,16 +7323,16 @@ exports.CanvasItem = class CanvasItem extends exports.TimelineNode {
|
|
|
7308
7323
|
this.emit("draw");
|
|
7309
7324
|
}
|
|
7310
7325
|
_redraw() {
|
|
7311
|
-
this.
|
|
7326
|
+
this.log(this.name, "drawing");
|
|
7312
7327
|
this._draw();
|
|
7313
7328
|
return this.context.toBatchables();
|
|
7314
7329
|
}
|
|
7315
7330
|
_relayout(batchables) {
|
|
7316
|
-
this.
|
|
7331
|
+
this.log(this.name, "layouting");
|
|
7317
7332
|
return batchables;
|
|
7318
7333
|
}
|
|
7319
7334
|
_repaint(batchables) {
|
|
7320
|
-
this.
|
|
7335
|
+
this.log(this.name, "painting");
|
|
7321
7336
|
return batchables.map((batchable) => {
|
|
7322
7337
|
return {
|
|
7323
7338
|
...batchable,
|
|
@@ -7329,22 +7344,14 @@ exports.CanvasItem = class CanvasItem extends exports.TimelineNode {
|
|
|
7329
7344
|
_process(delta) {
|
|
7330
7345
|
super._process(delta);
|
|
7331
7346
|
const parent = this.getParent();
|
|
7332
|
-
if (this._parentGlobalVisible !== parent?.globalVisible) {
|
|
7333
|
-
this.requestUpdate();
|
|
7334
|
-
}
|
|
7335
|
-
if (this._parentGlobalOpacity !== parent?.globalOpacity) {
|
|
7336
|
-
this.requestUpdate();
|
|
7337
|
-
}
|
|
7338
|
-
}
|
|
7339
|
-
_update(changed) {
|
|
7340
|
-
super._update(changed);
|
|
7341
|
-
const parent = this.getParent();
|
|
7342
7347
|
if (this._parentGlobalVisible !== parent?.globalVisible) {
|
|
7343
7348
|
this._updateGlobalVisible();
|
|
7344
7349
|
}
|
|
7345
7350
|
if (this._parentGlobalOpacity !== parent?.globalOpacity) {
|
|
7346
7351
|
this._updateGlobalOpacity();
|
|
7347
7352
|
}
|
|
7353
|
+
}
|
|
7354
|
+
_updateBatchables() {
|
|
7348
7355
|
const redrawing = this._redrawing;
|
|
7349
7356
|
let relayouting = this._relayouting;
|
|
7350
7357
|
let repainting = this._repainting;
|
|
@@ -7373,6 +7380,7 @@ exports.CanvasItem = class CanvasItem extends exports.TimelineNode {
|
|
|
7373
7380
|
}
|
|
7374
7381
|
}
|
|
7375
7382
|
_render(renderer) {
|
|
7383
|
+
this._updateBatchables();
|
|
7376
7384
|
this._batchables.forEach((batchable) => {
|
|
7377
7385
|
batchable.texture?.upload(renderer);
|
|
7378
7386
|
renderer.batch2D.render({
|
|
@@ -7383,19 +7391,19 @@ exports.CanvasItem = class CanvasItem extends exports.TimelineNode {
|
|
|
7383
7391
|
super._render(renderer);
|
|
7384
7392
|
}
|
|
7385
7393
|
};
|
|
7386
|
-
__decorateClass$
|
|
7394
|
+
__decorateClass$I([
|
|
7387
7395
|
modernIdoc.property()
|
|
7388
7396
|
], exports.CanvasItem.prototype, "modulate", 2);
|
|
7389
|
-
__decorateClass$
|
|
7397
|
+
__decorateClass$I([
|
|
7390
7398
|
modernIdoc.property()
|
|
7391
7399
|
], exports.CanvasItem.prototype, "blendMode", 2);
|
|
7392
|
-
__decorateClass$
|
|
7400
|
+
__decorateClass$I([
|
|
7393
7401
|
modernIdoc.property({ protected: true, fallback: true })
|
|
7394
7402
|
], exports.CanvasItem.prototype, "visible", 2);
|
|
7395
|
-
__decorateClass$
|
|
7403
|
+
__decorateClass$I([
|
|
7396
7404
|
modernIdoc.property({ protected: true, fallback: 1 })
|
|
7397
7405
|
], exports.CanvasItem.prototype, "opacity", 2);
|
|
7398
|
-
exports.CanvasItem = __decorateClass$
|
|
7406
|
+
exports.CanvasItem = __decorateClass$I([
|
|
7399
7407
|
customNode("CanvasItem")
|
|
7400
7408
|
], exports.CanvasItem);
|
|
7401
7409
|
|
|
@@ -7426,9 +7434,9 @@ class RenderStack {
|
|
|
7426
7434
|
}
|
|
7427
7435
|
|
|
7428
7436
|
var __defProp$z = Object.defineProperty;
|
|
7429
|
-
var __getOwnPropDesc$
|
|
7430
|
-
var __decorateClass$
|
|
7431
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7437
|
+
var __getOwnPropDesc$y = Object.getOwnPropertyDescriptor;
|
|
7438
|
+
var __decorateClass$H = (decorators, target, key, kind) => {
|
|
7439
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$y(target, key) : target;
|
|
7432
7440
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
7433
7441
|
if (decorator = decorators[i])
|
|
7434
7442
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
@@ -7477,24 +7485,24 @@ exports.Timeline = class Timeline extends exports.Node {
|
|
|
7477
7485
|
this.addTime(delta);
|
|
7478
7486
|
}
|
|
7479
7487
|
};
|
|
7480
|
-
__decorateClass$
|
|
7488
|
+
__decorateClass$H([
|
|
7481
7489
|
modernIdoc.property({ fallback: 0 })
|
|
7482
7490
|
], exports.Timeline.prototype, "startTime", 2);
|
|
7483
|
-
__decorateClass$
|
|
7491
|
+
__decorateClass$H([
|
|
7484
7492
|
modernIdoc.property({ fallback: 0 })
|
|
7485
7493
|
], exports.Timeline.prototype, "currentTime", 2);
|
|
7486
|
-
__decorateClass$
|
|
7494
|
+
__decorateClass$H([
|
|
7487
7495
|
modernIdoc.property({ fallback: Number.MAX_SAFE_INTEGER })
|
|
7488
7496
|
], exports.Timeline.prototype, "endTime", 2);
|
|
7489
|
-
__decorateClass$
|
|
7497
|
+
__decorateClass$H([
|
|
7490
7498
|
modernIdoc.property({ fallback: false })
|
|
7491
7499
|
], exports.Timeline.prototype, "loop", 2);
|
|
7492
|
-
exports.Timeline = __decorateClass$
|
|
7500
|
+
exports.Timeline = __decorateClass$H([
|
|
7493
7501
|
customNode("Timeline")
|
|
7494
7502
|
], exports.Timeline);
|
|
7495
7503
|
|
|
7496
7504
|
var __defProp$y = Object.defineProperty;
|
|
7497
|
-
var __decorateClass$
|
|
7505
|
+
var __decorateClass$G = (decorators, target, key, kind) => {
|
|
7498
7506
|
var result = void 0 ;
|
|
7499
7507
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
7500
7508
|
if (decorator = decorators[i])
|
|
@@ -7530,7 +7538,7 @@ class SceneTree extends MainLoop {
|
|
|
7530
7538
|
}
|
|
7531
7539
|
log(...args) {
|
|
7532
7540
|
if (this.debug) {
|
|
7533
|
-
console.log(`[modern-canvas]`, ...args);
|
|
7541
|
+
console.log(`[modern-canvas][${performance.now().toFixed(4)}ms]`, ...args);
|
|
7534
7542
|
}
|
|
7535
7543
|
}
|
|
7536
7544
|
_process(delta = 0) {
|
|
@@ -7573,19 +7581,19 @@ class SceneTree extends MainLoop {
|
|
|
7573
7581
|
this.input.removeEventListeners();
|
|
7574
7582
|
}
|
|
7575
7583
|
}
|
|
7576
|
-
__decorateClass$
|
|
7584
|
+
__decorateClass$G([
|
|
7577
7585
|
modernIdoc.property({ fallback: false })
|
|
7578
7586
|
], SceneTree.prototype, "processPaused");
|
|
7579
|
-
__decorateClass$
|
|
7587
|
+
__decorateClass$G([
|
|
7580
7588
|
modernIdoc.property()
|
|
7581
7589
|
], SceneTree.prototype, "backgroundColor");
|
|
7582
|
-
__decorateClass$
|
|
7590
|
+
__decorateClass$G([
|
|
7583
7591
|
modernIdoc.property({ protected: true, fallback: false })
|
|
7584
7592
|
], SceneTree.prototype, "debug");
|
|
7585
7593
|
|
|
7586
|
-
var __getOwnPropDesc$
|
|
7587
|
-
var __decorateClass$
|
|
7588
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
7594
|
+
var __getOwnPropDesc$x = Object.getOwnPropertyDescriptor;
|
|
7595
|
+
var __decorateClass$F = (decorators, target, key, kind) => {
|
|
7596
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$x(target, key) : target;
|
|
7589
7597
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
7590
7598
|
if (decorator = decorators[i])
|
|
7591
7599
|
result = (decorator(result)) || result;
|
|
@@ -7597,7 +7605,7 @@ exports.Transition = class Transition extends exports.Effect {
|
|
|
7597
7605
|
this.setProperties(properties).append(children);
|
|
7598
7606
|
}
|
|
7599
7607
|
};
|
|
7600
|
-
exports.Transition = __decorateClass$
|
|
7608
|
+
exports.Transition = __decorateClass$F([
|
|
7601
7609
|
customNode("Transition", {
|
|
7602
7610
|
effectMode: "transition",
|
|
7603
7611
|
processMode: "pausable",
|
|
@@ -7606,10 +7614,10 @@ exports.Transition = __decorateClass$E([
|
|
|
7606
7614
|
], exports.Transition);
|
|
7607
7615
|
|
|
7608
7616
|
var __defProp$x = Object.defineProperty;
|
|
7609
|
-
var __getOwnPropDesc$
|
|
7617
|
+
var __getOwnPropDesc$w = Object.getOwnPropertyDescriptor;
|
|
7610
7618
|
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$
|
|
7619
|
+
var __decorateClass$E = (decorators, target, key, kind) => {
|
|
7620
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$w(target, key) : target;
|
|
7613
7621
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
7614
7622
|
if (decorator = decorators[i])
|
|
7615
7623
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
@@ -7719,21 +7727,21 @@ void main(void) {
|
|
|
7719
7727
|
}`,
|
|
7720
7728
|
frag: frag$2
|
|
7721
7729
|
}));
|
|
7722
|
-
__decorateClass$
|
|
7730
|
+
__decorateClass$E([
|
|
7723
7731
|
modernIdoc.property({ default: 4 })
|
|
7724
7732
|
], exports.GaussianBlurEffect.prototype, "strength", 2);
|
|
7725
|
-
__decorateClass$
|
|
7733
|
+
__decorateClass$E([
|
|
7726
7734
|
modernIdoc.property({ default: 3 })
|
|
7727
7735
|
], exports.GaussianBlurEffect.prototype, "quality", 2);
|
|
7728
|
-
exports.GaussianBlurEffect = __decorateClass$
|
|
7736
|
+
exports.GaussianBlurEffect = __decorateClass$E([
|
|
7729
7737
|
customNode("GaussianBlurEffect")
|
|
7730
7738
|
], exports.GaussianBlurEffect);
|
|
7731
7739
|
|
|
7732
7740
|
var __defProp$w = Object.defineProperty;
|
|
7733
|
-
var __getOwnPropDesc$
|
|
7741
|
+
var __getOwnPropDesc$v = Object.getOwnPropertyDescriptor;
|
|
7734
7742
|
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$
|
|
7743
|
+
var __decorateClass$D = (decorators, target, key, kind) => {
|
|
7744
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$v(target, key) : target;
|
|
7737
7745
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
7738
7746
|
if (decorator = decorators[i])
|
|
7739
7747
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
@@ -7801,30 +7809,30 @@ void main(void) {
|
|
|
7801
7809
|
gl_FragColor = sample;
|
|
7802
7810
|
}`
|
|
7803
7811
|
}));
|
|
7804
|
-
__decorateClass$
|
|
7812
|
+
__decorateClass$D([
|
|
7805
7813
|
modernIdoc.property()
|
|
7806
7814
|
], exports.DropShadowEffect.prototype, "color", 2);
|
|
7807
|
-
__decorateClass$
|
|
7815
|
+
__decorateClass$D([
|
|
7808
7816
|
modernIdoc.property()
|
|
7809
7817
|
], exports.DropShadowEffect.prototype, "blur", 2);
|
|
7810
|
-
__decorateClass$
|
|
7818
|
+
__decorateClass$D([
|
|
7811
7819
|
modernIdoc.property()
|
|
7812
7820
|
], exports.DropShadowEffect.prototype, "offsetX", 2);
|
|
7813
|
-
__decorateClass$
|
|
7821
|
+
__decorateClass$D([
|
|
7814
7822
|
modernIdoc.property()
|
|
7815
7823
|
], exports.DropShadowEffect.prototype, "offsetY", 2);
|
|
7816
|
-
__decorateClass$
|
|
7824
|
+
__decorateClass$D([
|
|
7817
7825
|
modernIdoc.property()
|
|
7818
7826
|
], exports.DropShadowEffect.prototype, "shadowOnly", 2);
|
|
7819
|
-
exports.DropShadowEffect = __decorateClass$
|
|
7827
|
+
exports.DropShadowEffect = __decorateClass$D([
|
|
7820
7828
|
customNode("DropShadowEffect")
|
|
7821
7829
|
], exports.DropShadowEffect);
|
|
7822
7830
|
|
|
7823
7831
|
var __defProp$v = Object.defineProperty;
|
|
7824
|
-
var __getOwnPropDesc$
|
|
7832
|
+
var __getOwnPropDesc$u = Object.getOwnPropertyDescriptor;
|
|
7825
7833
|
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$
|
|
7834
|
+
var __decorateClass$C = (decorators, target, key, kind) => {
|
|
7835
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$u(target, key) : target;
|
|
7828
7836
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
7829
7837
|
if (decorator = decorators[i])
|
|
7830
7838
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
@@ -7873,18 +7881,18 @@ void main(void) {
|
|
|
7873
7881
|
gl_FragColor = vec4(color.rgb * alpha, alpha);
|
|
7874
7882
|
}`
|
|
7875
7883
|
}));
|
|
7876
|
-
__decorateClass$
|
|
7884
|
+
__decorateClass$C([
|
|
7877
7885
|
modernIdoc.property()
|
|
7878
7886
|
], exports.EmbossEffect.prototype, "strength", 2);
|
|
7879
|
-
exports.EmbossEffect = __decorateClass$
|
|
7887
|
+
exports.EmbossEffect = __decorateClass$C([
|
|
7880
7888
|
customNode("EmbossEffect")
|
|
7881
7889
|
], exports.EmbossEffect);
|
|
7882
7890
|
|
|
7883
7891
|
var __defProp$u = Object.defineProperty;
|
|
7884
|
-
var __getOwnPropDesc$
|
|
7892
|
+
var __getOwnPropDesc$t = Object.getOwnPropertyDescriptor;
|
|
7885
7893
|
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$
|
|
7894
|
+
var __decorateClass$B = (decorators, target, key, kind) => {
|
|
7895
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$t(target, key) : target;
|
|
7888
7896
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
7889
7897
|
if (decorator = decorators[i])
|
|
7890
7898
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
@@ -8062,42 +8070,42 @@ void main(void) {
|
|
|
8062
8070
|
gl_FragColor.a = texture2D(sampler, coord).a;
|
|
8063
8071
|
}`
|
|
8064
8072
|
}));
|
|
8065
|
-
__decorateClass$
|
|
8073
|
+
__decorateClass$B([
|
|
8066
8074
|
modernIdoc.property()
|
|
8067
8075
|
], exports.GlitchEffect.prototype, "slices", 2);
|
|
8068
|
-
__decorateClass$
|
|
8076
|
+
__decorateClass$B([
|
|
8069
8077
|
modernIdoc.property()
|
|
8070
8078
|
], exports.GlitchEffect.prototype, "sampleSize", 2);
|
|
8071
|
-
__decorateClass$
|
|
8079
|
+
__decorateClass$B([
|
|
8072
8080
|
modernIdoc.property()
|
|
8073
8081
|
], exports.GlitchEffect.prototype, "offset", 2);
|
|
8074
|
-
__decorateClass$
|
|
8082
|
+
__decorateClass$B([
|
|
8075
8083
|
modernIdoc.property()
|
|
8076
8084
|
], exports.GlitchEffect.prototype, "direction", 2);
|
|
8077
|
-
__decorateClass$
|
|
8085
|
+
__decorateClass$B([
|
|
8078
8086
|
modernIdoc.property()
|
|
8079
8087
|
], exports.GlitchEffect.prototype, "fillMode", 2);
|
|
8080
|
-
__decorateClass$
|
|
8088
|
+
__decorateClass$B([
|
|
8081
8089
|
modernIdoc.property()
|
|
8082
8090
|
], exports.GlitchEffect.prototype, "seed", 2);
|
|
8083
|
-
__decorateClass$
|
|
8091
|
+
__decorateClass$B([
|
|
8084
8092
|
modernIdoc.property()
|
|
8085
8093
|
], exports.GlitchEffect.prototype, "red", 2);
|
|
8086
|
-
__decorateClass$
|
|
8094
|
+
__decorateClass$B([
|
|
8087
8095
|
modernIdoc.property()
|
|
8088
8096
|
], exports.GlitchEffect.prototype, "green", 2);
|
|
8089
|
-
__decorateClass$
|
|
8097
|
+
__decorateClass$B([
|
|
8090
8098
|
modernIdoc.property()
|
|
8091
8099
|
], exports.GlitchEffect.prototype, "blue", 2);
|
|
8092
|
-
exports.GlitchEffect = __decorateClass$
|
|
8100
|
+
exports.GlitchEffect = __decorateClass$B([
|
|
8093
8101
|
customNode("GlitchEffect")
|
|
8094
8102
|
], exports.GlitchEffect);
|
|
8095
8103
|
|
|
8096
8104
|
var __defProp$t = Object.defineProperty;
|
|
8097
|
-
var __getOwnPropDesc$
|
|
8105
|
+
var __getOwnPropDesc$s = Object.getOwnPropertyDescriptor;
|
|
8098
8106
|
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$
|
|
8107
|
+
var __decorateClass$A = (decorators, target, key, kind) => {
|
|
8108
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$s(target, key) : target;
|
|
8101
8109
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
8102
8110
|
if (decorator = decorators[i])
|
|
8103
8111
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
@@ -8279,35 +8287,35 @@ void main(void) {
|
|
|
8279
8287
|
gl_FragColor = vec4(color.rgb + mist.rgb, color.a);
|
|
8280
8288
|
}`
|
|
8281
8289
|
}));
|
|
8282
|
-
__decorateClass$
|
|
8290
|
+
__decorateClass$A([
|
|
8283
8291
|
modernIdoc.property()
|
|
8284
8292
|
], exports.GodrayEffect.prototype, "time", 2);
|
|
8285
|
-
__decorateClass$
|
|
8293
|
+
__decorateClass$A([
|
|
8286
8294
|
modernIdoc.property()
|
|
8287
8295
|
], exports.GodrayEffect.prototype, "angle", 2);
|
|
8288
|
-
__decorateClass$
|
|
8296
|
+
__decorateClass$A([
|
|
8289
8297
|
modernIdoc.property()
|
|
8290
8298
|
], exports.GodrayEffect.prototype, "gain", 2);
|
|
8291
|
-
__decorateClass$
|
|
8299
|
+
__decorateClass$A([
|
|
8292
8300
|
modernIdoc.property()
|
|
8293
8301
|
], exports.GodrayEffect.prototype, "lacunarity", 2);
|
|
8294
|
-
__decorateClass$
|
|
8302
|
+
__decorateClass$A([
|
|
8295
8303
|
modernIdoc.property()
|
|
8296
8304
|
], exports.GodrayEffect.prototype, "parallel", 2);
|
|
8297
|
-
__decorateClass$
|
|
8305
|
+
__decorateClass$A([
|
|
8298
8306
|
modernIdoc.property()
|
|
8299
8307
|
], exports.GodrayEffect.prototype, "center", 2);
|
|
8300
|
-
__decorateClass$
|
|
8308
|
+
__decorateClass$A([
|
|
8301
8309
|
modernIdoc.property()
|
|
8302
8310
|
], exports.GodrayEffect.prototype, "alpha", 2);
|
|
8303
|
-
exports.GodrayEffect = __decorateClass$
|
|
8311
|
+
exports.GodrayEffect = __decorateClass$A([
|
|
8304
8312
|
customNode("GodrayEffect")
|
|
8305
8313
|
], exports.GodrayEffect);
|
|
8306
8314
|
|
|
8307
8315
|
var __defProp$s = Object.defineProperty;
|
|
8308
|
-
var __getOwnPropDesc$
|
|
8309
|
-
var __decorateClass$
|
|
8310
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
8316
|
+
var __getOwnPropDesc$r = Object.getOwnPropertyDescriptor;
|
|
8317
|
+
var __decorateClass$z = (decorators, target, key, kind) => {
|
|
8318
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$r(target, key) : target;
|
|
8311
8319
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
8312
8320
|
if (decorator = decorators[i])
|
|
8313
8321
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
@@ -8401,24 +8409,24 @@ void main() {
|
|
|
8401
8409
|
});
|
|
8402
8410
|
}
|
|
8403
8411
|
};
|
|
8404
|
-
__decorateClass$
|
|
8412
|
+
__decorateClass$z([
|
|
8405
8413
|
modernIdoc.property()
|
|
8406
8414
|
], exports.KawaseBlurEffect.prototype, "strength", 2);
|
|
8407
|
-
__decorateClass$
|
|
8415
|
+
__decorateClass$z([
|
|
8408
8416
|
modernIdoc.property()
|
|
8409
8417
|
], exports.KawaseBlurEffect.prototype, "quality", 2);
|
|
8410
|
-
__decorateClass$
|
|
8418
|
+
__decorateClass$z([
|
|
8411
8419
|
modernIdoc.property()
|
|
8412
8420
|
], exports.KawaseBlurEffect.prototype, "pixelSize", 2);
|
|
8413
|
-
exports.KawaseBlurEffect = __decorateClass$
|
|
8421
|
+
exports.KawaseBlurEffect = __decorateClass$z([
|
|
8414
8422
|
customNode("KawaseBlurEffect")
|
|
8415
8423
|
], exports.KawaseBlurEffect);
|
|
8416
8424
|
|
|
8417
8425
|
var __defProp$r = Object.defineProperty;
|
|
8418
|
-
var __getOwnPropDesc$
|
|
8426
|
+
var __getOwnPropDesc$q = Object.getOwnPropertyDescriptor;
|
|
8419
8427
|
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$
|
|
8428
|
+
var __decorateClass$y = (decorators, target, key, kind) => {
|
|
8429
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$q(target, key) : target;
|
|
8422
8430
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
8423
8431
|
if (decorator = decorators[i])
|
|
8424
8432
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
@@ -8510,21 +8518,21 @@ void main(void) {
|
|
|
8510
8518
|
}
|
|
8511
8519
|
}`
|
|
8512
8520
|
}));
|
|
8513
|
-
__decorateClass$
|
|
8521
|
+
__decorateClass$y([
|
|
8514
8522
|
modernIdoc.property({ protected: true })
|
|
8515
8523
|
], exports.MaskEffect.prototype, "texture", 2);
|
|
8516
|
-
__decorateClass$
|
|
8524
|
+
__decorateClass$y([
|
|
8517
8525
|
modernIdoc.property({ default: "" })
|
|
8518
8526
|
], exports.MaskEffect.prototype, "src", 2);
|
|
8519
|
-
exports.MaskEffect = __decorateClass$
|
|
8527
|
+
exports.MaskEffect = __decorateClass$y([
|
|
8520
8528
|
customNode("MaskEffect")
|
|
8521
8529
|
], exports.MaskEffect);
|
|
8522
8530
|
|
|
8523
8531
|
var __defProp$q = Object.defineProperty;
|
|
8524
|
-
var __getOwnPropDesc$
|
|
8532
|
+
var __getOwnPropDesc$p = Object.getOwnPropertyDescriptor;
|
|
8525
8533
|
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$
|
|
8534
|
+
var __decorateClass$x = (decorators, target, key, kind) => {
|
|
8535
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$p(target, key) : target;
|
|
8528
8536
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
8529
8537
|
if (decorator = decorators[i])
|
|
8530
8538
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
@@ -8615,36 +8623,36 @@ void main() {
|
|
|
8615
8623
|
};
|
|
8616
8624
|
__publicField$7(exports.OutlineEffect, "MIN_SAMPLES", 1);
|
|
8617
8625
|
__publicField$7(exports.OutlineEffect, "MAX_SAMPLES", 100);
|
|
8618
|
-
__decorateClass$
|
|
8626
|
+
__decorateClass$x([
|
|
8619
8627
|
modernIdoc.property()
|
|
8620
8628
|
], exports.OutlineEffect.prototype, "color", 2);
|
|
8621
|
-
__decorateClass$
|
|
8629
|
+
__decorateClass$x([
|
|
8622
8630
|
modernIdoc.property()
|
|
8623
8631
|
], exports.OutlineEffect.prototype, "width", 2);
|
|
8624
|
-
__decorateClass$
|
|
8632
|
+
__decorateClass$x([
|
|
8625
8633
|
modernIdoc.property()
|
|
8626
8634
|
], exports.OutlineEffect.prototype, "style", 2);
|
|
8627
|
-
__decorateClass$
|
|
8635
|
+
__decorateClass$x([
|
|
8628
8636
|
modernIdoc.property()
|
|
8629
8637
|
], exports.OutlineEffect.prototype, "image", 2);
|
|
8630
|
-
__decorateClass$
|
|
8638
|
+
__decorateClass$x([
|
|
8631
8639
|
modernIdoc.property()
|
|
8632
8640
|
], exports.OutlineEffect.prototype, "opacity", 2);
|
|
8633
|
-
__decorateClass$
|
|
8641
|
+
__decorateClass$x([
|
|
8634
8642
|
modernIdoc.property()
|
|
8635
8643
|
], exports.OutlineEffect.prototype, "quality", 2);
|
|
8636
|
-
__decorateClass$
|
|
8644
|
+
__decorateClass$x([
|
|
8637
8645
|
modernIdoc.property()
|
|
8638
8646
|
], exports.OutlineEffect.prototype, "knockout", 2);
|
|
8639
|
-
exports.OutlineEffect = __decorateClass$
|
|
8647
|
+
exports.OutlineEffect = __decorateClass$x([
|
|
8640
8648
|
customNode("OutlineEffect")
|
|
8641
8649
|
], exports.OutlineEffect);
|
|
8642
8650
|
|
|
8643
8651
|
var __defProp$p = Object.defineProperty;
|
|
8644
|
-
var __getOwnPropDesc$
|
|
8652
|
+
var __getOwnPropDesc$o = Object.getOwnPropertyDescriptor;
|
|
8645
8653
|
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$
|
|
8654
|
+
var __decorateClass$w = (decorators, target, key, kind) => {
|
|
8655
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$o(target, key) : target;
|
|
8648
8656
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
8649
8657
|
if (decorator = decorators[i])
|
|
8650
8658
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
@@ -8704,18 +8712,18 @@ void main(void) {
|
|
|
8704
8712
|
gl_FragColor = texture2D(sampler, coord);
|
|
8705
8713
|
}`
|
|
8706
8714
|
}));
|
|
8707
|
-
__decorateClass$
|
|
8715
|
+
__decorateClass$w([
|
|
8708
8716
|
modernIdoc.property()
|
|
8709
8717
|
], exports.PixelateEffect.prototype, "strength", 2);
|
|
8710
|
-
exports.PixelateEffect = __decorateClass$
|
|
8718
|
+
exports.PixelateEffect = __decorateClass$w([
|
|
8711
8719
|
customNode("PixelateEffect")
|
|
8712
8720
|
], exports.PixelateEffect);
|
|
8713
8721
|
|
|
8714
8722
|
var __defProp$o = Object.defineProperty;
|
|
8715
|
-
var __getOwnPropDesc$
|
|
8723
|
+
var __getOwnPropDesc$n = Object.getOwnPropertyDescriptor;
|
|
8716
8724
|
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$
|
|
8725
|
+
var __decorateClass$v = (decorators, target, key, kind) => {
|
|
8726
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$n(target, key) : target;
|
|
8719
8727
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
8720
8728
|
if (decorator = decorators[i])
|
|
8721
8729
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
@@ -8832,24 +8840,24 @@ void main() {
|
|
|
8832
8840
|
gl_FragColor = color;
|
|
8833
8841
|
}`
|
|
8834
8842
|
}));
|
|
8835
|
-
__decorateClass$
|
|
8843
|
+
__decorateClass$v([
|
|
8836
8844
|
modernIdoc.property()
|
|
8837
8845
|
], exports.ZoomBlurEffect.prototype, "center", 2);
|
|
8838
|
-
__decorateClass$
|
|
8846
|
+
__decorateClass$v([
|
|
8839
8847
|
modernIdoc.property()
|
|
8840
8848
|
], exports.ZoomBlurEffect.prototype, "innerRadius", 2);
|
|
8841
|
-
__decorateClass$
|
|
8849
|
+
__decorateClass$v([
|
|
8842
8850
|
modernIdoc.property()
|
|
8843
8851
|
], exports.ZoomBlurEffect.prototype, "radius", 2);
|
|
8844
|
-
__decorateClass$
|
|
8852
|
+
__decorateClass$v([
|
|
8845
8853
|
modernIdoc.property()
|
|
8846
8854
|
], exports.ZoomBlurEffect.prototype, "strength", 2);
|
|
8847
|
-
exports.ZoomBlurEffect = __decorateClass$
|
|
8855
|
+
exports.ZoomBlurEffect = __decorateClass$v([
|
|
8848
8856
|
customNode("ZoomBlurEffect")
|
|
8849
8857
|
], exports.ZoomBlurEffect);
|
|
8850
8858
|
|
|
8851
8859
|
var __defProp$n = Object.defineProperty;
|
|
8852
|
-
var __decorateClass$
|
|
8860
|
+
var __decorateClass$u = (decorators, target, key, kind) => {
|
|
8853
8861
|
var result = void 0 ;
|
|
8854
8862
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
8855
8863
|
if (decorator = decorators[i])
|
|
@@ -8962,42 +8970,42 @@ class BaseElement2DFill extends CoreObject {
|
|
|
8962
8970
|
});
|
|
8963
8971
|
}
|
|
8964
8972
|
}
|
|
8965
|
-
__decorateClass$
|
|
8973
|
+
__decorateClass$u([
|
|
8966
8974
|
modernIdoc.property({ fallback: true })
|
|
8967
8975
|
], BaseElement2DFill.prototype, "enabled");
|
|
8968
|
-
__decorateClass$
|
|
8976
|
+
__decorateClass$u([
|
|
8969
8977
|
modernIdoc.property()
|
|
8970
8978
|
], BaseElement2DFill.prototype, "color");
|
|
8971
|
-
__decorateClass$
|
|
8979
|
+
__decorateClass$u([
|
|
8972
8980
|
modernIdoc.property()
|
|
8973
8981
|
], BaseElement2DFill.prototype, "image");
|
|
8974
|
-
__decorateClass$
|
|
8982
|
+
__decorateClass$u([
|
|
8975
8983
|
modernIdoc.property()
|
|
8976
8984
|
], BaseElement2DFill.prototype, "linearGradient");
|
|
8977
|
-
__decorateClass$
|
|
8985
|
+
__decorateClass$u([
|
|
8978
8986
|
modernIdoc.property()
|
|
8979
8987
|
], BaseElement2DFill.prototype, "radialGradient");
|
|
8980
|
-
__decorateClass$
|
|
8988
|
+
__decorateClass$u([
|
|
8981
8989
|
modernIdoc.property()
|
|
8982
8990
|
], BaseElement2DFill.prototype, "cropRect");
|
|
8983
|
-
__decorateClass$
|
|
8991
|
+
__decorateClass$u([
|
|
8984
8992
|
modernIdoc.property()
|
|
8985
8993
|
], BaseElement2DFill.prototype, "stretchRect");
|
|
8986
|
-
__decorateClass$
|
|
8994
|
+
__decorateClass$u([
|
|
8987
8995
|
modernIdoc.property()
|
|
8988
8996
|
], BaseElement2DFill.prototype, "dpi");
|
|
8989
|
-
__decorateClass$
|
|
8997
|
+
__decorateClass$u([
|
|
8990
8998
|
modernIdoc.property()
|
|
8991
8999
|
], BaseElement2DFill.prototype, "rotateWithShape");
|
|
8992
|
-
__decorateClass$
|
|
9000
|
+
__decorateClass$u([
|
|
8993
9001
|
modernIdoc.property()
|
|
8994
9002
|
], BaseElement2DFill.prototype, "tile");
|
|
8995
|
-
__decorateClass$
|
|
9003
|
+
__decorateClass$u([
|
|
8996
9004
|
modernIdoc.property()
|
|
8997
9005
|
], BaseElement2DFill.prototype, "opacity");
|
|
8998
9006
|
|
|
8999
9007
|
var __defProp$m = Object.defineProperty;
|
|
9000
|
-
var __decorateClass$
|
|
9008
|
+
var __decorateClass$t = (decorators, target, key, kind) => {
|
|
9001
9009
|
var result = void 0 ;
|
|
9002
9010
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
9003
9011
|
if (decorator = decorators[i])
|
|
@@ -9012,12 +9020,12 @@ class BaseElement2DBackground extends BaseElement2DFill {
|
|
|
9012
9020
|
);
|
|
9013
9021
|
}
|
|
9014
9022
|
}
|
|
9015
|
-
__decorateClass$
|
|
9023
|
+
__decorateClass$t([
|
|
9016
9024
|
modernIdoc.property()
|
|
9017
9025
|
], BaseElement2DBackground.prototype, "fillWithShape");
|
|
9018
9026
|
|
|
9019
9027
|
var __defProp$l = Object.defineProperty;
|
|
9020
|
-
var __decorateClass$
|
|
9028
|
+
var __decorateClass$s = (decorators, target, key, kind) => {
|
|
9021
9029
|
var result = void 0 ;
|
|
9022
9030
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
9023
9031
|
if (decorator = decorators[i])
|
|
@@ -9032,12 +9040,12 @@ class BaseElement2DForeground extends BaseElement2DFill {
|
|
|
9032
9040
|
);
|
|
9033
9041
|
}
|
|
9034
9042
|
}
|
|
9035
|
-
__decorateClass$
|
|
9043
|
+
__decorateClass$s([
|
|
9036
9044
|
modernIdoc.property()
|
|
9037
9045
|
], BaseElement2DForeground.prototype, "fillWithShape");
|
|
9038
9046
|
|
|
9039
9047
|
var __defProp$k = Object.defineProperty;
|
|
9040
|
-
var __decorateClass$
|
|
9048
|
+
var __decorateClass$r = (decorators, target, key, kind) => {
|
|
9041
9049
|
var result = void 0 ;
|
|
9042
9050
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
9043
9051
|
if (decorator = decorators[i])
|
|
@@ -9075,18 +9083,18 @@ class BaseElement2DOutline extends BaseElement2DFill {
|
|
|
9075
9083
|
ctx.stroke({ disableWrapMode });
|
|
9076
9084
|
}
|
|
9077
9085
|
}
|
|
9078
|
-
__decorateClass$
|
|
9086
|
+
__decorateClass$r([
|
|
9079
9087
|
modernIdoc.property({ fallback: "#00000000" })
|
|
9080
9088
|
], BaseElement2DOutline.prototype, "color");
|
|
9081
|
-
__decorateClass$
|
|
9089
|
+
__decorateClass$r([
|
|
9082
9090
|
modernIdoc.property({ fallback: 0 })
|
|
9083
9091
|
], BaseElement2DOutline.prototype, "width");
|
|
9084
|
-
__decorateClass$
|
|
9092
|
+
__decorateClass$r([
|
|
9085
9093
|
modernIdoc.property({ fallback: "solid" })
|
|
9086
9094
|
], BaseElement2DOutline.prototype, "style");
|
|
9087
9095
|
|
|
9088
9096
|
var __defProp$j = Object.defineProperty;
|
|
9089
|
-
var __decorateClass$
|
|
9097
|
+
var __decorateClass$q = (decorators, target, key, kind) => {
|
|
9090
9098
|
var result = void 0 ;
|
|
9091
9099
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
9092
9100
|
if (decorator = decorators[i])
|
|
@@ -9131,24 +9139,24 @@ class BaseElement2DShadow extends CoreObject {
|
|
|
9131
9139
|
}
|
|
9132
9140
|
}
|
|
9133
9141
|
}
|
|
9134
|
-
__decorateClass$
|
|
9142
|
+
__decorateClass$q([
|
|
9135
9143
|
modernIdoc.property({ fallback: true })
|
|
9136
9144
|
], BaseElement2DShadow.prototype, "enabled");
|
|
9137
|
-
__decorateClass$
|
|
9145
|
+
__decorateClass$q([
|
|
9138
9146
|
modernIdoc.property({ fallback: "#000000FF" })
|
|
9139
9147
|
], BaseElement2DShadow.prototype, "color");
|
|
9140
|
-
__decorateClass$
|
|
9148
|
+
__decorateClass$q([
|
|
9141
9149
|
modernIdoc.property({ fallback: 0 })
|
|
9142
9150
|
], BaseElement2DShadow.prototype, "blur");
|
|
9143
|
-
__decorateClass$
|
|
9151
|
+
__decorateClass$q([
|
|
9144
9152
|
modernIdoc.property({ fallback: 0 })
|
|
9145
9153
|
], BaseElement2DShadow.prototype, "offsetY");
|
|
9146
|
-
__decorateClass$
|
|
9154
|
+
__decorateClass$q([
|
|
9147
9155
|
modernIdoc.property({ fallback: 0 })
|
|
9148
9156
|
], BaseElement2DShadow.prototype, "offsetX");
|
|
9149
9157
|
|
|
9150
9158
|
var __defProp$i = Object.defineProperty;
|
|
9151
|
-
var __decorateClass$
|
|
9159
|
+
var __decorateClass$p = (decorators, target, key, kind) => {
|
|
9152
9160
|
var result = void 0 ;
|
|
9153
9161
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
9154
9162
|
if (decorator = decorators[i])
|
|
@@ -9228,19 +9236,19 @@ class BaseElement2DShape extends CoreObject {
|
|
|
9228
9236
|
}
|
|
9229
9237
|
}
|
|
9230
9238
|
}
|
|
9231
|
-
__decorateClass$
|
|
9239
|
+
__decorateClass$p([
|
|
9232
9240
|
modernIdoc.property({ fallback: true })
|
|
9233
9241
|
], BaseElement2DShape.prototype, "enabled");
|
|
9234
|
-
__decorateClass$
|
|
9242
|
+
__decorateClass$p([
|
|
9235
9243
|
modernIdoc.property()
|
|
9236
9244
|
], BaseElement2DShape.prototype, "preset");
|
|
9237
|
-
__decorateClass$
|
|
9245
|
+
__decorateClass$p([
|
|
9238
9246
|
modernIdoc.property()
|
|
9239
9247
|
], BaseElement2DShape.prototype, "svg");
|
|
9240
|
-
__decorateClass$
|
|
9248
|
+
__decorateClass$p([
|
|
9241
9249
|
modernIdoc.property()
|
|
9242
9250
|
], BaseElement2DShape.prototype, "viewBox");
|
|
9243
|
-
__decorateClass$
|
|
9251
|
+
__decorateClass$p([
|
|
9244
9252
|
modernIdoc.property()
|
|
9245
9253
|
], BaseElement2DShape.prototype, "paths");
|
|
9246
9254
|
|
|
@@ -9257,7 +9265,7 @@ for (const key in defaultStyles$1) {
|
|
|
9257
9265
|
}
|
|
9258
9266
|
|
|
9259
9267
|
var __defProp$h = Object.defineProperty;
|
|
9260
|
-
var __decorateClass$
|
|
9268
|
+
var __decorateClass$o = (decorators, target, key, kind) => {
|
|
9261
9269
|
var result = void 0 ;
|
|
9262
9270
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
9263
9271
|
if (decorator = decorators[i])
|
|
@@ -9337,26 +9345,26 @@ class BaseElement2DText extends CoreObject {
|
|
|
9337
9345
|
});
|
|
9338
9346
|
}
|
|
9339
9347
|
}
|
|
9340
|
-
__decorateClass$
|
|
9348
|
+
__decorateClass$o([
|
|
9341
9349
|
modernIdoc.property({ fallback: true })
|
|
9342
9350
|
], BaseElement2DText.prototype, "enabled");
|
|
9343
|
-
__decorateClass$
|
|
9351
|
+
__decorateClass$o([
|
|
9344
9352
|
modernIdoc.property({ alias: "base.content", fallback: () => [] })
|
|
9345
9353
|
], BaseElement2DText.prototype, "content");
|
|
9346
|
-
__decorateClass$
|
|
9354
|
+
__decorateClass$o([
|
|
9347
9355
|
modernIdoc.property({ alias: "base.effects" })
|
|
9348
9356
|
], BaseElement2DText.prototype, "effects");
|
|
9349
|
-
__decorateClass$
|
|
9357
|
+
__decorateClass$o([
|
|
9350
9358
|
modernIdoc.property({ protected: true, alias: "base.measureDOM" })
|
|
9351
9359
|
], BaseElement2DText.prototype, "measureDOM");
|
|
9352
|
-
__decorateClass$
|
|
9360
|
+
__decorateClass$o([
|
|
9353
9361
|
modernIdoc.property({ protected: true, alias: "base.fonts" })
|
|
9354
9362
|
], BaseElement2DText.prototype, "fonts");
|
|
9355
9363
|
|
|
9356
9364
|
var __defProp$g = Object.defineProperty;
|
|
9357
|
-
var __getOwnPropDesc$
|
|
9358
|
-
var __decorateClass$
|
|
9359
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
9365
|
+
var __getOwnPropDesc$m = Object.getOwnPropertyDescriptor;
|
|
9366
|
+
var __decorateClass$n = (decorators, target, key, kind) => {
|
|
9367
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$m(target, key) : target;
|
|
9360
9368
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
9361
9369
|
if (decorator = decorators[i])
|
|
9362
9370
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
@@ -9446,8 +9454,9 @@ exports.Node2D = class Node2D extends exports.CanvasItem {
|
|
|
9446
9454
|
return newVertices;
|
|
9447
9455
|
}
|
|
9448
9456
|
_relayout(batchables) {
|
|
9457
|
+
batchables = super._relayout(batchables);
|
|
9449
9458
|
this.updateGlobalTransform();
|
|
9450
|
-
return
|
|
9459
|
+
return batchables.map((batchable) => {
|
|
9451
9460
|
return {
|
|
9452
9461
|
...batchable,
|
|
9453
9462
|
vertices: this._transformVertices(batchable.vertices, batchable.vertTransform)
|
|
@@ -9462,19 +9471,19 @@ exports.Node2D = class Node2D extends exports.CanvasItem {
|
|
|
9462
9471
|
}
|
|
9463
9472
|
}
|
|
9464
9473
|
};
|
|
9465
|
-
__decorateClass$
|
|
9474
|
+
__decorateClass$n([
|
|
9466
9475
|
modernIdoc.property({ protected: true, fallback: 0 })
|
|
9467
9476
|
], exports.Node2D.prototype, "rotation", 2);
|
|
9468
|
-
__decorateClass$
|
|
9477
|
+
__decorateClass$n([
|
|
9469
9478
|
modernIdoc.property({ protected: true, fallback: 0 })
|
|
9470
9479
|
], exports.Node2D.prototype, "globalRotation", 2);
|
|
9471
|
-
exports.Node2D = __decorateClass$
|
|
9480
|
+
exports.Node2D = __decorateClass$n([
|
|
9472
9481
|
customNode("Node2D")
|
|
9473
9482
|
], exports.Node2D);
|
|
9474
9483
|
|
|
9475
|
-
var __getOwnPropDesc$
|
|
9476
|
-
var __decorateClass$
|
|
9477
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
9484
|
+
var __getOwnPropDesc$l = Object.getOwnPropertyDescriptor;
|
|
9485
|
+
var __decorateClass$m = (decorators, target, key, kind) => {
|
|
9486
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$l(target, key) : target;
|
|
9478
9487
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
9479
9488
|
if (decorator = decorators[i])
|
|
9480
9489
|
result = (decorator(result)) || result;
|
|
@@ -9758,8 +9767,9 @@ exports.BaseElement2D = class BaseElement2D extends exports.Node2D {
|
|
|
9758
9767
|
return this.style.pointerEvents !== "none";
|
|
9759
9768
|
}
|
|
9760
9769
|
input(event, key) {
|
|
9761
|
-
|
|
9762
|
-
|
|
9770
|
+
const array = this._children.internal;
|
|
9771
|
+
for (let i = array.length - 1; i >= 0; i--) {
|
|
9772
|
+
array[i].input(event, key);
|
|
9763
9773
|
}
|
|
9764
9774
|
if (this.isVisibleInTree()) {
|
|
9765
9775
|
this._input(event, key);
|
|
@@ -9808,7 +9818,7 @@ exports.BaseElement2D = class BaseElement2D extends exports.Node2D {
|
|
|
9808
9818
|
});
|
|
9809
9819
|
}
|
|
9810
9820
|
};
|
|
9811
|
-
exports.BaseElement2D = __decorateClass$
|
|
9821
|
+
exports.BaseElement2D = __decorateClass$m([
|
|
9812
9822
|
customNode("BaseElement2D")
|
|
9813
9823
|
], exports.BaseElement2D);
|
|
9814
9824
|
|
|
@@ -9828,9 +9838,9 @@ for (const key in defaultStyles) {
|
|
|
9828
9838
|
modernIdoc.defineProperty(Element2DStyle, key, { fallback: defaultStyles[key] });
|
|
9829
9839
|
}
|
|
9830
9840
|
|
|
9831
|
-
var __getOwnPropDesc$
|
|
9832
|
-
var __decorateClass$
|
|
9833
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
9841
|
+
var __getOwnPropDesc$k = Object.getOwnPropertyDescriptor;
|
|
9842
|
+
var __decorateClass$l = (decorators, target, key, kind) => {
|
|
9843
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$k(target, key) : target;
|
|
9834
9844
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
9835
9845
|
if (decorator = decorators[i])
|
|
9836
9846
|
result = (decorator(result)) || result;
|
|
@@ -9881,7 +9891,7 @@ exports.Element2D = class Element2D extends exports.BaseElement2D {
|
|
|
9881
9891
|
}
|
|
9882
9892
|
}
|
|
9883
9893
|
};
|
|
9884
|
-
exports.Element2D = __decorateClass$
|
|
9894
|
+
exports.Element2D = __decorateClass$l([
|
|
9885
9895
|
customNode("Element2D")
|
|
9886
9896
|
], exports.Element2D);
|
|
9887
9897
|
|
|
@@ -10133,9 +10143,9 @@ class FlexLayout {
|
|
|
10133
10143
|
}
|
|
10134
10144
|
}
|
|
10135
10145
|
|
|
10136
|
-
var __getOwnPropDesc$
|
|
10137
|
-
var __decorateClass$
|
|
10138
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
10146
|
+
var __getOwnPropDesc$j = Object.getOwnPropertyDescriptor;
|
|
10147
|
+
var __decorateClass$k = (decorators, target, key, kind) => {
|
|
10148
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$j(target, key) : target;
|
|
10139
10149
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
10140
10150
|
if (decorator = decorators[i])
|
|
10141
10151
|
result = (decorator(result)) || result;
|
|
@@ -10212,14 +10222,14 @@ exports.FlexElement2D = class FlexElement2D extends exports.BaseElement2D {
|
|
|
10212
10222
|
}
|
|
10213
10223
|
}
|
|
10214
10224
|
};
|
|
10215
|
-
exports.FlexElement2D = __decorateClass$
|
|
10225
|
+
exports.FlexElement2D = __decorateClass$k([
|
|
10216
10226
|
customNode("FlexElement2D")
|
|
10217
10227
|
], exports.FlexElement2D);
|
|
10218
10228
|
|
|
10219
10229
|
var __defProp$f = Object.defineProperty;
|
|
10220
|
-
var __getOwnPropDesc$
|
|
10221
|
-
var __decorateClass$
|
|
10222
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
10230
|
+
var __getOwnPropDesc$i = Object.getOwnPropertyDescriptor;
|
|
10231
|
+
var __decorateClass$j = (decorators, target, key, kind) => {
|
|
10232
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$i(target, key) : target;
|
|
10223
10233
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
10224
10234
|
if (decorator = decorators[i])
|
|
10225
10235
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
@@ -10359,19 +10369,19 @@ exports.Image2D = class Image2D extends exports.Element2D {
|
|
|
10359
10369
|
});
|
|
10360
10370
|
}
|
|
10361
10371
|
};
|
|
10362
|
-
__decorateClass$
|
|
10372
|
+
__decorateClass$j([
|
|
10363
10373
|
modernIdoc.property({ protected: true })
|
|
10364
10374
|
], exports.Image2D.prototype, "texture", 2);
|
|
10365
|
-
__decorateClass$
|
|
10375
|
+
__decorateClass$j([
|
|
10366
10376
|
modernIdoc.property({ fallback: "" })
|
|
10367
10377
|
], exports.Image2D.prototype, "src", 2);
|
|
10368
|
-
__decorateClass$
|
|
10378
|
+
__decorateClass$j([
|
|
10369
10379
|
modernIdoc.property()
|
|
10370
10380
|
], exports.Image2D.prototype, "srcRect", 2);
|
|
10371
|
-
__decorateClass$
|
|
10381
|
+
__decorateClass$j([
|
|
10372
10382
|
modernIdoc.property({ fallback: false })
|
|
10373
10383
|
], exports.Image2D.prototype, "gif", 2);
|
|
10374
|
-
exports.Image2D = __decorateClass$
|
|
10384
|
+
exports.Image2D = __decorateClass$j([
|
|
10375
10385
|
customNode("Image2D")
|
|
10376
10386
|
], exports.Image2D);
|
|
10377
10387
|
|
|
@@ -10396,9 +10406,9 @@ class TextureRect2D extends exports.Element2D {
|
|
|
10396
10406
|
}
|
|
10397
10407
|
|
|
10398
10408
|
var __defProp$e = Object.defineProperty;
|
|
10399
|
-
var __getOwnPropDesc$
|
|
10400
|
-
var __decorateClass$
|
|
10401
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
10409
|
+
var __getOwnPropDesc$h = Object.getOwnPropertyDescriptor;
|
|
10410
|
+
var __decorateClass$i = (decorators, target, key, kind) => {
|
|
10411
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$h(target, key) : target;
|
|
10402
10412
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
10403
10413
|
if (decorator = decorators[i])
|
|
10404
10414
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
@@ -10445,17 +10455,17 @@ exports.Lottie2D = class Lottie2D extends TextureRect2D {
|
|
|
10445
10455
|
super._process(delta);
|
|
10446
10456
|
}
|
|
10447
10457
|
};
|
|
10448
|
-
__decorateClass$
|
|
10458
|
+
__decorateClass$i([
|
|
10449
10459
|
modernIdoc.property({ fallback: "" })
|
|
10450
10460
|
], exports.Lottie2D.prototype, "src", 2);
|
|
10451
|
-
exports.Lottie2D = __decorateClass$
|
|
10461
|
+
exports.Lottie2D = __decorateClass$i([
|
|
10452
10462
|
customNode("Lottie2D")
|
|
10453
10463
|
], exports.Lottie2D);
|
|
10454
10464
|
|
|
10455
10465
|
var __defProp$d = Object.defineProperty;
|
|
10456
|
-
var __getOwnPropDesc$
|
|
10457
|
-
var __decorateClass$
|
|
10458
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
10466
|
+
var __getOwnPropDesc$g = Object.getOwnPropertyDescriptor;
|
|
10467
|
+
var __decorateClass$h = (decorators, target, key, kind) => {
|
|
10468
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$g(target, key) : target;
|
|
10459
10469
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
10460
10470
|
if (decorator = decorators[i])
|
|
10461
10471
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
@@ -10609,27 +10619,27 @@ exports.Text2D = class Text2D extends TextureRect2D {
|
|
|
10609
10619
|
}
|
|
10610
10620
|
}
|
|
10611
10621
|
};
|
|
10612
|
-
__decorateClass$
|
|
10622
|
+
__decorateClass$h([
|
|
10613
10623
|
modernIdoc.property({ fallback: false })
|
|
10614
10624
|
], exports.Text2D.prototype, "split", 2);
|
|
10615
|
-
__decorateClass$
|
|
10625
|
+
__decorateClass$h([
|
|
10616
10626
|
modernIdoc.property({ alias: "base.content" })
|
|
10617
10627
|
], exports.Text2D.prototype, "content", 2);
|
|
10618
|
-
__decorateClass$
|
|
10628
|
+
__decorateClass$h([
|
|
10619
10629
|
modernIdoc.property({ alias: "base.effects" })
|
|
10620
10630
|
], exports.Text2D.prototype, "effects", 2);
|
|
10621
|
-
__decorateClass$
|
|
10631
|
+
__decorateClass$h([
|
|
10622
10632
|
modernIdoc.property({ protected: true, alias: "base.measureDOM" })
|
|
10623
10633
|
], exports.Text2D.prototype, "measureDOM", 2);
|
|
10624
|
-
__decorateClass$
|
|
10634
|
+
__decorateClass$h([
|
|
10625
10635
|
modernIdoc.property({ protected: true, alias: "base.fonts" })
|
|
10626
10636
|
], exports.Text2D.prototype, "fonts", 2);
|
|
10627
|
-
exports.Text2D = __decorateClass$
|
|
10637
|
+
exports.Text2D = __decorateClass$h([
|
|
10628
10638
|
customNode("Text2D")
|
|
10629
10639
|
], exports.Text2D);
|
|
10630
10640
|
|
|
10631
10641
|
var __defProp$c = Object.defineProperty;
|
|
10632
|
-
var __decorateClass$
|
|
10642
|
+
var __decorateClass$g = (decorators, target, key, kind) => {
|
|
10633
10643
|
var result = void 0 ;
|
|
10634
10644
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
10635
10645
|
if (decorator = decorators[i])
|
|
@@ -10680,14 +10690,14 @@ class TransformRect2D extends exports.Element2D {
|
|
|
10680
10690
|
this._drawEllipse(width, height / 2);
|
|
10681
10691
|
}
|
|
10682
10692
|
}
|
|
10683
|
-
__decorateClass$
|
|
10693
|
+
__decorateClass$g([
|
|
10684
10694
|
modernIdoc.property({ fallback: 6 })
|
|
10685
10695
|
], TransformRect2D.prototype, "handleSize");
|
|
10686
10696
|
|
|
10687
10697
|
var __defProp$b = Object.defineProperty;
|
|
10688
|
-
var __getOwnPropDesc$
|
|
10689
|
-
var __decorateClass$
|
|
10690
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
10698
|
+
var __getOwnPropDesc$f = Object.getOwnPropertyDescriptor;
|
|
10699
|
+
var __decorateClass$f = (decorators, target, key, kind) => {
|
|
10700
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$f(target, key) : target;
|
|
10691
10701
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
10692
10702
|
if (decorator = decorators[i])
|
|
10693
10703
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
@@ -10744,17 +10754,17 @@ exports.Video2D = class Video2D extends TextureRect2D {
|
|
|
10744
10754
|
super._process(delta);
|
|
10745
10755
|
}
|
|
10746
10756
|
};
|
|
10747
|
-
__decorateClass$
|
|
10757
|
+
__decorateClass$f([
|
|
10748
10758
|
modernIdoc.property({ fallback: "" })
|
|
10749
10759
|
], exports.Video2D.prototype, "src", 2);
|
|
10750
|
-
exports.Video2D = __decorateClass$
|
|
10760
|
+
exports.Video2D = __decorateClass$f([
|
|
10751
10761
|
customNode("Video2D")
|
|
10752
10762
|
], exports.Video2D);
|
|
10753
10763
|
|
|
10754
10764
|
var __defProp$a = Object.defineProperty;
|
|
10755
|
-
var __getOwnPropDesc$
|
|
10756
|
-
var __decorateClass$
|
|
10757
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
10765
|
+
var __getOwnPropDesc$e = Object.getOwnPropertyDescriptor;
|
|
10766
|
+
var __decorateClass$e = (decorators, target, key, kind) => {
|
|
10767
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$e(target, key) : target;
|
|
10758
10768
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
10759
10769
|
if (decorator = decorators[i])
|
|
10760
10770
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
@@ -11077,19 +11087,19 @@ exports.Animation = class Animation extends exports.TimelineNode {
|
|
|
11077
11087
|
});
|
|
11078
11088
|
}
|
|
11079
11089
|
};
|
|
11080
|
-
__decorateClass$
|
|
11090
|
+
__decorateClass$e([
|
|
11081
11091
|
modernIdoc.property()
|
|
11082
11092
|
], exports.Animation.prototype, "effectMode", 2);
|
|
11083
|
-
__decorateClass$
|
|
11093
|
+
__decorateClass$e([
|
|
11084
11094
|
modernIdoc.property()
|
|
11085
11095
|
], exports.Animation.prototype, "loop", 2);
|
|
11086
|
-
__decorateClass$
|
|
11096
|
+
__decorateClass$e([
|
|
11087
11097
|
modernIdoc.property()
|
|
11088
11098
|
], exports.Animation.prototype, "keyframes", 2);
|
|
11089
|
-
__decorateClass$
|
|
11099
|
+
__decorateClass$e([
|
|
11090
11100
|
modernIdoc.property()
|
|
11091
11101
|
], exports.Animation.prototype, "easing", 2);
|
|
11092
|
-
exports.Animation = __decorateClass$
|
|
11102
|
+
exports.Animation = __decorateClass$e([
|
|
11093
11103
|
customNode("Animation", {
|
|
11094
11104
|
renderMode: "disabled",
|
|
11095
11105
|
processMode: "pausable",
|
|
@@ -11974,10 +11984,10 @@ class WebAudio extends AudioPipeline {
|
|
|
11974
11984
|
}
|
|
11975
11985
|
|
|
11976
11986
|
var __defProp$9 = Object.defineProperty;
|
|
11977
|
-
var __getOwnPropDesc$
|
|
11987
|
+
var __getOwnPropDesc$d = Object.getOwnPropertyDescriptor;
|
|
11978
11988
|
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$
|
|
11989
|
+
var __decorateClass$d = (decorators, target, key, kind) => {
|
|
11990
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$d(target, key) : target;
|
|
11981
11991
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
11982
11992
|
if (decorator = decorators[i])
|
|
11983
11993
|
result = (decorator(result)) || result;
|
|
@@ -12188,7 +12198,7 @@ exports.Audio = class Audio extends exports.TimelineNode {
|
|
|
12188
12198
|
}
|
|
12189
12199
|
};
|
|
12190
12200
|
__publicField$4(exports.Audio, "_soundPool", []);
|
|
12191
|
-
exports.Audio = __decorateClass$
|
|
12201
|
+
exports.Audio = __decorateClass$d([
|
|
12192
12202
|
customNode("Audio")
|
|
12193
12203
|
], exports.Audio);
|
|
12194
12204
|
|
|
@@ -12197,9 +12207,9 @@ class AudioSpectrum extends exports.Node2D {
|
|
|
12197
12207
|
}
|
|
12198
12208
|
|
|
12199
12209
|
var __defProp$8 = Object.defineProperty;
|
|
12200
|
-
var __getOwnPropDesc$
|
|
12201
|
-
var __decorateClass$
|
|
12202
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
12210
|
+
var __getOwnPropDesc$c = Object.getOwnPropertyDescriptor;
|
|
12211
|
+
var __decorateClass$c = (decorators, target, key, kind) => {
|
|
12212
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$c(target, key) : target;
|
|
12203
12213
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
12204
12214
|
if (decorator = decorators[i])
|
|
12205
12215
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
@@ -12294,22 +12304,22 @@ exports.AudioWaveform = class AudioWaveform extends exports.Element2D {
|
|
|
12294
12304
|
}
|
|
12295
12305
|
}
|
|
12296
12306
|
};
|
|
12297
|
-
__decorateClass$
|
|
12307
|
+
__decorateClass$c([
|
|
12298
12308
|
modernIdoc.property()
|
|
12299
12309
|
], exports.AudioWaveform.prototype, "src", 2);
|
|
12300
|
-
__decorateClass$
|
|
12310
|
+
__decorateClass$c([
|
|
12301
12311
|
modernIdoc.property()
|
|
12302
12312
|
], exports.AudioWaveform.prototype, "gap", 2);
|
|
12303
|
-
__decorateClass$
|
|
12313
|
+
__decorateClass$c([
|
|
12304
12314
|
modernIdoc.property()
|
|
12305
12315
|
], exports.AudioWaveform.prototype, "color", 2);
|
|
12306
|
-
exports.AudioWaveform = __decorateClass$
|
|
12316
|
+
exports.AudioWaveform = __decorateClass$c([
|
|
12307
12317
|
customNode("AudioWaveform")
|
|
12308
12318
|
], exports.AudioWaveform);
|
|
12309
12319
|
|
|
12310
|
-
var __getOwnPropDesc$
|
|
12311
|
-
var __decorateClass$
|
|
12312
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
12320
|
+
var __getOwnPropDesc$b = Object.getOwnPropertyDescriptor;
|
|
12321
|
+
var __decorateClass$b = (decorators, target, key, kind) => {
|
|
12322
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$b(target, key) : target;
|
|
12313
12323
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
12314
12324
|
if (decorator = decorators[i])
|
|
12315
12325
|
result = (decorator(result)) || result;
|
|
@@ -12356,14 +12366,14 @@ exports.Control = class Control extends exports.Element2D {
|
|
|
12356
12366
|
_guiInput(event, key) {
|
|
12357
12367
|
}
|
|
12358
12368
|
};
|
|
12359
|
-
exports.Control = __decorateClass$
|
|
12369
|
+
exports.Control = __decorateClass$b([
|
|
12360
12370
|
customNode("Control")
|
|
12361
12371
|
], exports.Control);
|
|
12362
12372
|
|
|
12363
12373
|
var __defProp$7 = Object.defineProperty;
|
|
12364
|
-
var __getOwnPropDesc$
|
|
12365
|
-
var __decorateClass$
|
|
12366
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
12374
|
+
var __getOwnPropDesc$a = Object.getOwnPropertyDescriptor;
|
|
12375
|
+
var __decorateClass$a = (decorators, target, key, kind) => {
|
|
12376
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$a(target, key) : target;
|
|
12367
12377
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
12368
12378
|
if (decorator = decorators[i])
|
|
12369
12379
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
@@ -12390,35 +12400,35 @@ exports.Range = class Range extends exports.Control {
|
|
|
12390
12400
|
}
|
|
12391
12401
|
}
|
|
12392
12402
|
};
|
|
12393
|
-
__decorateClass$
|
|
12403
|
+
__decorateClass$a([
|
|
12394
12404
|
modernIdoc.property({ fallback: false })
|
|
12395
12405
|
], exports.Range.prototype, "allowGreater", 2);
|
|
12396
|
-
__decorateClass$
|
|
12406
|
+
__decorateClass$a([
|
|
12397
12407
|
modernIdoc.property({ fallback: false })
|
|
12398
12408
|
], exports.Range.prototype, "allowLesser", 2);
|
|
12399
|
-
__decorateClass$
|
|
12409
|
+
__decorateClass$a([
|
|
12400
12410
|
modernIdoc.property({ fallback: 1 })
|
|
12401
12411
|
], exports.Range.prototype, "page", 2);
|
|
12402
|
-
__decorateClass$
|
|
12412
|
+
__decorateClass$a([
|
|
12403
12413
|
modernIdoc.property({ fallback: 0 })
|
|
12404
12414
|
], exports.Range.prototype, "minValue", 2);
|
|
12405
|
-
__decorateClass$
|
|
12415
|
+
__decorateClass$a([
|
|
12406
12416
|
modernIdoc.property({ fallback: 100 })
|
|
12407
12417
|
], exports.Range.prototype, "maxValue", 2);
|
|
12408
|
-
__decorateClass$
|
|
12418
|
+
__decorateClass$a([
|
|
12409
12419
|
modernIdoc.property({ fallback: 0.01 })
|
|
12410
12420
|
], exports.Range.prototype, "step", 2);
|
|
12411
|
-
__decorateClass$
|
|
12421
|
+
__decorateClass$a([
|
|
12412
12422
|
modernIdoc.property({ fallback: 0 })
|
|
12413
12423
|
], exports.Range.prototype, "value", 2);
|
|
12414
|
-
exports.Range = __decorateClass$
|
|
12424
|
+
exports.Range = __decorateClass$a([
|
|
12415
12425
|
customNode("Range")
|
|
12416
12426
|
], exports.Range);
|
|
12417
12427
|
|
|
12418
12428
|
var __defProp$6 = Object.defineProperty;
|
|
12419
|
-
var __getOwnPropDesc$
|
|
12420
|
-
var __decorateClass$
|
|
12421
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
12429
|
+
var __getOwnPropDesc$9 = Object.getOwnPropertyDescriptor;
|
|
12430
|
+
var __decorateClass$9 = (decorators, target, key, kind) => {
|
|
12431
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$9(target, key) : target;
|
|
12422
12432
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
12423
12433
|
if (decorator = decorators[i])
|
|
12424
12434
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
@@ -12570,41 +12580,41 @@ exports.Ruler = class Ruler extends exports.Control {
|
|
|
12570
12580
|
}
|
|
12571
12581
|
}
|
|
12572
12582
|
};
|
|
12573
|
-
__decorateClass$
|
|
12583
|
+
__decorateClass$9([
|
|
12574
12584
|
modernIdoc.property({ fallback: 0 })
|
|
12575
12585
|
], exports.Ruler.prototype, "offsetX", 2);
|
|
12576
|
-
__decorateClass$
|
|
12586
|
+
__decorateClass$9([
|
|
12577
12587
|
modernIdoc.property({ fallback: 0 })
|
|
12578
12588
|
], exports.Ruler.prototype, "offsetY", 2);
|
|
12579
|
-
__decorateClass$
|
|
12589
|
+
__decorateClass$9([
|
|
12580
12590
|
modernIdoc.property({ fallback: 20 })
|
|
12581
12591
|
], exports.Ruler.prototype, "thickness", 2);
|
|
12582
|
-
__decorateClass$
|
|
12592
|
+
__decorateClass$9([
|
|
12583
12593
|
modernIdoc.property({ fallback: 3 })
|
|
12584
12594
|
], exports.Ruler.prototype, "markHeight", 2);
|
|
12585
|
-
__decorateClass$
|
|
12595
|
+
__decorateClass$9([
|
|
12586
12596
|
modernIdoc.property({ fallback: "#b2b6bc" })
|
|
12587
12597
|
], exports.Ruler.prototype, "color", 2);
|
|
12588
|
-
__decorateClass$
|
|
12598
|
+
__decorateClass$9([
|
|
12589
12599
|
modernIdoc.property({ fallback: "#f9f9fa" })
|
|
12590
12600
|
], exports.Ruler.prototype, "markBackgroundColor", 2);
|
|
12591
|
-
__decorateClass$
|
|
12601
|
+
__decorateClass$9([
|
|
12592
12602
|
modernIdoc.property({ fallback: "#b2b6bc" })
|
|
12593
12603
|
], exports.Ruler.prototype, "markColor", 2);
|
|
12594
|
-
__decorateClass$
|
|
12604
|
+
__decorateClass$9([
|
|
12595
12605
|
modernIdoc.property({ fallback: 300 })
|
|
12596
12606
|
], exports.Ruler.prototype, "gap", 2);
|
|
12597
|
-
__decorateClass$
|
|
12607
|
+
__decorateClass$9([
|
|
12598
12608
|
modernIdoc.property({ fallback: 1 })
|
|
12599
12609
|
], exports.Ruler.prototype, "gapScale", 2);
|
|
12600
|
-
exports.Ruler = __decorateClass$
|
|
12610
|
+
exports.Ruler = __decorateClass$9([
|
|
12601
12611
|
customNode("Ruler")
|
|
12602
12612
|
], exports.Ruler);
|
|
12603
12613
|
|
|
12604
12614
|
var __defProp$5 = Object.defineProperty;
|
|
12605
|
-
var __getOwnPropDesc$
|
|
12606
|
-
var __decorateClass$
|
|
12607
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
12615
|
+
var __getOwnPropDesc$8 = Object.getOwnPropertyDescriptor;
|
|
12616
|
+
var __decorateClass$8 = (decorators, target, key, kind) => {
|
|
12617
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$8(target, key) : target;
|
|
12608
12618
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
12609
12619
|
if (decorator = decorators[i])
|
|
12610
12620
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
@@ -12667,16 +12677,16 @@ exports.ScrollBar = class ScrollBar extends exports.Range {
|
|
|
12667
12677
|
return false;
|
|
12668
12678
|
}
|
|
12669
12679
|
};
|
|
12670
|
-
__decorateClass$
|
|
12680
|
+
__decorateClass$8([
|
|
12671
12681
|
modernIdoc.property({ fallback: "vertical" })
|
|
12672
12682
|
], exports.ScrollBar.prototype, "direction", 2);
|
|
12673
|
-
exports.ScrollBar = __decorateClass$
|
|
12683
|
+
exports.ScrollBar = __decorateClass$8([
|
|
12674
12684
|
customNode("ScrollBar")
|
|
12675
12685
|
], exports.ScrollBar);
|
|
12676
12686
|
|
|
12677
|
-
var __getOwnPropDesc$
|
|
12678
|
-
var __decorateClass$
|
|
12679
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
12687
|
+
var __getOwnPropDesc$7 = Object.getOwnPropertyDescriptor;
|
|
12688
|
+
var __decorateClass$7 = (decorators, target, key, kind) => {
|
|
12689
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$7(target, key) : target;
|
|
12680
12690
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
12681
12691
|
if (decorator = decorators[i])
|
|
12682
12692
|
result = (decorator(result)) || result;
|
|
@@ -12688,15 +12698,15 @@ exports.XScrollBar = class XScrollBar extends exports.ScrollBar {
|
|
|
12688
12698
|
this.setProperties(properties).append(children);
|
|
12689
12699
|
}
|
|
12690
12700
|
};
|
|
12691
|
-
exports.XScrollBar = __decorateClass$
|
|
12701
|
+
exports.XScrollBar = __decorateClass$7([
|
|
12692
12702
|
customNode("XScrollBar", {
|
|
12693
12703
|
direction: "horizontal"
|
|
12694
12704
|
})
|
|
12695
12705
|
], exports.XScrollBar);
|
|
12696
12706
|
|
|
12697
|
-
var __getOwnPropDesc$
|
|
12698
|
-
var __decorateClass$
|
|
12699
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
12707
|
+
var __getOwnPropDesc$6 = Object.getOwnPropertyDescriptor;
|
|
12708
|
+
var __decorateClass$6 = (decorators, target, key, kind) => {
|
|
12709
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$6(target, key) : target;
|
|
12700
12710
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
12701
12711
|
if (decorator = decorators[i])
|
|
12702
12712
|
result = (decorator(result)) || result;
|
|
@@ -12708,16 +12718,16 @@ exports.YScrollBar = class YScrollBar extends exports.ScrollBar {
|
|
|
12708
12718
|
this.setProperties(properties).append(children);
|
|
12709
12719
|
}
|
|
12710
12720
|
};
|
|
12711
|
-
exports.YScrollBar = __decorateClass$
|
|
12721
|
+
exports.YScrollBar = __decorateClass$6([
|
|
12712
12722
|
customNode("YScrollBar", {
|
|
12713
12723
|
direction: "vertical"
|
|
12714
12724
|
})
|
|
12715
12725
|
], exports.YScrollBar);
|
|
12716
12726
|
|
|
12717
12727
|
var __defProp$4 = Object.defineProperty;
|
|
12718
|
-
var __getOwnPropDesc$
|
|
12719
|
-
var __decorateClass$
|
|
12720
|
-
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$
|
|
12728
|
+
var __getOwnPropDesc$5 = Object.getOwnPropertyDescriptor;
|
|
12729
|
+
var __decorateClass$5 = (decorators, target, key, kind) => {
|
|
12730
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$5(target, key) : target;
|
|
12721
12731
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
12722
12732
|
if (decorator = decorators[i])
|
|
12723
12733
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
@@ -12739,21 +12749,22 @@ exports.Scaler = class Scaler extends exports.Node {
|
|
|
12739
12749
|
_updateProperty(key, value, oldValue, declaration) {
|
|
12740
12750
|
super._updateProperty(key, value, oldValue, declaration);
|
|
12741
12751
|
switch (key) {
|
|
12742
|
-
case "
|
|
12752
|
+
case "translateY":
|
|
12753
|
+
case "translateX":
|
|
12754
|
+
case "scale":
|
|
12743
12755
|
case "min":
|
|
12744
12756
|
case "max": {
|
|
12745
|
-
this.
|
|
12746
|
-
this.
|
|
12757
|
+
this.scale = clamp(this.minScale, this.scale, this.maxScale);
|
|
12758
|
+
this._updateTarget();
|
|
12747
12759
|
break;
|
|
12748
12760
|
}
|
|
12749
12761
|
}
|
|
12750
12762
|
}
|
|
12751
|
-
|
|
12763
|
+
_updateTarget() {
|
|
12752
12764
|
const target = this.target;
|
|
12753
12765
|
if (target) {
|
|
12754
|
-
target.style.
|
|
12755
|
-
|
|
12756
|
-
this.emit("updateScale", this.value);
|
|
12766
|
+
target.style.transform = `translate(${this.translateX}px, ${this.translateY}px) scale(${this.scale})`;
|
|
12767
|
+
this.emit("updateScale", this.scale);
|
|
12757
12768
|
}
|
|
12758
12769
|
}
|
|
12759
12770
|
_onWheel(e) {
|
|
@@ -12761,12 +12772,15 @@ exports.Scaler = class Scaler extends exports.Node {
|
|
|
12761
12772
|
if (!target)
|
|
12762
12773
|
return;
|
|
12763
12774
|
e.preventDefault();
|
|
12764
|
-
|
|
12765
|
-
|
|
12766
|
-
|
|
12767
|
-
|
|
12768
|
-
|
|
12769
|
-
|
|
12775
|
+
if (e.ctrlKey) {
|
|
12776
|
+
const isTouchPad = e.wheelDeltaY ? Math.abs(Math.abs(e.wheelDeltaY) - Math.abs(3 * e.deltaY)) < 3 : e.deltaMode === 0;
|
|
12777
|
+
if (!isTouchPad) {
|
|
12778
|
+
e.preventDefault();
|
|
12779
|
+
this.scale += e.deltaY * -0.015;
|
|
12780
|
+
}
|
|
12781
|
+
} else {
|
|
12782
|
+
this.translateX -= e.deltaX;
|
|
12783
|
+
this.translateY -= e.deltaY;
|
|
12770
12784
|
}
|
|
12771
12785
|
}
|
|
12772
12786
|
_input(event, key) {
|
|
@@ -12778,16 +12792,22 @@ exports.Scaler = class Scaler extends exports.Node {
|
|
|
12778
12792
|
}
|
|
12779
12793
|
}
|
|
12780
12794
|
};
|
|
12781
|
-
__decorateClass$
|
|
12795
|
+
__decorateClass$5([
|
|
12796
|
+
modernIdoc.property({ default: 1 })
|
|
12797
|
+
], exports.Scaler.prototype, "translateX", 2);
|
|
12798
|
+
__decorateClass$5([
|
|
12782
12799
|
modernIdoc.property({ default: 1 })
|
|
12783
|
-
], exports.Scaler.prototype, "
|
|
12784
|
-
__decorateClass$
|
|
12800
|
+
], exports.Scaler.prototype, "translateY", 2);
|
|
12801
|
+
__decorateClass$5([
|
|
12802
|
+
modernIdoc.property({ default: 1 })
|
|
12803
|
+
], exports.Scaler.prototype, "scale", 2);
|
|
12804
|
+
__decorateClass$5([
|
|
12785
12805
|
modernIdoc.property({ default: 0.05 })
|
|
12786
|
-
], exports.Scaler.prototype, "
|
|
12787
|
-
__decorateClass$
|
|
12806
|
+
], exports.Scaler.prototype, "minScale", 2);
|
|
12807
|
+
__decorateClass$5([
|
|
12788
12808
|
modernIdoc.property({ default: 10 })
|
|
12789
|
-
], exports.Scaler.prototype, "
|
|
12790
|
-
exports.Scaler = __decorateClass$
|
|
12809
|
+
], exports.Scaler.prototype, "maxScale", 2);
|
|
12810
|
+
exports.Scaler = __decorateClass$5([
|
|
12791
12811
|
customNode("Scaler", {
|
|
12792
12812
|
processMode: "disabled",
|
|
12793
12813
|
renderMode: "disabled"
|
|
@@ -12795,10 +12815,10 @@ exports.Scaler = __decorateClass$4([
|
|
|
12795
12815
|
], exports.Scaler);
|
|
12796
12816
|
|
|
12797
12817
|
var __defProp$3 = Object.defineProperty;
|
|
12798
|
-
var __getOwnPropDesc$
|
|
12818
|
+
var __getOwnPropDesc$4 = Object.getOwnPropertyDescriptor;
|
|
12799
12819
|
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$
|
|
12820
|
+
var __decorateClass$4 = (decorators, target, key, kind) => {
|
|
12821
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$4(target, key) : target;
|
|
12802
12822
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
12803
12823
|
if (decorator = decorators[i])
|
|
12804
12824
|
result = (decorator(result)) || result;
|
|
@@ -12886,15 +12906,15 @@ void main(void) {
|
|
|
12886
12906
|
gl_FragColor = color;
|
|
12887
12907
|
}`
|
|
12888
12908
|
}));
|
|
12889
|
-
exports.KawaseTransition = __decorateClass$
|
|
12909
|
+
exports.KawaseTransition = __decorateClass$4([
|
|
12890
12910
|
customNode("KawaseTransition")
|
|
12891
12911
|
], exports.KawaseTransition);
|
|
12892
12912
|
|
|
12893
12913
|
var __defProp$2 = Object.defineProperty;
|
|
12894
|
-
var __getOwnPropDesc$
|
|
12914
|
+
var __getOwnPropDesc$3 = Object.getOwnPropertyDescriptor;
|
|
12895
12915
|
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$
|
|
12916
|
+
var __decorateClass$3 = (decorators, target, key, kind) => {
|
|
12917
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$3(target, key) : target;
|
|
12898
12918
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
12899
12919
|
if (decorator = decorators[i])
|
|
12900
12920
|
result = (decorator(result)) || result;
|
|
@@ -12939,15 +12959,15 @@ void main() {
|
|
|
12939
12959
|
gl_FragColor = mix(src2Color, src1Color, mixPercent);
|
|
12940
12960
|
}`
|
|
12941
12961
|
}));
|
|
12942
|
-
exports.LeftEraseTransition = __decorateClass$
|
|
12962
|
+
exports.LeftEraseTransition = __decorateClass$3([
|
|
12943
12963
|
customNode("LeftEraseTransition")
|
|
12944
12964
|
], exports.LeftEraseTransition);
|
|
12945
12965
|
|
|
12946
12966
|
var __defProp$1 = Object.defineProperty;
|
|
12947
|
-
var __getOwnPropDesc$
|
|
12967
|
+
var __getOwnPropDesc$2 = Object.getOwnPropertyDescriptor;
|
|
12948
12968
|
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$
|
|
12969
|
+
var __decorateClass$2 = (decorators, target, key, kind) => {
|
|
12970
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$2(target, key) : target;
|
|
12951
12971
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
12952
12972
|
if (decorator = decorators[i])
|
|
12953
12973
|
result = (decorator(result)) || result;
|
|
@@ -13046,15 +13066,15 @@ void main(void) {
|
|
|
13046
13066
|
gl_FragColor = color;
|
|
13047
13067
|
}`
|
|
13048
13068
|
}));
|
|
13049
|
-
exports.TiltShiftTransition = __decorateClass$
|
|
13069
|
+
exports.TiltShiftTransition = __decorateClass$2([
|
|
13050
13070
|
customNode("TiltShiftTransition")
|
|
13051
13071
|
], exports.TiltShiftTransition);
|
|
13052
13072
|
|
|
13053
13073
|
var __defProp = Object.defineProperty;
|
|
13054
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
13074
|
+
var __getOwnPropDesc$1 = Object.getOwnPropertyDescriptor;
|
|
13055
13075
|
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;
|
|
13076
|
+
var __decorateClass$1 = (decorators, target, key, kind) => {
|
|
13077
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$1(target, key) : target;
|
|
13058
13078
|
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
13059
13079
|
if (decorator = decorators[i])
|
|
13060
13080
|
result = (decorator(result)) || result;
|
|
@@ -13140,7 +13160,7 @@ void main(void) {
|
|
|
13140
13160
|
gl_FragColor = texture2D(sampler, coord);
|
|
13141
13161
|
}`
|
|
13142
13162
|
}));
|
|
13143
|
-
exports.TwistTransition = __decorateClass([
|
|
13163
|
+
exports.TwistTransition = __decorateClass$1([
|
|
13144
13164
|
customNode("TwistTransition")
|
|
13145
13165
|
], exports.TwistTransition);
|
|
13146
13166
|
|
|
@@ -13504,7 +13524,15 @@ class Assets {
|
|
|
13504
13524
|
}
|
|
13505
13525
|
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
13526
|
|
|
13507
|
-
|
|
13527
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
13528
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
13529
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
13530
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
13531
|
+
if (decorator = decorators[i])
|
|
13532
|
+
result = (decorator(result)) || result;
|
|
13533
|
+
return result;
|
|
13534
|
+
};
|
|
13535
|
+
exports.CanvasItemEditor = class CanvasItemEditor extends exports.Control {
|
|
13508
13536
|
_pointerStart;
|
|
13509
13537
|
_pointerOffset;
|
|
13510
13538
|
selected;
|
|
@@ -13530,6 +13558,7 @@ class CanvasItemEditor extends exports.Control {
|
|
|
13530
13558
|
}
|
|
13531
13559
|
});
|
|
13532
13560
|
scaler = new exports.Scaler({
|
|
13561
|
+
name: "Scaler",
|
|
13533
13562
|
internalMode: "back"
|
|
13534
13563
|
}).on("updateScale", (scale) => {
|
|
13535
13564
|
this.ruler.gapScale = scale;
|
|
@@ -13537,12 +13566,14 @@ class CanvasItemEditor extends exports.Control {
|
|
|
13537
13566
|
this._updateSelectionRect();
|
|
13538
13567
|
});
|
|
13539
13568
|
xScrollBar = new exports.XScrollBar({
|
|
13569
|
+
name: "XScrollBar",
|
|
13540
13570
|
internalMode: "back",
|
|
13541
13571
|
style: {
|
|
13542
13572
|
visibility: "hidden"
|
|
13543
13573
|
}
|
|
13544
13574
|
});
|
|
13545
13575
|
yScrollBar = new exports.YScrollBar({
|
|
13576
|
+
name: "yScrollBar",
|
|
13546
13577
|
internalMode: "back",
|
|
13547
13578
|
style: {
|
|
13548
13579
|
visibility: "hidden"
|
|
@@ -13554,9 +13585,9 @@ class CanvasItemEditor extends exports.Control {
|
|
|
13554
13585
|
width: 500,
|
|
13555
13586
|
height: 500,
|
|
13556
13587
|
backgroundColor: "#FFFFFFFF",
|
|
13557
|
-
overflow:
|
|
13558
|
-
pointerEvents: "none"
|
|
13559
|
-
boxShadow:
|
|
13588
|
+
// overflow: 'hidden',
|
|
13589
|
+
pointerEvents: "none"
|
|
13590
|
+
// boxShadow: '2px 2px 2px 1px rgba(0, 0, 0, 0.2)',
|
|
13560
13591
|
}
|
|
13561
13592
|
}, [
|
|
13562
13593
|
this.scaler
|
|
@@ -13611,10 +13642,10 @@ class CanvasItemEditor extends exports.Control {
|
|
|
13611
13642
|
}
|
|
13612
13643
|
_onPointerdown(e) {
|
|
13613
13644
|
let target = e.target;
|
|
13614
|
-
if (target?.
|
|
13645
|
+
if (target?.equal(this)) {
|
|
13615
13646
|
target = void 0;
|
|
13616
13647
|
}
|
|
13617
|
-
if (target?.
|
|
13648
|
+
if (target?.equal(this.transformRect)) {
|
|
13618
13649
|
target = this.selected;
|
|
13619
13650
|
}
|
|
13620
13651
|
this._pointerOffset = { x: e.offsetX, y: e.offsetY };
|
|
@@ -13630,22 +13661,22 @@ class CanvasItemEditor extends exports.Control {
|
|
|
13630
13661
|
}
|
|
13631
13662
|
_onPointermove(e) {
|
|
13632
13663
|
let target = e.target;
|
|
13633
|
-
if (target?.
|
|
13664
|
+
if (target?.equal(this)) {
|
|
13634
13665
|
target = void 0;
|
|
13635
13666
|
}
|
|
13636
|
-
if (target?.
|
|
13667
|
+
if (target?.equal(this.transformRect)) {
|
|
13637
13668
|
target = this.selected;
|
|
13638
13669
|
}
|
|
13639
13670
|
const { selected, dragging, _pointerStart, _pointerOffset } = this;
|
|
13640
|
-
if (selected && target?.
|
|
13671
|
+
if (selected && target?.equal(selected)) {
|
|
13641
13672
|
this.hovered = void 0;
|
|
13642
13673
|
} else {
|
|
13643
13674
|
this.hovered = target;
|
|
13644
13675
|
}
|
|
13645
13676
|
const offset = _pointerOffset ? { x: e.offsetX - _pointerOffset.x, y: e.offsetY - _pointerOffset.y } : { x: 0, y: 0 };
|
|
13646
13677
|
if (dragging && _pointerStart) {
|
|
13647
|
-
dragging.style.left = _pointerStart.left + offset.x / this.scaler.
|
|
13648
|
-
dragging.style.top = _pointerStart.top + offset.y / this.scaler.
|
|
13678
|
+
dragging.style.left = _pointerStart.left + offset.x / this.scaler.scale;
|
|
13679
|
+
dragging.style.top = _pointerStart.top + offset.y / this.scaler.scale;
|
|
13649
13680
|
dragging.update();
|
|
13650
13681
|
}
|
|
13651
13682
|
this._updateHover();
|
|
@@ -13702,7 +13733,10 @@ class CanvasItemEditor extends exports.Control {
|
|
|
13702
13733
|
this.xScrollBar.style.visibility = "hidden";
|
|
13703
13734
|
}
|
|
13704
13735
|
}
|
|
13705
|
-
}
|
|
13736
|
+
};
|
|
13737
|
+
exports.CanvasItemEditor = __decorateClass([
|
|
13738
|
+
customNode("CanvasItemEditor")
|
|
13739
|
+
], exports.CanvasItemEditor);
|
|
13706
13740
|
|
|
13707
13741
|
const defaultOptions = {
|
|
13708
13742
|
alpha: true,
|
|
@@ -13944,7 +13978,6 @@ exports.BaseElement2DShape = BaseElement2DShape;
|
|
|
13944
13978
|
exports.BaseElement2DStyle = BaseElement2DStyle;
|
|
13945
13979
|
exports.BaseElement2DText = BaseElement2DText;
|
|
13946
13980
|
exports.CanvasContext = CanvasContext;
|
|
13947
|
-
exports.CanvasItemEditor = CanvasItemEditor;
|
|
13948
13981
|
exports.CanvasTexture = CanvasTexture;
|
|
13949
13982
|
exports.Color = Color;
|
|
13950
13983
|
exports.ColorMatrix = ColorMatrix;
|