Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
mod:algorithm:
- changed-files:
- any-glob-to-any-file:
- 'src/algorithms/**'

mod:animation:
- changed-files:
- any-glob-to-any-file:
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,6 @@
"dist/*"
],
"dependencies": {
"vifaa": "^0.2.0"
"vifaa": "^0.3.0"
}
}
2 changes: 0 additions & 2 deletions src/algorithms/index.js

This file was deleted.

42 changes: 0 additions & 42 deletions src/algorithms/packnumber.js

This file was deleted.

1 change: 0 additions & 1 deletion src/algorithms/sort/index.js

This file was deleted.

57 changes: 0 additions & 57 deletions src/algorithms/sort/quick.js

This file was deleted.

46 changes: 0 additions & 46 deletions src/algorithms/tests/packNumbers.test.js

This file was deleted.

2 changes: 1 addition & 1 deletion src/asset/core/handle.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/** @import {Assets} from '../resources/assets.js' */
/** @import {Constructor} from '../../type/index.js'*/

import { packInto64Int } from '../../algorithms/index.js'
import { packInto64Int } from '../../datastructures/index.js'
import { typeid } from '../../type/index.js'
import { AssetServer } from '../resources/assetserver.js'
import { AssetChannel } from './channel.js'
Expand Down
5 changes: 2 additions & 3 deletions src/asset/resources/assets.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
/** @import {AssetId} from '../types/index.js' */
/** @import {Constructor} from '../../type/index.js' */

import { unpackFrom64Int } from '../../algorithms/index.js'
import { DenseList } from '../../datastructures/index.js'
import { unpackFrom64Int, DenseList, IndexAllocator } from '../../datastructures/index.js'
import { AssetAdded, AssetDropped, AssetEvent, AssetModified } from '../events/assets.js'
import { AssetChannel, AssetChannelMessageType } from '../core/channel.js'
import { Handle } from '../core/handle.js'
Expand All @@ -21,7 +20,7 @@ export class Assets {
* @private
* @type {DenseList<AssetEntry<T>>}
*/
assets = new DenseList()
assets = new DenseList(new IndexAllocator())

/**
* @private
Expand Down
10 changes: 5 additions & 5 deletions src/audio/resources/audiograph.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** @import {NodeId} from '../../datastructures/index.js' */
import { GraphList } from '../../datastructures/index.js'
import { Graph } from '../../datastructures/index.js'

export class AudioGraph {

Expand All @@ -10,9 +10,9 @@ export class AudioGraph {
context

/**
* @type {GraphList<AudioGraphNode,undefined>}
* @type {Graph<AudioGraphNode,undefined>}
*/
graph = new GraphList()
graph = new Graph(true)

/**
* @private
Expand Down Expand Up @@ -105,11 +105,11 @@ export class AudioGraph {
}

if (value) {
for (const neighbour of this.graph.getNeighbours(id)) {
this.graph.forEachNeighbour(id, (neighbour) => {
const node = this.graph.getNodeWeight(neighbour)

if (node) value.connect(node)
}
})
}

node.weight = value
Expand Down
4 changes: 2 additions & 2 deletions src/audio/systems/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { World } from '../../ecs/index.js'
import { EnumInfo, Field, OpaqueInfo, StructInfo } from '../../reflect/core/index.js'
import { TypeRegistry } from '../../reflect/resources/index.js'
import { setTypeId, typeid, typeidGeneric } from '../../type/index.js'
import { GraphList } from '../../datastructures/index.js'
import { Graph } from '../../datastructures/index.js'
import { Handle, HandleSnapshot } from '../../asset/index.js'
import { Audio } from '../assets/index.js'
import { AudioOscillator, AudioOscillatorType, AudioPlayer, AudioPlayerSnapshot } from '../components/index.js'
Expand Down Expand Up @@ -48,7 +48,7 @@ export function registerAudioTypes(world) {
registry.get(AudioOscillator)?.setMethod(AudioOscillator.copy)
registry.get(AudioOscillator)?.setMethod(AudioOscillator.clone)
registry.register(AudioGraph, new StructInfo({
graph: new Field(typeid(GraphList))
graph: new Field(typeid(Graph))
}))
registry.register(AudioCommands, new StructInfo({}))
}
Loading
Loading