- add HUD rectangle auto size for 3D Graphic Engine
This commit is contained in:
@@ -5415,9 +5415,10 @@ class AppGerberEditor(QtCore.QObject):
|
||||
"%.4f " % (self.app.dx, self.app.dy))
|
||||
|
||||
units = self.app.defaults["units"].lower()
|
||||
self.app.plotcanvas.text_hud.text = \
|
||||
'Dx:\t{:<.4f} [{:s}]\nDy:\t{:<.4f} [{:s}]\n\nX: \t{:<.4f} [{:s}]\nY: \t{:<.4f} [{:s}]'.format(
|
||||
self.app.dx, units, self.app.dy, units, x, units, y, units)
|
||||
# self.app.plotcanvas.text_hud.text = \
|
||||
# 'Dx:\t{:<.4f} [{:s}]\nDy:\t{:<.4f} [{:s}]\n\nX: \t{:<.4f} [{:s}]\nY: \t{:<.4f} [{:s}]'.format(
|
||||
# self.app.dx, units, self.app.dy, units, x, units, y, units)
|
||||
self.app.plotcanvas.on_update_text_hud(self.app.dx, self.app.dy, x, y)
|
||||
|
||||
self.update_utility_geometry(data=(x, y))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user