| 1 |
/** |
| 2 |
* Common type definitions shared across the plugin. |
| 3 |
*/ |
| 4 |
|
| 5 |
/** |
| 6 |
* Focal point for background image positioning. |
| 7 |
* Values are normalized between 0 and 1. |
| 8 |
*/ |
| 9 |
export interface FocalPoint { |
| 10 |
x: number; |
| 11 |
y: number; |
| 12 |
} |
| 13 |
|
| 14 |
/** |
| 15 |
* WordPress media object returned from MediaUpload. |
| 16 |
*/ |
| 17 |
export interface MediaObject { |
| 18 |
id: number; |
| 19 |
url: string; |
| 20 |
alt?: string; |
| 21 |
title?: string; |
| 22 |
media_type?: string; |
| 23 |
type?: string; |
| 24 |
} |
| 25 |
|
| 26 |
/** |
| 27 |
* Valid content position values for slides. |
| 28 |
*/ |
| 29 |
export type ContentPosition = |
| 30 |
| 'top-left' |
| 31 |
| 'top-center' |
| 32 |
| 'top-right' |
| 33 |
| 'center-left' |
| 34 |
| 'center-center' |
| 35 |
| 'center-right' |
| 36 |
| 'bottom-left' |
| 37 |
| 'bottom-center' |
| 38 |
| 'bottom-right'; |
| 39 |
|