Usage of the SDK constitutes your agreement with the Matterport SDK Agreement. Email developers@matterport.com with any questions.
Index
Types
Label
Type declaration
-
floor: number
-
floor
Info: object -
id: string
-
sequence: number
-
-
position: Vector3
-
sid: string
-
text: string
-
visible: boolean
LabelDeprecated
Properties
data
Introduced 3.1.68.12-7-g858688944a
An observable map of the current labels. Returns an object with a map of labels.
mpSdk.Label.data.subscribe({
onAdded: function (index, item, collection) {
console.log('Label added to the collection', index, item, collection);
},
onRemoved: function (index, item, collection) {
console.log('Label removed from the collection', index, item, collection);
},
onUpdated: function (index, item, collection) {
console.log('Label updated in place in the collection', index, item, collection);
},
});
Methods
getData
-
This function returns the data of all labels.
Returns Promise<Label.LabelDeprecated[]>