architwin 1.15.0 → 1.15.1

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.
@@ -723,14 +723,15 @@ export function highlightSelectedPartitionChild(partitionId, name) {
723
723
  if (header) {
724
724
  header.classList.toggle('selected', isSelected);
725
725
  const arrow = header.querySelector('.at_partition_child_expand_icon');
726
- if (arrow && arrow.textContent) {
726
+ if (arrow === null || arrow === void 0 ? void 0 : arrow.textContent) {
727
727
  if (isSelected) {
728
- arrow.textContent = arrow.textContent.replace('▶', '▼');
729
- toggleExpandParitionWallChild(partitionId, name, false);
728
+ arrow.textContent = arrow.textContent.includes('▶')
729
+ ? arrow.textContent.replace('▶', '▼')
730
+ : arrow.textContent.replace('▼', '▶');
731
+ toggleExpandParitionWallChild(partitionId, name);
730
732
  }
731
733
  else {
732
734
  arrow.textContent = arrow.textContent.replace('▼', '▶');
733
- toggleExpandParitionWallChild(partitionId, name, true);
734
735
  }
735
736
  }
736
737
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "architwin",
3
- "version": "1.15.0",
3
+ "version": "1.15.1",
4
4
  "description": "ArchiTwin Library for Matterport",
5
5
  "main": "./lib/architwin.js",
6
6
  "types": "./lib/architwin.d.ts",