@kubohiroya/turbowarp-bubble 0.7.0 → 0.8.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.
package/docs/index.html CHANGED
@@ -69,9 +69,12 @@
69
69
  <main id="manual" class="manual">
70
70
  <h1>TurboWarp Bubble Block Manual</h1>
71
71
  <p>This manual explains how to use <code>turbowarp-bubble</code> as an unsandboxed TurboWarp custom extension. A Bubble combines an SVG body, text, a character portrait, blinking and lip-sync layers, and an animated continue indicator.</p>
72
+ <blockquote>
73
+ <p><strong>Kamishibai DSL 4.0 bundle:</strong> In the combined runtime palette, click the documentation button directly below the <strong>Bubble</strong> member heading to open this manual. The bundled blocks keep the styles, placement, portrait, reveal, audio, wait, animation, clone, and cleanup behavior documented here; their member namespace and Bubble icon identify their origin.</p>
74
+ </blockquote>
72
75
  <p><img src="./assets/block-quick-start.svg" alt="A quick-start block sequence that registers Next1 and Next2 separately, prepares input listeners, then uses Bubble&#39;s integrated wait"></p>
73
76
  <h2 id="requirements">1. Load the required extensions</h2>
74
- <p>The complete input-wait example uses six extensions. Add Temporary Variables from TurboWarp&#39;s extension library, then load the custom extensions needed by the selected features with <strong>Run without sandbox</strong> enabled. Bubble uses SVG Text as its default <code>BubbleTextCapability</code> adapter for text bubbles. Asset Manager is required for portrait, lip-sync, continue indicator, voice, and display-sound assets. Async Input and Runtime Expression are required only before using a Bubble wait.</p>
77
+ <p>The complete input-wait example uses five extensions. Add Temporary Variables from TurboWarp&#39;s extension library, then load the custom extensions needed by the selected features with <strong>Run without sandbox</strong> enabled. Bubble bundles the host-neutral SVG Text 0.8.0 layout provider and creates no text skin on its default SVG overlay. Asset Manager is required for portrait, lip-sync, continue indicator, voice, and display-sound assets. Async Input and Runtime Expression are required only before using a Bubble wait.</p>
75
78
  <table>
76
79
  <thead>
77
80
  <tr>
@@ -87,31 +90,26 @@
87
90
  </tr>
88
91
  <tr>
89
92
  <td align="right">2</td>
90
- <td>Async Input 0.3.0</td>
91
- <td><code>https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-async-input@0.3.0/dist/async-input.js</code></td>
93
+ <td>Async Input 0.4.0</td>
94
+ <td><code>https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-async-input@0.4.0/dist/async-input.js</code></td>
92
95
  </tr>
93
96
  <tr>
94
97
  <td align="right">3</td>
95
- <td>Runtime Expression 0.3.0</td>
96
- <td><code>https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-runtime-expression@0.3.0/dist/runtime-expression.js</code></td>
98
+ <td>Runtime Expression 0.4.0</td>
99
+ <td><code>https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-runtime-expression@0.4.0/dist/runtime-expression.js</code></td>
97
100
  </tr>
98
101
  <tr>
99
102
  <td align="right">4</td>
100
- <td>Asset Manager 0.7.0</td>
101
- <td><code>https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-asset-manager@0.7.0/dist/asset-manager.js</code></td>
103
+ <td>Asset Manager 0.11.0</td>
104
+ <td><code>https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-asset-manager@0.11.0/dist/asset-manager.js</code></td>
102
105
  </tr>
103
106
  <tr>
104
107
  <td align="right">5</td>
105
- <td>SVG Text 0.4.0</td>
106
- <td><code>https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-svg-text@0.4.0/dist/svg-text.js</code></td>
107
- </tr>
108
- <tr>
109
- <td align="right">6</td>
110
- <td>Bubble 0.7.0</td>
111
- <td><code>https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-bubble@0.7.0/dist/turbowarp-bubble.js</code></td>
108
+ <td>Bubble 0.8.0</td>
109
+ <td><code>https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-bubble@0.8.0/dist/turbowarp-bubble.js</code></td>
112
110
  </tr>
