anishshobithps / anishshobithps/snipshot

Output scale / DPR control (--scale)

Đang mở Phù hợp với người mới
#14 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
area: aesthetics effort: small enhancement
Ngôn ngữ chính
TypeScript
Star
1
Fork
0
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

The device pixel ratio is hardcoded to 2× in `src/snapshot.ts`. Add `--scale ` (aka `--dpr`) to control output resolution. Complements #3 (custom export).

- [ ] `--scale` flag wired into `deviceScaleFactor`

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Start with src/snapshot.ts to inspect the hardcoded deviceScaleFactor, then trace the existing CLI option parsing to the snapshot call. Wire --scale and its --dpr alias so they control the output resolution, while preserving the current 2× default; done means the issue checklist is satisfied.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
typescript
Lĩnh vực
cli
Loại issue
Tính năng
Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
72/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.