architwin 1.13.6 → 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.
- package/lib/architwin.d.ts +8 -1
- package/lib/architwin.js +1 -1
- package/lib/atwinui/components/toolbar/i18n.js +4 -2
- package/lib/atwinui/components/toolbar/menuBar.js +2 -2
- package/lib/atwinui/components/toolbar/pipeFormPane.js +8 -3
- package/lib/atwinui/components/toolbar/pipeListPane.js +5 -2
- package/lib/atwinui/components/toolbar/screenSharePane.d.ts +1 -0
- package/lib/atwinui/components/toolbar/screenSharePane.js +30 -9
- package/lib/atwinui/components/toolbar/tagFormPane.js +6 -3
- package/lib/atwinui/components/toolbar/tagIotFormPane.d.ts +0 -1
- package/lib/atwinui/components/toolbar/tagIotFormPane.js +75 -121
- package/lib/atwinui/components/toolbar/viewingRemoteSpace.js +15 -11
- package/lib/atwinui/events.js +10 -3
- package/lib/loaders/pathLoader.js +1 -1
- package/lib/loaders/polydrawerLoader.js +1 -1
- package/lib/types.d.ts +1 -0
- package/package.json +1 -1
- package/static/atwinui.css +22 -51
|
@@ -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')}
|
|
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 ===
|
package/lib/atwinui/events.js
CHANGED
|
@@ -8,7 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
import { actionBar, renderObjectCards, renderLibraryCards, renderTags, renderTagRow, getTagFormData, addClickEventToTagRow, setActiveCard, setActiveMenu, removeObjectCard, clearActiveMenu, setTagCategoriesOption, toggleDropdown, tagFormMode, selectedTag, renderRecepientOptions, renderTagMessages, createTagMessage, setTagLink, setTagMessagingDetails, renderCategoryDropdownOptions, clearTagFormDropdown, clearActiveActionBtn, clearActiveCard, toggleActionBarButtons, selectedCategoryFilterId, selectedSubCategoryFilterId, filterTagList, toggleModal, setModalAction, } from "./components/toolbar";
|
|
11
|
-
import { getTargetPosition, addMediaScreen, _3DXObjects, selectedObject, setTransformControls, copyObject, revertTransform, clearSelectedObject, removeTransformControls, getLibrary, getMpTags, renderTag, captureSpaceScreenshot, moveTag, subscribeSpaceEvent, setModelVisibility, disposeModel, disposeTag, _tags, _tagCategories, dispatchSpaceEvent, editTagLabel, editTagDescription, setTagMessageRecepients, setTagMessages, setSelectedTagUuid, renderMeetingSidebar, setTagIcon, setObjectTransformation, getSelectedObject, _atwin, isCdnMapDataAvailable, captureScreenshotAndCameraDetails, _mpConfig, cancelModelPlacement, _modelDetails, actionHistory, get3DXObjects, transformHistory, goToModel, themeManager, _partitionNodes, setSpacePartitionNodes, getSpaceId, setFloorBaseHeight, toggleWallVisibility, getChildrenOfModel, toggleFloorVisibility, renderPolygon, getCurrentPolygon, getFloorBaseHeight, setSelectedObject, redoDrawAction, undoDrawAction, setWallBaseHeight, clearWallBaseHeight, clearFloorBaseHeight, isToolbarFeatureEnabled, captureCurrentView, getCurrentFloor, setPipeCategories, setPipes, detachTagMedia, getTagDataCollection } from "../architwin";
|
|
11
|
+
import { getTargetPosition, addMediaScreen, _3DXObjects, selectedObject, setTransformControls, copyObject, revertTransform, clearSelectedObject, removeTransformControls, getLibrary, getMpTags, renderTag, captureSpaceScreenshot, moveTag, subscribeSpaceEvent, setModelVisibility, disposeModel, disposeTag, _tags, _tagCategories, dispatchSpaceEvent, editTagLabel, editTagDescription, setTagMessageRecepients, setTagMessages, setSelectedTagUuid, renderMeetingSidebar, setTagIcon, setObjectTransformation, getSelectedObject, _atwin, isCdnMapDataAvailable, captureScreenshotAndCameraDetails, _mpConfig, cancelModelPlacement, _modelDetails, actionHistory, get3DXObjects, transformHistory, goToModel, themeManager, _partitionNodes, setSpacePartitionNodes, getSpaceId, setFloorBaseHeight, toggleWallVisibility, getChildrenOfModel, toggleFloorVisibility, renderPolygon, getCurrentPolygon, getFloorBaseHeight, setSelectedObject, redoDrawAction, undoDrawAction, setWallBaseHeight, clearWallBaseHeight, clearFloorBaseHeight, isToolbarFeatureEnabled, captureCurrentView, getCurrentFloor, setPipeCategories, setPipes, detachTagMedia, getTagDataCollection, setVertexPath } from "../architwin";
|
|
12
12
|
import { Notyf } from 'notyf';
|
|
13
13
|
import 'notyf/notyf.min.css';
|
|
14
14
|
import { SPACE_EVENTS, COORDINATE_SYSTEM, UNITS, DEGREE, MAP_OPTIONS, sortTagOptions, sortObjectOptions, CUSTOM_MAP_MODE } from "../types";
|
|
@@ -1334,6 +1334,7 @@ function setupSpaceEventSubscriptions() {
|
|
|
1334
1334
|
subscribeSpaceEvent(SPACE_EVENTS.DRAW_HISTORY, handleDrawHistory);
|
|
1335
1335
|
subscribeSpaceEvent(SPACE_EVENTS.FLOOR_IMAGE_UPLOADED, handleCustomMapFloorImageUploaded);
|
|
1336
1336
|
subscribeSpaceEvent(SPACE_EVENTS.FLOOR_IMAGE_UPLOAD_FAILED, handleCustomMapFloorUploadFailed);
|
|
1337
|
+
subscribeSpaceEvent(SPACE_EVENTS.PATH_UPDATED, handlePathUpdated);
|
|
1337
1338
|
}
|
|
1338
1339
|
function handleDragEnd(payload) {
|
|
1339
1340
|
console.log("handleDragEnd payload", payload);
|
|
@@ -1420,6 +1421,10 @@ function handleVertexPlace(payload) {
|
|
|
1420
1421
|
pipeForm.setPipeVertices(payload.path);
|
|
1421
1422
|
}
|
|
1422
1423
|
}
|
|
1424
|
+
function handlePathUpdated(payload) {
|
|
1425
|
+
setVertexPath(payload.path);
|
|
1426
|
+
handleVertexPlace(payload);
|
|
1427
|
+
}
|
|
1423
1428
|
function handleMouseClickObject(object) {
|
|
1424
1429
|
var _a, _b, _c;
|
|
1425
1430
|
log.info("handleMouseClickObject()", object);
|
|
@@ -2925,10 +2930,12 @@ function handleClearSearchTagName() {
|
|
|
2925
2930
|
const tags = getMpTags();
|
|
2926
2931
|
const filteredTags = filterTagList(tags);
|
|
2927
2932
|
if (selectedCategoryFilterId || selectedSubCategoryFilterId) {
|
|
2928
|
-
|
|
2933
|
+
const sortedTags = sortTags(filteredTags, { by: 'label', order: 'asc' });
|
|
2934
|
+
renderTags(sortedTags);
|
|
2929
2935
|
}
|
|
2930
2936
|
else if (tags.length > 0) {
|
|
2931
|
-
|
|
2937
|
+
const sortedTags = sortTags(tags, { by: 'label', order: 'asc' });
|
|
2938
|
+
renderTags(sortedTags, true);
|
|
2932
2939
|
}
|
|
2933
2940
|
});
|
|
2934
2941
|
}
|
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
package/static/atwinui.css
CHANGED
|
@@ -77,60 +77,31 @@
|
|
|
77
77
|
--button-font-weight: normal;
|
|
78
78
|
|
|
79
79
|
--bg-dark-gray: rgb(48, 48, 48);
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
--bg-
|
|
83
|
-
--bg-
|
|
84
|
-
--bg-
|
|
85
|
-
--bg-
|
|
86
|
-
--bg-
|
|
87
|
-
--bg-
|
|
88
|
-
--bg-
|
|
89
|
-
--bg-
|
|
90
|
-
--bg-
|
|
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-
|
|
96
|
-
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.at_pipe_category-bg-red {
|
|
100
|
-
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.at_pipe_category-bg-
|
|
104
|
-
|
|
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
|
|