-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tiled Gallery block: rewrite (#27458)
- Loading branch information
Showing
16 changed files
with
1,485 additions
and
589 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/** @format */ | ||
|
||
/** | ||
* Internal Dependencies | ||
*/ | ||
import { _x } from 'gutenberg/extensions/presets/jetpack/utils/i18n'; | ||
|
||
export const ALLOWED_MEDIA_TYPES = [ 'image' ]; | ||
export const DEFAULT_COLUMNS = 3; | ||
export const DEFAULT_GALLERY_WIDTH = 580; | ||
export const DEFAULT_LAYOUT = 'rectangular'; | ||
export const LAYOUT_STYLES = [ | ||
{ | ||
label: _x( 'Tiled mosaic', 'Tiled gallery layout' ), | ||
name: 'rectangular', | ||
isDefault: true, | ||
}, | ||
{ | ||
label: _x( 'Tiled columns', 'Tiled gallery layout' ), | ||
name: 'columns', | ||
}, | ||
{ | ||
label: _x( 'Square tiles', 'Tiled gallery layout' ), | ||
name: 'square', | ||
}, | ||
{ | ||
label: _x( 'Circles', 'Tiled gallery layout' ), | ||
name: 'circle', | ||
}, | ||
]; | ||
export const LAYOUTS = [ 'rectangular', 'columns', 'square', 'circle' ]; | ||
export const MAX_COLUMNS = 20; | ||
export const RESIZE_RATE_IN_MS = 200; | ||
export const TILE_MARGIN = 2; |
Oops, something went wrong.