diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2023-01-16 10:31:30 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2023-01-16 10:31:30 +0900 |
| commit | 60d9bb02182376a41a751fc8bf09547e30fc3470 (patch) | |
| tree | f8a49504a50e0110631223e9cd32561371fd32b4 /packages/frontend/src/scripts/aiscript | |
| parent | enhance(client): AiScriptからカスタム絵文字一覧を参照できる... (diff) | |
| download | sharkey-60d9bb02182376a41a751fc8bf09547e30fc3470.tar.gz sharkey-60d9bb02182376a41a751fc8bf09547e30fc3470.tar.bz2 sharkey-60d9bb02182376a41a751fc8bf09547e30fc3470.zip | |
enhance(client): add timeline flash preset
Diffstat (limited to 'packages/frontend/src/scripts/aiscript')
| -rw-r--r-- | packages/frontend/src/scripts/aiscript/ui.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/frontend/src/scripts/aiscript/ui.ts b/packages/frontend/src/scripts/aiscript/ui.ts index 6e0e312116..2555cd391b 100644 --- a/packages/frontend/src/scripts/aiscript/ui.ts +++ b/packages/frontend/src/scripts/aiscript/ui.ts @@ -39,6 +39,7 @@ export type AsUiMfm = AsUiComponentBase & { type: 'mfm'; text?: string; size?: number; + bold?: boolean; color?: string; font?: 'serif' | 'sans-serif' | 'monospace'; }; @@ -208,6 +209,8 @@ function getMfmOptions(def: values.Value | undefined): Omit<AsUiMfm, 'id' | 'typ if (text) utils.assertString(text); const size = def.value.get('size'); if (size) utils.assertNumber(size); + const bold = def.value.get('bold'); + if (bold) utils.assertBoolean(bold); const color = def.value.get('color'); if (color) utils.assertString(color); const font = def.value.get('font'); @@ -216,6 +219,7 @@ function getMfmOptions(def: values.Value | undefined): Omit<AsUiMfm, 'id' | 'typ return { text: text?.value, size: size?.value, + bold: bold?.value, color: color?.value, font: font?.value, }; |