mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-18 01:02:23 +00:00
The contract text speaks of the renderer
This commit is contained in:
1 parent
9862b2a165
commit
256e992372
17 files changed
+33
-32
No files matched your search
Vendored
+5
-5
@@ -34,9 +34,9 @@ export interface RendererPlugin {
|
||||
}
|
||||
|
||||
/**
|
||||
* What only some renderers have and the application uses where given, does
|
||||
* What the renderer's plugin hands the application beside the contract; the
|
||||
* application uses each where given and does without where not. None is a
|
||||
* do is in the ports.
|
||||
* contract member: what the renderer should do is in the ports.
|
||||
*/
|
||||
export interface ApplicationHooks {
|
||||
/**
|
||||
@@ -173,9 +173,9 @@ export interface Renderer {
|
||||
releaseUnused(): void;
|
||||
on(event: 'error', cb: (error: Error) => void): Off;
|
||||
/**
|
||||
* The drawing context was lost, or came back. A renderer that cannot restore its context
|
||||
* never sends `contextRestored`; the application then makes
|
||||
* a new renderer.
|
||||
* The drawing context was lost, or came back. Where the renderer cannot
|
||||
* restore its context it never sends `contextRestored`; the application
|
||||
* then makes a new renderer.
|
||||
*/
|
||||
on(event: 'contextLost' | 'contextRestored', cb: () => void): Off;
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user