@prefecthq/prefect-ui-library 1.5.0 → 1.5.1
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-d9d3a498.mjs → index-ec802bdf.mjs} +3491 -3485
- package/dist/{index-d9d3a498.mjs.map → index-ec802bdf.mjs.map} +1 -1
- package/dist/prefect-ui-library.mjs +1 -1
- package/dist/prefect-ui-library.umd.js +41 -41
- package/dist/prefect-ui-library.umd.js.map +1 -1
- package/dist/{viewport.es-14935be0-cad7f008.mjs → viewport.es-87938ebd-23b84af0.mjs} +7 -7
- package/dist/{viewport.es-14935be0-cad7f008.mjs.map → viewport.es-87938ebd-23b84af0.mjs.map} +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { f as c, $ as b, X as O, c as k } from "./index-ec802bdf.mjs";
|
|
2
2
|
import "vue";
|
|
3
3
|
import "@prefecthq/vue-charts";
|
|
4
4
|
import "@prefecthq/prefect-design";
|
|
@@ -975,7 +975,7 @@ class G extends d {
|
|
|
975
975
|
this.snapping = null, super.resume();
|
|
976
976
|
}
|
|
977
977
|
}
|
|
978
|
-
const
|
|
978
|
+
const $ = {
|
|
979
979
|
percent: 0.1,
|
|
980
980
|
smooth: !1,
|
|
981
981
|
interrupt: !0,
|
|
@@ -989,7 +989,7 @@ const J = {
|
|
|
989
989
|
};
|
|
990
990
|
class N extends d {
|
|
991
991
|
constructor(t, e = {}) {
|
|
992
|
-
super(t), this.options = Object.assign({},
|
|
992
|
+
super(t), this.options = Object.assign({}, $, e), this.keyIsPressed = !1, this.options.keyToPress && this.handleKeyPresses(this.options.keyToPress);
|
|
993
993
|
}
|
|
994
994
|
handleKeyPresses(t) {
|
|
995
995
|
window.addEventListener("keydown", (e) => {
|
|
@@ -1078,7 +1078,7 @@ class N extends d {
|
|
|
1078
1078
|
return !this.parent.options.passiveWheel;
|
|
1079
1079
|
}
|
|
1080
1080
|
}
|
|
1081
|
-
class
|
|
1081
|
+
class J {
|
|
1082
1082
|
constructor(t) {
|
|
1083
1083
|
this.viewport = t, this.touches = [], this.addListeners();
|
|
1084
1084
|
}
|
|
@@ -1285,7 +1285,7 @@ class C extends k {
|
|
|
1285
1285
|
{ divWheel: document.body },
|
|
1286
1286
|
et,
|
|
1287
1287
|
t
|
|
1288
|
-
), 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
|
|
1288
|
+
), 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 J(this), this.plugins = new tt(this);
|
|
1289
1289
|
}
|
|
1290
1290
|
destroy(t) {
|
|
1291
1291
|
!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(t);
|
|
@@ -1525,7 +1525,7 @@ export {
|
|
|
1525
1525
|
V as Decelerate,
|
|
1526
1526
|
M as Drag,
|
|
1527
1527
|
j as Follow,
|
|
1528
|
-
|
|
1528
|
+
J as InputManager,
|
|
1529
1529
|
q as MouseEdges,
|
|
1530
1530
|
y as Pinch,
|
|
1531
1531
|
d as Plugin,
|
|
@@ -1535,4 +1535,4 @@ export {
|
|
|
1535
1535
|
C as Viewport,
|
|
1536
1536
|
N as Wheel
|
|
1537
1537
|
};
|
|
1538
|
-
//# sourceMappingURL=viewport.es-
|
|
1538
|
+
//# sourceMappingURL=viewport.es-87938ebd-23b84af0.mjs.map
|