Claude/readme public port docs j6jrq2#2
Merged
Conversation
- BBox<D>にsnap_floor/has_sizeメソッドを追加 - RectGridにunit_to_px/hit_test/hit_test_with_ratio/hit_tests/offsetを追加 - 存在しないas_pxを削除、point_as_px/box_as_pxの戻り値型を修正 - フリー関数セクションを新設(corner_test/drag_resize/drag_translate/snap_region_to_unit/snap_point_to_unit) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01K1Pxgsai5LKvivXGUqDAbQ
主な変更: - Region<2>/Rectgrid<2>/DefiningExpression → BBox<2>/RectGrid<2>/IncrementFunction - Length enum廃止: BBox.base/offsetはいずれも[Unit; D]に統一 - Px/UnitがValueのnewtypeになったため.get()/.new()を各所に追加 - set_origin削除 → rectgrid.origin フィールド直代入 - set_expression(i,def) → set_definition(def,d)(引数順逆転、Result返り値) - update(regions) → box_as_px(&boxes)(Vec<Result>に変更、個別エラー対応) - unit_point → unit_to_px(d, &unit) を軸ごとに呼ぶ方式 - drag_offset/drag_move → grid.offset(pointer, z)に統合 - hit_testがフリー関数からRectGridのメソッドに変更 - corner_testのextend引数が廃止(BBoxのUnit座標に閉じた判定のみ) - pointer_down_offsetが廃止 → unit_to_px + grid.offsetでインライン化 - drag_resizeの戻り値がBBoxのみ(px値は別途unit_to_pxで計算) - drag_translateの戻り値が[Px;D]のみ(BBox自体は移動中更新しない) - snap_region_to_unit/snap_point_to_unitがpointer+drag_offset方式に変更 - DragEnd用にdrag_pointer: [f64; 2]フィールドをHandlerに追加 - lib.rsからpub mod ugridを削除(ugrid.rsはパイロットとして残置) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01K1Pxgsai5LKvivXGUqDAbQ
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.
Temp example impl by Claude Code