Repository navigation
layerling 1.160.0
-
A design that cannot be saved says so, and the newest state is not lost on a reload (Discussion #1652): Every change packs the whole design with its history into the browser's storage. With imported meshes of millions of triangles that packing ran the tab out of memory, so every save failed; the editor said "Could not save design shapes" once in the status line, the next message covered it, and closing or reloading the tab (as the update notice does several times a day) brought back the last state that was stored, hours old. Now a save that runs out of memory is packed again with fewer history steps, as a package too big for the project format already was (isRetriedWithLessHistory), and its reason is named. While the newest state of a design is not stored, a red note stays up in the editor until a save gets through, and closing or reloading the tab asks first. Texts in 15 languages. Checked in the editor through headless Edge with the storage made to fail: the note came, the tab asked before closing, and both went away with the next save; unit test
-
"Keep empty design?" answers with Keep and Delete (Discussion #1669): Leaving an empty design asked "Keep empty design?" with Yes and No, and No deleted the design at once. Read in a hurry as "No, don't delete it", it took a design away. The buttons now say what they do: Keep (focused, so Enter keeps it) and Delete in red, as the other deletes on the start page. New text confirm.keep in 15 languages. Checked on the start page through headless Edge
-
A note on very large meshes (Discussion #1652): layerling is made first of all for exact CAD bodies; imported meshes work, but very large ones - scans, sculpts, models from Blender with hundreds of thousands or millions of triangles - make the editor slow, take a lot of memory and make saving slow. After an import that brings in a mesh of 400,000 triangles or more (STL, OBJ or 3MF), or takes the design's meshes to a million together, the import message now says so, names the count and stays until it is closed, with a button "Read more" to the new section "Large meshes" in the user guide (chapter 12, before "Simplifying an imported mesh", in 16 languages). Through MCP,
layerling_import_filereturns the same note aswarning.largeMeshWarningTriangles,importedMeshTriangles(the parts inside groups counted, STEP and exact bodies not); texts in 15 languages, MCP skill and tool description, unit test. -
A colour code can be typed in the colour card (Discussion #1674): The hex value at the top of the colour card was only shown, and Custom opens the colour picker of the browser or the system, which in Firefox and the desktop app on Windows knows only red, green and blue, so a code like #5EBDDB had to be turned into RGB elsewhere first. The value is now a field (HexColorField): click it, type or paste a code (#5EBDDB, 5ebddb or the short #5bd, read by normalizeHexColor) and Enter or leaving the field sets the colour, for one body or for every body of a selection, and keeps it under the recent colours; Esc and a value that is no colour leave the colour as it was, and keys typed there do not reach the editor's shortcuts. Checked in the editor through headless Edge: #5EBDDB with Enter, ff8800 on leaving the field, #123456 with Esc and "zzz" left the box as it was, #5bd on two selected boxes gave both #55bbdd; guide chapter 3 in 16 languages, What's new card
-
The protractor's needle starts on the zero (#1672): While turning a part, the needle on the protractor pointed where the pointer was, so when the arrow was grabbed a little beside its middle the needle started beside the zero by that much and stayed off the ticks, while the readout said 0°. It now shows the zero plus the turn being applied, in the wheel's direction (rotationNeedleAngle), so it sits on the tick the readout names. Checked in the editor through headless Edge: grabbed 9 px beside the arrow, the needle starts on the zero line and turns with the pointer; unit test
-
Simple mode can be switched off on a phone or tablet (#1671): Simple mode is switched off by holding its button for two seconds, so that a child does not leave it with a tap (#695). On a touch screen the long press opened the browser's own menu instead (back, reload, download), which took the touch away and cancelled the hold, so simple mode could not be left at all. The button now keeps that menu shut and takes no text selection, magnifier or scrolling (touch-action: none), so the two seconds run through. Checked in headless Edge with a touch screen emulated: held for 2.5 s, simple mode went off
-
Counterbore: length below the head (Discussion #1670): Socket head cap screws are sold by the length under the head (ISO 4762), countersunk screws by the length with the head, but the screw hole had only its Total length, so a counterbore for an M3 × 12 needed 15.2 worked out by hand. The counterbore now has a second field, Screw length (measured below the head), under Total length: it shows the total less the head depth, and entering the screw's length sets the total to it plus the head depth (
screwHoleLengthBelowHead,screwHoleHeightForLengthBelowHead). Nothing new is stored; the countersink keeps its one length. Texts in 15 languages, user guide (chapter 9), MCP skill and tool description, unit test.