architwin 1.3.2 → 1.3.3
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.
|
@@ -67,9 +67,9 @@ export function setTransformType(type) {
|
|
|
67
67
|
if (transformTypeTitle) {
|
|
68
68
|
transformTypeTitle.textContent = useCapitalizeFirstLetter(type);
|
|
69
69
|
transformType = type.toLowerCase();
|
|
70
|
+
setModelInputUnit(type);
|
|
70
71
|
return;
|
|
71
72
|
}
|
|
72
|
-
setModelInputUnit(type);
|
|
73
73
|
console.error("transformTypeTitle is undefined");
|
|
74
74
|
return;
|
|
75
75
|
}
|
|
@@ -163,7 +163,7 @@ function setModelInputUnit(type) {
|
|
|
163
163
|
console.error("Type is undefined");
|
|
164
164
|
return;
|
|
165
165
|
}
|
|
166
|
-
const elements = document.querySelectorAll(
|
|
166
|
+
const elements = document.querySelectorAll(`.at_model_unit`);
|
|
167
167
|
if (elements && elements.length > 0) {
|
|
168
168
|
elements.forEach((element) => {
|
|
169
169
|
if (type === 'translate') {
|
|
@@ -177,6 +177,9 @@ function setModelInputUnit(type) {
|
|
|
177
177
|
}
|
|
178
178
|
});
|
|
179
179
|
}
|
|
180
|
+
else {
|
|
181
|
+
log.error("Could not find at_model_unit");
|
|
182
|
+
}
|
|
180
183
|
}
|
|
181
184
|
function onModelControlInput(event) {
|
|
182
185
|
//@ts-expect-error
|