@woosh/meep-engine 2.33.43 → 2.33.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core/geom/3d/shape/AbstractShape3D.d.ts +3 -0
- package/engine/graphics/particles/particular/engine/parameter/ParameterLookupTable.d.ts +15 -0
- package/engine/graphics/particles/particular/engine/utils/volume/AttributeValue.d.ts +14 -0
- package/engine/graphics/particles/particular/engine/utils/volume/ParticleVolume.d.ts +25 -0
- package/package.json +1 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export class ParameterLookupTable {
|
|
2
|
+
constructor(itemSize?: number)
|
|
3
|
+
|
|
4
|
+
readonly itemSize: number
|
|
5
|
+
|
|
6
|
+
toJSON(): any
|
|
7
|
+
|
|
8
|
+
fromJSON(json: any): void
|
|
9
|
+
|
|
10
|
+
sample(position: number, result: number[]): void
|
|
11
|
+
|
|
12
|
+
write(value: number[], positions: number[]): void
|
|
13
|
+
|
|
14
|
+
static from(itemSize: number, value: number[], positions: number[]): ParameterLookupTable
|
|
15
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import Signal from "../../../../../../../core/events/signal/Signal";
|
|
2
|
+
import {ParameterLookupTable} from "../../parameter/ParameterLookupTable";
|
|
3
|
+
|
|
4
|
+
export class AttributeValue {
|
|
5
|
+
readonly onValueChange: Signal<void>
|
|
6
|
+
|
|
7
|
+
lookup: (ParameterLookupTable | null)
|
|
8
|
+
|
|
9
|
+
write_lookup_value(v: number): void
|
|
10
|
+
|
|
11
|
+
write_value(v: number[]): void
|
|
12
|
+
|
|
13
|
+
read_value(destination: number[])
|
|
14
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import EntityBuilder from "../../../../../../ecs/EntityBuilder";
|
|
2
|
+
import {AbstractShape3D} from "../../../../../../../core/geom/3d/shape/AbstractShape3D";
|
|
3
|
+
import {AttributeValue} from "./AttributeValue";
|
|
4
|
+
|
|
5
|
+
interface Args {
|
|
6
|
+
density?: number
|
|
7
|
+
particle_size?: number
|
|
8
|
+
shape?: AbstractShape3D
|
|
9
|
+
sort?: boolean
|
|
10
|
+
sprite?: string
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
interface Attributes {
|
|
14
|
+
readonly color: AttributeValue
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export class ParticleVolume {
|
|
18
|
+
readonly entity: EntityBuilder
|
|
19
|
+
|
|
20
|
+
from(args?: Args): void
|
|
21
|
+
|
|
22
|
+
build(): void
|
|
23
|
+
|
|
24
|
+
readonly attributes: Attributes
|
|
25
|
+
}
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"productName": "Meep",
|
|
6
6
|
"description": "production-ready JavaScript game engine based on Entity Component System Architecture",
|
|
7
7
|
"author": "Alexander Goldring",
|
|
8
|
-
"version": "2.33.
|
|
8
|
+
"version": "2.33.44",
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"gl-matrix": "3.4.3",
|
|
11
11
|
"fast-levenshtein": "2.0.6",
|