UNPKG

@snap/camera-kit

Version:
45 lines (23 loc) 776 B
[**CameraKit Web SDK v1.13.0**](../README.md) *** [CameraKit Web SDK](../globals.md) / ScreenRegion # Interface: ScreenRegion Represents a screen region with its normalized rectangular bounds. All coordinates are normalized values between 0.0 and 1.0 relative to the canvas size. For example, { x: 0.5, y: 0.5, width: 0.5, height: 0.5 } represents right-bottom quarter of the canvas. ## Properties ### x > **x**: `number` Normalized x-coordinate of the region's top-left corner (0.0 to 1.0). *** ### y > **y**: `number` Normalized y-coordinate of the region's top-left corner (0.0 to 1.0). *** ### width > **width**: `number` Normalized width of the region (0.0 to 1.0). *** ### height > **height**: `number` Normalized height of the region (0.0 to 1.0).