sa2kit 1.5.1 → 1.6.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.
@@ -1,6 +1,6 @@
1
1
  import React__default from 'react';
2
2
  import { F as FileMetadata } from '../../types-CK4We_aI.mjs';
3
- import { M as MMDPlaylistConfig, a as MMDResourceItem, b as MMDPlaylistNode, c as MMDResourceOptions, d as MMDResources } from '../../types-Bc_p-zAR.mjs';
3
+ import { M as MMDPlaylistConfig, a as MMDResourceItem, b as MMDPlaylistNode, c as MMDResourceOptions, d as MMDResources } from '../../types-CsTSddwu.mjs';
4
4
  export { M as MmdPlaylist, f as MmdPlaylistNode, j as MmdPresetItem, h as MmdResourceOption, N as NewMmdPlaylist, g as NewMmdPlaylistNode, k as NewMmdPresetItem, i as NewMmdResourceOption, a as mmdPlaylistNodes, e as mmdPlaylistNodesRelations, m as mmdPlaylists, d as mmdPlaylistsRelations, c as mmdPresetItems, b as mmdResourceOptions } from '../../drizzle-schema-BNhqj2AZ.mjs';
5
5
  import 'three';
6
6
  import 'drizzle-orm';
@@ -1,6 +1,6 @@
1
1
  import React__default from 'react';
2
2
  import { F as FileMetadata } from '../../types-CK4We_aI.js';
3
- import { M as MMDPlaylistConfig, a as MMDResourceItem, b as MMDPlaylistNode, c as MMDResourceOptions, d as MMDResources } from '../../types-Bc_p-zAR.js';
3
+ import { M as MMDPlaylistConfig, a as MMDResourceItem, b as MMDPlaylistNode, c as MMDResourceOptions, d as MMDResources } from '../../types-CsTSddwu.js';
4
4
  export { M as MmdPlaylist, f as MmdPlaylistNode, j as MmdPresetItem, h as MmdResourceOption, N as NewMmdPlaylist, g as NewMmdPlaylistNode, k as NewMmdPresetItem, i as NewMmdResourceOption, a as mmdPlaylistNodes, e as mmdPlaylistNodesRelations, m as mmdPlaylists, d as mmdPlaylistsRelations, c as mmdPresetItems, b as mmdResourceOptions } from '../../drizzle-schema-BNhqj2AZ.js';
5
5
  import 'three';
6
6
  import 'drizzle-orm';
@@ -1,5 +1,5 @@
1
- import { e as MMDPlayerBaseProps, f as MMDPlayerBaseRef, g as MMDPlayerEnhancedProps, h as MMDPlaylistProps, b as MMDPlaylistNode, d as MMDResources, i as MMDStage, j as MobileOptimization } from '../types-Bc_p-zAR.mjs';
2
- export { M as MMDPlaylistConfig, a as MMDResourceItem, c as MMDResourceOptions, R as ResourceOption } from '../types-Bc_p-zAR.mjs';
1
+ import { e as MMDPlayerBaseProps, f as MMDPlayerBaseRef, g as MMDPlayerEnhancedProps, h as MMDPlaylistProps, b as MMDPlaylistNode, d as MMDResources, i as MMDStage, j as MobileOptimization } from '../types-CsTSddwu.mjs';
2
+ export { M as MMDPlaylistConfig, a as MMDResourceItem, c as MMDResourceOptions, R as ResourceOption } from '../types-CsTSddwu.mjs';
3
3
  import React__default from 'react';
4
4
  import 'three';
5
5
 
@@ -88,6 +88,17 @@ interface DialogueLine {
88
88
  /** 对话时播放的音效(可选) */
89
89
  voicePath?: string;
90
90
  }
