| Summary: | Revise current default computation strategy of ChopBoxAnchor | ||
|---|---|---|---|
| Product: | [Tools] GEF | Reporter: | Alexander Nyßen <nyssen> |
| Component: | GEF FX | Assignee: | gef-inbox <gef-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | cletavernier, matthias.wienand |
| Version: | 0.2.0 | ||
| Target Milestone: | 4.0.0 (Neon) M7 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Bug Depends on: | 488354 | ||
| Bug Blocks: | |||
|
Description
Alexander Nyßen
I refactored the code to provide a ProjectionStrategy and a ChopBoxStrategy. The ProjectionStrategy projects the reference point onto the anchorage outline. The ChopBoxStrategy computes intersections from the reference point to its anchorage center, however, if no intersections are found, it falls back to the ProjectionStrategy. The new ChopBoxStrategy is the new default strategy, because using the nearest point results in using the corners of nodes in most cases (which is unintuitive). The code is published on the master branch, therefore, I resolve this ticket as fixed for 4.0.0 M7. |