OctoPrint / OctoPrint

OctoPrint is the snappy web interface for your 3D printer!

Home Page:https://octoprint.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Request]Modify Text on GCode Viewer UI (clarify that some values reset by code)

sbaeder opened this issue · comments

Is your feature request related to a problem? Please describe.

The "problem" was that I couldn't for the life of me understand WHY the center and zoom options on the Render Options section of the UI were constantly being reset to OFF (unchecked), so I went digging in the code. I think I understand the why (i.e. due to conflicts with using the mouse to move/zoom things), but that should be made clearer on the UI.

Describe the solution you'd like

Maybe put an Asterix (*) after the text and a footnote that these get disable if the mose is used to actually pan/zoom inside the viewport.

Also, I don't see why these are not able to be saved somehow, and restored as the default when a new model is loaded/printed. I don't use the mose to change the zoom, and use the UI modifications to allow a smaller version of the display to exist in the side bar, and always want that ti show the zoomed in layers it is printing.

Describe alternatives you've considered

No response

Additional context

Anyway - just a thought to make it better for someone else. Keep the Faith!

Also, I don't see why these are not able to be saved somehow, and restored as the default when a new model is loaded/printed.

relative to this statement, the enabled options are saved to the browser's local storage and should reset if you were to refresh the page I think.

self._toLocalStorage = function () {
saveToLocalStorage(optionsLocalStorageKey, {
centerViewPort: self.renderer_centerViewport(),
zoomOnModel: self.renderer_zoomOnModel(),
showMoves: self.renderer_showMoves(),
showRetracts: self.renderer_showRetracts(),
showPrinthead: self.renderer_showPrinthead(),
showSegmentStarts: self.renderer_showSegmentStarts(),
showDebugArcs: self.renderer_showDebugArcs(),
chromeArcFix: self.renderer_chromeArcFix(),
showPrevious: self.renderer_showPrevious(),
showCurrent: self.renderer_showCurrent(),
showNext: self.renderer_showNext(),
showFullsize: self.renderer_showFullSize(),
showBoundingBox: self.renderer_showBoundingBox(),
showLayerBoundingBox: self.renderer_showLayerBoundingBox(),
hideEmptyLayers: self.reader_hideEmptyLayers()