phoenix-ui-components 2.14.1 → 2.16.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.
Files changed (147) hide show
  1. package/README.md +2 -2
  2. package/dist/README.md +2 -2
  3. package/dist/components/file-explorer/file-explorer.component.d.ts +9 -3
  4. package/dist/components/loader/loader.component.d.ts +1 -1
  5. package/dist/components/phoenix-menu/config/config-slider/config-slider.component.d.ts +1 -1
  6. package/dist/components/phoenix-menu/phoenix-menu-item/phoenix-menu-item.component.d.ts +1 -1
  7. package/dist/components/phoenix-menu/phoenix-menu.component.d.ts +1 -1
  8. package/dist/components/phoenix-ui.module.d.ts +62 -59
  9. package/dist/components/ui-menu/animate-camera/animate-camera.component.d.ts +1 -1
  10. package/dist/components/ui-menu/collections-info/collections-info-overlay/collections-info-overlay.component.d.ts +3 -1
  11. package/dist/components/ui-menu/cycle-events/cycle-events.component.d.ts +7 -2
  12. package/dist/components/ui-menu/event-data-explorer/event-data-explorer-dialog/event-data-explorer-dialog.component.d.ts +7 -8
  13. package/dist/components/ui-menu/event-data-explorer/event-data-explorer.component.d.ts +1 -1
  14. package/dist/components/ui-menu/experiment-info/experiment-info.component.d.ts +1 -1
  15. package/dist/components/ui-menu/geometry-browser/geometry-browser-overlay/geometry-browser-overlay.component.d.ts +22 -0
  16. package/dist/components/ui-menu/geometry-browser/geometry-browser.component.d.ts +15 -0
  17. package/dist/components/ui-menu/index.d.ts +3 -0
  18. package/dist/components/ui-menu/info-panel/info-panel-overlay/info-panel-overlay.component.d.ts +1 -1
  19. package/dist/components/ui-menu/io-options/io-options-dialog/io-options-dialog.component.d.ts +1 -1
  20. package/dist/components/ui-menu/io-options/io-options.component.d.ts +1 -1
  21. package/dist/components/ui-menu/make-picture/make-picture.component.d.ts +3 -0
  22. package/dist/components/ui-menu/menu-toggle/menu-toggle.component.d.ts +1 -1
  23. package/dist/components/ui-menu/object-selection/object-selection-overlay/object-selection-overlay.component.d.ts +1 -1
  24. package/dist/components/ui-menu/overlay/overlay.component.d.ts +1 -1
  25. package/dist/components/ui-menu/overlay-view/overlay-view-window/overlay-view-window.component.d.ts +1 -1
  26. package/dist/components/ui-menu/tree-menu/tree-menu-item/tree-menu-item.component.d.ts +1 -1
  27. package/dist/components/ui-menu/ui-menu.component.d.ts +1 -1
  28. package/dist/components/ui-menu/view-options/cartesian-grid-config/cartesian-grid-config.component.d.ts +51 -0
  29. package/dist/components/ui-menu/view-options/view-options.component.d.ts +21 -4
  30. package/dist/esm2022/components/embed-menu/embed-menu.component.mjs +22 -0
  31. package/dist/esm2022/components/embed-menu/experiment-link/experiment-link.component.mjs +27 -0
  32. package/dist/esm2022/components/file-explorer/file-explorer.component.mjs +109 -0
  33. package/dist/esm2022/components/loader/loader.component.mjs +71 -0
  34. package/dist/esm2022/components/nav/nav.component.mjs +19 -0
  35. package/dist/esm2022/components/phoenix-menu/config/config-slider/config-slider.component.mjs +81 -0
  36. package/dist/esm2022/components/phoenix-menu/phoenix-menu-item/phoenix-menu-item.component.mjs +304 -0
  37. package/dist/esm2022/components/phoenix-menu/phoenix-menu.component.mjs +23 -0
  38. package/dist/esm2022/components/phoenix-ui.module.mjs +254 -0
  39. package/dist/esm2022/components/ring-loader/ring-loader.component.mjs +16 -0
  40. package/dist/esm2022/components/ui-menu/animate-camera/animate-camera.component.mjs +120 -0
  41. package/dist/esm2022/components/ui-menu/animate-event/animate-event.component.mjs +33 -0
  42. package/dist/esm2022/components/ui-menu/ar-toggle/ar-toggle.component.mjs +83 -0
  43. package/dist/esm2022/components/ui-menu/auto-rotate/auto-rotate.component.mjs +29 -0
  44. package/dist/esm2022/components/ui-menu/collections-info/collections-info-overlay/collections-info-overlay.component.mjs +273 -0
  45. package/dist/esm2022/components/ui-menu/collections-info/collections-info.component.mjs +44 -0
  46. package/dist/esm2022/components/ui-menu/cycle-events/cycle-events.component.mjs +90 -0
  47. package/dist/esm2022/components/ui-menu/dark-theme/dark-theme.component.mjs +32 -0
  48. package/dist/esm2022/components/ui-menu/event-data-explorer/event-data-explorer-dialog/event-data-explorer-dialog.component.mjs +128 -0
  49. package/dist/esm2022/components/ui-menu/event-data-explorer/event-data-explorer.component.mjs +35 -0
  50. package/dist/esm2022/components/ui-menu/event-selector/event-selector.component.mjs +54 -0
  51. package/dist/esm2022/components/ui-menu/experiment-info/experiment-info.component.mjs +100 -0
  52. package/dist/esm2022/components/ui-menu/geometry-browser/geometry-browser-overlay/geometry-browser-overlay.component.mjs +172 -0
  53. package/dist/esm2022/components/ui-menu/geometry-browser/geometry-browser.component.mjs +44 -0
  54. package/dist/esm2022/components/ui-menu/index.mjs +40 -0
  55. package/dist/esm2022/components/ui-menu/info-panel/info-panel-overlay/info-panel-overlay.component.mjs +69 -0
  56. package/dist/esm2022/components/ui-menu/info-panel/info-panel.component.mjs +59 -0
  57. package/dist/esm2022/components/ui-menu/io-options/io-options-dialog/io-options-dialog.component.mjs +294 -0
  58. package/dist/esm2022/components/ui-menu/io-options/io-options.component.mjs +36 -0
  59. package/dist/esm2022/components/ui-menu/main-view-toggle/main-view-toggle.component.mjs +32 -0
  60. package/dist/esm2022/components/ui-menu/make-picture/make-picture.component.mjs +109 -0
  61. package/dist/esm2022/components/ui-menu/menu-toggle/menu-toggle.component.mjs +40 -0
  62. package/dist/esm2022/components/ui-menu/object-clipping/object-clipping.component.mjs +72 -0
  63. package/dist/esm2022/components/ui-menu/object-selection/object-selection-overlay/object-selection-overlay.component.mjs +59 -0
  64. package/dist/esm2022/components/ui-menu/object-selection/object-selection.component.mjs +46 -0
  65. package/dist/esm2022/components/ui-menu/overlay/overlay.component.mjs +197 -0
  66. package/dist/esm2022/components/ui-menu/overlay-view/overlay-view-window/overlay-view-window.component.mjs +83 -0
  67. package/dist/esm2022/components/ui-menu/overlay-view/overlay-view.component.mjs +41 -0
  68. package/dist/esm2022/components/ui-menu/performance-toggle/performance-toggle.component.mjs +29 -0
  69. package/dist/esm2022/components/ui-menu/share-link/share-link-dialog/share-link-dialog.component.mjs +165 -0
  70. package/dist/esm2022/components/ui-menu/share-link/share-link.component.mjs +28 -0
  71. package/dist/esm2022/components/ui-menu/ss-mode/ss-mode.component.mjs +46 -0
  72. package/dist/esm2022/components/ui-menu/tree-menu/tree-menu-item/tree-menu-item.component.mjs +94 -0
  73. package/dist/esm2022/components/ui-menu/tree-menu/tree-menu.component.mjs +78 -0
  74. package/dist/esm2022/components/ui-menu/ui-menu-wrapper/ui-menu-wrapper.component.mjs +34 -0
  75. package/dist/esm2022/components/ui-menu/ui-menu.component.mjs +54 -0
  76. package/dist/esm2022/components/ui-menu/view-options/cartesian-grid-config/cartesian-grid-config.component.mjs +247 -0
  77. package/dist/esm2022/components/ui-menu/view-options/view-options.component.mjs +170 -0
  78. package/dist/esm2022/components/ui-menu/vr-toggle/vr-toggle.component.mjs +52 -0
  79. package/dist/esm2022/components/ui-menu/zoom-controls/zoom-controls.component.mjs +79 -0
  80. package/dist/esm2022/services/error-message-service.mjs +30 -0
  81. package/dist/{esm2020 → esm2022}/services/event-display.service.mjs +5 -5
  82. package/dist/esm2022/services/extras/attribute.pipe.mjs +33 -0
  83. package/dist/{esm2020 → esm2022}/services/extras/event-data-import.mjs +5 -1
  84. package/dist/esm2022/services/file-loader.service.mjs +86 -0
  85. package/dist/esm2022/services/global-error-handler.mjs +30 -0
  86. package/dist/fesm2022/phoenix-ui-components.mjs +4302 -0
  87. package/dist/fesm2022/phoenix-ui-components.mjs.map +1 -0
  88. package/dist/services/file-loader.service.d.ts +17 -0
  89. package/package.json +27 -16
  90. package/dist/esm2020/components/embed-menu/embed-menu.component.mjs +0 -21
  91. package/dist/esm2020/components/embed-menu/experiment-link/experiment-link.component.mjs +0 -25
  92. package/dist/esm2020/components/file-explorer/file-explorer.component.mjs +0 -97
  93. package/dist/esm2020/components/loader/loader.component.mjs +0 -68
  94. package/dist/esm2020/components/nav/nav.component.mjs +0 -18
  95. package/dist/esm2020/components/phoenix-menu/config/config-slider/config-slider.component.mjs +0 -82
  96. package/dist/esm2020/components/phoenix-menu/phoenix-menu-item/phoenix-menu-item.component.mjs +0 -309
  97. package/dist/esm2020/components/phoenix-menu/phoenix-menu.component.mjs +0 -21
  98. package/dist/esm2020/components/phoenix-ui.module.mjs +0 -254
  99. package/dist/esm2020/components/ring-loader/ring-loader.component.mjs +0 -15
  100. package/dist/esm2020/components/ui-menu/animate-camera/animate-camera.component.mjs +0 -117
  101. package/dist/esm2020/components/ui-menu/animate-event/animate-event.component.mjs +0 -31
  102. package/dist/esm2020/components/ui-menu/ar-toggle/ar-toggle.component.mjs +0 -81
  103. package/dist/esm2020/components/ui-menu/auto-rotate/auto-rotate.component.mjs +0 -27
  104. package/dist/esm2020/components/ui-menu/collections-info/collections-info-overlay/collections-info-overlay.component.mjs +0 -261
  105. package/dist/esm2020/components/ui-menu/collections-info/collections-info.component.mjs +0 -38
  106. package/dist/esm2020/components/ui-menu/cycle-events/cycle-events.component.mjs +0 -42
  107. package/dist/esm2020/components/ui-menu/dark-theme/dark-theme.component.mjs +0 -30
  108. package/dist/esm2020/components/ui-menu/event-data-explorer/event-data-explorer-dialog/event-data-explorer-dialog.component.mjs +0 -176
  109. package/dist/esm2020/components/ui-menu/event-data-explorer/event-data-explorer.component.mjs +0 -32
  110. package/dist/esm2020/components/ui-menu/event-selector/event-selector.component.mjs +0 -50
  111. package/dist/esm2020/components/ui-menu/experiment-info/experiment-info.component.mjs +0 -96
  112. package/dist/esm2020/components/ui-menu/index.mjs +0 -37
  113. package/dist/esm2020/components/ui-menu/info-panel/info-panel-overlay/info-panel-overlay.component.mjs +0 -66
  114. package/dist/esm2020/components/ui-menu/info-panel/info-panel.component.mjs +0 -55
  115. package/dist/esm2020/components/ui-menu/io-options/io-options-dialog/io-options-dialog.component.mjs +0 -290
  116. package/dist/esm2020/components/ui-menu/io-options/io-options.component.mjs +0 -34
  117. package/dist/esm2020/components/ui-menu/main-view-toggle/main-view-toggle.component.mjs +0 -30
  118. package/dist/esm2020/components/ui-menu/make-picture/make-picture.component.mjs +0 -88
  119. package/dist/esm2020/components/ui-menu/menu-toggle/menu-toggle.component.mjs +0 -38
  120. package/dist/esm2020/components/ui-menu/object-clipping/object-clipping.component.mjs +0 -67
  121. package/dist/esm2020/components/ui-menu/object-selection/object-selection-overlay/object-selection-overlay.component.mjs +0 -55
  122. package/dist/esm2020/components/ui-menu/object-selection/object-selection.component.mjs +0 -42
  123. package/dist/esm2020/components/ui-menu/overlay/overlay.component.mjs +0 -189
  124. package/dist/esm2020/components/ui-menu/overlay-view/overlay-view-window/overlay-view-window.component.mjs +0 -79
  125. package/dist/esm2020/components/ui-menu/overlay-view/overlay-view.component.mjs +0 -38
  126. package/dist/esm2020/components/ui-menu/performance-toggle/performance-toggle.component.mjs +0 -27
  127. package/dist/esm2020/components/ui-menu/share-link/share-link-dialog/share-link-dialog.component.mjs +0 -158
  128. package/dist/esm2020/components/ui-menu/share-link/share-link.component.mjs +0 -26
  129. package/dist/esm2020/components/ui-menu/ss-mode/ss-mode.component.mjs +0 -47
  130. package/dist/esm2020/components/ui-menu/tree-menu/tree-menu-item/tree-menu-item.component.mjs +0 -90
  131. package/dist/esm2020/components/ui-menu/tree-menu/tree-menu.component.mjs +0 -78
  132. package/dist/esm2020/components/ui-menu/ui-menu-wrapper/ui-menu-wrapper.component.mjs +0 -35
  133. package/dist/esm2020/components/ui-menu/ui-menu.component.mjs +0 -54
  134. package/dist/esm2020/components/ui-menu/view-options/view-options.component.mjs +0 -81
  135. package/dist/esm2020/components/ui-menu/vr-toggle/vr-toggle.component.mjs +0 -50
  136. package/dist/esm2020/components/ui-menu/zoom-controls/zoom-controls.component.mjs +0 -73
  137. package/dist/esm2020/services/error-message-service.mjs +0 -32
  138. package/dist/esm2020/services/extras/attribute.pipe.mjs +0 -33
  139. package/dist/esm2020/services/global-error-handler.mjs +0 -29
  140. package/dist/fesm2015/phoenix-ui-components.mjs +0 -3994
  141. package/dist/fesm2015/phoenix-ui-components.mjs.map +0 -1
  142. package/dist/fesm2020/phoenix-ui-components.mjs +0 -3552
  143. package/dist/fesm2020/phoenix-ui-components.mjs.map +0 -1
  144. /package/dist/{esm2020 → esm2022}/components/phoenix-menu/index.mjs +0 -0
  145. /package/dist/{esm2020 → esm2022}/phoenix-ui-components.mjs +0 -0
  146. /package/dist/{esm2020 → esm2022}/public_api.mjs +0 -0
  147. /package/dist/{esm2020 → esm2022}/services/index.mjs +0 -0
@@ -1,3994 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { Component, EventEmitter, Input, Output, ViewEncapsulation, ViewChild, Injectable, Pipe, ViewChildren, Inject, ErrorHandler, NgModule } from '@angular/core';
3
- import * as i1 from '@angular/router';
4
- import { RouterModule } from '@angular/router';
5
- import * as i2 from '@angular/common';
6
- import { CommonModule } from '@angular/common';
7
- import * as i2$1 from '@angular/material/slider';
8
- import { MatSliderModule } from '@angular/material/slider';
9
- import * as i2$2 from '@angular/material/button';
10
- import { MatButtonModule } from '@angular/material/button';
11
- import * as i3 from '@angular/forms';
12
- import { FormsModule } from '@angular/forms';
13
- import * as i4 from '@angular/material/slide-toggle';
14
- import { MatSlideToggleModule } from '@angular/material/slide-toggle';
15
- import * as i4$1 from '@angular/material/checkbox';
16
- import { MatCheckboxModule } from '@angular/material/checkbox';
17
- import { EventDisplay, SceneManager, PrettySymbols, Edm4hepJsonLoader, JiveXMLLoader, CMSLoader, readZipFile, VRManager, XRSessionType, ARManager, phoenixURLOptions, ActiveVariable } from 'phoenix-event-display';
18
- import * as i3$1 from '@angular/material/menu';
19
- import { MatMenuModule } from '@angular/material/menu';
20
- import * as i2$3 from '@angular/material/tooltip';
21
- import { MatTooltipModule } from '@angular/material/tooltip';
22
- import { ComponentPortal } from '@angular/cdk/portal';
23
- import { ResizeSensor } from 'css-element-queries';
24
- import * as i2$4 from '@angular/cdk/drag-drop';
25
- import { DragDropModule } from '@angular/cdk/drag-drop';
26
- import * as i1$1 from '@angular/cdk/overlay';
27
- import { OverlayModule } from '@angular/cdk/overlay';
28
- import packageJson from 'phoenix-event-display/package.json';
29
- import { __awaiter } from 'tslib';
30
- import * as i1$2 from '@angular/material/dialog';
31
- import { MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
32
- import * as i4$2 from '@angular/material/icon';
33
- import { MatIconModule } from '@angular/material/icon';
34
- import * as i5 from '@angular/material/radio';
35
- import { MatRadioModule } from '@angular/material/radio';
36
- import QRCode from 'qrcode';
37
- import * as i2$5 from '@angular/cdk/tree';
38
- import { NestedTreeControl, CdkTreeModule } from '@angular/cdk/tree';
39
- import { MatTreeNestedDataSource } from '@angular/material/tree';
40
- import JSZip from 'jszip';
41
- import * as i5$1 from '@angular/material/tabs';
42
- import { MatTabsModule } from '@angular/material/tabs';
43
-
44
- class NavComponent {
45
- constructor() { }
46
- ngOnInit() { }
47
- }
48
- NavComponent.ɵfac = function NavComponent_Factory(t) { return new (t || NavComponent)(); };
49
- NavComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: NavComponent, selectors: [["app-nav"]], decls: 2, vars: 0, consts: [["id", "mainLogo", "routerLink", "/", 1, "main-logo", "fixed-top", "p-2", "mx-auto", "mt-2"], ["src", "assets/images/logo-text.svg"]], template: function NavComponent_Template(rf, ctx) {
50
- if (rf & 1) {
51
- i0.ɵɵelementStart(0, "a", 0);
52
- i0.ɵɵelement(1, "img", 1);
53
- i0.ɵɵelementEnd();
54
- }
55
- }, dependencies: [i1.RouterLink], styles: [".main-logo[_ngcontent-%COMP%]{width:140px;z-index:9999}.main-logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{transition:all .5s}.main-logo[_ngcontent-%COMP%]:hover img[_ngcontent-%COMP%]{filter:drop-shadow(0px 0px 10px var(--phoenix-text-color));transition:all .5s}"] });
56
- (function () {
57
- (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NavComponent, [{
58
- type: Component,
59
- args: [{ selector: 'app-nav', template: "<a id=\"mainLogo\" class=\"main-logo fixed-top p-2 mx-auto mt-2\" routerLink=\"/\">\n <img src=\"assets/images/logo-text.svg\" />\n</a>\n", styles: [".main-logo{width:140px;z-index:9999}.main-logo img{transition:all .5s}.main-logo:hover img{filter:drop-shadow(0px 0px 10px var(--phoenix-text-color));transition:all .5s}\n"] }]
60
- }], function () { return []; }, null);
61
- })();
62
-
63
- function ConfigSliderComponent_input_3_Template(rf, ctx) {
64
- if (rf & 1) {
65
- const _r2 = i0.ɵɵgetCurrentView();
66
- i0.ɵɵelementStart(0, "input", 4);
67
- i0.ɵɵlistener("input", function ConfigSliderComponent_input_3_Template_input_input_0_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onValueChange($event.target.value)); });
68
- i0.ɵɵelementEnd();
69
- }
70
- if (rf & 2) {
71
- const ctx_r0 = i0.ɵɵnextContext();
72
- i0.ɵɵproperty("value", ctx_r0.value);
73
- }
74
- }
75
- class ConfigSliderComponent {
76
- constructor() {
77
- this.value = 0;
78
- this.min = 0;
79
- this.oldMin = 0;
80
- this.max = 100;
81
- this.oldMax = 0;
82
- this.step = 1;
83
- this.allowCustomValue = false;
84
- this.onChange = new EventEmitter();
85
- }
86
- onValueChange(value) {
87
- value && this.onChange.emit(value);
88
- }
89
- toggleMinCut(change) {
90
- const value = change.checked;
91
- if (value) {
92
- this.min = this.oldMin;
93
- }
94
- else {
95
- this.oldMin = this.min;
96
- this.min = Number.MIN_SAFE_INTEGER;
97
- }
98
- // We should probably disable the min input too, and change text to be infinity symbol or something?
99
- }
100
- toggleMaxCut(change) {
101
- const value = change.checked;
102
- if (value) {
103
- this.max = this.oldMax;
104
- }
105
- else {
106
- this.oldMax = this.max;
107
- this.max = Number.MAX_SAFE_INTEGER;
108
- }
109
- // We should probably disable the min input too, and change text to be infinity symbol or something?
110
- }
111
- }
112
- ConfigSliderComponent.ɵfac = function ConfigSliderComponent_Factory(t) { return new (t || ConfigSliderComponent)(); };
113
- ConfigSliderComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ConfigSliderComponent, selectors: [["app-config-slider"]], inputs: { value: "value", min: "min", max: "max", step: "step", allowCustomValue: "allowCustomValue" }, outputs: { onChange: "onChange" }, decls: 4, vars: 5, consts: [[1, "d-flex", "flex-row", "align-items-center"], ["thumbLabel", "", 1, "mx-2", 3, "min", "max", "step"], ["matSliderThumb", "", 3, "value", "valueChange"], ["class", "config-slider-input", "type", "number", 3, "value", "input", 4, "ngIf"], ["type", "number", 1, "config-slider-input", 3, "value", "input"]], template: function ConfigSliderComponent_Template(rf, ctx) {
114
- if (rf & 1) {
115
- i0.ɵɵelementStart(0, "div", 0)(1, "mat-slider", 1)(2, "input", 2);
116
- i0.ɵɵlistener("valueChange", function ConfigSliderComponent_Template_input_valueChange_2_listener($event) { return ctx.onValueChange($event); });
117
- i0.ɵɵelementEnd()();
118
- i0.ɵɵtemplate(3, ConfigSliderComponent_input_3_Template, 1, 1, "input", 3);
119
- i0.ɵɵelementEnd();
120
- }
121
- if (rf & 2) {
122
- i0.ɵɵadvance(1);
123
- i0.ɵɵproperty("min", ctx.min)("max", ctx.max)("step", ctx.step);
124
- i0.ɵɵadvance(1);
125
- i0.ɵɵproperty("value", ctx.value);
126
- i0.ɵɵadvance(1);
127
- i0.ɵɵproperty("ngIf", ctx.allowCustomValue);
128
- }
129
- }, dependencies: [i2.NgIf, i2$1.MatSlider, i2$1.MatSliderThumb], styles: [".config-slider-input[_ngcontent-%COMP%]{background:transparent;color:var(--phoenix-text-color);border:none;border-bottom:1px solid var(--phoenix-text-color);width:25%;-moz-appearance:textfield}input[_ngcontent-%COMP%]::-webkit-outer-spin-button, input[_ngcontent-%COMP%]::-webkit-inner-spin-button{-webkit-appearance:none}"] });
130
- (function () {
131
- (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ConfigSliderComponent, [{
132
- type: Component,
133
- args: [{ selector: 'app-config-slider', template: "<div class=\"d-flex flex-row align-items-center\">\n <mat-slider class=\"mx-2\" [min]=\"min\" [max]=\"max\" [step]=\"step\" thumbLabel>\n <input\n matSliderThumb\n [value]=\"value\"\n (valueChange)=\"onValueChange($event)\"\n />\n </mat-slider>\n <input\n *ngIf=\"allowCustomValue\"\n class=\"config-slider-input\"\n type=\"number\"\n [value]=\"value\"\n (input)=\"onValueChange($event.target.value)\"\n />\n</div>\n", styles: [".config-slider-input{background:transparent;color:var(--phoenix-text-color);border:none;border-bottom:1px solid var(--phoenix-text-color);width:25%;-moz-appearance:textfield}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none}\n"] }]
134
- }], null, { value: [{
135
- type: Input
136
- }], min: [{
137
- type: Input
138
- }], max: [{
139
- type: Input
140
- }], step: [{
141
- type: Input
142
- }], allowCustomValue: [{
143
- type: Input
144
- }], onChange: [{
145
- type: Output
146
- }] });
147
- })();
148
-
149
- const _c0$9 = ["phoenixMenuItem"];
150
- function PhoenixMenuItemComponent_ng_container_3_ng_container_2_Template(rf, ctx) {
151
- if (rf & 1) {
152
- i0.ɵɵelementContainer(0);
153
- }
154
- }
155
- function PhoenixMenuItemComponent_ng_container_3_Template(rf, ctx) {
156
- if (rf & 1) {
157
- const _r9 = i0.ɵɵgetCurrentView();
158
- i0.ɵɵelementContainerStart(0);
159
- i0.ɵɵelementStart(1, "mat-slide-toggle", 9);
160
- i0.ɵɵlistener("change", function PhoenixMenuItemComponent_ng_container_3_Template_mat_slide_toggle_change_1_listener($event) { i0.ɵɵrestoreView(_r9); const ctx_r8 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r8.currentNode.toggleSelfAndDescendants($event.checked)); });
161
- i0.ɵɵtemplate(2, PhoenixMenuItemComponent_ng_container_3_ng_container_2_Template, 1, 0, "ng-container", 10);
162
- i0.ɵɵelementEnd();
163
- i0.ɵɵelementContainerEnd();
164
- }
165
- if (rf & 2) {
166
- const ctx_r1 = i0.ɵɵnextContext();
167
- const _r2 = i0.ɵɵreference(5);
168
- i0.ɵɵadvance(1);
169
- i0.ɵɵproperty("checked", ctx_r1.currentNode.toggleState);
170
- i0.ɵɵadvance(1);
171
- i0.ɵɵproperty("ngTemplateOutlet", _r2);
172
- }
173
- }
174
- function PhoenixMenuItemComponent_ng_template_4_span_1_Template(rf, ctx) {
175
- if (rf & 1) {
176
- i0.ɵɵelementStart(0, "span", 14);
177
- i0.ɵɵnamespaceSVG();
178
- i0.ɵɵelementStart(1, "svg");
179
- i0.ɵɵelement(2, "use");
180
- i0.ɵɵelementEnd()();
181
- }
182
- if (rf & 2) {
183
- const ctx_r10 = i0.ɵɵnextContext(2);
184
- i0.ɵɵadvance(2);
185
- i0.ɵɵattributeInterpolate2("href", "assets/icons/", ctx_r10.currentNode.icon, ".svg#", ctx_r10.currentNode.icon, "");
186
- }
187
- }
188
- function PhoenixMenuItemComponent_ng_template_4_Template(rf, ctx) {
189
- if (rf & 1) {
190
- i0.ɵɵelementStart(0, "span", 11);
191
- i0.ɵɵtemplate(1, PhoenixMenuItemComponent_ng_template_4_span_1_Template, 3, 2, "span", 12);
192
- i0.ɵɵelementStart(2, "span", 13);
193
- i0.ɵɵtext(3);
194
- i0.ɵɵelementEnd()();
195
- }
196
- if (rf & 2) {
197
- const ctx_r3 = i0.ɵɵnextContext();
198
- i0.ɵɵadvance(1);
199
- i0.ɵɵproperty("ngIf", ctx_r3.currentNode.icon);
200
- i0.ɵɵadvance(1);
201
- i0.ɵɵproperty("title", ctx_r3.currentNode.name);
202
- i0.ɵɵadvance(1);
203
- i0.ɵɵtextInterpolate(ctx_r3.currentNode.name);
204
- }
205
- }
206
- function PhoenixMenuItemComponent_div_7_div_4_Template(rf, ctx) {
207
- if (rf & 1) {
208
- const _r14 = i0.ɵɵgetCurrentView();
209
- i0.ɵɵnamespaceSVG();
210
- i0.ɵɵnamespaceHTML();
211
- i0.ɵɵelementStart(0, "div", 20);
212
- i0.ɵɵlistener("click", function PhoenixMenuItemComponent_div_7_div_4_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r14); const ctx_r13 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r13.currentNode.configActive = false); });
213
- i0.ɵɵelementEnd();
214
- }
215
- }
216
- const _c1$4 = function (a0) { return { "font-weight-bold w-100": a0 }; };
217
- function PhoenixMenuItemComponent_div_7_ng_container_6_div_1_label_1_Template(rf, ctx) {
218
- if (rf & 1) {
219
- i0.ɵɵelementStart(0, "label", 26);
220
- i0.ɵɵtext(1);
221
- i0.ɵɵelementEnd();
222
- }
223
- if (rf & 2) {
224
- const config_r15 = i0.ɵɵnextContext(2).$implicit;
225
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(2, _c1$4, config_r15.type === "label"));
226
- i0.ɵɵadvance(1);
227
- i0.ɵɵtextInterpolate1(" ", config_r15.label, " ");
228
- }
229
- }
230
- function PhoenixMenuItemComponent_div_7_ng_container_6_div_1_div_2_mat_checkbox_1_Template(rf, ctx) {
231
- if (rf & 1) {
232
- const _r28 = i0.ɵɵgetCurrentView();
233
- i0.ɵɵelementStart(0, "mat-checkbox", 9);
234
- i0.ɵɵlistener("change", function PhoenixMenuItemComponent_div_7_ng_container_6_div_1_div_2_mat_checkbox_1_Template_mat_checkbox_change_0_listener($event) { i0.ɵɵrestoreView(_r28); const config_r15 = i0.ɵɵnextContext(3).$implicit; config_r15.onChange($event.checked); return i0.ɵɵresetView(config_r15.isChecked = $event.checked); });
235
- i0.ɵɵelementEnd();
236
- }
237
- if (rf & 2) {
238
- const config_r15 = i0.ɵɵnextContext(3).$implicit;
239
- i0.ɵɵproperty("checked", config_r15.isChecked);
240
- }
241
- }
242
- function PhoenixMenuItemComponent_div_7_ng_container_6_div_1_div_2_app_config_slider_2_Template(rf, ctx) {
243
- if (rf & 1) {
244
- const _r32 = i0.ɵɵgetCurrentView();
245
- i0.ɵɵelementStart(0, "app-config-slider", 34);
246
- i0.ɵɵlistener("onChange", function PhoenixMenuItemComponent_div_7_ng_container_6_div_1_div_2_app_config_slider_2_Template_app_config_slider_onChange_0_listener($event) { i0.ɵɵrestoreView(_r32); const config_r15 = i0.ɵɵnextContext(3).$implicit; config_r15.onChange($event); return i0.ɵɵresetView(config_r15.value = $event); });
247
- i0.ɵɵelementEnd();
248
- }
249
- if (rf & 2) {
250
- const config_r15 = i0.ɵɵnextContext(3).$implicit;
251
- i0.ɵɵproperty("value", config_r15.value)("min", config_r15.min)("max", config_r15.max)("step", config_r15.step)("allowCustomValue", config_r15.allowCustomValue);
252
- }
253
- }
254
- function PhoenixMenuItemComponent_div_7_ng_container_6_div_1_div_2_button_3_Template(rf, ctx) {
255
- if (rf & 1) {
256
- const _r36 = i0.ɵɵgetCurrentView();
257
- i0.ɵɵelementStart(0, "button", 35);
258
- i0.ɵɵlistener("click", function PhoenixMenuItemComponent_div_7_ng_container_6_div_1_div_2_button_3_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r36); const config_r15 = i0.ɵɵnextContext(3).$implicit; return i0.ɵɵresetView(config_r15.onClick()); });
259
- i0.ɵɵtext(1);
260
- i0.ɵɵelementEnd();
261
- }
262
- if (rf & 2) {
263
- const config_r15 = i0.ɵɵnextContext(3).$implicit;
264
- i0.ɵɵadvance(1);
265
- i0.ɵɵtextInterpolate1(" ", config_r15.label, " ");
266
- }
267
- }
268
- function PhoenixMenuItemComponent_div_7_ng_container_6_div_1_div_2_input_4_Template(rf, ctx) {
269
- if (rf & 1) {
270
- const _r40 = i0.ɵɵgetCurrentView();
271
- i0.ɵɵelementStart(0, "input", 36);
272
- i0.ɵɵlistener("input", function PhoenixMenuItemComponent_div_7_ng_container_6_div_1_div_2_input_4_Template_input_input_0_listener($event) { i0.ɵɵrestoreView(_r40); const config_r15 = i0.ɵɵnextContext(3).$implicit; config_r15.onChange($event.target.value); return i0.ɵɵresetView(config_r15.color = $event.target.value); });
273
- i0.ɵɵelementEnd();
274
- }
275
- if (rf & 2) {
276
- const config_r15 = i0.ɵɵnextContext(3).$implicit;
277
- i0.ɵɵproperty("value", config_r15.color);
278
- }
279
- }
280
- function PhoenixMenuItemComponent_div_7_ng_container_6_div_1_div_2_div_5_Template(rf, ctx) {
281
- if (rf & 1) {
282
- const _r44 = i0.ɵɵgetCurrentView();
283
- i0.ɵɵelementStart(0, "div", 37)(1, "div", 38)(2, "mat-checkbox", 9);
284
- i0.ɵɵlistener("change", function PhoenixMenuItemComponent_div_7_ng_container_6_div_1_div_2_div_5_Template_mat_checkbox_change_2_listener($event) { i0.ɵɵrestoreView(_r44); const config_r15 = i0.ɵɵnextContext(3).$implicit; return i0.ɵɵresetView(config_r15.setEnableMin($event.checked)); });
285
- i0.ɵɵelementEnd();
286
- i0.ɵɵelementStart(3, "mat-checkbox", 9);
287
- i0.ɵɵlistener("change", function PhoenixMenuItemComponent_div_7_ng_container_6_div_1_div_2_div_5_Template_mat_checkbox_change_3_listener($event) { i0.ɵɵrestoreView(_r44); const config_r15 = i0.ɵɵnextContext(3).$implicit; return i0.ɵɵresetView(config_r15.setEnableMax($event.checked)); });
288
- i0.ɵɵelementEnd()();
289
- i0.ɵɵelementStart(4, "div", 38)(5, "input", 39);
290
- i0.ɵɵlistener("input", function PhoenixMenuItemComponent_div_7_ng_container_6_div_1_div_2_div_5_Template_input_input_5_listener($event) { i0.ɵɵrestoreView(_r44); const config_r15 = i0.ɵɵnextContext(3).$implicit; config_r15.value = $event.target.value; return i0.ɵɵresetView(config_r15.onChange(config_r15)); });
291
- i0.ɵɵelementEnd();
292
- i0.ɵɵelementStart(6, "input", 40);
293
- i0.ɵɵlistener("input", function PhoenixMenuItemComponent_div_7_ng_container_6_div_1_div_2_div_5_Template_input_input_6_listener($event) { i0.ɵɵrestoreView(_r44); const config_r15 = i0.ɵɵnextContext(3).$implicit; config_r15.highValue = $event.target.value; return i0.ɵɵresetView(config_r15.onChange(config_r15)); });
294
- i0.ɵɵelementEnd()()();
295
- }
296
- if (rf & 2) {
297
- const config_r15 = i0.ɵɵnextContext(3).$implicit;
298
- i0.ɵɵadvance(2);
299
- i0.ɵɵproperty("checked", config_r15.enableMin);
300
- i0.ɵɵadvance(1);
301
- i0.ɵɵproperty("checked", config_r15.enableMax);
302
- i0.ɵɵadvance(2);
303
- i0.ɵɵproperty("value", config_r15.value);
304
- i0.ɵɵadvance(1);
305
- i0.ɵɵproperty("value", config_r15.highValue);
306
- }
307
- }
308
- function PhoenixMenuItemComponent_div_7_ng_container_6_div_1_div_2_select_6_option_1_Template(rf, ctx) {
309
- if (rf & 1) {
310
- i0.ɵɵelementStart(0, "option", 43);
311
- i0.ɵɵtext(1);
312
- i0.ɵɵelementEnd();
313
- }
314
- if (rf & 2) {
315
- const singleOption_r53 = ctx.$implicit;
316
- i0.ɵɵproperty("value", singleOption_r53);
317
- i0.ɵɵadvance(1);
318
- i0.ɵɵtextInterpolate1(" ", singleOption_r53, " ");
319
- }
320
- }
321
- function PhoenixMenuItemComponent_div_7_ng_container_6_div_1_div_2_select_6_Template(rf, ctx) {
322
- if (rf & 1) {
323
- const _r56 = i0.ɵɵgetCurrentView();
324
- i0.ɵɵelementStart(0, "select", 41);
325
- i0.ɵɵlistener("change", function PhoenixMenuItemComponent_div_7_ng_container_6_div_1_div_2_select_6_Template_select_change_0_listener($event) { i0.ɵɵrestoreView(_r56); const config_r15 = i0.ɵɵnextContext(3).$implicit; return i0.ɵɵresetView(config_r15.onChange($event.target.value)); });
326
- i0.ɵɵtemplate(1, PhoenixMenuItemComponent_div_7_ng_container_6_div_1_div_2_select_6_option_1_Template, 2, 2, "option", 42);
327
- i0.ɵɵelementEnd();
328
- }
329
- if (rf & 2) {
330
- const config_r15 = i0.ɵɵnextContext(3).$implicit;
331
- i0.ɵɵadvance(1);
332
- i0.ɵɵproperty("ngForOf", config_r15.options);
333
- }
334
- }
335
- const _c2$1 = function (a0) { return { "p-0": a0 }; };
336
- function PhoenixMenuItemComponent_div_7_ng_container_6_div_1_div_2_Template(rf, ctx) {
337
- if (rf & 1) {
338
- i0.ɵɵelementStart(0, "div", 27);
339
- i0.ɵɵtemplate(1, PhoenixMenuItemComponent_div_7_ng_container_6_div_1_div_2_mat_checkbox_1_Template, 1, 1, "mat-checkbox", 28);
340
- i0.ɵɵtemplate(2, PhoenixMenuItemComponent_div_7_ng_container_6_div_1_div_2_app_config_slider_2_Template, 1, 5, "app-config-slider", 29);
341
- i0.ɵɵtemplate(3, PhoenixMenuItemComponent_div_7_ng_container_6_div_1_div_2_button_3_Template, 2, 1, "button", 30);
342
- i0.ɵɵtemplate(4, PhoenixMenuItemComponent_div_7_ng_container_6_div_1_div_2_input_4_Template, 1, 1, "input", 31);
343
- i0.ɵɵtemplate(5, PhoenixMenuItemComponent_div_7_ng_container_6_div_1_div_2_div_5_Template, 7, 4, "div", 32);
344
- i0.ɵɵtemplate(6, PhoenixMenuItemComponent_div_7_ng_container_6_div_1_div_2_select_6_Template, 2, 1, "select", 33);
345
- i0.ɵɵelementEnd();
346
- }
347
- if (rf & 2) {
348
- const config_r15 = i0.ɵɵnextContext(2).$implicit;
349
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c2$1, config_r15.type === "button"));
350
- i0.ɵɵadvance(1);
351
- i0.ɵɵproperty("ngSwitchCase", "checkbox");
352
- i0.ɵɵadvance(1);
353
- i0.ɵɵproperty("ngSwitchCase", "slider");
354
- i0.ɵɵadvance(1);
355
- i0.ɵɵproperty("ngSwitchCase", "button");
356
- i0.ɵɵadvance(1);
357
- i0.ɵɵproperty("ngSwitchCase", "color");
358
- i0.ɵɵadvance(1);
359
- i0.ɵɵproperty("ngSwitchCase", "rangeSlider");
360
- i0.ɵɵadvance(1);
361
- i0.ɵɵproperty("ngSwitchCase", "select");
362
- }
363
- }
364
- function PhoenixMenuItemComponent_div_7_ng_container_6_div_1_Template(rf, ctx) {
365
- if (rf & 1) {
366
- i0.ɵɵelementStart(0, "div", 23);
367
- i0.ɵɵtemplate(1, PhoenixMenuItemComponent_div_7_ng_container_6_div_1_label_1_Template, 2, 4, "label", 24);
368
- i0.ɵɵtemplate(2, PhoenixMenuItemComponent_div_7_ng_container_6_div_1_div_2_Template, 7, 9, "div", 25);
369
- i0.ɵɵelementEnd();
370
- }
371
- if (rf & 2) {
372
- const config_r15 = i0.ɵɵnextContext().$implicit;
373
- i0.ɵɵadvance(1);
374
- i0.ɵɵproperty("ngIf", config_r15.type !== "button");
375
- i0.ɵɵadvance(1);
376
- i0.ɵɵproperty("ngIf", config_r15.type !== "label");
377
- }
378
- }
379
- function PhoenixMenuItemComponent_div_7_ng_container_6_Template(rf, ctx) {
380
- if (rf & 1) {
381
- i0.ɵɵelementContainerStart(0, 21);
382
- i0.ɵɵtemplate(1, PhoenixMenuItemComponent_div_7_ng_container_6_div_1_Template, 3, 2, "div", 22);
383
- i0.ɵɵelementContainerEnd();
384
- }
385
- if (rf & 2) {
386
- const config_r15 = ctx.$implicit;
387
- i0.ɵɵproperty("ngSwitch", config_r15.type);
388
- i0.ɵɵadvance(1);
389
- i0.ɵɵproperty("ngIf", !config_r15.hidden);
390
- }
391
- }
392
- const _c3$1 = function (a0) { return { "top.px": a0 }; };
393
- function PhoenixMenuItemComponent_div_7_Template(rf, ctx) {
394
- if (rf & 1) {
395
- const _r61 = i0.ɵɵgetCurrentView();
396
- i0.ɵɵelementStart(0, "div")(1, "button", 15);
397
- i0.ɵɵlistener("click", function PhoenixMenuItemComponent_div_7_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r61); const ctx_r60 = i0.ɵɵnextContext(); ctx_r60.calculateConfigTop(); return i0.ɵɵresetView(ctx_r60.currentNode.configActive = !ctx_r60.currentNode.configActive); });
398
- i0.ɵɵnamespaceSVG();
399
- i0.ɵɵelementStart(2, "svg");
400
- i0.ɵɵelement(3, "use", 16);
401
- i0.ɵɵelementEnd()();
402
- i0.ɵɵtemplate(4, PhoenixMenuItemComponent_div_7_div_4_Template, 1, 0, "div", 17);
403
- i0.ɵɵnamespaceHTML();
404
- i0.ɵɵelementStart(5, "div", 18);
405
- i0.ɵɵtemplate(6, PhoenixMenuItemComponent_div_7_ng_container_6_Template, 2, 2, "ng-container", 19);
406
- i0.ɵɵelementEnd()();
407
- }
408
- if (rf & 2) {
409
- const ctx_r4 = i0.ɵɵnextContext();
410
- i0.ɵɵadvance(4);
411
- i0.ɵɵproperty("ngIf", ctx_r4.currentNode.configActive);
412
- i0.ɵɵadvance(1);
413
- i0.ɵɵproperty("hidden", !ctx_r4.currentNode.configActive)("ngStyle", i0.ɵɵpureFunction1(4, _c3$1, ctx_r4.configTop));
414
- i0.ɵɵadvance(1);
415
- i0.ɵɵproperty("ngForOf", ctx_r4.castConfigsToAny(ctx_r4.currentNode.configs));
416
- }
417
- }
418
- const _c4$1 = function (a0) { return { expanded: a0 }; };
419
- function PhoenixMenuItemComponent_button_8_Template(rf, ctx) {
420
- if (rf & 1) {
421
- const _r63 = i0.ɵɵgetCurrentView();
422
- i0.ɵɵelementStart(0, "button", 44);
423
- i0.ɵɵlistener("click", function PhoenixMenuItemComponent_button_8_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r63); const ctx_r62 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r62.currentNode.childrenActive = !ctx_r62.currentNode.childrenActive); });
424
- i0.ɵɵnamespaceSVG();
425
- i0.ɵɵelementStart(1, "svg");
426
- i0.ɵɵelement(2, "use", 45);
427
- i0.ɵɵelementEnd()();
428
- }
429
- if (rf & 2) {
430
- const ctx_r5 = i0.ɵɵnextContext();
431
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(1, _c4$1, ctx_r5.currentNode.childrenActive));
432
- }
433
- }
434
- function PhoenixMenuItemComponent_div_9_app_phoenix_menu_item_1_Template(rf, ctx) {
435
- if (rf & 1) {
436
- i0.ɵɵelement(0, "app-phoenix-menu-item", 48);
437
- }
438
- if (rf & 2) {
439
- const childNode_r65 = ctx.$implicit;
440
- i0.ɵɵproperty("currentNode", childNode_r65);
441
- }
442
- }
443
- function PhoenixMenuItemComponent_div_9_Template(rf, ctx) {
444
- if (rf & 1) {
445
- i0.ɵɵelementStart(0, "div", 46);
446
- i0.ɵɵtemplate(1, PhoenixMenuItemComponent_div_9_app_phoenix_menu_item_1_Template, 1, 1, "app-phoenix-menu-item", 47);
447
- i0.ɵɵelementEnd();
448
- }
449
- if (rf & 2) {
450
- const ctx_r6 = i0.ɵɵnextContext();
451
- i0.ɵɵadvance(1);
452
- i0.ɵɵproperty("ngForOf", ctx_r6.currentNode.children);
453
- }
454
- }
455
- class PhoenixMenuItemComponent {
456
- constructor(cdr) {
457
- this.cdr = cdr;
458
- }
459
- calculateConfigTop() {
460
- if (this.phoenixMenuItem) {
461
- this.configTop =
462
- this.phoenixMenuItem.nativeElement.getBoundingClientRect().top;
463
- this.cdr.detectChanges();
464
- }
465
- }
466
- // Casting to `any` as a workaround to bypass strict template checks.
467
- castConfigsToAny(configs) {
468
- return configs;
469
- }
470
- }
471
- PhoenixMenuItemComponent.ɵfac = function PhoenixMenuItemComponent_Factory(t) { return new (t || PhoenixMenuItemComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
472
- PhoenixMenuItemComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PhoenixMenuItemComponent, selectors: [["app-phoenix-menu-item"]], viewQuery: function PhoenixMenuItemComponent_Query(rf, ctx) {
473
- if (rf & 1) {
474
- i0.ɵɵviewQuery(_c0$9, 5);
475
- }
476
- if (rf & 2) {
477
- let _t;
478
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.phoenixMenuItem = _t.first);
479
- }
480
- }, inputs: { currentNode: "currentNode" }, decls: 10, vars: 5, consts: [[1, "phoenix-menu-item"], ["phoenixMenuItem", ""], [1, "phoenix-menu-item-left", "align-items-center"], [4, "ngIf", "ngIfElse"], ["nodeName", ""], [1, "phoenix-menu-item-right"], [4, "ngIf"], ["class", "icon-wrapper icon-button btn-blank item-expand", "data-testid", "dropdown", 3, "ngClass", "click", 4, "ngIf"], ["class", "phoenix-menu-children", 4, "ngIf"], [3, "checked", "change"], [4, "ngTemplateOutlet"], [1, "d-flex", "w-100", "align-items-center"], ["class", "icon-wrapper item-icon", 4, "ngIf"], [1, "item-name", 3, "title"], [1, "icon-wrapper", "item-icon"], [1, "icon-wrapper", "icon-button", "btn-blank", "item-settings", 3, "click"], ["href", "assets/icons/gear.svg#gear"], ["class", "item-config-backdrop", 3, "click", 4, "ngIf"], [1, "item-config", 3, "hidden", "ngStyle"], [3, "ngSwitch", 4, "ngFor", "ngForOf"], [1, "item-config-backdrop", 3, "click"], [3, "ngSwitch"], ["class", "item-config-single", 4, "ngIf"], [1, "item-config-single"], ["class", "item-config-label", "for", "item-config-field", 3, "ngClass", 4, "ngIf"], ["class", "item-config-data", 3, "ngClass", 4, "ngIf"], ["for", "item-config-field", 1, "item-config-label", 3, "ngClass"], [1, "item-config-data", 3, "ngClass"], [3, "checked", "change", 4, "ngSwitchCase"], [3, "value", "min", "max", "step", "allowCustomValue", "onChange", 4, "ngSwitchCase"], ["class", "w-100", "mat-button", "", "mat-stroked-button", "", 3, "click", 4, "ngSwitchCase"], ["id", "item-config-field", "type", "color", 3, "value", "input", 4, "ngSwitchCase"], ["class", "range-slider", 4, "ngSwitchCase"], ["id", "item-config-field", "class", "w-100", 3, "change", 4, "ngSwitchCase"], [3, "value", "min", "max", "step", "allowCustomValue", "onChange"], ["mat-button", "", "mat-stroked-button", "", 1, "w-100", 3, "click"], ["id", "item-config-field", "type", "color", 3, "value", "input"], [1, "range-slider"], [1, "range-slider-inputs", "d-flex", "justify-content-between"], ["type", "number", "placeholder", "Min", "step", "config.step", 1, "form-control", "form-control-sm", 3, "value", "input"], ["type", "number", "placeholder", "Max", "step", "config.step", 1, "form-control", "form-control-sm", 3, "value", "input"], ["id", "item-config-field", 1, "w-100", 3, "change"], [3, "value", 4, "ngFor", "ngForOf"], [3, "value"], ["data-testid", "dropdown", 1, "icon-wrapper", "icon-button", "btn-blank", "item-expand", 3, "ngClass", "click"], ["href", "assets/icons/expand.svg#expand"], [1, "phoenix-menu-children"], [3, "currentNode", 4, "ngFor", "ngForOf"], [3, "currentNode"]], template: function PhoenixMenuItemComponent_Template(rf, ctx) {
481
- if (rf & 1) {
482
- i0.ɵɵelementStart(0, "div", 0, 1)(2, "div", 2);
483
- i0.ɵɵtemplate(3, PhoenixMenuItemComponent_ng_container_3_Template, 3, 2, "ng-container", 3);
484
- i0.ɵɵtemplate(4, PhoenixMenuItemComponent_ng_template_4_Template, 4, 3, "ng-template", null, 4, i0.ɵɵtemplateRefExtractor);
485
- i0.ɵɵelementEnd();
486
- i0.ɵɵelementStart(6, "div", 5);
487
- i0.ɵɵtemplate(7, PhoenixMenuItemComponent_div_7_Template, 7, 6, "div", 6);
488
- i0.ɵɵtemplate(8, PhoenixMenuItemComponent_button_8_Template, 3, 3, "button", 7);
489
- i0.ɵɵelementEnd()();
490
- i0.ɵɵtemplate(9, PhoenixMenuItemComponent_div_9_Template, 2, 1, "div", 8);
491
- }
492
- if (rf & 2) {
493
- const _r2 = i0.ɵɵreference(5);
494
- i0.ɵɵadvance(3);
495
- i0.ɵɵproperty("ngIf", ctx.currentNode.onToggle)("ngIfElse", _r2);
496
- i0.ɵɵadvance(4);
497
- i0.ɵɵproperty("ngIf", ctx.currentNode.configs.length > 0);
498
- i0.ɵɵadvance(1);
499
- i0.ɵɵproperty("ngIf", ctx.currentNode.children.length > 0);
500
- i0.ɵɵadvance(1);
501
- i0.ɵɵproperty("ngIf", ctx.currentNode.childrenActive);
502
- }
503
- }, dependencies: [i2.NgClass, i2.NgForOf, i2.NgIf, i2.NgTemplateOutlet, i2.NgStyle, i2.NgSwitch, i2.NgSwitchCase, i2$2.MatButton, i3.NgSelectOption, i3.ɵNgSelectMultipleOption, i4.MatSlideToggle, i4$1.MatCheckbox, PhoenixMenuItemComponent, ConfigSliderComponent], styles: [".phoenix-menu-item{width:100%;padding:.6rem;background:var(--phoenix-background-color-secondary);color:var(--phoenix-text-color);font-size:.8rem;transition:all .5s;display:flex;justify-content:space-between;align-items:center}.phoenix-menu-item-left{display:flex;justify-content:flex-start;min-width:0;padding-right:.5rem;overflow:hidden}.phoenix-menu-item-left .item-name{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.phoenix-menu-item-left .item-icon{margin-right:.2rem}.phoenix-menu-item-right{display:flex;justify-content:flex-end}.phoenix-menu-item-right .item-expand.expanded{transform:scaleY(-1)}.phoenix-menu-item-right .item-settings{margin-right:.2rem}.phoenix-menu-item-right .item-config-backdrop{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:110}.phoenix-menu-item-right .item-config{position:absolute;margin-top:-5rem;right:100%;width:14rem;padding:.5rem;background:var(--phoenix-background-color-secondary);color:var(--phoenix-text-color-secondary);box-shadow:var(--phoenix-box-shadow);display:flex;flex-direction:column;z-index:120}.phoenix-menu-item-right .item-config>*{margin-bottom:.4rem}.phoenix-menu-item-right .item-config>*:last-child{margin-bottom:0}.phoenix-menu-item-right .item-config .item-config-single{display:flex;flex-direction:row}.phoenix-menu-item-right .item-config .item-config-single .item-config-label{width:30%}.phoenix-menu-item-right .item-config .item-config-single .item-config-data{flex-grow:1;padding-left:.5rem}.phoenix-menu-item .icon-wrapper{display:inline-block;width:1.3rem;height:1.3rem;padding:.23rem;transition:all .4s}.phoenix-menu-item .icon-wrapper.icon-button:hover{background:var(--phoenix-options-icon-bg);border-radius:40%;cursor:pointer}.phoenix-menu-item .icon-wrapper svg{width:100%;height:100%;vertical-align:top}.phoenix-menu-item .mat-slide-toggle-bar{width:30px!important}.phoenix-menu-item .mat-slide-toggle-thumb{width:15px!important;height:15px!important;position:absolute;top:2px}.phoenix-menu-item .mat-slider-horizontal{min-width:0;width:100%;height:20px}.phoenix-menu-item .mat-slider-horizontal .mat-slider-wrapper{top:10px}.phoenix-menu-item label.mat-checkbox-layout{margin:0}@media screen and (max-width: 768px){.phoenix-menu-item{font-size:.75rem;padding:.5rem}.phoenix-menu-item .icon-wrapper{width:1rem;height:1rem;padding:.15rem}}.phoenix-menu-children{margin-left:.5rem;border-left:1px solid var(--phoenix-accent)}.range-slider .range-slider-inputs{gap:20%}\n"], encapsulation: 2 });
504
- (function () {
505
- (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PhoenixMenuItemComponent, [{
506
- type: Component,
507
- args: [{ selector: 'app-phoenix-menu-item', encapsulation: ViewEncapsulation.None, template: "<div class=\"phoenix-menu-item\" #phoenixMenuItem>\n <div class=\"phoenix-menu-item-left align-items-center\">\n <!-- If the item has some toggle function -->\n <ng-container *ngIf=\"currentNode.onToggle; else nodeName\">\n <mat-slide-toggle\n [checked]=\"currentNode.toggleState\"\n (change)=\"currentNode.toggleSelfAndDescendants($event.checked)\"\n >\n <ng-container *ngTemplateOutlet=\"nodeName\"></ng-container>\n </mat-slide-toggle>\n </ng-container>\n <!-- If the item has no toggle function -->\n <ng-template #nodeName>\n <span class=\"d-flex w-100 align-items-center\">\n <span *ngIf=\"currentNode.icon\" class=\"icon-wrapper item-icon\">\n <svg>\n <use\n attr.href=\"assets/icons/{{ currentNode.icon }}.svg#{{\n currentNode.icon\n }}\"\n ></use>\n </svg>\n </span>\n <span class=\"item-name\" [title]=\"currentNode.name\">{{\n currentNode.name\n }}</span>\n </span>\n </ng-template>\n </div>\n <div class=\"phoenix-menu-item-right\">\n <div *ngIf=\"currentNode.configs.length > 0\">\n <button\n class=\"icon-wrapper icon-button btn-blank item-settings\"\n (click)=\"\n calculateConfigTop();\n currentNode.configActive = !currentNode.configActive\n \"\n >\n <svg>\n <use href=\"assets/icons/gear.svg#gear\"></use>\n </svg>\n </button>\n <div\n class=\"item-config-backdrop\"\n *ngIf=\"currentNode.configActive\"\n (click)=\"currentNode.configActive = false\"\n ></div>\n <div\n class=\"item-config\"\n [hidden]=\"!currentNode.configActive\"\n [ngStyle]=\"{ 'top.px': configTop }\"\n >\n <ng-container\n *ngFor=\"let config of castConfigsToAny(currentNode.configs)\"\n [ngSwitch]=\"config.type\"\n >\n <!-- Config types -->\n <div class=\"item-config-single\" *ngIf=\"!config.hidden\">\n <label\n class=\"item-config-label\"\n for=\"item-config-field\"\n *ngIf=\"config.type !== 'button'\"\n [ngClass]=\"{ 'font-weight-bold w-100': config.type === 'label' }\"\n >\n {{ config.label }}\n </label>\n <div\n class=\"item-config-data\"\n [ngClass]=\"{ 'p-0': config.type === 'button' }\"\n *ngIf=\"config.type !== 'label'\"\n >\n <mat-checkbox\n *ngSwitchCase=\"'checkbox'\"\n [checked]=\"config.isChecked\"\n (change)=\"\n config.onChange($event.checked);\n config.isChecked = $event.checked\n \"\n ></mat-checkbox>\n\n <app-config-slider\n *ngSwitchCase=\"'slider'\"\n [value]=\"config.value\"\n (onChange)=\"config.onChange($event); config.value = $event\"\n [min]=\"config.min\"\n [max]=\"config.max\"\n [step]=\"config.step\"\n [allowCustomValue]=\"config.allowCustomValue\"\n >\n </app-config-slider>\n\n <button\n *ngSwitchCase=\"'button'\"\n class=\"w-100\"\n (click)=\"config.onClick()\"\n mat-button\n mat-stroked-button\n >\n {{ config.label }}\n </button>\n\n <input\n *ngSwitchCase=\"'color'\"\n id=\"item-config-field\"\n type=\"color\"\n [value]=\"config.color\"\n (input)=\"\n config.onChange($event.target.value);\n config.color = $event.target.value\n \"\n />\n\n <div *ngSwitchCase=\"'rangeSlider'\" class=\"range-slider\">\n <div class=\"range-slider-inputs d-flex justify-content-between\">\n <mat-checkbox\n [checked]=\"config.enableMin\"\n (change)=\"config.setEnableMin($event.checked)\"\n ></mat-checkbox>\n <mat-checkbox\n [checked]=\"config.enableMax\"\n (change)=\"config.setEnableMax($event.checked)\"\n ></mat-checkbox>\n </div>\n <div class=\"range-slider-inputs d-flex justify-content-between\">\n <input\n type=\"number\"\n placeholder=\"Min\"\n class=\"form-control form-control-sm\"\n [value]=\"config.value\"\n (input)=\"\n config.value = $event.target.value;\n config.onChange(config)\n \"\n step=\"config.step\"\n />\n <input\n type=\"number\"\n placeholder=\"Max\"\n class=\"form-control form-control-sm\"\n [value]=\"config.highValue\"\n (input)=\"\n config.highValue = $event.target.value;\n config.onChange(config)\n \"\n step=\"config.step\"\n />\n </div>\n </div>\n\n <select\n *ngSwitchCase=\"'select'\"\n id=\"item-config-field\"\n class=\"w-100\"\n (change)=\"config.onChange($event.target.value)\"\n >\n <option\n *ngFor=\"let singleOption of config.options\"\n [value]=\"singleOption\"\n >\n {{ singleOption }}\n </option>\n </select>\n </div>\n </div>\n <!-- Config types END -->\n </ng-container>\n </div>\n </div>\n <button\n class=\"icon-wrapper icon-button btn-blank item-expand\"\n *ngIf=\"currentNode.children.length > 0\"\n (click)=\"currentNode.childrenActive = !currentNode.childrenActive\"\n [ngClass]=\"{ expanded: currentNode.childrenActive }\"\n data-testid=\"dropdown\"\n >\n <svg>\n <use href=\"assets/icons/expand.svg#expand\"></use>\n </svg>\n </button>\n </div>\n</div>\n<div class=\"phoenix-menu-children\" *ngIf=\"currentNode.childrenActive\">\n <app-phoenix-menu-item\n *ngFor=\"let childNode of currentNode.children\"\n [currentNode]=\"childNode\"\n >\n </app-phoenix-menu-item>\n</div>\n", styles: [".phoenix-menu-item{width:100%;padding:.6rem;background:var(--phoenix-background-color-secondary);color:var(--phoenix-text-color);font-size:.8rem;transition:all .5s;display:flex;justify-content:space-between;align-items:center}.phoenix-menu-item-left{display:flex;justify-content:flex-start;min-width:0;padding-right:.5rem;overflow:hidden}.phoenix-menu-item-left .item-name{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.phoenix-menu-item-left .item-icon{margin-right:.2rem}.phoenix-menu-item-right{display:flex;justify-content:flex-end}.phoenix-menu-item-right .item-expand.expanded{transform:scaleY(-1)}.phoenix-menu-item-right .item-settings{margin-right:.2rem}.phoenix-menu-item-right .item-config-backdrop{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:110}.phoenix-menu-item-right .item-config{position:absolute;margin-top:-5rem;right:100%;width:14rem;padding:.5rem;background:var(--phoenix-background-color-secondary);color:var(--phoenix-text-color-secondary);box-shadow:var(--phoenix-box-shadow);display:flex;flex-direction:column;z-index:120}.phoenix-menu-item-right .item-config>*{margin-bottom:.4rem}.phoenix-menu-item-right .item-config>*:last-child{margin-bottom:0}.phoenix-menu-item-right .item-config .item-config-single{display:flex;flex-direction:row}.phoenix-menu-item-right .item-config .item-config-single .item-config-label{width:30%}.phoenix-menu-item-right .item-config .item-config-single .item-config-data{flex-grow:1;padding-left:.5rem}.phoenix-menu-item .icon-wrapper{display:inline-block;width:1.3rem;height:1.3rem;padding:.23rem;transition:all .4s}.phoenix-menu-item .icon-wrapper.icon-button:hover{background:var(--phoenix-options-icon-bg);border-radius:40%;cursor:pointer}.phoenix-menu-item .icon-wrapper svg{width:100%;height:100%;vertical-align:top}.phoenix-menu-item .mat-slide-toggle-bar{width:30px!important}.phoenix-menu-item .mat-slide-toggle-thumb{width:15px!important;height:15px!important;position:absolute;top:2px}.phoenix-menu-item .mat-slider-horizontal{min-width:0;width:100%;height:20px}.phoenix-menu-item .mat-slider-horizontal .mat-slider-wrapper{top:10px}.phoenix-menu-item label.mat-checkbox-layout{margin:0}@media screen and (max-width: 768px){.phoenix-menu-item{font-size:.75rem;padding:.5rem}.phoenix-menu-item .icon-wrapper{width:1rem;height:1rem;padding:.15rem}}.phoenix-menu-children{margin-left:.5rem;border-left:1px solid var(--phoenix-accent)}.range-slider .range-slider-inputs{gap:20%}\n"] }]
508
- }], function () { return [{ type: i0.ChangeDetectorRef }]; }, { currentNode: [{
509
- type: Input
510
- }], phoenixMenuItem: [{
511
- type: ViewChild,
512
- args: ['phoenixMenuItem']
513
- }] });
514
- })();
515
-
516
- class PhoenixMenuComponent {
517
- }
518
- PhoenixMenuComponent.ɵfac = function PhoenixMenuComponent_Factory(t) { return new (t || PhoenixMenuComponent)(); };
519
- PhoenixMenuComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PhoenixMenuComponent, selectors: [["app-phoenix-menu"]], inputs: { rootNode: "rootNode" }, decls: 2, vars: 1, consts: [["id", "phoenixMenu"], [3, "currentNode"]], template: function PhoenixMenuComponent_Template(rf, ctx) {
520
- if (rf & 1) {
521
- i0.ɵɵelementStart(0, "div", 0);
522
- i0.ɵɵelement(1, "app-phoenix-menu-item", 1);
523
- i0.ɵɵelementEnd();
524
- }
525
- if (rf & 2) {
526
- i0.ɵɵadvance(1);
527
- i0.ɵɵproperty("currentNode", ctx.rootNode);
528
- }
529
- }, dependencies: [PhoenixMenuItemComponent], styles: ["[_nghost-%COMP%]{width:15rem;max-width:45%;position:absolute;top:5rem;right:1rem}#phoenixMenu[_ngcontent-%COMP%]{background:var(--phoenix-background-color-secondary);max-height:75vh;overflow-y:auto;box-shadow:var(--phoenix-box-shadow);z-index:100}@media screen and (max-width: 768px){#phoenixMenu[_ngcontent-%COMP%]{top:4rem}}"] });
530
- (function () {
531
- (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PhoenixMenuComponent, [{
532
- type: Component,
533
- args: [{ selector: 'app-phoenix-menu', template: "<div id=\"phoenixMenu\">\n <app-phoenix-menu-item [currentNode]=\"rootNode\"></app-phoenix-menu-item>\n</div>\n", styles: [":host{width:15rem;max-width:45%;position:absolute;top:5rem;right:1rem}#phoenixMenu{background:var(--phoenix-background-color-secondary);max-height:75vh;overflow-y:auto;box-shadow:var(--phoenix-box-shadow);z-index:100}@media screen and (max-width: 768px){#phoenixMenu{top:4rem}}\n"] }]
534
- }], null, { rootNode: [{
535
- type: Input
536
- }] });
537
- })();
538
-
539
- /**
540
- * Service for all event display related functions.
541
- */
542
- class EventDisplayService extends EventDisplay {
543
- /**
544
- * Instantiate the event display by calling the parent constructor.
545
- */
546
- constructor() {
547
- super();
548
- }
549
- }
550
- EventDisplayService.ɵfac = function EventDisplayService_Factory(t) { return new (t || EventDisplayService)(); };
551
- EventDisplayService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: EventDisplayService, factory: EventDisplayService.ɵfac, providedIn: 'root' });
552
- (function () {
553
- (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EventDisplayService, [{
554
- type: Injectable,
555
- args: [{
556
- providedIn: 'root',
557
- }]
558
- }], function () { return []; }, null);
559
- })();
560
-
561
- const _c0$8 = function (a0) { return { disabled: a0 }; };
562
- const _c1$3 = function (a0) { return { "active-icon": a0 }; };
563
- class MenuToggleComponent {
564
- constructor() {
565
- this.disabled = false;
566
- }
567
- }
568
- MenuToggleComponent.ɵfac = function MenuToggleComponent_Factory(t) { return new (t || MenuToggleComponent)(); };
569
- MenuToggleComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MenuToggleComponent, selectors: [["app-menu-toggle"]], inputs: { icon: "icon", active: "active", tooltip: "tooltip", disabled: "disabled" }, decls: 3, vars: 9, consts: [["matTooltipPosition", "above", "matTooltipTouchGestures", "off", 1, "menu-toggle", 3, "ngClass", "matTooltip"], [1, "menu-toggle-icon", 3, "ngClass"]], template: function MenuToggleComponent_Template(rf, ctx) {
570
- if (rf & 1) {
571
- i0.ɵɵelementStart(0, "button", 0);
572
- i0.ɵɵnamespaceSVG();
573
- i0.ɵɵelementStart(1, "svg", 1);
574
- i0.ɵɵelement(2, "use");
575
- i0.ɵɵelementEnd()();
576
- }
577
- if (rf & 2) {
578
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(5, _c0$8, ctx.disabled))("matTooltip", ctx.tooltip);
579
- i0.ɵɵadvance(1);
580
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c1$3, ctx.active));
581
- i0.ɵɵadvance(1);
582
- i0.ɵɵattributeInterpolate2("href", "assets/icons/", ctx.icon, ".svg#", ctx.icon, "");
583
- }
584
- }, dependencies: [i2.NgClass, i2$3.MatTooltip], styles: ["[_nghost-%COMP%]{display:flex;margin:0 .6rem}[_nghost-%COMP%] .menu-toggle[_ngcontent-%COMP%]{display:flex;background:unset;border:none;height:2.5rem;width:2.5rem;min-height:2.5rem;min-width:2.5rem;padding:.65rem;cursor:pointer;align-self:center;transition:all .4s}[_nghost-%COMP%] .menu-toggle-icon[_ngcontent-%COMP%]{width:100%;height:100%}[_nghost-%COMP%] .menu-toggle-icon.active-icon[_ngcontent-%COMP%]{--phoenix-options-icon-path: #00bcd4}[_nghost-%COMP%] .menu-toggle[_ngcontent-%COMP%]:hover{background-color:var(--phoenix-options-icon-bg);border-radius:40%;transition:all .4s}[_nghost-%COMP%] .menu-toggle.disabled[_ngcontent-%COMP%]{cursor:not-allowed;opacity:.4}"] });
585
- (function () {
586
- (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MenuToggleComponent, [{
587
- type: Component,
588
- args: [{ selector: 'app-menu-toggle', template: "<button\n class=\"menu-toggle\"\n [ngClass]=\"{ disabled: disabled }\"\n [matTooltip]=\"tooltip\"\n matTooltipPosition=\"above\"\n matTooltipTouchGestures=\"off\"\n>\n <svg class=\"menu-toggle-icon\" [ngClass]=\"{ 'active-icon': active }\">\n <use attr.href=\"assets/icons/{{ icon }}.svg#{{ icon }}\"></use>\n </svg>\n</button>\n", styles: [":host{display:flex;margin:0 .6rem}:host .menu-toggle{display:flex;background:unset;border:none;height:2.5rem;width:2.5rem;min-height:2.5rem;min-width:2.5rem;padding:.65rem;cursor:pointer;align-self:center;transition:all .4s}:host .menu-toggle-icon{width:100%;height:100%}:host .menu-toggle-icon.active-icon{--phoenix-options-icon-path: #00bcd4}:host .menu-toggle:hover{background-color:var(--phoenix-options-icon-bg);border-radius:40%;transition:all .4s}:host .menu-toggle.disabled{cursor:not-allowed;opacity:.4}\n"] }]
589
- }], null, { icon: [{
590
- type: Input
591
- }], active: [{
592
- type: Input
593
- }], tooltip: [{
594
- type: Input
595
- }], disabled: [{
596
- type: Input
597
- }] });
598
- })();
599
-
600
- function AnimateCameraComponent_button_2_Template(rf, ctx) {
601
- if (rf & 1) {
602
- const _r4 = i0.ɵɵgetCurrentView();
603
- i0.ɵɵelementStart(0, "button", 2);
604
- i0.ɵɵlistener("click", function AnimateCameraComponent_button_2_Template_button_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r4); const preset_r2 = restoredCtx.$implicit; const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.animatePreset(preset_r2)); });
605
- i0.ɵɵtext(1);
606
- i0.ɵɵelementEnd();
607
- }
608
- if (rf & 2) {
609
- const preset_r2 = ctx.$implicit;
610
- i0.ɵɵadvance(1);
611
- i0.ɵɵtextInterpolate1(" ", preset_r2, " ");
612
- }
613
- }
614
- const defaultAnimationPresets = {
615
- 'Cavern to ID': {
616
- name: 'Cavern to ID',
617
- positions: [
618
- {
619
- position: [66388.95051168812, 5264.228603228927, -46910.7848593543],
620
- duration: 1000,
621
- },
622
- {
623
- position: [12834.18729094943, 677.7571205763458, 135.68755273443463],
624
- duration: 2000,
625
- },
626
- {
627
- position: [312.02688693297375, 25.884223757326, 270.10019006776236],
628
- duration: 3500,
629
- },
630
- {
631
- position: [263.3640855132258, 19.874838262525053, -318.16541790248885],
632
- duration: 3000,
633
- },
634
- {
635
- position: [5534.140362338047, 234.03507981484574, -2933.619479808285],
636
- duration: 2000,
637
- },
638
- {
639
- position: [2681.277288705242, 646.5795158318147, 5628.5248735111745],
640
- duration: 1000,
641
- },
642
- {
643
- position: [-6062.586283740076, 790.5876682946184, 1381.1675900848818],
644
- duration: 1000,
645
- },
646
- {
647
- position: [-1766.7693725879053, 1007.1048030984678, -5928.901341784575],
648
- duration: 1000,
649
- },
650
- {
651
- position: [12814.982506255355, 2516.987185037266, -22891.902734328327],
652
- duration: 1000,
653
- },
654
- ],
655
- animateEventAfterInterval: 5000,
656
- collisionDuration: 6000,
657
- },
658
- };
659
- class AnimateCameraComponent {
660
- constructor(eventDisplay) {
661
- this.eventDisplay = eventDisplay;
662
- this.animationPresets = defaultAnimationPresets;
663
- this.animationPresetsKeys = Object.keys(this.animationPresets);
664
- this.isAnimating = false;
665
- // this.animationPresets = this.eventDisplay
666
- // .getUIManager()
667
- // .getPresetAnimations();
668
- // This is too late to fill the UI! FIXME. EJWM
669
- }
670
- animatePreset(preset) {
671
- this.setDetectorOpacity(0.2);
672
- this.eventDisplay.animatePreset(this.animationPresets[preset], () => {
673
- this.setDetectorOpacity(1);
674
- });
675
- }
676
- animateCamera() {
677
- if (!this.isAnimating) {
678
- this.isAnimating = true;
679
- this.eventDisplay.animateThroughEvent([11976, 7262, 11927], 3000, () => {
680
- this.isAnimating = false;
681
- });
682
- }
683
- }
684
- setDetectorOpacity(opacity) {
685
- const sceneManager = this.eventDisplay.getThreeManager().getSceneManager();
686
- const geometriesGroup = sceneManager.getObjectByName(SceneManager.GEOMETRIES_ID);
687
- sceneManager.setGeometryOpacity(geometriesGroup, opacity);
688
- }
689
- }
690
- AnimateCameraComponent.ɵfac = function AnimateCameraComponent_Factory(t) { return new (t || AnimateCameraComponent)(i0.ɵɵdirectiveInject(EventDisplayService)); };
691
- AnimateCameraComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AnimateCameraComponent, selectors: [["app-animate-camera"]], inputs: { animationPresets: "animationPresets" }, decls: 6, vars: 2, consts: [["animationPresets", ""], ["mat-menu-item", "", 3, "click", 4, "ngFor", "ngForOf"], ["mat-menu-item", "", 3, "click"], ["tooltip", "Preset animations", "icon", "animate-camera", 3, "matMenuTriggerFor"]], template: function AnimateCameraComponent_Template(rf, ctx) {
692
- if (rf & 1) {
693
- i0.ɵɵelementStart(0, "mat-menu", null, 0);
694
- i0.ɵɵtemplate(2, AnimateCameraComponent_button_2_Template, 2, 1, "button", 1);
695
- i0.ɵɵelementStart(3, "button", 2);
696
- i0.ɵɵlistener("click", function AnimateCameraComponent_Template_button_click_3_listener() { return ctx.animateCamera(); });
697
- i0.ɵɵtext(4, "Animate camera");
698
- i0.ɵɵelementEnd()();
699
- i0.ɵɵelement(5, "app-menu-toggle", 3);
700
- }
701
- if (rf & 2) {
702
- const _r0 = i0.ɵɵreference(1);
703
- i0.ɵɵadvance(2);
704
- i0.ɵɵproperty("ngForOf", ctx.animationPresetsKeys);
705
- i0.ɵɵadvance(3);
706
- i0.ɵɵproperty("matMenuTriggerFor", _r0);
707
- }
708
- }, dependencies: [i2.NgForOf, i3$1.MatMenu, i3$1.MatMenuItem, i3$1.MatMenuTrigger, MenuToggleComponent] });
709
- (function () {
710
- (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AnimateCameraComponent, [{
711
- type: Component,
712
- args: [{ selector: 'app-animate-camera', template: "<mat-menu #animationPresets>\n <button\n mat-menu-item\n *ngFor=\"let preset of animationPresetsKeys\"\n (click)=\"animatePreset(preset)\"\n >\n {{ preset }}\n </button>\n <button mat-menu-item (click)=\"animateCamera()\">Animate camera</button>\n</mat-menu>\n\n<app-menu-toggle\n [matMenuTriggerFor]=\"animationPresets\"\n tooltip=\"Preset animations\"\n icon=\"animate-camera\"\n>\n</app-menu-toggle>\n" }]
713
- }], function () { return [{ type: EventDisplayService }]; }, { animationPresets: [{
714
- type: Input
715
- }] });
716
- })();
717
-
718
- class AnimateEventComponent {
719
- constructor(eventDisplay) {
720
- this.eventDisplay = eventDisplay;
721
- this.isAnimating = false;
722
- }
723
- toggleAnimateEvent() {
724
- if (!this.isAnimating) {
725
- this.isAnimating = true;
726
- this.eventDisplay.animateEventWithCollision(10000, () => {
727
- this.isAnimating = false;
728
- });
729
- }
730
- }
731
- }
732
- AnimateEventComponent.ɵfac = function AnimateEventComponent_Factory(t) { return new (t || AnimateEventComponent)(i0.ɵɵdirectiveInject(EventDisplayService)); };
733
- AnimateEventComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AnimateEventComponent, selectors: [["app-animate-event"]], decls: 1, vars: 1, consts: [["tooltip", "Animate event", "icon", "event-folder", 3, "active", "click"]], template: function AnimateEventComponent_Template(rf, ctx) {
734
- if (rf & 1) {
735
- i0.ɵɵelementStart(0, "app-menu-toggle", 0);
736
- i0.ɵɵlistener("click", function AnimateEventComponent_Template_app_menu_toggle_click_0_listener() { return ctx.toggleAnimateEvent(); });
737
- i0.ɵɵelementEnd();
738
- }
739
- if (rf & 2) {
740
- i0.ɵɵproperty("active", ctx.isAnimating);
741
- }
742
- }, dependencies: [MenuToggleComponent] });
743
- (function () {
744
- (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AnimateEventComponent, [{
745
- type: Component,
746
- args: [{ selector: 'app-animate-event', template: "<app-menu-toggle\n tooltip=\"Animate event\"\n icon=\"event-folder\"\n [active]=\"isAnimating\"\n (click)=\"toggleAnimateEvent()\"\n>\n</app-menu-toggle>\n" }]
747
- }], function () { return [{ type: EventDisplayService }]; }, null);
748
- })();
749
-
750
- class AutoRotateComponent {
751
- constructor(eventDisplay) {
752
- this.eventDisplay = eventDisplay;
753
- this.autoRotate = false;
754
- }
755
- toggleAutoRotate() {
756
- this.autoRotate = !this.autoRotate;
757
- this.eventDisplay.getUIManager().setAutoRotate(this.autoRotate);
758
- }
759
- }
760
- AutoRotateComponent.ɵfac = function AutoRotateComponent_Factory(t) { return new (t || AutoRotateComponent)(i0.ɵɵdirectiveInject(EventDisplayService)); };
761
- AutoRotateComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AutoRotateComponent, selectors: [["app-auto-rotate"]], decls: 1, vars: 1, consts: [["tooltip", "Auto rotate", "icon", "rotate", 3, "active", "click"]], template: function AutoRotateComponent_Template(rf, ctx) {
762
- if (rf & 1) {
763
- i0.ɵɵelementStart(0, "app-menu-toggle", 0);
764
- i0.ɵɵlistener("click", function AutoRotateComponent_Template_app_menu_toggle_click_0_listener() { return ctx.toggleAutoRotate(); });
765
- i0.ɵɵelementEnd();
766
- }
767
- if (rf & 2) {
768
- i0.ɵɵproperty("active", ctx.autoRotate);
769
- }
770
- }, dependencies: [MenuToggleComponent] });
771
- (function () {
772
- (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AutoRotateComponent, [{
773
- type: Component,
774
- args: [{ selector: 'app-auto-rotate', template: "<app-menu-toggle\n tooltip=\"Auto rotate\"\n icon=\"rotate\"\n [active]=\"autoRotate\"\n (click)=\"toggleAutoRotate()\"\n>\n</app-menu-toggle>\n" }]
775
- }], function () { return [{ type: EventDisplayService }]; }, null);
776
- })();
777
-
778
- const _c0$7 = ["overlayCard"];
779
- const _c1$2 = ["resizeHandleCorner"];
780
- function OverlayComponent_div_2_div_1_Template(rf, ctx) {
781
- if (rf & 1) {
782
- i0.ɵɵelementStart(0, "div", 10);
783
- i0.ɵɵnamespaceSVG();
784
- i0.ɵɵelementStart(1, "svg");
785
- i0.ɵɵelement(2, "use");
786
- i0.ɵɵelementEnd()();
787
- }
788
- if (rf & 2) {
789
- const ctx_r4 = i0.ɵɵnextContext(2);
790
- i0.ɵɵadvance(2);
791
- i0.ɵɵattributeInterpolate2("href", "assets/icons/", ctx_r4.icon, ".svg#", ctx_r4.icon, "");
792
- }
793
- }
794
- const _c2 = function (a0) { return { "with-body": a0 }; };
795
- const _c3 = function (a0) { return { expand: a0 }; };
796
- function OverlayComponent_div_2_Template(rf, ctx) {
797
- if (rf & 1) {
798
- const _r6 = i0.ɵɵgetCurrentView();
799
- i0.ɵɵelementStart(0, "div", 5);
800
- i0.ɵɵtemplate(1, OverlayComponent_div_2_div_1_Template, 3, 2, "div", 6);
801
- i0.ɵɵelementStart(2, "h5", 7);
802
- i0.ɵɵtext(3);
803
- i0.ɵɵelementEnd();
804
- i0.ɵɵelementStart(4, "button", 8);
805
- i0.ɵɵlistener("click", function OverlayComponent_div_2_Template_button_click_4_listener() { i0.ɵɵrestoreView(_r6); const ctx_r5 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r5.showBody = !ctx_r5.showBody); });
806
- i0.ɵɵnamespaceSVG();
807
- i0.ɵɵelementStart(5, "svg");
808
- i0.ɵɵelement(6, "use", 9);
809
- i0.ɵɵelementEnd()()();
810
- }
811
- if (rf & 2) {
812
- const ctx_r1 = i0.ɵɵnextContext();
813
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c2, ctx_r1.showBody));
814
- i0.ɵɵadvance(1);
815
- i0.ɵɵproperty("ngIf", ctx_r1.icon);
816
- i0.ɵɵadvance(2);
817
- i0.ɵɵtextInterpolate(ctx_r1.overlayTitle);
818
- i0.ɵɵadvance(1);
819
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c3, ctx_r1.showBody));
820
- }
821
- }
822
- const _c4 = function (a0) { return { "transparent-bg": a0 }; };
823
- function OverlayComponent_div_3_Template(rf, ctx) {
824
- if (rf & 1) {
825
- i0.ɵɵelementStart(0, "div", 11);
826
- i0.ɵɵprojection(1);
827
- i0.ɵɵelementEnd();
828
- }
829
- if (rf & 2) {
830
- const ctx_r2 = i0.ɵɵnextContext();
831
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(1, _c4, ctx_r2.transparentBody));
832
- }
833
- }
834
- function OverlayComponent_span_4_Template(rf, ctx) {
835
- if (rf & 1) {
836
- const _r9 = i0.ɵɵgetCurrentView();
837
- i0.ɵɵelementStart(0, "span", 12, 13);
838
- i0.ɵɵlistener("cdkDragMoved", function OverlayComponent_span_4_Template_span_cdkDragMoved_0_listener() { i0.ɵɵrestoreView(_r9); const ctx_r8 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r8.onResize()); });
839
- i0.ɵɵelementEnd();
840
- }
841
- if (rf & 2) {
842
- const ctx_r3 = i0.ɵɵnextContext();
843
- i0.ɵɵproperty("hidden", !ctx_r3.showBody);
844
- }
845
- }
846
- const _c5 = ["*"];
847
- /**
848
- * Component for overlay panel.
849
- */
850
- class OverlayComponent {
851
- constructor() {
852
- /** If the overlay is open or not. */
853
- this.active = false;
854
- /** If the overlay is resizable. */
855
- this.resizable = false;
856
- /** If the overlay body is transparent or not. */
857
- this.transparentBody = false;
858
- /** If the aspect ratio is kept fixed or not. */
859
- this.keepAspectRatioFixed = false;
860
- /** If the overlay body is visible or not. */
861
- this.showBody = true;
862
- /** Aspect ratio of the overlay view. */
863
- this.aspectRatio = window.innerWidth / window.innerHeight;
864
- /** Minimum resizable width. */
865
- this.MIN_RES_WIDTH = 300;
866
- /** Minimum resizable height */
867
- this.MIN_RES_HEIGHT = 100;
868
- }
869
- /**
870
- * Move the resizable handle to the bottom right after the component is created.
871
- */
872
- ngAfterViewInit() {
873
- if (this.resizable) {
874
- const resizeHandleElement = this.resizeHandleCorner.nativeElement;
875
- resizeHandleElement.style.bottom = '0';
876
- resizeHandleElement.style.right = '0';
877
- new ResizeSensor(this.overlayCard.nativeElement, () => {
878
- this.resetHandlePosition();
879
- });
880
- window.addEventListener('resize', () => {
881
- this.resetHandlePosition();
882
- });
883
- }
884
- }
885
- /**
886
- * Resize the overlay card when the resize handle is dragged.
887
- */
888
- onResize() {
889
- const resizeHandleElement = this.resizeHandleCorner.nativeElement;
890
- const overlayCardElement = this.overlayCard.nativeElement;
891
- const dragRect = resizeHandleElement.getBoundingClientRect();
892
- const overlayRect = overlayCardElement.getBoundingClientRect();
893
- const width = dragRect.left - overlayRect.left + dragRect.width;
894
- const height = dragRect.top - overlayRect.top + dragRect.height;
895
- this.setHandleTransform(overlayRect, dragRect);
896
- if (width > this.MIN_RES_WIDTH && height > this.MIN_RES_HEIGHT) {
897
- overlayCardElement.style.width = width + 'px';
898
- if (this.keepAspectRatioFixed) {
899
- overlayCardElement.style.height = width / this.aspectRatio + 30 + 'px';
900
- }
901
- else {
902
- overlayCardElement.style.height = height + 'px';
903
- }
904
- }
905
- }
906
- /**
907
- * Reset resize handle position.
908
- */
909
- resetHandlePosition() {
910
- const resizeHandleElement = this.resizeHandleCorner.nativeElement;
911
- this.setHandleTransform(this.overlayCard.nativeElement.getBoundingClientRect(), resizeHandleElement.getBoundingClientRect());
912
- resizeHandleElement.style.bottom = null;
913
- resizeHandleElement.style.right = null;
914
- }
915
- /**
916
- * Set the position of the resize handle using transform3d.
917
- * @param overlayRect Bounding client rectangle of the overlay card.
918
- * @param dragRect Bounding client rectangle of the resize handle.
919
- */
920
- setHandleTransform(overlayRect, dragRect) {
921
- const translateX = overlayRect.width - dragRect.width;
922
- const translateY = overlayRect.height - dragRect.height;
923
- this.resizeHandleCorner.nativeElement.style.transform = `translate3d(${translateX}px, ${translateY}px, 0)`;
924
- }
925
- }
926
- OverlayComponent.ɵfac = function OverlayComponent_Factory(t) { return new (t || OverlayComponent)(); };
927
- OverlayComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: OverlayComponent, selectors: [["app-overlay"]], viewQuery: function OverlayComponent_Query(rf, ctx) {
928
- if (rf & 1) {
929
- i0.ɵɵviewQuery(_c0$7, 5);
930
- i0.ɵɵviewQuery(_c1$2, 5);
931
- }
932
- if (rf & 2) {
933
- let _t;
934
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.overlayCard = _t.first);
935
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.resizeHandleCorner = _t.first);
936
- }
937
- }, inputs: { overlayTitle: "overlayTitle", active: "active", icon: "icon", resizable: "resizable", transparentBody: "transparentBody", keepAspectRatioFixed: "keepAspectRatioFixed" }, ngContentSelectors: _c5, decls: 5, vars: 4, consts: [["cdkDrag", "", "cdkDragBoundary", "body", 1, "overlay-card", "card", 3, "hidden"], ["overlayCard", ""], ["class", "card-header d-flex justify-content-between", "cdkDragHandle", "", 3, "ngClass", 4, "ngIf"], ["class", "overlay-card-content", 3, "ngClass", 4, "ngIf"], ["class", "resize-handle corner", "cdkDrag", "", 3, "hidden", "cdkDragMoved", 4, "ngIf"], ["cdkDragHandle", "", 1, "card-header", "d-flex", "justify-content-between", 3, "ngClass"], ["class", "align-self-center card-icon", 4, "ngIf"], [1, "align-self-center", "m-0", "px-2"], ["matTooltip", "Expand / Collapse", "matTooltipPosition", "right", 1, "align-self-center", "card-icon", "btn-blank", "expandCollapse", 3, "ngClass", "click"], ["href", "assets/icons/expand.svg#expand"], [1, "align-self-center", "card-icon"], [1, "overlay-card-content", 3, "ngClass"], ["cdkDrag", "", 1, "resize-handle", "corner", 3, "hidden", "cdkDragMoved"], ["resizeHandleCorner", ""]], template: function OverlayComponent_Template(rf, ctx) {
938
- if (rf & 1) {
939
- i0.ɵɵprojectionDef();
940
- i0.ɵɵelementStart(0, "div", 0, 1);
941
- i0.ɵɵtemplate(2, OverlayComponent_div_2_Template, 7, 8, "div", 2);
942
- i0.ɵɵtemplate(3, OverlayComponent_div_3_Template, 2, 3, "div", 3);
943
- i0.ɵɵtemplate(4, OverlayComponent_span_4_Template, 2, 1, "span", 4);
944
- i0.ɵɵelementEnd();
945
- }
946
- if (rf & 2) {
947
- i0.ɵɵproperty("hidden", !ctx.active);
948
- i0.ɵɵadvance(2);
949
- i0.ɵɵproperty("ngIf", ctx.overlayTitle);
950
- i0.ɵɵadvance(1);
951
- i0.ɵɵproperty("ngIf", ctx.showBody);
952
- i0.ɵɵadvance(1);
953
- i0.ɵɵproperty("ngIf", ctx.resizable);
954
- }
955
- }, dependencies: [i2.NgClass, i2.NgIf, i2$4.CdkDrag, i2$4.CdkDragHandle, i2$3.MatTooltip], styles: [".overlay-card.card{color:var(--phoenix-text-color);background:none;max-width:100vw;font-size:12px;min-width:300px;height:100%;max-height:70vh;box-shadow:none;border:none;position:relative;z-index:200}.overlay-card.card .card-header{width:12rem;background:var(--phoenix-background-color-secondary);box-shadow:var(--phoenix-box-shadow);padding:.4rem .8rem;border-radius:10px;border:none;cursor:move;text-align:center;transition:all .2s}.overlay-card.card .card-header.with-body{border-bottom-left-radius:0;border-bottom-right-radius:0}.overlay-card.card .card-header .card-icon{display:flex;height:.7rem;width:.7rem}.overlay-card.card .card-header h5{font-size:.9rem}.overlay-card.card .card-header .expandCollapse{cursor:pointer;transition:all .2s}.overlay-card.card .card-header .expandCollapse.expand{transform:scaleY(-1)}.overlay-card.card .card-header .expandCollapse svg{width:100%;height:100%}.overlay-card.card .overlay-card-content{background:var(--phoenix-background-color-secondary);box-shadow:var(--phoenix-box-shadow);border-radius:0 10px 10px;overflow:auto;height:100%}.overlay-card.card .overlay-card-content.transparent-bg{background:none}.overlay-card.card .list-group{color:var(--phoenix-text-color-secondary);background:var(--phoenix-background-color-secondary);max-height:40vh;overflow:auto}.overlay-card.card .list-group .list-group-item{background-color:var(--phoenix-background-color-secondary);border-color:var(--phoenix-border)}.overlay-card.card .resize-handle{width:1rem;height:1rem;cursor:nwse-resize;position:absolute}.overlay-card.card .resize-handle.corner{border-right:.2rem solid var(--phoenix-text-color);border-bottom:.2rem solid var(--phoenix-text-color)}\n"], encapsulation: 2 });
956
- (function () {
957
- (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(OverlayComponent, [{
958
- type: Component,
959
- args: [{ selector: 'app-overlay', encapsulation: ViewEncapsulation.None, template: "<div\n #overlayCard\n class=\"overlay-card card\"\n [hidden]=\"!active\"\n cdkDrag\n cdkDragBoundary=\"body\"\n>\n <div\n class=\"card-header d-flex justify-content-between\"\n [ngClass]=\"{ 'with-body': showBody }\"\n cdkDragHandle\n *ngIf=\"overlayTitle\"\n >\n <div class=\"align-self-center card-icon\" *ngIf=\"icon\">\n <svg>\n <use attr.href=\"assets/icons/{{ icon }}.svg#{{ icon }}\"></use>\n </svg>\n </div>\n <h5 class=\"align-self-center m-0 px-2\">{{ overlayTitle }}</h5>\n <button\n class=\"align-self-center card-icon btn-blank expandCollapse\"\n matTooltip=\"Expand / Collapse\"\n matTooltipPosition=\"right\"\n [ngClass]=\"{ expand: showBody }\"\n (click)=\"showBody = !showBody\"\n >\n <svg>\n <use href=\"assets/icons/expand.svg#expand\"></use>\n </svg>\n </button>\n </div>\n <div\n class=\"overlay-card-content\"\n *ngIf=\"showBody\"\n [ngClass]=\"{ 'transparent-bg': transparentBody }\"\n >\n <ng-content></ng-content>\n </div>\n <!-- Making the overlay resizable -->\n <span\n #resizeHandleCorner\n class=\"resize-handle corner\"\n *ngIf=\"resizable\"\n [hidden]=\"!showBody\"\n cdkDrag\n (cdkDragMoved)=\"onResize()\"\n ></span>\n</div>\n", styles: [".overlay-card.card{color:var(--phoenix-text-color);background:none;max-width:100vw;font-size:12px;min-width:300px;height:100%;max-height:70vh;box-shadow:none;border:none;position:relative;z-index:200}.overlay-card.card .card-header{width:12rem;background:var(--phoenix-background-color-secondary);box-shadow:var(--phoenix-box-shadow);padding:.4rem .8rem;border-radius:10px;border:none;cursor:move;text-align:center;transition:all .2s}.overlay-card.card .card-header.with-body{border-bottom-left-radius:0;border-bottom-right-radius:0}.overlay-card.card .card-header .card-icon{display:flex;height:.7rem;width:.7rem}.overlay-card.card .card-header h5{font-size:.9rem}.overlay-card.card .card-header .expandCollapse{cursor:pointer;transition:all .2s}.overlay-card.card .card-header .expandCollapse.expand{transform:scaleY(-1)}.overlay-card.card .card-header .expandCollapse svg{width:100%;height:100%}.overlay-card.card .overlay-card-content{background:var(--phoenix-background-color-secondary);box-shadow:var(--phoenix-box-shadow);border-radius:0 10px 10px;overflow:auto;height:100%}.overlay-card.card .overlay-card-content.transparent-bg{background:none}.overlay-card.card .list-group{color:var(--phoenix-text-color-secondary);background:var(--phoenix-background-color-secondary);max-height:40vh;overflow:auto}.overlay-card.card .list-group .list-group-item{background-color:var(--phoenix-background-color-secondary);border-color:var(--phoenix-border)}.overlay-card.card .resize-handle{width:1rem;height:1rem;cursor:nwse-resize;position:absolute}.overlay-card.card .resize-handle.corner{border-right:.2rem solid var(--phoenix-text-color);border-bottom:.2rem solid var(--phoenix-text-color)}\n"] }]
960
- }], null, { overlayTitle: [{
961
- type: Input
962
- }], active: [{
963
- type: Input
964
- }], icon: [{
965
- type: Input
966
- }], resizable: [{
967
- type: Input
968
- }], transparentBody: [{
969
- type: Input
970
- }], keepAspectRatioFixed: [{
971
- type: Input
972
- }], overlayCard: [{
973
- type: ViewChild,
974
- args: ['overlayCard']
975
- }], resizeHandleCorner: [{
976
- type: ViewChild,
977
- args: ['resizeHandleCorner']
978
- }] });
979
- })();
980
-
981
- function CollectionsInfoOverlayComponent_div_1_div_1_option_10_Template(rf, ctx) {
982
- if (rf & 1) {
983
- i0.ɵɵelementStart(0, "option", 15);
984
- i0.ɵɵtext(1);
985
- i0.ɵɵelementEnd();
986
- }
987
- if (rf & 2) {
988
- const collection_r6 = ctx.$implicit;
989
- i0.ɵɵproperty("value", collection_r6);
990
- i0.ɵɵadvance(1);
991
- i0.ɵɵtextInterpolate1(" ", collection_r6, " ");
992
- }
993
- }
994
- function CollectionsInfoOverlayComponent_div_1_div_1_mat_checkbox_11_Template(rf, ctx) {
995
- if (rf & 1) {
996
- const _r8 = i0.ɵɵgetCurrentView();
997
- i0.ɵɵelementStart(0, "mat-checkbox", 16);
998
- i0.ɵɵlistener("change", function CollectionsInfoOverlayComponent_div_1_div_1_mat_checkbox_11_Template_mat_checkbox_change_0_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r7 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r7.toggleInvisible($event.checked)); });
999
- i0.ɵɵtext(1, " Hide Invisible Objects ");
1000
- i0.ɵɵelementEnd();
1001
- }
1002
- }
1003
- function CollectionsInfoOverlayComponent_div_1_div_1_Template(rf, ctx) {
1004
- if (rf & 1) {
1005
- const _r10 = i0.ɵɵgetCurrentView();
1006
- i0.ɵɵelementStart(0, "div", 7)(1, "div", 8)(2, "span");
1007
- i0.ɵɵtext(3, "Choose a collection: ");
1008
- i0.ɵɵelementEnd();
1009
- i0.ɵɵelementStart(4, "div", 9)(5, "label", 10);
1010
- i0.ɵɵtext(6, "Event");
1011
- i0.ɵɵelementEnd();
1012
- i0.ɵɵelementStart(7, "select", 11);
1013
- i0.ɵɵlistener("change", function CollectionsInfoOverlayComponent_div_1_div_1_Template_select_change_7_listener($event) { i0.ɵɵrestoreView(_r10); const ctx_r9 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r9.changeCollection($event.target.value)); });
1014
- i0.ɵɵelementStart(8, "option", 12);
1015
- i0.ɵɵtext(9, "Choose Collection");
1016
- i0.ɵɵelementEnd();
1017
- i0.ɵɵtemplate(10, CollectionsInfoOverlayComponent_div_1_div_1_option_10_Template, 2, 2, "option", 13);
1018
- i0.ɵɵelementEnd()();
1019
- i0.ɵɵtemplate(11, CollectionsInfoOverlayComponent_div_1_div_1_mat_checkbox_11_Template, 2, 0, "mat-checkbox", 14);
1020
- i0.ɵɵelementEnd()();
1021
- }
1022
- if (rf & 2) {
1023
- const ctx_r1 = i0.ɵɵnextContext(2);
1024
- i0.ɵɵadvance(10);
1025
- i0.ɵɵproperty("ngForOf", ctx_r1.collections);
1026
- i0.ɵɵadvance(1);
1027
- i0.ɵɵproperty("ngIf", ctx_r1.showingCollection);
1028
- }
1029
- }
1030
- function CollectionsInfoOverlayComponent_div_1_table_3_th_9_Template(rf, ctx) {
1031
- if (rf & 1) {
1032
- const _r15 = i0.ɵɵgetCurrentView();
1033
- i0.ɵɵelementStart(0, "th")(1, "div", 20)(2, "div");
1034
- i0.ɵɵtext(3);
1035
- i0.ɵɵelementEnd();
1036
- i0.ɵɵelementStart(4, "div", 21)(5, "button", 22);
1037
- i0.ɵɵlistener("click", function CollectionsInfoOverlayComponent_div_1_table_3_th_9_Template_button_click_5_listener() { const restoredCtx = i0.ɵɵrestoreView(_r15); const column_r13 = restoredCtx.$implicit; const ctx_r14 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r14.sort(column_r13, "dec")); });
1038
- i0.ɵɵnamespaceSVG();
1039
- i0.ɵɵelementStart(6, "svg");
1040
- i0.ɵɵelement(7, "use", 23);
1041
- i0.ɵɵelementEnd()();
1042
- i0.ɵɵnamespaceHTML();
1043
- i0.ɵɵelementStart(8, "button", 24);
1044
- i0.ɵɵlistener("click", function CollectionsInfoOverlayComponent_div_1_table_3_th_9_Template_button_click_8_listener() { const restoredCtx = i0.ɵɵrestoreView(_r15); const column_r13 = restoredCtx.$implicit; const ctx_r16 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r16.sort(column_r13, "asc")); });
1045
- i0.ɵɵnamespaceSVG();
1046
- i0.ɵɵelementStart(9, "svg");
1047
- i0.ɵɵelement(10, "use", 23);
1048
- i0.ɵɵelementEnd()()()()();
1049
- }
1050
- if (rf & 2) {
1051
- const column_r13 = ctx.$implicit;
1052
- const ctx_r11 = i0.ɵɵnextContext(3);
1053
- i0.ɵɵadvance(3);
1054
- i0.ɵɵtextInterpolate1(" ", ctx_r11.getPrettySymbol(column_r13), " ");
1055
- }
1056
- }
1057
- function CollectionsInfoOverlayComponent_div_1_table_3_tr_11_div_4_Template(rf, ctx) {
1058
- if (rf & 1) {
1059
- const _r23 = i0.ɵɵgetCurrentView();
1060
- i0.ɵɵelementStart(0, "div", 33)(1, "button", 34);
1061
- i0.ɵɵlistener("click", function CollectionsInfoOverlayComponent_div_1_table_3_tr_11_div_4_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r23); const object_r17 = i0.ɵɵnextContext().$implicit; const ctx_r21 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r21.lookAtObject(object_r17.uuid)); });
1062
- i0.ɵɵnamespaceSVG();
1063
- i0.ɵɵelementStart(2, "svg");
1064
- i0.ɵɵelement(3, "use", 35);
1065
- i0.ɵɵelementEnd()();
1066
- i0.ɵɵnamespaceHTML();
1067
- i0.ɵɵelementStart(4, "button", 36);
1068
- i0.ɵɵlistener("click", function CollectionsInfoOverlayComponent_div_1_table_3_tr_11_div_4_Template_button_click_4_listener() { i0.ɵɵrestoreView(_r23); const object_r17 = i0.ɵɵnextContext().$implicit; const ctx_r24 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r24.highlightObject(object_r17.uuid)); });
1069
- i0.ɵɵnamespaceSVG();
1070
- i0.ɵɵelementStart(5, "svg");
1071
- i0.ɵɵelement(6, "use", 37);
1072
- i0.ɵɵelementEnd()()();
1073
- }
1074
- }
1075
- function CollectionsInfoOverlayComponent_div_1_table_3_tr_11_td_13_Template(rf, ctx) {
1076
- if (rf & 1) {
1077
- i0.ɵɵnamespaceSVG();
1078
- i0.ɵɵnamespaceHTML();
1079
- i0.ɵɵelementStart(0, "td");
1080
- i0.ɵɵtext(1);
1081
- i0.ɵɵelementEnd();
1082
- }
1083
- if (rf & 2) {
1084
- const column_r26 = ctx.$implicit;
1085
- const object_r17 = i0.ɵɵnextContext().$implicit;
1086
- i0.ɵɵadvance(1);
1087
- i0.ɵɵtextInterpolate1(" ", object_r17[column_r26], " ");
1088
- }
1089
- }
1090
- const _c0$6 = function (a0, a1, a2) { return { "active-object": a0, "is-cut": a1, "d-none": a2 }; };
1091
- function CollectionsInfoOverlayComponent_div_1_table_3_tr_11_Template(rf, ctx) {
1092
- if (rf & 1) {
1093
- const _r29 = i0.ɵɵgetCurrentView();
1094
- i0.ɵɵelementStart(0, "tr", 25)(1, "td");
1095
- i0.ɵɵtext(2);
1096
- i0.ɵɵelementEnd();
1097
- i0.ɵɵelementStart(3, "td");
1098
- i0.ɵɵtemplate(4, CollectionsInfoOverlayComponent_div_1_table_3_tr_11_div_4_Template, 7, 0, "div", 26);
1099
- i0.ɵɵelementEnd();
1100
- i0.ɵɵelementStart(5, "td")(6, "div", 27)(7, "div", 28);
1101
- i0.ɵɵelement(8, "input", 29);
1102
- i0.ɵɵelementEnd();
1103
- i0.ɵɵelementStart(9, "div", 30)(10, "button", 31);
1104
- i0.ɵɵlistener("click", function CollectionsInfoOverlayComponent_div_1_table_3_tr_11_Template_button_click_10_listener() { const restoredCtx = i0.ɵɵrestoreView(_r29); const i_r18 = restoredCtx.index; const object_r17 = restoredCtx.$implicit; const ctx_r28 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r28.addLabel(i_r18, object_r17.uuid)); });
1105
- i0.ɵɵnamespaceSVG();
1106
- i0.ɵɵelementStart(11, "svg");
1107
- i0.ɵɵelement(12, "use", 32);
1108
- i0.ɵɵelementEnd()()()()();
1109
- i0.ɵɵtemplate(13, CollectionsInfoOverlayComponent_div_1_table_3_tr_11_td_13_Template, 2, 1, "td", 18);
1110
- i0.ɵɵelementEnd();
1111
- }
1112
- if (rf & 2) {
1113
- const object_r17 = ctx.$implicit;
1114
- const i_r18 = ctx.index;
1115
- const ctx_r12 = i0.ɵɵnextContext(3);
1116
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction3(6, _c0$6, ctx_r12.activeObject && ctx_r12.activeObject.value === object_r17.uuid, object_r17.isCut, object_r17.isCut && ctx_r12.hideInvisible));
1117
- i0.ɵɵattribute("id", object_r17.uuid);
1118
- i0.ɵɵadvance(2);
1119
- i0.ɵɵtextInterpolate1("#", i_r18, "");
1120
- i0.ɵɵadvance(2);
1121
- i0.ɵɵproperty("ngIf", object_r17.uuid);
1122
- i0.ɵɵadvance(4);
1123
- i0.ɵɵproperty("id", "label" + i_r18);
1124
- i0.ɵɵadvance(5);
1125
- i0.ɵɵproperty("ngForOf", ctx_r12.collectionColumns);
1126
- }
1127
- }
1128
- function CollectionsInfoOverlayComponent_div_1_table_3_Template(rf, ctx) {
1129
- if (rf & 1) {
1130
- i0.ɵɵelementStart(0, "table", 17)(1, "thead")(2, "tr")(3, "th");
1131
- i0.ɵɵtext(4, "No.");
1132
- i0.ɵɵelementEnd();
1133
- i0.ɵɵelementStart(5, "th");
1134
- i0.ɵɵtext(6, "Selection");
1135
- i0.ɵɵelementEnd();
1136
- i0.ɵɵelementStart(7, "th");
1137
- i0.ɵɵtext(8, "Label");
1138
- i0.ɵɵelementEnd();
1139
- i0.ɵɵtemplate(9, CollectionsInfoOverlayComponent_div_1_table_3_th_9_Template, 11, 1, "th", 18);
1140
- i0.ɵɵelementEnd()();
1141
- i0.ɵɵelementStart(10, "tbody");
1142
- i0.ɵɵtemplate(11, CollectionsInfoOverlayComponent_div_1_table_3_tr_11_Template, 14, 10, "tr", 19);
1143
- i0.ɵɵelementEnd()();
1144
- }
1145
- if (rf & 2) {
1146
- const ctx_r2 = i0.ɵɵnextContext(2);
1147
- i0.ɵɵadvance(9);
1148
- i0.ɵɵproperty("ngForOf", ctx_r2.collectionColumns);
1149
- i0.ɵɵadvance(2);
1150
- i0.ɵɵproperty("ngForOf", ctx_r2.showingCollection);
1151
- }
1152
- }
1153
- function CollectionsInfoOverlayComponent_div_1_p_4_Template(rf, ctx) {
1154
- if (rf & 1) {
1155
- i0.ɵɵelementStart(0, "p", 38);
1156
- i0.ɵɵtext(1, " Load event data to be able to display information about the collections here. ");
1157
- i0.ɵɵelementEnd();
1158
- }
1159
- }
1160
- function CollectionsInfoOverlayComponent_div_1_Template(rf, ctx) {
1161
- if (rf & 1) {
1162
- i0.ɵɵelementStart(0, "div", 2);
1163
- i0.ɵɵtemplate(1, CollectionsInfoOverlayComponent_div_1_div_1_Template, 12, 2, "div", 3);
1164
- i0.ɵɵelementStart(2, "div", 4);
1165
- i0.ɵɵtemplate(3, CollectionsInfoOverlayComponent_div_1_table_3_Template, 12, 2, "table", 5);
1166
- i0.ɵɵtemplate(4, CollectionsInfoOverlayComponent_div_1_p_4_Template, 2, 0, "p", 6);
1167
- i0.ɵɵelementEnd()();
1168
- }
1169
- if (rf & 2) {
1170
- const ctx_r0 = i0.ɵɵnextContext();
1171
- i0.ɵɵadvance(1);
1172
- i0.ɵɵproperty("ngIf", ctx_r0.collections != null);
1173
- i0.ɵɵadvance(2);
1174
- i0.ɵɵproperty("ngIf", ctx_r0.showingCollection);
1175
- i0.ɵɵadvance(1);
1176
- i0.ɵɵproperty("ngIf", !ctx_r0.collections);
1177
- }
1178
- }
1179
- class CollectionsInfoOverlayComponent {
1180
- constructor(elementRef, eventDisplay) {
1181
- this.elementRef = elementRef;
1182
- this.eventDisplay = eventDisplay;
1183
- this.getPrettySymbol = PrettySymbols.getPrettySymbol;
1184
- }
1185
- ngOnInit() {
1186
- this.eventDisplay.listenToDisplayedEventChange((_event) => (this.collections = this.eventDisplay.getCollections()));
1187
- this.activeObject = this.eventDisplay.getActiveObjectId();
1188
- this.activeObject.onUpdate((value) => {
1189
- if (document.getElementById(value)) {
1190
- document.getElementById(value).scrollIntoView(false);
1191
- }
1192
- });
1193
- }
1194
- changeCollection(selectedCollection) {
1195
- const eventDataGroup = this.getEventDataGroup();
1196
- this.selectedCollection = selectedCollection;
1197
- this.showingCollection = this.eventDisplay
1198
- .getCollection(selectedCollection)
1199
- .map((object) => {
1200
- var _a;
1201
- return (Object.assign(Object.assign({}, object), { isCut: !((_a = eventDataGroup.getObjectByProperty('uuid', object.uuid)) === null || _a === void 0 ? void 0 : _a.visible) }));
1202
- });
1203
- this.collectionColumns = Object.keys(this.showingCollection[0]).filter((column) => !['uuid', 'hits', 'isCut'].includes(column) // FIXME - this is an ugly hack. But currently hits from tracks make track collections unusable. Better to have exlusion list passed in.
1204
- );
1205
- }
1206
- sort(column, order) {
1207
- if (order === 'asc')
1208
- this.showingCollection.sort((a, b) => (a[column] < b[column] ? -1 : 1));
1209
- else
1210
- this.showingCollection.sort((a, b) => (a[column] > b[column] ? -1 : 1));
1211
- }
1212
- lookAtObject(uuid) {
1213
- if (uuid) {
1214
- this.activeObject.update(uuid);
1215
- this.eventDisplay.lookAtObject(uuid);
1216
- }
1217
- }
1218
- highlightObject(uuid) {
1219
- if (uuid) {
1220
- this.activeObject.update(uuid);
1221
- this.eventDisplay.highlightObject(uuid);
1222
- }
1223
- }
1224
- toggleInvisible(checked) {
1225
- this.hideInvisible = checked;
1226
- }
1227
- addLabel(index, uuid) {
1228
- const labelValue = this.elementRef.nativeElement.querySelector(`#label${index}`).value;
1229
- if (this.selectedCollection) {
1230
- // Empty labelValue will remove the label object
1231
- this.eventDisplay.addLabelToObject(labelValue, this.selectedCollection, index, uuid);
1232
- }
1233
- }
1234
- getEventDataGroup() {
1235
- return this.eventDisplay
1236
- .getThreeManager()
1237
- .getSceneManager()
1238
- .getScene()
1239
- .getObjectByName(SceneManager.EVENT_DATA_ID);
1240
- }
1241
- }
1242
- CollectionsInfoOverlayComponent.ɵfac = function CollectionsInfoOverlayComponent_Factory(t) { return new (t || CollectionsInfoOverlayComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(EventDisplayService)); };
1243
- CollectionsInfoOverlayComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CollectionsInfoOverlayComponent, selectors: [["app-collections-info-overlay"]], inputs: { showObjectsInfo: "showObjectsInfo" }, decls: 2, vars: 3, consts: [["overlayTitle", "Collections Info", "icon", "info", 3, "resizable", "active"], ["class", "collectionsInfo m-2", 4, "ngIf"], [1, "collectionsInfo", "m-2"], ["class", "collectionSelector mb-2 d-flex align-items-center", 4, "ngIf"], [1, "boxBody", "table-responsive"], ["id", "collectionTable", "class", "table table-borderless table-sm", 4, "ngIf"], ["class", "emptyBox", 4, "ngIf"], [1, "collectionSelector", "mb-2", "d-flex", "align-items-center"], [1, "d-flex", "align-items-center"], [1, "eventSelector"], ["for", "event"], ["id", "collection", "name", "collection", 3, "change"], ["value", "", "selected", "", "disabled", "", "hidden", ""], [3, "value", 4, "ngFor", "ngForOf"], [3, "change", 4, "ngIf"], [3, "value"], [3, "change"], ["id", "collectionTable", 1, "table", "table-borderless", "table-sm"], [4, "ngFor", "ngForOf"], [3, "ngClass", 4, "ngFor", "ngForOf"], [1, "head-wrapper"], [1, "sort-options"], [1, "icon-wrapper", "icon-button", "btn-blank", "up", 3, "click"], ["href", "assets/icons/expand.svg#expand"], [1, "icon-wrapper", "icon-button", "btn-blank", 3, "click"], [3, "ngClass"], ["class", "row justify-content-center icon-wrapper", 4, "ngIf"], [1, "row", "m-0", "add-label"], [1, "col-10", "p-0"], ["type", "text", 1, "form-control", "form-control-sm", 3, "id"], [1, "col-2", "p-0", "pl-2", "text-center", "icon-wrapper"], ["matTooltip", "Add, update or remove object label", 1, "object-select", "btn-blank", 3, "click"], ["href", "assets/icons/update.svg#update"], [1, "row", "justify-content-center", "icon-wrapper"], ["matTooltip", "Move camera to object", 1, "object-select", "btn-blank", 3, "click"], ["href", "assets/icons/views.svg#views"], ["matTooltip", "Highlight object", 1, "object-select", "btn-blank", 3, "click"], ["href", "assets/icons/cursor.svg#cursor"], [1, "emptyBox"]], template: function CollectionsInfoOverlayComponent_Template(rf, ctx) {
1244
- if (rf & 1) {
1245
- i0.ɵɵelementStart(0, "app-overlay", 0);
1246
- i0.ɵɵtemplate(1, CollectionsInfoOverlayComponent_div_1_Template, 5, 3, "div", 1);
1247
- i0.ɵɵelementEnd();
1248
- }
1249
- if (rf & 2) {
1250
- i0.ɵɵproperty("resizable", true)("active", ctx.showObjectsInfo);
1251
- i0.ɵɵadvance(1);
1252
- i0.ɵɵproperty("ngIf", ctx.showObjectsInfo);
1253
- }
1254
- }, dependencies: [i2.NgClass, i2.NgForOf, i2.NgIf, i2$3.MatTooltip, i3.NgSelectOption, i3.ɵNgSelectMultipleOption, i4$1.MatCheckbox, OverlayComponent], styles: [".collectionsInfo[_ngcontent-%COMP%]{height:95%}.collectionsInfo[_ngcontent-%COMP%] .collectionSelector[_ngcontent-%COMP%]{height:15%;min-height:2rem}.collectionsInfo[_ngcontent-%COMP%] .collectionSelector[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--phoenix-text-color-secondary);margin-right:1rem}.collectionsInfo[_ngcontent-%COMP%] .collectionSelector[_ngcontent-%COMP%] mat-checkbox[_ngcontent-%COMP%]{margin-left:1rem}.boxBody[_ngcontent-%COMP%]{height:85%;overflow:scroll}.boxBody[_ngcontent-%COMP%] p.emptyBox[_ngcontent-%COMP%]{max-width:21em}.boxBody[_ngcontent-%COMP%] .add-label[_ngcontent-%COMP%]{min-width:8rem}.boxBody[_ngcontent-%COMP%] .add-label[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{padding:.1rem .3rem;font-size:.75rem}#collectionTable[_ngcontent-%COMP%]{position:relative;color:var(--phoenix-text-color-secondary)}#collectionTable[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{position:sticky;top:0;z-index:100;background:var(--phoenix-background-color-secondary)}#collectionTable[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%] .head-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center}#collectionTable[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%] .head-wrapper[_ngcontent-%COMP%] .sort-options[_ngcontent-%COMP%]{display:flex;flex-direction:row}#collectionTable[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%] .head-wrapper[_ngcontent-%COMP%] .sort-options[_ngcontent-%COMP%] .icon-wrapper[_ngcontent-%COMP%]{display:flex;width:1rem;height:1rem;padding:.2rem}#collectionTable[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%] .head-wrapper[_ngcontent-%COMP%] .sort-options[_ngcontent-%COMP%] .icon-wrapper.up[_ngcontent-%COMP%]{transform:rotate(180deg)}#collectionTable[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%] .head-wrapper[_ngcontent-%COMP%] .sort-options[_ngcontent-%COMP%] .icon-wrapper[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:100%;height:100%}#collectionTable[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{padding-right:1.2rem}#collectionTable[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] *[_ngcontent-%COMP%]:last-child{padding-right:0}#collectionTable[_ngcontent-%COMP%] tr.is-cut[_ngcontent-%COMP%]{opacity:.5}#collectionTable[_ngcontent-%COMP%] tr.active-object[_ngcontent-%COMP%]{color:var(--phoenix-background-color);background:var(--phoenix-text-color);box-shadow:0 0 15px var(--phoenix-text-color)}#collectionTable[_ngcontent-%COMP%] tr.active-object[_ngcontent-%COMP%] div.icon-wrapper[_ngcontent-%COMP%]{--phoenix-options-icon-path: var(--phoenix-background-color);--phoenix-options-icon-bg: var(--phoenix-text-color-hover)}#collectionTable[_ngcontent-%COMP%] tr.active-object[_ngcontent-%COMP%] .add-label[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{--phoenix-text-color: var(--phoenix-background-color);--phoenix-background-color-tertiary: var( --phoenix-text-color-secondary );--phoenix-border: var(--phoenix-background-color)}#collectionTable[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .object-select[_ngcontent-%COMP%]{position:relative;width:1.6rem;height:1.6rem;margin-right:.4em;text-align:center;background-color:var(--phoenix-options-icon-bg);border-radius:10px;cursor:pointer}#collectionTable[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .object-select[_ngcontent-%COMP%]:last-child{margin-right:0}#collectionTable[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .object-select[_ngcontent-%COMP%]:hover{border:1px solid var(--phoenix-options-icon-path)}#collectionTable[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .object-select[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{position:absolute;top:0;left:0;padding:.4rem;width:100%;height:100%;vertical-align:top}.eventSelector[_ngcontent-%COMP%]{display:flex}.eventSelector[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:none;color:var(--phoenix-text-color-secondary)}.eventSelector[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{width:9rem;padding:5px 10px;font-size:12px;border:1px solid rgba(88,88,88,.08);box-shadow:var(--phoenix-icon-shadow);background-color:var(--phoenix-background-color-tertiary);color:var(--phoenix-text-color-secondary)}"] });
1255
- (function () {
1256
- (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CollectionsInfoOverlayComponent, [{
1257
- type: Component,
1258
- args: [{ selector: 'app-collections-info-overlay', template: "<!-- Show objects -->\n<app-overlay\n overlayTitle=\"Collections Info\"\n icon=\"info\"\n [resizable]=\"true\"\n [active]=\"showObjectsInfo\"\n>\n <!-- Using ngIf to remove it from DOM since this panel requires heavy computing -->\n <div *ngIf=\"showObjectsInfo\" class=\"collectionsInfo m-2\">\n <div\n class=\"collectionSelector mb-2 d-flex align-items-center\"\n *ngIf=\"collections != null\"\n >\n <div class=\"d-flex align-items-center\">\n <span>Choose a collection: </span>\n <div class=\"eventSelector\">\n <label for=\"event\">Event</label>\n <select\n id=\"collection\"\n name=\"collection\"\n (change)=\"changeCollection($event.target.value)\"\n >\n <option value=\"\" selected disabled hidden>Choose Collection</option>\n <option *ngFor=\"let collection of collections\" [value]=\"collection\">\n {{ collection }}\n </option>\n </select>\n </div>\n <mat-checkbox\n *ngIf=\"showingCollection\"\n (change)=\"toggleInvisible($event.checked)\"\n >\n Hide Invisible Objects\n </mat-checkbox>\n </div>\n </div>\n\n <div class=\"boxBody table-responsive\">\n <table\n id=\"collectionTable\"\n class=\"table table-borderless table-sm\"\n *ngIf=\"showingCollection\"\n >\n <thead>\n <tr>\n <th>No.</th>\n <th>Selection</th>\n <th>Label</th>\n <th *ngFor=\"let column of collectionColumns\">\n <div class=\"head-wrapper\">\n <div>\n {{ getPrettySymbol(column) }}\n </div>\n <div class=\"sort-options\">\n <button\n class=\"icon-wrapper icon-button btn-blank up\"\n (click)=\"sort(column, 'dec')\"\n >\n <svg>\n <use href=\"assets/icons/expand.svg#expand\"></use>\n </svg>\n </button>\n <button\n class=\"icon-wrapper icon-button btn-blank\"\n (click)=\"sort(column, 'asc')\"\n >\n <svg>\n <use href=\"assets/icons/expand.svg#expand\"></use>\n </svg>\n </button>\n </div>\n </div>\n </th>\n </tr>\n </thead>\n <tbody>\n <tr\n *ngFor=\"let object of showingCollection; index as i\"\n [attr.id]=\"object.uuid\"\n [ngClass]=\"{\n 'active-object':\n activeObject && activeObject.value === object.uuid,\n 'is-cut': object.isCut,\n 'd-none': object.isCut && hideInvisible\n }\"\n >\n <td>#{{ i }}</td>\n <td>\n <div\n *ngIf=\"object.uuid\"\n class=\"row justify-content-center icon-wrapper\"\n >\n <button\n class=\"object-select btn-blank\"\n matTooltip=\"Move camera to object\"\n (click)=\"lookAtObject(object.uuid)\"\n >\n <svg>\n <use href=\"assets/icons/views.svg#views\"></use>\n </svg>\n </button>\n <button\n class=\"object-select btn-blank\"\n matTooltip=\"Highlight object\"\n (click)=\"highlightObject(object.uuid)\"\n >\n <svg>\n <use href=\"assets/icons/cursor.svg#cursor\"></use>\n </svg>\n </button>\n </div>\n </td>\n <td>\n <div class=\"row m-0 add-label\">\n <div class=\"col-10 p-0\">\n <input\n class=\"form-control form-control-sm\"\n type=\"text\"\n [id]=\"'label' + i\"\n />\n </div>\n <div class=\"col-2 p-0 pl-2 text-center icon-wrapper\">\n <button\n class=\"object-select btn-blank\"\n matTooltip=\"Add, update or remove object label\"\n (click)=\"addLabel(i, object.uuid)\"\n >\n <svg>\n <use href=\"assets/icons/update.svg#update\"></use>\n </svg>\n </button>\n </div>\n </div>\n </td>\n <td *ngFor=\"let column of collectionColumns\">\n {{ object[column] }}\n </td>\n </tr>\n </tbody>\n </table>\n <p class=\"emptyBox\" *ngIf=\"!collections\">\n Load event data to be able to display information about the collections\n here.\n </p>\n </div>\n </div>\n</app-overlay>\n", styles: [".collectionsInfo{height:95%}.collectionsInfo .collectionSelector{height:15%;min-height:2rem}.collectionsInfo .collectionSelector span{color:var(--phoenix-text-color-secondary);margin-right:1rem}.collectionsInfo .collectionSelector mat-checkbox{margin-left:1rem}.boxBody{height:85%;overflow:scroll}.boxBody p.emptyBox{max-width:21em}.boxBody .add-label{min-width:8rem}.boxBody .add-label input{padding:.1rem .3rem;font-size:.75rem}#collectionTable{position:relative;color:var(--phoenix-text-color-secondary)}#collectionTable thead tr th{position:sticky;top:0;z-index:100;background:var(--phoenix-background-color-secondary)}#collectionTable thead tr th .head-wrapper{display:flex;align-items:center}#collectionTable thead tr th .head-wrapper .sort-options{display:flex;flex-direction:row}#collectionTable thead tr th .head-wrapper .sort-options .icon-wrapper{display:flex;width:1rem;height:1rem;padding:.2rem}#collectionTable thead tr th .head-wrapper .sort-options .icon-wrapper.up{transform:rotate(180deg)}#collectionTable thead tr th .head-wrapper .sort-options .icon-wrapper svg{width:100%;height:100%}#collectionTable tr *{padding-right:1.2rem}#collectionTable tr *:last-child{padding-right:0}#collectionTable tr.is-cut{opacity:.5}#collectionTable tr.active-object{color:var(--phoenix-background-color);background:var(--phoenix-text-color);box-shadow:0 0 15px var(--phoenix-text-color)}#collectionTable tr.active-object div.icon-wrapper{--phoenix-options-icon-path: var(--phoenix-background-color);--phoenix-options-icon-bg: var(--phoenix-text-color-hover)}#collectionTable tr.active-object .add-label input{--phoenix-text-color: var(--phoenix-background-color);--phoenix-background-color-tertiary: var( --phoenix-text-color-secondary );--phoenix-border: var(--phoenix-background-color)}#collectionTable td .object-select{position:relative;width:1.6rem;height:1.6rem;margin-right:.4em;text-align:center;background-color:var(--phoenix-options-icon-bg);border-radius:10px;cursor:pointer}#collectionTable td .object-select:last-child{margin-right:0}#collectionTable td .object-select:hover{border:1px solid var(--phoenix-options-icon-path)}#collectionTable td .object-select svg{position:absolute;top:0;left:0;padding:.4rem;width:100%;height:100%;vertical-align:top}.eventSelector{display:flex}.eventSelector label{display:none;color:var(--phoenix-text-color-secondary)}.eventSelector select{width:9rem;padding:5px 10px;font-size:12px;border:1px solid rgba(88,88,88,.08);box-shadow:var(--phoenix-icon-shadow);background-color:var(--phoenix-background-color-tertiary);color:var(--phoenix-text-color-secondary)}\n"] }]
1259
- }], function () { return [{ type: i0.ElementRef }, { type: EventDisplayService }]; }, { showObjectsInfo: [{
1260
- type: Input
1261
- }] });
1262
- })();
1263
-
1264
- class CollectionsInfoComponent {
1265
- constructor(overlay) {
1266
- this.overlay = overlay;
1267
- this.showObjectsInfo = false;
1268
- }
1269
- ngOnInit() {
1270
- const overlayRef = this.overlay.create();
1271
- const overlayPortal = new ComponentPortal(CollectionsInfoOverlayComponent);
1272
- this.overlayWindow = overlayRef.attach(overlayPortal);
1273
- this.overlayWindow.instance.showObjectsInfo = this.showObjectsInfo;
1274
- }
1275
- ngOnDestroy() {
1276
- this.overlayWindow.destroy();
1277
- }
1278
- toggleOverlay() {
1279
- this.showObjectsInfo = !this.showObjectsInfo;
1280
- this.overlayWindow.instance.showObjectsInfo = this.showObjectsInfo;
1281
- }
1282
- }
1283
- CollectionsInfoComponent.ɵfac = function CollectionsInfoComponent_Factory(t) { return new (t || CollectionsInfoComponent)(i0.ɵɵdirectiveInject(i1$1.Overlay)); };
1284
- CollectionsInfoComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CollectionsInfoComponent, selectors: [["app-collections-info"]], decls: 1, vars: 1, consts: [["tooltip", "Event data collections info", "icon", "info", 3, "active", "click"]], template: function CollectionsInfoComponent_Template(rf, ctx) {
1285
- if (rf & 1) {
1286
- i0.ɵɵelementStart(0, "app-menu-toggle", 0);
1287
- i0.ɵɵlistener("click", function CollectionsInfoComponent_Template_app_menu_toggle_click_0_listener() { return ctx.toggleOverlay(); });
1288
- i0.ɵɵelementEnd();
1289
- }
1290
- if (rf & 2) {
1291
- i0.ɵɵproperty("active", ctx.showObjectsInfo);
1292
- }
1293
- }, dependencies: [MenuToggleComponent] });
1294
- (function () {
1295
- (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CollectionsInfoComponent, [{
1296
- type: Component,
1297
- args: [{ selector: 'app-collections-info', template: "<app-menu-toggle\n tooltip=\"Event data collections info\"\n icon=\"info\"\n [active]=\"showObjectsInfo\"\n (click)=\"toggleOverlay()\"\n>\n</app-menu-toggle>\n" }]
1298
- }], function () { return [{ type: i1$1.Overlay }]; }, null);
1299
- })();
1300
-
1301
- class DarkThemeComponent {
1302
- constructor(eventDisplay) {
1303
- this.eventDisplay = eventDisplay;
1304
- this.darkTheme = false;
1305
- }
1306
- ngOnInit() {
1307
- this.darkTheme = this.eventDisplay.getUIManager().getDarkTheme();
1308
- }
1309
- setDarkTheme() {
1310
- this.darkTheme = !this.darkTheme;
1311
- this.eventDisplay.getUIManager().setDarkTheme(this.darkTheme);
1312
- }
1313
- }
1314
- DarkThemeComponent.ɵfac = function DarkThemeComponent_Factory(t) { return new (t || DarkThemeComponent)(i0.ɵɵdirectiveInject(EventDisplayService)); };
1315
- DarkThemeComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: DarkThemeComponent, selectors: [["app-dark-theme"]], decls: 1, vars: 1, consts: [["tooltip", "Dark theme", "icon", "dark", 3, "active", "click"]], template: function DarkThemeComponent_Template(rf, ctx) {
1316
- if (rf & 1) {
1317
- i0.ɵɵelementStart(0, "app-menu-toggle", 0);
1318
- i0.ɵɵlistener("click", function DarkThemeComponent_Template_app_menu_toggle_click_0_listener() { return ctx.setDarkTheme(); });
1319
- i0.ɵɵelementEnd();
1320
- }
1321
- if (rf & 2) {
1322
- i0.ɵɵproperty("active", ctx.darkTheme);
1323
- }
1324
- }, dependencies: [MenuToggleComponent] });
1325
- (function () {
1326
- (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(DarkThemeComponent, [{
1327
- type: Component,
1328
- args: [{ selector: 'app-dark-theme', template: "<app-menu-toggle\n tooltip=\"Dark theme\"\n [active]=\"darkTheme\"\n icon=\"dark\"\n (click)=\"setDarkTheme()\"\n>\n</app-menu-toggle>\n" }]
1329
- }], function () { return [{ type: EventDisplayService }]; }, null);
1330
- })();
1331
-
1332
- function EventSelectorComponent_div_0_option_2_Template(rf, ctx) {
1333
- if (rf & 1) {
1334
- i0.ɵɵelementStart(0, "option", 4);
1335
- i0.ɵɵtext(1);
1336
- i0.ɵɵelementEnd();
1337
- }
1338
- if (rf & 2) {
1339
- const event_r2 = ctx.$implicit;
1340
- i0.ɵɵproperty("value", event_r2);
1341
- i0.ɵɵadvance(1);
1342
- i0.ɵɵtextInterpolate1(" ", event_r2, " ");
1343
- }
1344
- }
1345
- function EventSelectorComponent_div_0_Template(rf, ctx) {
1346
- if (rf & 1) {
1347
- const _r4 = i0.ɵɵgetCurrentView();
1348
- i0.ɵɵelementStart(0, "div", 1)(1, "select", 2);
1349
- i0.ɵɵlistener("change", function EventSelectorComponent_div_0_Template_select_change_1_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.changeEvent($event)); });
1350
- i0.ɵɵtemplate(2, EventSelectorComponent_div_0_option_2_Template, 2, 2, "option", 3);
1351
- i0.ɵɵelementEnd()();
1352
- }
1353
- if (rf & 2) {
1354
- const ctx_r0 = i0.ɵɵnextContext();
1355
- i0.ɵɵadvance(2);
1356
- i0.ɵɵproperty("ngForOf", ctx_r0.events);
1357
- }
1358
- }
1359
- class EventSelectorComponent {
1360
- constructor(eventDisplay) {
1361
- this.eventDisplay = eventDisplay;
1362
- }
1363
- ngOnInit() {
1364
- this.eventDisplay.listenToLoadedEventsChange((events) => (this.events = events));
1365
- }
1366
- changeEvent(selected) {
1367
- const value = selected.target.value;
1368
- this.eventDisplay.loadEvent(value);
1369
- }
1370
- }
1371
- EventSelectorComponent.ɵfac = function EventSelectorComponent_Factory(t) { return new (t || EventSelectorComponent)(i0.ɵɵdirectiveInject(EventDisplayService)); };
1372
- EventSelectorComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: EventSelectorComponent, selectors: [["app-event-selector"]], decls: 1, vars: 1, consts: [["class", "eventSelector mx-2", "matTooltip", "Event selector", "matTooltipPosition", "above", 4, "ngIf"], ["matTooltip", "Event selector", "matTooltipPosition", "above", 1, "eventSelector", "mx-2"], ["name", "event", 3, "change"], [3, "value", 4, "ngFor", "ngForOf"], [3, "value"]], template: function EventSelectorComponent_Template(rf, ctx) {
1373
- if (rf & 1) {
1374
- i0.ɵɵtemplate(0, EventSelectorComponent_div_0_Template, 3, 1, "div", 0);
1375
- }
1376
- if (rf & 2) {
1377
- i0.ɵɵproperty("ngIf", ctx.events != null);
1378
- }
1379
- }, dependencies: [i2.NgForOf, i2.NgIf, i2$3.MatTooltip, i3.NgSelectOption, i3.ɵNgSelectMultipleOption], styles: [".eventSelector[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{width:9rem;padding:5px 10px;font-size:12px;border:1px solid rgba(88,88,88,.08);box-shadow:var(--phoenix-icon-shadow);background-color:var(--phoenix-background-color-tertiary);color:var(--phoenix-text-color-secondary)}"] });
1380
- (function () {
1381
- (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EventSelectorComponent, [{
1382
- type: Component,
1383
- args: [{ selector: 'app-event-selector', template: "<div\n class=\"eventSelector mx-2\"\n *ngIf=\"events != null\"\n matTooltip=\"Event selector\"\n matTooltipPosition=\"above\"\n>\n <select name=\"event\" (change)=\"changeEvent($event)\">\n <option *ngFor=\"let event of events\" [value]=\"event\">\n {{ event }}\n </option>\n </select>\n</div>\n", styles: [".eventSelector select{width:9rem;padding:5px 10px;font-size:12px;border:1px solid rgba(88,88,88,.08);box-shadow:var(--phoenix-icon-shadow);background-color:var(--phoenix-background-color-tertiary);color:var(--phoenix-text-color-secondary)}\n"] }]
1384
- }], function () { return [{ type: EventDisplayService }]; }, null);
1385
- })();
1386
-
1387
- function ExperimentInfoComponent_a_1_Template(rf, ctx) {
1388
- if (rf & 1) {
1389
- i0.ɵɵelementStart(0, "a", 5);
1390
- i0.ɵɵelement(1, "img", 6);
1391
- i0.ɵɵelementEnd();
1392
- }
1393
- if (rf & 2) {
1394
- const ctx_r0 = i0.ɵɵnextContext();
1395
- i0.ɵɵproperty("href", ctx_r0.url, i0.ɵɵsanitizeUrl);
1396
- i0.ɵɵadvance(1);
1397
- i0.ɵɵproperty("src", ctx_r0.logo, i0.ɵɵsanitizeUrl);
1398
- }
1399
- }
1400
- function ExperimentInfoComponent_p_3_Template(rf, ctx) {
1401
- if (rf & 1) {
1402
- i0.ɵɵelementStart(0, "p")(1, "b");
1403
- i0.ɵɵtext(2);
1404
- i0.ɵɵelementEnd()();
1405
- }
1406
- if (rf & 2) {
1407
- const ctx_r1 = i0.ɵɵnextContext();
1408
- i0.ɵɵadvance(2);
1409
- i0.ɵɵtextInterpolate(ctx_r1.tagline);
1410
- }
1411
- }
1412
- function ExperimentInfoComponent_p_4_ng_container_1_Template(rf, ctx) {
1413
- if (rf & 1) {
1414
- i0.ɵɵelementContainerStart(0);
1415
- i0.ɵɵelementStart(1, "b");
1416
- i0.ɵɵtext(2);
1417
- i0.ɵɵelementEnd();
1418
- i0.ɵɵtext(3);
1419
- i0.ɵɵelementContainerEnd();
1420
- }
1421
- if (rf & 2) {
1422
- const infoField_r3 = i0.ɵɵnextContext().$implicit;
1423
- i0.ɵɵadvance(2);
1424
- i0.ɵɵtextInterpolate1("", infoField_r3.label, ": ");
1425
- i0.ɵɵadvance(1);
1426
- i0.ɵɵtextInterpolate1("", infoField_r3.value, " ");
1427
- }
1428
- }
1429
- function ExperimentInfoComponent_p_4_ng_container_2_Template(rf, ctx) {
1430
- if (rf & 1) {
1431
- i0.ɵɵelementContainerStart(0);
1432
- i0.ɵɵtext(1);
1433
- i0.ɵɵelementContainerEnd();
1434
- }
1435
- if (rf & 2) {
1436
- const infoField_r3 = i0.ɵɵnextContext().$implicit;
1437
- i0.ɵɵadvance(1);
1438
- i0.ɵɵtextInterpolate1(" ", infoField_r3, " ");
1439
- }
1440
- }
1441
- function ExperimentInfoComponent_p_4_Template(rf, ctx) {
1442
- if (rf & 1) {
1443
- i0.ɵɵelementStart(0, "p");
1444
- i0.ɵɵtemplate(1, ExperimentInfoComponent_p_4_ng_container_1_Template, 4, 2, "ng-container", 3);
1445
- i0.ɵɵtemplate(2, ExperimentInfoComponent_p_4_ng_container_2_Template, 2, 1, "ng-container", 3);
1446
- i0.ɵɵelementEnd();
1447
- }
1448
- if (rf & 2) {
1449
- const infoField_r3 = ctx.$implicit;
1450
- i0.ɵɵadvance(1);
1451
- i0.ɵɵproperty("ngIf", infoField_r3.label);
1452
- i0.ɵɵadvance(1);
1453
- i0.ɵɵproperty("ngIf", !infoField_r3.label);
1454
- }
1455
- }
1456
- class ExperimentInfoComponent {
1457
- constructor(eventDisplay) {
1458
- this.eventDisplay = eventDisplay;
1459
- }
1460
- ngOnInit() {
1461
- this.eventDisplay.listenToDisplayedEventChange(() => {
1462
- this.experimentInfo = this.eventDisplay.getEventMetadata();
1463
- });
1464
- }
1465
- }
1466
- ExperimentInfoComponent.ɵfac = function ExperimentInfoComponent_Factory(t) { return new (t || ExperimentInfoComponent)(i0.ɵɵdirectiveInject(EventDisplayService)); };
1467
- ExperimentInfoComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ExperimentInfoComponent, selectors: [["app-experiment-info"]], inputs: { url: "url", logo: "logo", tagline: "tagline" }, decls: 5, vars: 3, consts: [["id", "experimentInfo", "cdkDrag", "", "cdkDragBoundary", "body", 1, "experimentInfo"], ["class", "experimentLogoWrapper", "target", "_blank", "rel", "noopener noreferrer", 3, "href", 4, "ngIf"], [1, "textInfo"], [4, "ngIf"], [4, "ngFor", "ngForOf"], ["target", "_blank", "rel", "noopener noreferrer", 1, "experimentLogoWrapper", 3, "href"], ["alt", "", 1, "experimentLogo", 3, "src"]], template: function ExperimentInfoComponent_Template(rf, ctx) {
1468
- if (rf & 1) {
1469
- i0.ɵɵelementStart(0, "div", 0);
1470
- i0.ɵɵtemplate(1, ExperimentInfoComponent_a_1_Template, 2, 2, "a", 1);
1471
- i0.ɵɵelementStart(2, "div", 2);
1472
- i0.ɵɵtemplate(3, ExperimentInfoComponent_p_3_Template, 3, 1, "p", 3);
1473
- i0.ɵɵtemplate(4, ExperimentInfoComponent_p_4_Template, 3, 2, "p", 4);
1474
- i0.ɵɵelementEnd()();
1475
- }
1476
- if (rf & 2) {
1477
- i0.ɵɵadvance(1);
1478
- i0.ɵɵproperty("ngIf", ctx.url);
1479
- i0.ɵɵadvance(2);
1480
- i0.ɵɵproperty("ngIf", ctx.tagline);
1481
- i0.ɵɵadvance(1);
1482
- i0.ɵɵproperty("ngForOf", ctx.experimentInfo);
1483
- }
1484
- }, dependencies: [i2.NgForOf, i2.NgIf, i2$4.CdkDrag], styles: [".experimentInfo[_ngcontent-%COMP%]{position:absolute;top:5rem;left:1rem;display:flex;flex-direction:row;justify-items:flex-end;justify-content:flex-end;align-items:center;align-content:center;font-family:Courier New,Lucida Console,monospace;cursor:move}.experimentLogoWrapper[_ngcontent-%COMP%]{width:6rem}.experimentLogoWrapper[_ngcontent-%COMP%] .experimentLogo[_ngcontent-%COMP%]{width:100%;height:100%}.textInfo[_ngcontent-%COMP%]{margin-left:1rem}.textInfo[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:var(--phoenix-text-color-secondary);font-size:.8rem;margin-bottom:.5rem;-webkit-user-select:none;user-select:none}@media screen and (max-width: 768px){.experimentInfo[_ngcontent-%COMP%]{top:4rem;max-width:40%}.experimentLogoWrapper[_ngcontent-%COMP%]{height:4rem}.textInfo[_ngcontent-%COMP%]{display:none}}"] });
1485
- (function () {
1486
- (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ExperimentInfoComponent, [{
1487
- type: Component,
1488
- args: [{ selector: 'app-experiment-info', template: "<div id=\"experimentInfo\" class=\"experimentInfo\" cdkDrag cdkDragBoundary=\"body\">\n <a\n class=\"experimentLogoWrapper\"\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n *ngIf=\"url\"\n [href]=\"url\"\n >\n <img class=\"experimentLogo\" [src]=\"logo\" alt=\"\" />\n </a>\n <div class=\"textInfo\">\n <p *ngIf=\"tagline\">\n <b>{{ tagline }}</b>\n </p>\n <p *ngFor=\"let infoField of experimentInfo\">\n <ng-container *ngIf=\"infoField.label\">\n <b>{{ infoField.label }}: </b>{{ infoField.value }}\n </ng-container>\n <ng-container *ngIf=\"!infoField.label\">\n {{ infoField }}\n </ng-container>\n </p>\n </div>\n</div>\n", styles: [".experimentInfo{position:absolute;top:5rem;left:1rem;display:flex;flex-direction:row;justify-items:flex-end;justify-content:flex-end;align-items:center;align-content:center;font-family:Courier New,Lucida Console,monospace;cursor:move}.experimentLogoWrapper{width:6rem}.experimentLogoWrapper .experimentLogo{width:100%;height:100%}.textInfo{margin-left:1rem}.textInfo p{color:var(--phoenix-text-color-secondary);font-size:.8rem;margin-bottom:.5rem;-webkit-user-select:none;user-select:none}@media screen and (max-width: 768px){.experimentInfo{top:4rem;max-width:40%}.experimentLogoWrapper{height:4rem}.textInfo{display:none}}\n"] }]
1489
- }], function () { return [{ type: EventDisplayService }]; }, { url: [{
1490
- type: Input
1491
- }], logo: [{
1492
- type: Input
1493
- }], tagline: [{
1494
- type: Input
1495
- }] });
1496
- })();
1497
-
1498
- function InfoPanelOverlayComponent_li_4_Template(rf, ctx) {
1499
- if (rf & 1) {
1500
- i0.ɵɵelementStart(0, "li", 2);
1501
- i0.ɵɵtext(1, " No actions. ");
1502
- i0.ɵɵelementEnd();
1503
- }
1504
- }
1505
- function InfoPanelOverlayComponent_li_5_Template(rf, ctx) {
1506
- if (rf & 1) {
1507
- i0.ɵɵelementStart(0, "li", 2);
1508
- i0.ɵɵtext(1);
1509
- i0.ɵɵelementEnd();
1510
- }
1511
- if (rf & 2) {
1512
- const action_r2 = ctx.$implicit;
1513
- i0.ɵɵadvance(1);
1514
- i0.ɵɵtextInterpolate1(" ", action_r2, " ");
1515
- }
1516
- }
1517
- /**
1518
- * Component for displaying information from the logger
1519
- */
1520
- class InfoPanelOverlayComponent {
1521
- /**
1522
- * Create the information panel overlay
1523
- * @param infoLogger Service containing operations related to info logs
1524
- */
1525
- constructor(eventDisplay) {
1526
- this.eventDisplay = eventDisplay;
1527
- /** List of actions to be displayed in the info panel */
1528
- this.actionsList = [];
1529
- /** Get Phoenix Version */
1530
- this.version = packageJson.version;
1531
- }
1532
- /**
1533
- * Get the list of logs from the info logger service
1534
- */
1535
- ngOnInit() {
1536
- this.actionsList = this.eventDisplay.getInfoLogger().getInfoLoggerList();
1537
- }
1538
- }
1539
- InfoPanelOverlayComponent.ɵfac = function InfoPanelOverlayComponent_Factory(t) { return new (t || InfoPanelOverlayComponent)(i0.ɵɵdirectiveInject(EventDisplayService)); };
1540
- InfoPanelOverlayComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: InfoPanelOverlayComponent, selectors: [["app-info-panel-overlay"]], inputs: { showInfoPanel: "showInfoPanel" }, decls: 6, vars: 5, consts: [["overlayTitle", "Info Panel", "icon", "info-panel", 3, "resizable", "active"], [1, "list-group", "list-group-flush"], [1, "list-group-item"], ["class", "list-group-item", 4, "ngIf"], ["class", "list-group-item", 4, "ngFor", "ngForOf"]], template: function InfoPanelOverlayComponent_Template(rf, ctx) {
1541
- if (rf & 1) {
1542
- i0.ɵɵelementStart(0, "app-overlay", 0)(1, "ul", 1)(2, "li", 2);
1543
- i0.ɵɵtext(3);
1544
- i0.ɵɵelementEnd();
1545
- i0.ɵɵtemplate(4, InfoPanelOverlayComponent_li_4_Template, 2, 0, "li", 3);
1546
- i0.ɵɵtemplate(5, InfoPanelOverlayComponent_li_5_Template, 2, 1, "li", 4);
1547
- i0.ɵɵelementEnd()();
1548
- }
1549
- if (rf & 2) {
1550
- i0.ɵɵproperty("resizable", true)("active", ctx.showInfoPanel);
1551
- i0.ɵɵadvance(3);
1552
- i0.ɵɵtextInterpolate1(" Phoenix Version: ", ctx.version, " ");
1553
- i0.ɵɵadvance(1);
1554
- i0.ɵɵproperty("ngIf", ctx.actionsList.length === 0);
1555
- i0.ɵɵadvance(1);
1556
- i0.ɵɵproperty("ngForOf", ctx.actionsList);
1557
- }
1558
- }, dependencies: [i2.NgForOf, i2.NgIf, OverlayComponent], styles: [".list-group-item[_ngcontent-%COMP%]{font-size:.8rem;padding:.5rem 1rem}"] });
1559
- (function () {
1560
- (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(InfoPanelOverlayComponent, [{
1561
- type: Component,
1562
- args: [{ selector: 'app-info-panel-overlay', template: "<app-overlay\n overlayTitle=\"Info Panel\"\n icon=\"info-panel\"\n [resizable]=\"true\"\n [active]=\"showInfoPanel\"\n>\n <ul class=\"list-group list-group-flush\">\n <li class=\"list-group-item\">\n <!-- Show Phoenix Current Version (ON by Default) -->\n Phoenix Version: {{ version }}\n </li>\n <li class=\"list-group-item\" *ngIf=\"actionsList.length === 0\">\n No actions.\n </li>\n <li class=\"list-group-item\" *ngFor=\"let action of actionsList\">\n {{ action }}\n </li>\n </ul>\n</app-overlay>\n", styles: [".list-group-item{font-size:.8rem;padding:.5rem 1rem}\n"] }]
1563
- }], function () { return [{ type: EventDisplayService }]; }, { showInfoPanel: [{
1564
- type: Input
1565
- }] });
1566
- })();
1567
-
1568
- /**
1569
- * Component for toggling info panel overlay
1570
- */
1571
- class InfoPanelComponent {
1572
- /**
1573
- * Create the info panel toggle
1574
- * @param overlay Info panel overlay containing logger data
1575
- */
1576
- constructor(overlay) {
1577
- this.overlay = overlay;
1578
- /** @ignore */
1579
- this.showInfoPanel = false;
1580
- }
1581
- /**
1582
- * Create the info panel overlay
1583
- */
1584
- ngOnInit() {
1585
- const overlayRef = this.overlay.create();
1586
- const overlayPortal = new ComponentPortal(InfoPanelOverlayComponent);
1587
- this.overlayWindow = overlayRef.attach(overlayPortal);
1588
- this.overlayWindow.instance.showInfoPanel = this.showInfoPanel;
1589
- }
1590
- /**
1591
- * Destroy the info panel overlay
1592
- */
1593
- ngOnDestroy() {
1594
- this.overlayWindow.destroy();
1595
- }
1596
- /**
1597
- * Toggle the info panel overlay
1598
- */
1599
- toggleOverlay() {
1600
- this.showInfoPanel = !this.showInfoPanel;
1601
- this.overlayWindow.instance.showInfoPanel = this.showInfoPanel;
1602
- }
1603
- }
1604
- InfoPanelComponent.ɵfac = function InfoPanelComponent_Factory(t) { return new (t || InfoPanelComponent)(i0.ɵɵdirectiveInject(i1$1.Overlay)); };
1605
- InfoPanelComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: InfoPanelComponent, selectors: [["app-info-panel"]], decls: 1, vars: 1, consts: [["tooltip", "Info panel", "icon", "info-panel", 3, "active", "click"]], template: function InfoPanelComponent_Template(rf, ctx) {
1606
- if (rf & 1) {
1607
- i0.ɵɵelementStart(0, "app-menu-toggle", 0);
1608
- i0.ɵɵlistener("click", function InfoPanelComponent_Template_app_menu_toggle_click_0_listener() { return ctx.toggleOverlay(); });
1609
- i0.ɵɵelementEnd();
1610
- }
1611
- if (rf & 2) {
1612
- i0.ɵɵproperty("active", ctx.showInfoPanel);
1613
- }
1614
- }, dependencies: [MenuToggleComponent] });
1615
- (function () {
1616
- (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(InfoPanelComponent, [{
1617
- type: Component,
1618
- args: [{ selector: 'app-info-panel', template: "<app-menu-toggle\n tooltip=\"Info panel\"\n icon=\"info-panel\"\n [active]=\"showInfoPanel\"\n (click)=\"toggleOverlay()\"\n>\n</app-menu-toggle>\n" }]
1619
- }], function () { return [{ type: i1$1.Overlay }]; }, null);
1620
- })();
1621
-
1622
- var EventDataFormat;
1623
- (function (EventDataFormat) {
1624
- EventDataFormat["JSON"] = "JSON";
1625
- EventDataFormat["EDM4HEPJSON"] = "EDM4HEPJSON";
1626
- EventDataFormat["JIVEXML"] = "JIVEXML";
1627
- EventDataFormat["IG"] = "IG";
1628
- EventDataFormat["ZIP"] = "ZIP";
1629
- })(EventDataFormat || (EventDataFormat = {}));
1630
- class ImportOption {
1631
- constructor(format, fileType, handler, accept) {
1632
- this.format = format;
1633
- this.fileType = fileType;
1634
- this.handler = handler;
1635
- this.accept = accept;
1636
- }
1637
- }
1638
-
1639
- function IOOptionsDialogComponent_div_4_ng_container_5_Template(rf, ctx) {
1640
- if (rf & 1) {
1641
- const _r10 = i0.ɵɵgetCurrentView();
1642
- i0.ɵɵelementContainerStart(0);
1643
- i0.ɵɵelementStart(1, "input", 28, 29);
1644
- i0.ɵɵlistener("change", function IOOptionsDialogComponent_div_4_ng_container_5_Template_input_change_1_listener($event) { const restoredCtx = i0.ɵɵrestoreView(_r10); const eventDataImportOption_r7 = restoredCtx.$implicit; return i0.ɵɵresetView(eventDataImportOption_r7.handler($event.target.files)); });
1645
- i0.ɵɵelementEnd();
1646
- i0.ɵɵelementStart(3, "button", 8);
1647
- i0.ɵɵlistener("click", function IOOptionsDialogComponent_div_4_ng_container_5_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r10); const _r8 = i0.ɵɵreference(2); return i0.ɵɵresetView(_r8.click()); });
1648
- i0.ɵɵelement(4, "img", 30);
1649
- i0.ɵɵtext(5);
1650
- i0.ɵɵelementEnd();
1651
- i0.ɵɵelementContainerEnd();
1652
- }
1653
- if (rf & 2) {
1654
- const eventDataImportOption_r7 = ctx.$implicit;
1655
- i0.ɵɵadvance(1);
1656
- i0.ɵɵproperty("accept", eventDataImportOption_r7.accept);
1657
- i0.ɵɵadvance(4);
1658
- i0.ɵɵtextInterpolate1(" Load ", eventDataImportOption_r7.fileType, " ");
1659
- }
1660
- }
1661
- function IOOptionsDialogComponent_div_4_Template(rf, ctx) {
1662
- if (rf & 1) {
1663
- i0.ɵɵelementStart(0, "div")(1, "p", 4)(2, "b");
1664
- i0.ɵɵtext(3, "Event data");
1665
- i0.ɵɵelementEnd()();
1666
- i0.ɵɵelementStart(4, "div", 5);
1667
- i0.ɵɵtemplate(5, IOOptionsDialogComponent_div_4_ng_container_5_Template, 6, 2, "ng-container", 27);
1668
- i0.ɵɵelementEnd()();
1669
- }
1670
- if (rf & 2) {
1671
- const ctx_r0 = i0.ɵɵnextContext();
1672
- i0.ɵɵadvance(5);
1673
- i0.ɵɵproperty("ngForOf", ctx_r0.eventDataOptionsWithHandler);
1674
- }
1675
- }
1676
- class IOOptionsDialogComponent {
1677
- constructor(eventDisplay, dialogRef) {
1678
- this.eventDisplay = eventDisplay;
1679
- this.dialogRef = dialogRef;
1680
- this.eventDataImportOptions = [EventDataFormat.JSON];
1681
- this.supportedEventDataFormats = [
1682
- new ImportOption(EventDataFormat.JSON, '.json', this.handleJSONEventDataInput.bind(this), 'application/json'),
1683
- new ImportOption(EventDataFormat.EDM4HEPJSON, '.edm4hep.json', this.handleEDM4HEPJSONEventDataInput.bind(this), 'application/json'),
1684
- new ImportOption(EventDataFormat.JIVEXML, '.xml', this.handleJiveXMLDataInput.bind(this), 'text/xml'),
1685
- new ImportOption(EventDataFormat.ZIP, '.zip', this.handleZipEventDataInput.bind(this), '.zip'),
1686
- new ImportOption(EventDataFormat.IG, '.ig', this.handleIgEventDataInput.bind(this), '.ig'),
1687
- ];
1688
- }
1689
- ngOnInit() {
1690
- this.eventDataOptionsWithHandler = this.supportedEventDataFormats.filter((eventDataFormat) => this.eventDataImportOptions.includes(eventDataFormat.format));
1691
- this.eventDataImportOptions.forEach((eventDataImportOption) => {
1692
- if (eventDataImportOption instanceof ImportOption) {
1693
- const importHandler = eventDataImportOption.handler.bind(this);
1694
- eventDataImportOption.handler = (files) => {
1695
- importHandler(files);
1696
- this.onClose();
1697
- };
1698
- this.eventDataOptionsWithHandler.push(eventDataImportOption);
1699
- }
1700
- });
1701
- }
1702
- getSupportedEventDataFormats() {
1703
- return this.eventDataImportOptions
1704
- .map((format) => {
1705
- if (format instanceof ImportOption) {
1706
- return format.format;
1707
- }
1708
- return format;
1709
- })
1710
- .filter((format) => format !== 'ZIP')
1711
- .join(', ');
1712
- }
1713
- onClose() {
1714
- this.dialogRef.close();
1715
- }
1716
- handleJSONEventDataInput(files) {
1717
- const callback = (content) => {
1718
- const json = typeof content === 'string' ? JSON.parse(content) : content;
1719
- this.eventDisplay.parsePhoenixEvents(json);
1720
- };
1721
- this.handleFileInput(files[0], 'json', callback);
1722
- }
1723
- handleEDM4HEPJSONEventDataInput(files) {
1724
- const callback = (content) => {
1725
- const json = typeof content === 'string' ? JSON.parse(content) : content;
1726
- const edm4hepJsonLoader = new Edm4hepJsonLoader();
1727
- edm4hepJsonLoader.setRawEventData(json);
1728
- edm4hepJsonLoader.processEventData();
1729
- this.eventDisplay.parsePhoenixEvents(edm4hepJsonLoader.getEventData());
1730
- };
1731
- this.handleFileInput(files[0], 'json', callback);
1732
- }
1733
- handleJiveXMLDataInput(files) {
1734
- const callback = (content) => {
1735
- const jiveloader = new JiveXMLLoader();
1736
- jiveloader.process(content);
1737
- const eventData = jiveloader.getEventData();
1738
- this.eventDisplay.buildEventDataFromJSON(eventData);
1739
- };
1740
- this.handleFileInput(files[0], 'xml', callback);
1741
- }
1742
- handleOBJInput(files) {
1743
- const callback = (content, name) => {
1744
- this.eventDisplay.parseOBJGeometry(content, name);
1745
- };
1746
- this.handleFileInput(files[0], 'obj', callback);
1747
- }
1748
- handleSceneInput(files) {
1749
- const callback = (content) => {
1750
- this.eventDisplay.parsePhoenixDisplay(content);
1751
- };
1752
- this.handleFileInput(files[0], 'phnx', callback);
1753
- }
1754
- handleGLTFInput(files) {
1755
- const callback = (content, name) => {
1756
- this.eventDisplay.parseGLTFGeometry(content, name);
1757
- };
1758
- this.handleFileInput(files[0], 'gltf', callback);
1759
- }
1760
- handlePhoenixInput(files) {
1761
- const callback = (content) => {
1762
- this.eventDisplay.parsePhoenixDisplay(content);
1763
- };
1764
- this.handleFileInput(files[0], 'phnx', callback);
1765
- }
1766
- handleROOTInput(files) {
1767
- return __awaiter(this, void 0, void 0, function* () {
1768
- const rootObjectName = prompt('Enter object name in ROOT file');
1769
- yield this.eventDisplay.loadRootGeometry(URL.createObjectURL(files[0]), rootObjectName, files[0].name.split('.')[0]);
1770
- this.onClose();
1771
- });
1772
- }
1773
- handleRootJSONInput(files) {
1774
- return __awaiter(this, void 0, void 0, function* () {
1775
- if (!this.isFileOfExtension(files[0], 'gz')) {
1776
- return;
1777
- }
1778
- const name = files[0].name.split('.')[0];
1779
- yield this.eventDisplay.loadRootJSONGeometry(URL.createObjectURL(files[0]), name);
1780
- this.onClose();
1781
- });
1782
- }
1783
- handleIgEventDataInput(files) {
1784
- const cmsLoader = new CMSLoader();
1785
- cmsLoader.readIgArchive(files[0], (allEvents) => {
1786
- const allEventsData = cmsLoader.getAllEventsData(allEvents);
1787
- this.eventDisplay.parsePhoenixEvents(allEventsData);
1788
- this.onClose();
1789
- });
1790
- }
1791
- handleZipEventDataInput(files) {
1792
- return __awaiter(this, void 0, void 0, function* () {
1793
- if (!this.isFileOfExtension(files[0], 'zip')) {
1794
- return;
1795
- }
1796
- const allEventsObject = {};
1797
- let filesWithData;
1798
- // Using a try catch block to catch any errors in Promises
1799
- try {
1800
- filesWithData = yield readZipFile(files[0]);
1801
- }
1802
- catch (error) {
1803
- console.error('Error while reading zip', error);
1804
- this.eventDisplay.getInfoLogger().add('Could not read zip file', 'Error');
1805
- return;
1806
- }
1807
- // JSON event data
1808
- Object.keys(filesWithData)
1809
- .filter((fileName) => fileName.endsWith('.json'))
1810
- .forEach((fileName) => {
1811
- Object.assign(allEventsObject, JSON.parse(filesWithData[fileName]));
1812
- });
1813
- // JiveXML event data
1814
- const jiveloader = new JiveXMLLoader();
1815
- Object.keys(filesWithData)
1816
- .filter((fileName) => {
1817
- return fileName.endsWith('.xml') || fileName.startsWith('JiveXML');
1818
- })
1819
- .forEach((fileName) => {
1820
- jiveloader.process(filesWithData[fileName]);
1821
- const eventData = jiveloader.getEventData();
1822
- Object.assign(allEventsObject, { [fileName]: eventData });
1823
- });
1824
- // For some reason the above doesn't pick up JiveXML_XXX_YYY.zip
1825
- this.eventDisplay.parsePhoenixEvents(allEventsObject);
1826
- this.onClose();
1827
- });
1828
- }
1829
- handleFileInput(file, extension, callback) {
1830
- const reader = new FileReader();
1831
- if (this.isFileOfExtension(file, extension)) {
1832
- reader.onload = () => {
1833
- callback(reader.result.toString(), file.name.split('.')[0]);
1834
- };
1835
- reader.readAsText(file);
1836
- }
1837
- this.onClose();
1838
- }
1839
- isFileOfExtension(file, extension) {
1840
- if (file.name.split('.').pop() === extension) {
1841
- return true;
1842
- }
1843
- console.error('Error: Invalid file format!');
1844
- this.eventDisplay.getInfoLogger().add('Invalid file format!', 'Error');
1845
- return false;
1846
- }
1847
- saveScene() {
1848
- this.eventDisplay.exportPhoenixDisplay();
1849
- }
1850
- exportOBJ() {
1851
- this.eventDisplay.exportToOBJ();
1852
- }
1853
- }
1854
- IOOptionsDialogComponent.ɵfac = function IOOptionsDialogComponent_Factory(t) { return new (t || IOOptionsDialogComponent)(i0.ɵɵdirectiveInject(EventDisplayService), i0.ɵɵdirectiveInject(i1$2.MatDialogRef)); };
1855
- IOOptionsDialogComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: IOOptionsDialogComponent, selectors: [["app-io-options-dialog"]], inputs: { eventDataImportOptions: "eventDataImportOptions" }, decls: 47, vars: 1, consts: [[1, "dialog"], ["mat-dialog-title", ""], ["mat-dialog-content", "", 1, "dialog-content"], [4, "ngIf"], [1, "text-center"], [1, "row", "centered"], ["type", "file", "tabindex", "-1", "accept", ".obj", "name", "image", 1, "file-input", 3, "change"], ["objFileInput", ""], [1, "file-input-button", 3, "click"], ["src", "assets/icons/obj.svg", "alt", ""], ["type", "file", "tabindex", "-1", "accept", ".gltf", "name", "image", 1, "file-input", 3, "change"], ["gltfFileInput", ""], ["src", "assets/icons/gltf.svg", "alt", ""], ["type", "file", "tabindex", "-1", "accept", ".root", 1, "file-input", 3, "change"], ["rootFileInput", ""], ["src", "assets/icons/file-import.svg", "alt", ""], ["type", "file", "tabindex", "-1", "accept", ".json.gz", 1, "file-input", 3, "change"], ["rootJSONFileInput", ""], ["id", "exportScene", 1, "file-input-button", "load-export", 3, "click"], ["src", "assets/icons/save.svg", "alt", ""], ["type", "file", "tabindex", "-1", "accept", ".phnx", "name", "image", 1, "file-input", 3, "change"], ["loadSceneInput", ""], ["id", "importScene", 1, "file-input-button", "load-export", 3, "click"], ["src", "assets/icons/upload.svg", "alt", ""], ["id", "exportOBJ", 1, "file-input-button", "export-button", 3, "click"], ["mat-dialog-actions", "", "align", "end"], ["mat-flat-button", "", "color", "primary", "cdkFocusInitial", "", 3, "click"], [4, "ngFor", "ngForOf"], ["type", "file", "tabindex", "-1", 1, "file-input", 3, "accept", "change"], ["eventDataFileInput", ""], ["src", "assets/icons/eventData.svg", "alt", "Event data icon"]], template: function IOOptionsDialogComponent_Template(rf, ctx) {
1856
- if (rf & 1) {
1857
- const _r12 = i0.ɵɵgetCurrentView();
1858
- i0.ɵɵelementStart(0, "div", 0)(1, "h1", 1);
1859
- i0.ɵɵtext(2, "Import and export");
1860
- i0.ɵɵelementEnd();
1861
- i0.ɵɵelementStart(3, "div", 2);
1862
- i0.ɵɵtemplate(4, IOOptionsDialogComponent_div_4_Template, 6, 1, "div", 3);
1863
- i0.ɵɵelementStart(5, "p", 4)(6, "b");
1864
- i0.ɵɵtext(7, "Geometries");
1865
- i0.ɵɵelementEnd()();
1866
- i0.ɵɵelementStart(8, "div", 5)(9, "input", 6, 7);
1867
- i0.ɵɵlistener("change", function IOOptionsDialogComponent_Template_input_change_9_listener($event) { return ctx.handleOBJInput($event.target.files); });
1868
- i0.ɵɵelementEnd();
1869
- i0.ɵɵelementStart(11, "button", 8);
1870
- i0.ɵɵlistener("click", function IOOptionsDialogComponent_Template_button_click_11_listener() { i0.ɵɵrestoreView(_r12); const _r1 = i0.ɵɵreference(10); return i0.ɵɵresetView(_r1.click()); });
1871
- i0.ɵɵelement(12, "img", 9);
1872
- i0.ɵɵtext(13, " Load .obj ");
1873
- i0.ɵɵelementEnd();
1874
- i0.ɵɵelementStart(14, "input", 10, 11);
1875
- i0.ɵɵlistener("change", function IOOptionsDialogComponent_Template_input_change_14_listener($event) { return ctx.handleGLTFInput($event.target.files); });
1876
- i0.ɵɵelementEnd();
1877
- i0.ɵɵelementStart(16, "button", 8);
1878
- i0.ɵɵlistener("click", function IOOptionsDialogComponent_Template_button_click_16_listener() { i0.ɵɵrestoreView(_r12); const _r2 = i0.ɵɵreference(15); return i0.ɵɵresetView(_r2.click()); });
1879
- i0.ɵɵelement(17, "img", 12);
1880
- i0.ɵɵtext(18, " Load .gltf ");
1881
- i0.ɵɵelementEnd();
1882
- i0.ɵɵelementStart(19, "input", 13, 14);
1883
- i0.ɵɵlistener("change", function IOOptionsDialogComponent_Template_input_change_19_listener($event) { return ctx.handleROOTInput($event.target.files); });
1884
- i0.ɵɵelementEnd();
1885
- i0.ɵɵelementStart(21, "button", 8);
1886
- i0.ɵɵlistener("click", function IOOptionsDialogComponent_Template_button_click_21_listener() { i0.ɵɵrestoreView(_r12); const _r3 = i0.ɵɵreference(20); return i0.ɵɵresetView(_r3.click()); });
1887
- i0.ɵɵelement(22, "img", 15);
1888
- i0.ɵɵtext(23, " Load .root ");
1889
- i0.ɵɵelementEnd();
1890
- i0.ɵɵelementStart(24, "input", 16, 17);
1891
- i0.ɵɵlistener("change", function IOOptionsDialogComponent_Template_input_change_24_listener($event) { return ctx.handleRootJSONInput($event.target.files); });
1892
- i0.ɵɵelementEnd();
1893
- i0.ɵɵelementStart(26, "button", 8);
1894
- i0.ɵɵlistener("click", function IOOptionsDialogComponent_Template_button_click_26_listener() { i0.ɵɵrestoreView(_r12); const _r4 = i0.ɵɵreference(25); return i0.ɵɵresetView(_r4.click()); });
1895
- i0.ɵɵelement(27, "img", 15);
1896
- i0.ɵɵtext(28, " Load .json.gz ");
1897
- i0.ɵɵelementEnd()();
1898
- i0.ɵɵelementStart(29, "p", 4)(30, "b");
1899
- i0.ɵɵtext(31, "Scene");
1900
- i0.ɵɵelementEnd()();
1901
- i0.ɵɵelementStart(32, "div", 5)(33, "button", 18);
1902
- i0.ɵɵlistener("click", function IOOptionsDialogComponent_Template_button_click_33_listener() { return ctx.saveScene(); });
1903
- i0.ɵɵelement(34, "img", 19);
1904
- i0.ɵɵtext(35, " Save scene ");
1905
- i0.ɵɵelementEnd();
1906
- i0.ɵɵelementStart(36, "input", 20, 21);
1907
- i0.ɵɵlistener("change", function IOOptionsDialogComponent_Template_input_change_36_listener($event) { return ctx.handlePhoenixInput($event.target.files); });
1908
- i0.ɵɵelementEnd();
1909
- i0.ɵɵelementStart(38, "button", 22);
1910
- i0.ɵɵlistener("click", function IOOptionsDialogComponent_Template_button_click_38_listener() { i0.ɵɵrestoreView(_r12); const _r5 = i0.ɵɵreference(37); return i0.ɵɵresetView(_r5.click()); });
1911
- i0.ɵɵelement(39, "img", 23);
1912
- i0.ɵɵtext(40, " Load scene ");
1913
- i0.ɵɵelementEnd();
1914
- i0.ɵɵelementStart(41, "button", 24);
1915
- i0.ɵɵlistener("click", function IOOptionsDialogComponent_Template_button_click_41_listener() { return ctx.exportOBJ(); });
1916
- i0.ɵɵelement(42, "img", 9);
1917
- i0.ɵɵtext(43, " Save OBJ ");
1918
- i0.ɵɵelementEnd()()();
1919
- i0.ɵɵelementStart(44, "div", 25)(45, "button", 26);
1920
- i0.ɵɵlistener("click", function IOOptionsDialogComponent_Template_button_click_45_listener() { return ctx.onClose(); });
1921
- i0.ɵɵtext(46, " Close ");
1922
- i0.ɵɵelementEnd()()();
1923
- }
1924
- if (rf & 2) {
1925
- i0.ɵɵadvance(4);
1926
- i0.ɵɵproperty("ngIf", ctx.eventDataImportOptions.length > 0);
1927
- }
1928
- }, dependencies: [i2.NgForOf, i2.NgIf, i1$2.MatDialogTitle, i1$2.MatDialogContent, i1$2.MatDialogActions, i2$2.MatButton], styles: [".row[_ngcontent-%COMP%]{justify-content:center;margin:1rem 0}.file-input[_ngcontent-%COMP%]{width:.1px;height:.1px;opacity:0;overflow:hidden;position:absolute;z-index:-1}.file-input-button[_ngcontent-%COMP%]{font-size:1em;font-weight:700;color:#fff;background-color:#6eaece;padding:1em .5em;border:none;border-radius:10px;width:8rem;margin:0 .4rem}.file-input-button.load-export[_ngcontent-%COMP%]{padding:.8em .2em;width:7rem}.file-input-button.load-export[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-height:1.2em}.file-input-button.export-button[_ngcontent-%COMP%]{background-color:#cb7133}.file-input-button.export-button[_ngcontent-%COMP%]:hover{background-color:#ad5b2d}.file-input-button[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-height:2em;display:block;width:100%}.file-input-button[_ngcontent-%COMP%]:hover{background-color:#118ab2}#exportScene[_ngcontent-%COMP%]{background-color:#5bd99e}#exportScene[_ngcontent-%COMP%]:hover{background-color:#05c292}#importScene[_ngcontent-%COMP%]{background-color:#ecc25e}#importScene[_ngcontent-%COMP%]:hover{background-color:#d6b44d}"] });
1929
- (function () {
1930
- (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IOOptionsDialogComponent, [{
1931
- type: Component,
1932
- args: [{ selector: 'app-io-options-dialog', template: "<div class=\"dialog\">\n <h1 mat-dialog-title>Import and export</h1>\n <div mat-dialog-content class=\"dialog-content\">\n <div *ngIf=\"eventDataImportOptions.length > 0\">\n <p class=\"text-center\"><b>Event data</b></p>\n\n <div class=\"row centered\">\n <ng-container\n *ngFor=\"let eventDataImportOption of eventDataOptionsWithHandler\"\n >\n <input\n #eventDataFileInput\n type=\"file\"\n tabindex=\"-1\"\n class=\"file-input\"\n [accept]=\"eventDataImportOption.accept\"\n (change)=\"eventDataImportOption.handler($event.target.files)\"\n />\n <button\n class=\"file-input-button\"\n (click)=\"eventDataFileInput.click()\"\n >\n <img src=\"assets/icons/eventData.svg\" alt=\"Event data icon\" />\n Load {{ eventDataImportOption.fileType }}\n </button>\n </ng-container>\n </div>\n </div>\n\n <p class=\"text-center\"><b>Geometries</b></p>\n\n <div class=\"row centered\">\n <input\n #objFileInput\n type=\"file\"\n tabindex=\"-1\"\n class=\"file-input\"\n accept=\".obj\"\n name=\"image\"\n (change)=\"handleOBJInput($event.target.files)\"\n />\n <button class=\"file-input-button\" (click)=\"objFileInput.click()\">\n <img src=\"assets/icons/obj.svg\" alt=\"\" /> Load .obj\n </button>\n\n <input\n #gltfFileInput\n type=\"file\"\n tabindex=\"-1\"\n class=\"file-input\"\n accept=\".gltf\"\n name=\"image\"\n (change)=\"handleGLTFInput($event.target.files)\"\n />\n <button class=\"file-input-button\" (click)=\"gltfFileInput.click()\">\n <img src=\"assets/icons/gltf.svg\" alt=\"\" /> Load .gltf\n </button>\n\n <input\n #rootFileInput\n type=\"file\"\n tabindex=\"-1\"\n class=\"file-input\"\n accept=\".root\"\n (change)=\"handleROOTInput($event.target.files)\"\n />\n <button class=\"file-input-button\" (click)=\"rootFileInput.click()\">\n <img src=\"assets/icons/file-import.svg\" alt=\"\" /> Load .root\n </button>\n\n <input\n #rootJSONFileInput\n type=\"file\"\n tabindex=\"-1\"\n class=\"file-input\"\n accept=\".json.gz\"\n (change)=\"handleRootJSONInput($event.target.files)\"\n />\n <button class=\"file-input-button\" (click)=\"rootJSONFileInput.click()\">\n <img src=\"assets/icons/file-import.svg\" alt=\"\" /> Load .json.gz\n </button>\n </div>\n\n <p class=\"text-center\"><b>Scene</b></p>\n\n <div class=\"row centered\">\n <button\n class=\"file-input-button load-export\"\n id=\"exportScene\"\n (click)=\"saveScene()\"\n >\n <img src=\"assets/icons/save.svg\" alt=\"\" /> Save scene\n </button>\n\n <input\n #loadSceneInput\n type=\"file\"\n tabindex=\"-1\"\n class=\"file-input\"\n accept=\".phnx\"\n name=\"image\"\n (change)=\"handlePhoenixInput($event.target.files)\"\n />\n <button\n class=\"file-input-button load-export\"\n id=\"importScene\"\n (click)=\"loadSceneInput.click()\"\n >\n <img src=\"assets/icons/upload.svg\" alt=\"\" /> Load scene\n </button>\n\n <button\n class=\"file-input-button export-button\"\n id=\"exportOBJ\"\n (click)=\"exportOBJ()\"\n >\n <img src=\"assets/icons/obj.svg\" alt=\"\" /> Save OBJ\n </button>\n </div>\n </div>\n\n <div mat-dialog-actions align=\"end\">\n <button mat-flat-button color=\"primary\" (click)=\"onClose()\" cdkFocusInitial>\n Close\n </button>\n </div>\n</div>\n", styles: [".row{justify-content:center;margin:1rem 0}.file-input{width:.1px;height:.1px;opacity:0;overflow:hidden;position:absolute;z-index:-1}.file-input-button{font-size:1em;font-weight:700;color:#fff;background-color:#6eaece;padding:1em .5em;border:none;border-radius:10px;width:8rem;margin:0 .4rem}.file-input-button.load-export{padding:.8em .2em;width:7rem}.file-input-button.load-export img{max-height:1.2em}.file-input-button.export-button{background-color:#cb7133}.file-input-button.export-button:hover{background-color:#ad5b2d}.file-input-button img{max-height:2em;display:block;width:100%}.file-input-button:hover{background-color:#118ab2}#exportScene{background-color:#5bd99e}#exportScene:hover{background-color:#05c292}#importScene{background-color:#ecc25e}#importScene:hover{background-color:#d6b44d}\n"] }]
1933
- }], function () { return [{ type: EventDisplayService }, { type: i1$2.MatDialogRef }]; }, { eventDataImportOptions: [{
1934
- type: Input
1935
- }] });
1936
- })();
1937
-
1938
- class IoOptionsComponent {
1939
- constructor(dialog) {
1940
- this.dialog = dialog;
1941
- this.eventDataImportOptions = Object.values(EventDataFormat);
1942
- }
1943
- openIODialog() {
1944
- const dialogRef = this.dialog.open(IOOptionsDialogComponent, {
1945
- panelClass: 'dialog',
1946
- });
1947
- dialogRef.componentInstance.eventDataImportOptions =
1948
- this.eventDataImportOptions;
1949
- }
1950
- }
1951
- IoOptionsComponent.ɵfac = function IoOptionsComponent_Factory(t) { return new (t || IoOptionsComponent)(i0.ɵɵdirectiveInject(i1$2.MatDialog)); };
1952
- IoOptionsComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: IoOptionsComponent, selectors: [["app-io-options"]], inputs: { eventDataImportOptions: "eventDataImportOptions" }, decls: 1, vars: 1, consts: [["tooltip", "Import and export options", "icon", "import", 3, "active", "click"]], template: function IoOptionsComponent_Template(rf, ctx) {
1953
- if (rf & 1) {
1954
- i0.ɵɵelementStart(0, "app-menu-toggle", 0);
1955
- i0.ɵɵlistener("click", function IoOptionsComponent_Template_app_menu_toggle_click_0_listener() { return ctx.openIODialog(); });
1956
- i0.ɵɵelementEnd();
1957
- }
1958
- if (rf & 2) {
1959
- i0.ɵɵproperty("active", false);
1960
- }
1961
- }, dependencies: [MenuToggleComponent] });
1962
- (function () {
1963
- (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IoOptionsComponent, [{
1964
- type: Component,
1965
- args: [{ selector: 'app-io-options', template: "<app-menu-toggle\n tooltip=\"Import and export options\"\n icon=\"import\"\n [active]=\"false\"\n (click)=\"openIODialog()\"\n>\n</app-menu-toggle>\n" }]
1966
- }], function () { return [{ type: i1$2.MatDialog }]; }, { eventDataImportOptions: [{
1967
- type: Input
1968
- }] });
1969
- })();
1970
-
1971
- class MainViewToggleComponent {
1972
- constructor(eventDisplay) {
1973
- this.eventDisplay = eventDisplay;
1974
- this.orthographicView = false;
1975
- }
1976
- switchMainView() {
1977
- this.orthographicView = !this.orthographicView;
1978
- this.eventDisplay
1979
- .getUIManager()
1980
- .toggleOrthographicView(this.orthographicView);
1981
- }
1982
- }
1983
- MainViewToggleComponent.ɵfac = function MainViewToggleComponent_Factory(t) { return new (t || MainViewToggleComponent)(i0.ɵɵdirectiveInject(EventDisplayService)); };
1984
- MainViewToggleComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MainViewToggleComponent, selectors: [["app-main-view-toggle"]], decls: 1, vars: 2, consts: [[3, "icon", "matTooltip", "click"]], template: function MainViewToggleComponent_Template(rf, ctx) {
1985
- if (rf & 1) {
1986
- i0.ɵɵelementStart(0, "app-menu-toggle", 0);
1987
- i0.ɵɵlistener("click", function MainViewToggleComponent_Template_app_menu_toggle_click_0_listener() { return ctx.switchMainView(); });
1988
- i0.ɵɵelementEnd();
1989
- }
1990
- if (rf & 2) {
1991
- i0.ɵɵproperty("icon", ctx.orthographicView ? "perspective" : "orthographic")("matTooltip", "Switch to " + (ctx.orthographicView ? "perspective" : "orthographic") + " view");
1992
- }
1993
- }, dependencies: [i2$3.MatTooltip, MenuToggleComponent] });
1994
- (function () {
1995
- (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MainViewToggleComponent, [{
1996
- type: Component,
1997
- args: [{ selector: 'app-main-view-toggle', template: "<app-menu-toggle\n [icon]=\"orthographicView ? 'perspective' : 'orthographic'\"\n [matTooltip]=\"\n 'Switch to ' + (orthographicView ? 'perspective' : 'orthographic') + ' view'\n \"\n (click)=\"switchMainView()\"\n>\n</app-menu-toggle>\n" }]
1998
- }], function () { return [{ type: EventDisplayService }]; }, null);
1999
- })();
2000
-
2001
- class ObjectClippingComponent {
2002
- constructor(eventDisplay) {
2003
- this.eventDisplay = eventDisplay;
2004
- const stateManager = this.eventDisplay.getStateManager();
2005
- stateManager.clippingEnabled.onUpdate((clippingValue) => (this.clippingEnabled = clippingValue));
2006
- stateManager.startClippingAngle.onUpdate((value) => (this.startClippingAngle = value));
2007
- stateManager.openingClippingAngle.onUpdate((value) => (this.openingClippingAngle = value));
2008
- }
2009
- changeStartClippingAngle(startingAngle) {
2010
- this.eventDisplay.getUIManager().rotateStartAngleClipping(startingAngle);
2011
- }
2012
- changeOpeningClippingAngle(openingAngle) {
2013
- this.eventDisplay.getUIManager().rotateOpeningAngleClipping(openingAngle);
2014
- }
2015
- toggleClipping(change) {
2016
- const value = change.checked;
2017
- this.eventDisplay.getUIManager().setClipping(value);
2018
- this.clippingEnabled = value;
2019
- }
2020
- }
2021
- ObjectClippingComponent.ɵfac = function ObjectClippingComponent_Factory(t) { return new (t || ObjectClippingComponent)(i0.ɵɵdirectiveInject(EventDisplayService)); };
2022
- ObjectClippingComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ObjectClippingComponent, selectors: [["app-object-clipping"]], decls: 17, vars: 5, consts: [[1, "mat-menu"], ["menu", ""], ["mat-menu-item", "", 3, "click"], [3, "checked", "click", "change"], ["clippingCheckbox", ""], ["mat-menu-item", "", 1, "slider-btn", 3, "focus"], ["min", "0", "max", "360", "step", "1", "thumbLabel", ""], ["matSliderThumb", "", 3, "value", "valueChange"], ["startingAngleSlider", ""], ["openingAngleSlider", ""], ["tooltip", "Geometry clipping", "icon", "clipping", 3, "matMenuTriggerFor", "active"]], template: function ObjectClippingComponent_Template(rf, ctx) {
2023
- if (rf & 1) {
2024
- const _r4 = i0.ɵɵgetCurrentView();
2025
- i0.ɵɵelementStart(0, "mat-menu", 0, 1)(2, "button", 2);
2026
- i0.ɵɵlistener("click", function ObjectClippingComponent_Template_button_click_2_listener($event) { i0.ɵɵrestoreView(_r4); const _r1 = i0.ɵɵreference(4); $event.stopPropagation(); return i0.ɵɵresetView(_r1._inputElement.nativeElement.click()); });
2027
- i0.ɵɵelementStart(3, "mat-checkbox", 3, 4);
2028
- i0.ɵɵlistener("click", function ObjectClippingComponent_Template_mat_checkbox_click_3_listener($event) { return $event.stopPropagation(); })("change", function ObjectClippingComponent_Template_mat_checkbox_change_3_listener($event) { return ctx.toggleClipping($event); });
2029
- i0.ɵɵtext(5, " Clipping ");
2030
- i0.ɵɵelementEnd()();
2031
- i0.ɵɵelementStart(6, "button", 5);
2032
- i0.ɵɵlistener("focus", function ObjectClippingComponent_Template_button_focus_6_listener() { i0.ɵɵrestoreView(_r4); const _r2 = i0.ɵɵreference(9); return i0.ɵɵresetView(_r2.focus()); });
2033
- i0.ɵɵelementStart(7, "mat-slider", 6)(8, "input", 7, 8);
2034
- i0.ɵɵlistener("valueChange", function ObjectClippingComponent_Template_input_valueChange_8_listener($event) { return ctx.changeStartClippingAngle($event); });
2035
- i0.ɵɵelementEnd()();
2036
- i0.ɵɵtext(10, " Start Angle ");
2037
- i0.ɵɵelementEnd();
2038
- i0.ɵɵelementStart(11, "button", 5);
2039
- i0.ɵɵlistener("focus", function ObjectClippingComponent_Template_button_focus_11_listener() { i0.ɵɵrestoreView(_r4); const _r3 = i0.ɵɵreference(14); return i0.ɵɵresetView(_r3.focus()); });
2040
- i0.ɵɵelementStart(12, "mat-slider", 6)(13, "input", 7, 9);
2041
- i0.ɵɵlistener("valueChange", function ObjectClippingComponent_Template_input_valueChange_13_listener($event) { return ctx.changeOpeningClippingAngle($event); });
2042
- i0.ɵɵelementEnd()();
2043
- i0.ɵɵtext(15, " Opening Angle ");
2044
- i0.ɵɵelementEnd()();
2045
- i0.ɵɵelement(16, "app-menu-toggle", 10);
2046
- }
2047
- if (rf & 2) {
2048
- const _r0 = i0.ɵɵreference(1);
2049
- i0.ɵɵadvance(3);
2050
- i0.ɵɵproperty("checked", ctx.clippingEnabled);
2051
- i0.ɵɵadvance(5);
2052
- i0.ɵɵproperty("value", ctx.startClippingAngle);
2053
- i0.ɵɵadvance(5);
2054
- i0.ɵɵproperty("value", ctx.openingClippingAngle);
2055
- i0.ɵɵadvance(3);
2056
- i0.ɵɵproperty("matMenuTriggerFor", _r0)("active", ctx.clippingEnabled);
2057
- }
2058
- }, dependencies: [i3$1.MatMenu, i3$1.MatMenuItem, i3$1.MatMenuTrigger, i2$1.MatSlider, i2$1.MatSliderThumb, i4$1.MatCheckbox, MenuToggleComponent], styles: [".slider-btn[_ngcontent-%COMP%]{overflow:visible}mat-slider[_ngcontent-%COMP%]{margin-left:.75rem;margin-right:.75rem}"] });
2059
- (function () {
2060
- (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ObjectClippingComponent, [{
2061
- type: Component,
2062
- args: [{ selector: 'app-object-clipping', template: "<mat-menu class=\"mat-menu\" #menu>\n <button\n mat-menu-item\n (click)=\"\n $event.stopPropagation();\n clippingCheckbox._inputElement.nativeElement.click()\n \"\n >\n <mat-checkbox\n #clippingCheckbox\n [checked]=\"clippingEnabled\"\n (click)=\"$event.stopPropagation()\"\n (change)=\"toggleClipping($event)\"\n >\n Clipping\n </mat-checkbox>\n </button>\n <button\n class=\"slider-btn\"\n mat-menu-item\n (focus)=\"startingAngleSlider.focus()\"\n >\n <mat-slider min=\"0\" max=\"360\" step=\"1\" thumbLabel>\n <input\n #startingAngleSlider\n matSliderThumb\n [value]=\"startClippingAngle\"\n (valueChange)=\"changeStartClippingAngle($event)\"\n />\n </mat-slider>\n Start Angle\n </button>\n <button class=\"slider-btn\" mat-menu-item (focus)=\"openingAngleSlider.focus()\">\n <mat-slider min=\"0\" max=\"360\" step=\"1\" thumbLabel>\n <input\n #openingAngleSlider\n matSliderThumb\n [value]=\"openingClippingAngle\"\n (valueChange)=\"changeOpeningClippingAngle($event)\"\n />\n </mat-slider>\n Opening Angle\n </button>\n</mat-menu>\n\n<app-menu-toggle\n [matMenuTriggerFor]=\"menu\"\n tooltip=\"Geometry clipping\"\n icon=\"clipping\"\n [active]=\"clippingEnabled\"\n>\n</app-menu-toggle>\n", styles: [".slider-btn{overflow:visible}mat-slider{margin-left:.75rem;margin-right:.75rem}\n"] }]
2063
- }], function () { return [{ type: EventDisplayService }]; }, null);
2064
- })();
2065
-
2066
- /**
2067
- * Pipe for transforming selected object attributes to a better format.
2068
- */
2069
- class AttributePipe {
2070
- /**
2071
- * Transform the attribute to a better presentable format.
2072
- * @param value Value to be transformed.
2073
- * @param args Additional arguments.
2074
- * @returns The transformed value.
2075
- */
2076
- transform(value, args) {
2077
- let transformedValue = '';
2078
- if (Array.isArray(value)) {
2079
- transformedValue += '\n';
2080
- value.forEach((v) => (transformedValue += v + '\n'));
2081
- }
2082
- else {
2083
- transformedValue = value.toString();
2084
- }
2085
- return transformedValue;
2086
- }
2087
- }
2088
- AttributePipe.ɵfac = function AttributePipe_Factory(t) { return new (t || AttributePipe)(); };
2089
- AttributePipe.ɵpipe = /*@__PURE__*/ i0.ɵɵdefinePipe({ name: "attributePipe", type: AttributePipe, pure: true });
2090
- (function () {
2091
- (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AttributePipe, [{
2092
- type: Pipe,
2093
- args: [{
2094
- name: 'attributePipe',
2095
- }]
2096
- }], null, null);
2097
- })();
2098
-
2099
- function ObjectSelectionOverlayComponent_div_1_div_1_Template(rf, ctx) {
2100
- if (rf & 1) {
2101
- i0.ɵɵelementStart(0, "div", 4)(1, "strong");
2102
- i0.ɵɵtext(2);
2103
- i0.ɵɵelementEnd();
2104
- i0.ɵɵtext(3);
2105
- i0.ɵɵpipe(4, "attributePipe");
2106
- i0.ɵɵelementEnd();
2107
- }
2108
- if (rf & 2) {
2109
- const attribute_r2 = ctx.$implicit;
2110
- i0.ɵɵadvance(2);
2111
- i0.ɵɵtextInterpolate(attribute_r2.attributeName);
2112
- i0.ɵɵadvance(1);
2113
- i0.ɵɵtextInterpolate1(" : ", i0.ɵɵpipeBind1(4, 2, attribute_r2.attributeValue), " ");
2114
- }
2115
- }
2116
- function ObjectSelectionOverlayComponent_div_1_Template(rf, ctx) {
2117
- if (rf & 1) {
2118
- i0.ɵɵelementStart(0, "div", 2);
2119
- i0.ɵɵtemplate(1, ObjectSelectionOverlayComponent_div_1_div_1_Template, 5, 4, "div", 3);
2120
- i0.ɵɵelementEnd();
2121
- }
2122
- if (rf & 2) {
2123
- const ctx_r0 = i0.ɵɵnextContext();
2124
- i0.ɵɵadvance(1);
2125
- i0.ɵɵproperty("ngForOf", ctx_r0.selectedObject.attributes);
2126
- }
2127
- }
2128
- class ObjectSelectionOverlayComponent {
2129
- constructor(eventDisplay) {
2130
- this.eventDisplay = eventDisplay;
2131
- this.selectedObject = { name: 'Object', attributes: [] };
2132
- }
2133
- ngOnInit() {
2134
- this.eventDisplay.allowSelection(this.selectedObject);
2135
- }
2136
- }
2137
- ObjectSelectionOverlayComponent.ɵfac = function ObjectSelectionOverlayComponent_Factory(t) { return new (t || ObjectSelectionOverlayComponent)(i0.ɵɵdirectiveInject(EventDisplayService)); };
2138
- ObjectSelectionOverlayComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ObjectSelectionOverlayComponent, selectors: [["app-object-selection-overlay"]], inputs: { hiddenSelectedInfo: "hiddenSelectedInfo" }, decls: 2, vars: 3, consts: [["icon", "cursor", 3, "overlayTitle", "active"], ["id", "selectedObjectPanelBody", "class", "m-1", 4, "ngIf"], ["id", "selectedObjectPanelBody", 1, "m-1"], ["class", "attributeField", 4, "ngFor", "ngForOf"], [1, "attributeField"]], template: function ObjectSelectionOverlayComponent_Template(rf, ctx) {
2139
- if (rf & 1) {
2140
- i0.ɵɵelementStart(0, "app-overlay", 0);
2141
- i0.ɵɵtemplate(1, ObjectSelectionOverlayComponent_div_1_Template, 2, 1, "div", 1);
2142
- i0.ɵɵelementEnd();
2143
- }
2144
- if (rf & 2) {
2145
- i0.ɵɵproperty("overlayTitle", ctx.selectedObject.name)("active", !ctx.hiddenSelectedInfo);
2146
- i0.ɵɵadvance(1);
2147
- i0.ɵɵproperty("ngIf", ctx.selectedObject.attributes.length > 0);
2148
- }
2149
- }, dependencies: [i2.NgForOf, i2.NgIf, OverlayComponent, AttributePipe], styles: ["#selectedObjectPanelBody[_ngcontent-%COMP%]{padding:0 .8em;overflow:auto;max-width:300px;max-height:16rem;min-width:7rem}"] });
2150
- (function () {
2151
- (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ObjectSelectionOverlayComponent, [{
2152
- type: Component,
2153
- args: [{ selector: 'app-object-selection-overlay', template: "<app-overlay\n icon=\"cursor\"\n [overlayTitle]=\"selectedObject.name\"\n [active]=\"!hiddenSelectedInfo\"\n>\n <div\n id=\"selectedObjectPanelBody\"\n class=\"m-1\"\n *ngIf=\"selectedObject.attributes.length > 0\"\n >\n <div\n *ngFor=\"let attribute of selectedObject.attributes\"\n class=\"attributeField\"\n >\n <strong>{{ attribute.attributeName }}</strong>\n : {{ attribute.attributeValue | attributePipe }}\n </div>\n </div>\n</app-overlay>\n", styles: ["#selectedObjectPanelBody{padding:0 .8em;overflow:auto;max-width:300px;max-height:16rem;min-width:7rem}\n"] }]
2154
- }], function () { return [{ type: EventDisplayService }]; }, { hiddenSelectedInfo: [{
2155
- type: Input
2156
- }] });
2157
- })();
2158
-
2159
- class ObjectSelectionComponent {
2160
- constructor(overlay, eventDisplay) {
2161
- this.overlay = overlay;
2162
- this.eventDisplay = eventDisplay;
2163
- // Attributes for displaying the information of selected objects
2164
- this.hiddenSelectedInfo = true;
2165
- }
2166
- ngOnInit() {
2167
- const overlayRef = this.overlay.create();
2168
- const overlayPortal = new ComponentPortal(ObjectSelectionOverlayComponent);
2169
- this.overlayWindow = overlayRef.attach(overlayPortal);
2170
- this.overlayWindow.instance.hiddenSelectedInfo = this.hiddenSelectedInfo;
2171
- }
2172
- ngOnDestroy() {
2173
- this.overlayWindow.destroy();
2174
- }
2175
- toggleOverlay() {
2176
- this.hiddenSelectedInfo = !this.hiddenSelectedInfo;
2177
- this.overlayWindow.instance.hiddenSelectedInfo = this.hiddenSelectedInfo;
2178
- this.eventDisplay.enableSelecting(!this.hiddenSelectedInfo);
2179
- }
2180
- }
2181
- ObjectSelectionComponent.ɵfac = function ObjectSelectionComponent_Factory(t) { return new (t || ObjectSelectionComponent)(i0.ɵɵdirectiveInject(i1$1.Overlay), i0.ɵɵdirectiveInject(EventDisplayService)); };
2182
- ObjectSelectionComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ObjectSelectionComponent, selectors: [["app-object-selection"]], decls: 1, vars: 1, consts: [["tooltip", "Object selection", "icon", "cursor", 3, "active", "click"]], template: function ObjectSelectionComponent_Template(rf, ctx) {
2183
- if (rf & 1) {
2184
- i0.ɵɵelementStart(0, "app-menu-toggle", 0);
2185
- i0.ɵɵlistener("click", function ObjectSelectionComponent_Template_app_menu_toggle_click_0_listener() { return ctx.toggleOverlay(); });
2186
- i0.ɵɵelementEnd();
2187
- }
2188
- if (rf & 2) {
2189
- i0.ɵɵproperty("active", !ctx.hiddenSelectedInfo);
2190
- }
2191
- }, dependencies: [MenuToggleComponent] });
2192
- (function () {
2193
- (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ObjectSelectionComponent, [{
2194
- type: Component,
2195
- args: [{ selector: 'app-object-selection', template: "<app-menu-toggle\n tooltip=\"Object selection\"\n icon=\"cursor\"\n [active]=\"!hiddenSelectedInfo\"\n (click)=\"toggleOverlay()\"\n>\n</app-menu-toggle>\n" }]
2196
- }], function () { return [{ type: i1$1.Overlay }, { type: EventDisplayService }]; }, null);
2197
- })();
2198
-
2199
- const _c0$5 = ["overlayWindow"];
2200
- class OverlayViewWindowComponent {
2201
- constructor(eventDisplay) {
2202
- this.eventDisplay = eventDisplay;
2203
- this.showOverlay = true;
2204
- this.transparentBody = false;
2205
- this.orthographicView = false;
2206
- this.overlayViewFixed = false;
2207
- }
2208
- ngAfterViewInit() {
2209
- const canvas = this.initializeCanvas(this.overlayWindow.nativeElement);
2210
- this.eventDisplay.setOverlayRenderer(canvas);
2211
- }
2212
- initializeCanvas(canvas) {
2213
- const width = window.innerWidth / 2.5;
2214
- const height = window.innerHeight / 2.5;
2215
- canvas.width = width;
2216
- canvas.height = height;
2217
- canvas.style.width = width.toString() + ' px';
2218
- canvas.style.height = height.toString() + ' px';
2219
- return canvas;
2220
- }
2221
- switchOverlayView() {
2222
- this.orthographicView = !this.orthographicView;
2223
- this.eventDisplay
2224
- .getUIManager()
2225
- .toggleOrthographicView(this.orthographicView);
2226
- }
2227
- fixOverlayView() {
2228
- this.overlayViewFixed = !this.overlayViewFixed;
2229
- this.eventDisplay.fixOverlayView(this.overlayViewFixed);
2230
- }
2231
- toggleBgTransparency() {
2232
- this.transparentBody = !this.transparentBody;
2233
- }
2234
- }
2235
- OverlayViewWindowComponent.ɵfac = function OverlayViewWindowComponent_Factory(t) { return new (t || OverlayViewWindowComponent)(i0.ɵɵdirectiveInject(EventDisplayService)); };
2236
- OverlayViewWindowComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: OverlayViewWindowComponent, selectors: [["app-overlay-view-window"]], viewQuery: function OverlayViewWindowComponent_Query(rf, ctx) {
2237
- if (rf & 1) {
2238
- i0.ɵɵviewQuery(_c0$5, 5);
2239
- }
2240
- if (rf & 2) {
2241
- let _t;
2242
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.overlayWindow = _t.first);
2243
- }
2244
- }, inputs: { showOverlay: "showOverlay" }, decls: 8, vars: 9, consts: [["overlayTitle", "Overlay View", "icon", "overlay", 3, "resizable", "transparentBody", "active", "keepAspectRatioFixed"], [1, "overlay-view-wrapper"], ["id", "overlay-canvas", 3, "hidden"], ["overlayWindow", ""], [1, "overlay-view-controls", "position-absolute", "d-flex", "flex-row"], ["icon", "transparent", "matTooltip", "Toggle background transparency", 1, "overlay-view-control", 3, "click"], ["icon", "move-lock", 1, "overlay-view-control", 3, "matTooltip", "active", "click"], [1, "overlay-view-control", 3, "icon", "matTooltip", "click"]], template: function OverlayViewWindowComponent_Template(rf, ctx) {
2245
- if (rf & 1) {
2246
- i0.ɵɵelementStart(0, "app-overlay", 0)(1, "div", 1);
2247
- i0.ɵɵelement(2, "canvas", 2, 3);
2248
- i0.ɵɵelementStart(4, "div", 4)(5, "app-menu-toggle", 5);
2249
- i0.ɵɵlistener("click", function OverlayViewWindowComponent_Template_app_menu_toggle_click_5_listener() { return ctx.toggleBgTransparency(); });
2250
- i0.ɵɵelementEnd();
2251
- i0.ɵɵelementStart(6, "app-menu-toggle", 6);
2252
- i0.ɵɵlistener("click", function OverlayViewWindowComponent_Template_app_menu_toggle_click_6_listener() { return ctx.fixOverlayView(); });
2253
- i0.ɵɵelementEnd();
2254
- i0.ɵɵelementStart(7, "app-menu-toggle", 7);
2255
- i0.ɵɵlistener("click", function OverlayViewWindowComponent_Template_app_menu_toggle_click_7_listener() { return ctx.switchOverlayView(); });
2256
- i0.ɵɵelementEnd()()()();
2257
- }
2258
- if (rf & 2) {
2259
- i0.ɵɵproperty("resizable", true)("transparentBody", ctx.transparentBody)("active", ctx.showOverlay)("keepAspectRatioFixed", true);
2260
- i0.ɵɵadvance(2);
2261
- i0.ɵɵproperty("hidden", !ctx.showOverlay);
2262
- i0.ɵɵadvance(4);
2263
- i0.ɵɵproperty("matTooltip", (ctx.overlayViewFixed ? "Restore" : "Fix") + " overlay view")("active", ctx.overlayViewFixed);
2264
- i0.ɵɵadvance(1);
2265
- i0.ɵɵproperty("icon", ctx.orthographicView ? "orthographic" : "perspective")("matTooltip", "Switch to " + (ctx.orthographicView ? "orthographic" : "perspective") + " view");
2266
- }
2267
- }, dependencies: [i2$3.MatTooltip, MenuToggleComponent, OverlayComponent], styles: ["#overlay-canvas[_ngcontent-%COMP%]{background-color:#0000001a;width:100%}.overlay-view-controls[_ngcontent-%COMP%]{bottom:1em;right:1em;opacity:0;transition:opacity .2s}.overlay-view-controls[_ngcontent-%COMP%] .overlay-view-control[_ngcontent-%COMP%]{background:var(--phoenix-background-color-secondary);box-shadow:var(--phoenix-box-shadow);overflow:hidden;width:2.5rem;height:2.5rem;border-radius:50%;display:flex;justify-content:center;align-items:center}.overlay-view-wrapper[_ngcontent-%COMP%]:hover .overlay-view-controls[_ngcontent-%COMP%]{opacity:1;transition:opacity .2s}"] });
2268
- (function () {
2269
- (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(OverlayViewWindowComponent, [{
2270
- type: Component,
2271
- args: [{ selector: 'app-overlay-view-window', template: "<app-overlay\n overlayTitle=\"Overlay View\"\n icon=\"overlay\"\n [resizable]=\"true\"\n [transparentBody]=\"transparentBody\"\n [active]=\"showOverlay\"\n [keepAspectRatioFixed]=\"true\"\n>\n <div class=\"overlay-view-wrapper\">\n <canvas #overlayWindow id=\"overlay-canvas\" [hidden]=\"!showOverlay\">\n </canvas>\n <div class=\"overlay-view-controls position-absolute d-flex flex-row\">\n <app-menu-toggle\n class=\"overlay-view-control\"\n icon=\"transparent\"\n matTooltip=\"Toggle background transparency\"\n (click)=\"toggleBgTransparency()\"\n >\n </app-menu-toggle>\n <app-menu-toggle\n class=\"overlay-view-control\"\n icon=\"move-lock\"\n [matTooltip]=\"(overlayViewFixed ? 'Restore' : 'Fix') + ' overlay view'\"\n [active]=\"overlayViewFixed\"\n (click)=\"fixOverlayView()\"\n >\n </app-menu-toggle>\n <app-menu-toggle\n class=\"overlay-view-control\"\n [icon]=\"orthographicView ? 'orthographic' : 'perspective'\"\n [matTooltip]=\"\n 'Switch to ' +\n (orthographicView ? 'orthographic' : 'perspective') +\n ' view'\n \"\n (click)=\"switchOverlayView()\"\n >\n </app-menu-toggle>\n </div>\n </div>\n</app-overlay>\n", styles: ["#overlay-canvas{background-color:#0000001a;width:100%}.overlay-view-controls{bottom:1em;right:1em;opacity:0;transition:opacity .2s}.overlay-view-controls .overlay-view-control{background:var(--phoenix-background-color-secondary);box-shadow:var(--phoenix-box-shadow);overflow:hidden;width:2.5rem;height:2.5rem;border-radius:50%;display:flex;justify-content:center;align-items:center}.overlay-view-wrapper:hover .overlay-view-controls{opacity:1;transition:opacity .2s}\n"] }]
2272
- }], function () { return [{ type: EventDisplayService }]; }, { showOverlay: [{
2273
- type: Input
2274
- }], overlayWindow: [{
2275
- type: ViewChild,
2276
- args: ['overlayWindow']
2277
- }] });
2278
- })();
2279
-
2280
- class OverlayViewComponent {
2281
- constructor(overlay) {
2282
- this.overlay = overlay;
2283
- this.showOverlay = false;
2284
- }
2285
- ngOnInit() {
2286
- const overlayRef = this.overlay.create();
2287
- const overlayPortal = new ComponentPortal(OverlayViewWindowComponent);
2288
- this.overlayWindow = overlayRef.attach(overlayPortal);
2289
- this.overlayWindow.instance.showOverlay = this.showOverlay;
2290
- }
2291
- ngOnDestroy() {
2292
- this.overlayWindow.destroy();
2293
- }
2294
- toggleOverlay() {
2295
- this.showOverlay = !this.showOverlay;
2296
- this.overlayWindow.instance.showOverlay = this.showOverlay;
2297
- }
2298
- }
2299
- OverlayViewComponent.ɵfac = function OverlayViewComponent_Factory(t) { return new (t || OverlayViewComponent)(i0.ɵɵdirectiveInject(i1$1.Overlay)); };
2300
- OverlayViewComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: OverlayViewComponent, selectors: [["app-overlay-view"]], decls: 1, vars: 1, consts: [["tooltip", "Overlay view", "icon", "overlay", 3, "active", "click"]], template: function OverlayViewComponent_Template(rf, ctx) {
2301
- if (rf & 1) {
2302
- i0.ɵɵelementStart(0, "app-menu-toggle", 0);
2303
- i0.ɵɵlistener("click", function OverlayViewComponent_Template_app_menu_toggle_click_0_listener() { return ctx.toggleOverlay(); });
2304
- i0.ɵɵelementEnd();
2305
- }
2306
- if (rf & 2) {
2307
- i0.ɵɵproperty("active", ctx.showOverlay);
2308
- }
2309
- }, dependencies: [MenuToggleComponent] });
2310
- (function () {
2311
- (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(OverlayViewComponent, [{
2312
- type: Component,
2313
- args: [{ selector: 'app-overlay-view', template: "<app-menu-toggle\n tooltip=\"Overlay view\"\n icon=\"overlay\"\n [active]=\"showOverlay\"\n (click)=\"toggleOverlay()\"\n>\n</app-menu-toggle>\n" }]
2314
- }], function () { return [{ type: i1$1.Overlay }]; }, null);
2315
- })();
2316
-
2317
- function TreeMenuItemComponent_ng_container_0_button_2_Template(rf, ctx) {
2318
- if (rf & 1) {
2319
- const _r4 = i0.ɵɵgetCurrentView();
2320
- i0.ɵɵelementStart(0, "button", 7);
2321
- i0.ɵɵlistener("click", function TreeMenuItemComponent_ng_container_0_button_2_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r4); const ctx_r3 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r3.isExpanded = !ctx_r3.isExpanded); });
2322
- i0.ɵɵelementStart(1, "mat-icon", 8);
2323
- i0.ɵɵtext(2);
2324
- i0.ɵɵelementEnd()();
2325
- }
2326
- if (rf & 2) {
2327
- const ctx_r1 = i0.ɵɵnextContext(2);
2328
- i0.ɵɵadvance(2);
2329
- i0.ɵɵtextInterpolate1(" ", ctx_r1.isExpanded ? "expand_more" : "chevron_right", " ");
2330
- }
2331
- }
2332
- function TreeMenuItemComponent_ng_container_0_li_7_Template(rf, ctx) {
2333
- if (rf & 1) {
2334
- i0.ɵɵelementStart(0, "li");
2335
- i0.ɵɵelement(1, "app-tree-menu-item", 9);
2336
- i0.ɵɵelementEnd();
2337
- }
2338
- if (rf & 2) {
2339
- const node_r5 = ctx.$implicit;
2340
- i0.ɵɵadvance(1);
2341
- i0.ɵɵproperty("node", node_r5);
2342
- }
2343
- }
2344
- const _c0$4 = function (a0) { return { visible: a0 }; };
2345
- function TreeMenuItemComponent_ng_container_0_Template(rf, ctx) {
2346
- if (rf & 1) {
2347
- const _r7 = i0.ɵɵgetCurrentView();
2348
- i0.ɵɵelementContainerStart(0);
2349
- i0.ɵɵelementStart(1, "div", 1);
2350
- i0.ɵɵtemplate(2, TreeMenuItemComponent_ng_container_0_button_2_Template, 3, 1, "button", 2);
2351
- i0.ɵɵelementStart(3, "div", 3);
2352
- i0.ɵɵlistener("click", function TreeMenuItemComponent_ng_container_0_Template_div_click_3_listener() { i0.ɵɵrestoreView(_r7); const ctx_r6 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r6.toggleVisibility(!ctx_r6.visible)); });
2353
- i0.ɵɵtext(4);
2354
- i0.ɵɵelementEnd()();
2355
- i0.ɵɵelementStart(5, "ul", 4)(6, "div", 5);
2356
- i0.ɵɵtemplate(7, TreeMenuItemComponent_ng_container_0_li_7_Template, 2, 1, "li", 6);
2357
- i0.ɵɵelementEnd()();
2358
- i0.ɵɵelementContainerEnd();
2359
- }
2360
- if (rf & 2) {
2361
- const ctx_r0 = i0.ɵɵnextContext();
2362
- i0.ɵɵadvance(1);
2363
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(5, _c0$4, ctx_r0.visible));
2364
- i0.ɵɵadvance(1);
2365
- i0.ɵɵproperty("ngIf", ctx_r0.node.children);
2366
- i0.ɵɵadvance(2);
2367
- i0.ɵɵtextInterpolate1(" ", ctx_r0.node.name, " ");
2368
- i0.ɵɵadvance(1);
2369
- i0.ɵɵproperty("hidden", !ctx_r0.isExpanded);
2370
- i0.ɵɵadvance(2);
2371
- i0.ɵɵproperty("ngForOf", ctx_r0.node.children);
2372
- }
2373
- }
2374
- class TreeMenuItemComponent {
2375
- constructor(eventDisplay) {
2376
- this.eventDisplay = eventDisplay;
2377
- this.isExpanded = false;
2378
- this.visible = true;
2379
- }
2380
- toggleVisibility(visible) {
2381
- console.log("hi! it's " + this.node.name);
2382
- this.eventDisplay
2383
- .getUIManager()
2384
- .geometryVisibility(this.node.geometryId, visible);
2385
- this.visible = visible;
2386
- this.children.forEach((child) => child.toggleVisibility(visible));
2387
- }
2388
- }
2389
- TreeMenuItemComponent.ɵfac = function TreeMenuItemComponent_Factory(t) { return new (t || TreeMenuItemComponent)(i0.ɵɵdirectiveInject(EventDisplayService)); };
2390
- TreeMenuItemComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TreeMenuItemComponent, selectors: [["app-tree-menu-item"]], viewQuery: function TreeMenuItemComponent_Query(rf, ctx) {
2391
- if (rf & 1) {
2392
- i0.ɵɵviewQuery(TreeMenuItemComponent, 5);
2393
- }
2394
- if (rf & 2) {
2395
- let _t;
2396
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.children = _t);
2397
- }
2398
- }, inputs: { node: "node" }, decls: 1, vars: 1, consts: [[4, "ngIf"], [1, "header", 3, "ngClass"], ["mat-icon-button", "", "matTreeNodeToggle", "", 3, "click", 4, "ngIf"], [1, "node-name", 3, "click"], ["hid", "", 3, "hidden"], [1, "children"], [4, "ngFor", "ngForOf"], ["mat-icon-button", "", "matTreeNodeToggle", "", 3, "click"], [1, "mat-icon-rtl-mirror"], [3, "node"]], template: function TreeMenuItemComponent_Template(rf, ctx) {
2399
- if (rf & 1) {
2400
- i0.ɵɵtemplate(0, TreeMenuItemComponent_ng_container_0_Template, 8, 7, "ng-container", 0);
2401
- }
2402
- if (rf & 2) {
2403
- i0.ɵɵproperty("ngIf", ctx.node);
2404
- }
2405
- }, dependencies: [i2.NgClass, i2.NgForOf, i2.NgIf, i2$2.MatIconButton, i4$2.MatIcon, TreeMenuItemComponent], styles: [".header[_ngcontent-%COMP%]{cursor:pointer;user-select:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;display:flex;flex-direction:row;align-items:center}.header[_ngcontent-%COMP%] .node-name[_ngcontent-%COMP%], .header[_ngcontent-%COMP%] .mat-icon-rtl-mirror[_ngcontent-%COMP%]{color:var(--phoenix-text-color-secondary)}.header.visible[_ngcontent-%COMP%] .node-name[_ngcontent-%COMP%], .header.visible[_ngcontent-%COMP%] .mat-icon-rtl-mirror[_ngcontent-%COMP%]{color:var(--phoenix-accent)}.children[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{list-style-type:none}"] });
2406
- (function () {
2407
- (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TreeMenuItemComponent, [{
2408
- type: Component,
2409
- args: [{ selector: 'app-tree-menu-item', template: "<ng-container *ngIf=\"node\">\n <div class=\"header\" [ngClass]=\"{ visible: visible }\">\n <button\n *ngIf=\"node.children\"\n mat-icon-button\n matTreeNodeToggle\n (click)=\"isExpanded = !isExpanded\"\n >\n <mat-icon class=\"mat-icon-rtl-mirror\">\n {{ isExpanded ? 'expand_more' : 'chevron_right' }}\n </mat-icon>\n </button>\n <div (click)=\"toggleVisibility(!visible)\" class=\"node-name\">\n {{ node.name }}\n </div>\n </div>\n <ul [hidden]=\"!isExpanded\" hid>\n <div class=\"children\">\n <li *ngFor=\"let node of node.children\">\n <app-tree-menu-item [node]=\"node\"></app-tree-menu-item>\n </li>\n </div>\n </ul>\n</ng-container>\n", styles: [".header{cursor:pointer;user-select:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;display:flex;flex-direction:row;align-items:center}.header .node-name,.header .mat-icon-rtl-mirror{color:var(--phoenix-text-color-secondary)}.header.visible .node-name,.header.visible .mat-icon-rtl-mirror{color:var(--phoenix-accent)}.children li{list-style-type:none}\n"] }]
2410
- }], function () { return [{ type: EventDisplayService }]; }, { children: [{
2411
- type: ViewChildren,
2412
- args: [TreeMenuItemComponent]
2413
- }], node: [{
2414
- type: Input
2415
- }] });
2416
- })();
2417
-
2418
- class TreeMenuComponent {
2419
- constructor() {
2420
- this.rootNode = {
2421
- name: 'Atlas Detector',
2422
- geometryId: 'AtlasDetector',
2423
- children: [
2424
- {
2425
- name: 'Magnet systems',
2426
- geometryId: 'MagnetSys',
2427
- children: [
2428
- {
2429
- name: 'Toroids',
2430
- geometryId: 'Toroids',
2431
- },
2432
- ],
2433
- },
2434
- {
2435
- name: 'Calorimeters',
2436
- geometryId: 'CaloSys',
2437
- children: [
2438
- {
2439
- name: 'LAr Barrel',
2440
- geometryId: 'LAr Barrel',
2441
- },
2442
- {
2443
- name: 'LAr EC1',
2444
- geometryId: 'LAr EC1',
2445
- },
2446
- {
2447
- name: 'LAr EC2',
2448
- geometryId: 'LAr EC2',
2449
- },
2450
- {
2451
- name: 'Tile Cal',
2452
- geometryId: 'Tile Cal',
2453
- },
2454
- ],
2455
- },
2456
- {
2457
- name: 'Inner detector',
2458
- geometryId: 'InDetSys',
2459
- children: [
2460
- {
2461
- name: 'Pixel',
2462
- geometryId: 'Pixel',
2463
- },
2464
- {
2465
- name: 'SCT',
2466
- geometryId: 'SCT',
2467
- },
2468
- {
2469
- name: 'TRT',
2470
- geometryId: 'TRT',
2471
- },
2472
- ],
2473
- },
2474
- ],
2475
- };
2476
- }
2477
- ngOnInit() { }
2478
- }
2479
- TreeMenuComponent.ɵfac = function TreeMenuComponent_Factory(t) { return new (t || TreeMenuComponent)(); };
2480
- TreeMenuComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TreeMenuComponent, selectors: [["app-tree-menu"]], decls: 3, vars: 1, consts: [[1, "tree-wrapper"], [1, "tree-menu"], [3, "node"]], template: function TreeMenuComponent_Template(rf, ctx) {
2481
- if (rf & 1) {
2482
- i0.ɵɵelementStart(0, "div", 0)(1, "div", 1);
2483
- i0.ɵɵelement(2, "app-tree-menu-item", 2);
2484
- i0.ɵɵelementEnd()();
2485
- }
2486
- if (rf & 2) {
2487
- i0.ɵɵadvance(2);
2488
- i0.ɵɵproperty("node", ctx.rootNode);
2489
- }
2490
- }, dependencies: [TreeMenuItemComponent], styles: [".tree-wrapper[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;display:flex;flex-direction:column;justify-content:center;align-items:center;align-content:center}.tree-menu[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;align-content:center;max-height:70vh;overflow-y:scroll}.example-tree-invisible[_ngcontent-%COMP%]{display:none}.example-tree[_ngcontent-%COMP%] ul[_ngcontent-%COMP%], .example-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;list-style-type:none}"] });
2491
- (function () {
2492
- (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TreeMenuComponent, [{
2493
- type: Component,
2494
- args: [{ selector: 'app-tree-menu', template: "<div class=\"tree-wrapper\">\n <div class=\"tree-menu\">\n <app-tree-menu-item [node]=\"rootNode\"></app-tree-menu-item>\n </div>\n</div>\n", styles: [".tree-wrapper{position:absolute;top:0;bottom:0;left:0;display:flex;flex-direction:column;justify-content:center;align-items:center;align-content:center}.tree-menu{display:flex;flex-direction:column;justify-content:center;align-items:center;align-content:center;max-height:70vh;overflow-y:scroll}.example-tree-invisible{display:none}.example-tree ul,.example-tree li{margin-top:0;margin-bottom:0;list-style-type:none}\n"] }]
2495
- }], function () { return []; }, null);
2496
- })();
2497
-
2498
- function ViewOptionsComponent_button_10__svg_svg_1_Template(rf, ctx) {
2499
- if (rf & 1) {
2500
- i0.ɵɵnamespaceSVG();
2501
- i0.ɵɵelementStart(0, "svg", 8);
2502
- i0.ɵɵelement(1, "use");
2503
- i0.ɵɵelementEnd();
2504
- }
2505
- if (rf & 2) {
2506
- const view_r4 = i0.ɵɵnextContext().$implicit;
2507
- i0.ɵɵadvance(1);
2508
- i0.ɵɵattributeInterpolate2("href", "assets/icons/", view_r4.icon, ".svg#", view_r4.icon, "");
2509
- }
2510
- }
2511
- function ViewOptionsComponent_button_10_Template(rf, ctx) {
2512
- if (rf & 1) {
2513
- const _r8 = i0.ɵɵgetCurrentView();
2514
- i0.ɵɵelementStart(0, "button", 1);
2515
- i0.ɵɵlistener("click", function ViewOptionsComponent_button_10_Template_button_click_0_listener($event) { const restoredCtx = i0.ɵɵrestoreView(_r8); const view_r4 = restoredCtx.$implicit; const ctx_r7 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r7.displayView($event, view_r4)); });
2516
- i0.ɵɵtemplate(1, ViewOptionsComponent_button_10__svg_svg_1_Template, 2, 2, "svg", 7);
2517
- i0.ɵɵtext(2);
2518
- i0.ɵɵelementEnd();
2519
- }
2520
- if (rf & 2) {
2521
- const view_r4 = ctx.$implicit;
2522
- i0.ɵɵadvance(1);
2523
- i0.ɵɵproperty("ngIf", view_r4.icon);
2524
- i0.ɵɵadvance(1);
2525
- i0.ɵɵtextInterpolate1(" ", view_r4.name, " ");
2526
- }
2527
- }
2528
- class ViewOptionsComponent {
2529
- constructor(eventDisplay) {
2530
- this.eventDisplay = eventDisplay;
2531
- }
2532
- ngOnInit() {
2533
- this.views = this.eventDisplay.getUIManager().getPresetViews();
2534
- }
2535
- displayView($event, view) {
2536
- $event.stopPropagation();
2537
- this.eventDisplay.getUIManager().displayView(view);
2538
- }
2539
- setAxis(change) {
2540
- const value = change.checked;
2541
- this.eventDisplay.getUIManager().setShowAxis(value);
2542
- }
2543
- setGrid(change) {
2544
- const value = change.checked;
2545
- this.eventDisplay.getUIManager().setShowGrid(value);
2546
- }
2547
- }
2548
- ViewOptionsComponent.ɵfac = function ViewOptionsComponent_Factory(t) { return new (t || ViewOptionsComponent)(i0.ɵɵdirectiveInject(EventDisplayService)); };
2549
- ViewOptionsComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ViewOptionsComponent, selectors: [["app-view-options"]], decls: 12, vars: 3, consts: [["viewOptions", ""], ["mat-menu-item", "", 3, "click"], [3, "click", "change"], ["showGridCheckbox", ""], ["showAxisCheckbox", ""], ["mat-menu-item", "", 3, "click", 4, "ngFor", "ngForOf"], ["tooltip", "View options", "icon", "views", 3, "matMenuTriggerFor", "active"], ["class", "view-icon", 4, "ngIf"], [1, "view-icon"]], template: function ViewOptionsComponent_Template(rf, ctx) {
2550
- if (rf & 1) {
2551
- const _r9 = i0.ɵɵgetCurrentView();
2552
- i0.ɵɵelementStart(0, "mat-menu", null, 0)(2, "button", 1);
2553
- i0.ɵɵlistener("click", function ViewOptionsComponent_Template_button_click_2_listener($event) { i0.ɵɵrestoreView(_r9); const _r1 = i0.ɵɵreference(4); $event.stopPropagation(); return i0.ɵɵresetView(_r1._inputElement.nativeElement.click()); });
2554
- i0.ɵɵelementStart(3, "mat-checkbox", 2, 3);
2555
- i0.ɵɵlistener("click", function ViewOptionsComponent_Template_mat_checkbox_click_3_listener($event) { return $event.stopPropagation(); })("change", function ViewOptionsComponent_Template_mat_checkbox_change_3_listener($event) { return ctx.setGrid($event); });
2556
- i0.ɵɵtext(5, "Show Grid ");
2557
- i0.ɵɵelementEnd()();
2558
- i0.ɵɵelementStart(6, "button", 1);
2559
- i0.ɵɵlistener("click", function ViewOptionsComponent_Template_button_click_6_listener($event) { i0.ɵɵrestoreView(_r9); const _r2 = i0.ɵɵreference(8); $event.stopPropagation(); return i0.ɵɵresetView(_r2._inputElement.nativeElement.click()); });
2560
- i0.ɵɵelementStart(7, "mat-checkbox", 2, 4);
2561
- i0.ɵɵlistener("click", function ViewOptionsComponent_Template_mat_checkbox_click_7_listener($event) { return $event.stopPropagation(); })("change", function ViewOptionsComponent_Template_mat_checkbox_change_7_listener($event) { return ctx.setAxis($event); });
2562
- i0.ɵɵtext(9, "Show Axis ");
2563
- i0.ɵɵelementEnd()();
2564
- i0.ɵɵtemplate(10, ViewOptionsComponent_button_10_Template, 3, 2, "button", 5);
2565
- i0.ɵɵelementEnd();
2566
- i0.ɵɵelement(11, "app-menu-toggle", 6);
2567
- }
2568
- if (rf & 2) {
2569
- const _r0 = i0.ɵɵreference(1);
2570
- i0.ɵɵadvance(10);
2571
- i0.ɵɵproperty("ngForOf", ctx.views);
2572
- i0.ɵɵadvance(1);
2573
- i0.ɵɵproperty("matMenuTriggerFor", _r0)("active", false);
2574
- }
2575
- }, dependencies: [i2.NgForOf, i2.NgIf, i3$1.MatMenu, i3$1.MatMenuItem, i3$1.MatMenuTrigger, i4$1.MatCheckbox, MenuToggleComponent], styles: [".view-icon[_ngcontent-%COMP%]{width:1.2rem;height:1.2rem;margin-right:.5rem}"] });
2576
- (function () {
2577
- (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ViewOptionsComponent, [{
2578
- type: Component,
2579
- args: [{ selector: 'app-view-options', template: "<mat-menu #viewOptions>\n <button\n mat-menu-item\n (click)=\"\n $event.stopPropagation();\n showGridCheckbox._inputElement.nativeElement.click()\n \"\n >\n <mat-checkbox\n #showGridCheckbox\n (click)=\"$event.stopPropagation()\"\n (change)=\"setGrid($event)\"\n >Show Grid\n </mat-checkbox>\n </button>\n <button\n mat-menu-item\n (click)=\"\n $event.stopPropagation();\n showAxisCheckbox._inputElement.nativeElement.click()\n \"\n >\n <mat-checkbox\n #showAxisCheckbox\n (click)=\"$event.stopPropagation()\"\n (change)=\"setAxis($event)\"\n >Show Axis\n </mat-checkbox>\n </button>\n <button\n mat-menu-item\n *ngFor=\"let view of views\"\n (click)=\"displayView($event, view)\"\n >\n <svg class=\"view-icon\" *ngIf=\"view.icon\">\n <use attr.href=\"assets/icons/{{ view.icon }}.svg#{{ view.icon }}\"></use>\n </svg>\n {{ view.name }}\n </button>\n</mat-menu>\n\n<app-menu-toggle\n [matMenuTriggerFor]=\"viewOptions\"\n tooltip=\"View options\"\n icon=\"views\"\n [active]=\"false\"\n>\n</app-menu-toggle>\n", styles: [".view-icon{width:1.2rem;height:1.2rem;margin-right:.5rem}\n"] }]
2580
- }], function () { return [{ type: EventDisplayService }]; }, null);
2581
- })();
2582
-
2583
- class VrToggleComponent {
2584
- constructor(eventDisplay) {
2585
- var _a, _b;
2586
- this.eventDisplay = eventDisplay;
2587
- this.vrSupported = false;
2588
- this.vrActive = false;
2589
- // NOTE: WebXR needs secure HTTPS context
2590
- // Query for permissions of XR before using it (not supported by browsers yet). See https://developer.mozilla.org/en-US/docs/Web/API/Permissions/query
2591
- (_b = (_a = navigator === null || navigator === void 0 ? void 0 : navigator.xr) === null || _a === void 0 ? void 0 : _a.isSessionSupported) === null || _b === void 0 ? void 0 : _b.call(_a, VRManager.SESSION_TYPE).then((supported) => {
2592
- if (supported) {
2593
- this.vrSupported = true;
2594
- }
2595
- }).catch((err) => console.warn('Error in VR', err));
2596
- }
2597
- toggleVr() {
2598
- // If toggling VR on
2599
- if (!this.vrActive) {
2600
- this.eventDisplay.initXR(XRSessionType.VR, () => {
2601
- this.vrActive = false;
2602
- // Disable renderer XR and remove animation loop
2603
- this.eventDisplay.endXR(XRSessionType.VR);
2604
- });
2605
- this.vrActive = true;
2606
- }
2607
- else {
2608
- this.eventDisplay.endXR(XRSessionType.VR);
2609
- this.vrActive = false;
2610
- }
2611
- }
2612
- }
2613
- VrToggleComponent.ɵfac = function VrToggleComponent_Factory(t) { return new (t || VrToggleComponent)(i0.ɵɵdirectiveInject(EventDisplayService)); };
2614
- VrToggleComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: VrToggleComponent, selectors: [["app-vr-toggle"]], decls: 1, vars: 3, consts: [["icon", "vr", 3, "disabled", "active", "tooltip", "click"]], template: function VrToggleComponent_Template(rf, ctx) {
2615
- if (rf & 1) {
2616
- i0.ɵɵelementStart(0, "app-menu-toggle", 0);
2617
- i0.ɵɵlistener("click", function VrToggleComponent_Template_app_menu_toggle_click_0_listener() { return ctx.vrSupported && ctx.toggleVr(); });
2618
- i0.ɵɵelementEnd();
2619
- }
2620
- if (rf & 2) {
2621
- i0.ɵɵproperty("disabled", !ctx.vrSupported)("active", ctx.vrActive)("tooltip", ctx.vrSupported ? ctx.vrActive ? "Exit VR" : "Enter VR" : "VR not supported");
2622
- }
2623
- }, dependencies: [MenuToggleComponent] });
2624
- (function () {
2625
- (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(VrToggleComponent, [{
2626
- type: Component,
2627
- args: [{ selector: 'app-vr-toggle', template: "<app-menu-toggle\n [disabled]=\"!vrSupported\"\n [active]=\"vrActive\"\n icon=\"vr\"\n (click)=\"vrSupported && toggleVr()\"\n [tooltip]=\"\n vrSupported ? (vrActive ? 'Exit VR' : 'Enter VR') : 'VR not supported'\n \"\n>\n</app-menu-toggle>\n" }]
2628
- }], function () { return [{ type: EventDisplayService }]; }, null);
2629
- })();
2630
-
2631
- function ArToggleComponent_ng_container_2_Template(rf, ctx) {
2632
- if (rf & 1) {
2633
- const _r4 = i0.ɵɵgetCurrentView();
2634
- i0.ɵɵelementContainerStart(0);
2635
- i0.ɵɵelementStart(1, "button", 4);
2636
- i0.ɵɵlistener("click", function ArToggleComponent_ng_container_2_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r4); const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.toggleAr(true)); });
2637
- i0.ɵɵtext(2, "AR with overlays");
2638
- i0.ɵɵelementEnd();
2639
- i0.ɵɵelementStart(3, "button", 4);
2640
- i0.ɵɵlistener("click", function ArToggleComponent_ng_container_2_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r4); const ctx_r5 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r5.toggleAr(false)); });
2641
- i0.ɵɵtext(4, "AR without overlays");
2642
- i0.ɵɵelementEnd();
2643
- i0.ɵɵelementContainerEnd();
2644
- }
2645
- }
2646
- function ArToggleComponent_button_3_Template(rf, ctx) {
2647
- if (rf & 1) {
2648
- i0.ɵɵelementStart(0, "button", 5);
2649
- i0.ɵɵtext(1, "AR not supported");
2650
- i0.ɵɵelementEnd();
2651
- }
2652
- }
2653
- class ArToggleComponent {
2654
- constructor(eventDisplay) {
2655
- var _a, _b;
2656
- this.eventDisplay = eventDisplay;
2657
- this.arSupported = false;
2658
- this.arActive = false;
2659
- // NOTE: WebXR needs secure HTTPS context
2660
- // Query for permissions of XR before using it (not supported by browsers yet). See https://developer.mozilla.org/en-US/docs/Web/API/Permissions/query
2661
- (_b = (_a = navigator.xr) === null || _a === void 0 ? void 0 : _a.isSessionSupported) === null || _b === void 0 ? void 0 : _b.call(_a, ARManager.SESSION_TYPE).then((supported) => {
2662
- if (supported) {
2663
- this.arSupported = true;
2664
- }
2665
- }).catch((err) => console.warn('Error in AR', err));
2666
- }
2667
- toggleAr(enableDomOverlay = true) {
2668
- ARManager.enableDomOverlay = enableDomOverlay;
2669
- // If toggling AR on
2670
- if (!this.arActive) {
2671
- this.eventDisplay.initXR(XRSessionType.AR, () => {
2672
- this.arActive = false;
2673
- // Disable renderer XR and remove animation loop
2674
- this.eventDisplay.endXR(XRSessionType.AR);
2675
- });
2676
- this.arActive = true;
2677
- }
2678
- else {
2679
- this.eventDisplay.endXR(XRSessionType.AR);
2680
- this.arActive = false;
2681
- }
2682
- }
2683
- }
2684
- ArToggleComponent.ɵfac = function ArToggleComponent_Factory(t) { return new (t || ArToggleComponent)(i0.ɵɵdirectiveInject(EventDisplayService)); };
2685
- ArToggleComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ArToggleComponent, selectors: [["app-ar-toggle"]], decls: 5, vars: 6, consts: [["arToggleOptions", ""], [4, "ngIf"], ["mat-menu-item", "", "disabled", "", 4, "ngIf"], ["icon", "ar", 3, "matMenuTriggerFor", "disabled", "active", "tooltip", "click"], ["mat-menu-item", "", 3, "click"], ["mat-menu-item", "", "disabled", ""]], template: function ArToggleComponent_Template(rf, ctx) {
2686
- if (rf & 1) {
2687
- i0.ɵɵelementStart(0, "mat-menu", null, 0);
2688
- i0.ɵɵtemplate(2, ArToggleComponent_ng_container_2_Template, 5, 0, "ng-container", 1);
2689
- i0.ɵɵtemplate(3, ArToggleComponent_button_3_Template, 2, 0, "button", 2);
2690
- i0.ɵɵelementEnd();
2691
- i0.ɵɵelementStart(4, "app-menu-toggle", 3);
2692
- i0.ɵɵlistener("click", function ArToggleComponent_Template_app_menu_toggle_click_4_listener() { return ctx.arSupported && (ctx.arActive ? ctx.toggleAr() : null); });
2693
- i0.ɵɵelementEnd();
2694
- }
2695
- if (rf & 2) {
2696
- const _r0 = i0.ɵɵreference(1);
2697
- i0.ɵɵadvance(2);
2698
- i0.ɵɵproperty("ngIf", ctx.arSupported);
2699
- i0.ɵɵadvance(1);
2700
- i0.ɵɵproperty("ngIf", !ctx.arSupported);
2701
- i0.ɵɵadvance(1);
2702
- i0.ɵɵproperty("matMenuTriggerFor", _r0)("disabled", !ctx.arSupported)("active", ctx.arActive)("tooltip", ctx.arSupported ? ctx.arActive ? "Exit AR" : "Enter AR" : "AR not supported");
2703
- }
2704
- }, dependencies: [i2.NgIf, i3$1.MatMenu, i3$1.MatMenuItem, i3$1.MatMenuTrigger, MenuToggleComponent] });
2705
- (function () {
2706
- (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ArToggleComponent, [{
2707
- type: Component,
2708
- args: [{ selector: 'app-ar-toggle', template: "<mat-menu #arToggleOptions>\n <ng-container *ngIf=\"arSupported\">\n <button mat-menu-item (click)=\"toggleAr(true)\">AR with overlays</button>\n <button mat-menu-item (click)=\"toggleAr(false)\">AR without overlays</button>\n </ng-container>\n <button *ngIf=\"!arSupported\" mat-menu-item disabled>AR not supported</button>\n</mat-menu>\n\n<app-menu-toggle\n [matMenuTriggerFor]=\"arToggleOptions\"\n (click)=\"arSupported && (arActive ? toggleAr() : null)\"\n [disabled]=\"!arSupported\"\n [active]=\"arActive\"\n icon=\"ar\"\n [tooltip]=\"\n arSupported ? (arActive ? 'Exit AR' : 'Enter AR') : 'AR not supported'\n \"\n>\n</app-menu-toggle>\n" }]
2709
- }], function () { return [{ type: EventDisplayService }]; }, null);
2710
- })();
2711
-
2712
- /**
2713
- * Component for adding zoom controls for the main and overlay cameras.
2714
- */
2715
- class ZoomControlsComponent {
2716
- constructor(eventDisplay) {
2717
- this.eventDisplay = eventDisplay;
2718
- /** Factor to zoom by. */
2719
- this.zoomFactor = 1.1;
2720
- /** The speed and time of zoom. */
2721
- this.zoomTime = 200;
2722
- }
2723
- /**
2724
- * Zoom all the cameras by a specific zoom factor.
2725
- * The factor may either be greater (zoom in) or smaller (zoom out) than 1.
2726
- * @param zoomFactor The factor to zoom by.
2727
- */
2728
- zoomTo(zoomFactor) {
2729
- this.zoomTime =
2730
- this.zoomTime > 30 ? Math.floor(this.zoomTime / 1.1) : this.zoomTime;
2731
- this.eventDisplay.zoomTo(zoomFactor, this.zoomTime);
2732
- this.zoomTimeout = setTimeout(() => {
2733
- this.zoomTo(zoomFactor);
2734
- }, this.zoomTime);
2735
- }
2736
- /**
2737
- * Zoom the camera in.
2738
- * @param leftClick Whether the mouse click is left or not.
2739
- */
2740
- zoomIn(leftClick) {
2741
- if (leftClick) {
2742
- this.zoomTo(1 / this.zoomFactor);
2743
- }
2744
- }
2745
- /**
2746
- * Zoom the camera out.
2747
- * @param leftClick Whether the mouse click is left or not.s
2748
- */
2749
- zoomOut(leftClick) {
2750
- if (leftClick) {
2751
- this.zoomTo(this.zoomFactor);
2752
- }
2753
- }
2754
- /**
2755
- * Reset the zoom time which decreases upon hold and clear the zoom timeout.
2756
- */
2757
- clearZoom() {
2758
- this.zoomTime = 200;
2759
- clearTimeout(this.zoomTimeout);
2760
- }
2761
- }
2762
- ZoomControlsComponent.ɵfac = function ZoomControlsComponent_Factory(t) { return new (t || ZoomControlsComponent)(i0.ɵɵdirectiveInject(EventDisplayService)); };
2763
- ZoomControlsComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ZoomControlsComponent, selectors: [["app-zoom-controls"]], decls: 3, vars: 2, consts: [[1, "d-flex"], ["tooltip", "Zoom out (hold)", "icon", "zoom-out", 3, "active", "click", "touchstart", "mousedown", "mouseup", "mouseleave", "touchend", "touchcancel", "touchmove"], ["tooltip", "Zoom in (hold)", "icon", "zoom-in", 3, "active", "click", "touchstart", "mousedown", "mouseup", "mouseleave", "touchend", "touchcancel", "touchmove"]], template: function ZoomControlsComponent_Template(rf, ctx) {
2764
- if (rf & 1) {
2765
- i0.ɵɵelementStart(0, "div", 0)(1, "app-menu-toggle", 1);
2766
- i0.ɵɵlistener("click", function ZoomControlsComponent_Template_app_menu_toggle_click_1_listener() { ctx.zoomOut(true); return ctx.clearZoom(); })("touchstart", function ZoomControlsComponent_Template_app_menu_toggle_touchstart_1_listener() { return ctx.zoomOut(true); })("mousedown", function ZoomControlsComponent_Template_app_menu_toggle_mousedown_1_listener($event) { return ctx.zoomOut($event.button === 0); })("mouseup", function ZoomControlsComponent_Template_app_menu_toggle_mouseup_1_listener() { return ctx.clearZoom(); })("mouseleave", function ZoomControlsComponent_Template_app_menu_toggle_mouseleave_1_listener() { return ctx.clearZoom(); })("touchend", function ZoomControlsComponent_Template_app_menu_toggle_touchend_1_listener() { return ctx.clearZoom(); })("touchcancel", function ZoomControlsComponent_Template_app_menu_toggle_touchcancel_1_listener() { return ctx.clearZoom(); })("touchmove", function ZoomControlsComponent_Template_app_menu_toggle_touchmove_1_listener() { return ctx.clearZoom(); });
2767
- i0.ɵɵelementEnd();
2768
- i0.ɵɵelementStart(2, "app-menu-toggle", 2);
2769
- i0.ɵɵlistener("click", function ZoomControlsComponent_Template_app_menu_toggle_click_2_listener() { ctx.zoomIn(true); return ctx.clearZoom(); })("touchstart", function ZoomControlsComponent_Template_app_menu_toggle_touchstart_2_listener() { return ctx.zoomIn(true); })("mousedown", function ZoomControlsComponent_Template_app_menu_toggle_mousedown_2_listener($event) { return ctx.zoomIn($event.button === 0); })("mouseup", function ZoomControlsComponent_Template_app_menu_toggle_mouseup_2_listener() { return ctx.clearZoom(); })("mouseleave", function ZoomControlsComponent_Template_app_menu_toggle_mouseleave_2_listener() { return ctx.clearZoom(); })("touchend", function ZoomControlsComponent_Template_app_menu_toggle_touchend_2_listener() { return ctx.clearZoom(); })("touchcancel", function ZoomControlsComponent_Template_app_menu_toggle_touchcancel_2_listener() { return ctx.clearZoom(); })("touchmove", function ZoomControlsComponent_Template_app_menu_toggle_touchmove_2_listener() { return ctx.clearZoom(); });
2770
- i0.ɵɵelementEnd()();
2771
- }
2772
- if (rf & 2) {
2773
- i0.ɵɵadvance(1);
2774
- i0.ɵɵproperty("active", false);
2775
- i0.ɵɵadvance(1);
2776
- i0.ɵɵproperty("active", false);
2777
- }
2778
- }, dependencies: [MenuToggleComponent] });
2779
- (function () {
2780
- (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ZoomControlsComponent, [{
2781
- type: Component,
2782
- args: [{ selector: 'app-zoom-controls', template: "<div class=\"d-flex\">\n <app-menu-toggle\n tooltip=\"Zoom out (hold)\"\n icon=\"zoom-out\"\n [active]=\"false\"\n (click)=\"zoomOut(true); clearZoom()\"\n (touchstart)=\"zoomOut(true)\"\n (mousedown)=\"zoomOut($event.button === 0)\"\n (mouseup)=\"clearZoom()\"\n (mouseleave)=\"clearZoom()\"\n (touchend)=\"clearZoom()\"\n (touchcancel)=\"clearZoom()\"\n (touchmove)=\"clearZoom()\"\n >\n </app-menu-toggle>\n <app-menu-toggle\n tooltip=\"Zoom in (hold)\"\n icon=\"zoom-in\"\n [active]=\"false\"\n (click)=\"zoomIn(true); clearZoom()\"\n (touchstart)=\"zoomIn(true)\"\n (mousedown)=\"zoomIn($event.button === 0)\"\n (mouseup)=\"clearZoom()\"\n (mouseleave)=\"clearZoom()\"\n (touchend)=\"clearZoom()\"\n (touchcancel)=\"clearZoom()\"\n (touchmove)=\"clearZoom()\"\n >\n </app-menu-toggle>\n</div>\n" }]
2783
- }], function () { return [{ type: EventDisplayService }]; }, null);
2784
- })();
2785
-
2786
- class SSModeComponent {
2787
- constructor() {
2788
- this.ssMode = false;
2789
- this.onDocumentClick = () => {
2790
- var _a;
2791
- (_a = document.exitFullscreen) === null || _a === void 0 ? void 0 : _a.call(document);
2792
- };
2793
- }
2794
- ngOnInit() {
2795
- document.onfullscreenchange = () => {
2796
- if (!document.fullscreenElement) {
2797
- this.toggleSSMode();
2798
- }
2799
- };
2800
- }
2801
- toggleSSMode() {
2802
- var _a, _b;
2803
- this.ssMode = !this.ssMode;
2804
- document.body.classList.toggle('ss-mode');
2805
- if (this.ssMode) {
2806
- // WORKAROUND - Adding the event listener directly somehow calls it on the first click
2807
- setTimeout(() => {
2808
- document.addEventListener('click', this.onDocumentClick);
2809
- document.addEventListener('touchstart', this.onDocumentClick);
2810
- }, 1);
2811
- (_b = (_a = document.documentElement).requestFullscreen) === null || _b === void 0 ? void 0 : _b.call(_a);
2812
- }
2813
- else {
2814
- document.removeEventListener('click', this.onDocumentClick);
2815
- document.removeEventListener('touchstart', this.onDocumentClick);
2816
- }
2817
- }
2818
- }
2819
- SSModeComponent.ɵfac = function SSModeComponent_Factory(t) { return new (t || SSModeComponent)(); };
2820
- SSModeComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SSModeComponent, selectors: [["app-ss-mode"]], decls: 1, vars: 1, consts: [["tooltip", "Screenshot mode: phoenix will become fullscreen and the menu is suppressed", "icon", "ss-mode", 3, "active", "click"]], template: function SSModeComponent_Template(rf, ctx) {
2821
- if (rf & 1) {
2822
- i0.ɵɵelementStart(0, "app-menu-toggle", 0);
2823
- i0.ɵɵlistener("click", function SSModeComponent_Template_app_menu_toggle_click_0_listener() { return ctx.toggleSSMode(); });
2824
- i0.ɵɵelementEnd();
2825
- }
2826
- if (rf & 2) {
2827
- i0.ɵɵproperty("active", ctx.ssMode);
2828
- }
2829
- }, dependencies: [MenuToggleComponent], styles: ["#uiMenu,#phoenixMenu,#mainLogo,#statsElement{transition:opacity .4s}.ss-mode #uiMenu,.ss-mode #phoenixMenu,.ss-mode #mainLogo,.ss-mode #statsElement{visibility:hidden;opacity:0}\n"], encapsulation: 2 });
2830
- (function () {
2831
- (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SSModeComponent, [{
2832
- type: Component,
2833
- args: [{ selector: 'app-ss-mode', encapsulation: ViewEncapsulation.None, template: "<app-menu-toggle\n tooltip=\"Screenshot mode: phoenix will become fullscreen and the menu is suppressed\"\n [active]=\"ssMode\"\n icon=\"ss-mode\"\n (click)=\"toggleSSMode()\"\n>\n</app-menu-toggle>\n", styles: ["#uiMenu,#phoenixMenu,#mainLogo,#statsElement{transition:opacity .4s}.ss-mode #uiMenu,.ss-mode #phoenixMenu,.ss-mode #mainLogo,.ss-mode #statsElement{visibility:hidden;opacity:0}\n"] }]
2834
- }], null, null);
2835
- })();
2836
-
2837
- function MakePictureComponent_mat_radio_button_14_Template(rf, ctx) {
2838
- if (rf & 1) {
2839
- i0.ɵɵelementStart(0, "mat-radio-button", 12);
2840
- i0.ɵɵtext(1);
2841
- i0.ɵɵelementEnd();
2842
- }
2843
- if (rf & 2) {
2844
- const fitting_r4 = ctx.$implicit;
2845
- i0.ɵɵproperty("value", fitting_r4);
2846
- i0.ɵɵadvance(1);
2847
- i0.ɵɵtextInterpolate1("", fitting_r4, " ");
2848
- }
2849
- }
2850
- class MakePictureComponent {
2851
- constructor(eventDisplay) {
2852
- this.eventDisplay = eventDisplay;
2853
- this.fittings = ['Crop', 'Stretch'];
2854
- this.fitting = 'Crop';
2855
- this.width = 3840;
2856
- this.height = 2160;
2857
- }
2858
- ngOnInit() { }
2859
- setWidth(value) {
2860
- this.width = value;
2861
- }
2862
- setHeight(value) {
2863
- this.height = value;
2864
- }
2865
- makePicture() {
2866
- this.eventDisplay.makeScreenShot(this.width, this.height, this.fitting);
2867
- }
2868
- }
2869
- MakePictureComponent.ɵfac = function MakePictureComponent_Factory(t) { return new (t || MakePictureComponent)(i0.ɵɵdirectiveInject(EventDisplayService)); };
2870
- MakePictureComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MakePictureComponent, selectors: [["app-make-picture"]], decls: 20, vars: 5, consts: [[1, "mat-menu"], ["menu", ""], ["mat-menu-item", "", 1, "size-input", 3, "click"], ["mapInput", "", "type", "number", 3, "value", "change", "click"], ["width", ""], ["height", ""], ["mat-menu-item", "", 3, "click"], [1, "fitting-radios", 3, "ngModel", "ngModelChange"], [3, "value", 4, "ngFor", "ngForOf"], ["mat-menu-item", "", 1, "make-picture", 3, "click"], ["tooltip", "Creates a picture from the current view: directly saves a png of arbitrary size from the current view", "icon", "png", 3, "matMenuTriggerFor"], ["hidden", "", "id", "screenshotCanvas"], [3, "value"]], template: function MakePictureComponent_Template(rf, ctx) {
2871
- if (rf & 1) {
2872
- const _r5 = i0.ɵɵgetCurrentView();
2873
- i0.ɵɵelementStart(0, "mat-menu", 0, 1)(2, "button", 2);
2874
- i0.ɵɵlistener("click", function MakePictureComponent_Template_button_click_2_listener($event) { return $event.stopPropagation(); });
2875
- i0.ɵɵelementStart(3, "label");
2876
- i0.ɵɵtext(4, "width");
2877
- i0.ɵɵelementEnd();
2878
- i0.ɵɵelementStart(5, "input", 3, 4);
2879
- i0.ɵɵlistener("change", function MakePictureComponent_Template_input_change_5_listener() { i0.ɵɵrestoreView(_r5); const _r1 = i0.ɵɵreference(6); return i0.ɵɵresetView(ctx.setWidth(_r1.value)); })("click", function MakePictureComponent_Template_input_click_5_listener($event) { return $event.stopPropagation(); });
2880
- i0.ɵɵelementEnd()();
2881
- i0.ɵɵelementStart(7, "button", 2);
2882
- i0.ɵɵlistener("click", function MakePictureComponent_Template_button_click_7_listener($event) { return $event.stopPropagation(); });
2883
- i0.ɵɵelementStart(8, "label");
2884
- i0.ɵɵtext(9, "height");
2885
- i0.ɵɵelementEnd();
2886
- i0.ɵɵelementStart(10, "input", 3, 5);
2887
- i0.ɵɵlistener("change", function MakePictureComponent_Template_input_change_10_listener() { i0.ɵɵrestoreView(_r5); const _r2 = i0.ɵɵreference(11); return i0.ɵɵresetView(ctx.setHeight(_r2.value)); })("click", function MakePictureComponent_Template_input_click_10_listener($event) { return $event.stopPropagation(); });
2888
- i0.ɵɵelementEnd()();
2889
- i0.ɵɵelementStart(12, "button", 6);
2890
- i0.ɵɵlistener("click", function MakePictureComponent_Template_button_click_12_listener($event) { return $event.stopPropagation(); });
2891
- i0.ɵɵelementStart(13, "mat-radio-group", 7);
2892
- i0.ɵɵlistener("ngModelChange", function MakePictureComponent_Template_mat_radio_group_ngModelChange_13_listener($event) { return ctx.fitting = $event; });
2893
- i0.ɵɵtemplate(14, MakePictureComponent_mat_radio_button_14_Template, 2, 2, "mat-radio-button", 8);
2894
- i0.ɵɵelementEnd()();
2895
- i0.ɵɵelementStart(15, "button", 9);
2896
- i0.ɵɵlistener("click", function MakePictureComponent_Template_button_click_15_listener() { return ctx.makePicture(); });
2897
- i0.ɵɵtext(16, " Create picture ");
2898
- i0.ɵɵelementEnd()();
2899
- i0.ɵɵelement(17, "app-menu-toggle", 10);
2900
- i0.ɵɵelementStart(18, "div");
2901
- i0.ɵɵelement(19, "canvas", 11);
2902
- i0.ɵɵelementEnd();
2903
- }
2904
- if (rf & 2) {
2905
- const _r0 = i0.ɵɵreference(1);
2906
- i0.ɵɵadvance(5);
2907
- i0.ɵɵproperty("value", 3840);
2908
- i0.ɵɵadvance(5);
2909
- i0.ɵɵproperty("value", 2610);
2910
- i0.ɵɵadvance(3);
2911
- i0.ɵɵproperty("ngModel", ctx.fitting);
2912
- i0.ɵɵadvance(1);
2913
- i0.ɵɵproperty("ngForOf", ctx.fittings);
2914
- i0.ɵɵadvance(3);
2915
- i0.ɵɵproperty("matMenuTriggerFor", _r0);
2916
- }
2917
- }, dependencies: [i2.NgForOf, i3.NgControlStatus, i3.NgModel, i3$1.MatMenu, i3$1.MatMenuItem, i3$1.MatMenuTrigger, i5.MatRadioGroup, i5.MatRadioButton, MenuToggleComponent], styles: [".size-input{background:transparent;color:var(--phoenix-text-color);text-align:center}.size-input label{width:60px}.size-input input{background:transparent;color:var(--phoenix-text-color);width:80px}.make-picture{text-align:center;display:block}.make-picture span{padding:5px 25px;border:2px solid var(--phoenix-text-color);border-radius:8px}\n"], encapsulation: 2 });
2918
- (function () {
2919
- (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MakePictureComponent, [{
2920
- type: Component,
2921
- args: [{ selector: 'app-make-picture', encapsulation: ViewEncapsulation.None, template: "<mat-menu class=\"mat-menu\" #menu>\n <button mat-menu-item (click)=\"$event.stopPropagation()\" class=\"size-input\">\n <label>width</label>\n <input\n #width\n mapInput\n type=\"number\"\n [value]=\"3840\"\n (change)=\"setWidth(width.value)\"\n (click)=\"$event.stopPropagation()\"\n />\n </button>\n <button mat-menu-item (click)=\"$event.stopPropagation()\" class=\"size-input\">\n <label>height</label>\n <input\n #height\n mapInput\n type=\"number\"\n [value]=\"2610\"\n (change)=\"setHeight(height.value)\"\n (click)=\"$event.stopPropagation()\"\n />\n </button>\n <button mat-menu-item (click)=\"$event.stopPropagation()\">\n <mat-radio-group [(ngModel)]=\"fitting\" class=\"fitting-radios\">\n <mat-radio-button *ngFor=\"let fitting of fittings\" [value]=\"fitting\"\n >{{ fitting }}\n </mat-radio-button>\n </mat-radio-group>\n </button>\n <button mat-menu-item class=\"make-picture\" (click)=\"makePicture()\">\n Create picture\n </button>\n</mat-menu>\n<app-menu-toggle\n [matMenuTriggerFor]=\"menu\"\n tooltip=\"Creates a picture from the current view: directly saves a png of arbitrary size from the current view\"\n icon=\"png\"\n>\n</app-menu-toggle>\n<div>\n <canvas hidden id=\"screenshotCanvas\"></canvas>\n</div>\n", styles: [".size-input{background:transparent;color:var(--phoenix-text-color);text-align:center}.size-input label{width:60px}.size-input input{background:transparent;color:var(--phoenix-text-color);width:80px}.make-picture{text-align:center;display:block}.make-picture span{padding:5px 25px;border:2px solid var(--phoenix-text-color);border-radius:8px}\n"] }]
2922
- }], function () { return [{ type: EventDisplayService }]; }, null);
2923
- })();
2924
-
2925
- class PerformanceToggleComponent {
2926
- constructor(eventDisplay) {
2927
- this.eventDisplay = eventDisplay;
2928
- this.performanceMode = false;
2929
- }
2930
- togglePerformance() {
2931
- this.performanceMode = !this.performanceMode;
2932
- this.eventDisplay.getThreeManager().setAntialiasing(!this.performanceMode);
2933
- }
2934
- }
2935
- PerformanceToggleComponent.ɵfac = function PerformanceToggleComponent_Factory(t) { return new (t || PerformanceToggleComponent)(i0.ɵɵdirectiveInject(EventDisplayService)); };
2936
- PerformanceToggleComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PerformanceToggleComponent, selectors: [["app-performance-toggle"]], decls: 1, vars: 1, consts: [["tooltip", "Performance mode", "icon", "performance", 3, "active", "click"]], template: function PerformanceToggleComponent_Template(rf, ctx) {
2937
- if (rf & 1) {
2938
- i0.ɵɵelementStart(0, "app-menu-toggle", 0);
2939
- i0.ɵɵlistener("click", function PerformanceToggleComponent_Template_app_menu_toggle_click_0_listener() { return ctx.togglePerformance(); });
2940
- i0.ɵɵelementEnd();
2941
- }
2942
- if (rf & 2) {
2943
- i0.ɵɵproperty("active", ctx.performanceMode);
2944
- }
2945
- }, dependencies: [MenuToggleComponent] });
2946
- (function () {
2947
- (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PerformanceToggleComponent, [{
2948
- type: Component,
2949
- args: [{ selector: 'app-performance-toggle', template: "<app-menu-toggle\n tooltip=\"Performance mode\"\n [active]=\"performanceMode\"\n icon=\"performance\"\n (click)=\"togglePerformance()\"\n>\n</app-menu-toggle>\n" }]
2950
- }], function () { return [{ type: EventDisplayService }]; }, null);
2951
- })();
2952
-
2953
- const _c0$3 = function (a0) { return { "ui-menu-hidden": a0 }; };
2954
- const _c1$1 = ["*"];
2955
- class UiMenuWrapperComponent {
2956
- constructor() {
2957
- this.hideUIMenu = false;
2958
- }
2959
- }
2960
- UiMenuWrapperComponent.ɵfac = function UiMenuWrapperComponent_Factory(t) { return new (t || UiMenuWrapperComponent)(); };
2961
- UiMenuWrapperComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UiMenuWrapperComponent, selectors: [["app-ui-menu-wrapper"]], ngContentSelectors: _c1$1, decls: 6, vars: 5, consts: [["id", "uiMenu"], ["id", "hideUIMenu", "matTooltipPosition", "above", 3, "matTooltip", "ngClass", "click"], ["href", "assets/icons/expand.svg#expand"], ["id", "optionsPanel", 3, "hidden"]], template: function UiMenuWrapperComponent_Template(rf, ctx) {
2962
- if (rf & 1) {
2963
- i0.ɵɵprojectionDef();
2964
- i0.ɵɵelementStart(0, "div", 0)(1, "button", 1);
2965
- i0.ɵɵlistener("click", function UiMenuWrapperComponent_Template_button_click_1_listener() { return ctx.hideUIMenu = !ctx.hideUIMenu; });
2966
- i0.ɵɵnamespaceSVG();
2967
- i0.ɵɵelementStart(2, "svg");
2968
- i0.ɵɵelement(3, "use", 2);
2969
- i0.ɵɵelementEnd()();
2970
- i0.ɵɵnamespaceHTML();
2971
- i0.ɵɵelementStart(4, "div", 3);
2972
- i0.ɵɵprojection(5);
2973
- i0.ɵɵelementEnd()();
2974
- }
2975
- if (rf & 2) {
2976
- i0.ɵɵadvance(1);
2977
- i0.ɵɵproperty("matTooltip", ctx.hideUIMenu ? "Show toolbar" : "Hide toolbar")("ngClass", i0.ɵɵpureFunction1(3, _c0$3, ctx.hideUIMenu));
2978
- i0.ɵɵadvance(3);
2979
- i0.ɵɵproperty("hidden", ctx.hideUIMenu);
2980
- }
2981
- }, dependencies: [i2.NgClass, i2$3.MatTooltip], styles: ["#uiMenu[_ngcontent-%COMP%]{position:absolute;bottom:1rem;width:100%;box-sizing:border-box;display:flex;flex-direction:column;align-items:center}#optionsPanel[_ngcontent-%COMP%]{display:flex;align-items:center;background:var(--phoenix-background-color-secondary);border:1px solid var(--phoenix-background-color-tertiary);box-shadow:var(--phoenix-box-shadow);border-radius:30px;max-width:95%;padding:.3rem 1rem;overflow-x:scroll;z-index:90}#hideUIMenu[_ngcontent-%COMP%]{background:var(--phoenix-background-color-secondary);height:1.2rem;width:3rem;border:1px solid var(--phoenix-border);border-bottom:none;box-shadow:var(--phoenix-box-shadow);border-top-left-radius:15px;border-top-right-radius:15px;padding:3px}#hideUIMenu[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{height:100%;width:100%;vertical-align:top;transition:all .3s}#hideUIMenu.ui-menu-hidden[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{transform:scaleY(-1);transition:all .3s}"] });
2982
- (function () {
2983
- (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UiMenuWrapperComponent, [{
2984
- type: Component,
2985
- args: [{ selector: 'app-ui-menu-wrapper', template: "<div id=\"uiMenu\">\n <button\n id=\"hideUIMenu\"\n [matTooltip]=\"hideUIMenu ? 'Show toolbar' : 'Hide toolbar'\"\n matTooltipPosition=\"above\"\n (click)=\"hideUIMenu = !hideUIMenu\"\n [ngClass]=\"{ 'ui-menu-hidden': hideUIMenu }\"\n >\n <svg>\n <use href=\"assets/icons/expand.svg#expand\"></use>\n </svg>\n </button>\n <div id=\"optionsPanel\" [hidden]=\"hideUIMenu\">\n <ng-content></ng-content>\n </div>\n</div>\n", styles: ["#uiMenu{position:absolute;bottom:1rem;width:100%;box-sizing:border-box;display:flex;flex-direction:column;align-items:center}#optionsPanel{display:flex;align-items:center;background:var(--phoenix-background-color-secondary);border:1px solid var(--phoenix-background-color-tertiary);box-shadow:var(--phoenix-box-shadow);border-radius:30px;max-width:95%;padding:.3rem 1rem;overflow-x:scroll;z-index:90}#hideUIMenu{background:var(--phoenix-background-color-secondary);height:1.2rem;width:3rem;border:1px solid var(--phoenix-border);border-bottom:none;box-shadow:var(--phoenix-box-shadow);border-top-left-radius:15px;border-top-right-radius:15px;padding:3px}#hideUIMenu svg{height:100%;width:100%;vertical-align:top;transition:all .3s}#hideUIMenu.ui-menu-hidden svg{transform:scaleY(-1);transition:all .3s}\n"] }]
2986
- }], null, null);
2987
- })();
2988
-
2989
- const _c0$2 = ["qrcodeCanvas"];
2990
- class ShareLinkDialogComponent {
2991
- constructor(dialogRef) {
2992
- this.dialogRef = dialogRef;
2993
- this.urlOptions = Object.assign({}, phoenixURLOptions);
2994
- const locationHref = window.location.href;
2995
- const lastIndex = locationHref.lastIndexOf('?') === -1
2996
- ? locationHref.length
2997
- : locationHref.lastIndexOf('?');
2998
- this.baseLink = locationHref.slice(0, lastIndex);
2999
- this.shareLink = new ActiveVariable(this.baseLink);
3000
- this.embedLink = this.getEmbedLink();
3001
- }
3002
- ngAfterViewInit() {
3003
- this.updateQRCode(this.shareLink.value);
3004
- this.shareLink.onUpdate(this.updateQRCode.bind(this));
3005
- }
3006
- onClose() {
3007
- this.dialogRef.close();
3008
- }
3009
- getEmbedLink(urlParametersString = '') {
3010
- return `<iframe src="${this.baseLink}?embed=true${urlParametersString ? '&' : ''}${urlParametersString}"></iframe>`;
3011
- }
3012
- setOptionValue(option, value) {
3013
- this.urlOptions[option] = value;
3014
- this.onOptionsChange();
3015
- }
3016
- onOptionsChange() {
3017
- const urlParametersString = Object.getOwnPropertyNames(this.urlOptions)
3018
- .reduce((filteredOptions, option) => {
3019
- if (this.urlOptions[option]) {
3020
- filteredOptions.push(`${option}=${encodeURI(this.urlOptions[option])}`);
3021
- }
3022
- return filteredOptions;
3023
- }, [])
3024
- .join('&');
3025
- this.shareLink.update(this.baseLink + (urlParametersString ? '?' : '') + urlParametersString);
3026
- this.embedLink = this.getEmbedLink(urlParametersString);
3027
- }
3028
- copyText(text, element) {
3029
- const inputElement = document.createElement('input');
3030
- document.body.appendChild(inputElement);
3031
- inputElement.value = text;
3032
- inputElement.select();
3033
- document.execCommand('copy');
3034
- document.body.removeChild(inputElement);
3035
- element.focus();
3036
- // Set text on copying
3037
- element.innerText = 'COPIED';
3038
- setTimeout(() => {
3039
- element.innerText = 'COPY';
3040
- }, 2000);
3041
- }
3042
- updateQRCode(link) {
3043
- QRCode.toCanvas(this.qrcodeCanvas.nativeElement, link);
3044
- }
3045
- }
3046
- ShareLinkDialogComponent.ɵfac = function ShareLinkDialogComponent_Factory(t) { return new (t || ShareLinkDialogComponent)(i0.ɵɵdirectiveInject(i1$2.MatDialogRef)); };
3047
- ShareLinkDialogComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ShareLinkDialogComponent, selectors: [["app-share-link-dialog"]], viewQuery: function ShareLinkDialogComponent_Query(rf, ctx) {
3048
- if (rf & 1) {
3049
- i0.ɵɵviewQuery(_c0$2, 5);
3050
- }
3051
- if (rf & 2) {
3052
- let _t;
3053
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.qrcodeCanvas = _t.first);
3054
- }
3055
- }, decls: 49, vars: 5, consts: [[1, "dialog"], ["mat-dialog-title", ""], ["mat-dialog-content", "", 1, "dialog-content"], [1, "form-group", "mt-2"], ["for", "eventDataFile"], ["type", "text", "id", "eventDataFile", "placeholder", "assets/files/event_data/atlaseventdump2.json", 1, "form-control", 3, "value", "input"], [1, "form-group"], ["for", "eventDataType"], ["id", "eventDataType", 1, "form-control", 3, "input"], ["selected", "", "value", ""], ["value", "jivexml"], ["value", "json"], ["for", "configuration"], ["type", "text", "id", "configuration", "placeholder", "assets/files/config/phoenix-config.json", 1, "form-control", 3, "value", "input"], [3, "checked", "change"], [1, "share-box", "my-2"], [1, "share-box-copy", 3, "click"], [1, "qrcode", "d-flex", "justify-content-center"], ["qrcodeCanvas", ""], ["mat-dialog-actions", ""], ["mat-button", "", "cdkFocusInitial", "", 3, "click"]], template: function ShareLinkDialogComponent_Template(rf, ctx) {
3056
- if (rf & 1) {
3057
- i0.ɵɵelementStart(0, "div", 0)(1, "h1", 1);
3058
- i0.ɵɵtext(2, "Create shareable link");
3059
- i0.ɵɵelementEnd();
3060
- i0.ɵɵelementStart(3, "div", 2)(4, "h5");
3061
- i0.ɵɵtext(5, "URL options");
3062
- i0.ɵɵelementEnd();
3063
- i0.ɵɵelementStart(6, "div", 3)(7, "label", 4);
3064
- i0.ɵɵtext(8, "Event data file (URL or path)");
3065
- i0.ɵɵelementEnd();
3066
- i0.ɵɵelementStart(9, "input", 5);
3067
- i0.ɵɵlistener("input", function ShareLinkDialogComponent_Template_input_input_9_listener($event) { return ctx.setOptionValue("file", $event.target.value); });
3068
- i0.ɵɵelementEnd()();
3069
- i0.ɵɵelementStart(10, "div", 6)(11, "label", 7);
3070
- i0.ɵɵtext(12, "Event data type");
3071
- i0.ɵɵelementEnd();
3072
- i0.ɵɵelementStart(13, "select", 8);
3073
- i0.ɵɵlistener("input", function ShareLinkDialogComponent_Template_select_input_13_listener($event) { return ctx.setOptionValue("type", $event.target.value); });
3074
- i0.ɵɵelementStart(14, "option", 9);
3075
- i0.ɵɵtext(15, "Select");
3076
- i0.ɵɵelementEnd();
3077
- i0.ɵɵelementStart(16, "option", 10);
3078
- i0.ɵɵtext(17, "JiveXML");
3079
- i0.ɵɵelementEnd();
3080
- i0.ɵɵelementStart(18, "option", 11);
3081
- i0.ɵɵtext(19, "JSON");
3082
- i0.ɵɵelementEnd()()();
3083
- i0.ɵɵelementStart(20, "div", 6)(21, "label", 12);
3084
- i0.ɵɵtext(22, "Configuration (URL or path)");
3085
- i0.ɵɵelementEnd();
3086
- i0.ɵɵelementStart(23, "input", 13);
3087
- i0.ɵɵlistener("input", function ShareLinkDialogComponent_Template_input_input_23_listener($event) { return ctx.setOptionValue("config", $event.target.value); });
3088
- i0.ɵɵelementEnd()();
3089
- i0.ɵɵelementStart(24, "div", 6)(25, "mat-checkbox", 14);
3090
- i0.ɵɵlistener("change", function ShareLinkDialogComponent_Template_mat_checkbox_change_25_listener($event) { return ctx.setOptionValue("hideWidgets", $event.checked); });
3091
- i0.ɵɵtext(26, " Hide all widgets ");
3092
- i0.ɵɵelementEnd()();
3093
- i0.ɵɵelementStart(27, "h5");
3094
- i0.ɵɵtext(28, "Share");
3095
- i0.ɵɵelementEnd();
3096
- i0.ɵɵelementStart(29, "div", 15)(30, "span");
3097
- i0.ɵɵtext(31);
3098
- i0.ɵɵelementEnd();
3099
- i0.ɵɵelementStart(32, "button", 16);
3100
- i0.ɵɵlistener("click", function ShareLinkDialogComponent_Template_button_click_32_listener($event) { return ctx.copyText(ctx.shareLink.value, $event.target); });
3101
- i0.ɵɵtext(33, " COPY ");
3102
- i0.ɵɵelementEnd()();
3103
- i0.ɵɵelementStart(34, "h5");
3104
- i0.ɵɵtext(35, "Embed");
3105
- i0.ɵɵelementEnd();
3106
- i0.ɵɵelementStart(36, "div", 15)(37, "span");
3107
- i0.ɵɵtext(38);
3108
- i0.ɵɵelementEnd();
3109
- i0.ɵɵelementStart(39, "button", 16);
3110
- i0.ɵɵlistener("click", function ShareLinkDialogComponent_Template_button_click_39_listener($event) { return ctx.copyText(ctx.embedLink, $event.target); });
3111
- i0.ɵɵtext(40, " COPY ");
3112
- i0.ɵɵelementEnd()();
3113
- i0.ɵɵelementStart(41, "h5");
3114
- i0.ɵɵtext(42, "QR Code");
3115
- i0.ɵɵelementEnd();
3116
- i0.ɵɵelementStart(43, "div", 17);
3117
- i0.ɵɵelement(44, "canvas", null, 18);
3118
- i0.ɵɵelementEnd()();
3119
- i0.ɵɵelementStart(46, "div", 19)(47, "button", 20);
3120
- i0.ɵɵlistener("click", function ShareLinkDialogComponent_Template_button_click_47_listener() { return ctx.onClose(); });
3121
- i0.ɵɵtext(48, "Close");
3122
- i0.ɵɵelementEnd()()();
3123
- }
3124
- if (rf & 2) {
3125
- i0.ɵɵadvance(9);
3126
- i0.ɵɵproperty("value", ctx.urlOptions.file);
3127
- i0.ɵɵadvance(14);
3128
- i0.ɵɵproperty("value", ctx.urlOptions.config);
3129
- i0.ɵɵadvance(2);
3130
- i0.ɵɵproperty("checked", ctx.urlOptions.hideWidgets);
3131
- i0.ɵɵadvance(6);
3132
- i0.ɵɵtextInterpolate(ctx.shareLink.value);
3133
- i0.ɵɵadvance(7);
3134
- i0.ɵɵtextInterpolate(ctx.embedLink);
3135
- }
3136
- }, dependencies: [i1$2.MatDialogTitle, i1$2.MatDialogContent, i1$2.MatDialogActions, i2$2.MatButton, i3.NgSelectOption, i3.ɵNgSelectMultipleOption, i4$1.MatCheckbox], styles: [".share-box[_ngcontent-%COMP%]{width:30rem;max-width:100%;position:relative;background:var(--phoenix-background-color-tertiary);border:1px solid var(--phoenix-border);border-radius:.5rem;padding:1.25rem;word-wrap:break-word}.share-box[_ngcontent-%COMP%] .share-box-copy[_ngcontent-%COMP%]{position:absolute;top:-1px;right:-1px;background:transparent;color:inherit;cursor:pointer;padding:.25rem .5rem;font-size:.75rem;border:1px solid var(--phoenix-border);border-radius:.5rem}.share-box[_ngcontent-%COMP%] .share-box-copy[_ngcontent-%COMP%]:hover{background:var(--phoenix-border)}"] });
3137
- (function () {
3138
- (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ShareLinkDialogComponent, [{
3139
- type: Component,
3140
- args: [{ selector: 'app-share-link-dialog', template: "<div class=\"dialog\">\n <h1 mat-dialog-title>Create shareable link</h1>\n <div mat-dialog-content class=\"dialog-content\">\n <h5>URL options</h5>\n <div class=\"form-group mt-2\">\n <label for=\"eventDataFile\">Event data file (URL or path)</label>\n <input\n type=\"text\"\n class=\"form-control\"\n id=\"eventDataFile\"\n placeholder=\"assets/files/event_data/atlaseventdump2.json\"\n [value]=\"urlOptions.file\"\n (input)=\"setOptionValue('file', $event.target.value)\"\n />\n </div>\n <div class=\"form-group\">\n <label for=\"eventDataType\">Event data type</label>\n <select\n class=\"form-control\"\n id=\"eventDataType\"\n (input)=\"setOptionValue('type', $event.target.value)\"\n >\n <option selected value=\"\">Select</option>\n <option value=\"jivexml\">JiveXML</option>\n <option value=\"json\">JSON</option>\n </select>\n </div>\n <div class=\"form-group\">\n <label for=\"configuration\">Configuration (URL or path)</label>\n <input\n type=\"text\"\n class=\"form-control\"\n id=\"configuration\"\n placeholder=\"assets/files/config/phoenix-config.json\"\n [value]=\"urlOptions.config\"\n (input)=\"setOptionValue('config', $event.target.value)\"\n />\n </div>\n <div class=\"form-group\">\n <mat-checkbox\n [checked]=\"urlOptions.hideWidgets\"\n (change)=\"setOptionValue('hideWidgets', $event.checked)\"\n >\n Hide all widgets\n </mat-checkbox>\n </div>\n\n <h5>Share</h5>\n <div class=\"share-box my-2\">\n <span>{{ shareLink.value }}</span>\n <button\n class=\"share-box-copy\"\n (click)=\"copyText(shareLink.value, $event.target)\"\n >\n COPY\n </button>\n </div>\n <h5>Embed</h5>\n <div class=\"share-box my-2\">\n <span>{{ embedLink }}</span>\n <button\n class=\"share-box-copy\"\n (click)=\"copyText(embedLink, $event.target)\"\n >\n COPY\n </button>\n </div>\n <h5>QR Code</h5>\n <div class=\"qrcode d-flex justify-content-center\">\n <canvas #qrcodeCanvas></canvas>\n </div>\n </div>\n <div mat-dialog-actions>\n <button mat-button (click)=\"onClose()\" cdkFocusInitial>Close</button>\n </div>\n</div>\n", styles: [".share-box{width:30rem;max-width:100%;position:relative;background:var(--phoenix-background-color-tertiary);border:1px solid var(--phoenix-border);border-radius:.5rem;padding:1.25rem;word-wrap:break-word}.share-box .share-box-copy{position:absolute;top:-1px;right:-1px;background:transparent;color:inherit;cursor:pointer;padding:.25rem .5rem;font-size:.75rem;border:1px solid var(--phoenix-border);border-radius:.5rem}.share-box .share-box-copy:hover{background:var(--phoenix-border)}\n"] }]
3141
- }], function () { return [{ type: i1$2.MatDialogRef }]; }, { qrcodeCanvas: [{
3142
- type: ViewChild,
3143
- args: ['qrcodeCanvas']
3144
- }] });
3145
- })();
3146
-
3147
- class ShareLinkComponent {
3148
- constructor(dialog) {
3149
- this.dialog = dialog;
3150
- }
3151
- openShareLinkDialog() {
3152
- this.dialog.open(ShareLinkDialogComponent);
3153
- }
3154
- }
3155
- ShareLinkComponent.ɵfac = function ShareLinkComponent_Factory(t) { return new (t || ShareLinkComponent)(i0.ɵɵdirectiveInject(i1$2.MatDialog)); };
3156
- ShareLinkComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ShareLinkComponent, selectors: [["app-share-link"]], decls: 1, vars: 1, consts: [["tooltip", "Create shareable link", "icon", "share", 3, "active", "click"]], template: function ShareLinkComponent_Template(rf, ctx) {
3157
- if (rf & 1) {
3158
- i0.ɵɵelementStart(0, "app-menu-toggle", 0);
3159
- i0.ɵɵlistener("click", function ShareLinkComponent_Template_app_menu_toggle_click_0_listener() { return ctx.openShareLinkDialog(); });
3160
- i0.ɵɵelementEnd();
3161
- }
3162
- if (rf & 2) {
3163
- i0.ɵɵproperty("active", false);
3164
- }
3165
- }, dependencies: [MenuToggleComponent] });
3166
- (function () {
3167
- (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ShareLinkComponent, [{
3168
- type: Component,
3169
- args: [{ selector: 'app-share-link', template: "<app-menu-toggle\n tooltip=\"Create shareable link\"\n icon=\"share\"\n [active]=\"false\"\n (click)=\"openShareLinkDialog()\"\n>\n</app-menu-toggle>\n" }]
3170
- }], function () { return [{ type: i1$2.MatDialog }]; }, null);
3171
- })();
3172
-
3173
- const _c0$1 = ["*"];
3174
- class UiMenuComponent {
3175
- constructor() {
3176
- this.eventDataImportOptions = Object.values(EventDataFormat);
3177
- this.animationPresets = defaultAnimationPresets;
3178
- }
3179
- }
3180
- UiMenuComponent.ɵfac = function UiMenuComponent_Factory(t) { return new (t || UiMenuComponent)(); };
3181
- UiMenuComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UiMenuComponent, selectors: [["app-ui-menu"]], inputs: { eventDataImportOptions: "eventDataImportOptions", animationPresets: "animationPresets" }, ngContentSelectors: _c0$1, decls: 22, vars: 2, consts: [[3, "animationPresets"], [3, "eventDataImportOptions"]], template: function UiMenuComponent_Template(rf, ctx) {
3182
- if (rf & 1) {
3183
- i0.ɵɵprojectionDef();
3184
- i0.ɵɵelementStart(0, "app-ui-menu-wrapper");
3185
- i0.ɵɵelement(1, "app-event-selector")(2, "app-zoom-controls")(3, "app-view-options")(4, "app-auto-rotate")(5, "app-dark-theme")(6, "app-object-clipping")(7, "app-main-view-toggle")(8, "app-overlay-view")(9, "app-object-selection")(10, "app-info-panel")(11, "app-animate-event")(12, "app-animate-camera", 0)(13, "app-collections-info")(14, "app-performance-toggle")(15, "app-vr-toggle")(16, "app-ar-toggle")(17, "app-ss-mode")(18, "app-make-picture")(19, "app-io-options", 1)(20, "app-share-link");
3186
- i0.ɵɵprojection(21);
3187
- i0.ɵɵelementEnd();
3188
- }
3189
- if (rf & 2) {
3190
- i0.ɵɵadvance(12);
3191
- i0.ɵɵproperty("animationPresets", ctx.animationPresets);
3192
- i0.ɵɵadvance(7);
3193
- i0.ɵɵproperty("eventDataImportOptions", ctx.eventDataImportOptions);
3194
- }
3195
- }, dependencies: [UiMenuWrapperComponent, CollectionsInfoComponent, IoOptionsComponent, OverlayViewComponent, ObjectSelectionComponent, EventSelectorComponent, ObjectClippingComponent, DarkThemeComponent, AutoRotateComponent, ViewOptionsComponent, InfoPanelComponent, MainViewToggleComponent, ZoomControlsComponent, AnimateCameraComponent, AnimateEventComponent, VrToggleComponent, ArToggleComponent, SSModeComponent, MakePictureComponent, PerformanceToggleComponent, ShareLinkComponent] });
3196
- (function () {
3197
- (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UiMenuComponent, [{
3198
- type: Component,
3199
- args: [{ selector: 'app-ui-menu', template: "<app-ui-menu-wrapper>\n <!-- Event selector -->\n <app-event-selector></app-event-selector>\n\n <!-- Zoom in and zoom out controls -->\n <app-zoom-controls></app-zoom-controls>\n\n <app-view-options></app-view-options>\n\n <app-auto-rotate></app-auto-rotate>\n\n <!-- Dark theme toggle -->\n <app-dark-theme></app-dark-theme>\n\n <!-- Toggle for clipping geometries -->\n <app-object-clipping></app-object-clipping>\n\n <!-- Main view toggle -->\n <app-main-view-toggle></app-main-view-toggle>\n\n <!-- Toggle for overlay panel -->\n <app-overlay-view></app-overlay-view>\n\n <!-- Toggle for selected object panel -->\n <app-object-selection></app-object-selection>\n\n <!-- Info panel -->\n <app-info-panel></app-info-panel>\n\n <!-- Toggle for animating the event data -->\n <app-animate-event></app-animate-event>\n\n <!-- Toggle for animating camera through event -->\n <app-animate-camera\n [animationPresets]=\"animationPresets\"\n ></app-animate-camera>\n\n <!-- Toggle for collections info -->\n <app-collections-info></app-collections-info>\n\n <!-- Toggle for performance -->\n <app-performance-toggle></app-performance-toggle>\n\n <!-- Toggle for VR -->\n <app-vr-toggle></app-vr-toggle>\n\n <!-- Toggle for AR -->\n <app-ar-toggle></app-ar-toggle>\n\n <!-- Toggle for screenshot mode -->\n <app-ss-mode></app-ss-mode>\n\n <!-- Make pictures from scene -->\n <app-make-picture></app-make-picture>\n\n <!-- Toggle for loading geometries modal-->\n <app-io-options\n [eventDataImportOptions]=\"eventDataImportOptions\"\n ></app-io-options>\n\n <!-- Toggle for shareable link constructor modal-->\n <app-share-link></app-share-link>\n\n <!-- Extra options -->\n <ng-content></ng-content>\n</app-ui-menu-wrapper>\n" }]
3200
- }], null, { eventDataImportOptions: [{
3201
- type: Input
3202
- }], animationPresets: [{
3203
- type: Input
3204
- }] });
3205
- })();
3206
-
3207
- function FileExplorerComponent_cdk_tree_node_1_Template(rf, ctx) {
3208
- if (rf & 1) {
3209
- const _r4 = i0.ɵɵgetCurrentView();
3210
- i0.ɵɵelementStart(0, "cdk-tree-node", 3)(1, "button", 4);
3211
- i0.ɵɵlistener("click", function FileExplorerComponent_cdk_tree_node_1_Template_button_click_1_listener() { const restoredCtx = i0.ɵɵrestoreView(_r4); const node_r2 = restoredCtx.$implicit; const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.onSelect(node_r2.url)); });
3212
- i0.ɵɵnamespaceSVG();
3213
- i0.ɵɵelementStart(2, "svg", 5);
3214
- i0.ɵɵelement(3, "use", 6);
3215
- i0.ɵɵelementEnd();
3216
- i0.ɵɵtext(4);
3217
- i0.ɵɵelementEnd()();
3218
- }
3219
- if (rf & 2) {
3220
- const node_r2 = ctx.$implicit;
3221
- i0.ɵɵadvance(4);
3222
- i0.ɵɵtextInterpolate1(" ", node_r2.name, " ");
3223
- }
3224
- }
3225
- function FileExplorerComponent_cdk_nested_tree_node_2_Template(rf, ctx) {
3226
- if (rf & 1) {
3227
- i0.ɵɵelementStart(0, "cdk-nested-tree-node", 3)(1, "button", 7);
3228
- i0.ɵɵnamespaceSVG();
3229
- i0.ɵɵelementStart(2, "svg", 5);
3230
- i0.ɵɵelement(3, "use", 8);
3231
- i0.ɵɵelementEnd();
3232
- i0.ɵɵtext(4);
3233
- i0.ɵɵelementEnd();
3234
- i0.ɵɵnamespaceHTML();
3235
- i0.ɵɵelementStart(5, "div");
3236
- i0.ɵɵelementContainer(6, 9);
3237
- i0.ɵɵelementEnd()();
3238
- }
3239
- if (rf & 2) {
3240
- const node_r5 = ctx.$implicit;
3241
- const ctx_r1 = i0.ɵɵnextContext();
3242
- i0.ɵɵadvance(1);
3243
- i0.ɵɵattribute("aria-label", "Toggle " + node_r5.name);
3244
- i0.ɵɵadvance(1);
3245
- i0.ɵɵclassProp("node-icon-filled", !ctx_r1.treeControl.isExpanded(node_r5));
3246
- i0.ɵɵadvance(2);
3247
- i0.ɵɵtextInterpolate1(" ", node_r5.name, " ");
3248
- i0.ɵɵadvance(1);
3249
- i0.ɵɵclassProp("file-tree-invisible", !ctx_r1.treeControl.isExpanded(node_r5));
3250
- }
3251
- }
3252
- class FileNode {
3253
- constructor(name) {
3254
- this.name = name;
3255
- }
3256
- }
3257
- class FileExplorerComponent {
3258
- constructor() {
3259
- this.onFileSelect = new EventEmitter();
3260
- this.treeControl = new NestedTreeControl(this.getSortedChildren.bind(this));
3261
- this.dataSource = new MatTreeNestedDataSource();
3262
- this.hasChildren = (_, node) => !!node.children && Object.keys(node.children).length > 0;
3263
- }
3264
- ngOnChanges(changes) {
3265
- var _a;
3266
- if ((_a = changes.rootFileNode) === null || _a === void 0 ? void 0 : _a.currentValue) {
3267
- this.dataSource.data = this.getSortedChildren(changes.rootFileNode.currentValue);
3268
- }
3269
- }
3270
- onSelect(url) {
3271
- this.onFileSelect.emit(url);
3272
- }
3273
- /**
3274
- * Sort the FileNode's children with folders before files.
3275
- * @param node FileNode whose children are to be sorted.
3276
- * @returns An array of sorted FileNodes.
3277
- */
3278
- getSortedChildren(node) {
3279
- if (!node.children) {
3280
- return [];
3281
- }
3282
- return Object.values(node.children).sort((a, b) => !a.url && b.url ? -1 : 1);
3283
- }
3284
- }
3285
- FileExplorerComponent.ɵfac = function FileExplorerComponent_Factory(t) { return new (t || FileExplorerComponent)(); };
3286
- FileExplorerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FileExplorerComponent, selectors: [["app-file-explorer"]], inputs: { rootFileNode: "rootFileNode" }, outputs: { onFileSelect: "onFileSelect" }, features: [i0.ɵɵNgOnChangesFeature], decls: 3, vars: 3, consts: [[3, "dataSource", "treeControl"], ["class", "tree-node", 4, "cdkTreeNodeDef"], ["class", "tree-node", 4, "cdkTreeNodeDef", "cdkTreeNodeDefWhen"], [1, "tree-node"], ["mat-button", "", "mat-stroked-button", "", 1, "tree-node-button", 3, "click"], [1, "node-icon"], ["href", "assets/icons/file.svg#file"], ["mat-button", "", "cdkTreeNodeToggle", "", 1, "tree-node-button"], ["href", "assets/icons/folder.svg#folder"], ["cdkTreeNodeOutlet", ""]], template: function FileExplorerComponent_Template(rf, ctx) {
3287
- if (rf & 1) {
3288
- i0.ɵɵelementStart(0, "cdk-tree", 0);
3289
- i0.ɵɵtemplate(1, FileExplorerComponent_cdk_tree_node_1_Template, 5, 1, "cdk-tree-node", 1);
3290
- i0.ɵɵtemplate(2, FileExplorerComponent_cdk_nested_tree_node_2_Template, 7, 6, "cdk-nested-tree-node", 2);
3291
- i0.ɵɵelementEnd();
3292
- }
3293
- if (rf & 2) {
3294
- i0.ɵɵproperty("dataSource", ctx.dataSource)("treeControl", ctx.treeControl);
3295
- i0.ɵɵadvance(2);
3296
- i0.ɵɵproperty("cdkTreeNodeDefWhen", ctx.hasChildren);
3297
- }
3298
- }, dependencies: [i2$2.MatButton, i2$5.CdkNestedTreeNode, i2$5.CdkTreeNodeDef, i2$5.CdkTreeNodeToggle, i2$5.CdkTree, i2$5.CdkTreeNode, i2$5.CdkTreeNodeOutlet], styles: [".file-tree-invisible[_ngcontent-%COMP%]{display:none}.tree-node[_ngcontent-%COMP%]{display:block;margin:.25rem 0}.tree-node[_ngcontent-%COMP%] .tree-node[_ngcontent-%COMP%]{padding-left:1rem}.tree-node-button[_ngcontent-%COMP%]{outline:none;padding:0 .75rem}.node-icon[_ngcontent-%COMP%]{width:1rem;height:1rem;margin-right:.25rem;margin-top:-2px}.node-icon.node-icon-filled[_ngcontent-%COMP%]{--icon-fill: var(--phoenix-options-icon-path, #fff)}"] });
3299
- (function () {
3300
- (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FileExplorerComponent, [{
3301
- type: Component,
3302
- args: [{ selector: 'app-file-explorer', template: "<cdk-tree [dataSource]=\"dataSource\" [treeControl]=\"treeControl\">\n <!-- This is the tree node template for leaf nodes -->\n <cdk-tree-node *cdkTreeNodeDef=\"let node\" class=\"tree-node\">\n <button\n mat-button\n mat-stroked-button\n class=\"tree-node-button\"\n (click)=\"onSelect(node.url)\"\n >\n <svg class=\"node-icon\">\n <use href=\"assets/icons/file.svg#file\"></use>\n </svg>\n {{ node.name }}\n </button>\n </cdk-tree-node>\n <!-- This is the tree node template for expandable nodes -->\n <cdk-nested-tree-node\n *cdkTreeNodeDef=\"let node; when: hasChildren\"\n class=\"tree-node\"\n >\n <button\n mat-button\n cdkTreeNodeToggle\n class=\"tree-node-button\"\n [attr.aria-label]=\"'Toggle ' + node.name\"\n >\n <svg\n class=\"node-icon\"\n [class.node-icon-filled]=\"!treeControl.isExpanded(node)\"\n >\n <use href=\"assets/icons/folder.svg#folder\"></use>\n </svg>\n {{ node.name }}\n </button>\n <div [class.file-tree-invisible]=\"!treeControl.isExpanded(node)\">\n <ng-container cdkTreeNodeOutlet></ng-container>\n </div>\n </cdk-nested-tree-node>\n</cdk-tree>\n", styles: [".file-tree-invisible{display:none}.tree-node{display:block;margin:.25rem 0}.tree-node .tree-node{padding-left:1rem}.tree-node-button{outline:none;padding:0 .75rem}.node-icon{width:1rem;height:1rem;margin-right:.25rem;margin-top:-2px}.node-icon.node-icon-filled{--icon-fill: var(--phoenix-options-icon-path, #fff)}\n"] }]
3303
- }], null, { rootFileNode: [{
3304
- type: Input
3305
- }], onFileSelect: [{
3306
- type: Output
3307
- }] });
3308
- })();
3309
-
3310
- class RingLoaderComponent {
3311
- }
3312
- RingLoaderComponent.ɵfac = function RingLoaderComponent_Factory(t) { return new (t || RingLoaderComponent)(); };
3313
- RingLoaderComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: RingLoaderComponent, selectors: [["app-ring-loader"]], decls: 5, vars: 0, consts: [[1, "ring"]], template: function RingLoaderComponent_Template(rf, ctx) {
3314
- if (rf & 1) {
3315
- i0.ɵɵelementStart(0, "div", 0);
3316
- i0.ɵɵelement(1, "div")(2, "div")(3, "div")(4, "div");
3317
- i0.ɵɵelementEnd();
3318
- }
3319
- }, styles: [".ring[_ngcontent-%COMP%]{display:inline-block;position:relative;width:1.5rem;height:1.5rem}.ring[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{box-sizing:border-box;display:block;position:absolute;width:1.5rem;height:1.5rem;margin:.25rem .5rem;border:.25rem solid var(--phoenix-text-color);border-radius:50%;animation:animate-ring 1.2s cubic-bezier(.5,0,.5,1) infinite;border-color:var(--phoenix-text-color) transparent transparent transparent}.ring[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(1){animation-delay:-.45s}.ring[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(2){animation-delay:-.3s}.ring[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(3){animation-delay:-.15s}@keyframes _ngcontent-%COMP%_app-ring-loader_animate-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"] });
3320
- (function () {
3321
- (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(RingLoaderComponent, [{
3322
- type: Component,
3323
- args: [{ selector: 'app-ring-loader', template: "<div class=\"ring\">\n <div></div>\n <div></div>\n <div></div>\n <div></div>\n</div>\n", styles: [".ring{display:inline-block;position:relative;width:1.5rem;height:1.5rem}.ring div{box-sizing:border-box;display:block;position:absolute;width:1.5rem;height:1.5rem;margin:.25rem .5rem;border:.25rem solid var(--phoenix-text-color);border-radius:50%;animation:animate-ring 1.2s cubic-bezier(.5,0,.5,1) infinite;border-color:var(--phoenix-text-color) transparent transparent transparent}.ring div:nth-child(1){animation-delay:-.45s}.ring div:nth-child(2){animation-delay:-.3s}.ring div:nth-child(3){animation-delay:-.15s}@keyframes app-ring-loader_animate-ring{0%{transform:rotate(0)}to{transform:rotate(360deg)}}\n"] }]
3324
- }], null, null);
3325
- })();
3326
-
3327
- function EventDataExplorerDialogComponent_app_ring_loader_4_Template(rf, ctx) {
3328
- if (rf & 1) {
3329
- i0.ɵɵelement(0, "app-ring-loader");
3330
- }
3331
- }
3332
- function EventDataExplorerDialogComponent_div_6_Template(rf, ctx) {
3333
- if (rf & 1) {
3334
- i0.ɵɵelementStart(0, "div");
3335
- i0.ɵɵtext(1, "Error processing request.");
3336
- i0.ɵɵelementEnd();
3337
- }
3338
- }
3339
- function EventDataExplorerDialogComponent_mat_tab_group_7_Template(rf, ctx) {
3340
- if (rf & 1) {
3341
- const _r4 = i0.ɵɵgetCurrentView();
3342
- i0.ɵɵelementStart(0, "mat-tab-group", 8)(1, "mat-tab", 9)(2, "div", 10)(3, "app-file-explorer", 11);
3343
- i0.ɵɵlistener("onFileSelect", function EventDataExplorerDialogComponent_mat_tab_group_7_Template_app_file_explorer_onFileSelect_3_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.loadEvent($event)); });
3344
- i0.ɵɵelementEnd()()();
3345
- i0.ɵɵelementStart(4, "mat-tab", 12)(5, "div", 10)(6, "app-file-explorer", 11);
3346
- i0.ɵɵlistener("onFileSelect", function EventDataExplorerDialogComponent_mat_tab_group_7_Template_app_file_explorer_onFileSelect_6_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r5 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r5.loadConfig($event)); });
3347
- i0.ɵɵelementEnd()()()();
3348
- }
3349
- if (rf & 2) {
3350
- const ctx_r2 = i0.ɵɵnextContext();
3351
- i0.ɵɵadvance(3);
3352
- i0.ɵɵproperty("rootFileNode", ctx_r2.eventDataFileNode);
3353
- i0.ɵɵadvance(3);
3354
- i0.ɵɵproperty("rootFileNode", ctx_r2.configFileNode);
3355
- }
3356
- }
3357
- const supportFileTypes = ['json', 'xml'];
3358
- class EventDataExplorerDialogComponent {
3359
- constructor(eventDisplay, dialogRef, dialogData) {
3360
- this.eventDisplay = eventDisplay;
3361
- this.dialogRef = dialogRef;
3362
- this.dialogData = dialogData;
3363
- this.loading = true;
3364
- this.error = false;
3365
- // Event data
3366
- this.makeRequest(this.dialogData.apiURL, 'json', (res) => {
3367
- const filePaths = res.filter((file) => supportFileTypes.includes(file.name.split('.').pop()));
3368
- this.eventDataFileNode = this.buildFileNode(filePaths);
3369
- });
3370
- // Config
3371
- this.makeRequest(`${this.dialogData.apiURL}?type=config`, 'json', (res) => {
3372
- const filePaths = res.filter((file) => file.name.split('.').pop() === 'json');
3373
- this.configFileNode = this.buildFileNode(filePaths);
3374
- });
3375
- }
3376
- loadEvent(file) {
3377
- const isZip = file.split('.').pop() === 'zip';
3378
- const rawfile = isZip ? file.substring(0, file.length - 4) : file;
3379
- this.makeRequest(file, isZip ? 'blob' : 'text', (eventData) => {
3380
- switch (rawfile.split('.').pop()) {
3381
- case 'xml':
3382
- this.loadJiveXMLEvent(eventData);
3383
- break;
3384
- case 'json':
3385
- this.loadJSONEvent(eventData);
3386
- break;
3387
- }
3388
- });
3389
- }
3390
- loadJSONEvent(eventData) {
3391
- this.eventDisplay.parsePhoenixEvents(JSON.parse(eventData));
3392
- this.onClose();
3393
- }
3394
- loadJiveXMLEvent(eventData) {
3395
- const jiveXMLLoader = new JiveXMLLoader();
3396
- jiveXMLLoader.process(eventData);
3397
- const processedEventData = jiveXMLLoader.getEventData();
3398
- this.eventDisplay.buildEventDataFromJSON(processedEventData);
3399
- this.onClose();
3400
- }
3401
- loadConfig(file) {
3402
- this.makeRequest(`${this.dialogData.apiURL}?type=config&f=${file}`, 'text', (config) => {
3403
- const stateManager = this.eventDisplay.getStateManager();
3404
- stateManager.loadStateFromJSON(JSON.parse(config));
3405
- this.onClose();
3406
- });
3407
- }
3408
- // Helpers
3409
- onClose() {
3410
- this.dialogRef.close();
3411
- }
3412
- unzip(data) {
3413
- return __awaiter(this, void 0, void 0, function* () {
3414
- const archive = new JSZip();
3415
- yield archive.loadAsync(data);
3416
- let fileData = '';
3417
- let multiFile = false;
3418
- for (const filePath in archive.files) {
3419
- if (multiFile) {
3420
- console.error('Zip archive contains more than one file. Ignoring all but first');
3421
- break;
3422
- }
3423
- fileData = yield archive.file(filePath).async('string');
3424
- multiFile = true;
3425
- }
3426
- return fileData;
3427
- });
3428
- }
3429
- makeRequest(urlPath, responseType, onData) {
3430
- this.loading = true;
3431
- fetch(urlPath)
3432
- .then((res) => res[responseType]())
3433
- .then((data) => {
3434
- if (responseType === 'blob') {
3435
- data
3436
- .arrayBuffer()
3437
- .then((buf) => this.unzip(buf))
3438
- .then((d) => onData(d));
3439
- }
3440
- else {
3441
- onData(data);
3442
- }
3443
- this.error = false;
3444
- })
3445
- .catch((error) => {
3446
- console.error(error);
3447
- this.error = true;
3448
- })
3449
- .finally(() => {
3450
- this.loading = false;
3451
- });
3452
- }
3453
- buildFileNode(filePaths) {
3454
- const rootNode = new FileNode();
3455
- let fileNode = rootNode;
3456
- for (const filePath of filePaths) {
3457
- filePath.name.split('/').forEach((name) => {
3458
- var _a, _b;
3459
- fileNode.children = (_a = fileNode.children) !== null && _a !== void 0 ? _a : {};
3460
- fileNode.children[name] = (_b = fileNode.children[name]) !== null && _b !== void 0 ? _b : new FileNode(name);
3461
- fileNode = fileNode.children[name];
3462
- });
3463
- fileNode.url = filePath.url;
3464
- fileNode = rootNode;
3465
- }
3466
- return rootNode;
3467
- }
3468
- }
3469
- EventDataExplorerDialogComponent.ɵfac = function EventDataExplorerDialogComponent_Factory(t) { return new (t || EventDataExplorerDialogComponent)(i0.ɵɵdirectiveInject(EventDisplayService), i0.ɵɵdirectiveInject(i1$2.MatDialogRef), i0.ɵɵdirectiveInject(MAT_DIALOG_DATA)); };
3470
- EventDataExplorerDialogComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: EventDataExplorerDialogComponent, selectors: [["app-event-data-explorer-dialog"]], decls: 11, vars: 3, consts: [[1, "dialog"], [1, "d-flex"], ["mat-dialog-title", ""], [4, "ngIf"], ["mat-dialog-content", "", 1, "dialog-content"], ["mat-align-tabs", "start", "animationDuration", "0ms", "disableRipple", "", "color", "transparent", 4, "ngIf"], ["mat-dialog-actions", ""], ["mat-button", "", "cdkFocusInitial", "", 3, "click"], ["mat-align-tabs", "start", "animationDuration", "0ms", "disableRipple", "", "color", "transparent"], ["label", "Event data"], [1, "py-3"], [3, "rootFileNode", "onFileSelect"], ["label", "Config"]], template: function EventDataExplorerDialogComponent_Template(rf, ctx) {
3471
- if (rf & 1) {
3472
- i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "h1", 2);
3473
- i0.ɵɵtext(3, "Event data from directory");
3474
- i0.ɵɵelementEnd();
3475
- i0.ɵɵtemplate(4, EventDataExplorerDialogComponent_app_ring_loader_4_Template, 1, 0, "app-ring-loader", 3);
3476
- i0.ɵɵelementEnd();
3477
- i0.ɵɵelementStart(5, "div", 4);
3478
- i0.ɵɵtemplate(6, EventDataExplorerDialogComponent_div_6_Template, 2, 0, "div", 3);
3479
- i0.ɵɵtemplate(7, EventDataExplorerDialogComponent_mat_tab_group_7_Template, 7, 2, "mat-tab-group", 5);
3480
- i0.ɵɵelementEnd();
3481
- i0.ɵɵelementStart(8, "div", 6)(9, "button", 7);
3482
- i0.ɵɵlistener("click", function EventDataExplorerDialogComponent_Template_button_click_9_listener() { return ctx.onClose(); });
3483
- i0.ɵɵtext(10, "Close");
3484
- i0.ɵɵelementEnd()()();
3485
- }
3486
- if (rf & 2) {
3487
- i0.ɵɵadvance(4);
3488
- i0.ɵɵproperty("ngIf", ctx.loading);
3489
- i0.ɵɵadvance(2);
3490
- i0.ɵɵproperty("ngIf", ctx.error);
3491
- i0.ɵɵadvance(1);
3492
- i0.ɵɵproperty("ngIf", !ctx.error);
3493
- }
3494
- }, dependencies: [i2.NgIf, i1$2.MatDialogTitle, i1$2.MatDialogContent, i1$2.MatDialogActions, i2$2.MatButton, i5$1.MatTab, i5$1.MatTabGroup, FileExplorerComponent, RingLoaderComponent], styles: [".dialog[_ngcontent-%COMP%]{width:30rem;max-width:95%}.file-path-button[_ngcontent-%COMP%]{width:100%;color:var(--phoenix-text-color);background:var(--phoenix-background-color-tertiary);text-align:left;border-radius:1rem;margin-bottom:.5rem;padding:.5rem 1rem}.file-path-button[_ngcontent-%COMP%]:last-child{margin-bottom:0}.file-path-button[_ngcontent-%COMP%]:hover{background:var(--phoenix-background-color-secondary)}.file-path-button[_ngcontent-%COMP%]:focus{border:1px solid var(--phoenix-text-color-secondary);box-shadow:none}"] });
3495
- (function () {
3496
- (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EventDataExplorerDialogComponent, [{
3497
- type: Component,
3498
- args: [{ selector: 'app-event-data-explorer-dialog', template: "<div class=\"dialog\">\n <div class=\"d-flex\">\n <h1 mat-dialog-title>Event data from directory</h1>\n <app-ring-loader *ngIf=\"loading\"></app-ring-loader>\n </div>\n <div mat-dialog-content class=\"dialog-content\">\n <div *ngIf=\"error\">Error processing request.</div>\n <mat-tab-group\n *ngIf=\"!error\"\n mat-align-tabs=\"start\"\n animationDuration=\"0ms\"\n disableRipple\n color=\"transparent\"\n >\n <mat-tab label=\"Event data\">\n <div class=\"py-3\">\n <app-file-explorer\n [rootFileNode]=\"eventDataFileNode\"\n (onFileSelect)=\"loadEvent($event)\"\n ></app-file-explorer>\n </div>\n </mat-tab>\n <mat-tab label=\"Config\">\n <div class=\"py-3\">\n <app-file-explorer\n [rootFileNode]=\"configFileNode\"\n (onFileSelect)=\"loadConfig($event)\"\n ></app-file-explorer>\n </div>\n </mat-tab>\n </mat-tab-group>\n </div>\n <div mat-dialog-actions>\n <button mat-button (click)=\"onClose()\" cdkFocusInitial>Close</button>\n </div>\n</div>\n", styles: [".dialog{width:30rem;max-width:95%}.file-path-button{width:100%;color:var(--phoenix-text-color);background:var(--phoenix-background-color-tertiary);text-align:left;border-radius:1rem;margin-bottom:.5rem;padding:.5rem 1rem}.file-path-button:last-child{margin-bottom:0}.file-path-button:hover{background:var(--phoenix-background-color-secondary)}.file-path-button:focus{border:1px solid var(--phoenix-text-color-secondary);box-shadow:none}\n"] }]
3499
- }], function () {
3500
- return [{ type: EventDisplayService }, { type: i1$2.MatDialogRef }, { type: undefined, decorators: [{
3501
- type: Inject,
3502
- args: [MAT_DIALOG_DATA]
3503
- }] }];
3504
- }, null);
3505
- })();
3506
-
3507
- class EventDataExplorerComponent {
3508
- constructor(dialog) {
3509
- this.dialog = dialog;
3510
- }
3511
- openEventDataExplorerDialog() {
3512
- this.dialog.open(EventDataExplorerDialogComponent, {
3513
- data: {
3514
- apiURL: this.apiURL,
3515
- },
3516
- });
3517
- }
3518
- }
3519
- EventDataExplorerComponent.ɵfac = function EventDataExplorerComponent_Factory(t) { return new (t || EventDataExplorerComponent)(i0.ɵɵdirectiveInject(i1$2.MatDialog)); };
3520
- EventDataExplorerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: EventDataExplorerComponent, selectors: [["app-event-data-explorer"]], inputs: { apiURL: "apiURL" }, decls: 1, vars: 1, consts: [["tooltip", "Browse events in data directory", "icon", "server", 3, "active", "click"]], template: function EventDataExplorerComponent_Template(rf, ctx) {
3521
- if (rf & 1) {
3522
- i0.ɵɵelementStart(0, "app-menu-toggle", 0);
3523
- i0.ɵɵlistener("click", function EventDataExplorerComponent_Template_app_menu_toggle_click_0_listener() { return ctx.openEventDataExplorerDialog(); });
3524
- i0.ɵɵelementEnd();
3525
- }
3526
- if (rf & 2) {
3527
- i0.ɵɵproperty("active", false);
3528
- }
3529
- }, dependencies: [MenuToggleComponent] });
3530
- (function () {
3531
- (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EventDataExplorerComponent, [{
3532
- type: Component,
3533
- args: [{ selector: 'app-event-data-explorer', template: "<app-menu-toggle\n tooltip=\"Browse events in data directory\"\n icon=\"server\"\n [active]=\"false\"\n (click)=\"openEventDataExplorerDialog()\"\n>\n</app-menu-toggle>\n" }]
3534
- }], function () { return [{ type: i1$2.MatDialog }]; }, { apiURL: [{
3535
- type: Input
3536
- }] });
3537
- })();
3538
-
3539
- class CycleEventsComponent {
3540
- constructor(eventDisplay) {
3541
- this.eventDisplay = eventDisplay;
3542
- this.active = false;
3543
- }
3544
- ngOnInit() {
3545
- this.eventDisplay.listenToLoadedEventsChange((events) => (this.events = events));
3546
- }
3547
- toggleCycle() {
3548
- this.active = !this.active;
3549
- clearInterval(this.intervalId);
3550
- if (this.active) {
3551
- this.startCycleInterval();
3552
- }
3553
- }
3554
- startCycleInterval(startIndex = 0) {
3555
- let index = startIndex;
3556
- this.intervalId = setInterval(() => {
3557
- index = index >= this.events.length ? 0 : index + 1;
3558
- this.eventDisplay.loadEvent(this.events[index]);
3559
- }, this.interval);
3560
- }
3561
- }
3562
- CycleEventsComponent.ɵfac = function CycleEventsComponent_Factory(t) { return new (t || CycleEventsComponent)(i0.ɵɵdirectiveInject(EventDisplayService)); };
3563
- CycleEventsComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CycleEventsComponent, selectors: [["app-cycle-events"]], inputs: { interval: "interval" }, decls: 1, vars: 1, consts: [["tooltip", "Cycle through events", "icon", "cycle-events", 3, "active", "click"]], template: function CycleEventsComponent_Template(rf, ctx) {
3564
- if (rf & 1) {
3565
- i0.ɵɵelementStart(0, "app-menu-toggle", 0);
3566
- i0.ɵɵlistener("click", function CycleEventsComponent_Template_app_menu_toggle_click_0_listener() { return ctx.toggleCycle(); });
3567
- i0.ɵɵelementEnd();
3568
- }
3569
- if (rf & 2) {
3570
- i0.ɵɵproperty("active", ctx.active);
3571
- }
3572
- }, dependencies: [MenuToggleComponent], encapsulation: 2 });
3573
- (function () {
3574
- (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CycleEventsComponent, [{
3575
- type: Component,
3576
- args: [{ selector: 'app-cycle-events', template: "<app-menu-toggle\n tooltip=\"Cycle through events\"\n [active]=\"active\"\n icon=\"cycle-events\"\n (click)=\"toggleCycle()\"\n>\n</app-menu-toggle>\n" }]
3577
- }], function () { return [{ type: EventDisplayService }]; }, { interval: [{
3578
- type: Input
3579
- }] });
3580
- })();
3581
-
3582
- class ErrorMessageService {
3583
- constructor() {
3584
- /** A variable that stores the latest error thrown. */
3585
- this.error = new ActiveVariable();
3586
- }
3587
- /**
3588
- * Subscribe to when an error occurs.
3589
- * @param callback A function called when an error occurs.
3590
- */
3591
- subscribeToError(callback) {
3592
- this.error.onUpdate(callback);
3593
- }
3594
- /**
3595
- * Set the current error.
3596
- * @param error The error that has occurred.
3597
- */
3598
- setError(error) {
3599
- this.error.update(error);
3600
- }
3601
- }
3602
- ErrorMessageService.ɵfac = function ErrorMessageService_Factory(t) { return new (t || ErrorMessageService)(); };
3603
- ErrorMessageService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: ErrorMessageService, factory: ErrorMessageService.ɵfac, providedIn: 'root' });
3604
- (function () {
3605
- (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ErrorMessageService, [{
3606
- type: Injectable,
3607
- args: [{
3608
- providedIn: 'root',
3609
- }]
3610
- }], null, null);
3611
- })();
3612
-
3613
- const _c0 = function (a0) { return { width: a0 }; };
3614
- function LoaderComponent_ng_container_1_div_7_Template(rf, ctx) {
3615
- if (rf & 1) {
3616
- i0.ɵɵelementStart(0, "div", 7);
3617
- i0.ɵɵelement(1, "span");
3618
- i0.ɵɵelementEnd();
3619
- }
3620
- if (rf & 2) {
3621
- const ctx_r3 = i0.ɵɵnextContext(2);
3622
- i0.ɵɵadvance(1);
3623
- i0.ɵɵstyleMap(i0.ɵɵpureFunction1(2, _c0, ctx_r3.progress + "%"));
3624
- }
3625
- }
3626
- function LoaderComponent_ng_container_1_Template(rf, ctx) {
3627
- if (rf & 1) {
3628
- i0.ɵɵelementContainerStart(0);
3629
- i0.ɵɵelement(1, "img", 3);
3630
- i0.ɵɵelementStart(2, "p", 4);
3631
- i0.ɵɵtext(3, " Loading...");
3632
- i0.ɵɵelement(4, "br");
3633
- i0.ɵɵelementStart(5, "small", 5);
3634
- i0.ɵɵtext(6, "(This may take a while)");
3635
- i0.ɵɵelementEnd()();
3636
- i0.ɵɵtemplate(7, LoaderComponent_ng_container_1_div_7_Template, 2, 4, "div", 6);
3637
- i0.ɵɵelementContainerEnd();
3638
- }
3639
- if (rf & 2) {
3640
- const ctx_r0 = i0.ɵɵnextContext();
3641
- i0.ɵɵadvance(7);
3642
- i0.ɵɵproperty("ngIf", ctx_r0.progress !== undefined);
3643
- }
3644
- }
3645
- function LoaderComponent_ng_template_2_Template(rf, ctx) {
3646
- if (rf & 1) {
3647
- i0.ɵɵelementStart(0, "p");
3648
- i0.ɵɵtext(1, " An error occurred while loading the application. Please try refreshing the page. ");
3649
- i0.ɵɵelementEnd();
3650
- }
3651
- }
3652
- const _c1 = function (a0) { return { "load-complete": a0 }; };
3653
- class LoaderComponent {
3654
- constructor(errorMessageService) {
3655
- this.errorMessageService = errorMessageService;
3656
- this.loaded = false;
3657
- this.errorMessageService.subscribeToError((error) => {
3658
- if (!this.loaded) {
3659
- this.error = error;
3660
- }
3661
- });
3662
- }
3663
- }
3664
- LoaderComponent.ɵfac = function LoaderComponent_Factory(t) { return new (t || LoaderComponent)(i0.ɵɵdirectiveInject(ErrorMessageService)); };
3665
- LoaderComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LoaderComponent, selectors: [["app-loader"]], inputs: { loaded: "loaded", progress: "progress" }, decls: 4, vars: 5, consts: [[1, "loader-wrapper", "d-flex", "position-absolute", "flex-column", "justify-content-center", "align-items-center", "w-100", "h-100", "p-5", "text-center", 3, "ngClass"], [4, "ngIf", "ngIfElse"], ["errorContainer", ""], ["src", "assets/images/logo-small.svg", "alt", "Loader"], [1, "mt-5"], [1, "text-muted"], ["class", "loading-bar", 4, "ngIf"], [1, "loading-bar"]], template: function LoaderComponent_Template(rf, ctx) {
3666
- if (rf & 1) {
3667
- i0.ɵɵelementStart(0, "div", 0);
3668
- i0.ɵɵtemplate(1, LoaderComponent_ng_container_1_Template, 8, 1, "ng-container", 1);
3669
- i0.ɵɵtemplate(2, LoaderComponent_ng_template_2_Template, 2, 0, "ng-template", null, 2, i0.ɵɵtemplateRefExtractor);
3670
- i0.ɵɵelementEnd();
3671
- }
3672
- if (rf & 2) {
3673
- const _r1 = i0.ɵɵreference(3);
3674
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(3, _c1, ctx.loaded));
3675
- i0.ɵɵadvance(1);
3676
- i0.ɵɵproperty("ngIf", ctx.error === undefined)("ngIfElse", _r1);
3677
- }
3678
- }, dependencies: [i2.NgClass, i2.NgIf], styles: [".loader-wrapper[_ngcontent-%COMP%]{background:var(--phoenix-background-color);z-index:9998}.loader-wrapper.load-complete[_ngcontent-%COMP%]{display:none!important}.loader-wrapper[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:5rem;height:5rem;animation:loader 2s infinite}.loader-wrapper[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:var(--phoenix-text-color)}.loader-wrapper[_ngcontent-%COMP%] .loading-bar[_ngcontent-%COMP%]{width:15rem;max-width:90%;height:.5rem;background:var(--phoenix-background-color-tertiary);border-radius:2.5rem;overflow:hidden}.loader-wrapper[_ngcontent-%COMP%] .loading-bar[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;height:100%;border-radius:2.5rem;background:linear-gradient(to right,var(--phoenix-primary),var(--phoenix-secondary));transition:all .5s}@keyframes _ngcontent-%COMP%_app-loader_loader{0%,to{transform:scale(.1) rotate(0)}95%{transform:scale(1) rotate(15deg)}}"] });
3679
- (function () {
3680
- (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LoaderComponent, [{
3681
- type: Component,
3682
- args: [{ selector: 'app-loader', template: "<div\n class=\"loader-wrapper d-flex position-absolute flex-column justify-content-center align-items-center w-100 h-100 p-5 text-center\"\n [ngClass]=\"{ 'load-complete': loaded }\"\n>\n <ng-container *ngIf=\"error === undefined; else errorContainer\">\n <img src=\"assets/images/logo-small.svg\" alt=\"Loader\" />\n <p class=\"mt-5\">\n Loading...<br />\n <small class=\"text-muted\">(This may take a while)</small>\n </p>\n <div class=\"loading-bar\" *ngIf=\"progress !== undefined\">\n <span [style]=\"{ width: progress + '%' }\"></span>\n </div>\n </ng-container>\n <ng-template #errorContainer>\n <p>\n An error occurred while loading the application. Please try refreshing the\n page.\n </p>\n </ng-template>\n</div>\n", styles: [".loader-wrapper{background:var(--phoenix-background-color);z-index:9998}.loader-wrapper.load-complete{display:none!important}.loader-wrapper img{width:5rem;height:5rem;animation:loader 2s infinite}.loader-wrapper p{color:var(--phoenix-text-color)}.loader-wrapper .loading-bar{width:15rem;max-width:90%;height:.5rem;background:var(--phoenix-background-color-tertiary);border-radius:2.5rem;overflow:hidden}.loader-wrapper .loading-bar span{display:block;height:100%;border-radius:2.5rem;background:linear-gradient(to right,var(--phoenix-primary),var(--phoenix-secondary));transition:all .5s}@keyframes app-loader_loader{0%,to{transform:scale(.1) rotate(0)}95%{transform:scale(1) rotate(15deg)}}\n"] }]
3683
- }], function () { return [{ type: ErrorMessageService }]; }, { loaded: [{
3684
- type: Input
3685
- }], progress: [{
3686
- type: Input
3687
- }] });
3688
- })();
3689
-
3690
- /**
3691
- * Global handler for handling app/module wide errors.
3692
- */
3693
- class GlobalErrorHandler {
3694
- /**
3695
- * Instantiate the global error handler.
3696
- * @param injector Injector for getting the error message service.
3697
- */
3698
- constructor(injector) {
3699
- this.injector = injector;
3700
- }
3701
- /**
3702
- * A handler for handling the global error that occurs in the app.
3703
- * @param error The error that occurred.
3704
- */
3705
- handleError(error) {
3706
- console.error('ERROR IN PHOENIX APP', '\n', error);
3707
- this.injector.get(ErrorMessageService).setError(error);
3708
- }
3709
- }
3710
- GlobalErrorHandler.ɵfac = function GlobalErrorHandler_Factory(t) { return new (t || GlobalErrorHandler)(i0.ɵɵinject(i0.Injector)); };
3711
- GlobalErrorHandler.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: GlobalErrorHandler, factory: GlobalErrorHandler.ɵfac });
3712
- (function () {
3713
- (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(GlobalErrorHandler, [{
3714
- type: Injectable
3715
- }], function () { return [{ type: i0.Injector }]; }, null);
3716
- })();
3717
-
3718
- class ExperimentLinkComponent {
3719
- ngOnInit() {
3720
- // we just want to remove the "&embed=true" instruction here.
3721
- const url = new URL(window.location.href);
3722
- url.searchParams.delete('embed');
3723
- this.experimentLink = url.toString();
3724
- }
3725
- goToExperiment() {
3726
- window.open(this.experimentLink, '_blank');
3727
- }
3728
- }
3729
- ExperimentLinkComponent.ɵfac = function ExperimentLinkComponent_Factory(t) { return new (t || ExperimentLinkComponent)(); };
3730
- ExperimentLinkComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ExperimentLinkComponent, selectors: [["app-experiment-link"]], decls: 1, vars: 0, consts: [["tooltip", "See full event display", "icon", "link", 3, "click"]], template: function ExperimentLinkComponent_Template(rf, ctx) {
3731
- if (rf & 1) {
3732
- i0.ɵɵelementStart(0, "app-menu-toggle", 0);
3733
- i0.ɵɵlistener("click", function ExperimentLinkComponent_Template_app_menu_toggle_click_0_listener() { return ctx.goToExperiment(); });
3734
- i0.ɵɵelementEnd();
3735
- }
3736
- }, dependencies: [MenuToggleComponent] });
3737
- (function () {
3738
- (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ExperimentLinkComponent, [{
3739
- type: Component,
3740
- args: [{ selector: 'app-experiment-link', template: "<app-menu-toggle\n tooltip=\"See full event display\"\n icon=\"link\"\n (click)=\"goToExperiment()\"\n></app-menu-toggle>\n" }]
3741
- }], null, null);
3742
- })();
3743
-
3744
- class EmbedMenuComponent {
3745
- }
3746
- EmbedMenuComponent.ɵfac = function EmbedMenuComponent_Factory(t) { return new (t || EmbedMenuComponent)(); };
3747
- EmbedMenuComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: EmbedMenuComponent, selectors: [["app-embed-menu"]], decls: 8, vars: 0, consts: [["id", "embedMenu"], ["id", "embedMenuInner"]], template: function EmbedMenuComponent_Template(rf, ctx) {
3748
- if (rf & 1) {
3749
- i0.ɵɵelementStart(0, "div", 0)(1, "div", 1);
3750
- i0.ɵɵelement(2, "app-dark-theme")(3, "app-auto-rotate")(4, "app-main-view-toggle")(5, "app-animate-event")(6, "app-animate-camera")(7, "app-experiment-link");
3751
- i0.ɵɵelementEnd()();
3752
- }
3753
- }, dependencies: [DarkThemeComponent, AutoRotateComponent, MainViewToggleComponent, AnimateCameraComponent, AnimateEventComponent, ExperimentLinkComponent], styles: ["#embedMenu[_ngcontent-%COMP%]{display:none}#embedMenu[_ngcontent-%COMP%] #embedMenuInner[_ngcontent-%COMP%]{display:flex;position:absolute;left:1rem;bottom:1rem;background:var(--phoenix-background-color-secondary);border:1px solid var(--phoenix-background-color-tertiary);box-shadow:var(--phoenix-box-shadow);border-radius:30px;padding:.25rem 0}"] });
3754
- (function () {
3755
- (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(EmbedMenuComponent, [{
3756
- type: Component,
3757
- args: [{ selector: 'app-embed-menu', template: "<div id=\"embedMenu\">\n <div id=\"embedMenuInner\">\n <app-dark-theme></app-dark-theme>\n <app-auto-rotate></app-auto-rotate>\n <app-main-view-toggle></app-main-view-toggle>\n <app-animate-event></app-animate-event>\n <app-animate-camera></app-animate-camera>\n <app-experiment-link></app-experiment-link>\n </div>\n</div>\n", styles: ["#embedMenu{display:none}#embedMenu #embedMenuInner{display:flex;position:absolute;left:1rem;bottom:1rem;background:var(--phoenix-background-color-secondary);border:1px solid var(--phoenix-background-color-tertiary);box-shadow:var(--phoenix-box-shadow);border-radius:30px;padding:.25rem 0}\n"] }]
3758
- }], null, null);
3759
- })();
3760
-
3761
- const PHOENIX_COMPONENTS = [
3762
- NavComponent,
3763
- UiMenuWrapperComponent,
3764
- UiMenuComponent,
3765
- CollectionsInfoComponent,
3766
- MenuToggleComponent,
3767
- CollectionsInfoOverlayComponent,
3768
- IoOptionsComponent,
3769
- IOOptionsDialogComponent,
3770
- OverlayViewComponent,
3771
- AttributePipe,
3772
- ObjectSelectionComponent,
3773
- ObjectSelectionOverlayComponent,
3774
- EventSelectorComponent,
3775
- ObjectClippingComponent,
3776
- DarkThemeComponent,
3777
- AutoRotateComponent,
3778
- ViewOptionsComponent,
3779
- OverlayViewWindowComponent,
3780
- OverlayComponent,
3781
- ExperimentInfoComponent,
3782
- InfoPanelComponent,
3783
- InfoPanelOverlayComponent,
3784
- MainViewToggleComponent,
3785
- ZoomControlsComponent,
3786
- TreeMenuComponent,
3787
- TreeMenuItemComponent,
3788
- PhoenixMenuComponent,
3789
- PhoenixMenuItemComponent,
3790
- ConfigSliderComponent,
3791
- AnimateCameraComponent,
3792
- AnimateEventComponent,
3793
- VrToggleComponent,
3794
- ArToggleComponent,
3795
- SSModeComponent,
3796
- MakePictureComponent,
3797
- PerformanceToggleComponent,
3798
- LoaderComponent,
3799
- ShareLinkComponent,
3800
- ShareLinkDialogComponent,
3801
- EmbedMenuComponent,
3802
- ExperimentLinkComponent,
3803
- EventDataExplorerComponent,
3804
- EventDataExplorerDialogComponent,
3805
- FileExplorerComponent,
3806
- RingLoaderComponent,
3807
- CycleEventsComponent,
3808
- ];
3809
- class PhoenixUIModule {
3810
- }
3811
- PhoenixUIModule.ɵfac = function PhoenixUIModule_Factory(t) { return new (t || PhoenixUIModule)(); };
3812
- PhoenixUIModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: PhoenixUIModule });
3813
- PhoenixUIModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [
3814
- EventDisplayService,
3815
- ErrorMessageService,
3816
- {
3817
- provide: ErrorHandler,
3818
- useClass: GlobalErrorHandler,
3819
- },
3820
- ], imports: [CommonModule,
3821
- RouterModule,
3822
- DragDropModule,
3823
- MatDialogModule,
3824
- MatButtonModule,
3825
- MatTooltipModule,
3826
- OverlayModule,
3827
- FormsModule,
3828
- MatMenuModule,
3829
- MatRadioModule,
3830
- MatSliderModule,
3831
- MatSlideToggleModule,
3832
- MatCheckboxModule,
3833
- MatIconModule,
3834
- CdkTreeModule,
3835
- MatTabsModule] });
3836
- (function () {
3837
- (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PhoenixUIModule, [{
3838
- type: NgModule,
3839
- args: [{
3840
- declarations: PHOENIX_COMPONENTS,
3841
- imports: [
3842
- CommonModule,
3843
- RouterModule,
3844
- DragDropModule,
3845
- MatDialogModule,
3846
- MatButtonModule,
3847
- MatTooltipModule,
3848
- OverlayModule,
3849
- FormsModule,
3850
- MatMenuModule,
3851
- MatRadioModule,
3852
- MatSliderModule,
3853
- MatSlideToggleModule,
3854
- MatCheckboxModule,
3855
- MatIconModule,
3856
- CdkTreeModule,
3857
- MatTabsModule,
3858
- ],
3859
- entryComponents: [
3860
- OverlayComponent,
3861
- OverlayViewWindowComponent,
3862
- IOOptionsDialogComponent,
3863
- CollectionsInfoOverlayComponent,
3864
- ObjectSelectionOverlayComponent,
3865
- InfoPanelOverlayComponent,
3866
- EventDataExplorerDialogComponent,
3867
- ],
3868
- exports: PHOENIX_COMPONENTS,
3869
- providers: [
3870
- EventDisplayService,
3871
- ErrorMessageService,
3872
- {
3873
- provide: ErrorHandler,
3874
- useClass: GlobalErrorHandler,
3875
- },
3876
- ],
3877
- }]
3878
- }], null, null);
3879
- })();
3880
- (function () {
3881
- (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(PhoenixUIModule, { declarations: [NavComponent,
3882
- UiMenuWrapperComponent,
3883
- UiMenuComponent,
3884
- CollectionsInfoComponent,
3885
- MenuToggleComponent,
3886
- CollectionsInfoOverlayComponent,
3887
- IoOptionsComponent,
3888
- IOOptionsDialogComponent,
3889
- OverlayViewComponent,
3890
- AttributePipe,
3891
- ObjectSelectionComponent,
3892
- ObjectSelectionOverlayComponent,
3893
- EventSelectorComponent,
3894
- ObjectClippingComponent,
3895
- DarkThemeComponent,
3896
- AutoRotateComponent,
3897
- ViewOptionsComponent,
3898
- OverlayViewWindowComponent,
3899
- OverlayComponent,
3900
- ExperimentInfoComponent,
3901
- InfoPanelComponent,
3902
- InfoPanelOverlayComponent,
3903
- MainViewToggleComponent,
3904
- ZoomControlsComponent,
3905
- TreeMenuComponent,
3906
- TreeMenuItemComponent,
3907
- PhoenixMenuComponent,
3908
- PhoenixMenuItemComponent,
3909
- ConfigSliderComponent,
3910
- AnimateCameraComponent,
3911
- AnimateEventComponent,
3912
- VrToggleComponent,
3913
- ArToggleComponent,
3914
- SSModeComponent,
3915
- MakePictureComponent,
3916
- PerformanceToggleComponent,
3917
- LoaderComponent,
3918
- ShareLinkComponent,
3919
- ShareLinkDialogComponent,
3920
- EmbedMenuComponent,
3921
- ExperimentLinkComponent,
3922
- EventDataExplorerComponent,
3923
- EventDataExplorerDialogComponent,
3924
- FileExplorerComponent,
3925
- RingLoaderComponent,
3926
- CycleEventsComponent], imports: [CommonModule,
3927
- RouterModule,
3928
- DragDropModule,
3929
- MatDialogModule,
3930
- MatButtonModule,
3931
- MatTooltipModule,
3932
- OverlayModule,
3933
- FormsModule,
3934
- MatMenuModule,
3935
- MatRadioModule,
3936
- MatSliderModule,
3937
- MatSlideToggleModule,
3938
- MatCheckboxModule,
3939
- MatIconModule,
3940
- CdkTreeModule,
3941
- MatTabsModule], exports: [NavComponent,
3942
- UiMenuWrapperComponent,
3943
- UiMenuComponent,
3944
- CollectionsInfoComponent,
3945
- MenuToggleComponent,
3946
- CollectionsInfoOverlayComponent,
3947
- IoOptionsComponent,
3948
- IOOptionsDialogComponent,
3949
- OverlayViewComponent,
3950
- AttributePipe,
3951
- ObjectSelectionComponent,
3952
- ObjectSelectionOverlayComponent,
3953
- EventSelectorComponent,
3954
- ObjectClippingComponent,
3955
- DarkThemeComponent,
3956
- AutoRotateComponent,
3957
- ViewOptionsComponent,
3958
- OverlayViewWindowComponent,
3959
- OverlayComponent,
3960
- ExperimentInfoComponent,
3961
- InfoPanelComponent,
3962
- InfoPanelOverlayComponent,
3963
- MainViewToggleComponent,
3964
- ZoomControlsComponent,
3965
- TreeMenuComponent,
3966
- TreeMenuItemComponent,
3967
- PhoenixMenuComponent,
3968
- PhoenixMenuItemComponent,
3969
- ConfigSliderComponent,
3970
- AnimateCameraComponent,
3971
- AnimateEventComponent,
3972
- VrToggleComponent,
3973
- ArToggleComponent,
3974
- SSModeComponent,
3975
- MakePictureComponent,
3976
- PerformanceToggleComponent,
3977
- LoaderComponent,
3978
- ShareLinkComponent,
3979
- ShareLinkDialogComponent,
3980
- EmbedMenuComponent,
3981
- ExperimentLinkComponent,
3982
- EventDataExplorerComponent,
3983
- EventDataExplorerDialogComponent,
3984
- FileExplorerComponent,
3985
- RingLoaderComponent,
3986
- CycleEventsComponent] });
3987
- })();
3988
-
3989
- /**
3990
- * Generated bundle index. Do not edit.
3991
- */
3992
-
3993
- export { AnimateCameraComponent, AnimateEventComponent, ArToggleComponent, AttributePipe, AutoRotateComponent, CollectionsInfoComponent, CollectionsInfoOverlayComponent, ConfigSliderComponent, CycleEventsComponent, DarkThemeComponent, EmbedMenuComponent, EventDataExplorerComponent, EventDataExplorerDialogComponent, EventDataFormat, EventDisplayService, EventSelectorComponent, ExperimentInfoComponent, ExperimentLinkComponent, FileExplorerComponent, FileNode, IOOptionsDialogComponent, ImportOption, InfoPanelComponent, InfoPanelOverlayComponent, IoOptionsComponent, LoaderComponent, MainViewToggleComponent, MakePictureComponent, MenuToggleComponent, NavComponent, ObjectClippingComponent, ObjectSelectionComponent, ObjectSelectionOverlayComponent, OverlayComponent, OverlayViewComponent, OverlayViewWindowComponent, PerformanceToggleComponent, PhoenixMenuComponent, PhoenixMenuItemComponent, PhoenixUIModule, RingLoaderComponent, SSModeComponent, ShareLinkComponent, ShareLinkDialogComponent, TreeMenuComponent, TreeMenuItemComponent, UiMenuComponent, UiMenuWrapperComponent, ViewOptionsComponent, VrToggleComponent, ZoomControlsComponent, defaultAnimationPresets };
3994
- //# sourceMappingURL=phoenix-ui-components.mjs.map