Repository navigation
layerling 1.136.0
-
Object list: move a shape up or down (Discussion #1233): The list showed the shapes in the order they were added, and only the A–Z button changed that, for the named ones. Each row now has a handle at its left, six dots: drag it up or down, with the mouse or a finger, or focus it and press the arrow keys, and the shape stands elsewhere in the design's own order, which Undo takes back. The handles are hidden while the list is sorted A–Z or searched, as neither shows that order. The same is open to an AI agent as the MCP action
layerling_move_object(id, andbefore, the shape it goes in front of). Reported by @uninteressant2026 in #1233. -
Hole pattern: a shape of your own (Discussion #1235): The hole pattern could only spread its own hole forms, so rivets or the treads of a diamond plate meant placing every piece. A sixth form, Own shape, repeats a shape from the scene instead, chosen under Shape from the scene, in a grid, staggered or along the edge. Its width and depth are the room each copy takes, and every copy stands upright on the face: a body is set on and joins it, a hole is cut in by its own height. The shape itself stays.
layerling_perforate_facetakesform: "custom"withshapeId. -
Hole pattern: holes along the edge, with counterbores and countersinks (Discussion #1232): The hole pattern only filled a face, so a ring of screw holes round a lid or a plate took a row for each side and some measuring. A third arrangement, Along the edge, sets the holes in a ring along the face's outer edge, the margin in from it: a hole on every corner and each side shared out evenly, by spacing or by a number of holes, and the spacing evened out so the ring closes without a gap. On a round face, or without corner holes, they go evenly round from the top, and Start along the edge turns the ring. Round holes can now also be a counterbore or countersink, with the shaft, the head and its depth set by hand or by a metric screw size (M2 to M30).
layerling_perforate_facetakesarrangement: "perimeter",count,corners,start,holeType,screwSize,headSizeandheadDepth. -
Waiting for the user's notes (Discussion #1191): An agent working through the notes marked For the AI only saw them when the user went back to its window and told it to look. The new MCP action
layerling_wait_for_noteswaits until a note is ticked For the AI that the agent has not had yet, or one the user changed since, and returns it at once (default 50 s,secondsup to 600; with none it returns empty and the agent asks again). So the user tells the agent once to watch the notes and then only works on the model. A request is handed over once; what the agent writes into a note itself (an answer, a question kept open) counts as seen, so it comes back only when the user changes the note. The waiting lives in the MCP server (scripts/layerling-mcp-notes-wait.mjs, unit tests), which asks the editor every 2 s; the editor is unchanged. The guide (Measuring and notes, AI with MCP) in every language, the English and German READMEs and the skill. Asked for by @YShojaei. -
Intersection shows its result first (Discussion #372): The preview of the common part had a button of its own, Show common part, beside Intersection. Intersection now does both: the first click turns the selected shapes see-through and draws what they share in green, and they can still be moved one by one while the green part follows; the second click applies it, Esc closes the preview. Shapes with more triangles than the preview takes (40,000) are intersected on the first click, as before. The separate button is gone, so the Combine group is one button narrower; its search words moved to Intersection. The bar's three thresholds follow, measured again (full size 2212 px, middle step 1894 px, smallest 1734 px): 2215, 1897 and 1737 px, so a 1920 px screen gets the middle icon size again. The MCP action
layerling_intersect_objectsapplies at once as before. The status line, guide chapters 5 and 10 in every language. -
Taper: keep proportions (Discussion #1229): The four fields of the Taper card changed only themselves, so keeping a tapered top square meant typing the same value twice. The card now starts with Keep proportions: switched on, a new Top Length changes Top Width in the ratio the two have, and the other way round, the same for Bottom Length and Bottom Width. Top and bottom stay apart, or nothing would be left to taper. The switch is kept with the shape.
-
Protractor (Discussion #1228): layerling measured lengths but no angles. A new button in the view bar, below the framing square, opens the protractor with two kinds: Angle from three points (the corner first, then a point on each side; it snaps to corners and edges like the tape measure, and a click beside the bodies sets a point on the plate) shows the angle at the corner with an arc, already while the last point is placed; Angle between two faces takes two flat faces and shows both angles the planes make, the smaller first (a 45° chamfer against the top reads 45° · 135°, two sides of a box 90°), with a short line for each face's normal; a curved face is refused with a message. The points and faces stay fixed to their bodies and follow them; nothing is saved or put into the history, and closing the protractor (its button or Esc) clears it. One calculation for the view and MCP (
lib/protractor.ts, unit tests), the overlay inviewportProtractor.tsx. The MCP actionlayerling_measure_anglemeasures from three world points or two faces fromlayerling_list_facesand shows the angle (show,clear). Texts in every complete language, the start page in every language, the guide (Measuring and notes, AI with MCP) in every language, the quick guide, the seven READMEs and the skill. Asked for by @MartinShake. -
Bodies with chamfered or rounded edges move without a lag (Discussion #1042):
canonicalizeShapebuilt a body's edge history - the bodies it was before each chamfer and fillet, with their meshes - anew on every call, so the fingerprint cache ineditorHistory.ts, which goes by the object, never hit, and every step hashed the whole stored history again: about five times for each arrow key or move, and once more for every entry of the undo history when the design was saved. A chamfered group of 6,500 triangles took a quarter of a second per arrow key, a plain box none. The canonical history is now kept per array (aWeakMap), so a moved body hands back the same one: hashing per three arrow keys fell from 530 ms to 5 ms, the autosave's history from 250 ms to 5 ms. Unit test ineditorHistory.test.ts. Reported by @uninteressant2026. -
STEP: a body tapered or twisted after its edges were rounded is no longer written untwisted (Discussion #1237): An edge treatment or hollowing bakes a taper, lean or twist into the stored B-Rep and clears it; one set after that only bends the display mesh.
stepSourceForShapestill took such a body asbaked, so the STEP file held the body from before the twist, and the export said nothing. A stored or imported B-Rep with a taper, lean or twist is now left out like any shape without an exact form, and the message after the export names it ("this twisted shape has no exact form yet"). The object list saidshape.meshunder such bodies, a missing text: a body of kind mesh now says Exact body when the STEP export writes it and Mesh when it does not. Unit test instepExport.test.ts; texts in every language, guide chapter 4 in every language. Reported by @vinmangraphics. -
Sketch: a dragged circle or rectangle snaps with its middle (Discussion #1236): New points snapped to the middles of lines, the centres of circles and the crossings of construction lines, but a shape that was moved did not, as its grip is wherever it is taken, so a hole could not be set on the middle of a line or the crossing of two guide lines by dragging. A selection dragged in the sketch now snaps with the middle of its frame - a circle's centre, a rectangle's middle - to the ends, corners and middles of the rest of the sketch, the centres of its circles, the crossings of its construction lines and the corners of a body underneath; lines with an end in the selection are left out, Shift still keeps to an axis and Alt keeps to the grid. A shape dragged in from the Shapes menu also lands with its middle on the ends and corners of the lines, which it did not before, and a ring shows where while it is dragged (
selectionSnapTargets,movingSelectionCentre,snappedSelectionTargetinsketchSnapPoints.ts, unit tests). Guide chapter 7 (en, de, es, it, da, ar, zh-cn, zh-tw). Asked for by @AnanasAPod.