From 2c919c6f2f25ec3385573543fd1f69bef9d27d6b Mon Sep 17 00:00:00 2001 From: HelgeKeck Date: Mon, 25 Sep 2023 17:11:39 +0200 Subject: [PATCH] feature removed that need special klipper modifications to work --- .../webcams/MjpegstreamerAdaptive.vue | 43 +------------------ 1 file changed, 1 insertion(+), 42 deletions(-) diff --git a/src/components/webcams/MjpegstreamerAdaptive.vue b/src/components/webcams/MjpegstreamerAdaptive.vue index c814d4438..da5a7f8aa 100644 --- a/src/components/webcams/MjpegstreamerAdaptive.vue +++ b/src/components/webcams/MjpegstreamerAdaptive.vue @@ -133,23 +133,6 @@ : XYMoveOutput }} - - {{ $t('Panels.WebcamPanel.NozzleCalibrationOverlayZProbe') }} - @@ -262,19 +245,7 @@ export default class MjpegstreamerAdaptive extends Mixins(BaseMixin, WebcamMixin // ---------------------------------------------- // Nozzle Calibration // ---------------------------------------------- - private zProbeActive = false - - get allowZProbe(): boolean { - return this.zProbeActive - } - - probeZ() { - this.zProbeActive = false - this.doSend('_NOZZLE_CALIBRATION_PROBE_Z_OFFSET') - } - doSet() { - this.zProbeActive = true this.xyMove = false this.dragStart = { x: 0, y: 0 } this.distancePixels = { x: 0, y: 0 } @@ -283,7 +254,6 @@ export default class MjpegstreamerAdaptive extends Mixins(BaseMixin, WebcamMixin } doT(gcode: string) { - this.zProbeActive = false this.xyMove = false this.dragStart = { x: 0, y: 0 } this.distancePixels = { x: 0, y: 0 } @@ -291,23 +261,13 @@ export default class MjpegstreamerAdaptive extends Mixins(BaseMixin, WebcamMixin this.doSend(gcode) } - get hasZProbe(): boolean { - try { - const zoffsetprobe = this.$store.state.printer.configfile?.settings?.zoffsetprobe - if (zoffsetprobe.z_offset > 0) return true - return false - } catch { - return false - } - } - get nozzleCalib() { return this.camSettings.extra_data?.nozzle_calibration ?? false } get bigEnough() { let canvas = this.$refs.mjpegstreamerAdaptive - return canvas?.clientWidth >= 480 + return canvas?.clientWidth >= 400 } // ---------------------------------------------- @@ -600,7 +560,6 @@ export default class MjpegstreamerAdaptive extends Mixins(BaseMixin, WebcamMixin private xyMove = false togglexyMove() { - this.zProbeActive = false this.xyMove = !this.xyMove this.dragStart = { x: 0, y: 0 } this.distancePixels = { x: 0, y: 0 }