diff --git a/package-lock.json b/package-lock.json index a00623c..5147ef5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -39,7 +39,6 @@ "three": "^0.163.0", "three-mesh-bvh": "^0.7.4", "three-stdlib": "^2.29.6", - "uuid": "^9.0.1", "web-ifc": "^0.0.54" }, "devDependencies": { @@ -5067,18 +5066,6 @@ "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" }, - "node_modules/uuid": { - "version": "9.0.1", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-9.0.1.tgz", - "integrity": "sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==", - "funding": [ - "https://github.com/sponsors/broofa", - "https://github.com/sponsors/ctavan" - ], - "bin": { - "uuid": "dist/bin/uuid" - } - }, "node_modules/vite": { "version": "4.5.3", "resolved": "https://registry.npmjs.org/vite/-/vite-4.5.3.tgz", diff --git a/package.json b/package.json index 878d774..ee733da 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,6 @@ "three": "^0.163.0", "three-mesh-bvh": "^0.7.4", "three-stdlib": "^2.29.6", - "uuid": "^9.0.1", "web-ifc": "^0.0.54" }, "devDependencies": { diff --git a/src/BimModel/src/system/00-base/Utils.ts b/src/BimModel/src/system/00-base/Utils.ts index 16f5e72..bbd105b 100644 --- a/src/BimModel/src/system/00-base/Utils.ts +++ b/src/BimModel/src/system/00-base/Utils.ts @@ -1,5 +1,5 @@ import {IFC4} from "web-ifc"; -import {v4 as uuid4} from "uuid"; +import * as THREE from "three"; export function globalId(): IFC4.IfcGloballyUniqueId { - return new IFC4.IfcGloballyUniqueId(uuid4()); + return new IFC4.IfcGloballyUniqueId(THREE.MathUtils.generateUUID()); } diff --git a/src/pages/viewer/Viewer.css b/src/pages/viewer/Viewer.css index e0eb897..98e2b1d 100644 --- a/src/pages/viewer/Viewer.css +++ b/src/pages/viewer/Viewer.css @@ -71,14 +71,13 @@ text-align: center; border: none; border-radius: 5px; - padding: 5px; + padding: 1px; margin: auto; background: transparent; background-color: rgb(78, 78, 174); color: white!important; font-weight: 700; z-index: 4000; - padding: 5px; display: flex; justify-content: flex-start; }