@prefecthq/graphs 0.1.5 → 0.1.6
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 +74 -74
- package/dist/graphs.mjs.map +1 -1
- package/dist/graphs.umd.js +2 -2
- package/dist/graphs.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/graphs.mjs
CHANGED
|
@@ -13214,8 +13214,8 @@ function vv() {
|
|
|
13214
13214
|
});
|
|
13215
13215
|
});
|
|
13216
13216
|
}
|
|
13217
|
-
const
|
|
13218
|
-
function
|
|
13217
|
+
const ta = () => vv();
|
|
13218
|
+
function _v(r) {
|
|
13219
13219
|
const e = new Qo({
|
|
13220
13220
|
backgroundAlpha: 0,
|
|
13221
13221
|
width: r.clientWidth,
|
|
@@ -13258,20 +13258,20 @@ class Ct {
|
|
|
13258
13258
|
this.paused = !1;
|
|
13259
13259
|
}
|
|
13260
13260
|
}
|
|
13261
|
-
var
|
|
13262
|
-
function
|
|
13261
|
+
var mv = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
13262
|
+
function gv(r, e, t) {
|
|
13263
13263
|
return t = {
|
|
13264
13264
|
path: e,
|
|
13265
13265
|
exports: {},
|
|
13266
13266
|
require: function(i, n) {
|
|
13267
|
-
return
|
|
13267
|
+
return yv(i, n ?? t.path);
|
|
13268
13268
|
}
|
|
13269
13269
|
}, r(t, t.exports), t.exports;
|
|
13270
13270
|
}
|
|
13271
|
-
function
|
|
13271
|
+
function yv() {
|
|
13272
13272
|
throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs");
|
|
13273
13273
|
}
|
|
13274
|
-
var io =
|
|
13274
|
+
var io = gv(function(r, e) {
|
|
13275
13275
|
(function() {
|
|
13276
13276
|
var t, i;
|
|
13277
13277
|
i = function(n) {
|
|
@@ -13376,7 +13376,7 @@ var io = yv(function(r, e) {
|
|
|
13376
13376
|
return n < a / 2 ? (h = t.easeInBounce(n * 2, 0, o, a), h * 0.5 + s) : (h = t.easeOutBounce(n * 2 - a, 0, o, a), h * 0.5 + o * 0.5 + s);
|
|
13377
13377
|
}
|
|
13378
13378
|
}, i(t);
|
|
13379
|
-
}).call(
|
|
13379
|
+
}).call(mv);
|
|
13380
13380
|
});
|
|
13381
13381
|
function ar(r, e) {
|
|
13382
13382
|
if (r) {
|
|
@@ -13387,7 +13387,7 @@ function ar(r, e) {
|
|
|
13387
13387
|
} else
|
|
13388
13388
|
return io[e];
|
|
13389
13389
|
}
|
|
13390
|
-
const
|
|
13390
|
+
const xv = {
|
|
13391
13391
|
removeOnInterrupt: !1,
|
|
13392
13392
|
ease: "linear",
|
|
13393
13393
|
time: 1e3
|
|
@@ -13415,7 +13415,7 @@ class Zt extends Ct {
|
|
|
13415
13415
|
this.time = 0;
|
|
13416
13416
|
}
|
|
13417
13417
|
constructor(e, t = {}) {
|
|
13418
|
-
super(e), Zt.prototype.__init.call(this), Zt.prototype.__init2.call(this), Zt.prototype.__init3.call(this), Zt.prototype.__init4.call(this), Zt.prototype.__init5.call(this), Zt.prototype.__init6.call(this), Zt.prototype.__init7.call(this), this.options = Object.assign({},
|
|
13418
|
+
super(e), Zt.prototype.__init.call(this), Zt.prototype.__init2.call(this), Zt.prototype.__init3.call(this), Zt.prototype.__init4.call(this), Zt.prototype.__init5.call(this), Zt.prototype.__init6.call(this), Zt.prototype.__init7.call(this), this.options = Object.assign({}, xv, t), this.options.ease = ar(this.options.ease), this.setupPosition(), this.setupZoom(), this.time = 0;
|
|
13419
13419
|
}
|
|
13420
13420
|
setupPosition() {
|
|
13421
13421
|
typeof this.options.position < "u" ? (this.startX = this.parent.center.x, this.startY = this.parent.center.y, this.deltaX = this.options.position.x - this.parent.center.x, this.deltaY = this.options.position.y - this.parent.center.y, this.keepCenter = !1) : this.keepCenter = !0;
|
|
@@ -13473,7 +13473,7 @@ function ki(r) {
|
|
|
13473
13473
|
}
|
|
13474
13474
|
return t;
|
|
13475
13475
|
}
|
|
13476
|
-
const
|
|
13476
|
+
const bv = {
|
|
13477
13477
|
sides: "all",
|
|
13478
13478
|
friction: 0.5,
|
|
13479
13479
|
time: 150,
|
|
@@ -13481,9 +13481,9 @@ const Tv = {
|
|
|
13481
13481
|
underflow: "center",
|
|
13482
13482
|
bounceBox: null
|
|
13483
13483
|
};
|
|
13484
|
-
class
|
|
13484
|
+
class Tv extends Ct {
|
|
13485
13485
|
constructor(e, t = {}) {
|
|
13486
|
-
super(e), this.options = Object.assign({},
|
|
13486
|
+
super(e), this.options = Object.assign({}, bv, t), this.ease = ar(this.options.ease, "easeInOutSine"), this.options.sides ? this.options.sides === "all" ? this.top = this.bottom = this.left = this.right = !0 : this.options.sides === "horizontal" ? (this.right = this.left = !0, this.top = this.bottom = !1) : this.options.sides === "vertical" ? (this.left = this.right = !1, this.top = this.bottom = !0) : (this.top = this.options.sides.indexOf("top") !== -1, this.bottom = this.options.sides.indexOf("bottom") !== -1, this.left = this.options.sides.indexOf("left") !== -1, this.right = this.options.sides.indexOf("right") !== -1) : this.left = this.top = this.right = this.bottom = !1;
|
|
13487
13487
|
const i = this.options.underflow.toLowerCase();
|
|
13488
13488
|
i === "center" ? (this.underflowX = 0, this.underflowY = 0) : (this.underflowX = i.indexOf("left") !== -1 ? -1 : i.indexOf("right") !== -1 ? 1 : 0, this.underflowY = i.indexOf("top") !== -1 ? -1 : i.indexOf("bottom") !== -1 ? 1 : 0), this.reset();
|
|
13489
13489
|
}
|
|
@@ -13590,7 +13590,7 @@ class wv extends Ct {
|
|
|
13590
13590
|
this.toX = this.toY = null, this.bounce();
|
|
13591
13591
|
}
|
|
13592
13592
|
}
|
|
13593
|
-
const
|
|
13593
|
+
const wv = {
|
|
13594
13594
|
left: !1,
|
|
13595
13595
|
right: !1,
|
|
13596
13596
|
top: !1,
|
|
@@ -13598,9 +13598,9 @@ const Ev = {
|
|
|
13598
13598
|
direction: null,
|
|
13599
13599
|
underflow: "center"
|
|
13600
13600
|
};
|
|
13601
|
-
class
|
|
13601
|
+
class Ev extends Ct {
|
|
13602
13602
|
constructor(e, t = {}) {
|
|
13603
|
-
super(e), this.options = Object.assign({},
|
|
13603
|
+
super(e), this.options = Object.assign({}, wv, t), this.options.direction && (this.options.left = this.options.direction === "x" || this.options.direction === "all" ? !0 : null, this.options.right = this.options.direction === "x" || this.options.direction === "all" ? !0 : null, this.options.top = this.options.direction === "y" || this.options.direction === "all" ? !0 : null, this.options.bottom = this.options.direction === "y" || this.options.direction === "all" ? !0 : null), this.parseUnderflow(), this.last = { x: null, y: null, scaleX: null, scaleY: null }, this.update();
|
|
13604
13604
|
}
|
|
13605
13605
|
parseUnderflow() {
|
|
13606
13606
|
const e = this.options.underflow.toLowerCase();
|
|
@@ -13653,7 +13653,7 @@ class Sv extends Ct {
|
|
|
13653
13653
|
this.update();
|
|
13654
13654
|
}
|
|
13655
13655
|
}
|
|
13656
|
-
const
|
|
13656
|
+
const Sv = {
|
|
13657
13657
|
minWidth: null,
|
|
13658
13658
|
minHeight: null,
|
|
13659
13659
|
maxWidth: null,
|
|
@@ -13661,9 +13661,9 @@ const Pv = {
|
|
|
13661
13661
|
minScale: null,
|
|
13662
13662
|
maxScale: null
|
|
13663
13663
|
};
|
|
13664
|
-
class
|
|
13664
|
+
class Pv extends Ct {
|
|
13665
13665
|
constructor(e, t = {}) {
|
|
13666
|
-
super(e), this.options = Object.assign({},
|
|
13666
|
+
super(e), this.options = Object.assign({}, Sv, t), this.clamp();
|
|
13667
13667
|
}
|
|
13668
13668
|
resize() {
|
|
13669
13669
|
this.clamp();
|
|
@@ -13711,14 +13711,14 @@ class Cv extends Ct {
|
|
|
13711
13711
|
this.clamp();
|
|
13712
13712
|
}
|
|
13713
13713
|
}
|
|
13714
|
-
const
|
|
13714
|
+
const Cv = {
|
|
13715
13715
|
friction: 0.98,
|
|
13716
13716
|
bounce: 0.8,
|
|
13717
13717
|
minSpeed: 0.01
|
|
13718
13718
|
}, re = 16;
|
|
13719
|
-
class
|
|
13719
|
+
class Av extends Ct {
|
|
13720
13720
|
constructor(e, t = {}) {
|
|
13721
|
-
super(e), this.options = Object.assign({},
|
|
13721
|
+
super(e), this.options = Object.assign({}, Cv, t), this.saved = [], this.timeSinceRelease = 0, this.reset(), this.parent.on("moved", (i) => this.moved(i));
|
|
13722
13722
|
}
|
|
13723
13723
|
down() {
|
|
13724
13724
|
return this.saved = [], this.x = this.y = null, !1;
|
|
@@ -13771,7 +13771,7 @@ class Rv extends Ct {
|
|
|
13771
13771
|
this.x = this.y = null;
|
|
13772
13772
|
}
|
|
13773
13773
|
}
|
|
13774
|
-
const
|
|
13774
|
+
const Rv = {
|
|
13775
13775
|
direction: "all",
|
|
13776
13776
|
pressDrag: !0,
|
|
13777
13777
|
wheel: !0,
|
|
@@ -13791,7 +13791,7 @@ class Bn extends Ct {
|
|
|
13791
13791
|
this.windowEventHandlers = new Array();
|
|
13792
13792
|
}
|
|
13793
13793
|
constructor(e, t = {}) {
|
|
13794
|
-
super(e), Bn.prototype.__init.call(this), this.options = Object.assign({},
|
|
13794
|
+
super(e), Bn.prototype.__init.call(this), this.options = Object.assign({}, Rv, t), this.moved = !1, this.reverse = this.options.reverse ? 1 : -1, this.xDirection = !this.options.direction || this.options.direction === "all" || this.options.direction === "x", this.yDirection = !this.options.direction || this.options.direction === "all" || this.options.direction === "y", this.keyIsPressed = !1, this.parseUnderflow(), this.mouseButtons(this.options.mouseButtons), this.options.keyToPress && this.handleKeyPresses(this.options.keyToPress);
|
|
13795
13795
|
}
|
|
13796
13796
|
handleKeyPresses(e) {
|
|
13797
13797
|
const t = (n) => {
|
|
@@ -13919,14 +13919,14 @@ class Bn extends Ct {
|
|
|
13919
13919
|
this.parent.top < 0 && (this.parent.y = 0, e.y = 0), this.parent.bottom > this.parent.worldHeight && (this.parent.y = -this.parent.worldHeight * this.parent.scale.y + this.parent.screenHeight, e.y = 0);
|
|
13920
13920
|
}
|
|
13921
13921
|
}
|
|
13922
|
-
const
|
|
13922
|
+
const Iv = {
|
|
13923
13923
|
speed: 0,
|
|
13924
13924
|
acceleration: null,
|
|
13925
13925
|
radius: null
|
|
13926
13926
|
};
|
|
13927
|
-
class
|
|
13927
|
+
class Ov extends Ct {
|
|
13928
13928
|
constructor(e, t, i = {}) {
|
|
13929
|
-
super(e), this.target = t, this.options = Object.assign({},
|
|
13929
|
+
super(e), this.target = t, this.options = Object.assign({}, Iv, i), this.velocity = { x: 0, y: 0 };
|
|
13930
13930
|
}
|
|
13931
13931
|
update(e) {
|
|
13932
13932
|
if (this.paused)
|
|
@@ -13964,7 +13964,7 @@ class Mv extends Ct {
|
|
|
13964
13964
|
this.parent.moveCenter(i, n), this.parent.emit("moved", { viewport: this.parent, type: "follow" });
|
|
13965
13965
|
}
|
|
13966
13966
|
}
|
|
13967
|
-
const
|
|
13967
|
+
const Mv = {
|
|
13968
13968
|
radius: null,
|
|
13969
13969
|
distance: null,
|
|
13970
13970
|
top: null,
|
|
@@ -13977,9 +13977,9 @@ const Dv = {
|
|
|
13977
13977
|
linear: !1,
|
|
13978
13978
|
allowButtons: !1
|
|
13979
13979
|
};
|
|
13980
|
-
class
|
|
13980
|
+
class Dv extends Ct {
|
|
13981
13981
|
constructor(e, t = {}) {
|
|
13982
|
-
super(e), this.options = Object.assign({},
|
|
13982
|
+
super(e), this.options = Object.assign({}, Mv, t), this.reverse = this.options.reverse ? 1 : -1, this.radiusSquared = typeof this.options.radius == "number" ? Math.pow(this.options.radius, 2) : null, this.resize();
|
|
13983
13983
|
}
|
|
13984
13984
|
resize() {
|
|
13985
13985
|
const e = this.options.distance;
|
|
@@ -14021,7 +14021,7 @@ class Fv extends Ct {
|
|
|
14021
14021
|
}
|
|
14022
14022
|
}
|
|
14023
14023
|
}
|
|
14024
|
-
const
|
|
14024
|
+
const Fv = {
|
|
14025
14025
|
noDrag: !1,
|
|
14026
14026
|
percent: 1,
|
|
14027
14027
|
center: null,
|
|
@@ -14039,7 +14039,7 @@ class Ke extends Ct {
|
|
|
14039
14039
|
this.moved = !1;
|
|
14040
14040
|
}
|
|
14041
14041
|
constructor(e, t = {}) {
|
|
14042
|
-
super(e), Ke.prototype.__init.call(this), Ke.prototype.__init2.call(this), Ke.prototype.__init3.call(this), this.options = Object.assign({},
|
|
14042
|
+
super(e), Ke.prototype.__init.call(this), Ke.prototype.__init2.call(this), Ke.prototype.__init3.call(this), this.options = Object.assign({}, Fv, t);
|
|
14043
14043
|
}
|
|
14044
14044
|
down() {
|
|
14045
14045
|
return this.parent.input.count() >= 2 ? (this.active = !0, !0) : !1;
|
|
@@ -14088,7 +14088,7 @@ class Ke extends Ct {
|
|
|
14088
14088
|
return this.pinching && this.parent.input.touches.length <= 1 ? (this.active = !1, this.lastCenter = null, this.pinching = !1, this.moved = !1, this.parent.emit("pinch-end", this.parent), !0) : !1;
|
|
14089
14089
|
}
|
|
14090
14090
|
}
|
|
14091
|
-
const
|
|
14091
|
+
const Nv = {
|
|
14092
14092
|
topLeft: !1,
|
|
14093
14093
|
friction: 0.8,
|
|
14094
14094
|
time: 1e3,
|
|
@@ -14098,9 +14098,9 @@ const Bv = {
|
|
|
14098
14098
|
removeOnInterrupt: !1,
|
|
14099
14099
|
forceStart: !1
|
|
14100
14100
|
};
|
|
14101
|
-
class
|
|
14101
|
+
class Bv extends Ct {
|
|
14102
14102
|
constructor(e, t, i, n = {}) {
|
|
14103
|
-
super(e), this.options = Object.assign({},
|
|
14103
|
+
super(e), this.options = Object.assign({}, Nv, n), this.ease = ar(n.ease, "easeInOutSine"), this.x = t, this.y = i, this.options.forceStart && this.snapStart();
|
|
14104
14104
|
}
|
|
14105
14105
|
snapStart() {
|
|
14106
14106
|
this.percent = 0, this.snapping = { time: 0 };
|
|
@@ -14140,7 +14140,7 @@ class Lv extends Ct {
|
|
|
14140
14140
|
}
|
|
14141
14141
|
}
|
|
14142
14142
|
}
|
|
14143
|
-
const
|
|
14143
|
+
const Lv = {
|
|
14144
14144
|
width: 0,
|
|
14145
14145
|
height: 0,
|
|
14146
14146
|
time: 1e3,
|
|
@@ -14152,9 +14152,9 @@ const Uv = {
|
|
|
14152
14152
|
forceStart: !1,
|
|
14153
14153
|
noMove: !1
|
|
14154
14154
|
};
|
|
14155
|
-
class
|
|
14155
|
+
class Uv extends Ct {
|
|
14156
14156
|
constructor(e, t = {}) {
|
|
14157
|
-
super(e), this.options = Object.assign({},
|
|
14157
|
+
super(e), this.options = Object.assign({}, Lv, t), this.ease = ar(this.options.ease), this.xIndependent = !1, this.yIndependent = !1, this.xScale = 0, this.yScale = 0, this.options.width > 0 && (this.xScale = e.screenWidth / this.options.width, this.xIndependent = !0), this.options.height > 0 && (this.yScale = e.screenHeight / this.options.height, this.yIndependent = !0), this.xScale = this.xIndependent ? this.xScale : this.yScale, this.yScale = this.yIndependent ? this.yScale : this.xScale, this.options.time === 0 ? (e.container.scale.x = this.xScale, e.container.scale.y = this.yScale, this.options.removeOnComplete && this.parent.plugins.remove("snap-zoom")) : t.forceStart && this.createSnapping();
|
|
14158
14158
|
}
|
|
14159
14159
|
createSnapping() {
|
|
14160
14160
|
const e = this.parent.worldScreenWidth, t = this.parent.worldScreenHeight, i = this.parent.screenWidth / this.xScale, n = this.parent.screenHeight / this.yScale;
|
|
@@ -14197,7 +14197,7 @@ class Gv extends Ct {
|
|
|
14197
14197
|
this.snapping = null, super.resume();
|
|
14198
14198
|
}
|
|
14199
14199
|
}
|
|
14200
|
-
const
|
|
14200
|
+
const Gv = {
|
|
14201
14201
|
percent: 0.1,
|
|
14202
14202
|
smooth: !1,
|
|
14203
14203
|
interrupt: !0,
|
|
@@ -14209,9 +14209,9 @@ const kv = {
|
|
|
14209
14209
|
trackpadPinch: !1,
|
|
14210
14210
|
wheelZoom: !0
|
|
14211
14211
|
};
|
|
14212
|
-
class
|
|
14212
|
+
class kv extends Ct {
|
|
14213
14213
|
constructor(e, t = {}) {
|
|
14214
|
-
super(e), this.options = Object.assign({},
|
|
14214
|
+
super(e), this.options = Object.assign({}, Gv, t), this.keyIsPressed = !1, this.options.keyToPress && this.handleKeyPresses(this.options.keyToPress);
|
|
14215
14215
|
}
|
|
14216
14216
|
handleKeyPresses(e) {
|
|
14217
14217
|
window.addEventListener("keydown", (t) => {
|
|
@@ -14300,7 +14300,7 @@ class Hv extends Ct {
|
|
|
14300
14300
|
return !this.parent.options.passiveWheel;
|
|
14301
14301
|
}
|
|
14302
14302
|
}
|
|
14303
|
-
class
|
|
14303
|
+
class Hv {
|
|
14304
14304
|
constructor(e) {
|
|
14305
14305
|
this.viewport = e, this.touches = [], this.addListeners();
|
|
14306
14306
|
}
|
|
@@ -14414,7 +14414,7 @@ const qe = [
|
|
|
14414
14414
|
"snap",
|
|
14415
14415
|
"clamp"
|
|
14416
14416
|
];
|
|
14417
|
-
class
|
|
14417
|
+
class Xv {
|
|
14418
14418
|
constructor(e) {
|
|
14419
14419
|
this.viewport = e, this.list = [], this.plugins = {};
|
|
14420
14420
|
}
|
|
@@ -14483,7 +14483,7 @@ class Wv {
|
|
|
14483
14483
|
return t;
|
|
14484
14484
|
}
|
|
14485
14485
|
}
|
|
14486
|
-
const
|
|
14486
|
+
const Wv = {
|
|
14487
14487
|
screenWidth: window.innerWidth,
|
|
14488
14488
|
screenHeight: window.innerHeight,
|
|
14489
14489
|
worldWidth: null,
|
|
@@ -14505,9 +14505,9 @@ class Ln extends Et {
|
|
|
14505
14505
|
super(), Ln.prototype.__init.call(this), this.options = Object.assign(
|
|
14506
14506
|
{},
|
|
14507
14507
|
{ divWheel: document.body },
|
|
14508
|
-
|
|
14508
|
+
Wv,
|
|
14509
14509
|
e
|
|
14510
|
-
), this.screenWidth = this.options.screenWidth, this.screenHeight = this.options.screenHeight, this._worldWidth = this.options.worldWidth, this._worldHeight = this.options.worldHeight, this.forceHitArea = this.options.forceHitArea, this.threshold = this.options.threshold, this.options.divWheel = this.options.divWheel || document.body, this.options.disableOnContextMenu && this.options.divWheel.addEventListener("contextmenu", this._disableOnContextMenu), this.options.noTicker || (this.tickerFunction = () => this.update(this.options.ticker.elapsedMS), this.options.ticker.add(this.tickerFunction)), this.input = new
|
|
14510
|
+
), this.screenWidth = this.options.screenWidth, this.screenHeight = this.options.screenHeight, this._worldWidth = this.options.worldWidth, this._worldHeight = this.options.worldHeight, this.forceHitArea = this.options.forceHitArea, this.threshold = this.options.threshold, this.options.divWheel = this.options.divWheel || document.body, this.options.disableOnContextMenu && this.options.divWheel.addEventListener("contextmenu", this._disableOnContextMenu), this.options.noTicker || (this.tickerFunction = () => this.update(this.options.ticker.elapsedMS), this.options.ticker.add(this.tickerFunction)), this.input = new Hv(this), this.plugins = new Xv(this);
|
|
14511
14511
|
}
|
|
14512
14512
|
destroy(e) {
|
|
14513
14513
|
!this.options.noTicker && this.tickerFunction && this.options.ticker.remove(this.tickerFunction), this.options.disableOnContextMenu && this.options.divWheel.removeEventListener("contextmenu", this._disableOnContextMenu), this.input.destroy(), super.destroy(e);
|
|
@@ -14644,7 +14644,7 @@ class Ln extends Et {
|
|
|
14644
14644
|
this.setZoom(e, !0);
|
|
14645
14645
|
}
|
|
14646
14646
|
snapZoom(e) {
|
|
14647
|
-
return this.plugins.add("snap-zoom", new
|
|
14647
|
+
return this.plugins.add("snap-zoom", new Uv(this, e)), this;
|
|
14648
14648
|
}
|
|
14649
14649
|
OOB() {
|
|
14650
14650
|
return {
|
|
@@ -14698,34 +14698,34 @@ class Ln extends Et {
|
|
|
14698
14698
|
return this.plugins.add("drag", new Bn(this, e)), this;
|
|
14699
14699
|
}
|
|
14700
14700
|
clamp(e) {
|
|
14701
|
-
return this.plugins.add("clamp", new
|
|
14701
|
+
return this.plugins.add("clamp", new Ev(this, e)), this;
|
|
14702
14702
|
}
|
|
14703
14703
|
decelerate(e) {
|
|
14704
|
-
return this.plugins.add("decelerate", new
|
|
14704
|
+
return this.plugins.add("decelerate", new Av(this, e)), this;
|
|
14705
14705
|
}
|
|
14706
14706
|
bounce(e) {
|
|
14707
|
-
return this.plugins.add("bounce", new
|
|
14707
|
+
return this.plugins.add("bounce", new Tv(this, e)), this;
|
|
14708
14708
|
}
|
|
14709
14709
|
pinch(e) {
|
|
14710
14710
|
return this.plugins.add("pinch", new Ke(this, e)), this;
|
|
14711
14711
|
}
|
|
14712
14712
|
snap(e, t, i) {
|
|
14713
|
-
return this.plugins.add("snap", new
|
|
14713
|
+
return this.plugins.add("snap", new Bv(this, e, t, i)), this;
|
|
14714
14714
|
}
|
|
14715
14715
|
follow(e, t) {
|
|
14716
|
-
return this.plugins.add("follow", new
|
|
14716
|
+
return this.plugins.add("follow", new Ov(this, e, t)), this;
|
|
14717
14717
|
}
|
|
14718
14718
|
wheel(e) {
|
|
14719
|
-
return this.plugins.add("wheel", new
|
|
14719
|
+
return this.plugins.add("wheel", new kv(this, e)), this;
|
|
14720
14720
|
}
|
|
14721
14721
|
animate(e) {
|
|
14722
14722
|
return this.plugins.add("animate", new Zt(this, e)), this;
|
|
14723
14723
|
}
|
|
14724
14724
|
clampZoom(e) {
|
|
14725
|
-
return this.plugins.add("clamp-zoom", new
|
|
14725
|
+
return this.plugins.add("clamp-zoom", new Pv(this, e)), this;
|
|
14726
14726
|
}
|
|
14727
14727
|
mouseEdges(e) {
|
|
14728
|
-
return this.plugins.add("mouse-edges", new
|
|
14728
|
+
return this.plugins.add("mouse-edges", new Dv(this, e)), this;
|
|
14729
14729
|
}
|
|
14730
14730
|
get pause() {
|
|
14731
14731
|
return !!this._pause;
|
|
@@ -14739,7 +14739,7 @@ class Ln extends Et {
|
|
|
14739
14739
|
e < this.left ? (this.left = e, o = !0) : e + i > this.right && (this.right = e + i, o = !0), t < this.top ? (this.top = t, o = !0) : t + n > this.bottom && (this.bottom = t + n, o = !0), o && this.emit("moved", { viewport: this, type: "ensureVisible" });
|
|
14740
14740
|
}
|
|
14741
14741
|
}
|
|
14742
|
-
function
|
|
14742
|
+
function jv(r, e) {
|
|
14743
14743
|
const t = r.clientWidth, i = r.clientHeight, n = new Ln({
|
|
14744
14744
|
screenWidth: t,
|
|
14745
14745
|
screenHeight: i,
|
|
@@ -14761,7 +14761,7 @@ function zv(r, e) {
|
|
|
14761
14761
|
}), e.stage.addChild(n), n;
|
|
14762
14762
|
}
|
|
14763
14763
|
let kt = {};
|
|
14764
|
-
const
|
|
14764
|
+
const zv = 80, Yv = 260;
|
|
14765
14765
|
let ea = 10, xe = 1e3 * 30;
|
|
14766
14766
|
const In = 4e3, q = {
|
|
14767
14767
|
second: 1e3,
|
|
@@ -14839,27 +14839,27 @@ const In = 4e3, q = {
|
|
|
14839
14839
|
span: q.week * 4
|
|
14840
14840
|
}
|
|
14841
14841
|
];
|
|
14842
|
-
function
|
|
14842
|
+
function Vv(r) {
|
|
14843
14843
|
if (!r.stage) {
|
|
14844
14844
|
console.error("TimelineGuides: stage is undefined");
|
|
14845
14845
|
return;
|
|
14846
14846
|
}
|
|
14847
14847
|
const { stage: e, app: t } = r;
|
|
14848
14848
|
ra(r), ea = Math.ceil(
|
|
14849
|
-
e.clientWidth / (
|
|
14849
|
+
e.clientWidth / (Yv - zv / 2)
|
|
14850
14850
|
), t.ticker.add(() => {
|
|
14851
|
-
|
|
14851
|
+
qv(r);
|
|
14852
14852
|
});
|
|
14853
14853
|
}
|
|
14854
|
-
function
|
|
14854
|
+
function qv(r) {
|
|
14855
14855
|
const { isRunning: e, xScale: t } = r, i = xe;
|
|
14856
14856
|
ra(r);
|
|
14857
14857
|
const n = Object.keys(kt)[Object.keys(kt).length - 1];
|
|
14858
14858
|
i !== xe || e && kt[n].x + xe < t(new Date()) + In ? (Object.keys(kt).length > 0 && (Object.keys(kt).forEach((s) => {
|
|
14859
14859
|
kt[s].destroy();
|
|
14860
|
-
}), kt = {}),
|
|
14860
|
+
}), kt = {}), $v(r)) : Kv(r);
|
|
14861
14861
|
}
|
|
14862
|
-
function
|
|
14862
|
+
function $v(r) {
|
|
14863
14863
|
const {
|
|
14864
14864
|
timelineGuidesContainer: e,
|
|
14865
14865
|
dateScale: t,
|
|
@@ -14868,11 +14868,11 @@ function Zv(r) {
|
|
|
14868
14868
|
let n;
|
|
14869
14869
|
const s = t(i + In);
|
|
14870
14870
|
for (n = new Date(Math.ceil(t(-In) / xe) * xe); n.getTime() < s; ) {
|
|
14871
|
-
const a =
|
|
14871
|
+
const a = Zv(n, r);
|
|
14872
14872
|
kt[n.getTime()] = a, e.addChild(a), n = new Date(n.getTime() + xe);
|
|
14873
14873
|
}
|
|
14874
14874
|
}
|
|
14875
|
-
function
|
|
14875
|
+
function Zv(r, e) {
|
|
14876
14876
|
const { app: t, textStyles: i } = e, n = new Et();
|
|
14877
14877
|
n.position.set(ia(r, e), 0);
|
|
14878
14878
|
const s = new Ee();
|
|
@@ -14885,7 +14885,7 @@ function Kv(r, e) {
|
|
|
14885
14885
|
const o = new bn(r.toLocaleTimeString(), i.timeMarkerLabel);
|
|
14886
14886
|
return o.position.set(4, 4), n.addChild(s), n.addChild(o), n;
|
|
14887
14887
|
}
|
|
14888
|
-
function
|
|
14888
|
+
function Kv(r) {
|
|
14889
14889
|
Object.keys(kt).forEach((e) => {
|
|
14890
14890
|
kt[e].position.set(ia(new Date(Number(e)), r), 0);
|
|
14891
14891
|
});
|
|
@@ -14961,7 +14961,7 @@ class so extends Et {
|
|
|
14961
14961
|
t !== this.nodeWidth && (this.nodeWidth = t, this.box.clear(), this.drawBox(), (!this.isLabelInBox || this.apxLabelWidth > this.nodeWidth) && this.drawLabel()), this.updatePosition();
|
|
14962
14962
|
}
|
|
14963
14963
|
}
|
|
14964
|
-
function
|
|
14964
|
+
function Qv(r) {
|
|
14965
14965
|
let e, t;
|
|
14966
14966
|
return r.forEach((i) => {
|
|
14967
14967
|
(e === void 0 || e > i.start || isNaN(i.start.getDate())) && (e = i.start), i.end !== null && (t === void 0 || t < i.end || isNaN(i.end.getDate())) && (t = i.end);
|
|
@@ -14970,7 +14970,7 @@ function Jv(r) {
|
|
|
14970
14970
|
max: t ?? new Date(NaN)
|
|
14971
14971
|
};
|
|
14972
14972
|
}
|
|
14973
|
-
const
|
|
14973
|
+
const Jv = { class: "flow-run-timeline" }, t_ = { class: "flow-run-timeline__zoom-controls" }, r_ = /* @__PURE__ */ oa({
|
|
14974
14974
|
__name: "FlowRunTimeline",
|
|
14975
14975
|
props: {
|
|
14976
14976
|
graphData: null,
|
|
@@ -14991,8 +14991,8 @@ const t_ = { class: "flow-run-timeline" }, e_ = { class: "flow-run-timeline__zoo
|
|
|
14991
14991
|
console.error("Stage reference not found in initPixiApp");
|
|
14992
14992
|
return;
|
|
14993
14993
|
}
|
|
14994
|
-
_(), s =
|
|
14995
|
-
a = E,
|
|
14994
|
+
_(), s = _v(t.value), g(), o = jv(t.value, s), ta().then((E) => {
|
|
14995
|
+
a = E, Vv({
|
|
14996
14996
|
app: s,
|
|
14997
14997
|
viewport: o,
|
|
14998
14998
|
stage: t.value,
|
|
@@ -15021,7 +15021,7 @@ const t_ = { class: "flow-run-timeline" }, e_ = { class: "flow-run-timeline__zoo
|
|
|
15021
15021
|
start: new Date(),
|
|
15022
15022
|
end: new Date()
|
|
15023
15023
|
});
|
|
15024
|
-
const { min: D, max: N } =
|
|
15024
|
+
const { min: D, max: N } = Qv(E);
|
|
15025
15025
|
l = D, f.value = N, c = (X = t.value) != null && X.clientWidth ? t.value.clientWidth * 2 : 2e3;
|
|
15026
15026
|
}
|
|
15027
15027
|
const m = ua(() => {
|
|
@@ -15106,8 +15106,8 @@ const t_ = { class: "flow-run-timeline" }, e_ = { class: "flow-run-timeline__zoo
|
|
|
15106
15106
|
}
|
|
15107
15107
|
return (E, D) => {
|
|
15108
15108
|
const N = fa("p-button");
|
|
15109
|
-
return ca(), da("div",
|
|
15110
|
-
Xn("div",
|
|
15109
|
+
return ca(), da("div", Jv, [
|
|
15110
|
+
Xn("div", t_, [
|
|
15111
15111
|
Wn(N, {
|
|
15112
15112
|
icon: "MinusIcon",
|
|
15113
15113
|
inset: "",
|
|
@@ -15133,6 +15133,6 @@ const t_ = { class: "flow-run-timeline" }, e_ = { class: "flow-run-timeline__zoo
|
|
|
15133
15133
|
}
|
|
15134
15134
|
});
|
|
15135
15135
|
export {
|
|
15136
|
-
|
|
15136
|
+
r_ as FlowRunTimeline
|
|
15137
15137
|
};
|
|
15138
15138
|
//# sourceMappingURL=graphs.mjs.map
|