Repository navigation
Conversation
✅ Deploy Preview for ohif-dev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (1)
💤 Files with no reviewable changes (1)
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 6 remain after this review. 📝 WalkthroughWalkthroughThe test suite adds a case for drawing a fully contained Shift stroke inside an outer spline contour. The test checks that one visible SVG path has exactly two subpaths and captures a screenshot. ChangesSpline Contour Segmentation Test
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Other Merge Risk: ⚪ Minimal · up to This PR adds test coverage for cutting a hole in a spline contour. It doesn't change production behavior, and no merge-blocking risk was found. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Context
Adds E2E coverage for cutting a hole into a spline contour. If you hold Shift while drawing a stroke fully inside an existing contour in the same segment, the stroke cuts a hole in that contour.
SplineContourSegmentation.spec.ts(#6117) already covers the case where a Shift stroke overlaps a contour's edge and carves part of it away. It had no test for a stroke that falls entirely inside the contour.Changes & Results
Shift stroke inside a spline contour cuts a hole (
SplineContourSegmentation.spec.ts)clickShape), then holds Shift and draws a second spline (holeClickShape) fully inside it.dattribute has exactly two subpaths (twoMcommands), one for the outline and one for the hole. The hole becomes part of the contour's own path, not a second path element.Supporting changes
holeClickShapeand thetwoSubpathsDmatcher are spec-level constants.screenShotPaths.splineContourSegmentation.contourWithHoleentry and its baseline,contourWithHole.png.Testing
Checklist
PR
semantic-release format and guidelines.
Code
etc.)
Public Documentation Updates
additions or removals.
Tested Environment
Summary by CodeRabbit