Skip to content

Conversation

@texodus
Copy link
Owner

@texodus texodus commented Jan 14, 2026

This branch introduces a global constants configuration system for regular-layout, converting hardcoded constants into a configurable Physics interface that can be customized per-instance.

  • New Physics interface and DEFAULT_PHYSICS - consolidates most arbitrary layout behavior constants (drag distance, edge tolerances, divider sizes, overlay mode, etc.) into a single typed configuration object that can be overridden via restorePhysics() and queried via savePhysics() methods on the RegularLayout element.
  • Configurable child attribute name - the attribute used to match children to grid positions (previously hardcoded as "name") is now configurable via CHILD_ATTRIBUTE_NAME.
  • Bug fix for root edge drop targets - fixes incorrect path calculation when dropping panels at the far right or bottom edges.

@texodus texodus added the enhancement New feature or request label Jan 15, 2026
@texodus texodus merged commit 6710f3e into main Jan 15, 2026
1 check passed
@texodus texodus deleted the global-physics branch January 15, 2026 02:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants