aboutsummaryrefslogtreecommitdiffhomepage
path: root/public/bluebey-studio/src/presets.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/bluebey-studio/src/presets.js')
-rw-r--r--public/bluebey-studio/src/presets.js32
1 files changed, 32 insertions, 0 deletions
diff --git a/public/bluebey-studio/src/presets.js b/public/bluebey-studio/src/presets.js
index 9baa3a4..6bcf724 100644
--- a/public/bluebey-studio/src/presets.js
+++ b/public/bluebey-studio/src/presets.js
@@ -36,11 +36,41 @@ function captionDefaults() {
borderWidth: 4,
bold: false,
align: 'left', // left | center | right
+ vertical: false, // 縦書き (columns run right to left)
font: 'rounded', // rounded (vendored) | system
};
}
/**
+ * ナレーション (a narration box): a plain rectangular panel of vertical text, the
+ * manga narration style. Same shape as a bubble, with a rect box, no tail, and
+ * 縦書き on by default.
+ */
+function narrationDefaults() {
+ return {
+ enabled: false,
+ text: 'ここで、ぶるべーは考えた。',
+ x: 0.06,
+ y: 0.08,
+ maxWidth: 0.5,
+ bubble: 'rect',
+ tail: 'none',
+ fontSize: 30,
+ lineHeight: 1.35,
+ padding: 16,
+ radius: 8,
+ textColor: '#2b2433',
+ bubbleColor: '#ffffff',
+ borderColor: '#2b2433',
+ borderWidth: 3,
+ bold: false,
+ align: 'left',
+ vertical: true,
+ font: 'rounded',
+ };
+}
+
+/**
* Per-kind starting size and height for ひげ, applied when a kind is picked. The
* textured kinds are drawings, so they are drawn at a different scale from the
* built-in strokes; a kind with no entry resets to the neutral values.
@@ -336,6 +366,8 @@ export function defaultState() {
caption: captionDefaults(),
// The second bubble starts on the other side, so the two do not overlap.
caption2: { ...captionDefaults(), text: '', x: 0.08, y: 0.44 },
+ // A ナレーション box (vertical text, rect, no tail).
+ narration: narrationDefaults(),
// -------------------------------------------------------- 口パク (mouth flap)
// The mouth moves as if talking, with no sound at all: the device's own
// speech voices belong to the device, so a recording of them is not ours to