Skip to content

Commit

Permalink
feature removed that need special klipper modifications to work
Browse files Browse the repository at this point in the history
  • Loading branch information
HelgeKeck committed Sep 25, 2023
1 parent 6d31f18 commit 2c919c6
Showing 1 changed file with 1 addition and 42 deletions.
43 changes: 1 addition & 42 deletions src/components/webcams/MjpegstreamerAdaptive.vue
Original file line number Diff line number Diff line change
Expand Up @@ -133,23 +133,6 @@
: XYMoveOutput
}}
</v-btn>
<v-btn
v-if="hasZProbe"
small
class="cmdButton"
:disabled="
!allowZProbe ||
!homedAxes.includes('xyz') ||
(isIdex && (idexMode == 'copy' || idexMode == 'mirror'))
"
:style="{
'background-color': 'rgba(255,86,86,1.0)',
'min-width': '0',
'border-top-right-radius': '5px',
}"
@click="probeZ()">
{{ $t('Panels.WebcamPanel.NozzleCalibrationOverlayZProbe') }}
</v-btn>
</v-item-group>
</span>
</v-row>
Expand Down Expand Up @@ -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 }
Expand All @@ -283,31 +254,20 @@ 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 }
this.distanceMM = { x: 0, y: 0 }
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
}
// ----------------------------------------------
Expand Down Expand Up @@ -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 }
Expand Down

0 comments on commit 2c919c6

Please sign in to comment.