ZSLICEDOCS

Internals

One view: all plates, always sliced

This page is the plan for the main window of both apps (web and GTK). It replaces the right pane and the Preview and Project pages. The mockup is in the design canvas "zslice UI structure".

The goals

The keyboard

Each action of the app has a key, or a path from the keyboard. No action needs the mouse.

The core: one App for each plate

Each plate is one App (zs_app), with its own settings, profiles, parts, slice result, and cancel flag. A project plate has the profiles of its Cura stack, so the plates cannot share one set of settings.

The renderer

The layout

PlaceWhat
Top bar, leftThe file or project name, and "Plate 1 of 6". A menu has open, add, export, and the recent files.
Top bar, rightThe printer, filament, and quality chips, and the button of the settings drawer.
Top center of the viewThe settings search (/): settings and actions. A setting shows its control in the result, for the plate or for the selected part.
Left of the viewThe tool strip. Part tools: Select, Move, Turn (all axes), Scale, Lay flat, Cut, Duplicate, Draw supports. Then the line tools: Measure, Gaps, Check, Edit lines. Each tool shows its key on hover.
Next to a selected partThe part card: name, size, Lay flat, Duplicate, Cut, and the settings of the part ("+ Add a setting for this part" opens the search for the part).
Next to a line under the pointerThe line card: the feature, the width, the speed, the length, and a link to the setting that controls it.
On the tapeThe measure readout.
Right edge of the viewThe layer slider of the active plate.
Over each plateIts label: name, printer and material, status (To print, Printing, Printed, Failed, or "Resin: not yet").
Bottom left"6 plates, 1 printed", the Parts popover (the parts of printdeck.yml with their counts), and "+ Plate".
Bottom centerThe history timeline.
Bottom rightThe print card of the active plate: time, layers, grams, meters, and Print (with a menu: upload only, export).
Right, on demandThe settings drawer: all settings by section, with search. Pin docks it beside the view.

Done in the web app

Done in the GTK app (phase A of step 4)

The GTK app has the layout of the web app for one plate. The files are in linux/src/ui.

Differences from the web app:

The steps

  1. The plate set in the web app: one Core (zs_app) for each plate in the worker, the slice order, and the status. The project plates load into their own apps.
  2. The renderer: the other plates as fixed bead buffers with offsets, the beds in a row, the camera moves, the far-plate simplification, and the frustum cull.
  3. The web layout: the floating cards, the tool strip, the search, the drawer, the Parts popover, the plate labels, and the print card. The right pane goes.
  4. The GTK app: the same plate set and layout. The Project panel of the GTK app (branch gtk-projects) becomes the plate labels and the Parts popover.
  5. The docs: the user guide with screenshots of the new layout.

What is built (steps 1 and 2)

The plate set in the web app

The plate set was first in web/app/worker.js. It is in the core now (zs_set), and the worker keeps only the timers and the messages.

The renderer

Memory

The page

Measurements

Chromium (headless, ANGLE on OpenGL) on an Intel HD 530, the view 840 x 850 pixels. GPU: the GPU time of a frame (a timer query), p50. Orbit: the time from one frame to the next in an orbit of 120 frames, p50 (16.7 ms is 60 frames a second).

Scenemainone-view
printdeck plate 1 alone (main), or all 6 plates with plate 1 in the viewGPU 22.6 ms, orbit 33 msGPU 7.1 ms, orbit 16.7 ms
All 6 plates (Home)(one plate only)GPU 6.1 ms, orbit 16.7 ms
Plate 5 (14 parts) in the view(one plate only)GPU 7.6 ms, orbit 16.7 ms
20 Benchies on one plate, start viewGPU 205 ms, orbit 217 msGPU 40.6 ms, orbit 50 ms

Changes to the plan