@taole/giftstage 0.1.29 → 0.1.31
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.
- package/README.md +3 -2
- package/dist/core/gift-stage.d.ts +8 -0
- package/dist/gift-stage.cjs.js +7 -7
- package/dist/gift-stage.es.js +666 -613
- package/dist/renderers/image-renderer.d.ts +2 -4
- package/dist/types/index.d.ts +4 -0
- package/package.json +1 -1
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import type { GPUBackend, GiftSlot } from '../types';
|
|
2
2
|
export declare class ImageRenderer {
|
|
3
|
-
private
|
|
4
|
-
private topLeftQuadVB;
|
|
3
|
+
private quadVB;
|
|
5
4
|
private quadIB;
|
|
6
5
|
private readonly scratchTransform;
|
|
7
6
|
private projCacheW;
|
|
8
7
|
private projCacheH;
|
|
9
8
|
private projCache;
|
|
10
|
-
private static readonly
|
|
11
|
-
private static readonly QUAD_VERTS_TOP_LEFT;
|
|
9
|
+
private static readonly QUAD_VERTS;
|
|
12
10
|
private static readonly QUAD_INDICES;
|
|
13
11
|
drawSlot(backend: GPUBackend, slot: GiftSlot): void;
|
|
14
12
|
destroy(backend: GPUBackend): void;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -560,6 +560,10 @@ export interface GiftSlot {
|
|
|
560
560
|
loopCount: number;
|
|
561
561
|
videoEntity: VideoEntity | null;
|
|
562
562
|
loadAbortController?: AbortController | null;
|
|
563
|
+
/** HTMLVideoElement finite-playback watchdog; cleared on normal completion or resource release. */
|
|
564
|
+
videoPlaybackWatchdogTimer?: ReturnType<typeof setTimeout> | null;
|
|
565
|
+
/** Guards the HTMLVideo ended/watchdog race so completion is dispatched exactly once. */
|
|
566
|
+
videoPlaybackCompletionStarted?: boolean;
|
|
563
567
|
svgaSlotTextures?: Map<string, ResolvedSVGASlotTexture>;
|
|
564
568
|
videoElement: HTMLVideoElement | null;
|
|
565
569
|
releaseMediaSource?: (() => void) | null;
|
package/package.json
CHANGED