architwin 1.4.4 → 1.4.5
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.
|
@@ -300,8 +300,18 @@ function selectOption(option, elementId, skipToggle = false) {
|
|
|
300
300
|
renderSubcategoryDropdownOptions(isFilterDropdown ? 'at-subcategory-filter-options' : 'at-subcategory-options', targetCategory.subcategories);
|
|
301
301
|
}
|
|
302
302
|
else {
|
|
303
|
-
|
|
304
|
-
|
|
303
|
+
if (categoryType == 'category') {
|
|
304
|
+
const elementId = isFilterDropdown ? 'at-subcategory-filter-options' : 'at-subcategory-options';
|
|
305
|
+
const subcatToggleId = isFilterDropdown ? 'at-subcategory-filter-dropdown-toggle' : 'at-subcategory-dropdown-toggle';
|
|
306
|
+
const subcategoryToggle = document.getElementById(elementId);
|
|
307
|
+
const subcatDropdownToggle = document.getElementById(subcatToggleId);
|
|
308
|
+
subcategoryToggle.innerHTML = `
|
|
309
|
+
<span class="mdi mdi-circle-slice-1"></span> ${i18n.t('NoSelection')}
|
|
310
|
+
`;
|
|
311
|
+
subcatDropdownToggle.innerHTML = `
|
|
312
|
+
<span class="mdi mdi-circle-slice-1"></span> ${i18n.t('NoSelection')}
|
|
313
|
+
`;
|
|
314
|
+
}
|
|
305
315
|
}
|
|
306
316
|
}
|
|
307
317
|
else {
|
package/lib/minimap.js
CHANGED
|
@@ -797,8 +797,8 @@ function setStandaloneMap(modelId, appKey, mapId) {
|
|
|
797
797
|
let thisSweep = document.createElement('button');
|
|
798
798
|
let px = ((swp.position.x - _miniMapData.image_origin_x) * _miniMapData.resolution_ppm) / _miniMapData.width;
|
|
799
799
|
thisSweep.style.left = px * 100 + '%';
|
|
800
|
-
let py = ((swp.position.y
|
|
801
|
-
thisSweep.style.bottom =
|
|
800
|
+
let py = ((swp.position.y - _miniMapData.image_origin_y) * _miniMapData.resolution_ppm) / _miniMapData.height;
|
|
801
|
+
thisSweep.style.bottom = py * 100 + '%';
|
|
802
802
|
thisSweep.style.position = 'absolute';
|
|
803
803
|
thisSweep.style.zIndex = '30';
|
|
804
804
|
thisSweep.setAttribute('id', 'p' + swp.id);
|