Skip to content

Commit edc74eb

Browse files
committed
プリセットサイズを追加
1 parent 75955cc commit edc74eb

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

src/app/image_generator/presetSize.ts

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ export const PRESET_SIZES = [
44
{
55
label: '基本サイズ',
66
options: [
7+
{
8+
label: '32x32',
9+
value: {
10+
width: 32,
11+
height: 32,
12+
},
13+
},
714
{
815
label: '100x100',
916
value: {
@@ -166,6 +173,25 @@ export const PRESET_SIZES = [
166173
},
167174
],
168175
},
176+
{
177+
label: 'Web',
178+
options: [
179+
{
180+
label: 'favicon 16x16',
181+
value: {
182+
width: 16,
183+
height: 16,
184+
},
185+
},
186+
{
187+
label: 'スマホのホーム画面アイコン 180x180',
188+
value: {
189+
width: 180,
190+
height: 180,
191+
},
192+
},
193+
],
194+
},
169195
];
170196

171197
export const PRESET_SIZE_OPTIONS = PRESET_SIZES.map(({ label, options }) => ({

0 commit comments

Comments
 (0)