SnapAPI/sdk
SnapAPI Developer 3e9336ae67
Some checks failed
Build & Deploy to Staging / Build & Deploy to Staging (push) Has been cancelled
Add clip parameter for viewport cropping
- Add clip object parameter to crop rectangular areas from screenshots
- Support POST body: clip {x, y, width, height} number fields
- Support GET query: clipX, clipY, clipW, clipH params
- Validation: all fields required, x/y >=0, width/height >0, max 3840x2160
- Mutually exclusive with fullPage and selector
- Update OpenAPI docs with clip examples
- Update Node.js and Python SDK READMEs with clip usage
- Add comprehensive test coverage (11 new tests)
- Tests: missing fields, negative coords, zero dimensions, max limits, mutual exclusivity
2026-03-05 15:13:12 +01:00
..
node Add clip parameter for viewport cropping 2026-03-05 15:13:12 +01:00
python Add clip parameter for viewport cropping 2026-03-05 15:13:12 +01:00