Skip to content

Commit

Permalink
feat: add relations map to streamed properties
Browse files Browse the repository at this point in the history
  • Loading branch information
agviegas committed May 11, 2024
1 parent a3b3853 commit d6acb57
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/components-front/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"devDependencies": {
"@thatopen/fragments": "2.0.0-alpha.4",
"@thatopen/ui": "2.0.0-alpha.5",
"@thatopen/ui-obc": "2.0.0-alpha.5",
"@types/earcut": "^2.1.4",
"@types/three": "^0.160.0",
"three": "^0.160.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ export class FragmentStreamLoader
const fetched = await fetch(this.url + indexesFile);
const rels = await fetched.text();
const indexer = this.components.get(OBC.IfcRelationsIndexer);
indexer.getRelationsMapFromJSON(rels);
indexer.relationMaps[group.uuid] = indexer.getRelationsMapFromJSON(rels);
}

this.culler.needsUpdate = true;
Expand Down
13 changes: 13 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1294,6 +1294,7 @@ __metadata:
"@thatopen/components": 2.0.0-alpha.8
"@thatopen/fragments": 2.0.0-alpha.4
"@thatopen/ui": 2.0.0-alpha.5
"@thatopen/ui-obc": 2.0.0-alpha.5
"@types/earcut": ^2.1.4
"@types/three": ^0.160.0
camera-controls: 2.7.3
Expand Down Expand Up @@ -1358,6 +1359,18 @@ __metadata:
languageName: node
linkType: hard

"@thatopen/ui-obc@npm:2.0.0-alpha.5":
version: 2.0.0-alpha.5
resolution: "@thatopen/ui-obc@npm:2.0.0-alpha.5"
dependencies:
"@thatopen/ui": 2.0.0-alpha.5
peerDependencies:
"@thatopen/components": 2.0.0-alpha.7
three: 0.160.1
checksum: 8fa3bc052705e53c096cfc438d9fb9fec8b744db6c22d2fb8ee1483b7dd65e3451db887704535aff06f64c89b06919313ee3a051da3a089df8902479db7a63eb
languageName: node
linkType: hard

"@thatopen/ui@npm:2.0.0-alpha.5":
version: 2.0.0-alpha.5
resolution: "@thatopen/ui@npm:2.0.0-alpha.5"
Expand Down

0 comments on commit d6acb57

Please sign in to comment.