Skip to content

layerling 1.169.0

Choose a tag to compare

@henmedia henmedia released this 22 Nov 11:11
· 177 commits to main since this release
  • Gridfinity: bins and trays as large as the chosen printer's bed (PR #1953, Discussion #1917, by @marcus040473): Bins and trays stopped at 6 units, 252 mm, even on a printer with a larger bed; a tray of 282.1 mm for 32 pill boxes could not be made on a 330 x 320 mm Bambu Lab H2C. With a printer chosen in the workspace settings, Units across and Units deep now offer as many units as fit the bed's longer side (a bin is 0.5 mm smaller than its units: 7 units, 293.5 mm, on the H2C, 15 cells on the half-size grid), and a tray's Width and Length go up to that side (330 mm). Without a printer it stays at 6 units and 252 mm. A hint under the field says how far it goes and why. A drag, a saved file or the MCP is kept to 504 mm (12 units, as a large baseplate), so a large bin keeps its size when opened without that printer; the print check still flags one larger than the bed. Baseplates are unchanged. A bin wider than 6 units still takes at most 24 compartments along an axis. Guide chapter 9 in 16 languages, the hint in all 20, MCP description and skill. Unit and e2e tests.
  • Geometry kernel in the browser: manifold-3d 3.5.5 (from the version of 1.0.0): The editor loads manifold.js and manifold.wasm from apps/web/public, and those copies had stayed at layerling 1.0.0 while package.json moved on to 3.5.4 and 3.5.5 and every test ran against the package. The browser now runs the tested version; npm run copy:manifold (also part of dev, build and export) copies it from the package, and manifoldRuntimeFiles.test.ts fails when the copies fall behind again. Checked in the editor: the served WASM is the 3.5.5 one, grouping and text fills build without errors.
  • Roof: its name in every language, and through MCP (after #1931): A Roof showed "Roof" in every language, as the shape library's entries were not among the names the editor translates; an emptied name now also falls back to "Roof" rather than "Polygon". The scene copy of a shape kept polygonRoof. MCP: layerling_create_shape takes kind: "roof" (20 x 20 x 20 mm, laid on one flat side as the library lays it), and polygonRoof true or false marks or unmarks a polygon in layerling_create_shape and layerling_update_object; the summary reports it. Checked in the editor through the MCP bridge.
  • MCP: a text's stroke and silhouette when it is made: The schema of layerling_create_shape offered stroke and silhouette for kind: "text", but only layerling_update_object used them. Now both do. The texts on taper and twist list every shape that does not take them.
  • Keyboard shortcuts: The list now names Shift+D (sink the selection into the workplane, its top on it) and Shift+Enter in a size field (the other two dimensions follow), and the Alt step of the sketch's arrow keys. Chapter 13 of the guide is generated from the same list and now also shows "Add image" (Ctrl+I) in the sketch, translates the mouse (click, drag, wheel) in every language and names each key of "PgUp / PgDn" and "Home / End". The command search shows the keys of Carry (C), Add image (Ctrl+I) and the sketch's drawing tools (1 to 5). A key of your own can no longer take Shift+Q (handles) or the middle click.
  • Server storage (store.php): LAYERLING_ALLOWED_ORIGINS is also read from $_ENV/$_SERVER, as the other settings are; a folder name is limited to 80 characters as the page counts them, not 80 bytes, so a name in umlauts or Chinese the page accepts is not refused; with LAYERLING_USER_HEADER, a store folder the web server cannot write to says so instead of asking to create it; and a thumbnail that fails to upload names the PHP reason, as the project does.
  • Paint: a brush with pen pressure, a magnetic lasso, a height band and fill gaps (PR #1948, Discussion #1778, by @marcus040473): Freehand painting as in OrcaSlicer: the brush paints a line with the mouse button or the pen held down, with a pen or tablet pressure sets the width, down to a fifth of the diameter, and the circle paints a line when dragged. A see-through ball shows where they paint (Ctrl+wheel or [ and ] resize it); "As a ball" paints everything inside it, round edges and into hollows. The magnetic lasso follows a bend of the surface, the body's outline or the border of paint already there; smoothing evens both lassos out. The height band paints a level band round the whole body, fill gaps lets patches under a set area take the colour round them. A new stroke is laid onto the mesh the strokes before it left, so painting stays quick. MCP: layerling_paint takes brush, ball, height and gaps.
  • Gridfinity: split single compartments further (PR #1949, Discussion #1799, by @marcus040473): The Row and Column menus of the compartments card pick a compartment that is split with "Split across" and "Split deep" (1 to 6 parts each way, evenly spaced, dividers as thick and as high as the bin's). Each part stays at least 6 mm wide; over the limit of 40 compartments in all, compartments are taken from the back left row by row, parts across first. New field gridfinityCompartmentSplits in projects and MCP.
  • Hollow, Gridfinity floor: countersunk screw holes in the sockets (PR #1950, Discussion #1693, by @marcus040473): A tick box "Screw holes" below "Magnet holes" cuts a hole 4.5 mm wide through the middle of each socket for a 4 mm countersunk screw, sunk at 45 degrees so the head lies level with the socket's bottom. The floor is 8.6 mm thick, as with magnet holes. MCP: gridScrews in layerling_hollow_object.
  • Honeycomb and cells: no more spikes at the joints' edges (PR #1951, Discussion #1771, by @marcus040473): Points just off a profile level counted as on it, and the points placed on the edges from it lay a few thousandths of a mm inside the joint's edge; their own value moved them by up to a few hundredths of a mm, and the pattern part took in the triangles round them, the spikes seen from above. sliceCells now returns fixed values, as the bumps already do: every point on a level takes that level's profile value.
  • Fillet on a large round edge: no more dents in the mesh (Issue #1947): A 1.5 mm fillet round the top of a 190 mm ring showed slanted dents in the editor and in the slicer. The exact body was right; its mesh had triangles spanning the whole quarter arc, 0.27 mm below the torus against a chord limit of 0.05 mm. The edge tool checks torus faces and meshes them with a tighter angle when they stray, but it skipped that check for every treatment that already had the old angle from the start, which is every fillet of 1 mm and more in standard quality. The check now runs for those too and tightens the angle (0.1, then 0.05) where the mesh strays (meshTreatedBody, lib/cadMeshAccuracy.ts). E2E test with the real kernel: the same fillet on a 190.5 mm disc now stays within the chord limit. An edge already filleted is smoothed by applying the fillet once more.
  • QR code and SBC board: a move made while they are made again is no longer undone (Issue #1942): "Make again" on a QR code, and a new setting on an SBC board, build the new body while the editor can still be used, then put it where the old one stood, with its name and lock. A move, a lock or a rename made while it was built was undone without a word. Now, if the body was changed in that time, it is left as it is, and a notice says to click "Make again", or choose the setting, once more. Checked in the editor: an 80 mm QR code made again with one arrow-key nudge 20 ms after the click keeps the nudge and says so, a Raspberry Pi 5 board nudged in the same moment as a new setting likewise, and both are made again as before when nothing else is touched. Unit test makeAgainChanged. Texts in every language. Contributed by @mlugo-apx.
  • Danish (PRs #1943, #1944): The release notes of 1.168.0 and the cards of the next release (18 cards) in Danish, and the sentence on the slope in chapter 03 of the guide that was still missing. By @Henrikth12.
  • Mouse buttons as in the slicer: a left drag on empty space turns the view in tools too (Facebook, Shawn Lamble): With the mouse buttons set like Bambu Studio and OrcaSlicer, a left drag on empty space turned the view everywhere but in the tools that pick with the left button (Split, Fillet and Chamfer, Lay flat, the face pick of Mate, Paint and the other face tools, the tape measure, the rotation pivot). Their own press came first and took the drag, so the view stood still until the tool was closed. Where such a tool finds nothing to take, a left drag now turns the view there too; a click that does not turn it does what the tool always did there. The right and middle buttons kept working as set all along. Checked in the editor with real mouse events: with Chamfer open, a left drag on empty space turned the view (it stood still before).
  • Name tag and icon tag: Flat inlay, every colour on one flat face (PR #1941, by @plazmabokor): A switch under the Layers table of both cards sinks the letters (or the icon) and the rim into the bottom layer, so that all colours end on one flat face that prints face down on the plate, with the plate's texture on it. The bottom layer is the carrier: its height is the thickness of the whole tag, the key ring ear is on it. "Inlay depth" sets how deep the layers above it go, together: 0.8 mm (four 0.2 mm layers) to start with, enough for most PLA; a more translucent filament (PETG, some whites) needs more. The heights of the upper layers are greyed out while it is on. Each layer gives way to the one above it, so no two bodies overlap (checked in the exported 3MF). The inlaid layers are meshes from the 2D kernel, so a STEP export holds them as meshes; 3MF and STL are not affected. The part colour list under Multicolor (#1901) is no longer shown for name tags and icon tags, as the Layers table colours them. MCP: layerling_layer_text and layerling_layer_icon take flush (true, false or a depth of 0.2 to 5 mm). Texts in all languages.
  • Shape library: a Roof, the triangle lying on the plate (Discussion #1931): A triangle lying like a roof has been there all along as the Polygon with three sides turned onto one flat side, but the Polygon tile shows a hexagon, and people took the wedge, the only triangle they could see, and turned it until it looked right; turned by 135° it had no handle for the height of the triangle. The new Roof tile next to the Round roof puts in that polygon already lying on one flat side, the corner on top, 20 mm each way as in Tinkercad: the handle on top changes the height of the triangle while its base stays on the plate, the handles at the bottom its width and length, and its three sides stay: its panel has no side count, no flat side and no saving as polygon defaults, and every other way in keeps them too (polygonRoof, held in canonicalizeShape). Underneath it is the Polygon, so the exact body, edges, fillets and STEP work as for any polygon, and a saved design keeps the mark. It lies on a face workplane the same way (placementPatchForNewShape takes a turn about the shape's own X axis, libraryAssetTurnX and libraryAssetCustomization in shapeCatalog.ts), also as the shape that follows the pointer before it is put down. The search finds it under roof, triangle, gable and their German words. Its tile picture is rendered from the geometry (npm run icons:shapes). Unit tests; checked in the editor (placed on the plate, -90° about X, 20 × 20 × 20 mm; the top handle took the triangle from 20 to 32 mm high, its base on the plate). Name in 20 languages, guide chapter 3 in 16. Asked about by @uninteressant2026.
  • Arabic (PR #1940, by @sevagjb): The release notes of 1.166.0 to 1.168.0 and the first card of the next release in Arabic, the missing sentence for the lid standing upright and 129 corrections in the interface (terms from the Arabic glossary, counts, name order), the guide passages that were still missing (hole pattern frame, top layer and 19" rack, the mold's opening direction and material, print analysis and layer view, saving only the selection as LYL) and layerling_make_mold in the Arabic README.
  • Restore backup: a design a crash left empty takes its content back from the backup (forum, RalphD05): After a crash the list of designs can outlive their content: the cards keep their names and shape counts but have no picture and open empty. "Restore backup" took a design of the same name and creation time for one that is already here and skipped it, so exactly those designs could not come back ("all 1 designs are already here, nothing was created"). A card of this browser whose content is gone, empty or unreadable is now filled from the backup in place, keeping its folder; a card that still has its shapes is skipped as before (backupRefillsDesign, lib/projectBackup.ts). Unit test projectBackup; checked in the editor with a backup of a 15-shape design whose content was deleted from the browser: before, nothing came back; now the same card holds the design again after a reload.
  • Import: STL, OBJ and 3MF can keep the position from their file (Issue #1939): Every imported mesh was centred on itself and set at one spot near the middle of the plate, so the parts of one model exported as separate files, a miniature's body, arms and legs say, all landed inside each other. A new switch in the import window, STL, OBJ, 3MF: keep the position from the file, puts each body where its file puts it: the file's origin in the middle of the plate, its X and Y kept, its height above the plate as in the file (so a part the file puts below the origin stands below the plate). It holds for every body of a coloured OBJ or 3MF and for every object of a 3MF, and it is remembered in the browser like the SVG page switch. A body is placed by its file's numbers; the mesh itself is stored as before, so a design saved with it opens the same. MCP layerling_import_file takes keepFilePosition. Unit test importKeepMeshPosition.test.ts; checked in the editor (a body imported over the AI bridge and through the import window lands 30 mm up on its hip at the same X and Z, an arm beside it, without the switch at the usual spot). Texts in 20 languages, guide chapter 12 in 16, the three copies of the MCP skill, changelog and What's new card. Reported by @bsr1336-debug.
  • Start page: a folder whose name starts with an emoji shows that emoji as its picture (Discussion #1932): A folder named 💡 Ideas shows a big 💡 in place of the folder icon and "Ideas" as its name, so folders are told apart at a glance. The emoji is part of the name, so it goes wherever the folder goes (this browser, a server folder, a backup) with nothing extra to store, and renaming the folder changes it or takes it off. Only an emoji drawn as a picture counts (also flags, keycaps and emoji with U+FE0F), so a name starting with © or a digit stays as it is; a name that is only an emoji keeps it as its name too (folderNameParts in lib/folderEmoji.ts). The folder dialog of the server folder now has the ? to the guide as well. Unit tests; guide chapter 12 in 16 languages, the READMEs. Suggested by @uggyuggy.
  • Sketch: the arrow keys move a selection at once, and a held key moves it smoothly (Issue #1930, after 1.168.0): Since 1.168.0 a held arrow key no longer fell behind, but every press still handed the sketch to the editor, which then drew everything again: a single press showed only after a noticeable moment and a held key moved in big jumps. The sketch now draws the move itself, as it does while a selection is dragged, and hands the whole run to the editor once the arrow keys rest for 0.3 s, or at once on another key, a click, another selection or tool, or when the window loses focus; a key that ends the run (Delete, Escape, Ctrl+Z right after the arrows) is sent on again, so it is not lost. Points, a clicked handle and a picture move this way. A run is still one step of Undo (#370). Measured in the dev build with a 60-point outline, six gears and four texts: a single press shows after about 45 ms instead of 135 ms, and 60 presses of a held key show as 60 steps instead of 8, the same 60 mm. Unit tests for the wiring. Reported by @uninteressant2026.
  • Chamfillet: on a body of many edges, it is ready sooner (Issue #1812, after #1934): To find the edges to round above the chamfer, the Chamfillet asked the kernel for the faces on each side of every edge of the chamfered body (edgeToFaceMap), which grows with the square of the faces. It now uses edgeFaceMap from #1934, built from each face's own edges and compared with the kernel's map in cadEdgeFaces.e2e.ts. A 1 mm Chamfillet at 45° (chamfilletSolid) on the four outer bottom edges of honeycomb plates from the honeycomb profile of that test (8 mm cells, 1.6 mm walls, 3 mm frame) goes from 0.30-0.35 s to 0.24-0.28 s at 80 x 80 x 5 mm (926 edges once chamfered) and from 4.1-4.2 s to 2.1 s at 160 x 160 x 5 mm (4,970 edges once chamfered), in Node, three runs each. Contributed by @mlugo-apx.
  • Menu bar: a group is never squeezed narrower than its buttons: Where the bar does not wrap onto a further row (wider than 1737 px, as in focus mode), the browser could squeeze a group below its tools: at 1800 and 1920 px Visibility's Outliner button stuck out over Shapes, at 2400 px Combine and Edges & walls lost a few pixels. The folding measured the squeezed widths and so saw no need to fold another group. .toolbar-section now has flex-shrink: 0, so the folding measures the real widths and folds one group more where needed (at 1960 px Clipboard). Checked in the dev build in focus mode from 1760 to 2400 px: no button outside its group, the bar within the window; the sketch ribbon unchanged. Reported by Stefan.
  • Text: the letter edge on the bottom or on both ends (PR #1952 by @NoifP, Discussion #499): The letter edge from 1.87.0 rounded or chamfered the top of the letters only. Once an edge is chosen, the Text properties now show Edge on: Top (as before), Bottom or Both. The bottom is for a text used as a hole to cut inset letters out of another body: a chamfer as large as the cut is deep gives each letter a V-shaped groove, which prints without bridges even on a side wall. Where a stroke is thinner than twice the size, its cut simply stays shallower, as with a V-shaped router bit, and the cut stands exactly where the view draws it: a text whose every stroke ends above its underside is no longer moved down onto the plate before it cuts. A solid text whose thin letters would start in the air says so under the edge size. With Both each edge is at most half the text's height; it builds two edges, about twice the time of one, so on a text over 20 characters the field says it can take half a minute or more (40 characters of Script with a 1 mm round on both ends took 46 s), and the edge is built up to the usual 40 characters all the same. A rounding on the bottom is pointed out as hanging over at the bed. The layers of a name tag keep their edge on the top, where a bottom edge would cut a groove into the layer under it. The MCP's letterEdge takes side: "top" | "bottom" | "both". Contributed by @NoifP (PR #1952).
  • Letter edge: a chamfer no longer folds over itself, and its stepped fallback is finer (PR #1952 by @NoifP): A chamfer was built as one slope from the full outline to the stepped-in one. Where those two differ a lot, the slope could fold over itself: Script "Oga" with a 0.5 mm chamfer had 63 triangles facing the wrong way, which the 3D kernel takes without a word and cuts with wrongly. Every band of the edge is now checked for this; a chamfer that would fold is built in several shorter slopes, else as slabs. A chamfer built as slabs (where a stroke runs out, which from about 1 mm on is most texts) now steps 0.1 mm at a time up to 2.4 mm and 0.21 mm at 5 mm, instead of up to 0.42 mm. This applies to name tags too. Contributed by @NoifP (PR #1952).
  • Safari on an Intel Mac: large parts are drawn right again (Issue #1896): In Safari on an Intel Mac with its own graphics card (seen on a MacBook Pro 16" of 2019, AMD Radeon Pro 5600M, Safari 26.5.2), a large mesh was drawn as spikes across the whole view: a design wrapped round a cylinder (311,040 corners), a twisted tube, an imported STL. Small parts were right, the export printed fine, and Chrome on the same Mac drew it all correctly. Safari there uploads only the first MiB of each WebGL buffer to the graphics card and drops the rest without an error (WebKit bug 322040, measured on the same kind of Mac in the Babylon.js forum); the wrapped design's positions are 3.7 MB. In Safari on a Mac, bufferData and bufferSubData are now wrapped once for every WebGL context: an upload larger than 512 KiB creates the buffer at its full size and fills it in pieces of 512 KiB (lib/safariBufferUploads.ts, called before each of the five WebGL renderers). Safari reports "Intel Mac OS X" on Apple silicon too, so it holds for every Safari on a Mac, where the pieces cost next to nothing; other browsers are untouched. Unit test safariBufferUploads.test.ts; checked in the dev build in headless Edge with Safari's user agent and the reported design: 58 pieces of at most 512 KiB, the view byte for byte the same as without the wrapper. Not checked on an Intel Mac yet. Reported by @stefaanl.