Skip to content

layerling 1.91.0

Choose a tag to compare

@henmedia henmedia released this 18 Oct 20:10
· 77 commits to main since this release
  • A loose hole is no longer lost in the export when its body touches another (#566): A hole left ungrouped is cut out of the body it reaches when you export. But when that body touched or overlapped another body of the same colour, the export joined the two again from their uncut shapes, and the hole was gone from the STL, 3MF or OBJ file and from the material estimate, which counted the part as solid. A body that a hole was cut from is now joined as its cut mesh. The cut is checked in the export by volume: two boxes of 20 x 20 x 10 mm side by side with a hole of 8 mm through the first one export 7,497.5 mm³ instead of 8,000. Found, with a test and a patch, by @aktrftm on GitHub.
  • The cut face of the section view no longer lags behind the plane (#516): The face was cut a moment after the plane moved, and that moment started again with every move, so a plane moved faster than that moment (30 ms) never let the face be cut, and it came back only when the hand rested. That is the lag @rondlh saw with 1.90.0 on a fast machine, up to about a second. A round now starts for the newest plane at once, one at a time; the rounds in between are skipped instead of thrown away. Measured in a test browser with a plane moved every few milliseconds: with the old delay lengthened to 100 ms to stand for a faster machine the face was cut once, at the end of the drag; now it is cut about every 50 to 100 ms during the drag and 25 ms after the last move. The lag on his machine itself was not seen, only the mechanism.
  • A long file name no longer widens the Export window (#563): With a file name linked to the design (STL in Chrome and Edge), the footer showed "Saves into " on one line next to the buttons, and a long name made the whole window as wide as the name: its text was cut at the edge and a scroll bar ran along the bottom. The name now has its own line, wrapping if it must, and the buttons stand under it. Reported by @ZaJules on GitHub.
  • Ctrl and the arrow keys pan the view: With nothing selected, the arrow keys turned the view (15° a press, 90° with Shift), but moving it sideways needed the mouse. With Ctrl (Cmd on a Mac) held they now slide the view across the screen: a tenth of the picture's height a press, half of it with Shift as well. Like the plain arrows, they move the model the way they point, and the pivot stays within the same range as with the mouse. With something selected, Ctrl+↑ and Ctrl+↓ still raise and lower it. The shortcuts window lists the new keys. The view code behind the arrow keys moved out of the viewport into files of its own (viewArrowKeys.ts, viewportKeyboard.ts).
  • Raised floor for Gridfinity bins (#455): A bin with a raised inner floor, a blank to cut the shapes of tools into, had to be made by grouping a box into it. A Gridfinity bin now has Floor height, measured from the underside of the bin (5.95 mm until it is set), and the bin is solid up to it. At the highest, where the lip's support leaves the wall (19.35 mm in a bin of 3 units), the lip stays whole and the feet of a stacked bin stay 1.3 mm clear; without the lip the floor goes up to the top, and the bin is a solid block. A bin of 1 height unit with the lip has no room for it. Finger scoops start on the raised floor and label shelves can reach less far out above it; once the floor leaves them no room, their switches go until it is lowered again. The bin stays an exact body for the STEP export. Also through the MCP action layerling_create_shape with gridfinityFloorHeight. Suggested by @tskmstr. Contributed by @mlugo-apx.
  • Folders for custom shapes: The custom shapes can be sorted into folders, three levels deep. The new folder button next to Save selection makes one at the top, in this browser or on the server, and the folder button with the plus on a folder makes one inside it (a folder on the third level holds shapes only). A folder opens and closes with its arrow, its number counts the shapes in it and below it, and its pencil and bin rename and delete it (deleting takes the folders and shapes in it along, after asking). Saving a selection offers the folders next to the name, shown with their path, and a new button on each tile moves the shape into another folder or back out; folders themselves do not move. On the server they are folders inside Custom shapes, so the start page shows them too; in the browser a backup keeps them. The MCP action layerling_save_custom_shape takes a folder path such as Brackets/M3, and layerling_list_custom_shapes reports the folder path of each shape. The guide describes folders in every language.