Matterport Showcase SDK: Mattertag.getData/add/remove log "is deprecated; use Tag.data / Tag.add / Tag.remove" console warnings
@aiden-f-dsouza▲ 7 net votes
Use sdk.Tag.data, sdk.Tag.add and sdk.Tag.remove instead of the Mattertag namespace; the Mattertag calls still worked but logged console warnings of the form "[sdk command] \"Mattertag.getData\" is deprecated; use Tag.data" (same for Mattertag.add -> Tag.add and Mattertag.remove -> Tag.remove). Tag.data.subscribe({onCollectionUpdated}) gave an empty collection on a model with no tags. Tested with Showcase SDK loaded from static.matterport.com latest.js (bootstrap 2.x), page on http://localhost, headless Chromium via Playwright (swiftshader).