Skip to content

layerling 1.164.0

Choose a tag to compare

@henmedia henmedia released this 14 Nov 09:53
· 555 commits to main since this release
  • The command search and the shape search find a name in the language it is shown in (PR #1751, by @yokobond): The command search (Ctrl+K), the shape library search, the custom shapes search and the command picker of the shortcuts cut every text into words at anything that is not a-z or 0-9 (lib/commandSearch.ts), which threw away Japanese, Chinese, Russian and Arabic altogether, and letters like ø, æ, œ, ı, đ; typing "円柱" in the Japanese editor left the whole list standing. Words are now cut at anything that is not a letter, a digit or a mark belonging to a letter, and a query is cut the way a label is, so "USB-C" or "ねじ(頭付き)" find their entry. What a keyboard or an input method writes differently counts as the same: full-width and half-width forms, katakana and hiragana, ø æ œ ı đ ł ß, accents of Latin, Greek and Cyrillic letters, Hebrew points, Arabic vowel signs, the two spellings of a final ya and ha; the voiced kana stay letters of their own. A group name written without spaces (Han, hiragana, katakana) is found by a word anywhere in it. A query of nothing but punctuation finds nothing instead of everything. While an input method is composing, the keys are its own: Esc, the arrows, Home, End and Enter leave the command search alone, and Esc neither empties the shape search nor closes the shape window. Unit tests in commandSearch and shapeLibrarySections, including a sweep that types every library shape's name in each of the 20 languages. Checked in the editor in Japanese, Arabic, Russian, Chinese and German. Guide chapter 13 in every language names it; What's new card.

  • Delete single steps of the history, with what each takes (memory 14.11.2026, after #1728): A design too large to store with its whole history could only lose all of it (Delete history) or have the browser keep just its newest steps. The History view's list of steps now shows beside each step about how much room deleting it would free, counted as the stored design keeps it (a mesh, an exact body or a picture that several steps share is stored once and counts for none of them alone; historyEntryResources in lib/editorHistory.ts, historyStepSizes and historyFreedBytes in lib/historyStepSizes.ts), and above the list how much the whole history takes. A bin beside each step deletes it alone after a question; the design stays as it is, the state it stands at cannot be deleted, and Undo from the step after a deleted one goes straight to the one before (deleteHistoryEntries). Delete largest steps picks every step that frees 1 MB or more on its own and asks once for all of them, with the room they free together. A turned body is baked into a new mesh at every turn, so those steps are usually the large ones. The note that a stored copy kept only the newest steps now has a Show steps button that opens this list, and its text names the way. MCP: layerling_delete_history_steps (needs steps and confirm: true), and layerling_set_history_view with steps: true gives freesBytes per state and historyBytes. Unit tests historyStepSizes, historyViewMcp; 17 texts in 15 languages, the note in 20; guide chapter 4 and chapter 14 in every language, the MCP skill; What's new card.

  • On a touch screen a finger can be set to move, size or turn only (Discussion #1747): Around a selection the size handles, the turn arrows, the lift arrow and the slide arrows lie close together, and the part itself moves under a finger, so on a tablet a finger easily did something else than meant. A new button in the view bar, shown only on a device with a touch screen, goes through All handles, Move only, Size only and Turn only: the other handles are hidden, and set to the size or to turning, a finger on the part only selects it. The browser keeps the choice; with a mouse every handle stays (lib/touchHandleMode.ts, handleMode on TransformOverlay). Guide chapter 17 in every language. Checked in the editor with touch emulation: each mode shows only its handles, and a finger drag on the part moves it in Move only and leaves it in Turn only. Unit test touchHandleMode. Suggested by @repti3dexotics-oss.

  • The right-click menu no longer repeats an item in a bubble above it (Discussion #1745): Resting the mouse on an item of the right-click menu showed the same text again just above it, in the installed app as a bubble over the line above, in the browser as its tooltip. The editor names every button without a title of its own after its label, meant for buttons that show only a symbol; a menu's item shows its whole label already, so it now gets no such name (applyAutoTitles skips role="menuitem"). Unit test in autoButtonTitles. Reported by @uggyuggy.

  • The pointer over a framing square's arm end follows the arm (Discussion #1743): Over the end of any arm the mouse pointer showed the left-right arrows, also on the arm running up and down the screen and on the third arm. It now shows the double arrow along the arm as it runs on the screen: left-right, up-down or one of the slanted ones, also with the view turned (cornerRulerArmCursor in lib/rulerDimensions.ts). Unit test cornerRulerArmCursor. Reported by @HWKPARISTX.

  • A part dragged in the front or side view follows the pointer (Issue #1744): With the view level or almost level, as in the front view with orthographic projection, a dragged part stopped at random points, lagged behind the pointer or jumped in depth: the pointer's ray met the workplane far behind or not at all, so a pixel up or down moved the meeting point a long way. Seen less than 8 degrees from edge-on, the drag now takes the point from an upright plane facing the camera and brings it down onto the workplane, so the part follows the pointer along the axis that shows and keeps its depth; snapping leaves the hidden depth alone too (edgeOnWorkplanePoint in lib/placementWorkplane.ts). Checked in the editor with a slightly shaky drag from the front, level and tilted 1 and 6 degrees, orthographic and perspective. Unit test edgeOnWorkplaneDrag. Reported by @jaohee.

  • Print check says that it only checks, and opens the export (Discussion #1715): Someone looking for the way to the printer clicked the printer icon, landed in Print check and found only Check again. The window now says that it only checks and that printing goes through Export in the File group, with an Export button that closes the check and opens the export window. By @3Dwebster100 in #1715.

  • A group set as a hole cuts the STEP file as it cuts the design (Discussion #1748): A group set as a hole that held a solid with a hole of its own, such as a box with a capsule cut out of it used to trim a rounded capsule to an outline, went into the STEP file without its solid, and its inner hole cut the body instead: the export came out as a thin ring. Such a group now cuts with its solids less its own holes, as in the editor; a group made only of holes stays the holes it holds. By @dsptech11-prog in #1748.

  • brepjs 20.27.0 (from 20.22.2): Six small releases in a day: the library's brepkit part now uses brepkit-wasm 4.11.10 for speed, and the rest only adds showcases to its own playground. layerling uses no brepkit call and none of the playground, so the editor and the exports behave as before.