Skip to content

Finalize events and some math classes#1

Merged
hun756 merged 386 commits into
pleyfy:devfrom
hun756:dev
Jun 29, 2025
Merged

Finalize events and some math classes#1
hun756 merged 386 commits into
pleyfy:devfrom
hun756:dev

Conversation

@hun756
Copy link
Copy Markdown
Contributor

@hun756 hun756 commented Jun 29, 2025

  • Finalize the event structure.
  • Implement a new random library
  • Implement some math libraries (vectors, quat, color)

hun756 added 30 commits April 27, 2025 10:37
hun756 added 29 commits June 27, 2025 13:49
 - Without this, emit() would just re-queue events instead of executing handlers
Introduces tests to verify EventEmitter's
 - pause/resume functionality,
 - event buffering, buffer overflow handling,
 - buffer clearing,
 - and selective queue flushing.
 - Introduces a dispose() method to the IEventEmitter interface and updates related tests to include this method
 - Also fixes a bug where the dispose method was not properly assigned to the filtered emitter.
…entEmitter

 - Introduces the excludeEvents function to create an EventEmitter that excludes specified events from being forwarded.
 - Includes corresponding unit tests to verify that excluded events are not emitted on the new emitter.
…formation

Introduces the createEventProxy utility to proxy events between two event emitters with support for:
 - event mapping,
 - data transformation,
 - bidirectional proxying,
 - and priority preservation.
 - Add PerformanceTimer interfaces to provide a unified, cross-platform way to accesssed timing.
 - This replaces the direct import of 'perf_hooks' and ensures compatibility across browser, Node.js, and fallback environments.
…arding

 - Combine multiple event emitters into a single emitter, forwarding events and errors.
 - Fix performance now type erasure problem
The EventUtils object providing common event utility functions such as:
 - debounce,
 - throttle,
 - rateLimit,
 - once,
 - compose,
 - filter,
 - map,
 - catchErrors.
@hun756 hun756 merged commit 3f299fc into pleyfy:dev Jun 29, 2025
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.

1 participant