Skip to content

Item panel: edit physical width / height / depth directly #1307

Open

Description

@Aymericr

From discussion #830: when an agent or a user places an item with the wrong size, the only fix today is the Scale section of the item panel (packages/nodes/src/item/panel.tsx). The Dimensions row under it (W/H/D) is read-only, so to get "0.9 m wide" you have to work out the scale factor by hand.

Proposal

Make the W/H/D values in the item panel editable:

  • On edit, set scale[axis] = requested / asset.dimensions[axis].
  • Add a uniform / aspect lock. When it's on, apply the same factor to all three axes; when it's off, change only the edited axis.
  • Accept the usual measurement input (respecting the metric/imperial setting, like the other unit-aware inputs).
  • Guard against missing or zero asset.dimensions: fall back to the existing scale controls.
  • Keep it in the shared item panel so hosted and standalone editors behave the same.

Done when

  • Typing a width/height/depth updates the item's scale and the 3D/2D views.
  • Undo restores the previous scale in one step.
  • A unit test covers the scale math, including the lock and the zero-dimension guard.
  • A short screen recording is in the PR.

Activity

  1. added
    enhancement
    good first issue
    on Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementgood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions