Skip to content

Commit

Permalink
fix(front): remove url setter and getter
Browse files Browse the repository at this point in the history
  • Loading branch information
agviegas committed Aug 29, 2024
1 parent 5bed53b commit 8be541e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 22 deletions.
2 changes: 1 addition & 1 deletion packages/front/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@thatopen/components-front",
"description": "Collection of frontend tools to author BIM apps.",
"version": "2.3.0-alpha.9",
"version": "2.3.0-alpha.10",
"author": "That Open Company",
"contributors": [
"Antonio Gonzalez Viegas (https://github.com/agviegas)",
Expand Down
26 changes: 5 additions & 21 deletions packages/front/src/fragments/IfcStreamer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,11 @@ export class IfcStreamer extends OBC.Component implements OBC.Disposable {

private _fileDB = new StreamerFileDb();

private _url: string = "";
/**
* The URL of the data source for the streaming service.
* It should be set before using the streaming service. Alternatively, you can use a custom fetch function.
*/
private url: string = "";

private _isDisposing = false;

Expand All @@ -104,26 +108,6 @@ export class IfcStreamer extends OBC.Component implements OBC.Disposable {
opacity: 0.5,
});

/**
* The URL of the data source for the streaming service.
* It must be set before using the streaming service.
* If not set, an error will be thrown when trying to access the URL.
*/
get url() {
if (!this._url) {
throw new Error("url must be set before using the streaming service!");
}
return this._url;
}

/**
* Sets the URL of the data source for the streaming service.
* @param value - The new URL to be set.
*/
set url(value: string) {
this._url = value;
}

/**
* The world in which the fragments will be displayed.
* It must be set before using the streaming service.
Expand Down

0 comments on commit 8be541e

Please sign in to comment.