@fmsim/board 2.0.0-beta.9 → 2.0.0-beta.92
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +7351 -3944
- package/demo/index-modeller.html +1 -1
- package/demo/index-player.html +2 -2
- package/demo/index-viewer.html +2 -2
- package/demo/index.html +2 -2
- package/dist/src/component/etc.js +36 -0
- package/dist/src/component/etc.js.map +1 -1
- package/dist/src/component/index.d.ts +1 -0
- package/dist/src/component/index.js +1 -0
- package/dist/src/component/index.js.map +1 -1
- package/dist/src/component/restful-property-editor-backdrop-faces.d.ts +50 -0
- package/dist/src/component/restful-property-editor-backdrop-faces.js +524 -0
- package/dist/src/component/restful-property-editor-backdrop-faces.js.map +1 -0
- package/dist/src/data-storage/board-model-cache.d.ts +13 -0
- package/dist/src/data-storage/board-model-cache.js +66 -0
- package/dist/src/data-storage/board-model-cache.js.map +1 -0
- package/dist/src/index.d.ts +3 -0
- package/dist/src/index.js +2 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/layers/mcs-mouse-event-handler.js +8 -0
- package/dist/src/layers/mcs-mouse-event-handler.js.map +1 -1
- package/dist/src/layers/movement-layer.d.ts +4 -4
- package/dist/src/layers/movement-layer.js +16 -8
- package/dist/src/layers/movement-layer.js.map +1 -1
- package/dist/src/modeller/bulk-create-dialog.d.ts +51 -0
- package/dist/src/modeller/bulk-create-dialog.js +531 -0
- package/dist/src/modeller/bulk-create-dialog.js.map +1 -0
- package/dist/src/modeller/bulk-create.d.ts +101 -0
- package/dist/src/modeller/bulk-create.js +199 -0
- package/dist/src/modeller/bulk-create.js.map +1 -0
- package/dist/src/modeller/component-toolbar/component-menu.d.ts +1 -1
- package/dist/src/modeller/component-toolbar/component-toolbar.d.ts +1 -1
- package/dist/src/modeller/edit-toolbar.d.ts +13 -0
- package/dist/src/modeller/edit-toolbar.js +168 -7
- package/dist/src/modeller/edit-toolbar.js.map +1 -1
- package/dist/src/modeller/property-sidebar/abstract-property.js +10 -2
- package/dist/src/modeller/property-sidebar/abstract-property.js.map +1 -1
- package/dist/src/modeller/property-sidebar/data-binding/data-binding.d.ts +1 -1
- package/dist/src/modeller/property-sidebar/effects/effects.d.ts +10 -1
- package/dist/src/modeller/property-sidebar/effects/effects.js +66 -1
- package/dist/src/modeller/property-sidebar/effects/effects.js.map +1 -1
- package/dist/src/modeller/property-sidebar/effects/event-handler-adapter.d.ts +44 -0
- package/dist/src/modeller/property-sidebar/effects/event-handler-adapter.js +70 -0
- package/dist/src/modeller/property-sidebar/effects/event-handler-adapter.js.map +1 -0
- package/dist/src/modeller/property-sidebar/effects/property-event.d.ts +13 -3
- package/dist/src/modeller/property-sidebar/effects/property-event.js +20 -11
- package/dist/src/modeller/property-sidebar/effects/property-event.js.map +1 -1
- package/dist/src/modeller/property-sidebar/property-sidebar.d.ts +1 -1
- package/dist/src/modeller/property-sidebar/shapes/ox-input-entity-id.d.ts +75 -0
- package/dist/src/modeller/property-sidebar/shapes/ox-input-entity-id.js +346 -0
- package/dist/src/modeller/property-sidebar/shapes/ox-input-entity-id.js.map +1 -0
- package/dist/src/modeller/property-sidebar/shapes/shapes.d.ts +22 -1
- package/dist/src/modeller/property-sidebar/shapes/shapes.js +94 -2
- package/dist/src/modeller/property-sidebar/shapes/shapes.js.map +1 -1
- package/dist/src/modeller/property-sidebar/specifics/specifics.d.ts +25 -1
- package/dist/src/modeller/property-sidebar/specifics/specifics.js +112 -2
- package/dist/src/modeller/property-sidebar/specifics/specifics.js.map +1 -1
- package/dist/src/modeller/property-sidebar/styles/styles.d.ts +1 -1
- package/dist/src/modeller/scene-viewer/ox-scene-layer.d.ts +4 -3
- package/dist/src/modeller/scene-viewer/ox-scene-layer.js +2 -1
- package/dist/src/modeller/scene-viewer/ox-scene-layer.js.map +1 -1
- package/dist/src/modeller/scene-viewer/ox-scene-viewer.d.ts +2 -1
- package/dist/src/modeller/scene-viewer/ox-scene-viewer.js +5 -1
- package/dist/src/modeller/scene-viewer/ox-scene-viewer.js.map +1 -1
- package/dist/src/ox-board-component-info.d.ts +1 -0
- package/dist/src/ox-board-component-info.js +35 -2
- package/dist/src/ox-board-component-info.js.map +1 -1
- package/dist/src/ox-board-list.js +2 -2
- package/dist/src/ox-board-list.js.map +1 -1
- package/dist/src/ox-board-modeller.d.ts +6 -3
- package/dist/src/ox-board-modeller.js +14 -1
- package/dist/src/ox-board-modeller.js.map +1 -1
- package/dist/src/ox-board-viewer.d.ts +113 -13
- package/dist/src/ox-board-viewer.js +764 -98
- package/dist/src/ox-board-viewer.js.map +1 -1
- package/dist/src/ox-editor-board-selector.d.ts +3 -0
- package/dist/src/ox-editor-board-selector.js +38 -9
- package/dist/src/ox-editor-board-selector.js.map +1 -1
- package/dist/src/ox-playback-controls.d.ts +157 -0
- package/dist/src/ox-playback-controls.js +1089 -0
- package/dist/src/ox-playback-controls.js.map +1 -0
- package/dist/src/playback/carrier-tracking-store.d.ts +51 -0
- package/dist/src/playback/carrier-tracking-store.js +115 -0
- package/dist/src/playback/carrier-tracking-store.js.map +1 -0
- package/dist/src/playback/playback-engine.d.ts +106 -0
- package/dist/src/playback/playback-engine.js +395 -0
- package/dist/src/playback/playback-engine.js.map +1 -0
- package/dist/src/selector/board-creation-popup.js +2 -2
- package/dist/src/selector/board-creation-popup.js.map +1 -1
- package/dist/src/selector/board-thumbnail-card.js +6 -6
- package/dist/src/selector/board-thumbnail-card.js.map +1 -1
- package/dist/src/selector/ox-board-creation-card.js +2 -2
- package/dist/src/selector/ox-board-creation-card.js.map +1 -1
- package/dist/src/selector/ox-board-selector.js +21 -10
- package/dist/src/selector/ox-board-selector.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/icons/components/text.png +0 -0
- package/icons/fab/mode-2d.svg +25 -0
- package/icons/fab/mode-3d.svg +25 -0
- package/icons/fab/playback-play.svg +49 -0
- package/icons/fab/playback-stop.svg +50 -0
- package/package.json +8 -4
|
@@ -1,17 +1,27 @@
|
|
|
1
|
+
var BoardViewer_1;
|
|
1
2
|
import { __decorate } from "tslib";
|
|
2
3
|
import '@material/web/fab/fab.js';
|
|
3
4
|
import '@material/web/icon/icon.js';
|
|
4
5
|
import './layers/movement-layer.js';
|
|
5
6
|
import './ox-board-component-info.js';
|
|
6
7
|
import './layers/mcs-mouse-event-handler.js';
|
|
7
|
-
import
|
|
8
|
+
import './ox-playback-controls.js';
|
|
9
|
+
import { css, html, LitElement, nothing } from 'lit';
|
|
8
10
|
import { customElement, property, query, state } from 'lit/decorators.js';
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
+
import { PlaybackEngine } from './playback/playback-engine.js';
|
|
12
|
+
import { CarrierTrackingStore } from './playback/carrier-tracking-store.js';
|
|
13
|
+
import { create, LoadTracker, LoadingOverlay, SCENE_MODE } from '@hatiolab/things-scene';
|
|
14
|
+
import { isIOS, fullscreen, exitfullscreen, togglefullscreen } from '@operato/utils';
|
|
11
15
|
import { ScrollbarStyles } from '@operato/styles';
|
|
12
16
|
import { DataStorage } from './data-storage/data-storage.js';
|
|
13
17
|
import { runScenario, startScenario, DataSubscriptionProviderImpl, isRestfulAvailable } from '@fmsim/api';
|
|
14
|
-
|
|
18
|
+
// FAB 아이콘 — packages/board/icons/fab/ 의 외부 SVG asset 로 분리.
|
|
19
|
+
// 기존엔 inline SVG 였으나 (a) 가독성 향상, (b) 디자이너 단독 수정, (c) 캐시 활용 목적.
|
|
20
|
+
const ICON_FAB_PLAYBACK_PLAY = new URL('../../icons/fab/playback-play.svg', import.meta.url).href;
|
|
21
|
+
const ICON_FAB_PLAYBACK_STOP = new URL('../../icons/fab/playback-stop.svg', import.meta.url).href;
|
|
22
|
+
const ICON_FAB_MODE_2D = new URL('../../icons/fab/mode-2d.svg', import.meta.url).href;
|
|
23
|
+
const ICON_FAB_MODE_3D = new URL('../../icons/fab/mode-3d.svg', import.meta.url).href;
|
|
24
|
+
let BoardViewer = BoardViewer_1 = class BoardViewer extends LitElement {
|
|
15
25
|
constructor() {
|
|
16
26
|
var _a;
|
|
17
27
|
super(...arguments);
|
|
@@ -24,6 +34,8 @@ let BoardViewer = class BoardViewer extends LitElement {
|
|
|
24
34
|
this._forward = [];
|
|
25
35
|
this._backward = [];
|
|
26
36
|
this._oldtarget = null;
|
|
37
|
+
this._fabExpanded = false;
|
|
38
|
+
this._playbackActive = false;
|
|
27
39
|
this.currentBoardId = (_a = this.board) === null || _a === void 0 ? void 0 : _a.id;
|
|
28
40
|
this.popup = null;
|
|
29
41
|
this.lastComponent = null;
|
|
@@ -33,7 +45,6 @@ let BoardViewer = class BoardViewer extends LitElement {
|
|
|
33
45
|
const id = e.detail.value;
|
|
34
46
|
const components = (_a = this._scene) === null || _a === void 0 ? void 0 : _a.findAll(`#${id}`);
|
|
35
47
|
if (!components || components.length == 0) {
|
|
36
|
-
console.log('No equipment was found.');
|
|
37
48
|
return;
|
|
38
49
|
}
|
|
39
50
|
window.dispatchEvent(new CustomEvent('clickComponent', { detail: components[0] }));
|
|
@@ -41,9 +52,16 @@ let BoardViewer = class BoardViewer extends LitElement {
|
|
|
41
52
|
};
|
|
42
53
|
// 모니터링에서 Movement Data를 보여준다.
|
|
43
54
|
this.fmbShowMovementHandler = (e) => {
|
|
44
|
-
var _a;
|
|
55
|
+
var _a, _b, _c;
|
|
56
|
+
// 플레이백 중에는 외부 모니터링이 보내는 실시간 반송 정보를 그리지 않는다 —
|
|
57
|
+
// 사용자가 플레이백 시점의 *과거 상태* 를 보고 있는데 실시간 화살표가 겹치면
|
|
58
|
+
// 혼란을 줌. (백엔드 상세 정보 요청은 ox-board-component-info.ts:225 에서
|
|
59
|
+
// 같은 playbackMode 가드로 이미 차단됨.)
|
|
60
|
+
if ((_b = (_a = this._scene) === null || _a === void 0 ? void 0 : _a.rootContainer) === null || _b === void 0 ? void 0 : _b.playbackMode) {
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
45
63
|
const movement = e.detail.value;
|
|
46
|
-
const movementLayer = (
|
|
64
|
+
const movementLayer = (_c = this._scene) === null || _c === void 0 ? void 0 : _c.findById(`movement-layer`);
|
|
47
65
|
if (!movementLayer) {
|
|
48
66
|
return;
|
|
49
67
|
}
|
|
@@ -107,26 +125,25 @@ let BoardViewer = class BoardViewer extends LitElement {
|
|
|
107
125
|
floatingContainer.hidden = true;
|
|
108
126
|
}
|
|
109
127
|
};
|
|
110
|
-
// BoardComponentInfo popup을
|
|
128
|
+
// BoardComponentInfo popup 을 보여주고 deco-border 로 selected highlight.
|
|
129
|
+
// 영구 추적과는 독립 — query-submit 핸들러 (onQuerySubmit) 가 별도로 담당.
|
|
111
130
|
this.clickComponentHandler = (e) => {
|
|
112
|
-
var _a, _b;
|
|
113
131
|
const component = e.detail;
|
|
114
132
|
const { type } = component.state;
|
|
115
133
|
if (type == 'model-layer') {
|
|
116
|
-
|
|
117
|
-
// this.lastComponent?.trigger('deco-arrow-reset')
|
|
134
|
+
this._clearClickHighlight();
|
|
118
135
|
this.hidePopup();
|
|
119
136
|
return;
|
|
120
137
|
}
|
|
121
138
|
if ('isLVComponent' in component) {
|
|
122
|
-
|
|
123
|
-
// this.lastComponent?.trigger('deco-arrow-reset')
|
|
139
|
+
this._clearClickHighlight();
|
|
124
140
|
this.lastComponent = component;
|
|
125
141
|
component.trigger('deco-border', { distance: 8, lineWidth: 4, color: '#f007' });
|
|
126
|
-
// component.trigger('deco-arrow', { color: 'red', animation: true, size: 20 })
|
|
127
142
|
this.togglePopup(component);
|
|
128
143
|
}
|
|
129
144
|
};
|
|
145
|
+
// 영구 추적 라이프사이클은 things-scene 의 Scene.tracker 가 일괄 관리.
|
|
146
|
+
// (polling, deco-border 부착/해제, 3D outline 색 동기화, centerTo)
|
|
130
147
|
this.fmbStartAnimation = (e) => {
|
|
131
148
|
var _a;
|
|
132
149
|
const { target, animation, decorator, border, arrow } = e.detail || {};
|
|
@@ -173,22 +190,84 @@ let BoardViewer = class BoardViewer extends LitElement {
|
|
|
173
190
|
var _a;
|
|
174
191
|
(_a = this._scene) === null || _a === void 0 ? void 0 : _a.root.trigger('deco-reset');
|
|
175
192
|
};
|
|
193
|
+
this._pointerMoveHandler = () => this.transientShowButtons();
|
|
194
|
+
/**
|
|
195
|
+
* playback 모드는 전체화면 모드와 한 몸 — 어떤 경로로든 전체화면이 해제되면
|
|
196
|
+
* playback 도 함께 종료. (단독 전체화면 토글은 기존처럼 동작하도록 `_playbackActive` 가드.)
|
|
197
|
+
*/
|
|
198
|
+
this._fullscreenChangeHandler = () => {
|
|
199
|
+
if (!document.fullscreenElement && this._playbackActive) {
|
|
200
|
+
this._onPlaybackStop();
|
|
201
|
+
}
|
|
202
|
+
};
|
|
176
203
|
this.resizeHandler = () => {
|
|
177
204
|
this._scene && this._scene.fit();
|
|
178
205
|
};
|
|
206
|
+
// ── Data Subscription ──
|
|
207
|
+
this._dataSubscriptionProvider = isRestfulAvailable() ? undefined : new DataSubscriptionProviderImpl();
|
|
208
|
+
/**
|
|
209
|
+
* 영구추적 fallback 데이터 캐시 — 플레이백 윈도우 × carrierName 단위로
|
|
210
|
+
* carrier 위치 이력을 보관. carrier 가 scene 에 직접 안 보일 때
|
|
211
|
+
* Tracker fallback 콜백이 lookupAt 으로 머신/유닛을 찾아 반환.
|
|
212
|
+
*/
|
|
213
|
+
this._carrierTrackingStore = new CarrierTrackingStore();
|
|
214
|
+
/**
|
|
215
|
+
* fallback 결과(target 컴포넌트) dedupe — 직전과 동일한 target 일 땐 로그 skip
|
|
216
|
+
* + deco-arrow 라이프사이클 (target 변경 시 이전 끄고 새로 부착).
|
|
217
|
+
*/
|
|
218
|
+
this._lastFallbackTarget = null;
|
|
219
|
+
/** _resolveCarrierFallback 마지막 호출 timestamp — carrier 발견 감지용. */
|
|
220
|
+
this._lastFallbackResolvedAt = 0;
|
|
221
|
+
}
|
|
222
|
+
get _is3dMode() {
|
|
223
|
+
var _a, _b, _c;
|
|
224
|
+
return !!((_c = (_b = (_a = this._scene) === null || _a === void 0 ? void 0 : _a.root) === null || _b === void 0 ? void 0 : _b.rootModel) === null || _c === void 0 ? void 0 : _c.is3dMode);
|
|
179
225
|
}
|
|
180
226
|
render() {
|
|
181
|
-
var
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
227
|
+
var _a, _b;
|
|
228
|
+
var fabGroup = this.hideFullscreen
|
|
229
|
+
? html ``
|
|
230
|
+
: html `
|
|
231
|
+
<div
|
|
232
|
+
fab-group
|
|
233
|
+
?expanded=${this._fabExpanded}
|
|
186
234
|
@mouseover=${(e) => this.transientShowButtons(true)}
|
|
187
235
|
@mouseout=${(e) => this.transientShowButtons()}
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
236
|
+
>
|
|
237
|
+
<md-fab
|
|
238
|
+
class="main-fab"
|
|
239
|
+
?expanded=${this._fabExpanded}
|
|
240
|
+
@click=${() => { this._fabExpanded = !this._fabExpanded; }}
|
|
241
|
+
title="menu"
|
|
242
|
+
><md-icon slot="icon">add</md-icon></md-fab>
|
|
243
|
+
|
|
244
|
+
${isIOS() ? nothing : html `<md-fab
|
|
245
|
+
class="sub-fab"
|
|
246
|
+
@click=${() => { this._fabExpanded = false; this.onTapFullscreen(); }}
|
|
247
|
+
title="fullscreen"
|
|
248
|
+
><md-icon slot="icon">${document.fullscreenElement ? 'fullscreen_exit' : 'fullscreen'}</md-icon></md-fab>`}
|
|
249
|
+
|
|
250
|
+
<md-fab
|
|
251
|
+
class="sub-fab"
|
|
252
|
+
@click=${() => { this._fabExpanded = false; this.onTapPlayback(); }}
|
|
253
|
+
title=${this._playbackActive ? 'stop playback' : 'start playback'}
|
|
254
|
+
><span slot="icon" class="fab-icon-wrap"><img
|
|
255
|
+
class="fab-icon"
|
|
256
|
+
src=${this._playbackActive ? ICON_FAB_PLAYBACK_STOP : ICON_FAB_PLAYBACK_PLAY}
|
|
257
|
+
alt=${this._playbackActive ? 'stop playback' : 'start playback'}
|
|
258
|
+
/></span></md-fab>
|
|
259
|
+
|
|
260
|
+
<md-fab
|
|
261
|
+
class="sub-fab"
|
|
262
|
+
@click=${() => { this._fabExpanded = false; this.onTapToggle3D(); }}
|
|
263
|
+
title=${this._is3dMode ? '2D mode' : '3D mode'}
|
|
264
|
+
><span slot="icon" class="fab-icon-wrap"><img
|
|
265
|
+
class="fab-icon"
|
|
266
|
+
src=${this._is3dMode ? ICON_FAB_MODE_2D : ICON_FAB_MODE_3D}
|
|
267
|
+
alt=${this._is3dMode ? '2D mode' : '3D mode'}
|
|
268
|
+
/></span></md-fab>
|
|
269
|
+
</div>
|
|
270
|
+
`;
|
|
192
271
|
var prev = !this.hideNavigation
|
|
193
272
|
? html `
|
|
194
273
|
<md-icon
|
|
@@ -216,74 +295,106 @@ let BoardViewer = class BoardViewer extends LitElement {
|
|
|
216
295
|
return html `
|
|
217
296
|
${prev}
|
|
218
297
|
|
|
219
|
-
<div
|
|
220
|
-
id="target"
|
|
221
|
-
@touchstart=${(e) => this.transientShowButtons()}
|
|
222
|
-
@mousemove=${(e) => this.transientShowButtons()}
|
|
223
|
-
></div>
|
|
298
|
+
<div id="target"></div>
|
|
224
299
|
|
|
225
300
|
<slot></slot>
|
|
226
|
-
${next} ${
|
|
301
|
+
${next} ${fabGroup}
|
|
302
|
+
|
|
303
|
+
${this._playbackActive
|
|
304
|
+
? html `<ox-playback-controls
|
|
305
|
+
.playbackState=${((_a = this._playbackEngine) === null || _a === void 0 ? void 0 : _a.state) === 'playing' ? 'playing' : ((_b = this._playbackEngine) === null || _b === void 0 ? void 0 : _b.state) === 'paused' ? 'paused' : 'idle'}
|
|
306
|
+
@playback-start=${this._onPlaybackStart}
|
|
307
|
+
@playback-pause=${this._onPlaybackPause}
|
|
308
|
+
@playback-resume=${this._onPlaybackResume}
|
|
309
|
+
@playback-stop=${this._onPlaybackStop}
|
|
310
|
+
@playback-seek=${this._onPlaybackSeek}
|
|
311
|
+
@playback-seek-start=${this._onPlaybackSeekStart}
|
|
312
|
+
@playback-seek-preview=${this._onPlaybackSeekPreview}
|
|
313
|
+
@playback-speed=${this._onPlaybackSpeed}
|
|
314
|
+
></ox-playback-controls>`
|
|
315
|
+
: nothing}
|
|
227
316
|
`;
|
|
228
317
|
}
|
|
318
|
+
/** 마우스 클릭/popup 의 selected highlight 해제. */
|
|
319
|
+
_clearClickHighlight() {
|
|
320
|
+
if (this.lastComponent) {
|
|
321
|
+
this.lastComponent.trigger('deco-border-off');
|
|
322
|
+
this.lastComponent = null;
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
/** connect/disconnect 시 일괄 등록/해제할 window 이벤트 목록 (모니터링 연동) */
|
|
326
|
+
get _monitoringEvents() {
|
|
327
|
+
return [
|
|
328
|
+
['fetchIFactsData', this.fetchIFactsDataHandler], // 장비 아이디 object를 캔버스 가운데로
|
|
329
|
+
['fmbShowMovement', this.fmbShowMovementHandler], // Movement Data 표시
|
|
330
|
+
['fmbMonitoringInit', this.fmbMonitoringInitHandler], // 보드 상태 정사이즈 복원
|
|
331
|
+
['clickComponent', this.clickComponentHandler], // BoardComponentInfo popup
|
|
332
|
+
['fmbStartAnimation', this.fmbStartAnimation], // AnimatedIcon 추가/제거
|
|
333
|
+
['fmbStopAnimation', this.fmbStopAnimation],
|
|
334
|
+
['fmbResetAnimation', this.fmbResetAnimation],
|
|
335
|
+
['fmbShowLegend', this.fmbShowLegendHandler], // 범례 표시
|
|
336
|
+
['fmbHideLegend', this.fmbHideLegendHandler],
|
|
337
|
+
['fmbShowPopup', this.fmbShowPopupHandler], // 팝업 표시
|
|
338
|
+
['fmbHidePopup', this.fmbHidePopupHandler],
|
|
339
|
+
['fmbShowFloatingContainer', this.fmbShowFloatingContainerHandler], // FloatingContainer
|
|
340
|
+
['fmbHideFloatingContainer', this.fmbHideFloatingContainerHandler]
|
|
341
|
+
];
|
|
342
|
+
}
|
|
229
343
|
connectedCallback() {
|
|
230
344
|
super.connectedCallback();
|
|
231
345
|
window.addEventListener('resize', this.resizeHandler);
|
|
346
|
+
// 3D 모드에서도 마우스 움직임 감지 (document 레벨, capture phase)
|
|
347
|
+
document.addEventListener('pointermove', this._pointerMoveHandler, true);
|
|
348
|
+
document.addEventListener('fullscreenchange', this._fullscreenChangeHandler);
|
|
349
|
+
document.addEventListener('webkitfullscreenchange', this._fullscreenChangeHandler);
|
|
232
350
|
this.renderRoot.addEventListener('close-scene', e => {
|
|
233
351
|
e.preventDefault();
|
|
234
352
|
this.onTapPrev();
|
|
235
353
|
}, false);
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
window.addEventListener('fmbShowMovement', this.fmbShowMovementHandler);
|
|
240
|
-
// 모니터링에서 보드 상태를 원래상태 (정사이즈)로 돌려놓는다.
|
|
241
|
-
window.addEventListener('fmbMonitoringInit', this.fmbMonitoringInitHandler);
|
|
242
|
-
// BoardComponentInfo popup을 보여준다.
|
|
243
|
-
window.addEventListener('clickComponent', this.clickComponentHandler);
|
|
244
|
-
// AnimatedIcon 을 추가하거나 제거한다.
|
|
245
|
-
window.addEventListener('fmbStartAnimation', this.fmbStartAnimation);
|
|
246
|
-
window.addEventListener('fmbStopAnimation', this.fmbStopAnimation);
|
|
247
|
-
window.addEventListener('fmbResetAnimation', this.fmbResetAnimation);
|
|
248
|
-
// 모니터링에서 범례를 보여준다.
|
|
249
|
-
window.addEventListener('fmbShowLegend', this.fmbShowLegendHandler);
|
|
250
|
-
window.addEventListener('fmbHideLegend', this.fmbHideLegendHandler);
|
|
251
|
-
// 모니터링에서 범례를 보여준다.
|
|
252
|
-
window.addEventListener('fmbShowPopup', this.fmbShowPopupHandler);
|
|
253
|
-
window.addEventListener('fmbHidePopup', this.fmbHidePopupHandler);
|
|
254
|
-
// 모니터링에서 FloatingContainer를 보여준다.
|
|
255
|
-
window.addEventListener('fmbShowFloatingContainer', this.fmbShowFloatingContainerHandler);
|
|
256
|
-
window.addEventListener('fmbHideFloatingContainer', this.fmbHideFloatingContainerHandler);
|
|
354
|
+
for (const [type, handler] of this._monitoringEvents) {
|
|
355
|
+
window.addEventListener(type, handler);
|
|
356
|
+
}
|
|
257
357
|
}
|
|
258
358
|
disconnectedCallback() {
|
|
359
|
+
var _a, _b, _c, _d, _e;
|
|
259
360
|
super.disconnectedCallback();
|
|
260
361
|
window.removeEventListener('resize', this.resizeHandler);
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
//
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
362
|
+
document.removeEventListener('pointermove', this._pointerMoveHandler, true);
|
|
363
|
+
document.removeEventListener('fullscreenchange', this._fullscreenChangeHandler);
|
|
364
|
+
document.removeEventListener('webkitfullscreenchange', this._fullscreenChangeHandler);
|
|
365
|
+
for (const [type, handler] of this._monitoringEvents) {
|
|
366
|
+
window.removeEventListener(type, handler);
|
|
367
|
+
}
|
|
368
|
+
this._clearClickHighlight();
|
|
369
|
+
(_b = (_a = this._scene) === null || _a === void 0 ? void 0 : _a.tracker) === null || _b === void 0 ? void 0 : _b.stop();
|
|
370
|
+
// 플레이백이 활성 상태면 명시적 stop (provider resume 포함)
|
|
371
|
+
if (this._playbackActive) {
|
|
372
|
+
(_c = this._playbackEngine) === null || _c === void 0 ? void 0 : _c.stop();
|
|
373
|
+
(_d = this._playbackEngine) === null || _d === void 0 ? void 0 : _d.detachScene();
|
|
374
|
+
(_e = this._dataSubscriptionProvider) === null || _e === void 0 ? void 0 : _e.resume();
|
|
375
|
+
this._playbackActive = false;
|
|
376
|
+
}
|
|
377
|
+
this._playbackWindow = undefined;
|
|
378
|
+
this._carrierTrackingStore.clear();
|
|
379
|
+
this._clearFallbackArrow();
|
|
380
|
+
this._stopFallbackArrowMonitor();
|
|
381
|
+
if (this._playbackEngine) {
|
|
382
|
+
this._playbackEngine.dispose();
|
|
383
|
+
this._playbackEngine = undefined;
|
|
384
|
+
}
|
|
283
385
|
this.closeScene();
|
|
284
386
|
}
|
|
285
387
|
updated(changes) {
|
|
388
|
+
// loadTracker가 외부에서 전달되면 즉시 overlay 연결 (fetch 중에도 표시)
|
|
389
|
+
if (changes.has('loadTracker') && this.loadTracker) {
|
|
390
|
+
this._ensureOverlay(this.loadTracker);
|
|
391
|
+
}
|
|
286
392
|
if (changes.has('board')) {
|
|
393
|
+
// tracker: 외부에서 안 왔으면 여기서 생성
|
|
394
|
+
if (!this.loadTracker) {
|
|
395
|
+
this.loadTracker = new LoadTracker();
|
|
396
|
+
this._ensureOverlay(this.loadTracker);
|
|
397
|
+
}
|
|
287
398
|
this.hidePopup();
|
|
288
399
|
this.closeScene();
|
|
289
400
|
if (this.board && this.board.id) {
|
|
@@ -303,33 +414,47 @@ let BoardViewer = class BoardViewer extends LitElement {
|
|
|
303
414
|
}
|
|
304
415
|
}
|
|
305
416
|
async initSceneAsync() {
|
|
306
|
-
if (!this.board || !this.board.id)
|
|
417
|
+
if (!this.board || !this.board.id || !this.provider)
|
|
307
418
|
return;
|
|
308
|
-
|
|
309
|
-
|
|
419
|
+
try {
|
|
420
|
+
this._scene = await this.provider.create(this.board.id);
|
|
421
|
+
this.setupScene({ id: this.board.id, scene: this._scene });
|
|
422
|
+
}
|
|
423
|
+
catch (e) {
|
|
424
|
+
console.error('Failed to load scene:', this.board.id, e);
|
|
425
|
+
}
|
|
310
426
|
}
|
|
311
427
|
initScene() {
|
|
312
|
-
if (!this.board || !this.board.id) {
|
|
428
|
+
if (!this.board || !this.board.id || !this.board.model) {
|
|
313
429
|
return;
|
|
314
430
|
}
|
|
315
431
|
this._scene = create({
|
|
316
|
-
model:
|
|
317
|
-
...this.board.model
|
|
318
|
-
},
|
|
432
|
+
model: JSON.parse(JSON.stringify(this.board.model)),
|
|
319
433
|
style: this.board.style,
|
|
320
434
|
mode: SCENE_MODE.VIEW,
|
|
321
435
|
handlers: ['mcs-event-handler', 'zoom-handler', 'shift-handler', 'waypoint-handler'],
|
|
322
436
|
layers: [{ type: 'scroll-layer' }, { type: 'movement-layer', id: 'movement-layer' }],
|
|
323
437
|
refProvider: this.provider,
|
|
324
438
|
dataStorage: this.board.id !== 'preview' ? new DataStorage(this.board.id) : undefined,
|
|
325
|
-
dataSubscriptionProvider:
|
|
439
|
+
dataSubscriptionProvider: this._dataSubscriptionProvider,
|
|
440
|
+
loading: this.loadTracker ? { tracker: this.loadTracker } : undefined
|
|
326
441
|
});
|
|
327
442
|
if (this.baseUrl) {
|
|
328
443
|
this._scene.baseUrl = this.baseUrl;
|
|
329
444
|
}
|
|
330
445
|
this.setupScene({ id: this.board.id, scene: this._scene });
|
|
331
446
|
}
|
|
447
|
+
_ensureOverlay(tracker) {
|
|
448
|
+
if (!this._loadingOverlay) {
|
|
449
|
+
this._loadingOverlay = new LoadingOverlay();
|
|
450
|
+
}
|
|
451
|
+
this._loadingOverlay.attach(this.renderRoot, tracker);
|
|
452
|
+
}
|
|
332
453
|
closeScene() {
|
|
454
|
+
var _a, _b;
|
|
455
|
+
// scene 교체/종료 시 highlight 상태도 함께 정리. tracking watcher 누수 방지.
|
|
456
|
+
this._clearClickHighlight();
|
|
457
|
+
(_b = (_a = this._scene) === null || _a === void 0 ? void 0 : _a.tracker) === null || _b === void 0 ? void 0 : _b.stop();
|
|
333
458
|
if (this._scene) {
|
|
334
459
|
this.unbindSceneEvents(this._scene);
|
|
335
460
|
this._scene.target = null;
|
|
@@ -348,6 +473,10 @@ let BoardViewer = class BoardViewer extends LitElement {
|
|
|
348
473
|
}
|
|
349
474
|
setupScene({ id, scene }) {
|
|
350
475
|
var _a;
|
|
476
|
+
// 플레이백 리셋
|
|
477
|
+
if (this._playbackActive) {
|
|
478
|
+
this._onPlaybackStop();
|
|
479
|
+
}
|
|
351
480
|
this._scene = scene;
|
|
352
481
|
const backgroundColor = (_a = this._scene) === null || _a === void 0 ? void 0 : _a.root.state.fillStyle;
|
|
353
482
|
if (typeof backgroundColor === 'string') {
|
|
@@ -371,7 +500,7 @@ let BoardViewer = class BoardViewer extends LitElement {
|
|
|
371
500
|
this.transientShowButtons();
|
|
372
501
|
}
|
|
373
502
|
async showScene(boardId, bindingData) {
|
|
374
|
-
if (!boardId)
|
|
503
|
+
if (!boardId || !this.provider)
|
|
375
504
|
return;
|
|
376
505
|
try {
|
|
377
506
|
var scene = await this.provider.get(boardId, true);
|
|
@@ -409,6 +538,206 @@ let BoardViewer = class BoardViewer extends LitElement {
|
|
|
409
538
|
this._scene.on('run-scenario', this.onRunScenario, this);
|
|
410
539
|
this._scene.on('legend-toggle', this.onLegendToggle, this);
|
|
411
540
|
this._scene.on('open-popup', this.onOpenPopup, this);
|
|
541
|
+
// VIEW 모드 SearchOverlay 디폴트 = 영구 추적 (things-scene 자동 처리).
|
|
542
|
+
// application 은 trackerOptions (color/fallback 등) 또는 onSearchSubmit/onSearchClose
|
|
543
|
+
// hook (디폴트 override) 만 제공.
|
|
544
|
+
//
|
|
545
|
+
// fallback: 원본 carrier 컴포넌트가 scene 에 없을 때 호출 (Tracker 1s polling).
|
|
546
|
+
// 플레이백 중이면 carrier-location history 에서 현재 시각의 머신/유닛을 lookup 해
|
|
547
|
+
// 해당 컴포넌트를 highlight 대상으로 반환. 플레이백 비활성 / 시간 정보 없음 /
|
|
548
|
+
// NA / 보드에 머신 없음 → null 반환해서 highlight 없이 추적만 유지.
|
|
549
|
+
this._scene.trackerOptions = {
|
|
550
|
+
color: BoardViewer_1.TRACKING_COLOR,
|
|
551
|
+
fallback: (_id, scene) => this._resolveCarrierFallback(scene)
|
|
552
|
+
};
|
|
553
|
+
// SearchOverlay submit/close hook — carrier-location store 의 충전/정리 트리거.
|
|
554
|
+
// 디폴트 동작 (tracker.start/stop) 은 그대로 위임 (return undefined).
|
|
555
|
+
this._scene.onSearchSubmit = (detail) => {
|
|
556
|
+
this._onCarrierTrackingSubmit(detail === null || detail === void 0 ? void 0 : detail.query);
|
|
557
|
+
};
|
|
558
|
+
this._scene.onSearchClose = () => {
|
|
559
|
+
this._carrierTrackingStore.clear();
|
|
560
|
+
};
|
|
561
|
+
}
|
|
562
|
+
/**
|
|
563
|
+
* Tracker fallback resolver — 플레이백 시각의 carrier 위치를 컴포넌트로 변환.
|
|
564
|
+
* NA / 정보 없음 / 머신 미존재 → null (Tracker 가 highlight 없이 추적만 유지).
|
|
565
|
+
*
|
|
566
|
+
* 매 1초 polling 마다 호출되며, 결과 target 이 직전과 동일하면 로그 skip.
|
|
567
|
+
*/
|
|
568
|
+
_resolveCarrierFallback(scene) {
|
|
569
|
+
var _a, _b, _c, _d;
|
|
570
|
+
if (!this._playbackActive)
|
|
571
|
+
return null;
|
|
572
|
+
const currentTime = (_a = this._playbackEngine) === null || _a === void 0 ? void 0 : _a.currentTime;
|
|
573
|
+
if (!currentTime)
|
|
574
|
+
return null;
|
|
575
|
+
const timeMs = Date.parse(currentTime.replace(' ', 'T'));
|
|
576
|
+
if (!Number.isFinite(timeMs))
|
|
577
|
+
return null;
|
|
578
|
+
const carrier = (_d = (_c = (_b = this._scene) === null || _b === void 0 ? void 0 : _b.tracker) === null || _c === void 0 ? void 0 : _c.trackingId) !== null && _d !== void 0 ? _d : '?';
|
|
579
|
+
const loc = this._carrierTrackingStore.lookupAt(timeMs);
|
|
580
|
+
this._lastFallbackResolvedAt = Date.now();
|
|
581
|
+
const logIfChanged = (target, msg) => {
|
|
582
|
+
if (target === this._lastFallbackTarget)
|
|
583
|
+
return;
|
|
584
|
+
// 이전 target 의 bouncing arrow 해제 + 새 target 에 부착 (가시성 강화).
|
|
585
|
+
// deco-border 는 things-scene Tracker 가 처리하므로 우리는 deco-arrow 만 관리.
|
|
586
|
+
this._setFallbackArrow(this._lastFallbackTarget, null);
|
|
587
|
+
this._setFallbackArrow(null, target);
|
|
588
|
+
this._lastFallbackTarget = target;
|
|
589
|
+
console.log(msg);
|
|
590
|
+
};
|
|
591
|
+
if (!loc) {
|
|
592
|
+
logIfChanged(null, `[CarrierTracking] fallback: history miss (carrier=${carrier}, t=${currentTime})`);
|
|
593
|
+
return null;
|
|
594
|
+
}
|
|
595
|
+
if (loc.machineName === 'NA') {
|
|
596
|
+
logIfChanged(null, `[CarrierTracking] fallback: NA (carrier=${carrier}, t=${currentTime})`);
|
|
597
|
+
return null;
|
|
598
|
+
}
|
|
599
|
+
// unitName 우선 (더 정밀), 없으면 machineName 으로 폴백.
|
|
600
|
+
// 같은 id 컴포넌트가 여러 개일 수 있어 (예: 머신 본체 + 부착된 게이지) findAllById
|
|
601
|
+
// 로 후보 모두 가져온 뒤, mcs-mouse-event-handler 의 클릭 dispatch 와 동일한
|
|
602
|
+
// 패턴으로 머신 본체로 수렴:
|
|
603
|
+
// - 'isLVComponent' 후보 선택
|
|
604
|
+
// - parentObject 가 있으면 그쪽으로 escalate (게이지·바 → 머신 본체)
|
|
605
|
+
// - 없으면 자기 자신 사용
|
|
606
|
+
const resolveLVById = (id) => {
|
|
607
|
+
var _a, _b;
|
|
608
|
+
const candidates = (((_a = scene === null || scene === void 0 ? void 0 : scene.findAllById) === null || _a === void 0 ? void 0 : _a.call(scene, id)) || []);
|
|
609
|
+
const c = candidates.find(c => 'isLVComponent' in c);
|
|
610
|
+
if (!c)
|
|
611
|
+
return null;
|
|
612
|
+
return (_b = c.parentObject) !== null && _b !== void 0 ? _b : c;
|
|
613
|
+
};
|
|
614
|
+
let target = null;
|
|
615
|
+
let hitVia = null;
|
|
616
|
+
if (loc.unitName) {
|
|
617
|
+
const t = resolveLVById(loc.unitName);
|
|
618
|
+
if (t) {
|
|
619
|
+
target = t;
|
|
620
|
+
hitVia = 'unit';
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
if (!target && loc.machineName) {
|
|
624
|
+
const t = resolveLVById(loc.machineName);
|
|
625
|
+
if (t) {
|
|
626
|
+
target = t;
|
|
627
|
+
hitVia = 'machine';
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
if (hitVia === 'unit') {
|
|
631
|
+
logIfChanged(target, `[CarrierTracking] fallback applied via unit=${loc.unitName} ` +
|
|
632
|
+
`(machine=${loc.machineName} not tried) (carrier=${carrier}, t=${currentTime})`);
|
|
633
|
+
}
|
|
634
|
+
else if (hitVia === 'machine') {
|
|
635
|
+
logIfChanged(target, `[CarrierTracking] fallback applied via machine=${loc.machineName} ` +
|
|
636
|
+
`(unit=${loc.unitName} miss) (carrier=${carrier}, t=${currentTime})`);
|
|
637
|
+
}
|
|
638
|
+
else {
|
|
639
|
+
logIfChanged(target, `[CarrierTracking] fallback: scene 미존재 — unit=${loc.unitName} (miss), ` +
|
|
640
|
+
`machine=${loc.machineName} (miss) (carrier=${carrier}, t=${currentTime})`);
|
|
641
|
+
}
|
|
642
|
+
return target;
|
|
643
|
+
}
|
|
644
|
+
/**
|
|
645
|
+
* deco-arrow 라이프사이클 — 이전 target 끄고 새 target 에 bouncing arrow 부착.
|
|
646
|
+
* 둘 다 null 가능 (해제만, 부착만).
|
|
647
|
+
*/
|
|
648
|
+
_setFallbackArrow(off, on) {
|
|
649
|
+
var _a, _b, _c, _d;
|
|
650
|
+
if (off) {
|
|
651
|
+
try {
|
|
652
|
+
(_b = (_a = off).trigger) === null || _b === void 0 ? void 0 : _b.call(_a, 'deco-arrow-off');
|
|
653
|
+
}
|
|
654
|
+
catch (_e) { }
|
|
655
|
+
}
|
|
656
|
+
if (on) {
|
|
657
|
+
try {
|
|
658
|
+
;
|
|
659
|
+
(_d = (_c = on).trigger) === null || _d === void 0 ? void 0 : _d.call(_c, 'deco-arrow', {
|
|
660
|
+
animation: true,
|
|
661
|
+
repeat: true,
|
|
662
|
+
size: 0.75,
|
|
663
|
+
// TRACKING_COLOR(#00aaff7f) 의 색조는 유지하되 알파(7f) 만 제거해 불투명.
|
|
664
|
+
color: BoardViewer_1.TRACKING_COLOR.slice(0, 7),
|
|
665
|
+
duration: 5000
|
|
666
|
+
});
|
|
667
|
+
}
|
|
668
|
+
catch (_f) { }
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
/**
|
|
672
|
+
* 1초 polling — 화살표 부착 대상을 결정.
|
|
673
|
+
* 1) 플레이백 종료 / 추적 ID 없음 → 화살표 해제
|
|
674
|
+
* 2) carrier 가 scene 에 직접 존재 → **carrier 자체에 화살표 부착**
|
|
675
|
+
* (things-scene Tracker 가 carrier 발견 시 fallback 콜백 호출을 멈춰
|
|
676
|
+
* resolver 경로로는 우리가 모름. monitor 에서 직접 책임)
|
|
677
|
+
* 3) carrier 없음 + resolver 가 3초 이상 호출 안 됨 → 화살표 해제
|
|
678
|
+
* (그 외엔 resolver 의 logIfChanged 가 fallback target 으로 부착 중)
|
|
679
|
+
*/
|
|
680
|
+
_startFallbackArrowMonitor() {
|
|
681
|
+
if (this._fallbackArrowMonitor != null)
|
|
682
|
+
return;
|
|
683
|
+
this._fallbackArrowMonitor = window.setInterval(() => {
|
|
684
|
+
var _a, _b, _c, _d, _e;
|
|
685
|
+
// 1) 플레이백 종료 / 추적 ID 해제
|
|
686
|
+
const trackingId = (_b = (_a = this._scene) === null || _a === void 0 ? void 0 : _a.tracker) === null || _b === void 0 ? void 0 : _b.trackingId;
|
|
687
|
+
if (!this._playbackActive || !trackingId) {
|
|
688
|
+
this._clearFallbackArrow();
|
|
689
|
+
return;
|
|
690
|
+
}
|
|
691
|
+
// 2) carrier 가 scene 에 직접 존재 — carrier(또는 parentObject)에 화살표 부착
|
|
692
|
+
const carrierComp = (((_d = (_c = this._scene) === null || _c === void 0 ? void 0 : _c.findAllById) === null || _d === void 0 ? void 0 : _d.call(_c, trackingId)) || [])
|
|
693
|
+
.find(c => 'isLVComponent' in c);
|
|
694
|
+
if (carrierComp) {
|
|
695
|
+
const arrowTarget = (_e = carrierComp.parentObject) !== null && _e !== void 0 ? _e : carrierComp;
|
|
696
|
+
if (arrowTarget !== this._lastFallbackTarget) {
|
|
697
|
+
this._setFallbackArrow(this._lastFallbackTarget, null);
|
|
698
|
+
this._setFallbackArrow(null, arrowTarget);
|
|
699
|
+
this._lastFallbackTarget = arrowTarget;
|
|
700
|
+
}
|
|
701
|
+
return;
|
|
702
|
+
}
|
|
703
|
+
// 3) resolver 가 일정 시간 호출되지 않음 — Tracker 가 추적 중단했을 가능성
|
|
704
|
+
if (this._lastFallbackTarget && Date.now() - this._lastFallbackResolvedAt > 3000) {
|
|
705
|
+
this._clearFallbackArrow();
|
|
706
|
+
}
|
|
707
|
+
}, 1000);
|
|
708
|
+
}
|
|
709
|
+
_stopFallbackArrowMonitor() {
|
|
710
|
+
if (this._fallbackArrowMonitor != null) {
|
|
711
|
+
clearInterval(this._fallbackArrowMonitor);
|
|
712
|
+
this._fallbackArrowMonitor = undefined;
|
|
713
|
+
}
|
|
714
|
+
}
|
|
715
|
+
/** 부착된 deco-arrow 강제 해제 + dedupe 상태 초기화. */
|
|
716
|
+
_clearFallbackArrow() {
|
|
717
|
+
if (this._lastFallbackTarget) {
|
|
718
|
+
this._setFallbackArrow(this._lastFallbackTarget, null);
|
|
719
|
+
this._lastFallbackTarget = null;
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
/**
|
|
723
|
+
* onSearchSubmit hook — 영구추적 carrierName 이 설정되는 순간.
|
|
724
|
+
* 플레이백 윈도우가 잡혀 있으면 즉시 store 충전. 윈도우가 없으면
|
|
725
|
+
* 플레이백 시작 시 (_onPlaybackStart) 에 충전.
|
|
726
|
+
*/
|
|
727
|
+
_onCarrierTrackingSubmit(carrierName) {
|
|
728
|
+
this._clearFallbackArrow(); // 새 carrier — 기존 화살표/dedupe 정리
|
|
729
|
+
if (!carrierName) {
|
|
730
|
+
this._carrierTrackingStore.clear();
|
|
731
|
+
return;
|
|
732
|
+
}
|
|
733
|
+
const win = this._playbackWindow;
|
|
734
|
+
if (this._playbackActive && win) {
|
|
735
|
+
this._carrierTrackingStore.load(carrierName, win.from, win.to);
|
|
736
|
+
}
|
|
737
|
+
else {
|
|
738
|
+
// 플레이백 비활성 — 윈도우 정해질 때까지 대기. 캐시는 비워둠.
|
|
739
|
+
this._carrierTrackingStore.clear();
|
|
740
|
+
}
|
|
412
741
|
}
|
|
413
742
|
unbindSceneEvents(scene) {
|
|
414
743
|
scene.off('run', this.onRunBoard, this);
|
|
@@ -424,7 +753,7 @@ let BoardViewer = class BoardViewer extends LitElement {
|
|
|
424
753
|
transientShowButtons(stop) {
|
|
425
754
|
var buttons = [];
|
|
426
755
|
!this.hideNavigation && buttons.push(this._next, this._prev);
|
|
427
|
-
!this.hideFullscreen && buttons.push(this.
|
|
756
|
+
!this.hideFullscreen && buttons.push(this._fabGroup);
|
|
428
757
|
if (buttons.length == 0) {
|
|
429
758
|
return;
|
|
430
759
|
}
|
|
@@ -447,7 +776,7 @@ let BoardViewer = class BoardViewer extends LitElement {
|
|
|
447
776
|
}
|
|
448
777
|
this._forward.length <= 0 ? this._next.setAttribute('hidden', '') : this._next.removeAttribute('hidden');
|
|
449
778
|
this._backward.length <= 0 ? this._prev.setAttribute('hidden', '') : this._prev.removeAttribute('hidden');
|
|
450
|
-
this.
|
|
779
|
+
this._fabGroup && this._fabGroup.removeAttribute('hidden');
|
|
451
780
|
this._fade_animations.forEach(animation => {
|
|
452
781
|
animation.cancel();
|
|
453
782
|
if (stop)
|
|
@@ -485,6 +814,264 @@ let BoardViewer = class BoardViewer extends LitElement {
|
|
|
485
814
|
onTapFullscreen() {
|
|
486
815
|
togglefullscreen(this, () => this.requestUpdate(), () => this.requestUpdate());
|
|
487
816
|
}
|
|
817
|
+
onTapToggle3D() {
|
|
818
|
+
var _a, _b, _c;
|
|
819
|
+
const modelLayer = (_b = (_a = this._scene) === null || _a === void 0 ? void 0 : _a.root) === null || _b === void 0 ? void 0 : _b.rootModel;
|
|
820
|
+
if (!(modelLayer === null || modelLayer === void 0 ? void 0 : modelLayer.toggleThreeD))
|
|
821
|
+
return;
|
|
822
|
+
const entering3D = !modelLayer.is3dMode;
|
|
823
|
+
modelLayer.toggleThreeD();
|
|
824
|
+
this.requestUpdate();
|
|
825
|
+
// fmsim: 3D 진입 시 자동 회전
|
|
826
|
+
if (entering3D && ((_c = modelLayer._threeCapability) === null || _c === void 0 ? void 0 : _c.isInitialized)) {
|
|
827
|
+
modelLayer._threeCapability.controlsManager.reset();
|
|
828
|
+
modelLayer._threeCapability.controlsManager.setAutoRotate(true);
|
|
829
|
+
}
|
|
830
|
+
}
|
|
831
|
+
onTapPlayback() {
|
|
832
|
+
var _a, _b;
|
|
833
|
+
if (this._playbackActive) {
|
|
834
|
+
this._onPlaybackStop();
|
|
835
|
+
}
|
|
836
|
+
else {
|
|
837
|
+
// 플레이백 시작 시 팝업 닫기
|
|
838
|
+
this.hidePopup();
|
|
839
|
+
// 1) 라이브 데이터 구독 실제 종료
|
|
840
|
+
(_a = this._dataSubscriptionProvider) === null || _a === void 0 ? void 0 : _a.pause();
|
|
841
|
+
this._unsubscribeSceneData();
|
|
842
|
+
// 2) 라이브 데이터 초기화 (깨끗한 상태에서 playback 시작)
|
|
843
|
+
this._resetSceneData();
|
|
844
|
+
this._playbackActive = true;
|
|
845
|
+
// playbackMode 를 "라이브 아님" 의미로 통일 — 준비 단계부터 set 해서
|
|
846
|
+
// FAB 클릭 직후 ~ Play 누르기 전 사이의 갭에서도 가드 (mouse handler,
|
|
847
|
+
// movement layer, restful subscription) 가 작동하도록.
|
|
848
|
+
if ((_b = this._scene) === null || _b === void 0 ? void 0 : _b.rootContainer)
|
|
849
|
+
this._scene.rootContainer.playbackMode = true;
|
|
850
|
+
if (!this._playbackEngine) {
|
|
851
|
+
this._playbackEngine = new PlaybackEngine();
|
|
852
|
+
this._playbackEngine.on('frame', ({ time }) => {
|
|
853
|
+
const controls = this.renderRoot.querySelector('ox-playback-controls');
|
|
854
|
+
if (controls)
|
|
855
|
+
controls.currentTime = time;
|
|
856
|
+
});
|
|
857
|
+
this._playbackEngine.on('state-change', (state) => {
|
|
858
|
+
if (state === 'stopped') {
|
|
859
|
+
const controls = this.renderRoot.querySelector('ox-playback-controls');
|
|
860
|
+
if (controls)
|
|
861
|
+
controls.playbackState = 'stopped';
|
|
862
|
+
}
|
|
863
|
+
this.requestUpdate();
|
|
864
|
+
});
|
|
865
|
+
this._playbackEngine.on('buffer-update', ({ bufferedRanges }) => {
|
|
866
|
+
const controls = this.renderRoot.querySelector('ox-playback-controls');
|
|
867
|
+
if (controls)
|
|
868
|
+
controls.bufferedRanges = bufferedRanges;
|
|
869
|
+
});
|
|
870
|
+
if (this._fetchPlaybackData) {
|
|
871
|
+
this._playbackEngine.setFetchFunction(this._fetchPlaybackData);
|
|
872
|
+
}
|
|
873
|
+
}
|
|
874
|
+
if (this._scene) {
|
|
875
|
+
this._playbackEngine.attachScene(this._scene);
|
|
876
|
+
}
|
|
877
|
+
this.dispatchEvent(new CustomEvent('playback-toggle', {
|
|
878
|
+
bubbles: true,
|
|
879
|
+
composed: true,
|
|
880
|
+
detail: { active: true }
|
|
881
|
+
}));
|
|
882
|
+
// playback 은 전체화면에서만 동작 — 이미 전체화면이면 그대로 유지
|
|
883
|
+
if (!document.fullscreenElement && !isIOS()) {
|
|
884
|
+
fullscreen(this, () => this.requestUpdate(), () => this.requestUpdate());
|
|
885
|
+
}
|
|
886
|
+
}
|
|
887
|
+
}
|
|
888
|
+
async _onPlaybackStart(e) {
|
|
889
|
+
var _a, _b, _c;
|
|
890
|
+
const { fromTime, toTime, speed } = e.detail;
|
|
891
|
+
if (!this._playbackEngine)
|
|
892
|
+
return;
|
|
893
|
+
// toTime is the user-selected window END (= controls' _appliedTo).
|
|
894
|
+
// The previous hardcoded `fromTime + 1h` ignored the controls'
|
|
895
|
+
// range selection, so 10m / 30m / Range modes silently played past
|
|
896
|
+
// the requested window. Falling back to `+1h` only if toTime was
|
|
897
|
+
// omitted (legacy callers).
|
|
898
|
+
const endTime = toTime instanceof Date ? toTime : new Date(fromTime.getTime() + 3600000);
|
|
899
|
+
// playbackMode 는 onTapPlayback (준비 단계) 에서 이미 set — idempotent
|
|
900
|
+
// 재설정으로 안전망 유지.
|
|
901
|
+
if ((_a = this._scene) === null || _a === void 0 ? void 0 : _a.rootContainer)
|
|
902
|
+
this._scene.rootContainer.playbackMode = true;
|
|
903
|
+
// 플레이백 윈도우 기록 + 영구추적 활성 시 carrier history 충전.
|
|
904
|
+
// 윈도우 변경 (재시작) 시에도 같은 경로 — store.load 가 key 비교로
|
|
905
|
+
// 동일 (carrierName, from, to) 이면 no-op.
|
|
906
|
+
this._playbackWindow = { from: fromTime, to: endTime };
|
|
907
|
+
const carrierName = (_c = (_b = this._scene) === null || _b === void 0 ? void 0 : _b.tracker) === null || _c === void 0 ? void 0 : _c.trackingId;
|
|
908
|
+
if (carrierName) {
|
|
909
|
+
this._carrierTrackingStore.load(carrierName, fromTime, endTime);
|
|
910
|
+
}
|
|
911
|
+
this._startFallbackArrowMonitor();
|
|
912
|
+
try {
|
|
913
|
+
await this._playbackEngine.startChunked(fromTime, endTime, speed);
|
|
914
|
+
}
|
|
915
|
+
catch (ex) {
|
|
916
|
+
console.error('[Playback] load failed:', ex);
|
|
917
|
+
}
|
|
918
|
+
}
|
|
919
|
+
_onPlaybackPause() {
|
|
920
|
+
var _a;
|
|
921
|
+
(_a = this._playbackEngine) === null || _a === void 0 ? void 0 : _a.pause();
|
|
922
|
+
}
|
|
923
|
+
_onPlaybackResume() {
|
|
924
|
+
var _a;
|
|
925
|
+
(_a = this._playbackEngine) === null || _a === void 0 ? void 0 : _a.resume();
|
|
926
|
+
}
|
|
927
|
+
async _onPlaybackStop() {
|
|
928
|
+
var _a, _b, _c;
|
|
929
|
+
const scene = this._scene; // 비동기 구간 scene 교체 감지용 캡처
|
|
930
|
+
// 1) 즉시: 엔진 정지 + 애니메이션 억제 ON (in-flight 애니메이션 즉시 종료)
|
|
931
|
+
(_a = this._playbackEngine) === null || _a === void 0 ? void 0 : _a.detachScene();
|
|
932
|
+
(_b = this._playbackEngine) === null || _b === void 0 ? void 0 : _b.stop();
|
|
933
|
+
this._playbackActive = false;
|
|
934
|
+
this._playbackWindow = undefined;
|
|
935
|
+
this._carrierTrackingStore.clear();
|
|
936
|
+
this._clearFallbackArrow();
|
|
937
|
+
this._stopFallbackArrowMonitor();
|
|
938
|
+
if (scene) {
|
|
939
|
+
scene.suppressAnimations = true;
|
|
940
|
+
if (scene.rootContainer)
|
|
941
|
+
scene.rootContainer.playbackMode = false;
|
|
942
|
+
}
|
|
943
|
+
// UI 신호 + fullscreen 해제
|
|
944
|
+
this.dispatchEvent(new CustomEvent('playback-toggle', {
|
|
945
|
+
bubbles: true,
|
|
946
|
+
composed: true,
|
|
947
|
+
detail: { active: false }
|
|
948
|
+
}));
|
|
949
|
+
if (document.fullscreenElement) {
|
|
950
|
+
exitfullscreen();
|
|
951
|
+
}
|
|
952
|
+
// 2) 1초 후: 보드 리셋 + live 구독 재개
|
|
953
|
+
await new Promise(resolve => setTimeout(resolve, 1000));
|
|
954
|
+
if (this._playbackActive || this._scene !== scene)
|
|
955
|
+
return;
|
|
956
|
+
if (!scene)
|
|
957
|
+
return;
|
|
958
|
+
this._resetSceneData();
|
|
959
|
+
this._resubscribeSceneData();
|
|
960
|
+
(_c = this._dataSubscriptionProvider) === null || _c === void 0 ? void 0 : _c.resume();
|
|
961
|
+
// 3) 2초 후 (추가 1초): 억제 해제 — 첫 live batch 가 instant 배치된 뒤 정상 애니메이션 복원
|
|
962
|
+
await new Promise(resolve => setTimeout(resolve, 1000));
|
|
963
|
+
if (this._scene === scene) {
|
|
964
|
+
scene.suppressAnimations = false;
|
|
965
|
+
}
|
|
966
|
+
}
|
|
967
|
+
/**
|
|
968
|
+
* 플레이백 시작 시: RESTful data-subscription 컴포넌트의 WebSocket 을 실제 disconnect.
|
|
969
|
+
* GraphQL 경로는 _dataSubscriptionProvider.pause() 에서 일괄 처리.
|
|
970
|
+
*/
|
|
971
|
+
_unsubscribeSceneData() {
|
|
972
|
+
var _a;
|
|
973
|
+
const root = (_a = this._scene) === null || _a === void 0 ? void 0 : _a.root;
|
|
974
|
+
if (!root || typeof root.traverse !== 'function')
|
|
975
|
+
return;
|
|
976
|
+
root.traverse((c) => {
|
|
977
|
+
if (!c || c === root)
|
|
978
|
+
return;
|
|
979
|
+
// RESTful data-subscription 컴포넌트 — 자체 WebSocket disconnect
|
|
980
|
+
if (c.subscription) {
|
|
981
|
+
try {
|
|
982
|
+
c.subscription.unsubscribe();
|
|
983
|
+
}
|
|
984
|
+
catch (_a) { }
|
|
985
|
+
c.subscription = null;
|
|
986
|
+
}
|
|
987
|
+
if (c.client) {
|
|
988
|
+
try {
|
|
989
|
+
c.client.unsubscribeAll();
|
|
990
|
+
c.client.close(true);
|
|
991
|
+
}
|
|
992
|
+
catch (_b) { }
|
|
993
|
+
c.client = null;
|
|
994
|
+
}
|
|
995
|
+
});
|
|
996
|
+
}
|
|
997
|
+
/**
|
|
998
|
+
* 플레이백 종료 시: RESTful data-subscription 컴포넌트의 WebSocket 을 재연결.
|
|
999
|
+
* GraphQL 경로는 _dataSubscriptionProvider.resume() 에서 일괄 처리.
|
|
1000
|
+
*/
|
|
1001
|
+
_resubscribeSceneData() {
|
|
1002
|
+
var _a;
|
|
1003
|
+
const root = (_a = this._scene) === null || _a === void 0 ? void 0 : _a.root;
|
|
1004
|
+
if (!root || typeof root.traverse !== 'function')
|
|
1005
|
+
return;
|
|
1006
|
+
root.traverse((c) => {
|
|
1007
|
+
if (!c || c === root)
|
|
1008
|
+
return;
|
|
1009
|
+
// RESTful data-subscription 컴포넌트 — WebSocket 재연결
|
|
1010
|
+
if (typeof c.requestData === 'function' && !c.client) {
|
|
1011
|
+
c.requestData();
|
|
1012
|
+
}
|
|
1013
|
+
});
|
|
1014
|
+
}
|
|
1015
|
+
_resetSceneData() {
|
|
1016
|
+
var _a, _b, _c, _d;
|
|
1017
|
+
const root = (_a = this._scene) === null || _a === void 0 ? void 0 : _a.root;
|
|
1018
|
+
if (!root || typeof root.traverse !== 'function')
|
|
1019
|
+
return;
|
|
1020
|
+
root.traverse((c) => {
|
|
1021
|
+
if (!c || c === root)
|
|
1022
|
+
return;
|
|
1023
|
+
// null 대신 {} 로 리셋 — typeof null === 'object' 함정 회피 + destructuring 안전 +
|
|
1024
|
+
// statusColor 등 data?.X 형태 getter 가 자연스럽게 default 로 폴백
|
|
1025
|
+
try {
|
|
1026
|
+
if ('data' in c)
|
|
1027
|
+
c.data = {};
|
|
1028
|
+
}
|
|
1029
|
+
catch (_a) { }
|
|
1030
|
+
// 차량 등의 위치 캐시 초기화 — 없으면 이전 waypoint 경로로 스냅백되는 잔상 발생
|
|
1031
|
+
if ('lastWaypoint' in c)
|
|
1032
|
+
c.lastWaypoint = undefined;
|
|
1033
|
+
});
|
|
1034
|
+
// vehicle 의 waypoint 이동 애니메이션 전체 중단
|
|
1035
|
+
// (Animation.stepAnimation 의 suppress 체크만으로는 WaypointHandler 의 animatorMap 이
|
|
1036
|
+
// 완전히 비워지지 않을 수 있어 명시적 reset)
|
|
1037
|
+
if ((_b = root.waypointHandler) === null || _b === void 0 ? void 0 : _b.reset)
|
|
1038
|
+
root.waypointHandler.reset();
|
|
1039
|
+
// 모든 decorator 제거 — bouncing-arrow/border-highlighting 같은 SVG 애니메이션 decorator 는
|
|
1040
|
+
// decorator-registry 가 붙잡고 있어 data=null 만으로는 제거되지 않음. 명시적 reset 필요.
|
|
1041
|
+
try {
|
|
1042
|
+
root.trigger('deco-reset');
|
|
1043
|
+
}
|
|
1044
|
+
catch (_e) { }
|
|
1045
|
+
if ((_c = root.carrierManager) === null || _c === void 0 ? void 0 : _c.dispose)
|
|
1046
|
+
root.carrierManager.dispose();
|
|
1047
|
+
if ((_d = root.transitionEffect) === null || _d === void 0 ? void 0 : _d.dispose)
|
|
1048
|
+
root.transitionEffect.dispose();
|
|
1049
|
+
}
|
|
1050
|
+
_onPlaybackSeek(e) {
|
|
1051
|
+
var _a;
|
|
1052
|
+
(_a = this._playbackEngine) === null || _a === void 0 ? void 0 : _a.seekTo(e.detail.toTime);
|
|
1053
|
+
}
|
|
1054
|
+
/**
|
|
1055
|
+
* 드래그 시작 신호 — 엔진의 재생 타이머 정지해서 스크러빙 동안
|
|
1056
|
+
* scene 이 엔진 시간으로 독립 갱신되지 않도록 함. _state 는 유지되므로
|
|
1057
|
+
* 드래그 종료 시 seekTo 가 원래 재생/일시정지 상태로 복원.
|
|
1058
|
+
*/
|
|
1059
|
+
_onPlaybackSeekStart() {
|
|
1060
|
+
var _a;
|
|
1061
|
+
(_a = this._playbackEngine) === null || _a === void 0 ? void 0 : _a.pauseForSeek();
|
|
1062
|
+
}
|
|
1063
|
+
/**
|
|
1064
|
+
* 드래그 중 디바운스된 seek preview. 해당 시간의 snapshot 만 scene 에 적용.
|
|
1065
|
+
* 보드 리셋 없음, 애니메이션 억제.
|
|
1066
|
+
*/
|
|
1067
|
+
_onPlaybackSeekPreview(e) {
|
|
1068
|
+
var _a;
|
|
1069
|
+
(_a = this._playbackEngine) === null || _a === void 0 ? void 0 : _a.seekPreview(e.detail.toTime);
|
|
1070
|
+
}
|
|
1071
|
+
_onPlaybackSpeed(e) {
|
|
1072
|
+
var _a;
|
|
1073
|
+
(_a = this._playbackEngine) === null || _a === void 0 ? void 0 : _a.setSpeed(e.detail.speed);
|
|
1074
|
+
}
|
|
488
1075
|
onRunBoard() {
|
|
489
1076
|
this.dispatchEvent(new CustomEvent('run-board', { bubbles: true, composed: true, detail: this.board.id }));
|
|
490
1077
|
}
|
|
@@ -577,6 +1164,10 @@ let BoardViewer = class BoardViewer extends LitElement {
|
|
|
577
1164
|
this.popup = popup;
|
|
578
1165
|
}
|
|
579
1166
|
if (this.popup) {
|
|
1167
|
+
// playbackMode 를 component 보다 먼저 set — BoardComponentInfo 의 updated()
|
|
1168
|
+
// 가 component 변경을 보는 시점에 playbackMode 가 반드시 최신값이어야
|
|
1169
|
+
// detailInfo() 백엔드 호출 가드가 일관 동작.
|
|
1170
|
+
this.popup.playbackMode = this._playbackActive;
|
|
580
1171
|
this.popup.component = component;
|
|
581
1172
|
}
|
|
582
1173
|
}
|
|
@@ -643,10 +1234,85 @@ BoardViewer.styles = [
|
|
|
643
1234
|
right: 5px;
|
|
644
1235
|
}
|
|
645
1236
|
|
|
646
|
-
|
|
1237
|
+
[fab-group] {
|
|
647
1238
|
position: absolute;
|
|
648
1239
|
bottom: 15px;
|
|
649
1240
|
right: 16px;
|
|
1241
|
+
display: flex;
|
|
1242
|
+
flex-direction: column-reverse;
|
|
1243
|
+
align-items: center;
|
|
1244
|
+
gap: 12px;
|
|
1245
|
+
z-index: 1000;
|
|
1246
|
+
}
|
|
1247
|
+
|
|
1248
|
+
[fab-group] md-fab {
|
|
1249
|
+
transition: transform 0.2s ease, opacity 0.2s ease;
|
|
1250
|
+
}
|
|
1251
|
+
|
|
1252
|
+
[fab-group] md-fab.main-fab md-icon {
|
|
1253
|
+
transition: transform 0.3s ease;
|
|
1254
|
+
}
|
|
1255
|
+
|
|
1256
|
+
[fab-group] md-fab.main-fab[expanded] md-icon {
|
|
1257
|
+
transform: rotate(45deg);
|
|
1258
|
+
}
|
|
1259
|
+
|
|
1260
|
+
[fab-group] md-fab.sub-fab {
|
|
1261
|
+
--md-fab-container-width: 48px;
|
|
1262
|
+
--md-fab-container-height: 48px;
|
|
1263
|
+
/* fab 표면 색 = image 의 자체 원형 배경 (#F9EBEA) 과 일치.
|
|
1264
|
+
* 이렇게 하면 md-fab 의 내부 padding 영역도 같은 색이라
|
|
1265
|
+
* 시각적으로 사라짐 — 세 버튼 모두 visible 48px 컨테이너 통일. */
|
|
1266
|
+
--md-fab-container-color: #F9EBEA;
|
|
1267
|
+
--md-fab-icon-color: #F87171;
|
|
1268
|
+
--md-icon-size: 36px;
|
|
1269
|
+
transform: scale(0);
|
|
1270
|
+
opacity: 0;
|
|
1271
|
+
pointer-events: none;
|
|
1272
|
+
}
|
|
1273
|
+
|
|
1274
|
+
/* visible 영역은 컨테이너(48px) 그대로 — fullscreen 버튼과 동일.
|
|
1275
|
+
* img 자체는 48px 박스이고 transform scale 로 내부 그래픽만 확대.
|
|
1276
|
+
* wrap 의 overflow:hidden + border-radius:50% 가 fab 원형 밖으로
|
|
1277
|
+
* 넘치는 영역을 잘라내어 외형 크기는 변하지 않음. */
|
|
1278
|
+
[fab-group] md-fab.sub-fab .fab-icon-wrap {
|
|
1279
|
+
width: 48px;
|
|
1280
|
+
height: 48px;
|
|
1281
|
+
display: block;
|
|
1282
|
+
overflow: hidden;
|
|
1283
|
+
border-radius: 50%;
|
|
1284
|
+
}
|
|
1285
|
+
|
|
1286
|
+
[fab-group] md-fab.sub-fab .fab-icon-wrap img.fab-icon {
|
|
1287
|
+
width: 48px;
|
|
1288
|
+
height: 48px;
|
|
1289
|
+
display: block;
|
|
1290
|
+
transform: scale(1.15);
|
|
1291
|
+
transform-origin: center;
|
|
1292
|
+
}
|
|
1293
|
+
|
|
1294
|
+
/* legacy inline svg 경로 — 동일하게 box 48 유지 + scale 로 그래픽만 확대. */
|
|
1295
|
+
[fab-group] md-fab.sub-fab svg[slot="icon"] {
|
|
1296
|
+
width: 48px;
|
|
1297
|
+
height: 48px;
|
|
1298
|
+
display: block;
|
|
1299
|
+
transform: scale(1.15);
|
|
1300
|
+
transform-origin: center;
|
|
1301
|
+
}
|
|
1302
|
+
|
|
1303
|
+
[fab-group][expanded] md-fab.sub-fab {
|
|
1304
|
+
transform: scale(1);
|
|
1305
|
+
opacity: 1;
|
|
1306
|
+
pointer-events: auto;
|
|
1307
|
+
}
|
|
1308
|
+
|
|
1309
|
+
[fab-group] md-fab.sub-fab[disabled] {
|
|
1310
|
+
opacity: 0.4;
|
|
1311
|
+
pointer-events: none;
|
|
1312
|
+
}
|
|
1313
|
+
|
|
1314
|
+
ox-playback-controls {
|
|
1315
|
+
transition: opacity 0.3s ease;
|
|
650
1316
|
}
|
|
651
1317
|
|
|
652
1318
|
[hidden] {
|
|
@@ -678,6 +1344,9 @@ BoardViewer.styles = [
|
|
|
678
1344
|
}
|
|
679
1345
|
`
|
|
680
1346
|
];
|
|
1347
|
+
/** SearchOverlay 의 query-submit 시 사용할 추적 색깔. things-scene 의 Scene.tracker
|
|
1348
|
+
* 가 폴링/데코/3D outline 색 동기화 일괄 관리. */
|
|
1349
|
+
BoardViewer.TRACKING_COLOR = '#00aaff7f';
|
|
681
1350
|
__decorate([
|
|
682
1351
|
property({ type: String })
|
|
683
1352
|
], BoardViewer.prototype, "baseUrl", void 0);
|
|
@@ -693,6 +1362,9 @@ __decorate([
|
|
|
693
1362
|
__decorate([
|
|
694
1363
|
property({ type: Object })
|
|
695
1364
|
], BoardViewer.prototype, "values", void 0);
|
|
1365
|
+
__decorate([
|
|
1366
|
+
property({ type: Object })
|
|
1367
|
+
], BoardViewer.prototype, "loadTracker", void 0);
|
|
696
1368
|
__decorate([
|
|
697
1369
|
property({ type: Boolean, reflect: true, attribute: 'hide-fullscreen' })
|
|
698
1370
|
], BoardViewer.prototype, "hideFullscreen", void 0);
|
|
@@ -701,19 +1373,10 @@ __decorate([
|
|
|
701
1373
|
], BoardViewer.prototype, "hideNavigation", void 0);
|
|
702
1374
|
__decorate([
|
|
703
1375
|
state()
|
|
704
|
-
], BoardViewer.prototype, "
|
|
705
|
-
__decorate([
|
|
706
|
-
state()
|
|
707
|
-
], BoardViewer.prototype, "_forward", void 0);
|
|
1376
|
+
], BoardViewer.prototype, "_fabExpanded", void 0);
|
|
708
1377
|
__decorate([
|
|
709
1378
|
state()
|
|
710
|
-
], BoardViewer.prototype, "
|
|
711
|
-
__decorate([
|
|
712
|
-
state()
|
|
713
|
-
], BoardViewer.prototype, "_oldtarget", void 0);
|
|
714
|
-
__decorate([
|
|
715
|
-
state()
|
|
716
|
-
], BoardViewer.prototype, "_fade_animations", void 0);
|
|
1379
|
+
], BoardViewer.prototype, "_playbackActive", void 0);
|
|
717
1380
|
__decorate([
|
|
718
1381
|
query('#target')
|
|
719
1382
|
], BoardViewer.prototype, "_target", void 0);
|
|
@@ -724,9 +1387,12 @@ __decorate([
|
|
|
724
1387
|
query('#next')
|
|
725
1388
|
], BoardViewer.prototype, "_next", void 0);
|
|
726
1389
|
__decorate([
|
|
727
|
-
query('
|
|
728
|
-
], BoardViewer.prototype, "
|
|
729
|
-
|
|
1390
|
+
query('[fab-group]')
|
|
1391
|
+
], BoardViewer.prototype, "_fabGroup", void 0);
|
|
1392
|
+
__decorate([
|
|
1393
|
+
property({ attribute: false })
|
|
1394
|
+
], BoardViewer.prototype, "_fetchPlaybackData", void 0);
|
|
1395
|
+
BoardViewer = BoardViewer_1 = __decorate([
|
|
730
1396
|
customElement('ox-board-viewer')
|
|
731
1397
|
], BoardViewer);
|
|
732
1398
|
export { BoardViewer };
|