@3dsource/angular-unreal-module 0.0.9 → 0.0.12

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.
Files changed (64) hide show
  1. package/fesm2022/3dsource-angular-unreal-module.mjs +1585 -3121
  2. package/fesm2022/3dsource-angular-unreal-module.mjs.map +1 -1
  3. package/lib/components/index.d.ts +0 -2
  4. package/lib/constants/index.d.ts +0 -1
  5. package/lib/constants/unreal.constant.d.ts +3 -0
  6. package/lib/helpers/CommandObserver.d.ts +1 -1
  7. package/lib/helpers/EventWrapper.d.ts +1 -1
  8. package/lib/helpers/prepare-commands.d.ts +1 -1
  9. package/lib/helpers/remove-exile-commands.d.ts +1 -1
  10. package/lib/interfaces/index.d.ts +0 -1
  11. package/lib/interfaces/unreal-internal-signal-events.interface.d.ts +1 -1
  12. package/lib/services/aggregator.service.d.ts +1 -1
  13. package/lib/services/index.d.ts +0 -1
  14. package/lib/services/unreal-communicator.service.d.ts +1 -1
  15. package/lib/store/unreal.actions.d.ts +3 -26
  16. package/lib/store/unreal.effects.d.ts +0 -12
  17. package/lib/store/unreal.feature.d.ts +2 -5
  18. package/lib/store/unreal.reducer.d.ts +2 -6
  19. package/lib/store/unreal.selectors.d.ts +2 -8
  20. package/package.json +1 -4
  21. package/lib/components/pdf/components/generator/pdf-base-page.component.d.ts +0 -20
  22. package/lib/components/pdf/components/generator/pdf-generator.component.d.ts +0 -26
  23. package/lib/components/pdf/components/templates/general/header/header-pdf.component.d.ts +0 -8
  24. package/lib/components/pdf/components/templates/general/image-pdf/image-pdf.component.d.ts +0 -7
  25. package/lib/components/pdf/components/templates/general/intro-pdf/intro-pdf.component.d.ts +0 -6
  26. package/lib/components/pdf/components/templates/general/materials-page-pdf/materials-page-pdf.component.d.ts +0 -6
  27. package/lib/components/pdf/components/templates/general/materials-pdf/materials-pdf.component.d.ts +0 -8
  28. package/lib/components/pdf/components/templates/general/page-number/page-number.component.d.ts +0 -8
  29. package/lib/components/pdf/constants/index.d.ts +0 -1
  30. package/lib/components/pdf/constants/pdf.d.ts +0 -5
  31. package/lib/components/pdf/container/pdf.component.d.ts +0 -13
  32. package/lib/components/pdf/directives/insertion.directive.d.ts +0 -7
  33. package/lib/components/pdf/helpers/format-date.d.ts +0 -1
  34. package/lib/components/pdf/helpers/generate-pdf-schema.d.ts +0 -2
  35. package/lib/components/pdf/helpers/get-pdf-url.d.ts +0 -1
  36. package/lib/components/pdf/helpers/index.d.ts +0 -3
  37. package/lib/components/pdf/index.d.ts +0 -4
  38. package/lib/components/pdf/interfaces/index.d.ts +0 -1
  39. package/lib/components/pdf/interfaces/pdf.interface.d.ts +0 -53
  40. package/lib/components/pdf/store/pdf.component.store.d.ts +0 -44
  41. package/lib/components/show-case/components/source-slider/source-slider.component.d.ts +0 -42
  42. package/lib/components/show-case/components/source-slider/user-interact.directive.d.ts +0 -33
  43. package/lib/components/show-case/constants/icons/fullscreen-out.d.ts +0 -2
  44. package/lib/components/show-case/constants/icons/fullscreen.d.ts +0 -2
  45. package/lib/components/show-case/constants/icons/pause-circle.d.ts +0 -2
  46. package/lib/components/show-case/constants/icons/pause-icon.d.ts +0 -2
  47. package/lib/components/show-case/constants/icons/play-icon.d.ts +0 -2
  48. package/lib/components/show-case/constants/icons/player-boomerang.d.ts +0 -2
  49. package/lib/components/show-case/constants/icons/player-laps.d.ts +0 -2
  50. package/lib/components/show-case/constants/icons/player-next.d.ts +0 -2
  51. package/lib/components/show-case/constants/icons/player-prev.d.ts +0 -2
  52. package/lib/components/show-case/constants/index.d.ts +0 -1
  53. package/lib/components/show-case/constants/initial-config.d.ts +0 -6
  54. package/lib/components/show-case/constants/show-case.icons.d.ts +0 -2
  55. package/lib/components/show-case/container/show-case.component.d.ts +0 -98
  56. package/lib/components/show-case/helpers/index.d.ts +0 -1
  57. package/lib/components/show-case/helpers/mapOnInitSequenceData.d.ts +0 -3
  58. package/lib/components/show-case/index.d.ts +0 -4
  59. package/lib/components/show-case/interfaces/index.d.ts +0 -1
  60. package/lib/components/show-case/interfaces/showcase-status.d.ts +0 -8
  61. package/lib/components/show-case/store/show-case.component.interface.d.ts +0 -32
  62. package/lib/components/show-case/store/show-case.component.store.d.ts +0 -37
  63. package/lib/constants/timeout.constant.d.ts +0 -6
  64. package/lib/services/image-capture.service.d.ts +0 -30