113
111
  </tbody></table>
114
- <p>To try a development build, load this repository&#39;s <code>dist/turbowarp-bubble.js</code> as a local custom extension. Bubble reports an explicit error if the default SVG Text adapter is missing when it displays a Bubble, if an image/media feature is used without Asset Manager, or if Async Input or Runtime Expression is missing when it starts a Bubble wait. The lower-level Composition API can use another text capability and does not require SVG Text.</p>
112
+ <p>To try a development build, load this repository&#39;s <code>dist/turbowarp-bubble.js</code> as a local custom extension. Bubble reports an explicit error if the renderer lacks the default SVG overlay APIs, if an image/media feature is used without Asset Manager, or if Async Input or Runtime Expression is missing when it starts a Bubble wait. The lower-level Composition API can inject another text capability.</p>
115
113
  <p>See also:</p>
116
114
  <ul>
117
115
  <li><a href="https://kubohiroya.github.io/turbowarp-asset-manager/">Asset Manager guide</a></li>
@@ -176,21 +174,14 @@ register resource [costume:Assets:Next1] as asset [Next1]
176
174
  register resource [costume:Assets:Next2] as asset [Next2]
177
175
  </code></pre>
178
176
  <p>For a remote image, pass its HTTPS URL as <code>RESOURCE_ID</code>. Bubble accepts only assets already registered with Asset Manager whose MIME type is <code>image/*</code>.</p>
179
- <h2 id="text-style">3. Define a text style</h2>
180
- <p>Use SVG Text to define the named style for the Bubble&#39;s text layer.</p>
181
- <pre><code class="language-text">define text style [dialogue-text]
182
- background [#fff4cc]
183
- text [#332200]
184
- font [Noto Sans JP]
185
- size [100]
186
- align [left]
187
- bubble direction [up]
177
+ <h2 id="text-style">3. Select a text layout style</h2>
178
+ <p>Standalone Bubble bundles the SVG Text 0.8.0 layout composition. <code>default</code>, or any other name, is initialized on first use with SVG Text defaults and a transparent background.</p>
179
+ <pre><code class="language-text">define bubble style [hero-dialogue] using text style [default]
188
180
  </code></pre>
189
- <p>Bubble refers to this style as <code>dialogue-text</code>. Text and Bubble styles are runtime state, so normally define them again whenever the green flag is clicked.</p>
190
- <p>SVG Text 0.4.x is a text provider: it defines named text styles, creates SVG text skins, and measures text. Bubble placement is configured by <code>set bubble placement</code>; the SVG Text provider does not own Bubble direction, tail, or outer shape.</p>
181
+ <p>Application hosts that need custom fonts, colors, or alignment can define styles on <code>createSvgTextLayoutComposition()</code> and inject them through <code>createSvgTextOverlayTextCapability()</code>. The default uses the same <code>layoutText()</code> API and does not create an SVG text skin. Bubble owns placement, tail, and outer shape.</p>
191
182
  <h2 id="bubble-style">4. Define a Bubble style</h2>
192
- <p>First associate a Bubble style name with an SVG Text style name.</p>
193
- <pre><code class="language-text">define bubble style [hero-dialogue] using text style [dialogue-text]
183
+ <p>First associate a Bubble style name with a text layout style name.</p>
184
+ <pre><code class="language-text">define bubble style [hero-dialogue] using text style [default]
194
185
  set bubble placement [up-right] for bubble style [hero-dialogue]
195
186
  set bubble distance [12] for bubble style [hero-dialogue]
196
187
  set bubble visual style [NORMAL] for bubble style [hero-dialogue]
@@ -356,7 +347,7 @@ think [MESSAGE] with bubble style [STYLE]
356
347
  <li>Run <code>say</code> or <code>think</code> from each clone itself.</li>
357
348
  <li>Change the animation mode and close the Bubble from the same clone that displayed it.</li>
358
349
  </ol>
359
- <p>When a clone stops or is deleted, timers, SVG Text skins, and renderer drawables owned by that target are released automatically.</p>
350
+ <p>When a clone stops or is deleted, its timers, overlay DOM, and image leases are released automatically. Explicit <code>scratch-render</code> mode also releases skins and drawables.</p>
360
351
  <h2 id="cleanup">11. Block reference</h2>
361
352
  <table>
362
353
  <thead>
@@ -491,8 +482,8 @@ think [MESSAGE] with bubble style [STYLE]
491
482
  <td>Load Asset Manager 0.7.x without sandbox before using image/media assets</td>
492
483
  </tr>
493
484
  <tr>
494
- <td>Default text adapter required error</td>
495
- <td>Load SVG Text 0.4.x without sandbox</td>
485
+ <td>SVG overlay backend error</td>
486
+ <td>Use a host with <code>renderer.addOverlay()</code> or explicitly select <code>scratch-render</code></td>
496
487
  </tr>
497
488
  <tr>
498
489
  <td>Async Input required error</td>
@@ -536,7 +527,7 @@ think [MESSAGE] with bubble style [STYLE]
536
527
  </tr>
537
528
  </tbody></table>
538
529
  <h2>13. Automatic cleanup</h2>
539
- <p>Bubble automatically releases its owned timers, text skins, and renderer drawables when:</p>
530
+ <p>Bubble automatically releases its owned timers, overlay DOM, and image leases in the following cases. Explicit <code>scratch-render</code> mode also releases its text skins and renderer drawables.</p>
540
531
  <ul>
541
532
  <li><code>close this bubble</code> runs;</li>
542
533
  <li>the same sprite or clone runs another <code>say</code> or <code>think</code>;</li>
@@ -69,9 +69,12 @@
69
69
  <main id="manual" class="manual">
70
70
  <h1>TurboWarp Bubble ブロック利用マニュアル</h1>
71
71
  <p>このマニュアルでは、<code>turbowarp-bubble</code>をTurboWarpのカスタム拡張機能として使い、SVG本体、文字、キャラクター表情、目パチ、口パク、「次へ」アイコンを組み合わせたBubbleを表示します。</p>
72
+ <blockquote>
73
+ <p><strong>紙芝居DSL 4.0集約ランタイム:</strong> 集約ランタイムのパレットで<strong>Bubble</strong>見出し直下のドキュメントボタンを押すと、このマニュアルを開けます。集約されたブロックも、ここで説明するstyle、配置、portrait、逐次表示、音声、待機、animation、clone、自動解放の動作を保ち、拡張機能別の名前空間とBubbleアイコンで由来を識別できます。</p>
74
+ </blockquote>
72
75
  <p><img src="../assets/block-quick-start.svg" alt="Next1とNext2を個別登録し、入力listenerを準備してBubble内蔵待機を使うブロック例"></p>
73
76
  <h2 id="requirements">1. 必要な拡張機能</h2>
74
- <p>入力待ちを含む完全な例では6つの拡張機能を使います。TurboWarpの拡張機能ライブラリからTemporary Variablesを追加し、選択した機能に必要なカスタム拡張機能を「サンドボックスなしで実行」を許可して読み込みます。Bubbleは文字Bubbleの既定<code>BubbleTextCapability</code> adapterとしてSVG Textを使います。portrait、lip-sync、continue indicator、フルボイス、表示効果音などのメディアアセットにはAsset Managerが必要です。Async InputとRuntime ExpressionはBubble待機を使う場合だけ必要です。</p>
77
+ <p>入力待ちを含む完全な例では5つの拡張機能を使います。TurboWarpの拡張機能ライブラリからTemporary Variablesを追加し、選択した機能に必要なカスタム拡張機能を「サンドボックスなしで実行」を許可して読み込みます。BubbleはSVG Text 0.8.0のhost-neutral layout providerをbundle内に持ち、既定のSVG overlayではskinを作りません。portrait、lip-sync、continue indicator、フルボイス、表示効果音などのメディアアセットにはAsset Managerが必要です。Async InputとRuntime ExpressionはBubble待機を使う場合だけ必要です。</p>
75
78
  <table>
76
79
  <thead>
77
80
  <tr>
@@ -87,31 +90,26 @@
87
90
  </tr>
88
91
  <tr>
89
92
  <td align="right">2</td>
90
- <td>Async Input 0.3.0</td>
91
- <td><code>https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-async-input@0.3.0/dist/async-input.js</code></td>
93
+ <td>Async Input 0.4.0</td>
94
+ <td><code>https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-async-input@0.4.0/dist/async-input.js</code></td>
92
95
  </tr>
93
96
  <tr>
94
97
  <td align="right">3</td>
95
- <td>Runtime Expression 0.3.0</td>
96
- <td><code>https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-runtime-expression@0.3.0/dist/runtime-expression.js</code></td>
98
+ <td>Runtime Expression 0.4.0</td>
99
+ <td><code>https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-runtime-expression@0.4.0/dist/runtime-expression.js</code></td>
97
100
  </tr>
98
101
  <tr>
99
102
  <td align="right">4</td>
100
- <td>Asset Manager 0.7.0</td>
101
- <td><code>https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-asset-manager@0.7.0/dist/asset-manager.js</code></td>
103
+ <td>Asset Manager 0.11.0</td>
104
+ <td><code>https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-asset-manager@0.11.0/dist/asset-manager.js</code></td>
102
105
  </tr>
103
106
  <tr>
104
107
  <td align="right">5</td>
105
- <td>SVG Text 0.4.0</td>
106
- <td><code>https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-svg-text@0.4.0/dist/svg-text.js</code></td>
107
- </tr>
108
- <tr>
109
- <td align="right">6</td>
110
- <td>Bubble 0.7.0</td>
111
- <td><code>https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-bubble@0.7.0/dist/turbowarp-bubble.js</code></td>
108
+ <td>Bubble 0.8.0</td>
109
+ <td><code>https://cdn.jsdelivr.net/npm/@kubohiroya/turbowarp-bubble@0.8.0/dist/turbowarp-bubble.js</code></td>
112
110
  </tr>
113
111
  </tbody></table>
114
- <p>開発中のBubbleを試す場合は、このリポジトリの<code>dist/turbowarp-bubble.js</code>をローカルカスタム拡張機能として読み込みます。表示時に既定のSVG Text adapterが、画像・メディア機能の使用時にAsset Managerが、待機開始時にAsync InputかRuntime Expressionが見つからなければ、Bubbleは明示的なエラーを返します。低レベルComposition APIでは別のtext capabilityを注入でき、その場合SVG Textは不要です。</p>
112
+ <p>開発中のBubbleを試す場合は、このリポジトリの<code>dist/turbowarp-bubble.js</code>をローカルカスタム拡張機能として読み込みます。既定SVG overlayに必要なrenderer APIがない場合、画像・メディア機能の使用時にAsset Managerがない場合、待機開始時にAsync InputかRuntime Expressionがない場合は、Bubbleが明示的なエラーを返します。低レベルComposition APIでは別のtext capabilityを注入できます。</p>
115
113
  <p>参考:</p>
116
114
  <ul>
117
115
  <li><a href="https://kubohiroya.github.io/turbowarp-asset-manager/ja/">Asset Manager 日本語ガイド</a></li>
@@ -176,21 +174,14 @@ register resource [costume:Assets:Next1] as asset [Next1]
176
174
  register resource [costume:Assets:Next2] as asset [Next2]
177
175
  </code></pre>
178
176
  <p>URL画像を使う場合は、<code>RESOURCE_ID</code>へHTTPS URLを指定します。Bubbleに設定できるのは、Asset Managerへ登録済みでMIME typeが<code>image/*</code>のアセットだけです。</p>
179
- <h2 id="text-style">3. 文字styleを定義する</h2>
180
- <p>SVG Textで、Bubbleの文字部分に使う名前付きstyleを定義します。</p>
181
- <pre><code class="language-text">define text style [dialogue-text]
182
- background [#fff4cc]
183
- text [#332200]
184
- font [Noto Sans JP]
185
- size [100]
186
- align [left]
187
- bubble direction [up]
177
+ <h2 id="text-style">3. 文字layout styleを選ぶ</h2>
178
+ <p>standalone BubbleはSVG Text 0.8.0のlayout compositionを内包します。<code>default</code>または任意の名前を指定すると、初回参照時に背景透明のSVG Text既定styleとして初期化されます。</p>
179
+ <pre><code class="language-text">define bubble style [hero-dialogue] using text style [default]
188
180
  </code></pre>
189
- <p>Bubbleは<code>dialogue-text</code>という名前を参照します。文字styleとBubble styleはruntime状態なので、通常は緑の旗が押されたときに毎回定義します。</p>
190
- <p>SVG Text 0.4.xは文字providerです。名前付き文字styleの定義、SVG文字skinの生成、文字幅の測定を担当します。Bubbleの配置は<code>set bubble placement</code>で設定し、tailや吹き出し外形はSVG Text providerの責務ではありません。</p>
181
+ <p>独自のfont、色、alignmentを使うアプリhostは、<code>createSvgTextLayoutComposition()</code>へstyleを定義し、<code>createSvgTextOverlayTextCapability()</code>でBubbleへ注入します。既定経路も同じ<code>layoutText()</code>を使い、SVG文字skinは生成しません。Bubbleの配置、tail、吹き出し外形はBubble側が担当します。</p>
191
182
  <h2 id="bubble-style">4. Bubble styleを定義する</h2>
192
- <p>まず、Bubble style名とSVG Textのstyle名を関連付けます。</p>
193
- <pre><code class="language-text">define bubble style [hero-dialogue] using text style [dialogue-text]
183
+ <p>まず、Bubble style名と文字layout style名を関連付けます。</p>
184
+ <pre><code class="language-text">define bubble style [hero-dialogue] using text style [default]
194
185
  set bubble placement [up-right] for bubble style [hero-dialogue]
195
186
  set bubble distance [12] for bubble style [hero-dialogue]
196
187
  set bubble visual style [NORMAL] for bubble style [hero-dialogue]
@@ -356,7 +347,7 @@ think [MESSAGE] with bubble style [STYLE]
356
347
  <li>各clone自身から<code>say</code>または<code>think</code>を実行します。</li>
357
348
  <li>animation mode変更とcloseも、表示したのと同じcloneから実行します。</li>
358
349
  </ol>
359
- <p>cloneが停止・削除された場合は、そのtargetに属するtimer、SVG Text skin、drawableが自動解放されます。</p>
350
+ <p>cloneが停止・削除された場合は、そのtargetに属するtimer、overlay DOM、画像leaseが自動解放されます。明示的な<code>scratch-render</code>ではskinとdrawableも解放されます。</p>
360
351
  <h2 id="cleanup">11. ブロック一覧</h2>
361
352
  <table>
362
353
  <thead>
@@ -491,8 +482,8 @@ think [MESSAGE] with bubble style [STYLE]
491
482
  <td>画像・メディアアセットを使う前にAsset Manager 0.7.xを読み込む</td>
492
483
  </tr>
493
484
  <tr>
494
- <td>既定text adapterを要求するエラー</td>
495
- <td>SVG Text 0.4.xをサンドボックスなしで読み込む</td>
485
+ <td>SVG overlay backendのエラー</td>
486
+ <td><code>renderer.addOverlay()</code>対応hostを使うか<code>scratch-render</code>を明示する</td>
496
487
  </tr>
497
488
  <tr>
498
489
  <td>Async Inputを要求するエラー</td>
@@ -536,7 +527,7 @@ think [MESSAGE] with bubble style [STYLE]
536
527
  </tr>
537
528
  </tbody></table>
538
529
  <h2>13. 自動解放されるタイミング</h2>
539
- <p>次の場合、Bubbleが所有するtimer、text skin、renderer drawableは自動的に解放されます。</p>
530
+ <p>次の場合、Bubbleが所有するtimer、overlay DOM、画像leaseは自動的に解放されます。<code>scratch-render</code>を明示した場合はtext skinとrenderer drawableも解放されます。</p>
540
531
  <ul>
541
532
  <li><code>close this bubble</code></li>
542
533
  <li>同じsprite/cloneで次の<code>say</code>または<code>think</code>を実行したとき</li>
@@ -0,0 +1,45 @@
1
+ # 0.8.0: default SVG overlay backend
2
+
3
+ ## 追加内容
4
+
5
+ - `bubbleRenderBackend`の既定値を`"svg-overlay"`へ変更する。
6
+ - `"scratch-render"`は明示指定できるrollback backendとして保持する。
7
+ - `renderer.addOverlay(root, "scale")`上の共有SVG rootにBubble surfaceを描画する。
8
+ - host-neutralな`svgOverlayTextCapability`と、解放可能な`svgOverlayImageCapability`を公開する。
9
+ - SVG Text 0.8.0を通常dependencyとし、既定で`createSvgTextLayoutComposition().layoutText()`の行layoutを座標・角丸ごと変換する。
10
+ - Bubble側の`createAssetManagerSvgOverlayImageCapability()`でAsset Managerの汎用DOM resourceを変換する。依存方向はBubbleからAsset Managerへの一方向を維持する。
11
+ - overlay API未対応hostは`BUBBLE-RUNTIME-004`を返す。`svgOverlayUnsupportedBehavior: "fallback"`を明示した場合だけ既存backendへ戻る。
12
+
13
+ ## 自動検証結果
14
+
15
+ 2026-08-18時点のunit testでは、次を合格条件としている。
16
+
17
+ - optionsを省略した既定経路でshow、text更新、shake、shape animationを行っても、Bubbleから`createDrawable()`、`createSVGSkin()`、`createBitmapSkin()`を呼ばない(許容値: 0回)。
18
+ - 2つのBubbleが1つのrootを共有し、最後のclose後に`removeOverlay()`を1回呼ぶ(許容値: 残存root 0、重複remove 0)。
19
+ - native size変更後にrootの`viewBox`を同期し、現在表示中のtextと`RESERVED`全文layoutを再計算する。
20
+ - `script`、event handler、`foreignObject`、未許可data URLを拒否する。
21
+ - capability所有のblob URLをreplacement/close時に各1回解放する。
22
+ - renderer cleanupが失敗した場合も、残りのlistener、DOM、image leaseの解放を継続してerrorを集約する。
23
+ - Asset Managerのsanitize済みSVG resourceをBubble側adapter経由で描画し、close時にleaseを1回解放する。
24
+ - SVG Textのhost-neutral layoutをBubble側adapterで変換し、renderer skinを生成せず行座標を維持する。
25
+
26
+ ## release前のmanual gate
27
+
28
+ 上流の[turbowarp-svg-text#26](https://github.com/kubohiroya/turbowarp-svg-text/issues/26)で公開されたhost-neutral layoutを0.8.0の通常dependencyとして採用し、[turbowarp-asset-manager#103](https://github.com/kubohiroya/turbowarp-asset-manager/issues/103)のDOM image resourceは0.12.0対応adapterから任意注入する。既定値変更後も次のmanual gateをrelease前に実施し、実測値をこの表へ記録する。
29
+
30
+ | 項目 | host | 許容基準 | 結果 |
31
+ | -------------------------- | ------------------------------------ | --------------------------------------------------------- | ------ |
32
+ | say/think、全visual style | Web、Desktop、Packager | reference screenshotの主要geometry差異なし | 未測定 |
33
+ | actor/background配置 | native 480×360と変更size、fullscreen | stage外clip、tail方向、centerに回帰なし | 未測定 |
34
+ | typewriter | 1,000 update | Chromium readback警告0、`Silhouette.unlazy()`増分0 | 未測定 |
35
+ | shape/shake/zoom | 各10秒 | dropped frame率が既存backend比+5 percentage points以内 | 未測定 |
36
+ | memory/lifecycle | show/replace/stopを100回 | close後のBubble DOM、object URL、animation、listener残存0 | 未測定 |
37
+ | raw canvas capture | `toDataURL()`、`captureStream()` | Bubbleが含まれない既知制約を確認 | 未測定 |
38
+
39
+ ## capture制約
40
+
41
+ SVG overlayはbrowser/OSの最終compositeには含まれるが、WebGL canvasだけを取得する`renderer.canvas.toDataURL()`、`toBlob()`、`captureStream()`には含まれない。初期実装では専用compositorを提供しない。
42
+
43
+ ## rollback
44
+
45
+ 設定へ`bubbleRenderBackend: "scratch-render"`を明示する。公開済みの設定値と既存backendは削除せず、重大なhost回帰がある場合は明示errorまたはpatch releaseで対処する。暗黙fallbackは行わないため、rollbackはhost側で確認できる。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubohiroya/turbowarp-bubble",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "description": "Composable say and think bubbles with portrait layers and animated continue indicators for TurboWarp.",
5
5
  "author": "Hiroya Kubo <hiroya@cuc.ac.jp>",
6
6
  "type": "module",
@@ -50,8 +50,7 @@
50
50
  "peerDependencies": {
51
51
  "@kubohiroya/turbowarp-asset-manager": ">=0.7.0 <1",
52
52
  "@kubohiroya/turbowarp-async-input": ">=0.3.0 <1",
53
- "@kubohiroya/turbowarp-runtime-expression": ">=0.3.0 <1",
54
- "@kubohiroya/turbowarp-svg-text": ">=0.4.0 <1"
53
+ "@kubohiroya/turbowarp-runtime-expression": ">=0.3.0 <1"
55
54
  },
56
55
  "peerDependenciesMeta": {
57
56
  "@kubohiroya/turbowarp-async-input": {
@@ -62,20 +61,17 @@
62
61
  },
63
62
  "@kubohiroya/turbowarp-runtime-expression": {
64
63
  "optional": true
65
- },
66
- "@kubohiroya/turbowarp-svg-text": {
67
- "optional": true
68
64
  }
69
65
  },
70
66
  "devDependencies": {
71
67
  "@eslint/js": "^10.0.1",
72
- "@kubohiroya/turbowarp-asset-manager": "0.7.0",
68
+ "@kubohiroya/turbowarp-asset-manager": "0.12.0",
73
69
  "@kubohiroya/turbowarp-async-input": "0.3.0",
74
70
  "@kubohiroya/turbowarp-runtime-expression": "0.3.0",
75
- "@kubohiroya/turbowarp-svg-text": "0.4.0",
76
71
  "@kubohiroya/vite-plugin-turbowarp-extension": "0.1.1",
77
72
  "@types/node": "^26.1.2",
78
73
  "eslint": "^10.8.0",
74
+ "happy-dom": "20.0.8",
79
75
  "jsclipper": "github:platener/jsclipper#56aed19845113e1939d8971c47233054659436b1",
80
76
  "marked": "18.0.9",
81
77
  "prettier": "^3.9.6",
@@ -96,7 +92,8 @@
96
92
  "bubble-animation"
97
93
  ],
98
94
  "dependencies": {
99
- "@cto.af/linebreak": "4.0.3"
95
+ "@cto.af/linebreak": "4.0.3",
96
+ "@kubohiroya/turbowarp-svg-text": "0.8.0"
100
97
  },
101
98
  "scripts": {
102
99
  "typecheck": "tsc --noEmit",