feat: add render graph driven renderer architecture
Amp-Thread-ID: https://ampcode.com/threads/T-019f9d91-77c1-7206-a60f-ed6554ce92ab Co-authored-by: Heaust Azure <heaust.azure@gmail.com>
This commit is contained in:
+26
@@ -0,0 +1,26 @@
|
||||
import type { CompositionReceipt, FxNode, FxNodeView } from "@lib/index.js";
|
||||
import type { PreparedFxNodeBrowserHost } from "./browser-host.js";
|
||||
|
||||
declare global {
|
||||
interface StandaloneExampleHandle {
|
||||
root: FxNode | null;
|
||||
view: FxNodeView | null;
|
||||
host: PreparedFxNodeBrowserHost;
|
||||
ready: Promise<void>;
|
||||
graphVersion?: number;
|
||||
lastCompositionReceipt?: CompositionReceipt;
|
||||
cleanup(): void;
|
||||
}
|
||||
interface Window {
|
||||
fxnodeStandalone: StandaloneExampleHandle;
|
||||
fxnodeMultiView: MultiViewExampleHandle;
|
||||
}
|
||||
interface MultiViewExampleHandle {
|
||||
root: FxNode | null;
|
||||
views: FxNodeView[];
|
||||
ready: Promise<void>;
|
||||
cleanup(): Promise<void>;
|
||||
renderCounts: number[];
|
||||
}
|
||||
}
|
||||
export {};
|
||||
Reference in New Issue
Block a user