architwin 1.18.4 → 1.18.6
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/README.md +2164 -185
- package/lib/architwin.js +1 -1
- package/lib/atwinui/components/toolbar/card.js +17 -14
- package/lib/atwinui/components/toolbar/tagListPane.js +3 -5
- package/package.json +1 -1
|
@@ -148,7 +148,7 @@ export function setActiveCard(cardId, moveToObject = true) {
|
|
|
148
148
|
if (selected) {
|
|
149
149
|
removeTransformControls();
|
|
150
150
|
clearActiveActionBtn();
|
|
151
|
-
setSelectedObject(selected.object, selected.node, selected.component,
|
|
151
|
+
setSelectedObject(selected.object, selected.node, selected.component, selected.type);
|
|
152
152
|
}
|
|
153
153
|
else {
|
|
154
154
|
console.error("Could not find target object", objId);
|
|
@@ -271,19 +271,22 @@ export function setActiveLibraryCard(cardId) {
|
|
|
271
271
|
const payload = yield addObjectToSpace(selectedObject.amazon_uri, selectedObject.object_type, { position: coords });
|
|
272
272
|
payload.object_data = selectedObject;
|
|
273
273
|
if (isToolbarFeatureEnabled('bim')) {
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
274
|
+
const basepoint = get3DXObjects().find(obj => obj.type === "BASEPOINT");
|
|
275
|
+
if (basepoint) {
|
|
276
|
+
payload.coordinate_system = getCoordinateSystem();
|
|
277
|
+
const thisObjBimPosition = convertYupToZup(payload.object_position, getMPBasepoint(), getBasepoint(), getMeasurementUnit(), parseInt(getScaleFactor()));
|
|
278
|
+
console.log("====== caroline thisObjBimPosition: ", thisObjBimPosition);
|
|
279
|
+
const thisObjBimScale = convertYupScaleToZupScale(payload.object_scale, UNITS.METER, parseInt(getScaleFactor()));
|
|
280
|
+
console.log("====== caroline thisObjBimScale: ", thisObjBimScale);
|
|
281
|
+
const coordPayload = {
|
|
282
|
+
coord_system: getCoordinateSystem(),
|
|
283
|
+
bim_coordinates: {
|
|
284
|
+
position: thisObjBimPosition,
|
|
285
|
+
scale: thisObjBimScale,
|
|
286
|
+
}
|
|
287
|
+
};
|
|
288
|
+
payload.json_data = JSON.stringify({ coordSystemCalibration: coordPayload });
|
|
289
|
+
}
|
|
287
290
|
}
|
|
288
291
|
console.log("======Payload:", payload);
|
|
289
292
|
dispatchSpaceEvent(SPACE_EVENTS.MODEL_RENDERED, { model: payload });
|
|
@@ -59,7 +59,7 @@ export function renderTagListPane() {
|
|
|
59
59
|
<span id="at-tag-list-title">${i18n.t('Tags')}</span>
|
|
60
60
|
</div>
|
|
61
61
|
<div class="at_form_container at_h-min-65 at_tag_list_pane">
|
|
62
|
-
<div class="at_button_row at_justify_end
|
|
62
|
+
<div class="at_button_row at_justify_end">
|
|
63
63
|
<div class="at_button at_ghost">
|
|
64
64
|
<span class="mdi mdi-sort at_icon_hover" id="at-tag-sort-icon" data-cy="at-tag-sort-btn" >
|
|
65
65
|
<span id="at-tag-sort-options-tooltip" class="at_custom_tooltip">
|
|
@@ -70,14 +70,14 @@ export function renderTagListPane() {
|
|
|
70
70
|
</span>
|
|
71
71
|
</span>
|
|
72
72
|
</div>
|
|
73
|
-
<div class="at_button at_ghost" id="at-visibility-tag-btn" data-cy="at-visibility-tag-btn"
|
|
73
|
+
<div class="at_button at_ghost ${_mpConfig.restrictionConfig.isTagReadOnly ? 'at_hidden' : ''}" id="at-visibility-tag-btn" data-cy="at-visibility-tag-btn">
|
|
74
74
|
<span class="mdi mdi-eye at_icon_hover" id="at-visibility-tag-btn">
|
|
75
75
|
<span class="at_custom_tooltip">
|
|
76
76
|
<p class="at_tag_sort_option">${i18n.t('HideAll')}</p>
|
|
77
77
|
</span>
|
|
78
78
|
</span>
|
|
79
79
|
</div>
|
|
80
|
-
<div class="at_button at_ghost" id="at-add-tag-btn" data-cy="at-add-tag-btn" target-pane="at-tag-form-pane">
|
|
80
|
+
<div class="at_button at_ghost ${_mpConfig.restrictionConfig.isTagReadOnly ? 'at_hidden' : ''}" id="at-add-tag-btn" data-cy="at-add-tag-btn" target-pane="at-tag-form-pane">
|
|
81
81
|
${i18n.t('AddTag')}
|
|
82
82
|
<span class="mdi mdi-plus-circle-outline" id="at-add-tag-btn"></span>
|
|
83
83
|
</div>
|
|
@@ -174,8 +174,6 @@ export function renderTags(tags, showOwnTagsOnly = false) {
|
|
|
174
174
|
console.log("renderTags", tags);
|
|
175
175
|
iotTags = tags;
|
|
176
176
|
const tagContainer = document.getElementById('at-tag-list-container');
|
|
177
|
-
// get value from mp config
|
|
178
|
-
const isReadOnly = _mpConfig.restrictionConfig.isTagReadOnly;
|
|
179
177
|
if (!tagContainer) {
|
|
180
178
|
console.error("Tag container does not exist in DOM");
|
|
181
179
|
return;
|