@prefecthq/graphs 2.1.3 → 2.1.4
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/graphs.mjs +106 -94
- package/dist/graphs.mjs.map +1 -1
- package/dist/graphs.umd.js +28 -28
- package/dist/graphs.umd.js.map +1 -1
- package/dist/types/src/factories/offsets.d.ts +5 -0
- package/package.json +1 -1
package/dist/graphs.mjs
CHANGED
|
@@ -594,12 +594,12 @@ function xx() {
|
|
|
594
594
|
clear: n
|
|
595
595
|
};
|
|
596
596
|
}
|
|
597
|
-
const
|
|
597
|
+
const xt = xx();
|
|
598
598
|
function je(r) {
|
|
599
599
|
let t;
|
|
600
600
|
return new Promise((e) => {
|
|
601
|
-
t = e,
|
|
602
|
-
}).then((e) => (
|
|
601
|
+
t = e, xt.on(r, t);
|
|
602
|
+
}).then((e) => (xt.off(r, t), e));
|
|
603
603
|
}
|
|
604
604
|
let ns = null;
|
|
605
605
|
function _x() {
|
|
@@ -661,10 +661,10 @@ async function Sx(r) {
|
|
|
661
661
|
$u(() => r.config, (e) => {
|
|
662
662
|
const i = wx(e);
|
|
663
663
|
if (!br) {
|
|
664
|
-
br = i,
|
|
664
|
+
br = i, xt.emit("configCreated", br);
|
|
665
665
|
return;
|
|
666
666
|
}
|
|
667
|
-
Object.assign(br, i),
|
|
667
|
+
Object.assign(br, i), xt.emit("configUpdated", br);
|
|
668
668
|
}, { immediate: !0 });
|
|
669
669
|
});
|
|
670
670
|
}
|
|
@@ -2625,7 +2625,7 @@ sr.prototype.parseHost = function() {
|
|
|
2625
2625
|
t && (t = t[0], t !== ":" && (this.port = t.substr(1)), r = r.substr(0, r.length - t.length)), r && (this.hostname = r);
|
|
2626
2626
|
};
|
|
2627
2627
|
const ff = {};
|
|
2628
|
-
function
|
|
2628
|
+
function _t(r, t, e = 3) {
|
|
2629
2629
|
if (ff[t])
|
|
2630
2630
|
return;
|
|
2631
2631
|
let i = new Error().stack;
|
|
@@ -3405,10 +3405,10 @@ Ys.temp = new Ys(), /** Pattern for hex strings */
|
|
|
3405
3405
|
Ys.HEX_PATTERN = /^(#|0x)?(([a-f0-9]{3}){1,2}([a-f0-9]{2})?)$/i;
|
|
3406
3406
|
let Lt = Ys;
|
|
3407
3407
|
function p1(r) {
|
|
3408
|
-
return
|
|
3408
|
+
return _t("7.2.0", "utils.hex2string is deprecated, use Color#toHex instead"), Lt.shared.setValue(r).toHex();
|
|
3409
3409
|
}
|
|
3410
3410
|
function f1(r) {
|
|
3411
|
-
return
|
|
3411
|
+
return _t("7.2.0", "utils.rgb2hex is deprecated, use Color#toNumber instead"), Lt.shared.setValue(r).toNumber();
|
|
3412
3412
|
}
|
|
3413
3413
|
function m1() {
|
|
3414
3414
|
const r = [], t = [];
|
|
@@ -6575,7 +6575,7 @@ const ro = class si extends il {
|
|
|
6575
6575
|
* @readonly
|
|
6576
6576
|
*/
|
|
6577
6577
|
get MAX_TEXTURES() {
|
|
6578
|
-
return
|
|
6578
|
+
return _t("7.1.0", "BatchRenderer#MAX_TEXTURES renamed to BatchRenderer#maxTextures"), this.maxTextures;
|
|
6579
6579
|
}
|
|
6580
6580
|
/**
|
|
6581
6581
|
* The default vertex shader source
|
|
@@ -9235,19 +9235,19 @@ class h0 {
|
|
|
9235
9235
|
extract: {
|
|
9236
9236
|
enumerable: !1,
|
|
9237
9237
|
get() {
|
|
9238
|
-
return
|
|
9238
|
+
return _t("7.0.0", "renderer.plugins.extract has moved to renderer.extract"), t.extract;
|
|
9239
9239
|
}
|
|
9240
9240
|
},
|
|
9241
9241
|
prepare: {
|
|
9242
9242
|
enumerable: !1,
|
|
9243
9243
|
get() {
|
|
9244
|
-
return
|
|
9244
|
+
return _t("7.0.0", "renderer.plugins.prepare has moved to renderer.prepare"), t.prepare;
|
|
9245
9245
|
}
|
|
9246
9246
|
},
|
|
9247
9247
|
interaction: {
|
|
9248
9248
|
enumerable: !1,
|
|
9249
9249
|
get() {
|
|
9250
|
-
return
|
|
9250
|
+
return _t("7.0.0", "renderer.plugins.interaction has been deprecated, use renderer.events"), t.events;
|
|
9251
9251
|
}
|
|
9252
9252
|
}
|
|
9253
9253
|
});
|
|
@@ -10657,7 +10657,7 @@ Object.defineProperties($, {
|
|
|
10657
10657
|
return pt.defaultOptions.wrapMode;
|
|
10658
10658
|
},
|
|
10659
10659
|
set(r) {
|
|
10660
|
-
|
|
10660
|
+
_t("7.1.0", "settings.WRAP_MODE is deprecated, use BaseTexture.defaultOptions.wrapMode"), pt.defaultOptions.wrapMode = r;
|
|
10661
10661
|
}
|
|
10662
10662
|
},
|
|
10663
10663
|
/**
|
|
@@ -10673,7 +10673,7 @@ Object.defineProperties($, {
|
|
|
10673
10673
|
return pt.defaultOptions.scaleMode;
|
|
10674
10674
|
},
|
|
10675
10675
|
set(r) {
|
|
10676
|
-
|
|
10676
|
+
_t("7.1.0", "settings.SCALE_MODE is deprecated, use BaseTexture.defaultOptions.scaleMode"), pt.defaultOptions.scaleMode = r;
|
|
10677
10677
|
}
|
|
10678
10678
|
},
|
|
10679
10679
|
/**
|
|
@@ -10689,7 +10689,7 @@ Object.defineProperties($, {
|
|
|
10689
10689
|
return pt.defaultOptions.mipmap;
|
|
10690
10690
|
},
|
|
10691
10691
|
set(r) {
|
|
10692
|
-
|
|
10692
|
+
_t("7.1.0", "settings.MIPMAP_TEXTURES is deprecated, use BaseTexture.defaultOptions.mipmap"), pt.defaultOptions.mipmap = r;
|
|
10693
10693
|
}
|
|
10694
10694
|
// MIPMAP_MODES.POW2,
|
|
10695
10695
|
},
|
|
@@ -10706,7 +10706,7 @@ Object.defineProperties($, {
|
|
|
10706
10706
|
return pt.defaultOptions.anisotropicLevel;
|
|
10707
10707
|
},
|
|
10708
10708
|
set(r) {
|
|
10709
|
-
|
|
10709
|
+
_t(
|
|
10710
10710
|
"7.1.0",
|
|
10711
10711
|
"settings.ANISOTROPIC_LEVEL is deprecated, use BaseTexture.defaultOptions.anisotropicLevel"
|
|
10712
10712
|
), pt.defaultOptions.anisotropicLevel = r;
|
|
@@ -10723,7 +10723,7 @@ Object.defineProperties($, {
|
|
|
10723
10723
|
*/
|
|
10724
10724
|
FILTER_RESOLUTION: {
|
|
10725
10725
|
get() {
|
|
10726
|
-
return
|
|
10726
|
+
return _t("7.1.0", "settings.FILTER_RESOLUTION is deprecated, use Filter.defaultResolution"), fe.defaultResolution;
|
|
10727
10727
|
},
|
|
10728
10728
|
set(r) {
|
|
10729
10729
|
fe.defaultResolution = r;
|
|
@@ -10740,7 +10740,7 @@ Object.defineProperties($, {
|
|
|
10740
10740
|
*/
|
|
10741
10741
|
FILTER_MULTISAMPLE: {
|
|
10742
10742
|
get() {
|
|
10743
|
-
return
|
|
10743
|
+
return _t("7.1.0", "settings.FILTER_MULTISAMPLE is deprecated, use Filter.defaultMultisample"), fe.defaultMultisample;
|
|
10744
10744
|
},
|
|
10745
10745
|
set(r) {
|
|
10746
10746
|
fe.defaultMultisample = r;
|
|
@@ -10760,7 +10760,7 @@ Object.defineProperties($, {
|
|
|
10760
10760
|
return ts.defaultMaxTextures;
|
|
10761
10761
|
},
|
|
10762
10762
|
set(r) {
|
|
10763
|
-
|
|
10763
|
+
_t("7.1.0", "settings.SPRITE_MAX_TEXTURES is deprecated, use BatchRenderer.defaultMaxTextures"), ts.defaultMaxTextures = r;
|
|
10764
10764
|
}
|
|
10765
10765
|
},
|
|
10766
10766
|
/**
|
|
@@ -10779,7 +10779,7 @@ Object.defineProperties($, {
|
|
|
10779
10779
|
return ts.defaultBatchSize;
|
|
10780
10780
|
},
|
|
10781
10781
|
set(r) {
|
|
10782
|
-
|
|
10782
|
+
_t("7.1.0", "settings.SPRITE_BATCH_SIZE is deprecated, use BatchRenderer.defaultBatchSize"), ts.defaultBatchSize = r;
|
|
10783
10783
|
}
|
|
10784
10784
|
},
|
|
10785
10785
|
/**
|
|
@@ -10796,7 +10796,7 @@ Object.defineProperties($, {
|
|
|
10796
10796
|
return ts.canUploadSameBuffer;
|
|
10797
10797
|
},
|
|
10798
10798
|
set(r) {
|
|
10799
|
-
|
|
10799
|
+
_t("7.1.0", "settings.CAN_UPLOAD_SAME_BUFFER is deprecated, use BatchRenderer.canUploadSameBuffer"), ts.canUploadSameBuffer = r;
|
|
10800
10800
|
}
|
|
10801
10801
|
},
|
|
10802
10802
|
/**
|
|
@@ -10813,7 +10813,7 @@ Object.defineProperties($, {
|
|
|
10813
10813
|
return es.defaultMode;
|
|
10814
10814
|
},
|
|
10815
10815
|
set(r) {
|
|
10816
|
-
|
|
10816
|
+
_t("7.1.0", "settings.GC_MODE is deprecated, use TextureGCSystem.defaultMode"), es.defaultMode = r;
|
|
10817
10817
|
}
|
|
10818
10818
|
},
|
|
10819
10819
|
/**
|
|
@@ -10830,7 +10830,7 @@ Object.defineProperties($, {
|
|
|
10830
10830
|
return es.defaultMaxIdle;
|
|
10831
10831
|
},
|
|
10832
10832
|
set(r) {
|
|
10833
|
-
|
|
10833
|
+
_t("7.1.0", "settings.GC_MAX_IDLE is deprecated, use TextureGCSystem.defaultMaxIdle"), es.defaultMaxIdle = r;
|
|
10834
10834
|
}
|
|
10835
10835
|
},
|
|
10836
10836
|
/**
|
|
@@ -10847,7 +10847,7 @@ Object.defineProperties($, {
|
|
|
10847
10847
|
return es.defaultCheckCountMax;
|
|
10848
10848
|
},
|
|
10849
10849
|
set(r) {
|
|
10850
|
-
|
|
10850
|
+
_t("7.1.0", "settings.GC_MAX_CHECK_COUNT is deprecated, use TextureGCSystem.defaultCheckCountMax"), es.defaultCheckCountMax = r;
|
|
10851
10851
|
}
|
|
10852
10852
|
},
|
|
10853
10853
|
/**
|
|
@@ -10864,7 +10864,7 @@ Object.defineProperties($, {
|
|
|
10864
10864
|
return tr.defaultVertexPrecision;
|
|
10865
10865
|
},
|
|
10866
10866
|
set(r) {
|
|
10867
|
-
|
|
10867
|
+
_t("7.1.0", "settings.PRECISION_VERTEX is deprecated, use Program.defaultVertexPrecision"), tr.defaultVertexPrecision = r;
|
|
10868
10868
|
}
|
|
10869
10869
|
},
|
|
10870
10870
|
/**
|
|
@@ -10881,7 +10881,7 @@ Object.defineProperties($, {
|
|
|
10881
10881
|
return tr.defaultFragmentPrecision;
|
|
10882
10882
|
},
|
|
10883
10883
|
set(r) {
|
|
10884
|
-
|
|
10884
|
+
_t("7.1.0", "settings.PRECISION_FRAGMENT is deprecated, use Program.defaultFragmentPrecision"), tr.defaultFragmentPrecision = r;
|
|
10885
10885
|
}
|
|
10886
10886
|
}
|
|
10887
10887
|
});
|
|
@@ -11227,7 +11227,7 @@ Object.defineProperties($, {
|
|
|
11227
11227
|
return me.targetFPMS;
|
|
11228
11228
|
},
|
|
11229
11229
|
set(r) {
|
|
11230
|
-
|
|
11230
|
+
_t("7.1.0", "settings.TARGET_FPMS is deprecated, use Ticker.targetFPMS"), me.targetFPMS = r;
|
|
11231
11231
|
}
|
|
11232
11232
|
}
|
|
11233
11233
|
});
|
|
@@ -11532,7 +11532,7 @@ const Ja = class Mc extends IT {
|
|
|
11532
11532
|
"_multisample"
|
|
11533
11533
|
]
|
|
11534
11534
|
};
|
|
11535
|
-
this.setup(e), "useContextAlpha" in t && (
|
|
11535
|
+
this.setup(e), "useContextAlpha" in t && (_t("7.0.0", "options.useContextAlpha is deprecated, use options.premultipliedAlpha and options.backgroundAlpha instead"), t.premultipliedAlpha = t.useContextAlpha && t.useContextAlpha !== "notMultiplied", t.backgroundAlpha = t.useContextAlpha === !1 ? 1 : t.backgroundAlpha), this._plugin.rendererPlugins = Mc.__plugins, this.options = t, this.startup.run(this.options);
|
|
11536
11536
|
}
|
|
11537
11537
|
/**
|
|
11538
11538
|
* Create renderer if WebGL is available. Overrideable
|
|
@@ -11650,7 +11650,7 @@ const Ja = class Mc extends IT {
|
|
|
11650
11650
|
* @deprecated since 7.0.0
|
|
11651
11651
|
*/
|
|
11652
11652
|
get clearBeforeRender() {
|
|
11653
|
-
return
|
|
11653
|
+
return _t("7.0.0", "renderer.clearBeforeRender has been deprecated, please use renderer.background.clearBeforeRender instead."), this.background.clearBeforeRender;
|
|
11654
11654
|
}
|
|
11655
11655
|
/**
|
|
11656
11656
|
* Pass-thru setting for the canvas' context `alpha` property. This is typically
|
|
@@ -11659,7 +11659,7 @@ const Ja = class Mc extends IT {
|
|
|
11659
11659
|
* @member {boolean}
|
|
11660
11660
|
*/
|
|
11661
11661
|
get useContextAlpha() {
|
|
11662
|
-
return
|
|
11662
|
+
return _t("7.0.0", "renderer.useContextAlpha has been deprecated, please use renderer.context.premultipliedAlpha instead."), this.context.useContextAlpha;
|
|
11663
11663
|
}
|
|
11664
11664
|
/**
|
|
11665
11665
|
* readonly drawing buffer preservation
|
|
@@ -11667,7 +11667,7 @@ const Ja = class Mc extends IT {
|
|
|
11667
11667
|
* @deprecated since 7.0.0
|
|
11668
11668
|
*/
|
|
11669
11669
|
get preserveDrawingBuffer() {
|
|
11670
|
-
return
|
|
11670
|
+
return _t("7.0.0", "renderer.preserveDrawingBuffer has been deprecated, we cannot truly know this unless pixi created the context"), this.context.preserveDrawingBuffer;
|
|
11671
11671
|
}
|
|
11672
11672
|
/**
|
|
11673
11673
|
* The background color to fill if not transparent
|
|
@@ -11675,10 +11675,10 @@ const Ja = class Mc extends IT {
|
|
|
11675
11675
|
* @deprecated since 7.0.0
|
|
11676
11676
|
*/
|
|
11677
11677
|
get backgroundColor() {
|
|
11678
|
-
return
|
|
11678
|
+
return _t("7.0.0", "renderer.backgroundColor has been deprecated, use renderer.background.color instead."), this.background.color;
|
|
11679
11679
|
}
|
|
11680
11680
|
set backgroundColor(t) {
|
|
11681
|
-
|
|
11681
|
+
_t("7.0.0", "renderer.backgroundColor has been deprecated, use renderer.background.color instead."), this.background.color = t;
|
|
11682
11682
|
}
|
|
11683
11683
|
/**
|
|
11684
11684
|
* The background color alpha. Setting this to 0 will make the canvas transparent.
|
|
@@ -11686,19 +11686,19 @@ const Ja = class Mc extends IT {
|
|
|
11686
11686
|
* @deprecated since 7.0.0
|
|
11687
11687
|
*/
|
|
11688
11688
|
get backgroundAlpha() {
|
|
11689
|
-
return
|
|
11689
|
+
return _t("7.0.0", "renderer.backgroundAlpha has been deprecated, use renderer.background.alpha instead."), this.background.alpha;
|
|
11690
11690
|
}
|
|
11691
11691
|
/**
|
|
11692
11692
|
* @deprecated since 7.0.0
|
|
11693
11693
|
*/
|
|
11694
11694
|
set backgroundAlpha(t) {
|
|
11695
|
-
|
|
11695
|
+
_t("7.0.0", "renderer.backgroundAlpha has been deprecated, use renderer.background.alpha instead."), this.background.alpha = t;
|
|
11696
11696
|
}
|
|
11697
11697
|
/**
|
|
11698
11698
|
* @deprecated since 7.0.0
|
|
11699
11699
|
*/
|
|
11700
11700
|
get powerPreference() {
|
|
11701
|
-
return
|
|
11701
|
+
return _t("7.0.0", "renderer.powerPreference has been deprecated, we can only know this if pixi creates the context"), this.context.powerPreference;
|
|
11702
11702
|
}
|
|
11703
11703
|
/**
|
|
11704
11704
|
* Useful function that returns a texture of the display object that can then be used to create sprites
|
|
@@ -13162,7 +13162,7 @@ Object.defineProperties($, {
|
|
|
13162
13162
|
return Zt.defaultSortableChildren;
|
|
13163
13163
|
},
|
|
13164
13164
|
set(r) {
|
|
13165
|
-
|
|
13165
|
+
_t("7.1.0", "settings.SORTABLE_CHILDREN is deprecated, use Container.defaultSortableChildren"), Zt.defaultSortableChildren = r;
|
|
13166
13166
|
}
|
|
13167
13167
|
}
|
|
13168
13168
|
});
|
|
@@ -14895,7 +14895,7 @@ const Bf = {
|
|
|
14895
14895
|
Object.entries(Bf).forEach(([r, t]) => {
|
|
14896
14896
|
Object.defineProperty(Bf, r, {
|
|
14897
14897
|
get() {
|
|
14898
|
-
return
|
|
14898
|
+
return _t("7.1.0", `filters.${r} has moved to ${r}`), t;
|
|
14899
14899
|
}
|
|
14900
14900
|
});
|
|
14901
14901
|
});
|
|
@@ -16388,7 +16388,7 @@ const dw = {
|
|
|
16388
16388
|
return this._internalInteractive ?? Uf(Oc.defaultEventMode);
|
|
16389
16389
|
},
|
|
16390
16390
|
set interactive(r) {
|
|
16391
|
-
|
|
16391
|
+
_t(
|
|
16392
16392
|
"7.2.0",
|
|
16393
16393
|
// eslint-disable-next-line max-len
|
|
16394
16394
|
"Setting interactive is deprecated, use eventMode = 'none'/'passive'/'auto'/'static'/'dynamic' instead."
|
|
@@ -17720,7 +17720,7 @@ class $w {
|
|
|
17720
17720
|
}
|
|
17721
17721
|
add(t, e, i, s, n) {
|
|
17722
17722
|
const o = [];
|
|
17723
|
-
typeof t == "string" || Array.isArray(t) && typeof t[0] == "string" ? (
|
|
17723
|
+
typeof t == "string" || Array.isArray(t) && typeof t[0] == "string" ? (_t("7.2.0", `Assets.add now uses an object instead of individual parameters.
|
|
17724
17724
|
Please use Assets.add({ alias, src, data, format, loadParser }) instead.`), o.push({ alias: t, src: e, data: i, format: s, loadParser: n })) : Array.isArray(t) ? o.push(...t) : o.push(t);
|
|
17725
17725
|
let a;
|
|
17726
17726
|
a = (h) => {
|
|
@@ -18206,7 +18206,7 @@ class Qw {
|
|
|
18206
18206
|
return rl.config.preferWorkers;
|
|
18207
18207
|
}
|
|
18208
18208
|
set preferWorkers(t) {
|
|
18209
|
-
|
|
18209
|
+
_t("7.2.0", "Assets.prefersWorkers is deprecated, use Assets.setPreferences({ preferWorkers: true }) instead."), this.setPreferences({ preferWorkers: t });
|
|
18210
18210
|
}
|
|
18211
18211
|
/**
|
|
18212
18212
|
* General setter for preferences. This is a helper function to set preferences on all parsers.
|
|
@@ -22176,7 +22176,7 @@ const tE = {
|
|
|
22176
22176
|
return yr.experimentalLetterSpacing;
|
|
22177
22177
|
}
|
|
22178
22178
|
static set experimentalLetterSpacing(t) {
|
|
22179
|
-
|
|
22179
|
+
_t(
|
|
22180
22180
|
"7.1.0",
|
|
22181
22181
|
"Text.experimentalLetterSpacing is deprecated, use TextMetrics.experimentalLetterSpacing"
|
|
22182
22182
|
), yr.experimentalLetterSpacing = t;
|
|
@@ -22582,7 +22582,7 @@ Object.defineProperties($, {
|
|
|
22582
22582
|
return Yc.uploadsPerFrame;
|
|
22583
22583
|
},
|
|
22584
22584
|
set(r) {
|
|
22585
|
-
|
|
22585
|
+
_t("7.1.0", "settings.UPLOADS_PER_FRAME is deprecated, use prepare.BasePrepare.uploadsPerFrame"), Yc.uploadsPerFrame = r;
|
|
22586
22586
|
}
|
|
22587
22587
|
}
|
|
22588
22588
|
});
|
|
@@ -26444,10 +26444,10 @@ class BC {
|
|
|
26444
26444
|
}
|
|
26445
26445
|
let ki = null;
|
|
26446
26446
|
const rb = new ResizeObserver(() => {
|
|
26447
|
-
ki &&
|
|
26447
|
+
ki && xt.emit("stageUpdated", ki);
|
|
26448
26448
|
});
|
|
26449
26449
|
function UC(r) {
|
|
26450
|
-
ki = r, rb.observe(ki),
|
|
26450
|
+
ki = r, rb.observe(ki), xt.emit("stageCreated", ki);
|
|
26451
26451
|
}
|
|
26452
26452
|
function XC() {
|
|
26453
26453
|
ki && rb.unobserve(ki), ki = null;
|
|
@@ -26458,7 +26458,7 @@ async function ip() {
|
|
|
26458
26458
|
let Ge = null;
|
|
26459
26459
|
async function ZC() {
|
|
26460
26460
|
const r = await ip();
|
|
26461
|
-
KC(r),
|
|
26461
|
+
KC(r), xt.on("stageUpdated", HC);
|
|
26462
26462
|
}
|
|
26463
26463
|
function VC() {
|
|
26464
26464
|
Ge && (Ge.destroy(!0, {
|
|
@@ -26471,13 +26471,13 @@ function KC(r) {
|
|
|
26471
26471
|
resizeTo: r,
|
|
26472
26472
|
antialias: !0,
|
|
26473
26473
|
resolution: window.devicePixelRatio
|
|
26474
|
-
}), Ge.stage.sortableChildren = !0, r.appendChild(Ge.view),
|
|
26474
|
+
}), Ge.stage.sortableChildren = !0, r.appendChild(Ge.view), xt.emit("applicationCreated", Ge), process.env.NODE_ENV === "development" && (globalThis.__PIXI_APP__ = Ge);
|
|
26475
26475
|
}
|
|
26476
26476
|
async function fi() {
|
|
26477
26477
|
return Ge || await je("applicationCreated");
|
|
26478
26478
|
}
|
|
26479
26479
|
function HC(r) {
|
|
26480
|
-
Ge && (Ge.resizeTo = r,
|
|
26480
|
+
Ge && (Ge.resizeTo = r, xt.emit("applicationResized", Ge));
|
|
26481
26481
|
}
|
|
26482
26482
|
var kh = { exports: {} };
|
|
26483
26483
|
kh.exports;
|
|
@@ -30000,7 +30000,7 @@ function HR() {
|
|
|
30000
30000
|
let gn = null;
|
|
30001
30001
|
async function YR() {
|
|
30002
30002
|
const r = await Tp();
|
|
30003
|
-
qm(r.start_time),
|
|
30003
|
+
qm(r.start_time), xt.on("layoutSettingsUpdated", () => qm(r.start_time));
|
|
30004
30004
|
}
|
|
30005
30005
|
function zR() {
|
|
30006
30006
|
gn = null;
|
|
@@ -30011,7 +30011,7 @@ async function Ho() {
|
|
|
30011
30011
|
async function qm(r) {
|
|
30012
30012
|
await Bi();
|
|
30013
30013
|
const t = gn ? "scaleUpdated" : "scaleCreated", e = yd(r);
|
|
30014
|
-
gn = wb(e),
|
|
30014
|
+
gn = wb(e), xt.emit(t, gn);
|
|
30015
30015
|
}
|
|
30016
30016
|
let Fe = null, bd = null;
|
|
30017
30017
|
async function jR() {
|
|
@@ -30027,7 +30027,7 @@ async function jR() {
|
|
|
30027
30027
|
friction: 0.9
|
|
30028
30028
|
}).clampZoom({
|
|
30029
30029
|
minWidth: t.clientWidth / 2
|
|
30030
|
-
}), r.stage.addChild(Fe),
|
|
30030
|
+
}), r.stage.addChild(Fe), xt.emit("viewportCreated", Fe), xt.on("applicationResized", tM), xt.on("scaleUpdated", () => Hh()), QR();
|
|
30031
30031
|
}
|
|
30032
30032
|
function JR() {
|
|
30033
30033
|
Fe = null, bd = null;
|
|
@@ -30044,7 +30044,7 @@ async function pp({ animate: r } = {}) {
|
|
|
30044
30044
|
x: n + a / 2,
|
|
30045
30045
|
y: o + h / 2 - s
|
|
30046
30046
|
},
|
|
30047
|
-
scale: c,
|
|
30047
|
+
scale: Math.min(c, 1),
|
|
30048
30048
|
time: r ? e.animationDuration : 0,
|
|
30049
30049
|
ease: "easeInOutQuad",
|
|
30050
30050
|
removeOnInterrupt: !0,
|
|
@@ -30057,7 +30057,7 @@ async function $e() {
|
|
|
30057
30057
|
return Fe || await je("viewportCreated");
|
|
30058
30058
|
}
|
|
30059
30059
|
function Sb(r) {
|
|
30060
|
-
sb(bd, r) || (bd = r,
|
|
30060
|
+
sb(bd, r) || (bd = r, xt.emit("viewportDateRangeUpdated", r));
|
|
30061
30061
|
}
|
|
30062
30062
|
function $R({ xOffset: r, yOffset: t }) {
|
|
30063
30063
|
if (!Fe)
|
|
@@ -30141,7 +30141,7 @@ async function eM() {
|
|
|
30141
30141
|
const e = r.scale.x > ax, i = r.scale.x > ox;
|
|
30142
30142
|
Li == null || Li.toggle(e), Pi == null || Pi.toggle(i), Ai == null || Ai.cull(t.renderer.screen), r.dirty = !1;
|
|
30143
30143
|
}
|
|
30144
|
-
}),
|
|
30144
|
+
}), xt.emit("cullCreated", Ai);
|
|
30145
30145
|
}
|
|
30146
30146
|
function iM() {
|
|
30147
30147
|
Ai = null, Pi == null || Pi.clear(), Pi = null, Li == null || Li.clear(), Li = null;
|
|
@@ -30444,7 +30444,7 @@ const fM = /* @__PURE__ */ Do(pM), Pb = {
|
|
|
30444
30444
|
let bp = !1;
|
|
30445
30445
|
async function mM() {
|
|
30446
30446
|
const r = Object.values(Pb);
|
|
30447
|
-
await Promise.all(r.map((t) => gM(t))), bp = !0,
|
|
30447
|
+
await Promise.all(r.map((t) => gM(t))), bp = !0, xt.emit("fontsLoaded", Lb);
|
|
30448
30448
|
}
|
|
30449
30449
|
async function gM(r) {
|
|
30450
30450
|
const { fontFamily: t, ...e } = r, i = new fM(t);
|
|
@@ -30598,11 +30598,11 @@ function _p(r) {
|
|
|
30598
30598
|
if (zh || vp(r))
|
|
30599
30599
|
return;
|
|
30600
30600
|
if (yn = r, r === null) {
|
|
30601
|
-
|
|
30601
|
+
xt.emit("nodeSelected", null);
|
|
30602
30602
|
return;
|
|
30603
30603
|
}
|
|
30604
30604
|
const { id: t, kind: e } = r;
|
|
30605
|
-
|
|
30605
|
+
xt.emit("nodeSelected", { id: t, kind: e });
|
|
30606
30606
|
}
|
|
30607
30607
|
function vp(r) {
|
|
30608
30608
|
return (r == null ? void 0 : r.id) === (yn == null ? void 0 : yn.id);
|
|
@@ -30762,7 +30762,7 @@ async function RM() {
|
|
|
30762
30762
|
const a = s("");
|
|
30763
30763
|
n.addChild(a);
|
|
30764
30764
|
let h = await Ho(), l, u;
|
|
30765
|
-
|
|
30765
|
+
xt.on("scaleUpdated", (f) => h = f), r.ticker.add(() => {
|
|
30766
30766
|
e.disableGuides || (m(), n.height !== r.screen.height && d());
|
|
30767
30767
|
});
|
|
30768
30768
|
function c(f, g) {
|
|
@@ -30920,7 +30920,7 @@ const nh = {
|
|
|
30920
30920
|
async function FM() {
|
|
30921
30921
|
const r = await $e(), t = await Bi(), e = new Zt(), i = /* @__PURE__ */ new Map();
|
|
30922
30922
|
let s = await Ho();
|
|
30923
|
-
|
|
30923
|
+
xt.on("scaleUpdated", (d) => s = d), await o();
|
|
30924
30924
|
function n() {
|
|
30925
30925
|
if (e.visible = !t.disableGuides, !t.disableGuides)
|
|
30926
30926
|
try {
|
|
@@ -30993,19 +30993,19 @@ async function FM() {
|
|
|
30993
30993
|
}
|
|
30994
30994
|
async function NM() {
|
|
30995
30995
|
const r = await fi(), { element: t, render: e } = await FM();
|
|
30996
|
-
r.stage.addChild(t), e(),
|
|
30996
|
+
r.stage.addChild(t), e(), xt.on("viewportDateRangeUpdated", () => e()), xt.on("layoutSettingsUpdated", () => e()), xt.on("configUpdated", () => e());
|
|
30997
30997
|
}
|
|
30998
30998
|
const kM = 80;
|
|
30999
30999
|
async function DM() {
|
|
31000
31000
|
const r = await fi(), t = await $e(), e = await Bi(), i = await ge(), s = await xp();
|
|
31001
31001
|
let n = await Ho();
|
|
31002
|
-
|
|
31002
|
+
xt.on("scaleUpdated", (h) => n = h);
|
|
31003
31003
|
function o() {
|
|
31004
31004
|
if (!e.isTemporal()) {
|
|
31005
31005
|
s.visible = !1;
|
|
31006
31006
|
return;
|
|
31007
31007
|
}
|
|
31008
|
-
|
|
31008
|
+
s.width = i.styles.playheadWidth, s.height = r.stage.height, s.tint = i.styles.playheadColor, s.position.x = n(/* @__PURE__ */ new Date()) * t.scale.x + t.worldTransform.tx, a();
|
|
31009
31009
|
}
|
|
31010
31010
|
function a() {
|
|
31011
31011
|
if (t.moving || !(s.position.x > 0 && s.position.x < r.screen.width) || !(s.position.x > r.screen.width - kM))
|
|
@@ -31020,7 +31020,7 @@ async function DM() {
|
|
|
31020
31020
|
}
|
|
31021
31021
|
async function WM() {
|
|
31022
31022
|
const r = await fi(), t = await Tp(), { element: e, render: i } = await DM();
|
|
31023
|
-
t.end_time || (r.stage.addChild(e), r.ticker.add(i)),
|
|
31023
|
+
t.end_time || (r.stage.addChild(e), r.ticker.add(i)), xt.on("runDataUpdated", ({ end_time: s }) => {
|
|
31024
31024
|
s && (r.ticker.remove(i), r.stage.removeChild(e));
|
|
31025
31025
|
});
|
|
31026
31026
|
}
|
|
@@ -31028,7 +31028,7 @@ function OM({ stage: r, props: t }) {
|
|
|
31028
31028
|
ZC(), jR(), YR(), NM(), KM(), WM(), _x(), mM(), UC(r), Sx(t), eM(), $M(), wM();
|
|
31029
31029
|
}
|
|
31030
31030
|
function BM() {
|
|
31031
|
-
|
|
31031
|
+
xt.clear();
|
|
31032
31032
|
try {
|
|
31033
31033
|
VC(), JR(), zR(), XC(), HM(), Ex(), vx(), yM(), iM(), QM(), SM(), oM();
|
|
31034
31034
|
} catch (r) {
|
|
@@ -31040,7 +31040,7 @@ async function UM(r) {
|
|
|
31040
31040
|
let h = r, l = null, u = !1, c = !1;
|
|
31041
31041
|
i.add(n), n.eventMode = "static", n.cursor = "pointer", n.name = ex, n.on("click", (b) => {
|
|
31042
31042
|
b.stopPropagation(), _p(h);
|
|
31043
|
-
}), r.end_time || p(),
|
|
31043
|
+
}), r.end_time || p(), xt.on("nodeSelected", () => {
|
|
31044
31044
|
const b = vp(r);
|
|
31045
31045
|
b !== u && (u = b, o(h));
|
|
31046
31046
|
});
|
|
@@ -31095,28 +31095,37 @@ async function UM(r) {
|
|
|
31095
31095
|
}
|
|
31096
31096
|
function ag({ gap: r = 0, minimum: t = 0 } = {}) {
|
|
31097
31097
|
const e = /* @__PURE__ */ new Map();
|
|
31098
|
-
function i(
|
|
31099
|
-
const
|
|
31100
|
-
return Math.max(...
|
|
31098
|
+
function i(u) {
|
|
31099
|
+
const c = e.get(u) ?? [];
|
|
31100
|
+
return Math.max(...c.values(), jl(t)) + jl(r);
|
|
31101
31101
|
}
|
|
31102
|
-
function s(
|
|
31103
|
-
let
|
|
31104
|
-
for (let
|
|
31105
|
-
|
|
31106
|
-
return
|
|
31102
|
+
function s(u) {
|
|
31103
|
+
let c = 0;
|
|
31104
|
+
for (let d = 0; d < u; d++)
|
|
31105
|
+
c += i(d);
|
|
31106
|
+
return c;
|
|
31107
|
+
}
|
|
31108
|
+
function n(u) {
|
|
31109
|
+
return s(u + 1) - jl(r);
|
|
31107
31110
|
}
|
|
31108
|
-
function
|
|
31109
|
-
|
|
31111
|
+
function o({ axis: u, nodeId: c, offset: d }) {
|
|
31112
|
+
const p = e.get(u) ?? /* @__PURE__ */ new Map();
|
|
31113
|
+
p.set(c, d), e.set(u, p);
|
|
31110
31114
|
}
|
|
31111
|
-
function
|
|
31112
|
-
|
|
31113
|
-
|
|
31115
|
+
function a({ axis: u, nodeId: c }) {
|
|
31116
|
+
let d, p;
|
|
31117
|
+
for (const [m, f] of e.entries())
|
|
31118
|
+
if (f.has(c)) {
|
|
31119
|
+
d = m, p = f.get(c);
|
|
31120
|
+
break;
|
|
31121
|
+
}
|
|
31122
|
+
d === u || d === void 0 || p === void 0 || (h({ axis: d, nodeId: c }), o({ axis: u, nodeId: c, offset: p }));
|
|
31114
31123
|
}
|
|
31115
|
-
function
|
|
31116
|
-
var
|
|
31117
|
-
(
|
|
31124
|
+
function h({ axis: u, nodeId: c }) {
|
|
31125
|
+
var d;
|
|
31126
|
+
(d = e.get(u)) == null || d.delete(c);
|
|
31118
31127
|
}
|
|
31119
|
-
function
|
|
31128
|
+
function l() {
|
|
31120
31129
|
e.clear();
|
|
31121
31130
|
}
|
|
31122
31131
|
return {
|
|
@@ -31124,8 +31133,9 @@ function ag({ gap: r = 0, minimum: t = 0 } = {}) {
|
|
|
31124
31133
|
getTotalOffset: s,
|
|
31125
31134
|
getTotalValue: n,
|
|
31126
31135
|
setOffset: o,
|
|
31127
|
-
|
|
31128
|
-
|
|
31136
|
+
updateNodeAxis: a,
|
|
31137
|
+
removeOffset: h,
|
|
31138
|
+
clear: l
|
|
31129
31139
|
};
|
|
31130
31140
|
}
|
|
31131
31141
|
function XM(r) {
|
|
@@ -31157,9 +31167,11 @@ async function Ob() {
|
|
|
31157
31167
|
minimum: () => wp()
|
|
31158
31168
|
});
|
|
31159
31169
|
let h = null, l = null;
|
|
31160
|
-
i.name = dg,
|
|
31161
|
-
|
|
31162
|
-
}),
|
|
31170
|
+
i.name = dg, xt.on("layoutUpdated", () => {
|
|
31171
|
+
o.clear(), a.clear();
|
|
31172
|
+
}), xt.on("layoutSettingsUpdated", () => {
|
|
31173
|
+
l && i.parent && u(l), G();
|
|
31174
|
+
}), xt.on("nodeSelected", () => {
|
|
31163
31175
|
G();
|
|
31164
31176
|
});
|
|
31165
31177
|
async function u(L) {
|
|
@@ -31240,7 +31252,7 @@ async function Ob() {
|
|
|
31240
31252
|
continue;
|
|
31241
31253
|
}
|
|
31242
31254
|
const k = v(K);
|
|
31243
|
-
D.setPosition(k);
|
|
31255
|
+
D.setPosition(k), o.updateNodeAxis({ nodeId: L, axis: K.y }), a.updateNodeAxis({ nodeId: L, axis: K.column });
|
|
31244
31256
|
}
|
|
31245
31257
|
g(), i.emit("rendered"), i.emit("resized", I());
|
|
31246
31258
|
}
|
|
@@ -31354,11 +31366,11 @@ async function KM() {
|
|
|
31354
31366
|
r.addChild(e), e.alpha = 0;
|
|
31355
31367
|
const s = await iy(t.runId, async (n) => {
|
|
31356
31368
|
const o = _r ? "runDataUpdated" : "runDataCreated";
|
|
31357
|
-
_r = n,
|
|
31369
|
+
_r = n, xt.emit(o, _r), await Bi(), i(n);
|
|
31358
31370
|
});
|
|
31359
|
-
|
|
31371
|
+
xt.on("configUpdated", () => {
|
|
31360
31372
|
_r && i(_r);
|
|
31361
|
-
}), Ts = e, fo = s.stop, Ts.once("rendered", () => YM()),
|
|
31373
|
+
}), Ts = e, fo = s.stop, Ts.once("rendered", () => YM()), xt.on("layoutUpdated", () => zM()), s.start();
|
|
31362
31374
|
}
|
|
31363
31375
|
function HM() {
|
|
31364
31376
|
fo == null || fo(), fo = null, Ts = null, _r = null;
|
|
@@ -31467,7 +31479,7 @@ function sP(r) {
|
|
|
31467
31479
|
function cl() {
|
|
31468
31480
|
const r = vd() ? "layoutSettingsUpdated" : "layoutSettingsCreated", { horizontal: t, vertical: e } = gt;
|
|
31469
31481
|
return () => {
|
|
31470
|
-
vd() &&
|
|
31482
|
+
vd() && xt.emit(r, gt), (t !== gt.horizontal || e !== gt.vertical) && xt.emit("layoutUpdated");
|
|
31471
31483
|
};
|
|
31472
31484
|
}
|
|
31473
31485
|
function vd() {
|
|
@@ -31639,13 +31651,13 @@ const aP = { class: "run-graph__actions" }, pP = /* @__PURE__ */ lg({
|
|
|
31639
31651
|
s.value = u, t("update:fullscreen", u);
|
|
31640
31652
|
}
|
|
31641
31653
|
});
|
|
31642
|
-
$u(() => e.selected, (u) => _p(u)),
|
|
31654
|
+
$u(() => e.selected, (u) => _p(u)), xt.on("nodeSelected", (u) => t("update:selected", u)), $u(() => e.viewport, (u) => qR(u));
|
|
31643
31655
|
const o = oh(() => ({
|
|
31644
31656
|
root: {
|
|
31645
31657
|
"run-graph--fullscreen": n.value
|
|
31646
31658
|
}
|
|
31647
31659
|
}));
|
|
31648
|
-
|
|
31660
|
+
xt.on("viewportDateRangeUpdated", (u) => t("update:viewport", u));
|
|
31649
31661
|
function a() {
|
|
31650
31662
|
pp({ animate: !0 });
|
|
31651
31663
|
}
|