@wandelbots/wandelbots-js-react-components 1.24.0 → 1.24.2

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.js CHANGED
@@ -5774,10 +5774,10 @@ const Fs = un(
5774
5774
  });
5775
5775
  const l = Tt(null);
5776
5776
  function u(d) {
5777
- d.button === 0 && r("-");
5777
+ s || d.button === 0 && r("-");
5778
5778
  }
5779
5779
  function c(d) {
5780
- d.button === 0 && r("+");
5780
+ s || d.button === 0 && r("+");
5781
5781
  }
5782
5782
  return e || (e = {
5783
5783
  color: "#fff",
@@ -5791,7 +5791,6 @@ const Fs = un(
5791
5791
  onPointerDown: u,
5792
5792
  onPointerUp: a,
5793
5793
  onPointerOut: a,
5794
- disabled: s,
5795
5794
  size: "large",
5796
5795
  sx: {
5797
5796
  width: "55px",
@@ -5855,7 +5854,6 @@ const Fs = un(
5855
5854
  onPointerDown: c,
5856
5855
  onPointerUp: a,
5857
5856
  onPointerOut: a,
5858
- disabled: s,
5859
5857
  size: "large",
5860
5858
  sx: {
5861
5859
  width: "55px",
@@ -10966,7 +10964,7 @@ const bo = [
10966
10964
  class qo {
10967
10965
  constructor(t, n, r, a) {
10968
10966
  var s, i;
10969
- this.jogger = t, this.motionGroupSpec = n, this.coordSystems = r, this.tcps = a, this.selectedTabId = "cartesian", this.manualActivationRequired = !0, this.activationState = "inactive", this.activationError = null, this.locks = /* @__PURE__ */ new Set(), this.selectedCoordSystemId = "world", this.selectedTcpId = "", this.selectedOrientation = "coordsys", this.selectedIncrementId = "continuous", this.selectedCartesianMotionType = "translate", this.incrementJoggingInProgress = !1, this.translationVelocityMmPerSec = 10, this.rotationVelocityDegPerSec = 1, this.minTranslationVelocityMmPerSec = 5, this.maxTranslationVelocityMmPerSec = 250, this.minRotationVelocityDegPerSec = 1, this.maxRotationVelocityDegPerSec = 60, this.disposers = [];
10967
+ this.jogger = t, this.motionGroupSpec = n, this.coordSystems = r, this.tcps = a, this.selectedTabId = "cartesian", this.manualActivationRequired = !0, this.activationState = "inactive", this.activationError = null, this.activationCounter = 0, this.locks = /* @__PURE__ */ new Set(), this.selectedCoordSystemId = "world", this.selectedTcpId = "", this.selectedOrientation = "coordsys", this.selectedIncrementId = "continuous", this.selectedCartesianMotionType = "translate", this.incrementJoggingInProgress = !1, this.translationVelocityMmPerSec = 10, this.rotationVelocityDegPerSec = 1, this.minTranslationVelocityMmPerSec = 5, this.maxTranslationVelocityMmPerSec = 250, this.minRotationVelocityDegPerSec = 1, this.maxRotationVelocityDegPerSec = 60, this.disposers = [];
10970
10968
  for (const l of r)
10971
10969
  if (l.coordinate_system === "") {
10972
10970
  l.coordinate_system = "world";
@@ -11020,14 +11018,7 @@ class qo {
11020
11018
  }
11021
11019
  /** Activate the jogger with current settings */
11022
11020
  async activate(t = {}) {
11023
- const {
11024
- currentTab: n,
11025
- selectedTcpId: r,
11026
- activeCoordSystemId: a,
11027
- activeDiscreteIncrement: s,
11028
- jogger: i
11029
- } = this;
11030
- if (this.activationState !== "loading" && !(this.manualActivationRequired && !t.manual)) {
11021
+ if (console.log("activate!!"), !(this.manualActivationRequired && !t.manual)) {
11031
11022
  hr(() => {
11032
11023
  this.activationState = "loading", this.activationError = null;
11033
11024
  });
@@ -11036,23 +11027,23 @@ class qo {
11036
11027
  this.jogger.motionStream.controllerId,
11037
11028
  "MODE_CONTROL"
11038
11029
  );
11039
- } catch (l) {
11040
- console.error(l);
11030
+ } catch (n) {
11031
+ console.error(n);
11041
11032
  }
11042
- if (n.id === "cartesian") {
11043
- const l = {
11044
- tcpId: r,
11045
- coordSystemId: a
11033
+ if (this.currentTab.id === "cartesian") {
11034
+ const n = {
11035
+ tcpId: this.selectedTcpId,
11036
+ coordSystemId: this.activeCoordSystemId
11046
11037
  };
11047
- s ? i.setJoggingMode("increment", l) : i.setJoggingMode("cartesian", l);
11038
+ this.activeDiscreteIncrement ? this.jogger.setJoggingMode("increment", n) : this.jogger.setJoggingMode("cartesian", n);
11048
11039
  } else
11049
- i.setJoggingMode("joint");
11050
- if (i.activeWebsocket)
11040
+ this.jogger.setJoggingMode("joint");
11041
+ if (this.jogger.activeWebsocket)
11051
11042
  try {
11052
- i.stop(), await i.activeWebsocket.nextMessage();
11053
- } catch (l) {
11043
+ this.jogger.stop(), await this.jogger.activeWebsocket.nextMessage();
11044
+ } catch (n) {
11054
11045
  hr(() => {
11055
- this.activationState = "inactive", this.activationError = l;
11046
+ this.activationState = "inactive", this.activationError = n;
11056
11047
  });
11057
11048
  return;
11058
11049
  }
@@ -11246,13 +11237,13 @@ const yb = un(
11246
11237
  };
11247
11238
  }), Sl(
11248
11239
  () => [
11249
- e.currentTab,
11240
+ e.currentTab.id,
11250
11241
  e.selectedTcpId,
11251
11242
  e.activeCoordSystemId,
11252
11243
  e.activeDiscreteIncrement
11253
11244
  ],
11254
11245
  () => {
11255
- e.activationState === "active" && e.activate();
11246
+ e.activationState !== "inactive" && e.activate();
11256
11247
  }
11257
11248
  );
11258
11249
  function n() {