91
+ /** 对话分支选项 */
92
+ interface DialogueChoice {
93
+ /** 选项文字 */
94
+ text: string;
95
+ /** 跳转到的节点索引 */
96
+ nextNodeIndex: number;
97
+ /** 跳转到的对话索引(可选,默认 0) */
98
+ nextDialogueIndex?: number;
99
+ /** 选项点击后的回调(可选) */
100
+ onSelect?: () => void;
101
+ }
91
102
  /** 视觉小说播放节点 */
92
103
  interface VisualNovelNode {
93
104
  /** 唯一标识 */
@@ -98,6 +109,10 @@ interface VisualNovelNode {
98
109
  resources: MMDResources;
99
110
  /** 该节点的对话数组(按顺序播放) */
100
111
  dialogues: DialogueLine[];
112
+ /** 节点特定的舞台配置(可选,覆盖全局配置) */
113
+ stage?: MMDStage;
114
+ /** 节点结束时的分支选项(可选,若有则显示选项,不自动跳转) */
115
+ choices?: DialogueChoice[];
101
116
  /** 节点开始时播放的背景音乐(可选) */
102
117
  bgmPath?: string;
103
118
  /** 背景音乐音量 0-1(默认 0.5) */
@@ -190,6 +205,10 @@ interface DialogueBoxProps {
190
205
  onOpenHistory?: () => void;
191
206
  /** 快进 */
192
207
  onSkip?: () => void;
208
+ /** 重置相机 */
209
+ onResetCamera?: () => void;
210
+ /** 相机是否处于手动调整状态 */
211
+ isCameraManual?: boolean;
193
212
  /** 是否显示控制按钮 */
194
213
  showControls?: boolean;
195
214
  /** 是否显示快进按钮 */
@@ -337,6 +356,8 @@ interface MusicTrack {
337
356
  coverUrl?: string;
338
357
  /** MMD 资源(模型、动作、音频等) */
339
358
  resources: MMDResources;
359
+ /** 曲目特定的舞台配置(可选,覆盖全局配置) */
360
+ stage?: MMDStage;
340
361
  /** 预计时长(秒) */
341
362
  duration?: number;
342
363
  }
@@ -410,12 +431,14 @@ interface MusicControlsProps {
410
431
  currentTime: number;
411
432
  duration: number;
412
433
  loopMode: 'list' | 'single' | 'shuffle';
434
+ isCameraManual?: boolean;
413
435
  onPlayPause: () => void;
414
436
  onNext: () => void;
415
437
  onPrevious: () => void;
416
438
  onSeek: (time: number) => void;
417
439
  onToggleLoop: () => void;
418
440
  onTogglePlaylist: () => void;
441
+ onResetCamera?: () => void;
419
442
  className?: string;
420
443
  }
421
444
  declare const MusicControls: React__default.FC<MusicControlsProps>;
@@ -436,4 +459,4 @@ interface TrackInfoProps {
436
459
  }
437
460
  declare const TrackInfo: React__default.FC<TrackInfoProps>;
438
461
 
439
- export { DialogueBox, type DialogueBoxProps, type DialogueBoxTheme, type DialogueHistoryItem, type DialogueLine, HistoryPanel, LoadingOverlay, type LoadingOverlayProps, LoadingScreen, type LoadingScreenProps, MMDMusicPlayer, type MMDMusicPlayerConfig, type MMDMusicPlayerProps, type MMDMusicPlayerRef, MMDPlayerBase, MMDPlayerBaseProps, MMDPlayerBaseRef, MMDPlayerEnhanced, MMDPlayerEnhancedDebugInfo, MMDPlayerEnhancedProps, MMDPlaylist, MMDPlaylistDebugInfo, MMDPlaylistNode, MMDPlaylistProps, MMDResources, MMDStage, MMDVisualNovel, type MMDVisualNovelProps, type MMDVisualNovelRef, MobileOptimization, MusicControls, type MusicControlsProps, type MusicTrack, PlaylistPanel, type PlaylistPanelProps, StartScreen, type StartScreenProps, TrackInfo, type TrackInfoProps, type VisualNovelNode, type VisualNovelScript, loadAmmo };
462
+ export { DialogueBox, type DialogueBoxProps, type DialogueBoxTheme, type DialogueChoice, type DialogueHistoryItem, type DialogueLine, HistoryPanel, LoadingOverlay, type LoadingOverlayProps, LoadingScreen, type LoadingScreenProps, MMDMusicPlayer, type MMDMusicPlayerConfig, type MMDMusicPlayerProps, type MMDMusicPlayerRef, MMDPlayerBase, MMDPlayerBaseProps, MMDPlayerBaseRef, MMDPlayerEnhanced, MMDPlayerEnhancedDebugInfo, MMDPlayerEnhancedProps, MMDPlaylist, MMDPlaylistDebugInfo, MMDPlaylistNode, MMDPlaylistProps, MMDResources, MMDStage, MMDVisualNovel, type MMDVisualNovelProps, type MMDVisualNovelRef, MobileOptimization, MusicControls, type MusicControlsProps, type MusicTrack, PlaylistPanel, type PlaylistPanelProps, StartScreen, type StartScreenProps, TrackInfo, type TrackInfoProps, type VisualNovelNode, type VisualNovelScript, loadAmmo };
@@ -1,5 +1,5 @@
1
- import { e as MMDPlayerBaseProps, f as MMDPlayerBaseRef, g as MMDPlayerEnhancedProps, h as MMDPlaylistProps, b as MMDPlaylistNode, d as MMDResources, i as MMDStage, j as MobileOptimization } from '../types-Bc_p-zAR.js';
2
- export { M as MMDPlaylistConfig, a as MMDResourceItem, c as MMDResourceOptions, R as ResourceOption } from '../types-Bc_p-zAR.js';
1
+ import { e as MMDPlayerBaseProps, f as MMDPlayerBaseRef, g as MMDPlayerEnhancedProps, h as MMDPlaylistProps, b as MMDPlaylistNode, d as MMDResources, i as MMDStage, j as MobileOptimization } from '../types-CsTSddwu.js';
2
+ export { M as MMDPlaylistConfig, a as MMDResourceItem, c as MMDResourceOptions, R as ResourceOption } from '../types-CsTSddwu.js';
3
3
  import React__default from 'react';
4
4
  import 'three';
5
5
 
@@ -88,6 +88,17 @@ interface DialogueLine {
88
88
  /** 对话时播放的音效(可选) */
89
89
  voicePath?: string;
90
90
  }
91
+ /** 对话分支选项 */
92
+ interface DialogueChoice {
93
+ /** 选项文字 */
94
+ text: string;
95
+ /** 跳转到的节点索引 */
96
+ nextNodeIndex: number;
97
+ /** 跳转到的对话索引(可选,默认 0) */
98
+ nextDialogueIndex?: number;
99
+ /** 选项点击后的回调(可选) */
100
+ onSelect?: () => void;
101
+ }
91
102
  /** 视觉小说播放节点 */
92
103
  interface VisualNovelNode {
93
104
  /** 唯一标识 */
@@ -98,6 +109,10 @@ interface VisualNovelNode {
98
109
  resources: MMDResources;
99
110
  /** 该节点的对话数组(按顺序播放) */
100
111
  dialogues: DialogueLine[];
112
+ /** 节点特定的舞台配置(可选,覆盖全局配置) */
113
+ stage?: MMDStage;
114
+ /** 节点结束时的分支选项(可选,若有则显示选项,不自动跳转) */
115
+ choices?: DialogueChoice[];
101
116
  /** 节点开始时播放的背景音乐(可选) */
102
117
  bgmPath?: string;
103
118
  /** 背景音乐音量 0-1(默认 0.5) */
@@ -190,6 +205,10 @@ interface DialogueBoxProps {
190
205
  onOpenHistory?: () => void;
191
206
  /** 快进 */
192
207
  onSkip?: () => void;
208
+ /** 重置相机 */
209
+ onResetCamera?: () => void;
210
+ /** 相机是否处于手动调整状态 */
211
+ isCameraManual?: boolean;
193
212
  /** 是否显示控制按钮 */
194
213
  showControls?: boolean;
195
214
  /** 是否显示快进按钮 */
@@ -337,6 +356,8 @@ interface MusicTrack {
337
356
  coverUrl?: string;
338
357
  /** MMD 资源(模型、动作、音频等) */
339
358
  resources: MMDResources;
359
+ /** 曲目特定的舞台配置(可选,覆盖全局配置) */
360
+ stage?: MMDStage;
340
361
  /** 预计时长(秒) */
341
362
  duration?: number;
342
363
  }
@@ -410,12 +431,14 @@ interface MusicControlsProps {
410
431
  currentTime: number;
411
432
  duration: number;
412
433
  loopMode: 'list' | 'single' | 'shuffle';
434
+ isCameraManual?: boolean;
413
435
  onPlayPause: () => void;
414
436
  onNext: () => void;
415
437
  onPrevious: () => void;
416
438
  onSeek: (time: number) => void;
417
439
  onToggleLoop: () => void;
418
440
  onTogglePlaylist: () => void;
441
+ onResetCamera?: () => void;
419
442
  className?: string;
420
443
  }
421
444
  declare const MusicControls: React__default.FC<MusicControlsProps>;
@@ -436,4 +459,4 @@ interface TrackInfoProps {
436
459
  }
437
460
  declare const TrackInfo: React__default.FC<TrackInfoProps>;
438
461
 
439
- export { DialogueBox, type DialogueBoxProps, type DialogueBoxTheme, type DialogueHistoryItem, type DialogueLine, HistoryPanel, LoadingOverlay, type LoadingOverlayProps, LoadingScreen, type LoadingScreenProps, MMDMusicPlayer, type MMDMusicPlayerConfig, type MMDMusicPlayerProps, type MMDMusicPlayerRef, MMDPlayerBase, MMDPlayerBaseProps, MMDPlayerBaseRef, MMDPlayerEnhanced, MMDPlayerEnhancedDebugInfo, MMDPlayerEnhancedProps, MMDPlaylist, MMDPlaylistDebugInfo, MMDPlaylistNode, MMDPlaylistProps, MMDResources, MMDStage, MMDVisualNovel, type MMDVisualNovelProps, type MMDVisualNovelRef, MobileOptimization, MusicControls, type MusicControlsProps, type MusicTrack, PlaylistPanel, type PlaylistPanelProps, StartScreen, type StartScreenProps, TrackInfo, type TrackInfoProps, type VisualNovelNode, type VisualNovelScript, loadAmmo };
462
+ export { DialogueBox, type DialogueBoxProps, type DialogueBoxTheme, type DialogueChoice, type DialogueHistoryItem, type DialogueLine, HistoryPanel, LoadingOverlay, type LoadingOverlayProps, LoadingScreen, type LoadingScreenProps, MMDMusicPlayer, type MMDMusicPlayerConfig, type MMDMusicPlayerProps, type MMDMusicPlayerRef, MMDPlayerBase, MMDPlayerBaseProps, MMDPlayerBaseRef, MMDPlayerEnhanced, MMDPlayerEnhancedDebugInfo, MMDPlayerEnhancedProps, MMDPlaylist, MMDPlaylistDebugInfo, MMDPlaylistNode, MMDPlaylistProps, MMDResources, MMDStage, MMDVisualNovel, type MMDVisualNovelProps, type MMDVisualNovelRef, MobileOptimization, MusicControls, type MusicControlsProps, type MusicTrack, PlaylistPanel, type PlaylistPanelProps, StartScreen, type StartScreenProps, TrackInfo, type TrackInfoProps, type VisualNovelNode, type VisualNovelScript, loadAmmo };