Conversation
This reverts commit dc0d3aa.
Made-with: Cursor
NSEvent のローカルモニタで keyDown を横取りし、グリッド表示中は 矢印キーをサブグリッド間隔、Shift+矢印キーをメイングリッド間隔の 移動に差し替える。Cmd/Option/Control 併用時、設定パネルキー時、 テキスト編集中、ノード未選択時は素通しする。オンカーブノードに 付随するオフカーブハンドルは _snapDuringDrag_ と同じロジックで 追従させる。 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- 四角・三角両グリッドに対してメイン/サブ各間隔値をH/V・Main/Sub 独立設定・リンク切替で管理できるグリッド間隔(gap)機能を追加 - gap > 0 の場合、1本の線を法線方向に ±gap/2 ずらした2本に分離して描画 - 三角グリッドでは全3系統(水平/斜め2方向)をギャップ考慮で描画し、 スナップもずらした線の交点に吸着するよう対応 - 設定パネルで値を変更するたびにグリッドをリアルタイムプレビュー( キャンセルで確定前の状態に戻る) - 三角形モード時は H 欄のみ有効、V・Sync H/V は無効化 Co-authored-by: Cursor <cursoragent@cursor.com>
- 矢印キー移動量をサブ/メイングリッド単位に割り当て - グリッド間隔(gap)機能とリアルタイムプレビューを追加(四角・三角)
info['Scale'] の取得を try/except に変更し、PyObjC の NSDictionary が isinstance(info, dict) を通過しないケースでも正しいスケール係数を取得する。 これによりズームレベルに関わらず常に1ピクセル幅で描画される。 Co-authored-by: Cursor <cursoragent@cursor.com>
- 設定に offsetX / offsetY / offsetSyncHV を追加(_defaultSettings/_getSettings/_saveSettings) - _strokeGrid に offsetX/offsetY 引数を追加: 垂直線は offsetX+k*stepX、水平線は y_origin+offsetY を位相起点として使用 - _strokeTriGridH/V に offsetX/offsetY を追加: すべての線族の位相起点を (offsetX, y_origin+offsetY) にシフト - _triFamilies の位相計算をオフセット対応に更新(水平・垂直三角グリッド両方) - _snapDuringDrag_ でスクエア・三角グリッド双方のスナップ計算にオフセットを反映 - 設定パネルに「Grid Offset:」セクション(H/V 独立、Sync H/V リンク)を追加 - xib: ウィンドウ高さ 490→520、既存コントロールを +30 上シフト、オフセット行を挿入 - nib 再コンパイル済み Co-authored-by: Cursor <cursoragent@cursor.com>
followItalic を追加し、OFF 時は直交グリッドを斜め編集領域にクリップして描画する。 三角形グリッドは Y をメトリクス基準に固定し X を補正して、H=V 同期時に正三角形になる。 Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Test plan