Skip to content

Commit e340c6f

Browse files
authored
Update buildingpart.js
1 parent c11363e commit e340c6f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/buildingpart.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ class BuildingPart {
2222
// DOM of the building part way
2323
way;
2424

25-
// THREE.Shape of the outline.
25+
/** @type {THREE.Shape} the outline. */
2626
shape;
2727

28-
// THREE.Mesh of the roof
28+
/** @type {THREE.Mesh} the roof */
2929
roof;
3030

31-
// array of Cartesian coordinates of every node.
31+
/** @type {Object.<string, [number, number]>} Cartesian coordinates of every node keyed by refId. */
3232
nodelist = [];
3333

3434
// Metadata of the building part.
@@ -66,7 +66,7 @@ class BuildingPart {
6666
/**
6767
* @param {number} id - the OSM id of the way or multipolygon.
6868
* @param {XMLDocument} fullXmlData - XML for the region.
69-
* @param {[[number, number],...]} nodelist - Cartesian coordinates of each node keyed by node refID
69+
* @param {Object.<string, [number, number]>} nodelist - Cartesian coordinates of each node keyed by node refID
7070
* @param {object} options - default values for the building part.
7171
*/
7272
constructor(id, fullXmlData, nodelist, defaultOptions = {}) {

0 commit comments

Comments
 (0)