architwin 1.0.93 → 1.0.94
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.
|
@@ -165,10 +165,10 @@ export function renderLibraryCard(payload) {
|
|
|
165
165
|
}
|
|
166
166
|
element.innerHTML = `
|
|
167
167
|
<img class="at_image at_library_image" src="${thumbnail}" alt="Property Image" id="at-library-card-image-${payload.id}" data-cy="at-library-card-image-${payload.id}" card-id="${payload.id}">
|
|
168
|
-
<div class="at_card-body" card-id="${payload.id}">
|
|
168
|
+
<div class="at_card-body" id="at-card-body-${payload.id}" card-id="${payload.id}">
|
|
169
169
|
${payload.name ?
|
|
170
170
|
`<div class="at_library_card_title">
|
|
171
|
-
<h2 class="at_title_small" id="at-card-title-${payload.id}" data-cy="at-card-title-${payload.id}">${payload.name}</h2>
|
|
171
|
+
<h2 class="at_title_small" id="at-card-title-${payload.id}" data-cy="at-card-title-${payload.id}" card-id="${payload.id}">${payload.name}</h2>
|
|
172
172
|
</div>` :
|
|
173
173
|
``}
|
|
174
174
|
</div>
|
|
@@ -64,7 +64,7 @@ export function renderLibraryCards(cardList) {
|
|
|
64
64
|
//@ts-ignore
|
|
65
65
|
yield setActiveLibraryCard(event.target.id);
|
|
66
66
|
}));
|
|
67
|
-
batchAddEventListenerByClassName('
|
|
67
|
+
batchAddEventListenerByClassName('at_card-body', (event) => __awaiter(this, void 0, void 0, function* () {
|
|
68
68
|
//@ts-ignore
|
|
69
69
|
console.log('Event', event.target.id);
|
|
70
70
|
//@ts-ignore
|
package/lib/atwinui/events.js
CHANGED
|
@@ -105,6 +105,10 @@ function toggleDisplayPane(targetId) {
|
|
|
105
105
|
const spaceObjects = _3DXObjects.map(obj => obj.object);
|
|
106
106
|
renderObjectCards(spaceObjects);
|
|
107
107
|
}
|
|
108
|
+
else {
|
|
109
|
+
clearSelectedObject();
|
|
110
|
+
removeTransformControls();
|
|
111
|
+
}
|
|
108
112
|
if (paneId === 'at-library-pane') {
|
|
109
113
|
const checkAssetLibrary = yield getLibrary();
|
|
110
114
|
let assets = [];
|