Socket
Socket
Sign inDemoInstall

@bimdata/bimobject-viewer-plugin

Package Overview
Dependencies
Maintainers
4
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bimdata/bimobject-viewer-plugin - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

30

bimobject.plugin.js

@@ -106,4 +106,4 @@ const BimObjectComponent = {

this.propertySets = this.formatProperties(json.data);
this.propertySets.push(this.formatAttributesAsPset(selected));
this.classifications = this.formatClassifications(json.classifications);
console.log(JSON.parse(JSON.stringify(this.classifications)))
},

@@ -170,2 +170,27 @@ async saveInBimdata() {

},
formatAttributesAsPset(bimObject) {
return {
name: "bimobject attributes",
description: "attributes extracted from bimobject",
type: "IfcPropertySet",
properties: [
{
value: bimObject.name,
definition: {
name: "name",
description: "bimobject name",
value_type: "string"
}
},
{
value: bimObject.brand.name,
definition: {
name: "brand",
description: "bimobject brand",
value_type: "string"
}
},
]
}
},
getBimDataPropertyType(bimObjectType) {

@@ -223,3 +248,4 @@ const mapping = {

icon: {
svg: {path: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512">
svg: {
path: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512">
<path

@@ -226,0 +252,0 @@ d="M416 32H32C14.4 32 0 46.4 0 64v384c0 17.6 14.4 32 32 32h384c17.6 0 32-14.4 32-32V64c0-17.6-14.4-32-32-32zm-64 257.4c0 49.4-11.4 82.6-103.8 82.6h-16.9c-44.1 0-62.4-14.9-70.4-38.8h-.9V368H96V136h64v74.7h1.1c4.6-30.5 39.7-38.8 69.7-38.8h17.3c92.4 0 103.8 33.1 103.8 82.5v35zm-64-28.9v22.9c0 21.7-3.4 33.8-38.4 33.8h-45.3c-28.9 0-44.1-6.5-44.1-35.7v-19c0-29.3 15.2-35.7 44.1-35.7h45.3c35-.2 38.4 12 38.4 33.7z" />

2

package.json
{
"name": "@bimdata/bimobject-viewer-plugin",
"version": "0.0.7",
"version": "0.0.8",
"description": "",

@@ -5,0 +5,0 @@ "main": "bimobject.plugin.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc