More useless testing with properties
This commit is contained in:
parent
c5c51b8504
commit
354f4fef0f
10
bim.js
10
bim.js
@ -106,15 +106,17 @@ BIM.setupHighligther = async function (model) {
|
|||||||
|
|
||||||
const li = document.querySelector('#selected-prop');
|
const li = document.querySelector('#selected-prop');
|
||||||
highlighter.events.select.onHighlight.add(async (property) => {
|
highlighter.events.select.onHighlight.add(async (property) => {
|
||||||
const expressID = property[Object.keys(property)[0]].entries().next().value[0];
|
const set = property[Object.keys(property)[0]]
|
||||||
let testProp = await model.getProperties(expressID);
|
const expressID = Array.from(set.entries())[0][0];
|
||||||
|
|
||||||
|
let testProp = await model.getProperties(Number.parseInt(expressID));
|
||||||
|
|
||||||
// BAD just for testing
|
// BAD just for testing
|
||||||
if (testProp !== null) {
|
if (testProp !== null) {
|
||||||
li.innerHTML = `
|
li.innerHTML = `
|
||||||
<ul>
|
<ul>
|
||||||
<li><strong>${testProp['Name'].name}</strong>: ${testProp['Name'].value}</span>
|
<li><strong>Name</strong>: ${testProp['Name'].value}</span>
|
||||||
<li><strong>Tipo</strong>: ${testProp['PredefinedType']? testProp['PredefinedType'].value : 'Nessuno'}</li>
|
<li><strong>Tag</strong>: ${testProp['Tag'].value}</li>
|
||||||
</ul>
|
</ul>
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user