-
Notifications
You must be signed in to change notification settings - Fork 0
@ralphschuler.webgl shader factory.<internal>.DOMTokenList
@ralphschuler/webgl-shader-factory.<internal>.DOMTokenList
A set of space-separated tokens. Such a set is returned by Element.classList, HTMLLinkElement.relList, HTMLAnchorElement.relList, HTMLAreaElement.relList, HTMLIframeElement.sandbox, or HTMLOutputElement.htmlFor. It is indexed beginning with 0 as with JavaScript Array objects. DOMTokenList is always case-sensitive.
▪ [index: number
]: string
• Readonly
length: number
Returns the number of tokens.
node_modules/typescript/lib/lib.dom.d.ts:6384
• value: string
Returns the associated set as string.
Can be set, to change the associated attribute.
node_modules/typescript/lib/lib.dom.d.ts:6392
▸ add(...tokens
): void
Adds all arguments passed, except those already present.
Throws a "SyntaxError" DOMException if one of the arguments is the empty string.
Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace.
Name | Type |
---|---|
...tokens |
string [] |
void
node_modules/typescript/lib/lib.dom.d.ts:6403
▸ contains(token
): boolean
Returns true if token is present, and false otherwise.
Name | Type |
---|---|
token |
string |
boolean
node_modules/typescript/lib/lib.dom.d.ts:6409
▸ forEach(callbackfn
, thisArg?
): void
Name | Type |
---|---|
callbackfn |
(value : string , key : number , parent : DOMTokenList ) => void
|
thisArg? |
any |
void
node_modules/typescript/lib/lib.dom.d.ts:6458
▸ item(index
): null
| string
Returns the token with index index.
Name | Type |
---|---|
index |
number |
null
| string
node_modules/typescript/lib/lib.dom.d.ts:6415
▸ remove(...tokens
): void
Removes arguments passed, if they are present.
Throws a "SyntaxError" DOMException if one of the arguments is the empty string.
Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace.
Name | Type |
---|---|
...tokens |
string [] |
void
node_modules/typescript/lib/lib.dom.d.ts:6425
▸ replace(token
, newToken
): boolean
Replaces token with newToken.
Returns true if token was replaced with newToken, and false otherwise.
Throws a "SyntaxError" DOMException if one of the arguments is the empty string.
Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace.
Name | Type |
---|---|
token |
string |
newToken |
string |
boolean
node_modules/typescript/lib/lib.dom.d.ts:6437
▸ supports(token
): boolean
Returns true if token is in the associated attribute's supported tokens. Returns false otherwise.
Throws a TypeError if the associated attribute has no supported tokens defined.
Name | Type |
---|---|
token |
string |
boolean
node_modules/typescript/lib/lib.dom.d.ts:6445
▸ toString(): string
string
node_modules/typescript/lib/lib.dom.d.ts:6393
▸ toggle(token
, force?
): boolean
If force is not given, "toggles" token, removing it if it's present and adding it if it's not present. If force is true, adds token (same as add()). If force is false, removes token (same as remove()).
Returns true if token is now present, and false otherwise.
Throws a "SyntaxError" DOMException if token is empty.
Throws an "InvalidCharacterError" DOMException if token contains any spaces.
Name | Type |
---|---|
token |
string |
force? |
boolean |
boolean
node_modules/typescript/lib/lib.dom.d.ts:6457
- @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