fix: add rotation direction indicators and fix CORS for dev origins
- Add TOP/BTM labels to rotated box showing which edge is which after rotation - Allows user to visually see rotation direction without calculating degrees - Fix allowedDevOrigins to include common private IP ranges (192.168.*, 10.*, 172.16.*) - Resolves CORS warning when accessing from local network IPs
This commit is contained in:
@@ -131,6 +131,16 @@ export function DebugRotationPanel({
|
||||
ctx.translate(cropX + cropW / 2, cropY + cropH / 2);
|
||||
ctx.rotate((rotation * Math.PI) / 180);
|
||||
ctx.strokeRect(-cropW / 2, -cropH / 2, cropW, cropH);
|
||||
|
||||
// Add direction markers to rotated box
|
||||
ctx.setLineDash([]);
|
||||
ctx.fillStyle = '#FFB800';
|
||||
ctx.font = 'bold 12px monospace';
|
||||
ctx.textAlign = 'center';
|
||||
ctx.textBaseline = 'middle';
|
||||
ctx.fillText('↑ TOP', 0, -cropH / 2 - 10);
|
||||
ctx.fillText('↓ BTM', 0, cropH / 2 + 10);
|
||||
|
||||
ctx.restore();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user