PluginProbe
Slider Block by Sliderberg – WordPress Slider & Carousel Plugin for Gutenberg / trunk
Slider Block by Sliderberg – WordPress Slider & Carousel Plugin for Gutenberg vtrunk
1.2.3 1.2.2 1.2.0 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.7 1.0.8 1.0.9
sliderberg / src / types / common.ts

common.ts in Slider Block by Sliderberg – WordPress Slider & Carousel Plugin for Gutenberg trunk, at src/types/common.ts

39 lines 647 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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