architwin 1.13.7 → 1.13.8

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.
@@ -30,10 +30,14 @@ export function renderViewingRemoteSpace() {
30
30
  */
31
31
  export function renderRemoteSpaceViewing(user) {
32
32
  var _a;
33
+ const screenSharePane = document.getElementById('at-screen-share-pane');
33
34
  const container = document.getElementById('at-sharing-user-container');
34
35
  const maincontainer = document.getElementById('at-viewing-remote-space-pane');
35
36
  if (!container && !maincontainer)
36
37
  return;
38
+ if (screenSharePane) {
39
+ screenSharePane.style.display = 'none';
40
+ }
37
41
  maincontainer.style.display = 'block';
38
42
  maincontainer.style.zIndex = '2';
39
43
  container.innerHTML = '';
@@ -51,23 +55,23 @@ export function renderRemoteSpaceViewing(user) {
51
55
  const statusText = document.createElement('div');
52
56
  statusText.className = 'at_text_sm at_text_white';
53
57
  statusText.innerHTML = `
54
- ${i18n.t('Is sharing their space')} <${(_currentSpace === null || _currentSpace === void 0 ? void 0 : _currentSpace.name) || i18n.t('SPACE_NAME')}> ${i18n.t('to you')}
58
+ ${i18n.t('Is sharing their space')} ${(_currentSpace === null || _currentSpace === void 0 ? void 0 : _currentSpace.name) || i18n.t('SPACE_NAME')} ${i18n.t('to you')}
55
59
  `;
56
60
  infoWrapper.appendChild(userNameEl);
57
61
  infoWrapper.appendChild(statusText);
58
62
  // Right: Green dot
59
- const dot = document.createElement('div');
60
- dot.className = 'at_circle at_w-2 at_h-2 at_bg_green_500';
61
- const circle = document.createElement('span');
62
- circle.style.width = '15px';
63
- circle.style.height = '15px';
64
- circle.style.borderRadius = '50%';
65
- circle.style.backgroundColor = user.onlineStatus == 'online' || user.onlineStatus == 'in_session' ? '#22c55e' : '#ffffff';
66
- circle.style.border = '1px solid #ccc';
67
- circle.style.marginRight = '10px';
63
+ // const dot = document.createElement('div')
64
+ // dot.className = 'at_circle at_w-2 at_h-2 at_bg_green_500'
65
+ // const circle = document.createElement('span')
66
+ // circle.style.width = '15px'
67
+ // circle.style.height = '15px'
68
+ // circle.style.borderRadius = '50%'
69
+ // circle.style.backgroundColor = user.onlineStatus == 'online' || user.onlineStatus == 'in_session' ? '#22c55e' : '#ffffff'
70
+ // circle.style.border = '1px solid #ccc'
71
+ // circle.style.marginRight = '10px'
68
72
  // Combine into card
69
73
  cardContent.appendChild(infoWrapper);
70
- cardContent.appendChild(circle);
74
+ // cardContent.appendChild(circle)
71
75
  card.appendChild(cardContent);
72
76
  container.appendChild(card);
73
77
  // === Instructional Text ===
@@ -2930,10 +2930,12 @@ function handleClearSearchTagName() {
2930
2930
  const tags = getMpTags();
2931
2931
  const filteredTags = filterTagList(tags);
2932
2932
  if (selectedCategoryFilterId || selectedSubCategoryFilterId) {
2933
- renderTags(filteredTags);
2933
+ const sortedTags = sortTags(filteredTags, { by: 'label', order: 'asc' });
2934
+ renderTags(sortedTags);
2934
2935
  }
2935
2936
  else if (tags.length > 0) {
2936
- renderTags(tags, true);
2937
+ const sortedTags = sortTags(tags, { by: 'label', order: 'asc' });
2938
+ renderTags(sortedTags, true);
2937
2939
  }
2938
2940
  });
2939
2941
  }
@@ -25,7 +25,7 @@ export class PathLine {
25
25
  radialSegments: 20,
26
26
  fillColor: 'none',
27
27
  textColor: 'rgb(255,255,255)',
28
- text: '➡︎',
28
+ text: '',
29
29
  font: '48px sans-serif',
30
30
  radius: 0.05,
31
31
  scrollSpeed: 1.35,
@@ -28,7 +28,7 @@ export class TubeLine {
28
28
  radialSegments: 20,
29
29
  fillColor: 'rgb(0,255,0)',
30
30
  textColor: 'rgb(255,255,255)',
31
- text: '➡︎',
31
+ text: '',
32
32
  font: '48px sans-serif',
33
33
  radius: 0.05,
34
34
  scrollSpeed: 1.35,
package/lib/types.d.ts CHANGED
@@ -437,6 +437,7 @@ export interface ComponentOptions {
437
437
  fillColor?: string | undefined;
438
438
  radius?: number | undefined;
439
439
  scrollSpeed?: number | undefined;
440
+ radialSegments?: number | undefined;
440
441
  node?: MpSdk.Scene.INode | undefined;
441
442
  tubes?: MpSdk.Scene.IObject | undefined;
442
443
  active?: boolean | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "architwin",
3
- "version": "1.13.7",
3
+ "version": "1.13.8",
4
4
  "description": "ArchiTwin Library for Matterport",
5
5
  "main": "./lib/architwin.js",
6
6
  "types": "./lib/architwin.d.ts",
@@ -77,60 +77,31 @@
77
77
  --button-font-weight: normal;
78
78
 
79
79
  --bg-dark-gray: rgb(48, 48, 48);
80
- /* pipe color category */
81
- --bg-dark-red: rgb(130, 0, 0);
82
- --bg-red: rgb(255, 0, 0);
83
- --bg-amber: rgb(250, 170, 0);
84
- --bg-chartreuse: rgb(251, 255, 0);
85
- --bg-light-chartreuse: rgb(237, 255, 0, 1);
86
- --bg-light-green:rgb(137, 255, 0);
87
- --bg-dark-green: rgb(0, 138, 0);
88
- --bg-sky-blue: rgb(169, 229, 255, 1);
89
- --bg-purple: rgb(109, 0, 255);
90
- --bg-dark-purple: rgb(56, 0, 152);
91
-
80
+
81
+ /* pipe color category */
82
+ --bg-blue: rgb(77, 129, 163);
83
+ --bg-green: rgb(50, 107, 75);
84
+ --bg-gray: rgb(166, 166, 166);
85
+ --bg-silver: rgb(192, 192, 192);
86
+ --bg-red: rgb(183, 31, 51);
87
+ --bg-yellow: rgb(255, 186, 0);
88
+ --bg-black: rgb(38, 38, 38);
89
+ --bg-brown: rgb(176, 103, 72);
90
+ --bg-pink: rgb(208, 123, 157);
91
+ --bg-orange: rgb(168, 155, 148);
92
92
  }
93
93
 
94
94
  /*pipe color category*/
95
- .at_pipe_category-bg-dark-red {
96
- background-color: var(--bg-dark-red);
97
- }
98
-
99
- .at_pipe_category-bg-red {
100
- background-color: var(--bg-red);
101
- }
102
-
103
- .at_pipe_category-bg-amber {
104
- background-color: var(--bg-amber);
105
- }
106
-
107
- .at_pipe_category-bg-light-chartreuse {
108
- background-color: var(--bg-light-chartreuse);
109
- }
110
-
111
- .at_pipe_category-bg-chartreuse {
112
- background-color: var(--bg-chartreuse);
113
- }
114
-
115
- .at_pipe_category-bg-light-green {
116
- background-color: var(--bg-light-green);
117
- }
118
-
119
- .at_pipe_category-bg-dark-green {
120
- background-color: var(--bg-dark-green);
121
- }
122
-
123
- .at_pipe_category-bg-sky-blue {
124
- background-color: var(--bg-sky-blue);
125
- }
126
-
127
- .at_pipe_category-bg-purple {
128
- background-color: var(--bg-purple);
129
- }
130
-
131
- .at_pipe_category-bg-dark-purple {
132
- background-color: var(--bg-dark-purple);
133
- }
95
+ .at_pipe_category-bg-blue { background-color: var(--bg-blue); }
96
+ .at_pipe_category-bg-green { background-color: var(--bg-green); }
97
+ .at_pipe_category-bg-gray { background-color: var(--bg-gray); }
98
+ .at_pipe_category-bg-silver { background-color: var(--bg-silver); }
99
+ .at_pipe_category-bg-red { background-color: var(--bg-red); }
100
+ .at_pipe_category-bg-yellow { background-color: var(--bg-yellow); }
101
+ .at_pipe_category-bg-black { background-color: var(--bg-black); }
102
+ .at_pipe_category-bg-brown { background-color: var(--bg-brown); }
103
+ .at_pipe_category-bg-pink { background-color: var(--bg-pink); }
104
+ .at_pipe_category-bg-orange { background-color: var(--bg-orange); }
134
105
 
135
106
  /* end pipe color category */
136
107