sa2kit 1.6.11 → 1.6.13
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/dist/index.d.mts +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/mmd/index.d.mts +50 -1
- package/dist/mmd/index.d.ts +50 -1
- package/dist/mmd/index.js +882 -510
- package/dist/mmd/index.js.map +1 -1
- package/dist/mmd/index.mjs +680 -311
- package/dist/mmd/index.mjs.map +1 -1
- package/package.json +18 -20
package/dist/index.d.mts
CHANGED
|
@@ -598,6 +598,9 @@ interface Project {
|
|
|
598
598
|
link?: string;
|
|
599
599
|
tags: string[];
|
|
600
600
|
}
|
|
601
|
+
interface ProjectsConfig {
|
|
602
|
+
projects: Project[];
|
|
603
|
+
}
|
|
601
604
|
interface ProjectCarouselProps {
|
|
602
605
|
projects: Project[];
|
|
603
606
|
className?: string;
|
|
@@ -930,4 +933,4 @@ declare function getCompletionStatusColor(isCompleted?: boolean): string;
|
|
|
930
933
|
*/
|
|
931
934
|
declare function getCompletionStatusText(isCompleted?: boolean): string;
|
|
932
935
|
|
|
933
|
-
export { About, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AutoOpenModal, type AutoOpenModalProps, Avatar, AvatarFallback, AvatarImage, BackButton, type BackButtonProps, type BackgroundRemovalOptions, type BackgroundRemovalState, BackgroundRemover, Badge, type BadgeProps, type Ball, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CategoryFilter, CollisionBalls, type CollisionBallsConfig, type CompletionFilter, CompletionFilterComponent, ConfirmModal, type ConfirmModalProps, Contact, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DraggableExperimentGrid, type DraggableExperimentGridProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, type EmptyStateProps, EnhancedAvatar, type EnhancedAvatarProps, ExperimentCard, type ExperimentCategory, ExperimentGrid, type ExperimentGridItem, type ExperimentGridProps, type ExperimentItem, ExperimentItemGrid, FilterButtonGroup, type FilterButtonGroupProps, type FilterOption, FloatingMenu, FloatingMenuExample, GenericOrderManager, type GenericOrderManagerProps, Grid, type GridColumns, type GridGap, type GridItem, type GridProps, Home, Input, Label, Modal, type ModalProps, Navigation, type NavigationConfig, type NavigationDirection, NavigationItemComponent as NavigationItem, type NavigationPosition, type NavigationProps, NavigationToggle, type OCROptions, type OCRResult, OCRScanner, type OCRState, type OrderManagerOperations, type OrderableItem, PageHeader, type PageHeaderProps, PermissionGuard, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, type ProfileBadge, ProfileButton, type ProfileButtonProps, type ProfileData, ProfileModal, type ProfileModalProps, Progress, ProjectCarousel, ScrollArea, ScrollBar, SearchBox, SearchResultHint, type SearchResultHintProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SentimentAnalyzer, type SentimentOptions, type SentimentResult, type SentimentState, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SmartAssistant, type SocialLink, SortControl, type SortControlProps, type SortMode, SortModeToggle, type SortModeToggleProps, SortableExperimentItem, type SortableExperimentItemProps, type Stat, Tabs, TabsContent, TabsList, TabsTrigger, type TestFieldConfig, type TestFieldPageProps, type TextGenerationOptions, type TextGenerationState, Textarea, Timeline, type TimelineConfig, type TimelineItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UserInfoBar, type UserInfoBarProps, type ViewMode, badgeVariants, buttonVariants, filterExperiments, getAllTags, getCategoryColor, getCategoryDisplayName, getCompletionFilterDisplayName, getCompletionStatusColor, getCompletionStatusText, getExperimentCounts, sortExperiments, useBackgroundRemoval, useOCR, useSentimentAnalysis, useTextGeneration, validateExperiment };
|
|
936
|
+
export { About, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AutoOpenModal, type AutoOpenModalProps, Avatar, AvatarFallback, AvatarImage, BackButton, type BackButtonProps, type BackgroundRemovalOptions, type BackgroundRemovalState, BackgroundRemover, Badge, type BadgeProps, type Ball, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CategoryFilter, CollisionBalls, type CollisionBallsConfig, type CompletionFilter, CompletionFilterComponent, ConfirmModal, type ConfirmModalProps, Contact, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DraggableExperimentGrid, type DraggableExperimentGridProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, type EmptyStateProps, EnhancedAvatar, type EnhancedAvatarProps, ExperimentCard, type ExperimentCategory, ExperimentGrid, type ExperimentGridItem, type ExperimentGridProps, type ExperimentItem, ExperimentItemGrid, FilterButtonGroup, type FilterButtonGroupProps, type FilterOption, FloatingMenu, FloatingMenuExample, GenericOrderManager, type GenericOrderManagerProps, Grid, type GridColumns, type GridGap, type GridItem, type GridProps, Home, type HomeConfig, Input, Label, Modal, type ModalProps, Navigation, type NavigationConfig, type NavigationDirection, NavigationItemComponent as NavigationItem, type NavigationPosition, type NavigationProps, NavigationToggle, type OCROptions, type OCRResult, OCRScanner, type OCRState, type OrderManagerOperations, type OrderableItem, PageHeader, type PageHeaderProps, PermissionGuard, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, type ProfileBadge, ProfileButton, type ProfileButtonProps, type ProfileData, ProfileModal, type ProfileModalProps, Progress, ProjectCarousel, type ProjectsConfig, ScrollArea, ScrollBar, SearchBox, SearchResultHint, type SearchResultHintProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SentimentAnalyzer, type SentimentOptions, type SentimentResult, type SentimentState, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SmartAssistant, type SocialLink, SortControl, type SortControlProps, type SortMode, SortModeToggle, type SortModeToggleProps, SortableExperimentItem, type SortableExperimentItemProps, type Stat, Tabs, TabsContent, TabsList, TabsTrigger, type TestFieldConfig, type TestFieldPageProps, type TextGenerationOptions, type TextGenerationState, Textarea, Timeline, type TimelineConfig, type TimelineItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UserInfoBar, type UserInfoBarProps, type ViewMode, badgeVariants, buttonVariants, filterExperiments, getAllTags, getCategoryColor, getCategoryDisplayName, getCompletionFilterDisplayName, getCompletionStatusColor, getCompletionStatusText, getExperimentCounts, sortExperiments, useBackgroundRemoval, useOCR, useSentimentAnalysis, useTextGeneration, validateExperiment };
|
package/dist/index.d.ts
CHANGED
|
@@ -598,6 +598,9 @@ interface Project {
|
|
|
598
598
|
link?: string;
|
|
599
599
|
tags: string[];
|
|
600
600
|
}
|
|
601
|
+
interface ProjectsConfig {
|
|
602
|
+
projects: Project[];
|
|
603
|
+
}
|
|
601
604
|
interface ProjectCarouselProps {
|
|
602
605
|
projects: Project[];
|
|
603
606
|
className?: string;
|
|
@@ -930,4 +933,4 @@ declare function getCompletionStatusColor(isCompleted?: boolean): string;
|
|
|
930
933
|
*/
|
|
931
934
|
declare function getCompletionStatusText(isCompleted?: boolean): string;
|
|
932
935
|
|
|
933
|
-
export { About, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AutoOpenModal, type AutoOpenModalProps, Avatar, AvatarFallback, AvatarImage, BackButton, type BackButtonProps, type BackgroundRemovalOptions, type BackgroundRemovalState, BackgroundRemover, Badge, type BadgeProps, type Ball, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CategoryFilter, CollisionBalls, type CollisionBallsConfig, type CompletionFilter, CompletionFilterComponent, ConfirmModal, type ConfirmModalProps, Contact, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DraggableExperimentGrid, type DraggableExperimentGridProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, type EmptyStateProps, EnhancedAvatar, type EnhancedAvatarProps, ExperimentCard, type ExperimentCategory, ExperimentGrid, type ExperimentGridItem, type ExperimentGridProps, type ExperimentItem, ExperimentItemGrid, FilterButtonGroup, type FilterButtonGroupProps, type FilterOption, FloatingMenu, FloatingMenuExample, GenericOrderManager, type GenericOrderManagerProps, Grid, type GridColumns, type GridGap, type GridItem, type GridProps, Home, Input, Label, Modal, type ModalProps, Navigation, type NavigationConfig, type NavigationDirection, NavigationItemComponent as NavigationItem, type NavigationPosition, type NavigationProps, NavigationToggle, type OCROptions, type OCRResult, OCRScanner, type OCRState, type OrderManagerOperations, type OrderableItem, PageHeader, type PageHeaderProps, PermissionGuard, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, type ProfileBadge, ProfileButton, type ProfileButtonProps, type ProfileData, ProfileModal, type ProfileModalProps, Progress, ProjectCarousel, ScrollArea, ScrollBar, SearchBox, SearchResultHint, type SearchResultHintProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SentimentAnalyzer, type SentimentOptions, type SentimentResult, type SentimentState, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SmartAssistant, type SocialLink, SortControl, type SortControlProps, type SortMode, SortModeToggle, type SortModeToggleProps, SortableExperimentItem, type SortableExperimentItemProps, type Stat, Tabs, TabsContent, TabsList, TabsTrigger, type TestFieldConfig, type TestFieldPageProps, type TextGenerationOptions, type TextGenerationState, Textarea, Timeline, type TimelineConfig, type TimelineItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UserInfoBar, type UserInfoBarProps, type ViewMode, badgeVariants, buttonVariants, filterExperiments, getAllTags, getCategoryColor, getCategoryDisplayName, getCompletionFilterDisplayName, getCompletionStatusColor, getCompletionStatusText, getExperimentCounts, sortExperiments, useBackgroundRemoval, useOCR, useSentimentAnalysis, useTextGeneration, validateExperiment };
|
|
936
|
+
export { About, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AutoOpenModal, type AutoOpenModalProps, Avatar, AvatarFallback, AvatarImage, BackButton, type BackButtonProps, type BackgroundRemovalOptions, type BackgroundRemovalState, BackgroundRemover, Badge, type BadgeProps, type Ball, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CategoryFilter, CollisionBalls, type CollisionBallsConfig, type CompletionFilter, CompletionFilterComponent, ConfirmModal, type ConfirmModalProps, Contact, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DraggableExperimentGrid, type DraggableExperimentGridProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, type EmptyStateProps, EnhancedAvatar, type EnhancedAvatarProps, ExperimentCard, type ExperimentCategory, ExperimentGrid, type ExperimentGridItem, type ExperimentGridProps, type ExperimentItem, ExperimentItemGrid, FilterButtonGroup, type FilterButtonGroupProps, type FilterOption, FloatingMenu, FloatingMenuExample, GenericOrderManager, type GenericOrderManagerProps, Grid, type GridColumns, type GridGap, type GridItem, type GridProps, Home, type HomeConfig, Input, Label, Modal, type ModalProps, Navigation, type NavigationConfig, type NavigationDirection, NavigationItemComponent as NavigationItem, type NavigationPosition, type NavigationProps, NavigationToggle, type OCROptions, type OCRResult, OCRScanner, type OCRState, type OrderManagerOperations, type OrderableItem, PageHeader, type PageHeaderProps, PermissionGuard, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, type ProfileBadge, ProfileButton, type ProfileButtonProps, type ProfileData, ProfileModal, type ProfileModalProps, Progress, ProjectCarousel, type ProjectsConfig, ScrollArea, ScrollBar, SearchBox, SearchResultHint, type SearchResultHintProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SentimentAnalyzer, type SentimentOptions, type SentimentResult, type SentimentState, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SmartAssistant, type SocialLink, SortControl, type SortControlProps, type SortMode, SortModeToggle, type SortModeToggleProps, SortableExperimentItem, type SortableExperimentItemProps, type Stat, Tabs, TabsContent, TabsList, TabsTrigger, type TestFieldConfig, type TestFieldPageProps, type TextGenerationOptions, type TextGenerationState, Textarea, Timeline, type TimelineConfig, type TimelineItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UserInfoBar, type UserInfoBarProps, type ViewMode, badgeVariants, buttonVariants, filterExperiments, getAllTags, getCategoryColor, getCategoryDisplayName, getCompletionFilterDisplayName, getCompletionStatusColor, getCompletionStatusText, getExperimentCounts, sortExperiments, useBackgroundRemoval, useOCR, useSentimentAnalysis, useTextGeneration, validateExperiment };
|
package/dist/mmd/index.d.mts
CHANGED
|
@@ -154,6 +154,8 @@ interface VisualNovelNode {
|
|
|
154
154
|
bgmVolume?: number;
|
|
155
155
|
/** 节点是否循环 MMD 动画(对话期间循环,默认 true) */
|
|
156
156
|
loopAnimation?: boolean;
|
|
157
|
+
/** 是否支持应援功能(默认 false) */
|
|
158
|
+
supportCheer?: boolean;
|
|
157
159
|
}
|
|
158
160
|
/** 视觉小说剧本配置 */
|
|
159
161
|
interface VisualNovelScript {
|
|
@@ -404,6 +406,53 @@ interface ChoiceMenuProps {
|
|
|
404
406
|
}
|
|
405
407
|
declare const ChoiceMenu: React__default.FC<ChoiceMenuProps>;
|
|
406
408
|
|
|
409
|
+
interface LoopConfirmDialogProps {
|
|
410
|
+
onRestart: () => void;
|
|
411
|
+
onBackToStart: () => void;
|
|
412
|
+
onCancel?: () => void;
|
|
413
|
+
}
|
|
414
|
+
/**
|
|
415
|
+
* 循环确认对话框
|
|
416
|
+
* 在剧本播放到最后一个节点时,询问用户是否继续循环
|
|
417
|
+
*/
|
|
418
|
+
declare const LoopConfirmDialog: React__default.FC<LoopConfirmDialogProps>;
|
|
419
|
+
|
|
420
|
+
/**
|
|
421
|
+
* 应援按钮组件
|
|
422
|
+
*/
|
|
423
|
+
interface CheerButtonProps {
|
|
424
|
+
/** 点击回调 */
|
|
425
|
+
onClick: () => void;
|
|
426
|
+
/** 按钮文字 */
|
|
427
|
+
text?: string;
|
|
428
|
+
/** 是否显示 */
|
|
429
|
+
show: boolean;
|
|
430
|
+
/** 样式类名 */
|
|
431
|
+
className?: string;
|
|
432
|
+
}
|
|
433
|
+
declare const CheerButton: React__default.FC<CheerButtonProps>;
|
|
434
|
+
|
|
435
|
+
/**
|
|
436
|
+
* 3D粒子彩花效果组件
|
|
437
|
+
*
|
|
438
|
+
* 功能:
|
|
439
|
+
* - 点击应援按钮触发粒子爆炸效果
|
|
440
|
+
* - 彩色粒子从中心向外扩散
|
|
441
|
+
* - 粒子受重力影响下落
|
|
442
|
+
* - 自动清理完成的粒子
|
|
443
|
+
*/
|
|
444
|
+
interface CheerParticlesRef {
|
|
445
|
+
/** 触发一次粒子效果 */
|
|
446
|
+
trigger: () => void;
|
|
447
|
+
/** 清理所有粒子 */
|
|
448
|
+
clear: () => void;
|
|
449
|
+
}
|
|
450
|
+
interface CheerParticlesProps {
|
|
451
|
+
/** 容器样式类名 */
|
|
452
|
+
className?: string;
|
|
453
|
+
}
|
|
454
|
+
declare const CheerParticles: React__default.ForwardRefExoticComponent<CheerParticlesProps & React__default.RefAttributes<CheerParticlesRef>>;
|
|
455
|
+
|
|
407
456
|
/** 音乐曲目配置 */
|
|
408
457
|
interface MusicTrack {
|
|
409
458
|
/** 唯一标识 */
|
|
@@ -1409,4 +1458,4 @@ interface FXThreePreviewProps {
|
|
|
1409
1458
|
}
|
|
1410
1459
|
declare const FXThreePreview: React__default.FC<FXThreePreviewProps>;
|
|
1411
1460
|
|
|
1412
|
-
export { type BranchCondition, ChoiceMenu, type ChoiceMenuProps, DialogueBox, type DialogueBoxProps, type DialogueBoxTheme, type DialogueChoice, type DialogueHistoryItem, type DialogueLine, type EffectFileType, type FXComment, type FXController, type FXDefine, type FXEffect, type FXFileConfig, type FXMergeStrategy, type FXParameter, FXParser, type FXParserOptions, type FXPass, type FXShaderFunction, type FXStaticVariable, type FXSummary, type FXTechnique, type FXTexture, FXThreePreview, type FXThreePreviewProps, FXToThreeAdapter, FXViewer, type FXViewerProps, type GLSLShader, type GLSLShaders, HLSLToGLSLConverter, HistoryPanel, LoadingOverlay, type LoadingOverlayProps, LoadingScreen, type LoadingScreenProps, MMDARPlayer, type MMDARPlayerProps, type MMDARPlayerRef, 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, MultiFXAdapter, type MultiFXAdapterOptions, MusicControls, type MusicControlsProps, type MusicTrack, PlaylistPanel, type PlaylistPanelProps, StartScreen, type StartScreenProps, type ThreeMaterialConfig, type ThreeRenderConfig, TrackInfo, type TrackInfoProps, type VisualEffect, type VisualNovelNode, type VisualNovelScript, compareFXEffects, exportFXToJSON, exportFXToMarkdown, extractTexturePaths, filterDefinesByPrefix, getColorParameters, getConfigSummaryText, getFeatureFlags, getTextureDefines, hasFeature, loadAmmo, validateFXEffect };
|
|
1461
|
+
export { type BranchCondition, CheerButton, type CheerButtonProps, CheerParticles, type CheerParticlesProps, type CheerParticlesRef, ChoiceMenu, type ChoiceMenuProps, DialogueBox, type DialogueBoxProps, type DialogueBoxTheme, type DialogueChoice, type DialogueHistoryItem, type DialogueLine, type EffectFileType, type FXComment, type FXController, type FXDefine, type FXEffect, type FXFileConfig, type FXMergeStrategy, type FXParameter, FXParser, type FXParserOptions, type FXPass, type FXShaderFunction, type FXStaticVariable, type FXSummary, type FXTechnique, type FXTexture, FXThreePreview, type FXThreePreviewProps, FXToThreeAdapter, FXViewer, type FXViewerProps, type GLSLShader, type GLSLShaders, HLSLToGLSLConverter, HistoryPanel, LoadingOverlay, type LoadingOverlayProps, LoadingScreen, type LoadingScreenProps, LoopConfirmDialog, MMDARPlayer, type MMDARPlayerProps, type MMDARPlayerRef, 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, MultiFXAdapter, type MultiFXAdapterOptions, MusicControls, type MusicControlsProps, type MusicTrack, PlaylistPanel, type PlaylistPanelProps, StartScreen, type StartScreenProps, type ThreeMaterialConfig, type ThreeRenderConfig, TrackInfo, type TrackInfoProps, type VisualEffect, type VisualNovelNode, type VisualNovelScript, compareFXEffects, exportFXToJSON, exportFXToMarkdown, extractTexturePaths, filterDefinesByPrefix, getColorParameters, getConfigSummaryText, getFeatureFlags, getTextureDefines, hasFeature, loadAmmo, validateFXEffect };
|
package/dist/mmd/index.d.ts
CHANGED
|
@@ -154,6 +154,8 @@ interface VisualNovelNode {
|
|
|
154
154
|
bgmVolume?: number;
|
|
155
155
|
/** 节点是否循环 MMD 动画(对话期间循环,默认 true) */
|
|
156
156
|
loopAnimation?: boolean;
|
|
157
|
+
/** 是否支持应援功能(默认 false) */
|
|
158
|
+
supportCheer?: boolean;
|
|
157
159
|
}
|
|
158
160
|
/** 视觉小说剧本配置 */
|
|
159
161
|
interface VisualNovelScript {
|
|
@@ -404,6 +406,53 @@ interface ChoiceMenuProps {
|
|
|
404
406
|
}
|
|
405
407
|
declare const ChoiceMenu: React__default.FC<ChoiceMenuProps>;
|
|
406
408
|
|
|
409
|
+
interface LoopConfirmDialogProps {
|
|
410
|
+
onRestart: () => void;
|
|
411
|
+
onBackToStart: () => void;
|
|
412
|
+
onCancel?: () => void;
|
|
413
|
+
}
|
|
414
|
+
/**
|
|
415
|
+
* 循环确认对话框
|
|
416
|
+
* 在剧本播放到最后一个节点时,询问用户是否继续循环
|
|
417
|
+
*/
|
|
418
|
+
declare const LoopConfirmDialog: React__default.FC<LoopConfirmDialogProps>;
|
|
419
|
+
|
|
420
|
+
/**
|
|
421
|
+
* 应援按钮组件
|
|
422
|
+
*/
|
|
423
|
+
interface CheerButtonProps {
|
|
424
|
+
/** 点击回调 */
|
|
425
|
+
onClick: () => void;
|
|
426
|
+
/** 按钮文字 */
|
|
427
|
+
text?: string;
|
|
428
|
+
/** 是否显示 */
|
|
429
|
+
show: boolean;
|
|
430
|
+
/** 样式类名 */
|
|
431
|
+
className?: string;
|
|
432
|
+
}
|
|
433
|
+
declare const CheerButton: React__default.FC<CheerButtonProps>;
|
|
434
|
+
|
|
435
|
+
/**
|
|
436
|
+
* 3D粒子彩花效果组件
|
|
437
|
+
*
|
|
438
|
+
* 功能:
|
|
439
|
+
* - 点击应援按钮触发粒子爆炸效果
|
|
440
|
+
* - 彩色粒子从中心向外扩散
|
|
441
|
+
* - 粒子受重力影响下落
|
|
442
|
+
* - 自动清理完成的粒子
|
|
443
|
+
*/
|
|
444
|
+
interface CheerParticlesRef {
|
|
445
|
+
/** 触发一次粒子效果 */
|
|
446
|
+
trigger: () => void;
|
|
447
|
+
/** 清理所有粒子 */
|
|
448
|
+
clear: () => void;
|
|
449
|
+
}
|
|
450
|
+
interface CheerParticlesProps {
|
|
451
|
+
/** 容器样式类名 */
|
|
452
|
+
className?: string;
|
|
453
|
+
}
|
|
454
|
+
declare const CheerParticles: React__default.ForwardRefExoticComponent<CheerParticlesProps & React__default.RefAttributes<CheerParticlesRef>>;
|
|
455
|
+
|
|
407
456
|
/** 音乐曲目配置 */
|
|
408
457
|
interface MusicTrack {
|
|
409
458
|
/** 唯一标识 */
|
|
@@ -1409,4 +1458,4 @@ interface FXThreePreviewProps {
|
|
|
1409
1458
|
}
|
|
1410
1459
|
declare const FXThreePreview: React__default.FC<FXThreePreviewProps>;
|
|
1411
1460
|
|
|
1412
|
-
export { type BranchCondition, ChoiceMenu, type ChoiceMenuProps, DialogueBox, type DialogueBoxProps, type DialogueBoxTheme, type DialogueChoice, type DialogueHistoryItem, type DialogueLine, type EffectFileType, type FXComment, type FXController, type FXDefine, type FXEffect, type FXFileConfig, type FXMergeStrategy, type FXParameter, FXParser, type FXParserOptions, type FXPass, type FXShaderFunction, type FXStaticVariable, type FXSummary, type FXTechnique, type FXTexture, FXThreePreview, type FXThreePreviewProps, FXToThreeAdapter, FXViewer, type FXViewerProps, type GLSLShader, type GLSLShaders, HLSLToGLSLConverter, HistoryPanel, LoadingOverlay, type LoadingOverlayProps, LoadingScreen, type LoadingScreenProps, MMDARPlayer, type MMDARPlayerProps, type MMDARPlayerRef, 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, MultiFXAdapter, type MultiFXAdapterOptions, MusicControls, type MusicControlsProps, type MusicTrack, PlaylistPanel, type PlaylistPanelProps, StartScreen, type StartScreenProps, type ThreeMaterialConfig, type ThreeRenderConfig, TrackInfo, type TrackInfoProps, type VisualEffect, type VisualNovelNode, type VisualNovelScript, compareFXEffects, exportFXToJSON, exportFXToMarkdown, extractTexturePaths, filterDefinesByPrefix, getColorParameters, getConfigSummaryText, getFeatureFlags, getTextureDefines, hasFeature, loadAmmo, validateFXEffect };
|
|
1461
|
+
export { type BranchCondition, CheerButton, type CheerButtonProps, CheerParticles, type CheerParticlesProps, type CheerParticlesRef, ChoiceMenu, type ChoiceMenuProps, DialogueBox, type DialogueBoxProps, type DialogueBoxTheme, type DialogueChoice, type DialogueHistoryItem, type DialogueLine, type EffectFileType, type FXComment, type FXController, type FXDefine, type FXEffect, type FXFileConfig, type FXMergeStrategy, type FXParameter, FXParser, type FXParserOptions, type FXPass, type FXShaderFunction, type FXStaticVariable, type FXSummary, type FXTechnique, type FXTexture, FXThreePreview, type FXThreePreviewProps, FXToThreeAdapter, FXViewer, type FXViewerProps, type GLSLShader, type GLSLShaders, HLSLToGLSLConverter, HistoryPanel, LoadingOverlay, type LoadingOverlayProps, LoadingScreen, type LoadingScreenProps, LoopConfirmDialog, MMDARPlayer, type MMDARPlayerProps, type MMDARPlayerRef, 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, MultiFXAdapter, type MultiFXAdapterOptions, MusicControls, type MusicControlsProps, type MusicTrack, PlaylistPanel, type PlaylistPanelProps, StartScreen, type StartScreenProps, type ThreeMaterialConfig, type ThreeRenderConfig, TrackInfo, type TrackInfoProps, type VisualEffect, type VisualNovelNode, type VisualNovelScript, compareFXEffects, exportFXToJSON, exportFXToMarkdown, extractTexturePaths, filterDefinesByPrefix, getColorParameters, getConfigSummaryText, getFeatureFlags, getTextureDefines, hasFeature, loadAmmo, validateFXEffect };
|