@3dsource/metabox-modular-configurator-api 0.0.1 → 0.0.3
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/index.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { MetaBoxCommandPacket } from '@3dsource/types-unreal';
|
|
2
|
-
import { UnrealCallBackJson, UnrealState, StreamResolutionProps } from '@3dsource/angular-unreal-module';
|
|
3
1
|
import { Observable } from 'rxjs';
|
|
4
2
|
|
|
5
3
|
type ApplicationDeviceTypes = 'deviceTypeAuto' | 'deviceTypeMobile' | 'deviceTypeDesktop';
|
|
@@ -12,7 +10,6 @@ declare const MetaboxModularConfiguratorActions: {
|
|
|
12
10
|
readonly setComponent: "setComponent";
|
|
13
11
|
readonly setComponentType: "setComponentType";
|
|
14
12
|
readonly setComponentMaterialById: "setComponentMaterialById";
|
|
15
|
-
readonly sendCommandToUnreal: "sendCommandToUnreal";
|
|
16
13
|
readonly getPdf: "getPdf";
|
|
17
14
|
readonly getScreenshot: "getScreenshot";
|
|
18
15
|
readonly showEmbeddedMenu: "showEmbeddedMenu";
|
|
@@ -24,7 +21,7 @@ declare const MetaboxModularConfiguratorActions: {
|
|
|
24
21
|
readonly playShowcase: "playShowcase";
|
|
25
22
|
readonly pauseShowcase: "pauseShowcase";
|
|
26
23
|
readonly stopShowcase: "stopShowcase";
|
|
27
|
-
readonly
|
|
24
|
+
readonly sendCommandToUnreal: "sendCommandToUnreal";
|
|
28
25
|
};
|
|
29
26
|
type ToMetaBoxActions = (typeof MetaboxModularConfiguratorActions)[keyof typeof MetaboxModularConfiguratorActions];
|
|
30
27
|
/**
|
|
@@ -56,7 +53,6 @@ interface ToMetaboxMessagePayloads {
|
|
|
56
53
|
slotId: string;
|
|
57
54
|
materialId: string;
|
|
58
55
|
};
|
|
59
|
-
[MetaboxModularConfiguratorActions.sendCommandToUnreal]: MetaBoxCommandPacket;
|
|
60
56
|
[MetaboxModularConfiguratorActions.getScreenshot]: {
|
|
61
57
|
format: MimeType;
|
|
62
58
|
size?: {
|
|
@@ -65,7 +61,6 @@ interface ToMetaboxMessagePayloads {
|
|
|
65
61
|
};
|
|
66
62
|
};
|
|
67
63
|
[MetaboxModularConfiguratorActions.getPdf]: void;
|
|
68
|
-
[MetaboxModularConfiguratorActions.watchCallbacks]: void;
|
|
69
64
|
[MetaboxModularConfiguratorActions.showEmbeddedMenu]: {
|
|
70
65
|
visible: boolean;
|
|
71
66
|
};
|
|
@@ -85,6 +80,7 @@ interface ToMetaboxMessagePayloads {
|
|
|
85
80
|
[MetaboxModularConfiguratorActions.playShowcase]: void;
|
|
86
81
|
[MetaboxModularConfiguratorActions.pauseShowcase]: void;
|
|
87
82
|
[MetaboxModularConfiguratorActions.stopShowcase]: void;
|
|
83
|
+
[MetaboxModularConfiguratorActions.sendCommandToUnreal]: object;
|
|
88
84
|
}
|
|
89
85
|
interface ToMetaBoxMessageEnvelope {
|
|
90
86
|
action: ToMetaBoxActions;
|
|
@@ -96,26 +92,26 @@ interface ToMetaBoxMessage {
|
|
|
96
92
|
}
|
|
97
93
|
|
|
98
94
|
/**
|
|
99
|
-
* Represents a modular configurator
|
|
95
|
+
* Represents a modular configurator envelope with an initial configurator, and changes contain a configuration tree,
|
|
100
96
|
* all components by active component type, component selected materials,
|
|
101
97
|
* and associated environment.
|
|
102
98
|
*/
|
|
103
99
|
interface ModularConfiguratorEnvelope {
|
|
104
|
-
/**
|
|
105
|
-
configurator:
|
|
100
|
+
/** Represents the modular configurator api with its components, component types, and environments */
|
|
101
|
+
configurator: InitialModularConfigurator;
|
|
106
102
|
/** The unique tree of components and parent and component type id */
|
|
107
103
|
configurationTree: ComponentWithParent[];
|
|
108
104
|
/** A record mapping all components by current component type */
|
|
109
105
|
componentsByComponentType: Record<string, string>;
|
|
110
|
-
/** A record mapping component material
|
|
106
|
+
/** A record mapping component material selection */
|
|
111
107
|
componentMaterialsIds: SelectedIds;
|
|
112
108
|
/** The unique environment identifier */
|
|
113
109
|
environmentId: string;
|
|
114
110
|
/** A record mapping environment material selections */
|
|
115
111
|
environmentMaterialsIds: SelectedIds;
|
|
116
112
|
}
|
|
117
|
-
/** Represents the modular configurator api with its
|
|
118
|
-
interface
|
|
113
|
+
/** Represents the modular configurator api with its components, component types, and environments */
|
|
114
|
+
interface InitialModularConfigurator {
|
|
119
115
|
/** Unique identifier for the configurator. */
|
|
120
116
|
id: string;
|
|
121
117
|
/** Client information associated with the configurator. */
|
|
@@ -129,6 +125,7 @@ interface ModularConfiguratorApi {
|
|
|
129
125
|
componentTypes: ModularConfiguratorComponentType[];
|
|
130
126
|
/** The camera settings used in the configurator. */
|
|
131
127
|
/** Indicates if the configurator is active. */
|
|
128
|
+
isActive: boolean;
|
|
132
129
|
connectors: ModularConfiguratorConnector[];
|
|
133
130
|
/** GraphQL typename for the Modular Configurator. */
|
|
134
131
|
__typename: 'ModularConfigurator';
|
|
@@ -207,6 +204,7 @@ interface Product {
|
|
|
207
204
|
/** Unique external id for the product. */
|
|
208
205
|
externalId: string;
|
|
209
206
|
/** Showcase details for the product. */
|
|
207
|
+
showcase?: Showcase;
|
|
210
208
|
/** GraphQL typename for the product. */
|
|
211
209
|
__typename: 'Product';
|
|
212
210
|
}
|
|
@@ -267,6 +265,28 @@ interface Material {
|
|
|
267
265
|
/** GraphQL typename for the material. */
|
|
268
266
|
__typename: 'Material';
|
|
269
267
|
}
|
|
268
|
+
/**
|
|
269
|
+
* Details showcase the presentation of a product.
|
|
270
|
+
*/
|
|
271
|
+
interface Showcase {
|
|
272
|
+
/** A list of low-bandwidth versions for the showcase (optional). */
|
|
273
|
+
lowBandwidth?: (Timecode | null)[] | null;
|
|
274
|
+
/** Duration for the showcase (optional). */
|
|
275
|
+
duration?: number;
|
|
276
|
+
/** GraphQL typename for the showcase. */
|
|
277
|
+
__typename: 'Showcase';
|
|
278
|
+
}
|
|
279
|
+
/**
|
|
280
|
+
* Represents a low-bandwidth entity used in showcases in LBM mode.
|
|
281
|
+
*/
|
|
282
|
+
interface Timecode {
|
|
283
|
+
/** Time marker for the entity. */
|
|
284
|
+
time: number;
|
|
285
|
+
/** Duration of the entity display. */
|
|
286
|
+
duration: number;
|
|
287
|
+
/** GraphQL typename (as a string, flexible type). */
|
|
288
|
+
__typename: 'Timecode';
|
|
289
|
+
}
|
|
270
290
|
/**
|
|
271
291
|
* Represents the environment settings for a modular configurator.
|
|
272
292
|
*/
|
|
@@ -291,8 +311,11 @@ interface Environment {
|
|
|
291
311
|
/** Title or name of the environment. */
|
|
292
312
|
title: string;
|
|
293
313
|
/** Flag indicating if UDS is enabled. */
|
|
314
|
+
udsEnabled: boolean;
|
|
294
315
|
/** The north yaw of the sun in the environment. */
|
|
316
|
+
sunNorthYaw: number;
|
|
295
317
|
/** The UDS hour setting for the environment. */
|
|
318
|
+
udsHour: number;
|
|
296
319
|
/** List of thumbnails for the environment (optional). */
|
|
297
320
|
thumbnailList: Thumbnail[];
|
|
298
321
|
/** List of slots for the environment (optional). */
|
|
@@ -317,50 +340,44 @@ type SelectedIds = Record<string, Record<string, string>>;
|
|
|
317
340
|
* Defines the structure for an available showcase status for the current product on a scene.
|
|
318
341
|
*/
|
|
319
342
|
type ShowCaseStatus = 'init' | 'play' | 'pause' | 'stop';
|
|
343
|
+
/**
|
|
344
|
+
* Defines the structure for a video resolution.
|
|
345
|
+
*/
|
|
346
|
+
interface VideoResolution {
|
|
347
|
+
width: number | null;
|
|
348
|
+
height: number | null;
|
|
349
|
+
}
|
|
320
350
|
|
|
321
351
|
interface FromMetaboxMessagePayloads {
|
|
322
352
|
/**
|
|
323
|
-
* Dispatches
|
|
324
|
-
* I.e., when the user changes the configuration. (Material,
|
|
353
|
+
* Dispatches every time the configurator data is updated ands .
|
|
354
|
+
* I.e., when the user changes the configuration. (Material, Component Tree, Components, Component Type, Environment)
|
|
325
355
|
*/
|
|
326
|
-
|
|
356
|
+
configuratorDataUpdated: ModularConfiguratorEnvelope;
|
|
327
357
|
/**
|
|
328
|
-
* Dispatches
|
|
358
|
+
* Dispatches every time when the configurator showcase status will be changed.
|
|
329
359
|
*/
|
|
330
|
-
|
|
360
|
+
showcaseStatusChanged: ShowCaseStatus;
|
|
331
361
|
/**
|
|
332
|
-
* Dispatches
|
|
362
|
+
* Dispatches every time when the configurator connected/disconnected with Unreal Engine.
|
|
333
363
|
*/
|
|
334
364
|
dataChannelConnected: boolean;
|
|
335
365
|
/**
|
|
336
|
-
* Dispatches
|
|
366
|
+
* Dispatches every time when the Viewport is ready / not ready.
|
|
337
367
|
*/
|
|
338
368
|
viewportReady: boolean;
|
|
339
369
|
/**
|
|
340
370
|
* Dispatches at the moment while the configurator loads. Shows status information.
|
|
341
371
|
*/
|
|
342
|
-
|
|
343
|
-
/**
|
|
344
|
-
* @experimental
|
|
345
|
-
* Dispatches every Unreal is sending a command callback.
|
|
346
|
-
* Works only after the new WatchCallbacks () command is sent.
|
|
347
|
-
*/
|
|
348
|
-
unrealCallback: {
|
|
349
|
-
json: UnrealCallBackJson;
|
|
350
|
-
};
|
|
351
|
-
/**
|
|
352
|
-
* Dispatches every time when Unreal is sending ordered render with new GetFastRender() command.
|
|
353
|
-
*/
|
|
354
|
-
screenshot: string | null;
|
|
372
|
+
statusMessageChanged: string | null;
|
|
355
373
|
/**
|
|
356
|
-
*
|
|
357
|
-
* Dispatches every Unreal state is changing, including all unreal module state.
|
|
374
|
+
* Dispatches every time when Unreal is sending ordered render with new GetScreenshot() command.
|
|
358
375
|
*/
|
|
359
|
-
|
|
376
|
+
screenshotReady: string | null;
|
|
360
377
|
/**
|
|
361
378
|
* Dispatches every time when Unreal is changing its video stream size.
|
|
362
379
|
*/
|
|
363
|
-
|
|
380
|
+
videoResolutionChanged: VideoResolution;
|
|
364
381
|
}
|
|
365
382
|
/**
|
|
366
383
|
* @hidden
|
|
@@ -547,36 +564,6 @@ declare function integrateMetabox(iframeSrc: string, containerId: string | undef
|
|
|
547
564
|
*/
|
|
548
565
|
declare function saveImage(imageUrl: string, filename: string): void;
|
|
549
566
|
|
|
550
|
-
/**
|
|
551
|
-
* Pauses execution for a specified duration.
|
|
552
|
-
*
|
|
553
|
-
* @remarks
|
|
554
|
-
* This function returns a promise that resolves after the given number of milliseconds.
|
|
555
|
-
*
|
|
556
|
-
* @param {number} time - The time to sleep in milliseconds.
|
|
557
|
-
* @returns A promise that resolves after the specified duration.
|
|
558
|
-
*/
|
|
559
|
-
declare function sleep(time: number): Promise<void>;
|
|
560
|
-
|
|
561
|
-
/**
|
|
562
|
-
* Sets the URL parameters based on the provided state.
|
|
563
|
-
*
|
|
564
|
-
* @remarks
|
|
565
|
-
* This function updates the current URL by replacing its search parameters with the key-value pairs from the provided state object.
|
|
566
|
-
*
|
|
567
|
-
* @param state - An object containing key-value pairs to set as URL parameters.
|
|
568
|
-
*/
|
|
569
|
-
declare function setUrlParams(state: Record<string, string>): void;
|
|
570
|
-
/**
|
|
571
|
-
* Retrieves the URL parameters as an object.
|
|
572
|
-
*
|
|
573
|
-
* @remarks
|
|
574
|
-
* This function parses the current URL's search parameters and returns them as a key-value object.
|
|
575
|
-
*
|
|
576
|
-
* @returns An object containing the URL parameters.
|
|
577
|
-
*/
|
|
578
|
-
declare function getUrlParams(): Record<string, string>;
|
|
579
|
-
|
|
580
567
|
/**
|
|
581
568
|
* Wrapper helper function to use it with rxJs the same as `fromEvent` to listen to events from the Communicator.
|
|
582
569
|
* @param {Communicator} target
|
|
@@ -594,7 +581,7 @@ declare function fromCommunicatorEvent<T extends FromMetaBoxApiEvents>(target: C
|
|
|
594
581
|
*
|
|
595
582
|
* @example
|
|
596
583
|
* import { GetPdf, Communicator } from '@3dsource/metabox-modular-configurator-api';
|
|
597
|
-
* window.env3DSource.apiReady = (api:Communicator) => {
|
|
584
|
+
* window.env3DSource.apiReady = (api: Communicator) => {
|
|
598
585
|
* api.sendCommandToMetaBox(new GetPdf());
|
|
599
586
|
* };
|
|
600
587
|
*/
|
|
@@ -618,7 +605,7 @@ declare class GetPdf extends CommandBase {
|
|
|
618
605
|
*
|
|
619
606
|
* @example
|
|
620
607
|
* import { ResetCamera, Communicator } from '@3dsource/metabox-modular-configurator-api';
|
|
621
|
-
* window.env3DSource.apiReady = (api:Communicator) => {
|
|
608
|
+
* window.env3DSource.apiReady = (api: Communicator) => {
|
|
622
609
|
* api.sendCommandToMetaBox(new ResetCamera());
|
|
623
610
|
* };
|
|
624
611
|
*/
|
|
@@ -641,7 +628,7 @@ declare class ResetCamera extends CommandBase {
|
|
|
641
628
|
*
|
|
642
629
|
* @example
|
|
643
630
|
* import { ApplyZoom, Communicator } from '@3dsource/metabox-modular-configurator-api';
|
|
644
|
-
* window.env3DSource.apiReady = (api:Communicator) => {
|
|
631
|
+
* window.env3DSource.apiReady = (api: Communicator) => {
|
|
645
632
|
* api.sendCommandToMetaBox(new ApplyZoom(10));
|
|
646
633
|
* api.sendCommandToMetaBox(new ApplyZoom(-10));
|
|
647
634
|
* };
|
|
@@ -656,15 +643,20 @@ declare class ApplyZoom extends CommandBase {
|
|
|
656
643
|
}
|
|
657
644
|
|
|
658
645
|
/**
|
|
659
|
-
* Represents a command to Init Showcase for a product on a scene and start a sequence for the product.
|
|
646
|
+
* Represents a command to Init Showcase for a product in a component on a scene and start a sequence for the product.
|
|
660
647
|
* @remarks
|
|
661
|
-
* This class sends a command to the Metabox API to init showcase if the product has a sequence.
|
|
648
|
+
* This class sends a command to the Metabox API to init showcase if the product in a component has a sequence.
|
|
649
|
+
* For check this needs to find a showcase property in current product in a component
|
|
650
|
+
* If this property exist you can send init showcase command
|
|
651
|
+
* @internal Use {@link UniversalConfiguratorProduct.product.showcase}
|
|
652
|
+
* @remarks
|
|
653
|
+
* You can send init showcase command only for root components, otherwise we will ignore this command
|
|
662
654
|
*
|
|
663
655
|
* **Important**: Invoking this command will buffer it until the viewport is ready. Only then will the request be processed.
|
|
664
656
|
*
|
|
665
657
|
* @example
|
|
666
658
|
* import { InitShowcase, Communicator } from '@3dsource/metabox-modular-configurator-api';
|
|
667
|
-
* window.env3DSource.apiReady = (api:Communicator) => {
|
|
659
|
+
* window.env3DSource.apiReady = (api: Communicator) => {
|
|
668
660
|
* api.sendCommandToMetaBox(new InitShowcase('ffea6b5c-3a8a-4f56-9417-e605acb5cca3');
|
|
669
661
|
* };
|
|
670
662
|
*/
|
|
@@ -677,6 +669,15 @@ declare class InitShowcase extends CommandBase {
|
|
|
677
669
|
constructor(productId: string);
|
|
678
670
|
}
|
|
679
671
|
|
|
672
|
+
/**
|
|
673
|
+
* @internal
|
|
674
|
+
* @hidden
|
|
675
|
+
* Represents a command to send Unreal command.
|
|
676
|
+
*/
|
|
677
|
+
declare class UnrealCommand extends CommandBase {
|
|
678
|
+
constructor(payload: object);
|
|
679
|
+
}
|
|
680
|
+
|
|
680
681
|
/**
|
|
681
682
|
* Represents a command to Play Showcase for a product when it already init, and you call pause, for example, before it.
|
|
682
683
|
* @remarks
|
|
@@ -686,7 +687,7 @@ declare class InitShowcase extends CommandBase {
|
|
|
686
687
|
*
|
|
687
688
|
* @example
|
|
688
689
|
* import { PlayShowcase, Communicator } from '@3dsource/metabox-modular-configurator-api';
|
|
689
|
-
* window.env3DSource.apiReady = (api:Communicator) => {
|
|
690
|
+
* window.env3DSource.apiReady = (api: Communicator) => {
|
|
690
691
|
* api.sendCommandToMetaBox(new PlayShowcase());
|
|
691
692
|
* };
|
|
692
693
|
*/
|
|
@@ -709,7 +710,7 @@ declare class PlayShowcase extends CommandBase {
|
|
|
709
710
|
*
|
|
710
711
|
* @example
|
|
711
712
|
* import { PauseShowcase, Communicator } from '@3dsource/metabox-modular-configurator-api';
|
|
712
|
-
* window.env3DSource.apiReady = (api:Communicator) => {
|
|
713
|
+
* window.env3DSource.apiReady = (api: Communicator) => {
|
|
713
714
|
* api.sendCommandToMetaBox(new PauseShowcase());
|
|
714
715
|
* };
|
|
715
716
|
*/
|
|
@@ -732,7 +733,7 @@ declare class PauseShowcase extends CommandBase {
|
|
|
732
733
|
*
|
|
733
734
|
* @example
|
|
734
735
|
* import { StopShowcase, Communicator } from '@3dsource/metabox-modular-configurator-api';
|
|
735
|
-
* window.env3DSource.apiReady = (api:Communicator) => {
|
|
736
|
+
* window.env3DSource.apiReady = (api: Communicator) => {
|
|
736
737
|
* api.sendCommandToMetaBox(new StopShowcase());
|
|
737
738
|
* };
|
|
738
739
|
*/
|
|
@@ -759,7 +760,7 @@ type MimeType = 'image/png' | 'image/jpeg' | 'image/webp';
|
|
|
759
760
|
*
|
|
760
761
|
* @example
|
|
761
762
|
* import { GetScreenshot, Communicator, saveImage } from '@3dsource/metabox-modular-configurator-api';
|
|
762
|
-
* window.env3DSource.apiReady = (api:Communicator) => {
|
|
763
|
+
* window.env3DSource.apiReady = (api: Communicator) => {
|
|
763
764
|
* // Listen for events from to the Metabox API
|
|
764
765
|
* api.addEventListener('screenshot', (data) => {
|
|
765
766
|
* // Process the get screenshot response
|
|
@@ -790,7 +791,7 @@ declare class GetScreenshot extends CommandBase {
|
|
|
790
791
|
* import { SetComponent, Communicator } from '@3dsource/metabox-modular-configurator-api';
|
|
791
792
|
*
|
|
792
793
|
* //...Assume that the integration is already implemented
|
|
793
|
-
* window.env3DSource.apiReady = (api:Communicator) => {
|
|
794
|
+
* window.env3DSource.apiReady = (api: Communicator) => {
|
|
794
795
|
* api.setCommandToMetaBox(new SetComponent(
|
|
795
796
|
* 'ffea6b5c-3a8a-4f56-9417-e605acb5cca3', 'typeId', true
|
|
796
797
|
* ));
|
|
@@ -814,7 +815,7 @@ declare class SetComponent extends CommandBase {
|
|
|
814
815
|
* import { SetComponentMaterial, Communicator } from '@3dsource/metabox-modular-configurator-api';
|
|
815
816
|
*
|
|
816
817
|
* //...Assume that the integration is already implemented
|
|
817
|
-
* window.env3DSource.apiReady = (api:Communicator) => {
|
|
818
|
+
* window.env3DSource.apiReady = (api: Communicator) => {
|
|
818
819
|
* api.sendCommandToMetaBox(new SetComponentMaterial(
|
|
819
820
|
* 'carpaint',
|
|
820
821
|
* 'dd829d6e-9200-47a7-8d5b-af5df89b7e91',
|
|
@@ -841,7 +842,7 @@ declare class SetComponentMaterial extends CommandBase {
|
|
|
841
842
|
* import { SetComponentType, Communicator } from '@3dsource/metabox-modular-configurator-api';
|
|
842
843
|
*
|
|
843
844
|
* //...Assume that the integration is already implemented
|
|
844
|
-
* window.env3DSource.apiReady = (api:Communicator) => {
|
|
845
|
+
* window.env3DSource.apiReady = (api: Communicator) => {
|
|
845
846
|
* api.setCommandToMetaBox(new SetComponentType(
|
|
846
847
|
* 'ffea6b5c-3a8a-4f56-9417-e605acb5cca3'
|
|
847
848
|
* ));
|
|
@@ -863,7 +864,7 @@ declare class SetComponentType extends CommandBase {
|
|
|
863
864
|
* import { SetEnvironment, Communicator } from '@3dsource/metabox-modular-configurator-api';
|
|
864
865
|
*
|
|
865
866
|
* //...Assume that the integration is already implemented
|
|
866
|
-
* window.env3DSource.apiReady = (api:Communicator) => {
|
|
867
|
+
* window.env3DSource.apiReady = (api: Communicator) => {
|
|
867
868
|
* // Change the environment to '55555555-1234-1234-1234-01234567890'
|
|
868
869
|
* api.sendCommandToMetaBox(new SetEnvironment('55555555-1234-1234-1234-01234567890'));
|
|
869
870
|
* };
|
|
@@ -884,7 +885,7 @@ declare class SetEnvironment extends CommandBase {
|
|
|
884
885
|
* import { SetEnvironmentMaterial, Communicator } from '@3dsource/metabox-modular-configurator-api';
|
|
885
886
|
*
|
|
886
887
|
* //...Assume that the integration is already implemented
|
|
887
|
-
* window.env3DSource.apiReady = (api:Communicator) => {
|
|
888
|
+
* window.env3DSource.apiReady = (api: Communicator) => {
|
|
888
889
|
* api.sendCommandToMetaBox(new SetEnvironmentMaterial(
|
|
889
890
|
* 'carpaint',
|
|
890
891
|
* 'dd829d6e-9200-47a7-8d5b-af5df89b7e91',
|
|
@@ -908,7 +909,7 @@ declare class SetEnvironmentMaterial extends CommandBase {
|
|
|
908
909
|
* import { ShowEmbeddedMenu, Communicator } from '@3dsource/metabox-modular-configurator-api';
|
|
909
910
|
*
|
|
910
911
|
* //...Assume that the integration is already implemented
|
|
911
|
-
* window.env3DSource.apiReady = (api:Communicator) => {
|
|
912
|
+
* window.env3DSource.apiReady = (api: Communicator) => {
|
|
912
913
|
* api.setCommandToMetaBox(new ShowEmbeddedMenu(true));
|
|
913
914
|
* };
|
|
914
915
|
*/
|
|
@@ -931,7 +932,7 @@ declare class ShowEmbeddedMenu extends CommandBase {
|
|
|
931
932
|
* import { ShowOverlayInterface, Communicator } from '@3dsource/metabox-modular-configurator-api';
|
|
932
933
|
*
|
|
933
934
|
* //...Assume that the integration is already implemented
|
|
934
|
-
* window.env3DSource.apiReady = (api:Communicator) => {
|
|
935
|
+
* window.env3DSource.apiReady = (api: Communicator) => {
|
|
935
936
|
* api.setCommandToMetaBox(new ShowOverlayInterface(true));
|
|
936
937
|
* };
|
|
937
938
|
*/
|
|
@@ -944,32 +945,5 @@ declare class ShowOverlayInterface extends CommandBase {
|
|
|
944
945
|
constructor(visible: boolean);
|
|
945
946
|
}
|
|
946
947
|
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
* @hidden
|
|
950
|
-
* Represents a command to send Unreal command.
|
|
951
|
-
*/
|
|
952
|
-
declare class UnrealCommand extends CommandBase {
|
|
953
|
-
constructor(payload: MetaBoxCommandPacket);
|
|
954
|
-
}
|
|
955
|
-
|
|
956
|
-
/**
|
|
957
|
-
* @experimental
|
|
958
|
-
* @internal
|
|
959
|
-
* @hidden
|
|
960
|
-
* @remarks
|
|
961
|
-
* Represents a command to watch Unreal callbacks from Unreal engine.
|
|
962
|
-
* Can be useful for custom solutions.
|
|
963
|
-
*/
|
|
964
|
-
declare class WatchCallbacks extends CommandBase {
|
|
965
|
-
/**
|
|
966
|
-
* Creates an instance of WatchCallbacks.
|
|
967
|
-
*
|
|
968
|
-
* @remarks
|
|
969
|
-
* This constructor does not require any parameters.
|
|
970
|
-
*/
|
|
971
|
-
constructor();
|
|
972
|
-
}
|
|
973
|
-
|
|
974
|
-
export { ApplyZoom, CommandBase, Communicator, EventDispatcher, GetPdf, GetScreenshot, InitShowcase, MetaboxModularConfiguratorActions, PauseShowcase, PlayShowcase, ResetCamera, SetComponent, SetComponentMaterial, SetComponentType, SetEnvironment, SetEnvironmentMaterial, ShowEmbeddedMenu, ShowOverlayInterface, StopShowcase, UnrealCommand, WatchCallbacks, fromCommunicatorEvent, getUrlParams, integrateMetabox, saveImage, setUrlParams, sleep };
|
|
975
|
-
export type { ApplicationDeviceTypes, ComponentWithParent, Environment, FromMetaBoxAPIEnvelope, FromMetaBoxApiEvents, FromMetaBoxMessage, FromMetaboxApiAction, FromMetaboxMessagePayloads, Listener, MCAppLoaded, Material, MetaBoxApiEnvelope, MetaProperty, MimeType, ModularConfiguratorApi, ModularConfiguratorComponent, ModularConfiguratorComponentType, ModularConfiguratorConnector, ModularConfiguratorEnvelope, ModularConfiguratorEnvironment, ModularConfiguratorVirtualSocketToConnector, Product, SelectedIds, ShowCaseStatus, Slot, Test, Thumbnail, ToMetaBoxActions, ToMetaBoxMessage, ToMetaBoxMessageEnvelope, ToMetaboxMessagePayload, ToMetaboxMessagePayloads };
|
|
948
|
+
export { ApplyZoom, CommandBase, Communicator, EventDispatcher, GetPdf, GetScreenshot, InitShowcase, MetaboxModularConfiguratorActions, PauseShowcase, PlayShowcase, ResetCamera, SetComponent, SetComponentMaterial, SetComponentType, SetEnvironment, SetEnvironmentMaterial, ShowEmbeddedMenu, ShowOverlayInterface, StopShowcase, UnrealCommand, fromCommunicatorEvent, integrateMetabox, saveImage };
|
|
949
|
+
export type { ApplicationDeviceTypes, ComponentWithParent, Environment, FromMetaBoxAPIEnvelope, FromMetaBoxApiEvents, FromMetaBoxMessage, FromMetaboxApiAction, FromMetaboxMessagePayloads, InitialModularConfigurator, Listener, MCAppLoaded, Material, MetaBoxApiEnvelope, MetaProperty, MimeType, ModularConfiguratorComponent, ModularConfiguratorComponentType, ModularConfiguratorConnector, ModularConfiguratorEnvelope, ModularConfiguratorEnvironment, ModularConfiguratorVirtualSocketToConnector, Product, SelectedIds, ShowCaseStatus, Slot, Test, Thumbnail, ToMetaBoxActions, ToMetaBoxMessage, ToMetaBoxMessageEnvelope, ToMetaboxMessagePayload, ToMetaboxMessagePayloads, VideoResolution };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@3dsource/metabox-modular-configurator-api",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "API for Metabox MODULAR configurator",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"metabox",
|
|
@@ -18,11 +18,8 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"tslib": "^2.8.1"
|
|
20
20
|
},
|
|
21
|
-
"peerDependencies": {
|
|
22
|
-
"@3dsource/angular-unreal-module": ">=0.0.34"
|
|
23
|
-
},
|
|
24
21
|
"engines": {
|
|
25
|
-
"node": ">=20",
|
|
22
|
+
"node": ">=20.19.3",
|
|
26
23
|
"npm": ">9"
|
|
27
24
|
},
|
|
28
25
|
"module": "fesm2022/3dsource-metabox-modular-configurator-api.mjs",
|