GraphiteEditor / GraphiteEditor/Graphite

Merging anchors in path tool

オープン
#4,327 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Rust
スター
27.2k
フォーク
1.3k
平均マージ
20時間 5分
マージ済み PR(30日)
57

説明

It is possible to join anchors with a new segment Ctrl+J. However it is no yet possible to simply merge the anchors (no new segments).

This should work across different layers. This should reuse the merging logic from Ctrl+J:

https://github.com/GraphiteEditor/Graphite/blob/97f8113fe43d41b15ca3a56c300c48b7c8fda5c4/editor/src/messages/tool/common_functionality/shape_editor.rs#L535-L536

This functionality is also available in inkscape and figma.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

editor/src/messages/tool/common_functionality/shape_editor.rs の、リンクされている Ctrl+J のマージロジックから開始します。その操作がアンカーとレイヤーをどのように処理するかを追跡し、次にセグメントを作成せずにマージするための path-tool のエントリーポイントを特定します。選択したアンカーを異なるレイヤー間でマージでき、既存の Ctrl+J の動作が維持されれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
rust
領域
computer-graphics
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
64/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。