Skip to content

Commit d3bcb9b

Browse files
committed
fix: update fragments dependency version
1 parent 4e1c2ce commit d3bcb9b

File tree

8 files changed

+53
-33
lines changed

8 files changed

+53
-33
lines changed

packages/core/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@thatopen/components",
33
"description": "Collection of core functionalities to author BIM apps.",
4-
"version": "2.4.6",
4+
"version": "2.4.8",
55
"author": "That Open Company",
66
"contributors": [
77
"Antonio Gonzalez Viegas (https://github.com/agviegas)",
@@ -38,7 +38,7 @@
3838
"access": "public"
3939
},
4040
"devDependencies": {
41-
"@thatopen/fragments": "~2.4.0",
41+
"@thatopen/fragments": "~3.0.0",
4242
"@thatopen/ui": "~2.4.0",
4343
"@types/earcut": "2.1.4",
4444
"@types/three": "0.160.0",
@@ -54,7 +54,7 @@
5454
"three-mesh-bvh": "0.7.0"
5555
},
5656
"peerDependencies": {
57-
"@thatopen/fragments": "~2.4.0",
57+
"@thatopen/fragments": "~3.0.0",
5858
"three": "^0.160.1",
5959
"web-ifc": "0.0.66"
6060
}

packages/core/src/core/Components/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export class Components implements Disposable {
1414
/**
1515
* The version of the @thatopen/components library.
1616
*/
17-
static readonly release = "2.4.6";
17+
static readonly release = "2.4.8";
1818

1919
/** {@link Disposable.onDisposed} */
2020
readonly onDisposed = new Event<void>();

packages/core/src/fragments/IfcLoader/src/civil-reader.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ export class CivilReader {
2121

2222
get(civilItems: any) {
2323
if (civilItems.IfcAlignment) {
24-
const alignments = new Map<number, FRAGS.Alignment>();
24+
const alignments = new Map<number, FRAGS.AlignmentObject>();
2525

2626
for (const ifcAlign of civilItems.IfcAlignment) {
27-
const alignment = new FRAGS.Alignment();
27+
const alignment = new FRAGS.AlignmentObject();
2828
alignment.absolute = this.getCurves(ifcAlign.curve3D, alignment);
2929
alignment.horizontal = this.getCurves(ifcAlign.horizontal, alignment);
3030
alignment.vertical = this.getCurves(ifcAlign.vertical, alignment);
@@ -36,7 +36,7 @@ export class CivilReader {
3636
return undefined;
3737
}
3838

39-
private getCurves(ifcAlignData: any, alignment: FRAGS.Alignment) {
39+
private getCurves(ifcAlignData: any, alignment: FRAGS.AlignmentObject) {
4040
const curves: FRAGS.CivilCurve[] = [];
4141
let index = 0;
4242
for (const curve of ifcAlignData) {

packages/front/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@thatopen/components-front",
33
"description": "Collection of frontend tools to author BIM apps.",
4-
"version": "2.4.6",
4+
"version": "2.4.7",
55
"author": "That Open Company",
66
"contributors": [
77
"Antonio Gonzalez Viegas (https://github.com/agviegas)",
@@ -34,12 +34,12 @@
3434
"publish-alpha": "npm publish --tag alpha"
3535
},
3636
"peerDependencies": {
37-
"@thatopen/fragments": "~2.4.0",
37+
"@thatopen/fragments": "~3.0.0",
3838
"three": "^0.160.1",
3939
"web-ifc": "0.0.66"
4040
},
4141
"devDependencies": {
42-
"@thatopen/fragments": "~2.4.0",
42+
"@thatopen/fragments": "~3.0.0",
4343
"@thatopen/ui": "~2.4.0",
4444
"@thatopen/ui-obc": "~2.4.0",
4545
"@types/earcut": "^2.1.4",

packages/front/src/civil/Civil3DNavigator/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export class Civil3DNavigator extends OBC.Component {
3131
* Provides information about the alignment, percentage, type of marker, and the curve.
3232
*/
3333
readonly onMarkerChange = new OBC.Event<{
34-
alignment: FRAGS.Alignment;
34+
alignment: FRAGS.AlignmentObject;
3535
percentage: number;
3636
type: CivilMarkerType;
3737
curve: FRAGS.CivilCurve;
@@ -168,7 +168,7 @@ export class Civil3DNavigator extends OBC.Component {
168168
* ```
169169
*/
170170
setMarker(
171-
alignment: FRAGS.Alignment,
171+
alignment: FRAGS.AlignmentObject,
172172
percentage: number,
173173
type: CivilMarkerType,
174174
) {

packages/front/src/civil/CivilMarker/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ export class CivilMarker extends OBC.Component {
572572
}
573573

574574
// TODO: Move Generation of Points to Previous Method Call
575-
private getNormal(curve: FRAGS.Alignment, point: THREE.Vector3) {
575+
private getNormal(curve: FRAGS.AlignmentObject, point: THREE.Vector3) {
576576
const pointsInCurve = [];
577577
const normalPoints = {
578578
start: new THREE.Vector3(),

packages/front/src/civil/CivilNavigator/index.ts

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as THREE from "three";
22
import * as FRAGS from "@thatopen/fragments";
33
import * as OBC from "@thatopen/components";
4-
import { Alignment, FragmentsGroup } from "@thatopen/fragments";
4+
import { FragmentsGroup } from "@thatopen/fragments";
55
import { CurveHighlighter } from "./src/curve-highlighter";
66
import { CivilMarker } from "../CivilMarker";
77
import { Mark } from "../../core";
@@ -38,7 +38,7 @@ export abstract class CivilNavigator
3838
* Provides the alignment, percentage, type of marker, and the corresponding curve.
3939
*/
4040
readonly onMarkerChange = new OBC.Event<{
41-
alignment: FRAGS.Alignment;
41+
alignment: FRAGS.AlignmentObject;
4242
percentage: number;
4343
type: CivilMarkerType;
4444
curve: FRAGS.CivilCurve;
@@ -69,7 +69,7 @@ export abstract class CivilNavigator
6969

7070
private _curves: FRAGS.CurveMesh[] = [];
7171

72-
private _previousAlignment: FRAGS.Alignment | null = null;
72+
private _previousAlignment: FRAGS.AlignmentObject | null = null;
7373

7474
protected _highlighter?: CurveHighlighter;
7575

@@ -151,7 +151,7 @@ export abstract class CivilNavigator
151151
*
152152
* @returns {Promise<void>} - A promise that resolves when the curves have been drawn onto the scene.
153153
*/
154-
async draw(model: FragmentsGroup, filter?: Iterable<FRAGS.Alignment>) {
154+
async draw(model: FragmentsGroup, filter?: Iterable<FRAGS.AlignmentObject>) {
155155
if (!model.civilData) {
156156
throw new Error("The provided model doesn't have civil data!");
157157
}
@@ -231,7 +231,11 @@ export abstract class CivilNavigator
231231
*
232232
* @throws Will throw an error if there are no curves to place the marker on.
233233
*/
234-
setMarker(alignment: Alignment, percentage: number, type: CivilMarkerType) {
234+
setMarker(
235+
alignment: FRAGS.AlignmentObject,
236+
percentage: number,
237+
type: CivilMarkerType,
238+
) {
235239
if (!this._curves.length) {
236240
return;
237241
}

yarn.lock

Lines changed: 31 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ __metadata:
719719
resolution: "@thatopen/components-front@workspace:packages/front"
720720
dependencies:
721721
"@thatopen/components": ~2.4.0
722-
"@thatopen/fragments": ~2.4.0
722+
"@thatopen/fragments": ~3.0.0
723723
"@thatopen/ui": ~2.4.0
724724
"@thatopen/ui-obc": ~2.4.0
725725
"@types/earcut": ^2.1.4
@@ -732,7 +732,7 @@ __metadata:
732732
three: ^0.160.1
733733
web-ifc: 0.0.66
734734
peerDependencies:
735-
"@thatopen/fragments": ~2.4.0
735+
"@thatopen/fragments": ~3.0.0
736736
three: ^0.160.1
737737
web-ifc: 0.0.66
738738
languageName: unknown
@@ -742,7 +742,7 @@ __metadata:
742742
version: 0.0.0-use.local
743743
resolution: "@thatopen/components@workspace:packages/core"
744744
dependencies:
745-
"@thatopen/fragments": ~2.4.0
745+
"@thatopen/fragments": ~3.0.0
746746
"@thatopen/ui": ~2.4.0
747747
"@types/earcut": 2.1.4
748748
"@types/three": 0.160.0
@@ -755,21 +755,23 @@ __metadata:
755755
three-mesh-bvh: 0.7.0
756756
web-ifc: 0.0.66
757757
peerDependencies:
758-
"@thatopen/fragments": ~2.4.0
758+
"@thatopen/fragments": ~3.0.0
759759
three: ^0.160.1
760760
web-ifc: 0.0.66
761761
languageName: unknown
762762
linkType: soft
763763

764-
"@thatopen/fragments@npm:~2.4.0":
765-
version: 2.4.0
766-
resolution: "@thatopen/fragments@npm:2.4.0"
764+
"@thatopen/fragments@npm:~3.0.0":
765+
version: 3.0.1
766+
resolution: "@thatopen/fragments@npm:3.0.1"
767767
dependencies:
768-
flatbuffers: 23.3.3
769-
three-mesh-bvh: 0.7.0
768+
flatbuffers: 25.2.10
769+
lru-cache: 11.1.0
770+
pako: 2.1.0
770771
peerDependencies:
771-
three: ^0.160.1
772-
checksum: 4bbdfb22955b874ceb7669952413fd18f2fc8ebad8a57dc31581871c3b521082608f2f5c5a0a3e0ede507cab04849aeceae947a38673c0937fc1cf702a7031b3
772+
three: 0.175.0
773+
web-ifc: 0.0.68
774+
checksum: 1c8d097a1a616877e5cf8c8c907e707e5002f7305e0194cd1e967fd542d6ded044c7032f0b34f9d3db3cb89372151ec5e3427ced34ff4a207015a9060ad3b2d0
773775
languageName: node
774776
linkType: hard
775777

@@ -2214,10 +2216,10 @@ __metadata:
22142216
languageName: node
22152217
linkType: hard
22162218

2217-
"flatbuffers@npm:23.3.3":
2218-
version: 23.3.3
2219-
resolution: "flatbuffers@npm:23.3.3"
2220-
checksum: 7d8352e233cc81942e36b2ccfd7f3baf5d9a5e9614ebd83e9f4bc4accaebd43cb824788bd76334f5a61a8c2a74ddfd8f87ca7ac01cc522ad2774ae66c276dff1
2219+
"flatbuffers@npm:25.2.10":
2220+
version: 25.2.10
2221+
resolution: "flatbuffers@npm:25.2.10"
2222+
checksum: 2db4322315b7edcd76452a9a95a6cd23225b3510f66caac4035470b461f0dfef6b75a31a0511be1d214d53a0d55e8d5bf5fb056f8d6a92b7d4ca7c54c3bc0dc9
22212223
languageName: node
22222224
linkType: hard
22232225

@@ -3138,6 +3140,13 @@ glob@latest:
31383140
languageName: node
31393141
linkType: hard
31403142

3143+
"lru-cache@npm:11.1.0":
3144+
version: 11.1.0
3145+
resolution: "lru-cache@npm:11.1.0"
3146+
checksum: 6274e90b5fdff87570fe26fe971467a5ae1f25f132bebe187e71c5627c7cd2abb94b47addd0ecdad034107667726ebde1abcef083d80f2126e83476b2c4e7c82
3147+
languageName: node
3148+
linkType: hard
3149+
31413150
"lru-cache@npm:^10.0.1, lru-cache@npm:^10.2.0":
31423151
version: 10.4.3
31433152
resolution: "lru-cache@npm:10.4.3"
@@ -3558,6 +3567,13 @@ glob@latest:
35583567
languageName: node
35593568
linkType: hard
35603569

3570+
"pako@npm:2.1.0":
3571+
version: 2.1.0
3572+
resolution: "pako@npm:2.1.0"
3573+
checksum: 71666548644c9a4d056bcaba849ca6fd7242c6cf1af0646d3346f3079a1c7f4a66ffec6f7369ee0dc88f61926c10d6ab05da3e1fca44b83551839e89edd75a3e
3574+
languageName: node
3575+
linkType: hard
3576+
35613577
"pako@npm:~1.0.2":
35623578
version: 1.0.11
35633579
resolution: "pako@npm:1.0.11"

0 commit comments

Comments
 (0)