Skip to content

Constraint Lens v1.5.0

Latest

Choose a tag to compare

@Botrops1 Botrops1 released this 28 May 19:50

v1.5.0 (current)

GUI improvements: auto-filter, section select-all, scrollable strips, ✕ clear button, profile area, auto-zoom toggle.

Canvas click → auto-filter (#22)

Selecting a single entity on the canvas now immediately sets the filter bar to that entity's label, narrowing the constraint list to every row that involves it. Multi-entity selections leave the filter unchanged. Click ✕ or clear the field to restore the full list.

Always-visible ✕ clear button (#23)

A small button sits permanently to the left of the filter input. It clears the filter instantly without having to select the text field first. The redundant native browser cancel button (hidden by -webkit-appearance) is suppressed.

Scrollable "Selected:" strip, capped at 3 rows (#25)

The entity chip strip above the filter bar now scrolls after 3 chip rows (max-height: 68 px) instead of expanding the palette arbitrarily. The scroll track uses the same thin Fusion-style scrollbar as the main list.

Scrollable "Properties of selected" footer, capped at 3 rows (#24)

The selection-info footer at the bottom scrolls after 3 entity rows (max-height: 76 px) and also uses the thin scrollbar style.

Section select-all checkboxes (#26)

Each of the Geometric Constraints, Dimensions, and Patterns and figures section headers now has a checkbox on the left. Clicking it selects all deletable rows in that section; clicking again deselects them. The checkbox shows an indeterminate state (−) when only some rows in the section are checked.

Profile area in footer (#27)

Selecting a sketch Profile (closed loop) in the footer section now shows its computed Area (in the active document units). Previously the footer showed a bare "Profile" label with no properties.

Auto-zoom toggle labeled (#29)

The ⌕ auto-zoom toggle button in the "Selected:" header now reads ⌕ Zoom for clarity. Active state uses a filled accent background so the on/off state is unambiguous at a glance.


v1.3.2

Bug fix: docked palette could not be resized beyond 700 px tall.

The v1.2.2 resize-affordance fix called setMaximumSize(420, 700), which
re-armed Fusion's Qt dock-widget resize handle as intended but also
imposed a hard 420×700 size cap. The palette opens at 420×600, so users
could only grow it by 100 px before the drag became a no-op. The fix
calls setMaximumSize(420, 700) to arm the handle, then immediately
calls setMaximumSize(0, 0) to clear the cap — (0, 0) is documented
as "no restriction" and removes the limit once the handle is already armed.


v1.3.1

Auto-zoom to selection — opt-in ⌕ toggle.

  • Added an auto-zoom toggle (⌕) in the "Selected:" section header. When on, every canvas selection repositions the camera to frame the selected entity (bounding-box fit, 1.5× padding, 0.5 cm min / 50 cm max). Works for single and multi-entity selections; skips silently on any API error.
  • Toggle state is persisted in localStorage and restored on palette reopen.
  • Default off — the camera is never moved unless the user explicitly enables this feature.

v1.3.0

Automatic canvas → palette lookup; "Show underconstrained" chips.

  • Find button removed. Canvas-to-palette lookup is now automatic: selecting anything on the canvas instantly highlights matching rows (blue left border), auto-scrolls to the first match, and shows entity chips in the new "Selected:" header strip above the filter bar. Powered by activeSelectionChanged (push-based, no polling, no button click).
  • "Selected:" section appears above the filter bar when entities are selected; hides itself when nothing is selected. Entity chips in this strip are clickable — clicking sets the filter and selects the entity on the canvas.
  • "Show underconstraint elements" now surfaces results as clickable entity chips labelled "Underconstrained:" in the same strip, instead of a plain text toast. A 750 ms suppression window prevents the text command's own selection side-effect from overwriting the labelled push.
  • Layout restructured: entity readout above the filter bar; a "Properties of selected:" section header added above the existing selection-info footer.