@kubohiroya/turbowarp-bubble 0.1.1 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16,6 +16,16 @@ export interface RenderBubbleSvgInput {
16
16
  readonly fontFamily?: string;
17
17
  readonly fontSize?: number;
18
18
  readonly title?: string;
19
+ /**
20
+ * Cross-fades two Bubble body geometries while keeping the text layer
21
+ * stable. This is used by the runtime adapter for animateBubbleShape.
22
+ */
23
+ readonly shapeTransition?: BubbleShapeTransition;
24
+ }
25
+ export interface BubbleShapeTransition {
26
+ readonly from: BubbleVisualStyle;
27
+ readonly to: BubbleVisualStyle;
28
+ readonly progress: number;
19
29
  }
20
30
  export interface BubbleBodyCenterOffsetInput {
21
31
  readonly style: BubbleVisualStyle;
@@ -1,15 +1,37 @@
1
- import type { AssetManagerComposition, AssetManagerCompositionTarget } from "@kubohiroya/turbowarp-asset-manager/composition";
2
- import type { SvgTextComposition, SvgTextTarget } from "@kubohiroya/turbowarp-svg-text/composition";
3
1
  import { type BubblePlacement, type BubblePlacementInput } from "./placement.js";
4
2
  import { type BubbleOffset, type BubbleOffsetInput } from "./actor-transform.js";
5
3
  import { type BubbleVisualStyle } from "./bubble-svg.js";
4
+ import { type BubbleRevealInput, type BubbleRevealUnit, type NormalizedBubbleReveal } from "./reveal.js";
6
5
  export { UnicodeLineBreakProvider, wrapText, type LineBreakOpportunity, type LineBreakProvider, type TextWidthMeasurer, type WrappedTextLayout, type WrappedTextLine, type WrapTextInput, } from "./text-layout.js";
7
6
  export { bubbleBackgroundRegions, bubbleDirectionAliases, bubbleDirectionNames, defaultBubblePlacementInput, normalizeBubblePlacement, type BubbleActorPlacement, type BubbleBackgroundPlacement, type BubbleBackgroundRegion, type BubbleDirectionAlias, type BubbleDirectionName, type BubblePlacement, type BubblePlacementInput, } from "./placement.js";
8
7
  export { actorRelativeBubbleCenter, defaultBubbleDistance, defaultBubbleOffset, defaultBubbleTailLength, normalizeBubbleDistance, normalizeBubbleOffset, normalizeBubbleTailLength, type ActorBounds, type ActorRelativeCenterInput, type BubbleOffset, type BubbleOffsetInput, } from "./actor-transform.js";
9
- export { bubbleBodyCenterOffset, bubbleVisualStyles, renderBubbleSvg, type BubbleBodyCenterOffsetInput, type BubbleVisualStyle, type RenderBubbleSvgInput, } from "./bubble-svg.js";
8
+ export { bubbleBodyCenterOffset, bubbleVisualStyles, renderBubbleSvg, type BubbleBodyCenterOffsetInput, type BubbleShapeTransition, type BubbleVisualStyle, type RenderBubbleSvgInput, } from "./bubble-svg.js";
9
+ export { bubbleRevealUnits, normalizeBubbleReveal, revealedBubbleText, splitBubbleText, type BubbleRevealInput, type BubbleRevealLayout, type BubbleRevealUnit, type NormalizedBubbleReveal, } from "./reveal.js";
10
10
  export type BubbleKind = "say" | "think";
11
- export type BubbleAnimationMode = "idle" | "talking" | "awaiting-advance";
12
- export type BubbleLayer = "portraitBase" | "portraitBlink" | "portraitTalk" | "advanceIndicator";
11
+ export type BubbleAnimationMode = "idle" | "talking" | "awaiting-continue";
12
+ export type BubbleEase = "linear" | "easeIn" | "easeOut" | "easeInOut";
13
+ export type BubbleMotionName = "fadeIn" | "fadeOut" | "floatIn" | "floatOut" | "zoomIn" | "zoomOut" | "riseUp" | "sink" | "shake" | "explode" | "animateBubbleShape";
14
+ export interface BubbleMotionInput {
15
+ readonly name: BubbleMotionName;
16
+ readonly durationSeconds?: number;
17
+ readonly ease?: BubbleEase;
18
+ readonly direction?: number | string;
19
+ readonly count?: number;
20
+ readonly relativeScale?: number;
21
+ readonly speed?: number;
22
+ readonly visualStyle?: BubbleVisualStyle;
23
+ }
24
+ export interface BubbleAudioInput {
25
+ readonly voice?: string;
26
+ readonly reveal?: string;
27
+ readonly finish?: string;
28
+ }
29
+ export interface BubbleFinishInput {
30
+ readonly unit?: BubbleRevealUnit;
31
+ readonly condition?: () => boolean | Promise<boolean>;
32
+ readonly timeoutSeconds?: number;
33
+ }
34
+ export type BubbleLayer = "portraitBase" | "portraitBlink" | "portraitLipSync" | "continueIndicator";
13
35
  export interface BubbleFrameAnimationInput {
14
36
  readonly frames: ReadonlyArray<string>;
15
37
  readonly frameIntervalSeconds: number;
@@ -17,18 +39,26 @@ export interface BubbleFrameAnimationInput {
17
39
  export interface BubblePortraitInput {
18
40
  readonly base: string;
19
41
  readonly blink?: BubbleFrameAnimationInput;
20
- readonly talk?: BubbleFrameAnimationInput;
42
+ readonly lipSync?: BubbleFrameAnimationInput;
21
43
  }
22
44
  export interface BubbleStyleInput {
23
45
  readonly name: string;
24
46
  readonly textStyle: string;
47
+ readonly maxWidth?: number;
48
+ readonly textLocale?: string;
25
49
  readonly placement?: BubblePlacementInput;
26
50
  readonly distance?: number;
27
51
  readonly tailLength?: number;
28
52
  readonly offset?: BubbleOffsetInput;
29
53
  readonly visualStyle?: BubbleVisualStyle;
30
54
  readonly portrait?: BubblePortraitInput;
31
- readonly advanceIndicator?: BubbleFrameAnimationInput;
55
+ readonly continueIndicator?: BubbleFrameAnimationInput;
56
+ readonly reveal?: BubbleRevealInput;
57
+ readonly audio?: BubbleAudioInput;
58
+ /** Animation played when the Bubble drawable first becomes visible. */
59
+ readonly showAnimation?: BubbleMotionInput;
60
+ /** Animation played before the Bubble drawable is hidden. */
61
+ readonly hideAnimation?: BubbleMotionInput;
32
62
  }
33
63
  export interface BubbleFrameAnimation {
34
64
  readonly frames: ReadonlyArray<string>;
@@ -37,34 +67,75 @@ export interface BubbleFrameAnimation {
37
67
  export interface BubblePortrait {
38
68
  readonly base: string;
39
69
  readonly blink?: BubbleFrameAnimation;
40
- readonly talk?: BubbleFrameAnimation;
70
+ readonly lipSync?: BubbleFrameAnimation;
41
71
  }
42
72
  export interface BubbleStyle {
43
73
  readonly name: string;
44
74
  readonly textStyle: string;
75
+ readonly maxWidth?: number;
76
+ readonly textLocale?: string;
45
77
  readonly placement: BubblePlacement;
46
78
  readonly distance: number;
47
79
  readonly tailLength: number;
48
80
  readonly offset: BubbleOffset;
49
81
  readonly visualStyle: BubbleVisualStyle;
50
82
  readonly portrait?: BubblePortrait;
51
- readonly advanceIndicator?: BubbleFrameAnimation;
83
+ readonly continueIndicator?: BubbleFrameAnimation;
84
+ readonly reveal?: NormalizedBubbleReveal;
85
+ readonly audio?: BubbleAudioInput;
86
+ readonly showAnimation?: BubbleMotionInput;
87
+ readonly hideAnimation?: BubbleMotionInput;
88
+ }
89
+ export interface BubbleAssetTarget {
90
+ readonly id: string;
91
+ readonly isStage: boolean;
92
+ }
93
+ export interface BubbleImageCapability {
94
+ readonly applyToTarget: (name: unknown, target: BubbleAssetTarget) => void | Promise<void>;
95
+ readonly getMimeType: (name: unknown) => string;
96
+ readonly isRegistered: (name: unknown) => boolean;
97
+ }
98
+ export interface BubbleAudioCapability {
99
+ readonly playSound: (name: unknown, options?: Readonly<{
100
+ untilDone?: boolean;
101
+ }>) => Promise<void>;
102
+ readonly isRegistered?: (name: unknown) => boolean;
103
+ readonly getMimeType?: (name: unknown) => string;
104
+ }
105
+ export interface BubbleTextTarget {
106
+ readonly drawableID: number;
107
+ }
108
+ export interface BubbleSvgText {
109
+ readonly setText: (input: {
110
+ readonly styleName: string;
111
+ readonly target: BubbleTextTarget;
112
+ readonly text: string;
113
+ }) => void;
114
+ readonly releaseTarget: (target: BubbleTextTarget) => void;
115
+ readonly measureText?: (input: {
116
+ readonly styleName: string;
117
+ readonly text: string;
118
+ }) => number;
52
119
  }
53
- export type BubbleAssetManager = Pick<AssetManagerComposition, "applyToTarget" | "getMimeType" | "isRegistered">;
54
- export type BubbleSvgText = Pick<SvgTextComposition, "releaseTarget" | "setText">;
55
120
  export interface BubbleSurfaceTargets {
56
- readonly text: SvgTextTarget;
57
- readonly portraitBase?: AssetManagerCompositionTarget;
58
- readonly portraitBlink?: AssetManagerCompositionTarget;
59
- readonly portraitTalk?: AssetManagerCompositionTarget;
60
- readonly advanceIndicator?: AssetManagerCompositionTarget;
121
+ readonly text: BubbleTextTarget;
122
+ readonly portraitBase?: BubbleAssetTarget;
123
+ readonly portraitBlink?: BubbleAssetTarget;
124
+ readonly portraitLipSync?: BubbleAssetTarget;
125
+ readonly continueIndicator?: BubbleAssetTarget;
61
126
  }
62
127
  export interface BubbleSurface {
63
128
  readonly targets: BubbleSurfaceTargets;
64
129
  setLayerVisible(layer: BubbleLayer, visible: boolean): void | Promise<void>;
130
+ updateStyle(style: BubbleStyle): void | Promise<void>;
65
131
  show(): void | Promise<void>;
66
132
  hide(): void | Promise<void>;
67
133
  dispose(): void | Promise<void>;
134
+ /** Optional host-native motion implementation. */
135
+ animate?(motion: BubbleMotionInput): void | Promise<void>;
136
+ /** Captures the currently rendered text size for RESERVED reveal layout. */
137
+ captureTextLayout?(): void;
138
+ clearTextLayout?(): void;
68
139
  }
69
140
  export interface BubbleSurfaceFactoryInput {
70
141
  readonly actor: unknown;
@@ -83,7 +154,8 @@ export interface BubbleAnimationErrorContext {
83
154
  readonly assetName: string;
84
155
  }
85
156
  export interface BubbleCompositionOptions {
86
- readonly assetManager: BubbleAssetManager;
157
+ readonly imageResolver?: BubbleImageCapability;
158
+ readonly audio?: BubbleAudioCapability;
87
159
  readonly svgText: BubbleSvgText;
88
160
  readonly createSurface: BubbleSurfaceFactory;
89
161
  readonly scheduler?: BubbleScheduler;
@@ -96,13 +168,19 @@ export interface ShowBubbleInput {
96
168
  readonly text: string;
97
169
  readonly styleName: string;
98
170
  readonly animationMode?: BubbleAnimationMode;
171
+ readonly reveal?: BubbleRevealInput;
99
172
  }
100
173
  export interface BubbleHandle {
101
174
  readonly actorKey: string;
102
175
  readonly kind: BubbleKind;
103
176
  readonly animationMode: BubbleAnimationMode;
104
177
  setText(text: string): Promise<void>;
178
+ updateStyle(style: BubbleStyleInput): Promise<void>;
105
179
  setAnimationMode(mode: BubbleAnimationMode): Promise<void>;
180
+ revealNext(): Promise<boolean>;
181
+ revealAll(): Promise<void>;
182
+ finish(input?: BubbleFinishInput): Promise<void>;
183
+ animate(motion: BubbleMotionInput): Promise<void>;
106
184
  close(): Promise<void>;
107
185
  }
108
186
  export interface BubbleComposition {
@@ -113,7 +191,7 @@ export interface BubbleComposition {
113
191
  releaseAll(): Promise<void>;
114
192
  dispose(): Promise<void>;
115
193
  }
116
- export type BubbleCompositionErrorCode = "BUBBLE-COMPOSITION-001" | "BUBBLE-COMPOSITION-002" | "BUBBLE-COMPOSITION-003" | "BUBBLE-COMPOSITION-004" | "BUBBLE-COMPOSITION-005";
194
+ export type BubbleCompositionErrorCode = "BUBBLE-COMPOSITION-001" | "BUBBLE-COMPOSITION-002" | "BUBBLE-COMPOSITION-003" | "BUBBLE-COMPOSITION-004" | "BUBBLE-COMPOSITION-005" | "BUBBLE-COMPOSITION-006" | "BUBBLE-COMPOSITION-007";
117
195
  export declare class BubbleCompositionError extends Error {
118
196
  readonly code: BubbleCompositionErrorCode;
119
197
  constructor(code: BubbleCompositionErrorCode, message: string);
@@ -0,0 +1,26 @@
1
+ export declare const bubbleRevealUnits: readonly ["CHARACTER", "WORD", "LINE", "BLOCK"];
2
+ export type BubbleRevealUnit = (typeof bubbleRevealUnits)[number];
3
+ export type BubbleRevealLayout = "DYNAMIC" | "RESERVED";
4
+ export interface BubbleRevealInput {
5
+ readonly unit: BubbleRevealUnit;
6
+ /** Characters used to separate WORD units. Whitespace is used by default. */
7
+ readonly delimiters?: string;
8
+ /** Keep WORD delimiters in the rendered text when true. */
9
+ readonly showDelimiters?: boolean;
10
+ readonly layout?: BubbleRevealLayout;
11
+ /** Automatically advance after this many seconds. Zero disables auto advance. */
12
+ readonly intervalSeconds?: number;
13
+ /** Optional named audio asset played once per revealed unit. */
14
+ readonly sound?: string;
15
+ }
16
+ export interface NormalizedBubbleReveal extends BubbleRevealInput {
17
+ readonly delimiters: string;
18
+ readonly showDelimiters: boolean;
19
+ readonly layout: BubbleRevealLayout;
20
+ readonly intervalSeconds: number;
21
+ readonly sound?: string;
22
+ }
23
+ export declare function normalizeBubbleReveal(value: unknown): NormalizedBubbleReveal;
24
+ /** Returns append-only chunks; joining the first n chunks gives the visible text. */
25
+ export declare function splitBubbleText(text: string, reveal: NormalizedBubbleReveal): readonly string[];
26
+ export declare function revealedBubbleText(chunks: readonly string[], count: number): string;
@@ -1,4 +1,4 @@
1
- import { type BubbleComposition, type BubbleCompositionOptions, type BubbleAssetManager, type BubbleScheduler, type BubbleSvgText } from "./composition.js";
1
+ import { type BubbleComposition, type BubbleCompositionOptions, type BubbleAudioCapability, type BubbleImageCapability, type BubbleScheduler, type BubbleSvgText } from "./composition.js";
2
2
  export interface TurboWarpBubbleTarget {
3
3
  readonly id: string;
4
4
  readonly isStage: boolean;
@@ -25,6 +25,8 @@ export interface TurboWarpBubbleRenderer {
25
25
  updateDrawableScale(drawableId: number, scale: [number, number]): void;
26
26
  updateDrawableSkinId(drawableId: number, skinId: number): void;
27
27
  updateDrawableVisible(drawableId: number, visible: boolean): void;
28
+ /** Scratch/TurboWarp's ghost effect is used to implement fade motions. */
29
+ updateDrawableEffect?(drawableId: number, effectName: string, value: number): void;
28
30
  setDrawableOrder?(drawableId: number, order: number, layerGroup: string, relative?: boolean): void;
29
31
  }
30
32
  export interface TurboWarpAssetManagerExtension {
@@ -34,6 +36,12 @@ export interface TurboWarpAssetManagerExtension {
34
36
  getAssetMimeType(args: Readonly<{
35
37
  NAME: unknown;
36
38
  }>): string;
39
+ playSound?(args: Readonly<{
40
+ NAME: unknown;
41
+ }>): Promise<void>;
42
+ playSoundUntilDone?(args: Readonly<{
43
+ NAME: unknown;
44
+ }>): Promise<void>;
37
45
  resolveSkin(value: unknown): Readonly<{
38
46
  skinId: number;
39
47
  }> | Promise<Readonly<{
@@ -47,6 +55,7 @@ export interface TurboWarpSvgTextExtension {
47
55
  }>, util: Readonly<{
48
56
  target: TurboWarpBubbleTarget;
49
57
  }>): void;
58
+ measureText?(styleName: unknown, text: unknown): number;
50
59
  releaseTextActor(target: TurboWarpBubbleTarget): boolean;
51
60
  }
52
61
  export interface TurboWarpBubbleRuntime {
@@ -56,7 +65,8 @@ export interface TurboWarpBubbleRuntime {
56
65
  requestRedraw?(): void;
57
66
  }
58
67
  export interface TurboWarpBubbleCompositionOptions {
59
- readonly assetManager?: BubbleAssetManager;
68
+ readonly imageResolver?: BubbleImageCapability;
69
+ readonly audio?: BubbleAudioCapability;
60
70
  readonly svgText?: BubbleSvgText;
61
71
  readonly scheduler?: BubbleScheduler;
62
72
  readonly onAnimationError?: BubbleCompositionOptions["onAnimationError"];
@@ -1,7 +1,7 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <svg xmlns="http://www.w3.org/2000/svg" width="1200" height="500" viewBox="0 0 1200 500" role="img" aria-labelledby="title description">
3
3
  <title id="title">Bubble animation mode比較</title>
4
- <desc id="description">talking、awaiting-advance、idleにおける目パチ、口パク、advance framesの動作比較。</desc>
4
+ <desc id="description">talking、awaiting-continue、idleにおける目パチ、口パク、continue framesの動作比較。</desc>
5
5
  <style>
6
6
  text { font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif; }
7
7
  .heading { fill: #25283a; font-size: 28px; font-weight: 700; }
@@ -28,10 +28,7 @@
28
28
  <ellipse cx="100" cy="267.4" rx="6.4799999999999995" ry="8.64" fill="#7c2945"/>
29
29
  </g>
30
30
  <g>
31
- <rect x="163" y="196" width="190" height="112" rx="28" fill="#fff4cc" stroke="#725a42" stroke-width="3"/>
32
- <path d="M 193 302 L 167 338 L 241 305 Z" fill="#fff4cc" stroke="#725a42" stroke-width="3" stroke-linejoin="round"/>
33
- <path d="M 189 308 H 245" stroke="#fff4cc" stroke-width="8"/>
34
- <text x="199" y="266" style="fill:#25283a;font-size:17px;font-weight:700">海へ出発!</text>
31
+ <g transform="translate(139 172)" data-bubble-renderer="canonical" data-bubble-style="NORMAL" data-bubble-tail-direction="270"><title>Animation mode Bubble preview</title><path data-animation-mode-bubble-path="union" d="M 24.0000 71.0000 L 24.0000 42.0000 L 24.2216 39.1842 L 24.8810 36.4377 L 25.9619 33.8282 L 27.4377 31.4199 L 29.2721 29.2721 L 31.4199 27.4377 L 33.8282 25.9619 L 36.4377 24.8810 L 39.1842 24.2216 L 42.0000 24.0000 L 196.0000 24.0000 L 198.8158 24.2216 L 201.5623 24.8810 L 204.1718 25.9619 L 206.5801 27.4377 L 208.7279 29.2721 L 210.5623 31.4199 L 212.0381 33.8282 L 213.1190 36.4377 L 213.7784 39.1842 L 214.0000 42.0000 L 214.0000 118.0000 L 213.7784 120.8158 L 213.1190 123.5623 L 212.0381 126.1718 L 210.5623 128.5801 L 208.7279 130.7279 L 206.5801 132.5623 L 204.1718 134.0381 L 201.5623 135.1190 L 198.8158 135.7784 L 196.0000 136.0000 L 42.0000 136.0000 L 39.1842 135.7784 L 36.4377 135.1190 L 33.8282 134.0381 L 31.4199 132.5623 L 29.2721 130.7279 L 27.4377 128.5801 L 25.9619 126.1718 L 24.8810 123.5623 L 24.2216 120.8158 L 24.0000 118.0000 L 24.0000 89.0000 L 6.0000 80.0000 Z" fill="#fff4cc" stroke="#6f5b45" stroke-width="3" stroke-linejoin="round" data-boolean-operation="union" data-tail-base-on-border="true" /><text x="119" y="85.95" text-anchor="middle" fill="#25283a" font-family="Noto Sans JP, sans-serif" font-size="17">海へ出発!</text></g>
35
32
 
36
33
  </g>
37
34
  <g transform="translate(0 0)">
@@ -53,7 +50,7 @@
53
50
  <g>
54
51
  <rect x="420" y="86" width="360" height="382" rx="20" fill="#ffffff" stroke="#d9deea" stroke-width="2"/>
55
52
  <rect x="440" y="106" width="170" height="34" rx="17" fill="#ff6680"/>
56
- <text x="525" y="129" text-anchor="middle" style="fill:#ffffff;font-size:15px;font-weight:700">awaiting-advance</text>
53
+ <text x="525" y="129" text-anchor="middle" style="fill:#ffffff;font-size:15px;font-weight:700">awaiting-continue</text>
57
54
  <text x="440" y="164" class="small">ユーザの「次へ」操作待ち</text>
58
55
  <g>
59
56
  <circle cx="496" cy="253" r="37.44" fill="#ffd5b5" stroke="#b85d63" stroke-width="2.88"/>
@@ -63,10 +60,7 @@
63
60
  <path d="M 488.8 268.12 Q 496 271.72 503.2 268.12" fill="none" stroke="#7c2945" stroke-width="2.16" stroke-linecap="round"/>
64
61
  </g>
65
62
  <g>
66
- <rect x="559" y="196" width="190" height="112" rx="28" fill="#fff4cc" stroke="#725a42" stroke-width="3"/>
67
- <path d="M 589 302 L 563 338 L 637 305 Z" fill="#fff4cc" stroke="#725a42" stroke-width="3" stroke-linejoin="round"/>
68
- <path d="M 585 308 H 641" stroke="#fff4cc" stroke-width="8"/>
69
- <text x="595" y="266" style="fill:#25283a;font-size:17px;font-weight:700">海へ出発!</text>
63
+ <g transform="translate(535 172)" data-bubble-renderer="canonical" data-bubble-style="NORMAL" data-bubble-tail-direction="270"><title>Animation mode Bubble preview</title><path data-animation-mode-bubble-path="union" d="M 24.0000 71.0000 L 24.0000 42.0000 L 24.2216 39.1842 L 24.8810 36.4377 L 25.9619 33.8282 L 27.4377 31.4199 L 29.2721 29.2721 L 31.4199 27.4377 L 33.8282 25.9619 L 36.4377 24.8810 L 39.1842 24.2216 L 42.0000 24.0000 L 196.0000 24.0000 L 198.8158 24.2216 L 201.5623 24.8810 L 204.1718 25.9619 L 206.5801 27.4377 L 208.7279 29.2721 L 210.5623 31.4199 L 212.0381 33.8282 L 213.1190 36.4377 L 213.7784 39.1842 L 214.0000 42.0000 L 214.0000 118.0000 L 213.7784 120.8158 L 213.1190 123.5623 L 212.0381 126.1718 L 210.5623 128.5801 L 208.7279 130.7279 L 206.5801 132.5623 L 204.1718 134.0381 L 201.5623 135.1190 L 198.8158 135.7784 L 196.0000 136.0000 L 42.0000 136.0000 L 39.1842 135.7784 L 36.4377 135.1190 L 33.8282 134.0381 L 31.4199 132.5623 L 29.2721 130.7279 L 27.4377 128.5801 L 25.9619 126.1718 L 24.8810 123.5623 L 24.2216 120.8158 L 24.0000 118.0000 L 24.0000 89.0000 L 6.0000 80.0000 Z" fill="#fff4cc" stroke="#6f5b45" stroke-width="3" stroke-linejoin="round" data-boolean-operation="union" data-tail-base-on-border="true" /><text x="119" y="85.95" text-anchor="middle" fill="#25283a" font-family="Noto Sans JP, sans-serif" font-size="17">海へ出発!</text></g>
70
64
  <g transform="translate(0 0)">
71
65
  <path d="M 691 254 l 18 0 l -9 12 z" fill="#ff6680"/>
72
66
  <path d="M 691 273 l 18 0 l -9 12 z" fill="#d94b68"/>
@@ -101,10 +95,7 @@
101
95
  <path d="M 884.8 268.12 Q 892 271.72 899.2 268.12" fill="none" stroke="#7c2945" stroke-width="2.16" stroke-linecap="round"/>
102
96
  </g>
103
97
  <g>
104
- <rect x="955" y="196" width="190" height="112" rx="28" fill="#fff4cc" stroke="#725a42" stroke-width="3"/>
105
- <path d="M 985 302 L 959 338 L 1033 305 Z" fill="#fff4cc" stroke="#725a42" stroke-width="3" stroke-linejoin="round"/>
106
- <path d="M 981 308 H 1037" stroke="#fff4cc" stroke-width="8"/>
107
- <text x="991" y="266" style="fill:#25283a;font-size:17px;font-weight:700">海へ出発!</text>
98
+ <g transform="translate(931 172)" data-bubble-renderer="canonical" data-bubble-style="NORMAL" data-bubble-tail-direction="270"><title>Animation mode Bubble preview</title><path data-animation-mode-bubble-path="union" d="M 24.0000 71.0000 L 24.0000 42.0000 L 24.2216 39.1842 L 24.8810 36.4377 L 25.9619 33.8282 L 27.4377 31.4199 L 29.2721 29.2721 L 31.4199 27.4377 L 33.8282 25.9619 L 36.4377 24.8810 L 39.1842 24.2216 L 42.0000 24.0000 L 196.0000 24.0000 L 198.8158 24.2216 L 201.5623 24.8810 L 204.1718 25.9619 L 206.5801 27.4377 L 208.7279 29.2721 L 210.5623 31.4199 L 212.0381 33.8282 L 213.1190 36.4377 L 213.7784 39.1842 L 214.0000 42.0000 L 214.0000 118.0000 L 213.7784 120.8158 L 213.1190 123.5623 L 212.0381 126.1718 L 210.5623 128.5801 L 208.7279 130.7279 L 206.5801 132.5623 L 204.1718 134.0381 L 201.5623 135.1190 L 198.8158 135.7784 L 196.0000 136.0000 L 42.0000 136.0000 L 39.1842 135.7784 L 36.4377 135.1190 L 33.8282 134.0381 L 31.4199 132.5623 L 29.2721 130.7279 L 27.4377 128.5801 L 25.9619 126.1718 L 24.8810 123.5623 L 24.2216 120.8158 L 24.0000 118.0000 L 24.0000 89.0000 L 6.0000 80.0000 Z" fill="#fff4cc" stroke="#6f5b45" stroke-width="3" stroke-linejoin="round" data-boolean-operation="union" data-tail-base-on-border="true" /><text x="119" y="85.95" text-anchor="middle" fill="#25283a" font-family="Noto Sans JP, sans-serif" font-size="17">海へ出発!</text></g>
108
99
 
109
100
  </g>
110
101
  <g transform="translate(0 0)">
@@ -133,7 +133,7 @@
133
133
  <rect x="407.0399999999999" y="744" width="112.71999999999998" height="25" rx="12.5" fill="#ffffff" fill-opacity="0.96"/>
134
134
  <text x="415.0399999999999" y="763" class="input-text" style="font-size:12px">hero-dialogue</text>
135
135
  </g>
136
- <text x="52" y="804" class="body">続けて blink・talk・advance のフレームを設定</text>
136
+ <text x="52" y="804" class="body">続けて blink・lip-sync・continue のフレームを設定</text>
137
137
  <text x="52" y="832" class="small">目パチ 0.4秒 / 口パク 0.1秒 / 次へ 0.2秒</text>
138
138
  <g role="group" aria-label="目パチフレームを設定">
139
139
  <rect x="640" y="150" width="510" height="70" rx="12" fill="#ff6680" stroke="#000000" stroke-opacity="0.14" stroke-width="2"/>
@@ -151,9 +151,9 @@
151
151
  <g role="group" aria-label="口パクフレームを設定">
152
152
  <rect x="640" y="230" width="510" height="70" rx="12" fill="#ff6680" stroke="#000000" stroke-opacity="0.14" stroke-width="2"/>
153
153
  <rect x="658" y="230" width="28" height="6" rx="3" fill="#000000" fill-opacity="0.18"/>
154
- <text x="657" y="257" class="block-text" style="font-size:12px">set talk frames</text>
155
- <rect x="775.6" y="238" width="231.75999999999996" height="25" rx="12.5" fill="#ffffff" fill-opacity="0.96"/>
156
- <text x="783.6" y="257" class="input-text" style="font-size:12px">HeroMouthClosed,HeroMouthOpen</text>
154
+ <text x="657" y="257" class="block-text" style="font-size:12px">set lip-sync frames</text>
155
+ <rect x="805.36" y="238" width="231.75999999999996" height="25" rx="12.5" fill="#ffffff" fill-opacity="0.96"/>
156
+ <text x="813.36" y="257" class="input-text" style="font-size:12px">HeroMouthClosed,HeroMouthOpen</text>
157
157
  <text x="657" y="282" class="block-text" style="font-size:12px">every</text>
158
158
  <rect x="701.2" y="263" width="38.32" height="25" rx="12.5" fill="#ffffff" fill-opacity="0.96"/>
159
159
  <text x="709.2" y="282" class="input-text" style="font-size:12px">0.1</text>
@@ -164,9 +164,9 @@
164
164
  <g role="group" aria-label="次へアイコンフレームを設定">
165
165
  <rect x="640" y="310" width="510" height="70" rx="12" fill="#ff6680" stroke="#000000" stroke-opacity="0.14" stroke-width="2"/>
166
166
  <rect x="658" y="310" width="28" height="6" rx="3" fill="#000000" fill-opacity="0.18"/>
167
- <text x="657" y="337" class="block-text" style="font-size:12px">set advance frames</text>
168
- <rect x="797.92" y="318" width="97.83999999999999" height="25" rx="12.5" fill="#ffffff" fill-opacity="0.96"/>
169
- <text x="805.92" y="337" class="input-text" style="font-size:12px">Next1,Next2</text>
167
+ <text x="657" y="337" class="block-text" style="font-size:12px">set continue frames</text>
168
+ <rect x="805.36" y="318" width="97.83999999999999" height="25" rx="12.5" fill="#ffffff" fill-opacity="0.96"/>
169
+ <text x="813.36" y="337" class="input-text" style="font-size:12px">Next1,Next2</text>
170
170
  <text x="657" y="362" class="block-text" style="font-size:12px">every</text>
171
171
  <rect x="701.2" y="343" width="38.32" height="25" rx="12.5" fill="#ffffff" fill-opacity="0.96"/>
172
172
  <text x="709.2" y="362" class="input-text" style="font-size:12px">0.2</text>
@@ -225,6 +225,6 @@
225
225
  </g>
226
226
  <rect x="644" y="720" width="502" height="112" rx="16" fill="#fff3f6" stroke="#ffc4d1"/>
227
227
  <text x="668" y="750" class="body" style="font-weight:700">Bubbleが条件成立またはtimeoutまで待機</text>
228
- <text x="668" y="779" class="body">待機中はadvance framesをループし、口パクを停止。</text>
228
+ <text x="668" y="779" class="body">待機中はcontinue framesをループし、口パクを停止。</text>
229
229
  <text x="668" y="808" class="body">待機後はidleへ移り、次のcloseを実行します。</text>
230
230
  </svg>
Binary file