@dataclouder/ngx-agent-cards 0.2.13 → 0.2.14
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.
|
@@ -79,9 +79,6 @@ import { PaginatorModule } from 'primeng/paginator';
|
|
|
79
79
|
import * as i3$5 from 'primeng/speeddial';
|
|
80
80
|
import { SpeedDialModule } from 'primeng/speeddial';
|
|
81
81
|
import { isEmpty } from 'es-toolkit/compat';
|
|
82
|
-
import { Live2DModel } from 'untitled-pixi-live2d-engine/cubism';
|
|
83
|
-
import * as PIXI from 'pixi.js';
|
|
84
|
-
import { Application } from 'pixi.js';
|
|
85
82
|
import * as i3$6 from '@ngx-translate/core';
|
|
86
83
|
import { TranslateModule } from '@ngx-translate/core';
|
|
87
84
|
import { form, required, submit, FormField } from '@angular/forms/signals';
|
|
@@ -3996,6 +3993,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImpor
|
|
|
3996
3993
|
const VIDEO_PLAYER_SERVICE_TOKEN = new InjectionToken('VIDEO_PLAYER_SERVICE_TOKEN');
|
|
3997
3994
|
const BACKGROUND_SERVICE_TOKEN = new InjectionToken('BACKGROUND_SERVICE_TOKEN');
|
|
3998
3995
|
const CHAT_OBSERVER_CONFIG = new InjectionToken('CHAT_OBSERVER_CONFIG');
|
|
3996
|
+
const LIVE2D_CONFIG = new InjectionToken('LIVE2D_CONFIG');
|
|
3997
|
+
function provideLive2D(config) {
|
|
3998
|
+
return {
|
|
3999
|
+
provide: LIVE2D_CONFIG,
|
|
4000
|
+
useValue: config
|
|
4001
|
+
};
|
|
4002
|
+
}
|
|
3999
4003
|
|
|
4000
4004
|
class VideoPlayerService {
|
|
4001
4005
|
constructor() {
|
|
@@ -9116,6 +9120,7 @@ class Live2dModelComponent {
|
|
|
9116
9120
|
// Outputs (using new Angular output API)
|
|
9117
9121
|
this.modelLoaded = output();
|
|
9118
9122
|
this.viewStateChanged = output();
|
|
9123
|
+
this.live2dConfig = inject(LIVE2D_CONFIG, { optional: true });
|
|
9119
9124
|
this.modelParameters = null;
|
|
9120
9125
|
this.modelParts = null;
|
|
9121
9126
|
this.motionGroups = [];
|
|
@@ -9156,7 +9161,12 @@ class Live2dModelComponent {
|
|
|
9156
9161
|
this.isViewInitialized.set(true);
|
|
9157
9162
|
}
|
|
9158
9163
|
async initializeCanvas() {
|
|
9159
|
-
this.
|
|
9164
|
+
if (!this.live2dConfig) {
|
|
9165
|
+
console.warn('Live2D configuration not provided. Please call provideLive2D in your app bootstrap.');
|
|
9166
|
+
return;
|
|
9167
|
+
}
|
|
9168
|
+
const PIXI = await this.live2dConfig.PIXI();
|
|
9169
|
+
this.app = new PIXI.Application();
|
|
9160
9170
|
if (typeof this.app.init === 'function') {
|
|
9161
9171
|
await this.app.init({
|
|
9162
9172
|
canvas: this.canvasRef.nativeElement,
|
|
@@ -9173,6 +9183,13 @@ class Live2dModelComponent {
|
|
|
9173
9183
|
}
|
|
9174
9184
|
}
|
|
9175
9185
|
async loadModel(modelPath) {
|
|
9186
|
+
if (!this.live2dConfig) {
|
|
9187
|
+
console.warn('Live2D configuration not provided. Please call provideLive2D in your app bootstrap.');
|
|
9188
|
+
return;
|
|
9189
|
+
}
|
|
9190
|
+
const PIXI = await this.live2dConfig.PIXI();
|
|
9191
|
+
const live2dEngine = await this.live2dConfig.Live2DModel();
|
|
9192
|
+
const Live2DModel = live2dEngine.Live2DModel;
|
|
9176
9193
|
if (this.model) {
|
|
9177
9194
|
this.app.stage.removeChild(this.model);
|
|
9178
9195
|
this.model.destroy();
|
|
@@ -10272,5 +10289,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImpor
|
|
|
10272
10289
|
* Generated bundle index. Do not edit.
|
|
10273
10290
|
*/
|
|
10274
10291
|
|
|
10275
|
-
export { ACCDataGenerationComponent, AGENT_CARDS_STATE_SERVICE, AIGenerationService, AgentCardListComponent, AgentCardUI, AgentCardsGenerationService, AgenticEngine, AgenticPattern, AudioService, AudioSpeed, BACKGROUND_SERVICE_TOKEN, CHAT_OBSERVER_CONFIG, CONVERSATION_AI_TOKEN, CardRouteService, CardRoutesComponent, CardsCreatorComponent, ChatEngineTestComponent, ChatEventType, ChatMessage, ChatMessageOrchestratorComponent, ChatMonitorService, ChatRole, ConditionOperator, ConditionType, ContextEngineService, ContextType, ConversationDTO, ConversationEvents, ConversationFlowStateService, ConversationMessagesDTO, ConversationPromptBuilderService, ConversationRuleService, ConversationRulesComponent, ConversationStatus, ConversationType, ConversationTypeOptions, DCAgentCardFormComponent, DCChatComponent, DCConversationUserChatSettingsComponent, DcAgentCardConverseComponent, DcAgentCardDetailComponent, DcObserverInterventionComponent, DefaultAgentCardsService, DoActionTypeOptions, DynamicFlowService, DynamicFlowTaskTypeOptions, EAccountsPlatform, EAgentType, EDoActionType, EDynamicFlowTaskType, EntityThen, EntityWhatOptions, EntityWhenOptions, EvalResultStringDefinition, GlobalToolsService, Live2dModelComponent, MessageContent, MessageContentDisplayer, MessagesStateService, ModelSelectorComponent, PolitoNotificationComponent, PopupService, PromptPreviewComponent, SectionType, SystemPromptType, TextEngineOptions, TextEngines, VIDEO_PLAYER_SERVICE_TOKEN, VideoPlayerNativeService, VideoPlayerService, VoiceTTSOption, VoiceTTSOptions, WordTimestamps, XKillsAgentCardsService, buildObjectTTSRequest, characterCardStringDataDefinition, convertToHTML, createAIModelFormGroup, defaultconvUserSettings, extractAudioAndTranscription, extractJsonFromResponse, getMoodStateLabelsAsString, getMoodStatePrompt, markdownToHtml, matchTranscription, provideAgentCardService, removeEmojis, removeEmojisAndSpecialCharacters, removeSpecialCharacters };
|
|
10292
|
+
export { ACCDataGenerationComponent, AGENT_CARDS_STATE_SERVICE, AIGenerationService, AgentCardListComponent, AgentCardUI, AgentCardsGenerationService, AgenticEngine, AgenticPattern, AudioService, AudioSpeed, BACKGROUND_SERVICE_TOKEN, CHAT_OBSERVER_CONFIG, CONVERSATION_AI_TOKEN, CardRouteService, CardRoutesComponent, CardsCreatorComponent, ChatEngineTestComponent, ChatEventType, ChatMessage, ChatMessageOrchestratorComponent, ChatMonitorService, ChatRole, ConditionOperator, ConditionType, ContextEngineService, ContextType, ConversationDTO, ConversationEvents, ConversationFlowStateService, ConversationMessagesDTO, ConversationPromptBuilderService, ConversationRuleService, ConversationRulesComponent, ConversationStatus, ConversationType, ConversationTypeOptions, DCAgentCardFormComponent, DCChatComponent, DCConversationUserChatSettingsComponent, DcAgentCardConverseComponent, DcAgentCardDetailComponent, DcObserverInterventionComponent, DefaultAgentCardsService, DoActionTypeOptions, DynamicFlowService, DynamicFlowTaskTypeOptions, EAccountsPlatform, EAgentType, EDoActionType, EDynamicFlowTaskType, EntityThen, EntityWhatOptions, EntityWhenOptions, EvalResultStringDefinition, GlobalToolsService, LIVE2D_CONFIG, Live2dModelComponent, MessageContent, MessageContentDisplayer, MessagesStateService, ModelSelectorComponent, PolitoNotificationComponent, PopupService, PromptPreviewComponent, SectionType, SystemPromptType, TextEngineOptions, TextEngines, VIDEO_PLAYER_SERVICE_TOKEN, VideoPlayerNativeService, VideoPlayerService, VoiceTTSOption, VoiceTTSOptions, WordTimestamps, XKillsAgentCardsService, buildObjectTTSRequest, characterCardStringDataDefinition, convertToHTML, createAIModelFormGroup, defaultconvUserSettings, extractAudioAndTranscription, extractJsonFromResponse, getMoodStateLabelsAsString, getMoodStatePrompt, markdownToHtml, matchTranscription, provideAgentCardService, provideLive2D, removeEmojis, removeEmojisAndSpecialCharacters, removeSpecialCharacters };
|
|
10276
10293
|
//# sourceMappingURL=dataclouder-ngx-agent-cards.mjs.map
|