@woosh/meep-engine 2.75.4 → 2.75.5
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/editor/ecs/component/editors/ecs/ParameterLookupTableEditor.js +35 -21
- package/package.json +2 -2
- package/src/core/collection/array/array_compute_min_max.js +20 -0
- package/src/core/collection/map/HashMap.js +16 -14
- package/src/core/geom/2d/convex-hull/fixed_convex_hull_humus.js +23 -13
- package/src/core/geom/2d/intersect_ray_2d.js +7 -14
- package/src/core/geom/3d/aabb/AABB3.js +13 -0
- package/src/core/geom/3d/topology/samples/sampleFloodFill.js +21 -21
- package/src/core/geom/3d/topology/tm_face_area.js +1 -1
- package/src/core/geom/3d/triangle/computeTriangleSurfaceArea.js +39 -0
- package/src/core/process/task/util/countTask.js +1 -2
- package/src/engine/EngineBootstrapper.js +15 -7
- package/src/engine/animation/curve/AnimationCurve.js +50 -31
- package/src/engine/animation/curve/AnimationCurve.spec.js +9 -1
- package/src/engine/animation/curve/compression/prototypeCurveCompression.js +20 -11
- package/src/engine/animation/curve/compute_curve_aabb.js +26 -0
- package/src/engine/animation/curve/draw/build_curve_editor.js +82 -42
- package/src/engine/animation/curve/draw/build_plot_entity_from_array.js +5 -5
- package/src/engine/animation/curve/preset/CURVE_EASE_IN.js +8 -0
- package/src/engine/animation/curve/preset/CURVE_EASE_IN_OUT.js +7 -0
- package/src/engine/animation/curve/preset/CURVE_EASE_OUT.js +7 -0
- package/src/engine/asset/loaders/image/png/PNGReader.js +119 -1
- package/src/engine/graphics/GraphicsEngine.d.ts +6 -3
- package/src/engine/graphics/canvas/canvas2d_draw_grid.js +42 -0
- package/src/engine/{animation/curve/draw/draw_label.js → graphics/canvas/canvas2d_draw_label.js} +6 -1
- package/src/engine/graphics/canvas/canvas2d_draw_linear_scale.js +64 -0
- package/src/engine/graphics/canvas/canvas2d_draw_path.js +60 -0
- package/src/engine/graphics/canvas/canvas2d_plot_data_line.js +84 -0
- package/src/engine/{animation/curve/draw/plot_array.js → graphics/canvas/canvas2d_plot_line_array.js} +8 -25
- package/src/engine/graphics/geometry/computeMeshSurfaceArea.js +2 -37
- package/src/engine/graphics/impostors/octahedral/bake/prepare_bake_material.js +8 -26
- package/src/engine/graphics/material/manager/MaterialManager.d.ts +6 -0
- package/src/engine/graphics/sh3/LightProbeVolume.js +38 -17
- package/src/engine/graphics/sh3/path_tracer/prototypePathTracer.js +26 -35
- package/src/engine/graphics/sh3/prototypeSH3Probe.js +166 -100
- package/src/engine/graphics/texture/makeOnePixelTexture.js +19 -0
- package/src/engine/graphics/texture/sprite/prototypeSpriteCutoutGeometry.js +5 -68
- package/src/engine/input/devices/PointerDevice.js +6 -3
- package/src/engine/makeSimpleTaskProgressView.js +33 -0
- package/src/engine/scene/transitionToScene.js +9 -10
- package/src/view/task/TaskLoadingScreen.js +5 -12
- package/src/view/task/TaskProgressView.js +9 -9
- package/src/engine/animation/curve/draw/draw_grid.js +0 -27
- package/src/engine/animation/curve/draw/plot_data.js +0 -49
- package/src/engine/graphics/geometry/QuadGeometry.js +0 -13
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
* @param {CanvasRenderingContext2D} ctx
|
|
4
|
-
* @param {number} width
|
|
5
|
-
* @param {number} height
|
|
6
|
-
* @param {string} color
|
|
7
|
-
* @param {number} spacing
|
|
8
|
-
* @param {number} [offset_x]
|
|
9
|
-
* @param {number} [offset_y]
|
|
10
|
-
*/
|
|
11
|
-
export function draw_grid({ ctx, width, height, color = 'red', spacing = 10, offset_x = 0, offset_y = 0 }) {
|
|
12
|
-
ctx.fillStyle = 'none';
|
|
13
|
-
ctx.lineWidth = 1;
|
|
14
|
-
ctx.strokeStyle = color;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
ctx.beginPath();
|
|
18
|
-
for (let x = offset_x; x < width; x += spacing) {
|
|
19
|
-
ctx.moveTo(x, 0);
|
|
20
|
-
ctx.lineTo(x, height);
|
|
21
|
-
}
|
|
22
|
-
for (let y = offset_y; y < width; y += spacing) {
|
|
23
|
-
ctx.moveTo(0, y);
|
|
24
|
-
ctx.lineTo(width, y);
|
|
25
|
-
}
|
|
26
|
-
ctx.stroke();
|
|
27
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { draw_grid } from "./draw_grid.js";
|
|
2
|
-
import { plot_array } from "./plot_array.js";
|
|
3
|
-
import Vector2 from "../../../../core/geom/Vector2.js";
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
*
|
|
7
|
-
* @param {CanvasRenderingContext2D} ctx
|
|
8
|
-
* @param {number[]|Float32Array} data
|
|
9
|
-
* @param {Vector2} [margin]
|
|
10
|
-
* @param {number} width
|
|
11
|
-
* @param {number} height
|
|
12
|
-
* @param {number[]} [range_y]
|
|
13
|
-
*/
|
|
14
|
-
export function plot_data({
|
|
15
|
-
ctx,
|
|
16
|
-
data,
|
|
17
|
-
margin = Vector2.zero,
|
|
18
|
-
width,
|
|
19
|
-
height,
|
|
20
|
-
range_y
|
|
21
|
-
}) {
|
|
22
|
-
|
|
23
|
-
ctx.fillStyle = '#222222';
|
|
24
|
-
ctx.fillRect(0, 0, width, height);
|
|
25
|
-
|
|
26
|
-
draw_grid({
|
|
27
|
-
ctx,
|
|
28
|
-
width,
|
|
29
|
-
height,
|
|
30
|
-
color: '#262626',
|
|
31
|
-
spacing: 32
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
draw_grid({
|
|
35
|
-
ctx,
|
|
36
|
-
width,
|
|
37
|
-
height,
|
|
38
|
-
color: '#303030',
|
|
39
|
-
spacing: 32,
|
|
40
|
-
offset_x: 16,
|
|
41
|
-
offset_y: 16
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
ctx.fillStyle = 'none';
|
|
45
|
-
ctx.strokeStyle = '#00ff00';
|
|
46
|
-
ctx.lineWidth = 1;
|
|
47
|
-
plot_array(ctx, width - margin.x * 2, height - margin.y * 2, margin.x, margin.y, data, range_y);
|
|
48
|
-
|
|
49
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Created by Alex on 01/11/2014.
|
|
3
|
-
*/
|
|
4
|
-
import { PlaneBufferGeometry } from 'three';
|
|
5
|
-
|
|
6
|
-
let faces = [[0, 1, 2], [0, 2, 3]];
|
|
7
|
-
let vertices = [];
|
|
8
|
-
|
|
9
|
-
const QuadGeometry = function (width, height) {
|
|
10
|
-
return new PlaneBufferGeometry(width, height, 1, 1);
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export default QuadGeometry;
|