bubble-layout の端の扱い(魚眼の箱の反復打ち切り・子孫への落とし込み・ゼロ除算)
Maintainers usually reply within 12 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- typescript
- Domain
- backend
Research direction
Start with the cited domain entry points: src/lib/domain/measure.ts, drop.ts, pin.ts, resolve.ts, project.ts, and drag.ts; compare their existing tests and callers before changing behavior. Reproduce the listed edge cases, including whether the fisheye sizing behavior is intended, and check the UI caller in useBubbleInput.ts. Done means the domain preserves valid tree structure, handles degenerate inputs, and uses consistent overflow checks, with tests covering the outcomes.
Written by the indexing model from the issue text.
Description
bublys-libs/bubble-layout の domain で、ふだんの操作では踏みにくいが、端の入力で答えが崩れるものです。
1. 魚眼の箱の大きさを求める反復が、打ち切りの 60 回で止まる(収束しない)
-
1 回の反復で半幅が伸びるのは最大 pad(14px)ぶんなので、60 回では 840px までしか伸びない。収束していれば
H − need = 14になるはずが、coverflow(幅 340・札 90)で測ると:札の数 box.w H − need 40 1225 13.787 80 1898 5.997 150 2019 0.081 -
箱の大きさが反復回数で決まってしまい、それを知らせる手段も無い
-
設計の確認:
growの既定が true なので、魚眼の箱が札の数にほぼ比例して横に伸びる(40 枚で 1225px)。魚眼の意図と合っているか
2. 自分の子孫へ落とすのを domain が防いでいない
- 場所:
spaceSlotAt(drop.ts:173-187) - コメントには「掴んだ泡とその中身は除く」とあるが、
hitSpaceを検査していない - 実測:
commitDropで A をその子 B へ落とすとA.parent = Bの循環ができる。例外は出ず、A と B が画面から消える。以後isAncestorなどが無限ループになりうる - いまは ui 側(
useBubbleInput.ts:606がskipを渡している)で防げている。domain の動詞として守るべき不変条件
3. 退化したときのゼロ除算
sizeFitのproductで倍率が 0 に潰れると scale = 0。その seen をkeepSeenに渡すと1/mでfree.z = Infinity(pin.ts:138-140)equalのstep: 0にも防御が無い(valueFromPos)。一方wheelZ/turnByはstep || 1で守っている
4. 「収まらない並び」の判定が 3 か所にあり、余白の取り方が違う
resolve.ts:294-297はpadOf(見えない親なら 0)、project.ts:235-242とdrag.ts:257-265はMETRICS.PAD固定- 見えない親の並びでは、
fitFocusが「はみ出している」と数えて焦点を ±14 まで許す計算になる(要確認。いまの操作経路からは到達しにくい) - 1 か所の関数にまとめる
(行番号は main d41a42da 時点)
- Dominant language
- TypeScript
- Stars
- 1
- Forks
- 0
- Avg merge
- 9d 13h
- Merged PRs (30d)
- 10
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from fumicode/bublys-org
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
fumicode/bublys-org#261 ·
Maintainers usually reply within 12 days
-
enhancement Shiftonton
Difficulty 5/5 Over a week Newbie friendliness 15/100
fumicode/bublys-org#259 ·
Maintainers usually reply within 12 days
-
enhancement Shiftonton
Difficulty 3/5 1-2 days Newbie friendliness 42/100
fumicode/bublys-org#258 ·
Maintainers usually reply within 12 days
-
enhancement Shiftonton
Difficulty 4/5 3-5 days Newbie friendliness 25/100
fumicode/bublys-org#257 ·
Maintainers usually reply within 12 days
-
enhancement Shiftonton
Difficulty 4/5 3-5 days Newbie friendliness 55/100
fumicode/bublys-org#256 ·
Maintainers usually reply within 12 days
All issues in fumicode/bublys-org
Similar issues
-
chore
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
drydocs/meridian#1503 · 1 comment ·
Maintainers usually reply within 2 days
-
refactor review: high
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
1lck/Lithe-IDEA#2376 ·
Maintainers usually reply within 1 day
-
bug extension mcp
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
primer/primitives#1426 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
danielmiessler/LifeOS#2941 ·
Maintainers usually reply within 4 days