-
Notifications
You must be signed in to change notification settings - Fork 0
@ralphschuler.webgl shader factory.<internal>.OffscreenCanvas
@ralphschuler/webgl-shader-factory.<internal>.OffscreenCanvas
-
EventTarget
↳
OffscreenCanvas
• height: number
These attributes return the dimensions of the OffscreenCanvas object's bitmap.
They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).
node_modules/typescript/lib/lib.dom.d.ts:16582
• oncontextlost: null
| (this
: OffscreenCanvas
, ev
: Event
) => any
node_modules/typescript/lib/lib.dom.d.ts:16583
• oncontextrestored: null
| (this
: OffscreenCanvas
, ev
: Event
) => any
node_modules/typescript/lib/lib.dom.d.ts:16584
• width: number
These attributes return the dimensions of the OffscreenCanvas object's bitmap.
They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).
node_modules/typescript/lib/lib.dom.d.ts:16592
▸ addEventListener<K
>(type
, listener
, options?
): void
Name | Type |
---|---|
K |
extends keyof OffscreenCanvasEventMap
|
Name | Type |
---|---|
type |
K |
listener |
(this : OffscreenCanvas , ev : OffscreenCanvasEventMap [K ]) => any
|
options? |
boolean | AddEventListenerOptions
|
void
EventTarget.addEventListener
node_modules/typescript/lib/lib.dom.d.ts:16621
▸ addEventListener(type
, listener
, options?
): void
Name | Type |
---|---|
type |
string |
listener |
EventListenerOrEventListenerObject |
options? |
boolean | AddEventListenerOptions
|
void
EventTarget.addEventListener
node_modules/typescript/lib/lib.dom.d.ts:16622
▸ convertToBlob(options?
): Promise
<Blob
>
Returns a promise that will fulfill with a new Blob object representing a file containing the image in the OffscreenCanvas object.
The argument, if provided, is a dictionary that controls the encoding options of the image file to be created. The type field specifies the file format and has a default value of "image/png"; that type is also used if the requested type isn't supported. If the image format supports variable quality (such as "image/jpeg"), then the quality field is a number in the range 0.0 to 1.0 inclusive indicating the desired quality level for the resulting image.
Name | Type |
---|---|
options? |
ImageEncodeOptions |
Promise
<Blob
>
node_modules/typescript/lib/lib.dom.d.ts:16600
▸ dispatchEvent(event
): boolean
Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
Name | Type |
---|---|
event |
Event |
boolean
EventTarget.dispatchEvent
node_modules/typescript/lib/lib.dom.d.ts:8217
▸ getContext(contextId
, options?
): null
| OffscreenCanvasRenderingContext2D
Returns an object that exposes an API for drawing on the OffscreenCanvas object. contextId specifies the desired API: "2d", "bitmaprenderer", "webgl", or "webgl2". options is handled by that API.
This specification defines the "2d" context below, which is similar but distinct from the "2d" context that is created from a canvas element. The WebGL specifications define the "webgl" and "webgl2" contexts. [WEBGL]
Returns null if the canvas has already been initialized with another context type (e.g., trying to get a "2d" context after getting a "webgl" context).
Name | Type |
---|---|
contextId |
"2d" |
options? |
any |
null
| OffscreenCanvasRenderingContext2D
node_modules/typescript/lib/lib.dom.d.ts:16610
▸ getContext(contextId
, options?
): null
| ImageBitmapRenderingContext
Name | Type |
---|---|
contextId |
"bitmaprenderer" |
options? |
any |
null
| ImageBitmapRenderingContext
node_modules/typescript/lib/lib.dom.d.ts:16611
▸ getContext(contextId
, options?
): null
| WebGLRenderingContext
Name | Type |
---|---|
contextId |
"webgl" |
options? |
any |
null
| WebGLRenderingContext
node_modules/typescript/lib/lib.dom.d.ts:16612
▸ getContext(contextId
, options?
): null
| WebGL2RenderingContext
Name | Type |
---|---|
contextId |
"webgl2" |
options? |
any |
null
| WebGL2RenderingContext
node_modules/typescript/lib/lib.dom.d.ts:16613
▸ getContext(contextId
, options?
): null
| OffscreenRenderingContext
Name | Type |
---|---|
contextId |
OffscreenRenderingContextId |
options? |
any |
null
| OffscreenRenderingContext
node_modules/typescript/lib/lib.dom.d.ts:16614
▸ removeEventListener<K
>(type
, listener
, options?
): void
Name | Type |
---|---|
K |
extends keyof OffscreenCanvasEventMap
|
Name | Type |
---|---|
type |
K |
listener |
(this : OffscreenCanvas , ev : OffscreenCanvasEventMap [K ]) => any
|
options? |
boolean | EventListenerOptions
|
void
EventTarget.removeEventListener
node_modules/typescript/lib/lib.dom.d.ts:16623
▸ removeEventListener(type
, listener
, options?
): void
Name | Type |
---|---|
type |
string |
listener |
EventListenerOrEventListenerObject |
options? |
boolean | EventListenerOptions
|
void
EventTarget.removeEventListener
node_modules/typescript/lib/lib.dom.d.ts:16624
▸ transferToImageBitmap(): ImageBitmap
Returns a newly created ImageBitmap object with the image in the OffscreenCanvas object. The image in the OffscreenCanvas object is replaced with a new blank image.
node_modules/typescript/lib/lib.dom.d.ts:16620
- @ralphschuler/ai-function-caller
- index
- types/AIFunction
- types/Message
- @ralphschuler/assert
- assert
- assert
- assert
- assert
- assert
- assert
- assert
- assert
- assert
- assert
- assert
- assert
- assert
- error
- index
- util
- @ralphschuler/better-map
- @ralphschuler/better-set
- @ralphschuler/binary-serializer
- @ralphschuler/bit-mask
- @ralphschuler/complex-compare
- @ralphschuler/i811n
- @ralphschuler/logger
- Color
- ColorMap
- Logger
- animations/BallonAnimation
- animations/BaseAnimation
- animations/BombAnimation
- animations/BouncingBallAnimation
- animations/ClockAnimation
- animations/DotsAnimation
- animations/HorizontalBarAnimation
- animations/PongAnimation
- animations/ProgressAnimation
- animations/ProgressBarAnimation
- animations/SpinnerAnimation
- animations/VerticalBarAnimation
- enums/LogLevel
- index
- interfaces/IColor
- interfaces/IMessage
- types/ColorName
- types/Colors
- @ralphschuler/lsystem
- @ralphschuler/mixin-class-factory
- @ralphschuler/neuronal-network
- @ralphschuler/parser-combinator
- index
- inputTypes
- parser
- unicode
- @ralphschuler/prom-metrics-decorator
- @ralphschuler/prom-metrics-parser
- @ralphschuler/random
- PseudoRandomItemSelector
- PseudoRandomNumberGenerator
- Seed
- index
- strategies
- strategy
- strategy
- strategy
- strategy
- strategy
- strategy
- types
- type
- type
- type
- @ralphschuler/safe-array
- @ralphschuler/slot-mashine
- @ralphschuler/state-store
- StateStore
- index
- type
- type
- type
- type
- type
- type
- type
- type
- util
- @ralphschuler/stats-tracker
- @ralphschuler/ts-error
- error
- index
- type
- util
- util
- util
- util
- @ralphschuler/webgl-sand-engine
- index
- pixel-renderer
- @ralphschuler/webgl-shader-factory
- "node:stream/consumers"
- "node:stream/promises"
- ChatCompletionSnapshot
- Choice
- Message
- ToolCall
- EventEmitter
- FormData
- OpenAI
- OpenAI
- Audio
- Speech
- Transcriptions
- Translations
- Beta
- Assistants
- Assistant
- AssistantCreateParams
- AssistantUpdateParams
- Files
- Chat
- Threads
- Messages
- Files
- MessageContentImageFile
- MessageContentText
- Text
- FileCitation
- FilePath
- Runs
- RequiredActionFunctionToolCall
- Run
- RequiredAction
- RunCreateParams
- RunSubmitToolOutputsParams
- Steps
- CodeToolCall
- CodeInterpreter
- Image
- FunctionToolCall
- MessageCreationStepDetails
- RunStep
- ThreadCreateAndRunParams
- Thread
- ThreadCreateParams
- Chat
- Completions
- ChatCompletion
- ChatCompletionAssistantMessageParam
- ChatCompletionChunk
- Choice
- Delta
- ToolCall
- ChatCompletionContentPartImage
- ChatCompletionCreateParams
- ChatCompletionMessage
- ChatCompletionMessageToolCall
- ChatCompletionNamedToolChoice
- Completions
- CompletionChoice
- CompletionCreateParams
- Edits
- Edit
- Embeddings
- CreateEmbeddingResponse
- Files
- FineTunes
- FineTune
- FineTuneCreateParams
- FineTuneListEventsParams
- FineTuning
- Jobs
- FineTuningJob
- JobCreateParams
- Images
- Models
- Moderations
- Moderation
- internal
- finished
- pipeline
- "node:stream/consumers"
- "node:stream/promises"
- EventEmitter
- internal
- finished
- pipeline
- Counter
- Gauge
- Histogram
- Summary