@@ -1,33 +0,0 @@
1
- import { AfterViewInit } from '@angular/core';
2
- import { Subject } from 'rxjs';
3
- import type { Coords } from '@3dsource/utils';
4
- import * as i0 from "@angular/core";
5
- export declare class UserInteractDirective implements AfterViewInit {
6
- isFullscreen: import("@angular/core").InputSignal<boolean>;
7
- isFullscreenActive: import("rxjs").Observable<boolean>;
8
- userInteract: Subject<Coords & {
9
- activate: boolean;
10
- pressed: boolean;
11
- hovering: boolean;
12
- }>;
13
- private element;
14
- private floatY;
15
- private floatX;
16
- private pressed;
17
- private bounds;
18
- private hovering;
19
- private ref;
20
- private destroyRef;
21
- ngAfterViewInit(): void;
22
- private onMouseDown;
23
- private onTouchStart;
24
- private onMouseOut;
25
- private onDocumentTouchMove;
26
- private onDocumentMouseMove;
27
- private setFloats;
28
- private dispatch;
29
- private onDocumentMouseUp;
30
- private onResize;
31
- static ɵfac: i0.ɵɵFactoryDeclaration<UserInteractDirective, never>;
32
- static ɵdir: i0.ɵɵDirectiveDeclaration<UserInteractDirective, "[appUserInteract]", never, { "isFullscreen": { "alias": "isFullscreen"; "required": true; "isSignal": true; }; }, { "userInteract": "userInteract"; }, never, never, true, never>;
33
- }
@@ -1,2 +0,0 @@
1
- import type { SourceIcon } from '@source/ui-sdk/source-icon';
2
- export declare const siShowcaseFullscreenOut: SourceIcon;
@@ -1,2 +0,0 @@
1
- import type { SourceIcon } from '@source/ui-sdk/source-icon';
2
- export declare const siShowcaseFullscreen: SourceIcon;
@@ -1,2 +0,0 @@
1
- import type { SourceIcon } from '@source/ui-sdk/source-icon';
2
- export declare const siShowcasePauseCircle: SourceIcon;
@@ -1,2 +0,0 @@
1
- import type { SourceIcon } from '@source/ui-sdk/source-icon';
2
- export declare const siShowcasePause: SourceIcon;
@@ -1,2 +0,0 @@
1
- import type { SourceIcon } from '@source/ui-sdk/source-icon';
2
- export declare const siShowcasePlay: SourceIcon;
@@ -1,2 +0,0 @@
1
- import type { SourceIcon } from '@source/ui-sdk/source-icon';
2
- export declare const siShowcaseBoomerang: SourceIcon;
@@ -1,2 +0,0 @@
1
- import type { SourceIcon } from '@source/ui-sdk/source-icon';
2
- export declare const siShowcaseLaps: SourceIcon;
@@ -1,2 +0,0 @@
1
- import type { SourceIcon } from '@source/ui-sdk/source-icon';
2
- export declare const siShowcaseNext: SourceIcon;
@@ -1,2 +0,0 @@
1
- import type { SourceIcon } from '@source/ui-sdk/source-icon';
2
- export declare const siShowcasePrev: SourceIcon;
@@ -1 +0,0 @@
1
- export * from './initial-config';
@@ -1,6 +0,0 @@
1
- import { ESequenceLoopBehavior } from '../../../interfaces';
2
- export declare const INIT_SHOWCASE_PARAMS: {
3
- playRate: number;
4
- timeResponseChangeCallBack: number;
5
- loopBehavior: ESequenceLoopBehavior;
6
- };
@@ -1,2 +0,0 @@
1
- export declare const KEY_DOWN_VALUES: string[];
2
- export declare const showCaseIcons: import("@source/ui-sdk/source-icon").SourceIcon[];
@@ -1,98 +0,0 @@
1
- import type { Observable } from 'rxjs';
2
- import { BehaviorSubject, Subject } from 'rxjs';
3
- import { ElementRef, OnInit } from '@angular/core';
4
- import { ESequenceLoopBehavior } from '../../../interfaces';
5
- import { SourceTooltipPosition } from '@source/ui-sdk/source-tooltip';
6
- import type { SectionEntity } from '../store/show-case.component.interface';
7
- import { ProductShowcase } from '../interfaces/showcase-status';
8
- import * as i0 from "@angular/core";
9
- export declare class ShowCaseComponent implements OnInit {
10
- deviceType: import("@angular/core").InputSignal<"deviceTypeAuto" | "deviceTypeMobile" | "deviceTypeDesktop">;
11
- isLandscapeOrientation: import("@angular/core").InputSignal<boolean>;
12
- isNarrowScreen: import("@angular/core").InputSignal<boolean>;
13
- activeProduct: import("@angular/core").InputSignal<any>;
14
- activeProductWithSlotIds: import("@angular/core").InputSignal<{
15
- activeProduct: ProductShowcase | null;
16
- slotsIds: Record<string, string>;
17
- } | null>;
18
- isFullscreen: import("@angular/core").InputSignal<boolean>;
19
- fullscreenChanged: import("@angular/core").OutputEmitterRef<boolean>;
20
- activeProduct$: Observable<any>;
21
- activeProductWithSlotIds$: Observable<{
22
- activeProduct: ProductShowcase | null;
23
- slotsIds: Record<string, string>;
24
- }>;
25
- private readonly maxAmountImagesInCache;
26
- private readonly maxTimeToKeepInCache;
27
- static imageRequestsMap: Map<string, {
28
- time: number;
29
- request$: Observable<string | null>;
30
- }>;
31
- private showcaseRef;
32
- private controlsHideDelayTime;
33
- private debounceTime;
34
- private timeChangeInSeconds;
35
- leftZone: ElementRef<HTMLDivElement>;
36
- rightZone: ElementRef<HTMLDivElement>;
37
- set showcase(content: ElementRef<HTMLInputElement>);
38
- private taskRunner;
39
- private store;
40
- private destroyRef;
41
- private imageCapture;
42
- private componentStore;
43
- private commandsSender;
44
- private sourceIconsRegistryService;
45
- SourceTooltipPosition: typeof SourceTooltipPosition;
46
- isVisibleControls$: BehaviorSubject<boolean>;
47
- touchZoneEvent$: Subject<number>;
48
- touchHideShowEvent$: Subject<void>;
49
- isMobileTypeControls: import("@angular/core").Signal<boolean>;
50
- sections$: Observable<import("../store/show-case.component.interface").SectionEntities>;
51
- sections: import("@angular/core").Signal<import("../store/show-case.component.interface").SectionEntities | undefined>;
52
- hideMobileControlsWhenDrag: import("@angular/core").WritableSignal<boolean>;
53
- mouseCurrentSection: import("@angular/core").WritableSignal<SectionEntity | null>;
54
- showcaseIsPlaying: import("@angular/core").Signal<boolean | undefined>;
55
- showcaseIsInit: import("@angular/core").Signal<boolean | undefined>;
56
- showcaseIsPauseStatus: import("@angular/core").Signal<boolean | undefined>;
57
- isPingPong: import("@angular/core").Signal<boolean | undefined>;
58
- isLoop: import("@angular/core").Signal<boolean | undefined>;
59
- currentSectionId: import("@angular/core").Signal<number | undefined>;
60
- currentSection: import("@angular/core").Signal<SectionEntity | null | undefined>;
61
- playRate: import("@angular/core").Signal<number | undefined>;
62
- loopBehavior: import("@angular/core").Signal<ESequenceLoopBehavior | undefined>;
63
- totalDuration: import("@angular/core").Signal<number | undefined>;
64
- currentGlobalTime: import("@angular/core").Signal<number | undefined>;
65
- isLowBandwidth$: Observable<boolean>;
66
- highBandwidthTrigger$: Observable<false>;
67
- isLowBandwidth: import("@angular/core").Signal<boolean | undefined>;
68
- lbmImage: import("@angular/core").WritableSignal<string | null>;
69
- private onChangeSequenceInLbm$;
70
- private forceStopLbmSequence$;
71
- private pauseTrigger$;
72
- private playTrigger$;
73
- private stopTrigger$;
74
- private stopLbmSequence$;
75
- ngOnInit(): void;
76
- jumpToLbmSection(startSectionIndex: number): void;
77
- private preCacheSection;
78
- private createSectionInterval;
79
- private getSectionImage;
80
- private cleanupImageCache;
81
- initZoneTouchEvent(): void;
82
- touchStartAction(event: TouchEvent, offset: number): void;
83
- touchHideShowAction(event: TouchEvent): void;
84
- mapTimeUsingPlayRate(time: number, playRate: number, totalDuration: number): number;
85
- onChangeValue(time: number): void;
86
- changePingPong(event: Event): void;
87
- changeLoop(event: Event): void;
88
- changeFullscreenMode(event: Event): void;
89
- toggleShowCase(event: MouseEvent | KeyboardEvent | TouchEvent): void;
90
- pauseSequence(): void;
91
- playSequence(): void;
92
- jumpToSection(event: Event, offset: number): void;
93
- dragToSequence(time: number): void;
94
- private convertTimeToSectionId;
95
- private initDesktopEvents;
96
- static ɵfac: i0.ɵɵFactoryDeclaration<ShowCaseComponent, never>;
97
- static ɵcmp: i0.ɵɵComponentDeclaration<ShowCaseComponent, "app-show-case", never, { "deviceType": { "alias": "deviceType"; "required": false; "isSignal": true; }; "isLandscapeOrientation": { "alias": "isLandscapeOrientation"; "required": false; "isSignal": true; }; "isNarrowScreen": { "alias": "isNarrowScreen"; "required": false; "isSignal": true; }; "activeProduct": { "alias": "activeProduct"; "required": false; "isSignal": true; }; "activeProductWithSlotIds": { "alias": "activeProductWithSlotIds"; "required": false; "isSignal": true; }; "isFullscreen": { "alias": "isFullscreen"; "required": false; "isSignal": true; }; }, { "fullscreenChanged": "fullscreenChanged"; }, never, never, true, never>;
98
- }
@@ -1 +0,0 @@
1
- export * from './mapOnInitSequenceData';
@@ -1,3 +0,0 @@
1
- import type { SectionPayloadOnInit, SectionsPayloadInit } from '../store/show-case.component.interface';
2
- import type { ProductShowcase } from '../interfaces/showcase-status';
3
- export declare const mapOnInitSequenceData: (data: SectionPayloadOnInit, lbm: boolean, product: ProductShowcase) => SectionsPayloadInit;
@@ -1,4 +0,0 @@
1
- export * from './container/show-case.component';
2
- export * from './interfaces';
3
- export * from './helpers';
4
- export * from './constants';
@@ -1 +0,0 @@
1
- export * from './showcase-status';
@@ -1,8 +0,0 @@
1
- export declare const ShowCaseStatus: {
2
- readonly INIT: "init";
3
- readonly PLAY: "play";
4
- readonly PAUSE: "pause";
5
- readonly STOP: "stop";
6
- };
7
- export type ShowCaseStatusValues = (typeof ShowCaseStatus)[keyof typeof ShowCaseStatus];
8
- export type ProductShowcase = any;
@@ -1,32 +0,0 @@
1
- import type { ESequenceLoopBehavior } from '../../../interfaces';
2
- import { type FSequenceSection } from '../../../interfaces';
3
- export interface SettingSequence {
4
- loopBehavior: ESequenceLoopBehavior;
5
- playRate: number;
6
- reverse?: boolean;
7
- }
8
- export type SectionEntityOnInit = FSequenceSection;
9
- export interface SectionEntity extends SectionEntityOnInit {
10
- segmentWidth: number;
11
- segmentDuration: number;
12
- segmentMouseMoveTime?: number;
13
- lbmTime?: number;
14
- sectionName: string;
15
- }
16
- export type SectionEntities = SectionEntity[];
17
- export interface SectionPayloadOnInit {
18
- sections: SectionEntityOnInit[];
19
- playRate: number;
20
- }
21
- export interface SectionsPayloadInit {
22
- sections: SectionEntities;
23
- playRate: number;
24
- }
25
- export interface OnChangeSequenceData extends SequenceData {
26
- direction: number;
27
- }
28
- export interface SequenceData {
29
- id: number;
30
- time: number;
31
- sectionName: string;
32
- }
@@ -1,37 +0,0 @@
1
- import type { OnChangeSequenceData, SectionEntities, SectionEntity, SectionsPayloadInit, SequenceData, SettingSequence } from './show-case.component.interface';
2
- import { ESequenceLoopBehavior } from '../../../interfaces';
3
- import { ImmerComponentStore } from 'ngrx-immer/component-store';
4
- import { Actions } from '@ngrx/effects';
5
- import { Observable } from 'rxjs';
6
- import * as i0 from "@angular/core";
7
- interface ShowcaseComponentStoreProps extends SettingSequence {
8
- sectionEntity: SectionEntity | null;
9
- sectionEntities: SectionEntities | null;
10
- totalCountSection: number;
11
- currentSectionId: number;
12
- currentSectionTime: number;
13
- currentGlobalTime: number;
14
- totalDuration: number;
15
- direction: number;
16
- timeResponseChangeCallBack: number;
17
- sequenceName: string;
18
- }
19
- export declare class ShowCaseComponentStore extends ImmerComponentStore<ShowcaseComponentStoreProps> {
20
- #private;
21
- actions$: Actions<any>;
22
- constructor();
23
- initSequence: (observableOrValue: SectionsPayloadInit | Observable<SectionsPayloadInit>) => import("rxjs").Subscription;
24
- changeSequence: (observableOrValue: OnChangeSequenceData | Observable<OnChangeSequenceData>) => import("rxjs").Subscription;
25
- changeLoopBehavior: (observableOrValue: ESequenceLoopBehavior | Observable<ESequenceLoopBehavior>) => import("rxjs").Subscription;
26
- finishedSequenceSuccess: (observableOrValue: SequenceData | Observable<SequenceData>) => import("rxjs").Subscription;
27
- selectIsPingPongSection$: Observable<boolean>;
28
- selectIsLoopSection$: Observable<boolean>;
29
- selectLoopBehavior$: Observable<ESequenceLoopBehavior>;
30
- currentSection$: Observable<SectionEntity | null>;
31
- finishedSequence$: (observableOrValue: SequenceData | Observable<SequenceData>) => import("rxjs").Subscription;
32
- playShowCaseEffect$: (observableOrValue?: void | Observable<void> | undefined) => import("rxjs").Subscription;
33
- pauseShowCaseEffect$: (observableOrValue?: void | Observable<void> | undefined) => import("rxjs").Subscription;
34
- static ɵfac: i0.ɵɵFactoryDeclaration<ShowCaseComponentStore, never>;
35
- static ɵprov: i0.ɵɵInjectableDeclaration<ShowCaseComponentStore>;
36
- }
37
- export {};
@@ -1,6 +0,0 @@
1
- export declare const DEFAULT_TIMEOUT_PERIOD = 15;
2
- export declare const DEFAULT_WARN_TIMEOUT = 120;
3
- export declare const DEFAULT_SHOWCASE_TIMEOUT = 120;
4
- export declare const DEFAULT_PDF_TIMEOUT = 300;
5
- export declare const DEFAULT_RENDER_SPINNER_TIMEOUT: number;
6
- export declare const DATA_CHANNEL_CONNECTION_TIMEOUT = 5000;
@@ -1,30 +0,0 @@
1
- import type { FVector2DJson } from '../interfaces';
2
- import type { Observable } from 'rxjs';
3
- import type { ImageOutputValues } from '@3dsource/utils';
4
- import type { StreamResolutionProps } from '../interfaces/stream-resolution.interface';
5
- import * as i0 from "@angular/core";
6
- interface CameraEntity {
7
- id: string;
8
- label: string;
9
- order: number;
10
- }
11
- export declare class ImageCaptureService {
12
- #private;
13
- getCurrentCamera(imageOutput: ImageOutputValues, lockViewPortWithVideoFreeze?: boolean, resolution?: FVector2DJson): Observable<string | null>;
14
- captureCameras(imageOutput: ImageOutputValues, cameraList: CameraEntity[]): Observable<string[]>;
15
- /**
16
- * Get freeze-frame image from Unreal
17
- * @param totalImages - total images in queue will be shown in progress bar
18
- * @param index
19
- */
20
- getFreezeImage(index: number, totalImages: number): Observable<string | null>;
21
- /**
22
- * Get freeze-frame image from Unreal;
23
- * No progress bar will be shown
24
- */
25
- getFreezeImage(): Observable<string | null>;
26
- getVideoSnapshot(imageOutput?: ImageOutputValues, resolution?: StreamResolutionProps): string | null;
27
- static ɵfac: i0.ɵɵFactoryDeclaration<ImageCaptureService, never>;
28
- static ɵprov: i0.ɵɵInjectableDeclaration<ImageCaptureService>;
29
- }
30
- export {};