ifc-reader-2 1.3.1 → 1.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,27 @@
1
+ import { IfcProperties } from '../../base-types';
2
+ export interface PropertyGroup {
3
+ name: string;
4
+ properties: {
5
+ name: string;
6
+ value: string;
7
+ }[];
8
+ }
9
+ export interface ElementProperties {
10
+ expressId: number;
11
+ name: string;
12
+ type: string;
13
+ globalId: string;
14
+ description: string;
15
+ groups: PropertyGroup[];
16
+ }
17
+ export declare class PropertyResolver {
18
+ private _psetIndex;
19
+ private _typeIndex;
20
+ private _properties;
21
+ constructor(properties: IfcProperties);
22
+ getElementProperties(expressId: number): ElementProperties | null;
23
+ private buildPsetIndex;
24
+ private buildTypeIndex;
25
+ private resolvePropertyDefinitions;
26
+ private resolveTypeProperties;
27
+ }
package/package.json CHANGED
@@ -1,33 +1,40 @@
1
1
  {
2
- "name": "ifc-reader-2",
3
- "version": "1.3.1",
4
- "description": "",
5
- "main": "dist/index.cjs",
6
- "module": "dist/index.js",
7
- "types": "dist/index.d.ts",
8
- "files": [
9
- "dist",
10
- "LICENSE",
11
- "THIRD-PARTY-LICENSES.md"
12
- ],
13
- "scripts": {
14
- "dev": "cd examples && npx vite",
15
- "test": "echo \"Error: no test specified\" && exit 1",
16
- "build": "npx tsc",
17
- "bundle-vite": "npx vite build",
18
- "deploy": "npm run bundle-vite && npm publish"
19
- },
20
- "author": "",
21
- "license": "ISC",
22
- "devDependencies": {
23
- "@types/three": "^0.162.0",
24
- "typescript": "^5.9.2",
25
- "viral-viewer-2": "^6.6.3",
26
- "vite": "^7.1.3",
27
- "vite-plugin-dts": "^4.5.4"
28
- },
29
- "dependencies": {
30
- "three": "^0.162.0",
31
- "web-ifc": "^0.0.75"
32
- }
2
+ "name": "ifc-reader-2",
3
+ "version": "1.3.3",
4
+ "description": "",
5
+ "main": "dist/index.cjs",
6
+ "module": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "files": [
9
+ "dist",
10
+ "LICENSE",
11
+ "THIRD-PARTY-LICENSES.md"
12
+ ],
13
+ "scripts": {
14
+ "dev": "cd examples && npx vite",
15
+ "test": "echo \"Error: no test specified\" && exit 1",
16
+ "build": "npx tsc",
17
+ "bundle-vite": "npx vite build",
18
+ "deploy": "npm run bundle-vite && npm publish",
19
+ "lint": "biome check .",
20
+ "lint:fix": "biome check --write .",
21
+ "format": "biome format .",
22
+ "format:fix": "biome format . --write",
23
+ "check": "biome check .",
24
+ "check:fix": "biome check . --write"
25
+ },
26
+ "author": "",
27
+ "license": "ISC",
28
+ "devDependencies": {
29
+ "@types/three": "^0.162.0",
30
+ "typescript": "^5.9.2",
31
+ "viral-viewer-2": "^6.6.3",
32
+ "vite": "^7.1.3",
33
+ "vite-plugin-dts": "^4.5.4",
34
+ "@biomejs/biome": "2.3.15"
35
+ },
36
+ "dependencies": {
37
+ "three": "^0.162.0",
38
+ "web-ifc": "^0.0.75"
39
+ }
33
40
  }