Skip to content

Purge troika dependencies across SDK and demos - #549

Merged
dli7319 merged 1 commit into
mainfrom
troika_removal
Aug 24, 2026
Merged

Purge troika dependencies across SDK and demos#549
dli7319 merged 1 commit into
mainfrom
troika_removal

Conversation

@dli7319

@dli7319 dli7319 commented Aug 21, 2026

Copy link
Copy Markdown
Collaborator

Fixes #525

Description

Purge troika and related transitive dependencies (troika-three-text, troika-three-utils, troika-worker-utils, troika-types, bidi-js, webgl-sdf-generator) across the entire repository:

  • Replaced troika-three-text in ObjectDetectorBackend.ts with three.js TextGeometry and FontLoader using a CDN typeface.
  • Replaced troika in RemoteUserAvatar (netblocks addon) and demos (anchors_notes, world_companion, skybox_agent) with native xb.UICard and xb.UIText.
  • Fixed UICard edge configuration and marker billboarding in the world_companion demo.
  • Cleaned up troika entries from package.json, package-lock.json, rollup.config.js, tsconfig*.json, and all 38+ demo HTML importmaps.

Type of Change

  • Bug fix / Refactor
  • Dependency cleanup

Checklist

  • Tested in simulator & device: Verified object detection and spatial UI labels render correctly in desktop simulator.
  • SDK Dynamic Dependencies: Font is loaded dynamically at runtime via CDN; no troika dependencies bundled.
  • Security: Confirmed no hardcoded API keys or secrets are committed.

@dli7319
dli7319 requested a review from ruofeidu August 22, 2026 00:03
@dli7319
dli7319 marked this pull request as ready for review August 22, 2026 00:06
Base automatically changed from uiblocks_removal to main August 22, 2026 00:08
@dli7319
dli7319 force-pushed the troika_removal branch 3 times, most recently from 2fc1d48 to 80bc067 Compare August 22, 2026 00:11
@dli7319
dli7319 requested a review from whuang37 August 22, 2026 00:11
- Remove troika-three-text, troika-three-utils, troika-worker-utils, troika-types, and bidi-js dependencies.
- Replace troika text in ObjectDetectorBackend with TextGeometry and FontLoader using CDN typeface.
- Replace troika text in RemoteUserAvatar and demos (anchors_notes, world_companion, skybox_agent) with native UICard and UIText.
- Clean up troika references from rollup config, tsconfig, package.json, and all HTML importmaps.
- Fix marker placement card rendering in world_companion demo.
@dli7319
dli7319 merged commit 097f03a into main Aug 24, 2026
16 checks passed
@dli7319
dli7319 deleted the troika_removal branch August 24, 2026 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove troika dependencies.

2 participants