Skip to content

Commit

Permalink
chore: replaces Map with DataMap in FragmentsManager
Browse files Browse the repository at this point in the history
  • Loading branch information
HoyosJuan committed Jul 31, 2024
1 parent 4f81b2c commit 319391d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/core/src/fragments/FragmentsManager/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Fragment, FragmentsGroup, Serializer } from "@thatopen/fragments";
import * as THREE from "three";
import * as FRAGS from "@thatopen/fragments";
import { Component, Components, Event, Disposable } from "../../core";
import { Component, Components, Event, Disposable, DataMap } from "../../core";
import { RelationsMap } from "../../ifc/IfcRelationsIndexer/src/types";
import { IfcRelationsIndexer } from "../../ifc/IfcRelationsIndexer";

Expand Down Expand Up @@ -32,16 +32,16 @@ export class FragmentsManager extends Component implements Disposable {
}>();

/**
* Map containing all loaded fragments.
* DataMap containing all loaded fragments.
* The key is the fragment's unique identifier, and the value is the fragment itself.
*/
readonly list = new Map<string, Fragment>();
readonly list = new DataMap<string, Fragment>();

/**
* Map containing all loaded fragment groups.
* DataMap containing all loaded fragment groups.
* The key is the group's unique identifier, and the value is the group itself.
*/
readonly groups = new Map<string, FragmentsGroup>();
readonly groups = new DataMap<string, FragmentsGroup>();

baseCoordinationModel = "";
baseCoordinationMatrix = new THREE.Matrix4();
Expand Down

0 comments on commit 319391d

Please sign in to comment.