architwin 1.12.2 → 1.12.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/minimap.js +23 -3
- package/package.json +1 -1
- package/static/map.css +8 -6
package/lib/minimap.js
CHANGED
|
@@ -8,7 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
import * as superviz from './superviz';
|
|
11
|
-
import { _mpConfig, getCurrentCameraPose, getCurrentSweep, getMapConfig, dispatchSpaceEvent, isCdnMapDataAvailable, getCurrentFloor } from "./architwin";
|
|
11
|
+
import { _mpConfig, getCurrentCameraPose, getCurrentSweep, getMapConfig, dispatchSpaceEvent, isCdnMapDataAvailable, getCurrentFloor, minimap } from "./architwin";
|
|
12
12
|
import { SPACE_EVENTS, DEGREE, MAP_OPTIONS } from "./types";
|
|
13
13
|
import { isValidCSSColor } from "./color";
|
|
14
14
|
import { _participants } from "./participant";
|
|
@@ -1060,7 +1060,6 @@ function setupCustomMinimapPane() {
|
|
|
1060
1060
|
log.info('setupCustomMinimap');
|
|
1061
1061
|
log.info("_minimapPosition: ", _minimapPosition);
|
|
1062
1062
|
return `
|
|
1063
|
-
<div id="at-custom-minimap-pane" class="at_overlay_left_minimap ${_minimapPosition}" style="display:none">
|
|
1064
1063
|
<div>
|
|
1065
1064
|
${setMapPositionDropdown()}
|
|
1066
1065
|
</div>
|
|
@@ -1078,9 +1077,27 @@ function setupCustomMinimapPane() {
|
|
|
1078
1077
|
</div>
|
|
1079
1078
|
|
|
1080
1079
|
${setupCustomMinimapSettingUI()}
|
|
1081
|
-
</div>
|
|
1082
1080
|
|
|
1083
1081
|
`;
|
|
1082
|
+
// return `
|
|
1083
|
+
// <div id="at-custom-minimap-pane" class="at_overlay_left_minimap ${_minimapPosition}" style="display:none">
|
|
1084
|
+
// <div>
|
|
1085
|
+
// ${setMapPositionDropdown()}
|
|
1086
|
+
// </div>
|
|
1087
|
+
// <div id="at-custom-map-close-btn" class="at_close_minimap">
|
|
1088
|
+
// <span class="mdi mdi-window-close" id="at-close-minimap-btn" data-cy="at-close-minimap-btn"></span>
|
|
1089
|
+
// </div>
|
|
1090
|
+
// <div id="at-custom-map-settings-btn" class="at_setting_icon">
|
|
1091
|
+
// <span class="mdi mdi-cog" id="at-map-setting-btn" data-cy="at-map-setting-btn"></span>
|
|
1092
|
+
// </div>
|
|
1093
|
+
// <div id="at-spinner" class="at_spinner"></div>
|
|
1094
|
+
// <canvas id="at-custom-map-canvas" class="at_custom_map_canvas" width="379" height="379"></canvas>
|
|
1095
|
+
// <div id="at-custom-map" class="at_custom_map">
|
|
1096
|
+
// <img id="at-custom-map-img" src="${getAssetUrl('images/377.png')}" alt="Minimap">
|
|
1097
|
+
// </div>
|
|
1098
|
+
// ${setupCustomMinimapSettingUI()}
|
|
1099
|
+
// </div>
|
|
1100
|
+
// `
|
|
1084
1101
|
});
|
|
1085
1102
|
}
|
|
1086
1103
|
function setMapPositionDropdown() {
|
|
@@ -1176,6 +1193,9 @@ function setCustomMap(mpSdk) {
|
|
|
1176
1193
|
const minimapElement = yield setupCustomMinimapPane();
|
|
1177
1194
|
const showcase = document.getElementById('showcase-container');
|
|
1178
1195
|
const mapContainer = document.createElement('div');
|
|
1196
|
+
mapContainer.setAttribute('id', 'at-custom-minimap-pane');
|
|
1197
|
+
mapContainer.classList.add('at_overlay_left_minimap', `${minimap.getMinimapPosition()}`);
|
|
1198
|
+
mapContainer.style.display = 'none';
|
|
1179
1199
|
mapContainer.innerHTML = minimapElement;
|
|
1180
1200
|
// Inject to DOM
|
|
1181
1201
|
showcase.append(mapContainer);
|
package/package.json
CHANGED
package/static/map.css
CHANGED
|
@@ -163,15 +163,17 @@ display: inline-block;
|
|
|
163
163
|
}
|
|
164
164
|
|
|
165
165
|
.at_overlay_left_minimap.topLeft {
|
|
166
|
-
bottom: calc(var(--position-
|
|
167
|
-
|
|
168
|
-
|
|
166
|
+
/* bottom: calc(var(--position-bottom) + 48vh);
|
|
167
|
+
left: 0; */
|
|
168
|
+
top: calc(var(--position-top) + 0.5rem);
|
|
169
|
+
left: calc(var(--position-left) + 0.5rem);
|
|
169
170
|
}
|
|
170
171
|
|
|
171
172
|
.at_overlay_left_minimap.topRight {
|
|
172
|
-
/*
|
|
173
|
-
|
|
174
|
-
|
|
173
|
+
/* bottom: calc(var(--position-bottom) + 48vh);
|
|
174
|
+
right: 0; */
|
|
175
|
+
top: calc(var(--position-top) + 0.5rem);
|
|
176
|
+
right: calc(var(--position-right) + 0.5rem);
|
|
175
177
|
}
|
|
176
178
|
|
|
177
179
|
.at_overlay_left_minimap.bottomLeft {
|