Skip to content
This repository was archived by the owner on Nov 18, 2025. It is now read-only.

Commit 8fa95bb

Browse files
committed
PATCH: fix typo in BCF.Line object. From LineSeriaizer to Line
1 parent 0c322fc commit 8fa95bb

7 files changed

Lines changed: 102 additions & 18 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ Class | Method | HTTP request | Description
432432
- [bimdata.Label](docs/Label.md)
433433
- [bimdata.Layer](docs/Layer.md)
434434
- [bimdata.LayerElement](docs/LayerElement.md)
435-
- [bimdata.LineSeriaizer](docs/LineSeriaizer.md)
435+
- [bimdata.Line](docs/Line.md)
436436
- [bimdata.OrthogonalCamera](docs/OrthogonalCamera.md)
437437
- [bimdata.PerspectiveCamera](docs/PerspectiveCamera.md)
438438
- [bimdata.Point](docs/Point.md)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# bimdata.LineSeriaizer
1+
# bimdata.Line
22

33
## Properties
44

docs/Viewpoint.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
88
**guid** | **String** | | [optional]
99
**orthogonalCamera** | [**OrthogonalCamera**](OrthogonalCamera.md) | | [optional]
1010
**perspectiveCamera** | [**PerspectiveCamera**](PerspectiveCamera.md) | | [optional]
11-
**lines** | [**[LineSeriaizer]**](LineSeriaizer.md) | | [optional]
11+
**lines** | [**[Line]**](Line.md) | | [optional]
1212
**clippingPlanes** | [**[ClippingPlane]**](ClippingPlane.md) | | [optional]
1313
**snapshot** | [**Snapshot**](Snapshot.md) | | [optional]
1414
**components** | [**ComponentsParent**](ComponentsParent.md) | | [optional]

