diff options
| author | Leah <kevinlukej@gmail.com> | 2024-05-23 21:40:25 +0000 |
|---|---|---|
| committer | Amelia Yukii <amelia.yukii@shourai.de> | 2024-05-23 21:40:25 +0000 |
| commit | f9a7cd0daa869b23b100f6d32e71f0faaa7873fc (patch) | |
| tree | 852c6ec825ee817d98abce4cee5cace9bb858632 /packages/frontend/src/const.ts | |
| parent | merge: Ported cutiekeys followmouse mfm (!524) (diff) | |
| download | sharkey-f9a7cd0daa869b23b100f6d32e71f0faaa7873fc.tar.gz sharkey-f9a7cd0daa869b23b100f6d32e71f0faaa7873fc.tar.bz2 sharkey-f9a7cd0daa869b23b100f6d32e71f0faaa7873fc.zip | |
Ported firefish crop and fade mfm
Diffstat (limited to 'packages/frontend/src/const.ts')
| -rw-r--r-- | packages/frontend/src/const.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/frontend/src/const.ts b/packages/frontend/src/const.ts index 4c7df613a5..5109c34c02 100644 --- a/packages/frontend/src/const.ts +++ b/packages/frontend/src/const.ts @@ -162,7 +162,7 @@ export const DEFAULT_SERVER_ERROR_IMAGE_URL = 'https://launcher.moe/error.png'; export const DEFAULT_NOT_FOUND_IMAGE_URL = 'https://launcher.moe/missingpage.webp'; export const DEFAULT_INFO_IMAGE_URL = 'https://launcher.moe/nothinghere.png'; -export const MFM_TAGS = ['tada', 'jelly', 'twitch', 'shake', 'spin', 'jump', 'bounce', 'flip', 'x2', 'x3', 'x4', 'scale', 'position', 'fg', 'bg', 'border', 'font', 'blur', 'rainbow', 'sparkle', 'rotate', 'ruby', 'unixtime', 'followmouse']; +export const MFM_TAGS = ['tada', 'jelly', 'twitch', 'shake', 'spin', 'jump', 'bounce', 'flip', 'x2', 'x3', 'x4', 'scale', 'position', 'fg', 'bg', 'border', 'font', 'blur', 'rainbow', 'sparkle', 'rotate', 'ruby', 'unixtime', 'crop', 'fade', 'followmouse']; export const MFM_PARAMS: Record<typeof MFM_TAGS[number], string[]> = { tada: ['speed=', 'delay='], jelly: ['speed=', 'delay='], @@ -186,5 +186,7 @@ export const MFM_PARAMS: Record<typeof MFM_TAGS[number], string[]> = { rotate: ['deg='], ruby: [], unixtime: [], + fade: ['speed=', 'delay=', 'loop=', 'out'], + crop: ['top=', 'bottom=', 'left=', 'right='], followmouse: ['x', 'y', 'rotateByVelocity', 'speed='], }; |