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');
|
||||
highlighter.events.select.onHighlight.add(async (property) => {
|
||||
const expressID = property[Object.keys(property)[0]].entries().next().value[0];
|
||||
let testProp = await model.getProperties(expressID);
|
||||
const set = property[Object.keys(property)[0]]
|
||||
const expressID = Array.from(set.entries())[0][0];
|
||||
|
||||
let testProp = await model.getProperties(Number.parseInt(expressID));
|
||||
|
||||
// BAD just for testing
|
||||
if (testProp !== null) {
|
||||
li.innerHTML = `
|
||||
<ul>
|
||||
<li><strong>${testProp['Name'].name}</strong>: ${testProp['Name'].value}</span>
|
||||
<li><strong>Tipo</strong>: ${testProp['PredefinedType']? testProp['PredefinedType'].value : 'Nessuno'}</li>
|
||||
<li><strong>Name</strong>: ${testProp['Name'].value}</span>
|
||||
<li><strong>Tag</strong>: ${testProp['Tag'].value}</li>
|
||||
</ul>
|
||||
`;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user