Skip to content

BatchQueryView

Defined in: packages/three-flatland/src/pipeline/batchQuery.ts:47

Read-only view over a world’s batches: a Map<RunKey, SpriteBatch[]> with a classification query —

const lit = group.batches.where(IsLitBatch)

Trait existence is the architectural fact; system implementations may evolve from branch → query-narrowing as workload demands without breaking this surface.

  • Map<string, SpriteBatch[]>

new BatchQueryView(entries?): BatchQueryView

Defined in: packages/three-flatland/src/pipeline/batchQuery.ts:50

Iterable<readonly [string, SpriteBatch[]], any, any>

BatchQueryView

Map<string, SpriteBatch[]>.constructor

readonly [toStringTag]: string

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts:137

Map.[toStringTag]


readonly size: number

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.collection.d.ts:45

the number of elements in the Map.

Map.size


readonly static [species]: MapConstructor

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts:319

Map.[species]

[iterator](): MapIterator<[string, SpriteBatch[]]>

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts:143

Returns an iterable of entries in the map.

MapIterator<[string, SpriteBatch[]]>

Map.[iterator]


clear(): void

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.collection.d.ts:20

void

Map.clear


delete(key): boolean

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.collection.d.ts:24

string

boolean

true if an element in the Map existed and has been removed, or false if the element does not exist.

Map.delete


entries(): MapIterator<[string, SpriteBatch[]]>

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts:148

Returns an iterable of key, value pairs for every entry in the map.

MapIterator<[string, SpriteBatch[]]>

Map.entries


forEach(callbackfn, thisArg?): void

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.collection.d.ts:28

Executes a provided function once per each key/value pair in the Map, in insertion order.

(value, key, map) => void

any

void

Map.forEach


get(key): SpriteBatch[] | undefined

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.collection.d.ts:33

Returns a specified element from the Map object. If the value that is associated to the provided key is an object, then you will get a reference to that object and any change made to that object will effectively modify it inside the Map.

string

SpriteBatch[] | undefined

Returns the element associated with the specified key. If no element is associated with the specified key, undefined is returned.

Map.get


has(key): boolean

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.collection.d.ts:37

string

boolean

boolean indicating whether an element with the specified key exists or not.

Map.has


keys(): MapIterator<string>

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts:153

Returns an iterable of keys in the map

MapIterator<string>

Map.keys


set(key, value): this

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.collection.d.ts:41

Adds a new element with a specified key and value to the Map. If an element with the same key already exists, the element will be updated.

string

SpriteBatch[]

this

Map.set


values(): MapIterator<SpriteBatch[]>

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts:158

Returns an iterable of values in the map

MapIterator<SpriteBatch[]>

Map.values


where(tag): SpriteBatch[]

Defined in: packages/three-flatland/src/pipeline/batchQuery.ts:57

All batches currently tagged with the given classification.

BatchQueryTag

SpriteBatch[]