diff --git a/src/components/panels/Status/ExcludeObjectDialogMap.vue b/src/components/panels/Status/ExcludeObjectDialogMap.vue index 9187100f..6374a157 100644 --- a/src/components/panels/Status/ExcludeObjectDialogMap.vue +++ b/src/components/panels/Status/ExcludeObjectDialogMap.vue @@ -81,7 +81,7 @@ svg { stroke-width="1" /> - + 'polygon' in eobject) + } + get current_object() { return this.$store.state.printer.exclude_object?.current_object ?? null } @@ -144,20 +148,32 @@ export default class StatusPanelObjectsDialogMap extends Mixins(BaseMixin) { ) } + get toolhead() { + return this.$store.state.printer.toolhead ?? {} + } + + get axis_minimum() { + return this.toolhead.axis_minimum ?? [] + } + + get axis_maximum() { + return this.toolhead.axis_maximum ?? [] + } + get stepperXmin() { - return this.$store.state.printer.configfile?.settings?.stepper_x?.position_min ?? 0 + return this.axis_minimum[0] ?? 0 } get stepperXmax() { - return this.$store.state.printer.configfile?.settings?.stepper_x?.position_max ?? 0 + return this.axis_maximum[0] ?? 200 } get stepperYmin() { - return this.$store.state.printer.configfile?.settings?.stepper_y?.position_min ?? 200 + return this.axis_minimum[1] ?? 0 } get stepperYmax() { - return this.$store.state.printer.configfile?.settings?.stepper_y?.position_max ?? 200 + return this.axis_maximum[1] ?? 200 } get absoluteX() {