@fcannizzaro/streamdeck-react 0.1.11 → 0.1.13
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 +11 -8
- package/dist/action.js +0 -1
- package/dist/adapter/index.d.ts +2 -0
- package/dist/adapter/physical-device.d.ts +2 -0
- package/dist/adapter/physical-device.js +153 -0
- package/dist/adapter/types.d.ts +127 -0
- package/dist/bundler-shared.d.ts +10 -0
- package/dist/bundler-shared.js +28 -1
- package/dist/devtools/bridge.d.ts +2 -2
- package/dist/devtools/bridge.js +7 -8
- package/dist/devtools/highlight.d.ts +1 -2
- package/dist/devtools/highlight.js +4 -3
- package/dist/devtools/types.d.ts +5 -5
- package/dist/font-inline.js +1 -1
- package/dist/google-font.d.ts +61 -0
- package/dist/google-font.js +124 -0
- package/dist/hooks/animation.d.ts +1 -1
- package/dist/hooks/animation.js +2 -2
- package/dist/hooks/events.js +1 -1
- package/dist/hooks/sdk.js +11 -11
- package/dist/hooks/utility.js +3 -2
- package/dist/index.d.ts +5 -1
- package/dist/index.js +3 -1
- package/dist/plugin.js +102 -124
- package/dist/reconciler/vnode.d.ts +0 -2
- package/dist/reconciler/vnode.js +0 -1
- package/dist/render/cache.d.ts +5 -17
- package/dist/render/cache.js +7 -29
- package/dist/render/image-cache.d.ts +8 -7
- package/dist/render/image-cache.js +33 -17
- package/dist/render/metrics.d.ts +9 -10
- package/dist/render/metrics.js +36 -39
- package/dist/render/pipeline.d.ts +4 -14
- package/dist/render/pipeline.js +47 -111
- package/dist/render/png.d.ts +0 -9
- package/dist/render/png.js +5 -8
- package/dist/render/render-pool.d.ts +0 -2
- package/dist/render/render-pool.js +1 -12
- package/dist/rollup.d.ts +1 -1
- package/dist/rollup.js +3 -1
- package/dist/roots/registry.d.ts +5 -9
- package/dist/roots/registry.js +30 -47
- package/dist/roots/root.d.ts +7 -34
- package/dist/roots/root.js +23 -90
- package/dist/roots/touchstrip-root.d.ts +6 -32
- package/dist/roots/touchstrip-root.js +61 -181
- package/dist/types.d.ts +38 -20
- package/dist/vite.d.ts +1 -1
- package/dist/vite.js +3 -1
- package/package.json +14 -8
- package/dist/node_modules/.bun/xxhash-wasm@1.1.0/node_modules/xxhash-wasm/esm/xxhash-wasm.js +0 -3157
- package/dist/roots/flush-coordinator.d.ts +0 -18
- package/dist/roots/flush-coordinator.js +0 -38
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/** Any root that can participate in prioritized flushing. */
|
|
2
|
-
export interface FlushableRoot {
|
|
3
|
-
/** Current render priority. 0 = animating (highest), 3 = idle (lowest). */
|
|
4
|
-
readonly priority: number;
|
|
5
|
-
/** Execute the flush (render + push to hardware). */
|
|
6
|
-
executeFlush(): Promise<void>;
|
|
7
|
-
}
|
|
8
|
-
export declare class FlushCoordinator {
|
|
9
|
-
private pending;
|
|
10
|
-
private scheduled;
|
|
11
|
-
private draining;
|
|
12
|
-
/**
|
|
13
|
-
* Enqueue a root for flushing. Flushes are batched via microtask
|
|
14
|
-
* and processed in priority order.
|
|
15
|
-
*/
|
|
16
|
-
requestFlush(root: FlushableRoot): void;
|
|
17
|
-
private drain;
|
|
18
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
//#region src/roots/flush-coordinator.ts
|
|
2
|
-
var FlushCoordinator = class {
|
|
3
|
-
pending = /* @__PURE__ */ new Set();
|
|
4
|
-
scheduled = false;
|
|
5
|
-
draining = false;
|
|
6
|
-
/**
|
|
7
|
-
* Enqueue a root for flushing. Flushes are batched via microtask
|
|
8
|
-
* and processed in priority order.
|
|
9
|
-
*/
|
|
10
|
-
requestFlush(root) {
|
|
11
|
-
this.pending.add(root);
|
|
12
|
-
if (!this.scheduled && !this.draining) {
|
|
13
|
-
this.scheduled = true;
|
|
14
|
-
queueMicrotask(() => this.drain());
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
async drain() {
|
|
18
|
-
this.scheduled = false;
|
|
19
|
-
if (this.draining || this.pending.size === 0) return;
|
|
20
|
-
this.draining = true;
|
|
21
|
-
try {
|
|
22
|
-
while (this.pending.size > 0) {
|
|
23
|
-
const roots = [...this.pending];
|
|
24
|
-
this.pending.clear();
|
|
25
|
-
roots.sort((a, b) => a.priority - b.priority);
|
|
26
|
-
for (const root of roots) await root.executeFlush();
|
|
27
|
-
}
|
|
28
|
-
} finally {
|
|
29
|
-
this.draining = false;
|
|
30
|
-
if (this.pending.size > 0 && !this.scheduled) {
|
|
31
|
-
this.scheduled = true;
|
|
32
|
-
queueMicrotask(() => this.drain());
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
//#endregion
|
|
38
|
-
export { FlushCoordinator };
|