Skip to content

Conversation

@joyy-7921
Copy link
Owner

Description

Modified TracksMesh to support a linewidth attribute per track, allowing for variable line widths as set by JiveXMLLoader.

Changes

packages/phoenix-event-display

  • tracks.ts:
    • Added linewidths array to TracksMesh.
    • Updated addTrack to accept linewidth and store it.
    • Updated process to create a linewidth BufferAttribute.
    • Updated tracks_vert shader to use attribute float linewidth instead of uniform.
  • phoenix-objects.ts:
    • Updated getTracks to pass track.linewidth to tracksMesh.addTrack.

Verification Results

Automated Tests

  • Ran existing tests in phoenix-objects.test.ts: PASSED
  • Created and ran new tests in tracks.test.ts: PASSED
yarn workspace phoenix-event-display test src/tests/loaders/objects/tracks.test.ts

EdwardMoyse and others added 15 commits November 1, 2025 15:10
…stic EventEmitter

- Created framework-independent EventEmitter class to replace Angular's EventEmitter
- Removed Angular dependency from phoenix-event-display library
- Fixed Jest configuration (jest.conf.js -> jest.conf.cjs, corrected setup paths)
- Added comprehensive mocks for three.js ESM examples to resolve test issues
- Created test suite for EventEmitter with full coverage
- All tests now passing (345/345 tests, 83/83 test suites)

This change makes phoenix-event-display truly framework-agnostic and improves
the library's architecture by removing the Angular framework dependency.
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.

3 participants