← 输入框|github.com|刷新
Skip to content

feat(area): support two-way size binding - #541

Open
aubarcito48 wants to merge 1 commit into
angular-split:mainfrom
aubarcito48:feat/536-area-size-two-way-binding
Open

aubarcito48 wants to merge 1 commit into
angular-split:mainfrom
aubarcito48:feat/536-area-size-two-way-binding

Conversation

@aubarcito48

Copy link
Copy Markdown

Closes #536.

Consumers currently need to handle split-level drag events to keep area sizes in parent state. This PR adds sizeChange, enabling [(size)] with plain properties and writable signals.

Changes

  • Update bound values during mouse, touch and keyboard resizing.
  • Preserve the existing size input and its transforms.
  • Prevent input feedback from resetting the layout, including partial bindings.
  • Preserve wildcard sizes and avoid emitting for unchanged or hidden areas.
  • Enter Angular's zone only when sizeChange has subscribers.
  • Update the simple example, add a dedicated binding example, and document the output.

Validation

  • Reproduced the missing live parent update with a failing test before implementation.
  • Library and production demo builds pass using Node 22.
  • All 54 Cypress tests pass across 9 specs, including 10 new regression tests.
  • ESLint, Prettier and git diff --check pass.

Tests ran on Windows using Cypress's bundled Electron browser. Touch coverage uses synthetic events; real-device and cross-browser testing were not performed.

Add sizeChange notifications while preserving transformed size inputs and partial bindings. Update examples and API documentation, and add regression coverage for resize interactions.

Closes angular-split#536

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support two-way-binding for as-split-area's size

1 participant