src/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ import Invitation from './model/Invitation';
4848
import Label from './model/Label';
4949
import Layer from './model/Layer';
5050
import LayerElement from './model/LayerElement';
51-
import LineSeriaizer from './model/LineSeriaizer';
51+
import Line from './model/Line';
5252
import OrthogonalCamera from './model/OrthogonalCamera';
5353
import PerspectiveCamera from './model/PerspectiveCamera';
5454
import Point from './model/Point';
@@ -352,10 +352,10 @@ export {
352352
LayerElement,
353353

354354
/**
355-
* The LineSeriaizer model constructor.
356-
* @property {module:model/LineSeriaizer}
355+
* The Line model constructor.
356+
* @property {module:model/Line}
357357
*/
358-
LineSeriaizer,
358+
Line,
359359

360360
/**
361361
* The OrthogonalCamera model constructor.

src/model/Line.js

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
/**
2+
* BIMData API
3+
* BIMData API is a tool to interact with your models stored on BIMData’s servers. Through the API, you can manage your projects, the clouds, upload your IFC files and manage them through endpoints.
4+
*
5+
* The version of the OpenAPI document: v1
6+
* Contact: contact@bimdata.io
7+
*
8+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9+
* https://openapi-generator.tech
10+
* Do not edit the class manually.
11+
*
12+
*/
13+
14+
import ApiClient from '../ApiClient';
15+
import Point from './Point';
16+
17+
/**
18+
* The Line model module.
19+
* @module model/Line
20+
* @version 0.0.0
21+
*/
22+
class Line {
23+
/**
24+
* Constructs a new <code>Line</code>.
25+
* @alias module:model/Line
26+
* @param endPoint {module:model/Point}
27+
* @param startPoint {module:model/Point}
28+
*/
29+
constructor(endPoint, startPoint) {
30+
31+
Line.initialize(this, endPoint, startPoint);
32+
}
33+
34+
/**
35+
* Initializes the fields of this object.
36+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
37+
* Only for internal use.
38+
*/
39+
static initialize(obj, endPoint, startPoint) {
40+
obj['end_point'] = endPoint;
41+
obj['start_point'] = startPoint;
42+
}
43+
44+
/**
45+
* Constructs a <code>Line</code> from a plain JavaScript object, optionally creating a new instance.
46+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
47+
* @param {Object} data The plain JavaScript object bearing properties of interest.
48+
* @param {module:model/Line} obj Optional instance to populate.
49+
* @return {module:model/Line} The populated <code>Line</code> instance.
50+
*/
51+
static constructFromObject(data, obj) {
52+
if (data) {
53+
obj = obj || new Line();
54+
55+
if (data.hasOwnProperty('end_point')) {
56+
obj['end_point'] = Point.constructFromObject(data['end_point']);
57+
}
58+
if (data.hasOwnProperty('start_point')) {
59+
obj['start_point'] = Point.constructFromObject(data['start_point']);
60+
}
61+
}
62+
return obj;
63+
}
64+
65+
66+
}
67+
68+
/**
69+
* @member {module:model/Point} end_point
70+
*/
71+
Line.prototype['end_point'] = undefined;
72+
73+
/**
74+
* @member {module:model/Point} start_point
75+
*/
76+
Line.prototype['start_point'] = undefined;
77+
78+
79+
80+
81+
82+
83+
export default Line;
84+

src/model/Viewpoint.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import ApiClient from '../ApiClient';
1515
import ClippingPlane from './ClippingPlane';
1616
import ComponentsParent from './ComponentsParent';
17-
import LineSeriaizer from './LineSeriaizer';
17+
import Line from './Line';
1818
import OrthogonalCamera from './OrthogonalCamera';
1919
import PerspectiveCamera from './PerspectiveCamera';
2020
import Snapshot from './Snapshot';
@@ -66,7 +66,7 @@ class Viewpoint {
6666
obj['perspective_camera'] = PerspectiveCamera.constructFromObject(data['perspective_camera']);
6767
}
6868
if (data.hasOwnProperty('lines')) {
69-
obj['lines'] = ApiClient.convertToType(data['lines'], [LineSeriaizer]);
69+
obj['lines'] = ApiClient.convertToType(data['lines'], [Line]);
7070
}
7171
if (data.hasOwnProperty('clipping_planes')) {
7272
obj['clipping_planes'] = ApiClient.convertToType(data['clipping_planes'], [ClippingPlane]);
@@ -108,7 +108,7 @@ Viewpoint.prototype['orthogonal_camera'] = undefined;
108108
Viewpoint.prototype['perspective_camera'] = undefined;
109109

110110
/**
111-
* @member {Array.<module:model/LineSeriaizer>} lines
111+
* @member {Array.<module:model/Line>} lines
112112
*/
113113
Viewpoint.prototype['lines'] = undefined;
114114

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
var instance;
2929

3030
beforeEach(function() {
31-
instance = new bimdata.LineSeriaizer();
31+
instance = new bimdata.Line();
3232
});
3333

3434
var getProperty = function(object, getter, property) {
@@ -47,22 +47,22 @@
4747
object[property] = value;
4848
}
4949

50-
describe('LineSeriaizer', function() {
51-
it('should create an instance of LineSeriaizer', function() {
52-
// uncomment below and update the code to test LineSeriaizer
53-
//var instane = new bimdata.LineSeriaizer();
54-
//expect(instance).to.be.a(bimdata.LineSeriaizer);
50+
describe('Line', function() {
51+
it('should create an instance of Line', function() {
52+
// uncomment below and update the code to test Line
53+
//var instane = new bimdata.Line();
54+
//expect(instance).to.be.a(bimdata.Line);
5555
});
5656

5757
it('should have the property endPoint (base name: "end_point")', function() {
5858
// uncomment below and update the code to test the property endPoint
59-
//var instane = new bimdata.LineSeriaizer();
59+
//var instane = new bimdata.Line();
6060
//expect(instance).to.be();
6161
});
6262

6363
it('should have the property startPoint (base name: "start_point")', function() {
6464
// uncomment below and update the code to test the property startPoint
65-
//var instane = new bimdata.LineSeriaizer();
65+
//var instane = new bimdata.Line();
6666
//expect(instance).to.be();
6767
});
6868

0 commit comments

Comments
 (0)