Skip to content

Commit 2796114

Browse files
committed
fix(front): make streamer url public
1 parent f9b8b4e commit 2796114

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

packages/front/package.json

Lines changed: 1 addition & 1 deletion
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.3.0-alpha.11",
4+
"version": "2.3.0-alpha.12",
55
"author": "That Open Company",
66
"contributors": [
77
"Antonio Gonzalez Viegas (https://github.com/agviegas)",

packages/front/src/fragments/IfcStreamer/index.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,12 @@ export class IfcStreamer extends OBC.Component implements OBC.Disposable {
7070
*/
7171
cancel = false;
7272

73+
/**
74+
* The URL of the data source for the streaming service.
75+
* It should be set before using the streaming service. Alternatively, you can use a custom fetch function.
76+
*/
77+
url: string = "";
78+
7379
fetch = async (fileName: string): Promise<Response | File> => {
7480
return fetch(this.url + fileName);
7581
};
@@ -85,12 +91,6 @@ export class IfcStreamer extends OBC.Component implements OBC.Disposable {
8591

8692
private _fileDB = new StreamerFileDb();
8793

88-
/**
89-
* The URL of the data source for the streaming service.
90-
* It should be set before using the streaming service. Alternatively, you can use a custom fetch function.
91-
*/
92-
private url: string = "";
93-
9494
private _isDisposing = false;
9595

9696
private _geometryInstances: {

0 commit comments

Comments
 (0)