Update web-ifc to version 0.0.39.
This commit is contained in:
parent
63bc9333c2
commit
7e0c281263
File diff suppressed because one or more lines are too long
Binary file not shown.
14
package-lock.json
generated
14
package-lock.json
generated
@ -16,7 +16,7 @@
|
||||
"occt-import-js": "0.0.18",
|
||||
"rhino3dm": "8.0.0",
|
||||
"three": "0.151.3",
|
||||
"web-ifc": "0.0.35"
|
||||
"web-ifc": "0.0.39"
|
||||
},
|
||||
"devDependencies": {
|
||||
"clean-css-cli": "^5.6.1",
|
||||
@ -5501,9 +5501,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/web-ifc": {
|
||||
"version": "0.0.35",
|
||||
"resolved": "https://registry.npmjs.org/web-ifc/-/web-ifc-0.0.35.tgz",
|
||||
"integrity": "sha512-if/L9RiJAD+jJ1oWtHj44+o2NG6K6azK0otE9Pbppr5hNBnouYfJQNmnHZ+Ya+wZeaByo9KeU64D60Y6lFnT4w=="
|
||||
"version": "0.0.39",
|
||||
"resolved": "https://registry.npmjs.org/web-ifc/-/web-ifc-0.0.39.tgz",
|
||||
"integrity": "sha512-sg+DyxDiyXBqlXXbz+uSqw8IGX+mVvHmn2+hg6UXDvAcrzJJw8EI2H4ZzlxWxCqqdpGVeK0wCpdeQm43UCDbrA=="
|
||||
},
|
||||
"node_modules/whatwg-encoding": {
|
||||
"version": "2.0.0",
|
||||
@ -9753,9 +9753,9 @@
|
||||
}
|
||||
},
|
||||
"web-ifc": {
|
||||
"version": "0.0.35",
|
||||
"resolved": "https://registry.npmjs.org/web-ifc/-/web-ifc-0.0.35.tgz",
|
||||
"integrity": "sha512-if/L9RiJAD+jJ1oWtHj44+o2NG6K6azK0otE9Pbppr5hNBnouYfJQNmnHZ+Ya+wZeaByo9KeU64D60Y6lFnT4w=="
|
||||
"version": "0.0.39",
|
||||
"resolved": "https://registry.npmjs.org/web-ifc/-/web-ifc-0.0.39.tgz",
|
||||
"integrity": "sha512-sg+DyxDiyXBqlXXbz+uSqw8IGX+mVvHmn2+hg6UXDvAcrzJJw8EI2H4ZzlxWxCqqdpGVeK0wCpdeQm43UCDbrA=="
|
||||
},
|
||||
"whatwg-encoding": {
|
||||
"version": "2.0.0",
|
||||
|
||||
@ -81,7 +81,7 @@
|
||||
"occt-import-js": "0.0.18",
|
||||
"rhino3dm": "8.0.0",
|
||||
"three": "0.151.3",
|
||||
"web-ifc": "0.0.35"
|
||||
"web-ifc": "0.0.39"
|
||||
},
|
||||
"eslintConfig": {
|
||||
"env": {
|
||||
|
||||
@ -149,20 +149,27 @@ export class ImporterIfc extends ImporterBase
|
||||
}
|
||||
let propertyGroup = new PropertyGroup (propSet.Name.value);
|
||||
propSet.HasProperties.forEach ((property) => {
|
||||
if (!property || !property.Name || !property.NominalValue) {
|
||||
if (!property || !property.Name) {
|
||||
return;
|
||||
}
|
||||
if (!property.NominalValue || !property.NominalValue.constructor) {
|
||||
return;
|
||||
}
|
||||
if (property.type !== WebIFC.IFCPROPERTYSINGLEVALUE) {
|
||||
return;
|
||||
}
|
||||
let elemProperty = null;
|
||||
let propertyName = this.GetIFCString (property.Name.value);
|
||||
let elemProperty = null;
|
||||
let strValue = null;
|
||||
switch (property.NominalValue.label) {
|
||||
case 'IFCTEXT':
|
||||
case 'IFCLABEL':
|
||||
case 'IFCIDENTIFIER':
|
||||
switch (property.NominalValue.constructor.name) {
|
||||
case 'IfcText':
|
||||
case 'IfcLabel':
|
||||
case 'IfcIdentifier':
|
||||
case WebIFC.IFCLABEL:
|
||||
elemProperty = new Property (PropertyType.Text, propertyName, this.GetIFCString (property.NominalValue.value));
|
||||
break;
|
||||
case 'IFCBOOLEAN':
|
||||
case 'IFCLOGICAL':
|
||||
case 'IfcBoolean':
|
||||
case 'IfcLogical':
|
||||
strValue = 'Unknown';
|
||||
if (property.NominalValue.value === 'T') {
|
||||
strValue = 'True';
|
||||
@ -171,27 +178,26 @@ export class ImporterIfc extends ImporterBase
|
||||
}
|
||||
elemProperty = new Property (PropertyType.Text, propertyName, strValue);
|
||||
break;
|
||||
case 'IFCINTEGER':
|
||||
case 'IFCCOUNTMEASURE':
|
||||
case 'IfcInteger':
|
||||
case 'IfcCountMeasure':
|
||||
elemProperty = new Property (PropertyType.Integer, propertyName, property.NominalValue.value);
|
||||
break;
|
||||
case 'IFCREAL':
|
||||
case 'IFCLENGTHMEASURE':
|
||||
case 'IFCPOSITIVELENGTHMEASURE':
|
||||
case 'IFCAREAMEASURE':
|
||||
case 'IFCVOLUMEMEASURE':
|
||||
case 'IFCRATIOMEASURE':
|
||||
case 'IFCPOSITIVERATIOMEASURE':
|
||||
case 'IFCMASSMEASURE':
|
||||
case 'IFCMASSPERLENGTHMEASURE':
|
||||
case 'IFCPLANEANGLEMEASURE':
|
||||
case 'IFCTHERMALTRANSMITTANCEMEASURE':
|
||||
case 'IfcReal':
|
||||
case 'IfcLengthMeasure':
|
||||
case 'IfcPositiveLengthMeasure':
|
||||
case 'IfcAreaMeasure':
|
||||
case 'IfcVolumeMeasure':
|
||||
case 'IfcRatioMeasure':
|
||||
case 'IfcPositiveRATIOMeasure':
|
||||
case 'IfcMassMeasure':
|
||||
case 'IfcMassPerLengthMeasure':
|
||||
case 'IfcPlaneAngleMeasure':
|
||||
case 'IfcThermalTransmittanceMeasure':
|
||||
elemProperty = new Property (PropertyType.Number, propertyName, property.NominalValue.value);
|
||||
break;
|
||||
default:
|
||||
// TODO
|
||||
console.log (property.NominalValue.label);
|
||||
console.log (property.NominalValue.value);
|
||||
console.log (property);
|
||||
break;
|
||||
}
|
||||
if (elemProperty !== null) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user