feat(cdkDrag): cdkDragHandleBoundary
- 主要言語
- TypeScript
- スター
- 25k
- フォーク
- 6.8k
- 平均マージ
- 1日 8時間
- マージ済み PR(30日)
- 91
説明
### Feature Description
I want to limit where my dragable component can be dragged to but by its handle element rather than by its entire dragable element.
### Use Case
A bottom sliding drawer. If I can mark the entire drawer with `cdkDrag`, place `cdkDragHandle` on the drawer's handle, limit motion to the y axis, and then have a new `cdkHandleBoundary` directive then my boundary element can use overflow clipping so that when the handle is dragged to the bottom of the boundary the entire drawer content is hidden and when the handle is dragged upward then the drawer content is shown.
コントリビューションガイド
調査の方向性
まず cdkDrag と cdkDragHandle のエントリポイントを読み、移動境界がどのように定義されているかを追跡します。新しい cdkHandleBoundary ディレクティブによって、drawer のユースケースにおける y 軸方向の移動と overflow のクリッピングを維持しながら、handle を介したドラッグをどのように制限できるかを判断します。説明されている sliding drawer のシナリオについて、要求された handle ベースの境界動作が実装され、検証されていれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- angular, typescript
- 領域
- frontend
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100