quake2ts 0.0.436 → 0.0.437

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13008,6 +13008,17 @@ var DemoPlaybackController = class {
13008
13008
  getSpeed() {
13009
13009
  return this.playbackSpeed;
13010
13010
  }
13011
+ getPlaybackSpeed() {
13012
+ return this.playbackSpeed;
13013
+ }
13014
+ /**
13015
+ * Returns the interpolation factor (0.0 to 1.0) for the current frame.
13016
+ * Used for smooth rendering between demo frames.
13017
+ */
13018
+ getInterpolationFactor() {
13019
+ if (this.frameDuration <= 0) return 0;
13020
+ return Math.max(0, Math.min(1, this.accumulatedTime / this.frameDuration));
13021
+ }
13011
13022
  update(dt) {
13012
13023
  if (this.state !== 1 /* Playing */ || !this.reader) {
13013
13024
  return;