diff options
Diffstat (limited to 'plugins/jetpack/extensions/blocks/tiled-gallery/constants.js')
-rw-r--r-- | plugins/jetpack/extensions/blocks/tiled-gallery/constants.js | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/plugins/jetpack/extensions/blocks/tiled-gallery/constants.js b/plugins/jetpack/extensions/blocks/tiled-gallery/constants.js new file mode 100644 index 00000000..0df90737 --- /dev/null +++ b/plugins/jetpack/extensions/blocks/tiled-gallery/constants.js @@ -0,0 +1,28 @@ +export const ALLOWED_MEDIA_TYPES = [ 'image' ]; +export const DEFAULT_GALLERY_WIDTH = 580; +export const GUTTER_WIDTH = 4; +export const MAX_COLUMNS = 20; +export const PHOTON_MAX_RESIZE = 2000; + +/** + * Layouts + */ +export const LAYOUT_CIRCLE = 'circle'; +export const LAYOUT_COLUMN = 'columns'; +export const LAYOUT_DEFAULT = 'rectangular'; +export const LAYOUT_SQUARE = 'square'; +export const LAYOUT_STYLES = [ + { + isDefault: true, + name: LAYOUT_DEFAULT, + }, + { + name: LAYOUT_CIRCLE, + }, + { + name: LAYOUT_SQUARE, + }, + { + name: LAYOUT_COLUMN, + }, +]; |