@woosh/meep-engine 2.43.43 → 2.43.45
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.
|
@@ -22,7 +22,9 @@ export class CodecWithFallback extends Codec {
|
|
|
22
22
|
for (let i = 0; i < codec_count; i++) {
|
|
23
23
|
const codec = codecs[i];
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
const codec_supports_data = await codec.test(data);
|
|
26
|
+
|
|
27
|
+
if (codec_supports_data) {
|
|
26
28
|
return true;
|
|
27
29
|
}
|
|
28
30
|
}
|
|
@@ -42,7 +44,9 @@ export class CodecWithFallback extends Codec {
|
|
|
42
44
|
for (let i = 0; i < codec_count; i++) {
|
|
43
45
|
const codec = codecs[i];
|
|
44
46
|
|
|
45
|
-
|
|
47
|
+
const codec_supports_data = await codec.test(data);
|
|
48
|
+
|
|
49
|
+
if (!codec_supports_data) {
|
|
46
50
|
errors.push({
|
|
47
51
|
index: i, error: "Codec doesn't support this data"
|
|
48
52
|
});
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import {BufferGeometry, Material} from "three";
|
|
2
2
|
import {AABB3} from "../../../../core/bvh2/aabb3/AABB3";
|
|
3
|
+
import {DrawMode} from "./DrawMode";
|
|
3
4
|
|
|
4
5
|
export class ShadedGeometry {
|
|
5
6
|
readonly geometry: BufferGeometry
|
|
6
7
|
readonly material: Material
|
|
8
|
+
readonly mode: DrawMode
|
|
7
9
|
|
|
8
10
|
/**
|
|
9
11
|
* @deprecated
|
|
@@ -12,7 +14,7 @@ export class ShadedGeometry {
|
|
|
12
14
|
|
|
13
15
|
getBoundingBox(destination: AABB3): void
|
|
14
16
|
|
|
15
|
-
from(geometry: BufferGeometry, material: Material): void
|
|
17
|
+
from(geometry: BufferGeometry, material: Material, draw_mode?: DrawMode): void
|
|
16
18
|
|
|
17
|
-
static from(geometry: BufferGeometry, material: Material): ShadedGeometry
|
|
19
|
+
static from(geometry: BufferGeometry, material: Material, draw_mode?: DrawMode): ShadedGeometry
|
|
18
20
|
}
|
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.43.
|
|
8
|
+
"version": "2.43.45",
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"gl-matrix": "3.4.3",
|
|
11
11
|
"fast-levenshtein": "2.0.6",
|