@kuncat/avoidant 0.1.4 → 0.2.0
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/README.md +26 -0
- package/dist/components/AvoidantGame.svelte +226 -137
- package/dist/components/IdleBillboard.svelte +27 -0
- package/dist/components/IdleBillboard.svelte.d.ts +8 -0
- package/dist/components/board.svelte +245 -99
- package/dist/components/board.svelte.d.ts +3 -0
- package/dist/components/fragment.glsl +29 -19
- package/dist/components/terrain-depth-sort.d.ts +17 -0
- package/dist/components/terrain-depth-sort.js +63 -0
- package/dist/components/vertex.glsl +12 -7
- package/dist/generated/shared-constants.d.ts +0 -3
- package/dist/generated/shared-constants.js +0 -3
- package/dist/paraglide/messages/_index.d.ts +14 -0
- package/dist/paraglide/messages/_index.js +15 -1
- package/dist/paraglide/messages/cells_per_face.d.ts +18 -0
- package/dist/paraglide/messages/cells_per_face.js +29 -0
- package/dist/paraglide/messages/faces_count.d.ts +18 -0
- package/dist/paraglide/messages/faces_count.js +29 -0
- package/dist/paraglide/messages/field_cell_density.d.ts +16 -0
- package/dist/paraglide/messages/field_cell_density.js +29 -0
- package/dist/paraglide/messages/field_map_shape.d.ts +16 -0
- package/dist/paraglide/messages/field_map_shape.js +29 -0
- package/dist/paraglide/messages/field_radius.d.ts +16 -0
- package/dist/paraglide/messages/field_radius.js +29 -0
- package/dist/paraglide/messages/field_radius_x.d.ts +16 -0
- package/dist/paraglide/messages/field_radius_x.js +29 -0
- package/dist/paraglide/messages/field_radius_y.d.ts +16 -0
- package/dist/paraglide/messages/field_radius_y.js +29 -0
- package/dist/paraglide/messages/field_radius_z.d.ts +16 -0
- package/dist/paraglide/messages/field_radius_z.js +29 -0
- package/dist/paraglide/messages/field_spikiness.d.ts +16 -0
- package/dist/paraglide/messages/field_spikiness.js +29 -0
- package/dist/paraglide/messages/field_subdivisions.d.ts +16 -0
- package/dist/paraglide/messages/field_subdivisions.js +29 -0
- package/dist/paraglide/messages/field_surface_detail.d.ts +16 -0
- package/dist/paraglide/messages/field_surface_detail.js +29 -0
- package/dist/paraglide/messages/shape_label.d.ts +26 -0
- package/dist/paraglide/messages/shape_label.js +55 -0
- package/dist/paraglide/messages/text_density_summary.d.ts +19 -0
- package/dist/paraglide/messages/text_density_summary.js +29 -0
- package/dist/paraglide/messages/text_invite_after_opening.d.ts +16 -0
- package/dist/paraglide/messages/text_invite_after_opening.js +29 -0
- package/dist/troika-webgl2-atlas.d.ts +33 -0
- package/dist/troika-webgl2-atlas.js +65 -0
- package/dist/wasm/avoidant_wasm.d.ts +77 -35
- package/dist/wasm/avoidant_wasm.js +236 -223
- package/dist/wasm/avoidant_wasm_bg.wasm +0 -0
- package/dist/wasm/avoidant_wasm_bg.wasm.d.ts +27 -27
- package/dist/workers/mapgen-client.js +2 -0
- package/dist/workers/mapgen.worker.d.ts +2 -0
- package/dist/workers/mapgen.worker.js +3 -0
- package/package.json +1 -1
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { BufferAttribute, BufferGeometry, Matrix4 } from "three";
|
|
2
|
+
/** Sort individual triangles in a merged surface, including falling cells.
|
|
3
|
+
* Three.js sorts transparent objects, but cannot sort triangles inside a mesh.
|
|
4
|
+
* Only the index buffer changes, preserving all per-vertex cell IDs for picking.
|
|
5
|
+
*/
|
|
6
|
+
export class TerrainDepthSort {
|
|
7
|
+
centers;
|
|
8
|
+
normals;
|
|
9
|
+
cells;
|
|
10
|
+
depths;
|
|
11
|
+
order;
|
|
12
|
+
index;
|
|
13
|
+
previousView = new Matrix4();
|
|
14
|
+
previousRevision = -1;
|
|
15
|
+
constructor(geometry) {
|
|
16
|
+
const positions = geometry.getAttribute("position");
|
|
17
|
+
const normals = geometry.getAttribute("aCellNormal");
|
|
18
|
+
const cells = geometry.getAttribute("aCellIndex");
|
|
19
|
+
const count = positions.count / 3;
|
|
20
|
+
this.centers = new Float64Array(count * 3);
|
|
21
|
+
this.normals = new Float64Array(count * 3);
|
|
22
|
+
this.cells = new Uint32Array(count);
|
|
23
|
+
this.depths = new Float64Array(count);
|
|
24
|
+
this.order = Uint32Array.from({ length: count }, (_, i) => i);
|
|
25
|
+
this.index = new BufferAttribute(Uint32Array.from({ length: positions.count }, (_, i) => i), 1);
|
|
26
|
+
geometry.setIndex(this.index);
|
|
27
|
+
for (let t = 0; t < count; t++) {
|
|
28
|
+
this.cells[t] = cells.getX(t * 3);
|
|
29
|
+
for (let axis = 0; axis < 3; axis++) {
|
|
30
|
+
this.centers[t * 3 + axis] =
|
|
31
|
+
(positions.getComponent(t * 3, axis) +
|
|
32
|
+
positions.getComponent(t * 3 + 1, axis) +
|
|
33
|
+
positions.getComponent(t * 3 + 2, axis)) /
|
|
34
|
+
3;
|
|
35
|
+
this.normals[t * 3 + axis] = normals.getComponent(t * 3, axis);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
update(view, revision, fallDistance) {
|
|
40
|
+
if (revision === this.previousRevision && view.equals(this.previousView))
|
|
41
|
+
return;
|
|
42
|
+
this.previousView.copy(view);
|
|
43
|
+
this.previousRevision = revision;
|
|
44
|
+
const m = view.elements;
|
|
45
|
+
for (let t = 0; t < this.order.length; t++) {
|
|
46
|
+
const offset = t * 3;
|
|
47
|
+
const fall = fallDistance(this.cells[t]);
|
|
48
|
+
const x = this.centers[offset] - this.normals[offset] * fall;
|
|
49
|
+
const y = this.centers[offset + 1] - this.normals[offset + 1] * fall;
|
|
50
|
+
const z = this.centers[offset + 2] - this.normals[offset + 2] * fall;
|
|
51
|
+
// The camera looks along -Z: smaller view-space Z is farther away.
|
|
52
|
+
this.depths[t] = m[2] * x + m[6] * y + m[10] * z + m[14];
|
|
53
|
+
}
|
|
54
|
+
this.order.sort((a, b) => this.depths[a] - this.depths[b] || a - b);
|
|
55
|
+
for (let i = 0; i < this.order.length; i++) {
|
|
56
|
+
const vertex = this.order[i] * 3;
|
|
57
|
+
this.index.setX(i * 3, vertex);
|
|
58
|
+
this.index.setX(i * 3 + 1, vertex + 1);
|
|
59
|
+
this.index.setX(i * 3 + 2, vertex + 2);
|
|
60
|
+
}
|
|
61
|
+
this.index.needsUpdate = true;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
attribute float aCellIndex;
|
|
2
|
+
attribute vec3 aCellNormal;
|
|
3
|
+
attribute float aHeight;
|
|
4
|
+
attribute float aEdgeDistance;
|
|
2
5
|
attribute vec3 aNormal;
|
|
3
6
|
|
|
4
7
|
uniform sampler2D uCellMeta;
|
|
5
8
|
uniform float uCellMetaSize;
|
|
6
9
|
|
|
7
10
|
varying vec3 vWorldPosition;
|
|
8
|
-
varying vec3 vNormal;
|
|
9
11
|
varying float vHeight;
|
|
12
|
+
varying float vEdgeDistance;
|
|
13
|
+
varying float vRelief;
|
|
10
14
|
varying float vCellIndex;
|
|
11
15
|
varying float vFallProgress;
|
|
12
16
|
|
|
@@ -16,15 +20,16 @@ void main() {
|
|
|
16
20
|
float fallProgress = meta[CELL_META_FALL_PROGRESS];
|
|
17
21
|
vFallProgress = fallProgress;
|
|
18
22
|
|
|
19
|
-
|
|
20
|
-
displaced
|
|
23
|
+
// Displace falling void cells along the cell's outward surface normal so they sink "into" the polyhedron/spheroid rather than along world -Y.
|
|
24
|
+
vec3 displaced = position - aCellNormal * (fallProgress * VOID_FALL_DISTANCE);
|
|
21
25
|
|
|
22
26
|
vec4 worldPosition = modelMatrix * vec4(displaced, 1.0);
|
|
23
27
|
vWorldPosition = worldPosition.xyz;
|
|
24
|
-
//
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
+
// Raw scalar elevation displacement (along the cell's outward normal) for the fragment shader's color ramp. Independent of fall animation so falling cells don't shift colors as they drop.
|
|
29
|
+
vHeight = aHeight;
|
|
30
|
+
vEdgeDistance = aEdgeDistance;
|
|
31
|
+
// Local slope gives hills depth without favoring a world-space direction.
|
|
32
|
+
vRelief = clamp(dot(normalize(aNormal), normalize(aCellNormal)), 0.0, 1.0);
|
|
28
33
|
vCellIndex = aCellIndex;
|
|
29
34
|
|
|
30
35
|
gl_Position = projectionMatrix * viewMatrix * worldPosition;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
// AUTO-GENERATED by crates/game/build.rs from
|
|
2
2
|
// crates/game/src/shared_constants.rs.
|
|
3
3
|
// Edit that file, not this one.
|
|
4
|
-
export const MAP_WIDTH = 100.0;
|
|
5
|
-
export const MAP_HEIGHT = 100.0;
|
|
6
|
-
export const MAP_AREA = MAP_WIDTH * MAP_HEIGHT;
|
|
7
4
|
export const PULSE_SWEEP_BAND = 0.12;
|
|
8
5
|
export const PULSE_SWEEP_VELOCITY = 0.1;
|
|
9
6
|
export const PULSE_MIN_DURATION_MS = 80;
|
|
@@ -15,14 +15,22 @@ export * from "./error_join_failed.js";
|
|
|
15
15
|
export * from "./error_join_ticket_invalid.js";
|
|
16
16
|
export * from "./error_join_ticket_required.js";
|
|
17
17
|
export * from "./field_invitation_url.js";
|
|
18
|
+
export * from "./field_map_shape.js";
|
|
18
19
|
export * from "./field_map_size.js";
|
|
19
20
|
export * from "./field_player_name.js";
|
|
21
|
+
export * from "./field_radius.js";
|
|
22
|
+
export * from "./field_radius_x.js";
|
|
23
|
+
export * from "./field_radius_y.js";
|
|
24
|
+
export * from "./field_radius_z.js";
|
|
20
25
|
export * from "./field_relay_servers.js";
|
|
21
26
|
export * from "./field_seed.js";
|
|
22
27
|
export * from "./field_size.js";
|
|
28
|
+
export * from "./field_spikiness.js";
|
|
29
|
+
export * from "./field_subdivisions.js";
|
|
23
30
|
export * from "./field_ticket_or_invitation_url.js";
|
|
24
31
|
export * from "./field_tutorial_mode.js";
|
|
25
32
|
export * from "./field_void_fraction.js";
|
|
33
|
+
export * from "./shape_label.js";
|
|
26
34
|
export * from "./label_advanced_settings.js";
|
|
27
35
|
export * from "./label_players.js";
|
|
28
36
|
export * from "./label_safe_cells_explored.js";
|
|
@@ -49,4 +57,10 @@ export * from "./tutorial_after_void.js";
|
|
|
49
57
|
export * from "./tutorial_awaiting_first_click.js";
|
|
50
58
|
export * from "./tutorial_intro.js";
|
|
51
59
|
export * from "./tutorial_won.js";
|
|
60
|
+
export * from "./field_cell_density.js";
|
|
61
|
+
export * from "./cells_per_face.js";
|
|
62
|
+
export * from "./faces_count.js";
|
|
63
|
+
export * from "./field_surface_detail.js";
|
|
64
|
+
export * from "./text_density_summary.js";
|
|
65
|
+
export * from "./text_invite_after_opening.js";
|
|
52
66
|
export type LocalizedString = import("../runtime.js").LocalizedString;
|
|
@@ -17,14 +17,22 @@ export * from './error_join_failed.js'
|
|
|
17
17
|
export * from './error_join_ticket_invalid.js'
|
|
18
18
|
export * from './error_join_ticket_required.js'
|
|
19
19
|
export * from './field_invitation_url.js'
|
|
20
|
+
export * from './field_map_shape.js'
|
|
20
21
|
export * from './field_map_size.js'
|
|
21
22
|
export * from './field_player_name.js'
|
|
23
|
+
export * from './field_radius.js'
|
|
24
|
+
export * from './field_radius_x.js'
|
|
25
|
+
export * from './field_radius_y.js'
|
|
26
|
+
export * from './field_radius_z.js'
|
|
22
27
|
export * from './field_relay_servers.js'
|
|
23
28
|
export * from './field_seed.js'
|
|
24
29
|
export * from './field_size.js'
|
|
30
|
+
export * from './field_spikiness.js'
|
|
31
|
+
export * from './field_subdivisions.js'
|
|
25
32
|
export * from './field_ticket_or_invitation_url.js'
|
|
26
33
|
export * from './field_tutorial_mode.js'
|
|
27
34
|
export * from './field_void_fraction.js'
|
|
35
|
+
export * from './shape_label.js'
|
|
28
36
|
export * from './label_advanced_settings.js'
|
|
29
37
|
export * from './label_players.js'
|
|
30
38
|
export * from './label_safe_cells_explored.js'
|
|
@@ -50,4 +58,10 @@ export * from './tutorial_after_safe_guess.js'
|
|
|
50
58
|
export * from './tutorial_after_void.js'
|
|
51
59
|
export * from './tutorial_awaiting_first_click.js'
|
|
52
60
|
export * from './tutorial_intro.js'
|
|
53
|
-
export * from './tutorial_won.js'
|
|
61
|
+
export * from './tutorial_won.js'
|
|
62
|
+
export * from './field_cell_density.js'
|
|
63
|
+
export * from './cells_per_face.js'
|
|
64
|
+
export * from './faces_count.js'
|
|
65
|
+
export * from './field_surface_detail.js'
|
|
66
|
+
export * from './text_density_summary.js'
|
|
67
|
+
export * from './text_invite_after_opening.js'
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* | output |
|
|
3
|
+
* | --- |
|
|
4
|
+
* | "{count} / face" |
|
|
5
|
+
*
|
|
6
|
+
* @param {Cells_Per_FaceInputs} inputs
|
|
7
|
+
* @param {{ locale?: "en" | "bn" }} options
|
|
8
|
+
* @returns {LocalizedString}
|
|
9
|
+
*/
|
|
10
|
+
export const cells_per_face: ((inputs: Cells_Per_FaceInputs, options?: {
|
|
11
|
+
locale?: "en" | "bn";
|
|
12
|
+
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Cells_Per_FaceInputs, {
|
|
13
|
+
locale?: "en" | "bn";
|
|
14
|
+
}, {}>;
|
|
15
|
+
export type LocalizedString = import("../runtime.js").LocalizedString;
|
|
16
|
+
export type Cells_Per_FaceInputs = {
|
|
17
|
+
count: NonNullable<unknown>;
|
|
18
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
|
3
|
+
|
|
4
|
+
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
|
5
|
+
|
|
6
|
+
/** @typedef {{ count: NonNullable<unknown> }} Cells_Per_FaceInputs */
|
|
7
|
+
|
|
8
|
+
const en_cells_per_face = /** @type {(inputs: Cells_Per_FaceInputs) => LocalizedString} */ (i) => {
|
|
9
|
+
return /** @type {LocalizedString} */ (`${i?.count} / face`)
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const bn_cells_per_face = /** @type {(inputs: Cells_Per_FaceInputs) => LocalizedString} */ (i) => {
|
|
13
|
+
return /** @type {LocalizedString} */ (`${i?.count} / পৃষ্ঠ`)
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* | output |
|
|
18
|
+
* | --- |
|
|
19
|
+
* | "{count} / face" |
|
|
20
|
+
*
|
|
21
|
+
* @param {Cells_Per_FaceInputs} inputs
|
|
22
|
+
* @param {{ locale?: "en" | "bn" }} options
|
|
23
|
+
* @returns {LocalizedString}
|
|
24
|
+
*/
|
|
25
|
+
export const cells_per_face = /** @type {((inputs: Cells_Per_FaceInputs, options?: { locale?: "en" | "bn" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Cells_Per_FaceInputs, { locale?: "en" | "bn" }, {}>} */ ((inputs, options = {}) => {
|
|
26
|
+
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
27
|
+
if (locale === "en") return en_cells_per_face(inputs)
|
|
28
|
+
return bn_cells_per_face(inputs)
|
|
29
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* | output |
|
|
3
|
+
* | --- |
|
|
4
|
+
* | "{count} faces" |
|
|
5
|
+
*
|
|
6
|
+
* @param {Faces_CountInputs} inputs
|
|
7
|
+
* @param {{ locale?: "en" | "bn" }} options
|
|
8
|
+
* @returns {LocalizedString}
|
|
9
|
+
*/
|
|
10
|
+
export const faces_count: ((inputs: Faces_CountInputs, options?: {
|
|
11
|
+
locale?: "en" | "bn";
|
|
12
|
+
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Faces_CountInputs, {
|
|
13
|
+
locale?: "en" | "bn";
|
|
14
|
+
}, {}>;
|
|
15
|
+
export type LocalizedString = import("../runtime.js").LocalizedString;
|
|
16
|
+
export type Faces_CountInputs = {
|
|
17
|
+
count: NonNullable<unknown>;
|
|
18
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
|
3
|
+
|
|
4
|
+
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
|
5
|
+
|
|
6
|
+
/** @typedef {{ count: NonNullable<unknown> }} Faces_CountInputs */
|
|
7
|
+
|
|
8
|
+
const en_faces_count = /** @type {(inputs: Faces_CountInputs) => LocalizedString} */ (i) => {
|
|
9
|
+
return /** @type {LocalizedString} */ (`${i?.count} faces`)
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const bn_faces_count = /** @type {(inputs: Faces_CountInputs) => LocalizedString} */ (i) => {
|
|
13
|
+
return /** @type {LocalizedString} */ (`${i?.count}টি পৃষ্ঠ`)
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* | output |
|
|
18
|
+
* | --- |
|
|
19
|
+
* | "{count} faces" |
|
|
20
|
+
*
|
|
21
|
+
* @param {Faces_CountInputs} inputs
|
|
22
|
+
* @param {{ locale?: "en" | "bn" }} options
|
|
23
|
+
* @returns {LocalizedString}
|
|
24
|
+
*/
|
|
25
|
+
export const faces_count = /** @type {((inputs: Faces_CountInputs, options?: { locale?: "en" | "bn" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Faces_CountInputs, { locale?: "en" | "bn" }, {}>} */ ((inputs, options = {}) => {
|
|
26
|
+
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
27
|
+
if (locale === "en") return en_faces_count(inputs)
|
|
28
|
+
return bn_faces_count(inputs)
|
|
29
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* | output |
|
|
3
|
+
* | --- |
|
|
4
|
+
* | "Cells per face" |
|
|
5
|
+
*
|
|
6
|
+
* @param {Field_Cell_DensityInputs} inputs
|
|
7
|
+
* @param {{ locale?: "en" | "bn" }} options
|
|
8
|
+
* @returns {LocalizedString}
|
|
9
|
+
*/
|
|
10
|
+
export const field_cell_density: ((inputs?: Field_Cell_DensityInputs, options?: {
|
|
11
|
+
locale?: "en" | "bn";
|
|
12
|
+
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Field_Cell_DensityInputs, {
|
|
13
|
+
locale?: "en" | "bn";
|
|
14
|
+
}, {}>;
|
|
15
|
+
export type LocalizedString = import("../runtime.js").LocalizedString;
|
|
16
|
+
export type Field_Cell_DensityInputs = {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
|
3
|
+
|
|
4
|
+
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
|
5
|
+
|
|
6
|
+
/** @typedef {{}} Field_Cell_DensityInputs */
|
|
7
|
+
|
|
8
|
+
const en_field_cell_density = /** @type {(inputs: Field_Cell_DensityInputs) => LocalizedString} */ () => {
|
|
9
|
+
return /** @type {LocalizedString} */ (`Cells per face`)
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const bn_field_cell_density = /** @type {(inputs: Field_Cell_DensityInputs) => LocalizedString} */ () => {
|
|
13
|
+
return /** @type {LocalizedString} */ (`প্রতি পৃষ্ঠে ঘর`)
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* | output |
|
|
18
|
+
* | --- |
|
|
19
|
+
* | "Cells per face" |
|
|
20
|
+
*
|
|
21
|
+
* @param {Field_Cell_DensityInputs} inputs
|
|
22
|
+
* @param {{ locale?: "en" | "bn" }} options
|
|
23
|
+
* @returns {LocalizedString}
|
|
24
|
+
*/
|
|
25
|
+
export const field_cell_density = /** @type {((inputs?: Field_Cell_DensityInputs, options?: { locale?: "en" | "bn" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Field_Cell_DensityInputs, { locale?: "en" | "bn" }, {}>} */ ((inputs = {}, options = {}) => {
|
|
26
|
+
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
27
|
+
if (locale === "en") return en_field_cell_density(inputs)
|
|
28
|
+
return bn_field_cell_density(inputs)
|
|
29
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* | output |
|
|
3
|
+
* | --- |
|
|
4
|
+
* | "Map Shape" |
|
|
5
|
+
*
|
|
6
|
+
* @param {Field_Map_ShapeInputs} inputs
|
|
7
|
+
* @param {{ locale?: "en" | "bn" }} options
|
|
8
|
+
* @returns {LocalizedString}
|
|
9
|
+
*/
|
|
10
|
+
export const field_map_shape: ((inputs?: Field_Map_ShapeInputs, options?: {
|
|
11
|
+
locale?: "en" | "bn";
|
|
12
|
+
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Field_Map_ShapeInputs, {
|
|
13
|
+
locale?: "en" | "bn";
|
|
14
|
+
}, {}>;
|
|
15
|
+
export type LocalizedString = import("../runtime.js").LocalizedString;
|
|
16
|
+
export type Field_Map_ShapeInputs = {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
|
3
|
+
|
|
4
|
+
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
|
5
|
+
|
|
6
|
+
/** @typedef {{}} Field_Map_ShapeInputs */
|
|
7
|
+
|
|
8
|
+
const en_field_map_shape = /** @type {(inputs: Field_Map_ShapeInputs) => LocalizedString} */ () => {
|
|
9
|
+
return /** @type {LocalizedString} */ (`Map Shape`)
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const bn_field_map_shape = /** @type {(inputs: Field_Map_ShapeInputs) => LocalizedString} */ () => {
|
|
13
|
+
return /** @type {LocalizedString} */ (`ম্যাপের আকৃতি`)
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* | output |
|
|
18
|
+
* | --- |
|
|
19
|
+
* | "Map Shape" |
|
|
20
|
+
*
|
|
21
|
+
* @param {Field_Map_ShapeInputs} inputs
|
|
22
|
+
* @param {{ locale?: "en" | "bn" }} options
|
|
23
|
+
* @returns {LocalizedString}
|
|
24
|
+
*/
|
|
25
|
+
export const field_map_shape = /** @type {((inputs?: Field_Map_ShapeInputs, options?: { locale?: "en" | "bn" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Field_Map_ShapeInputs, { locale?: "en" | "bn" }, {}>} */ ((inputs = {}, options = {}) => {
|
|
26
|
+
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
27
|
+
if (locale === "en") return en_field_map_shape(inputs)
|
|
28
|
+
return bn_field_map_shape(inputs)
|
|
29
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* | output |
|
|
3
|
+
* | --- |
|
|
4
|
+
* | "Radius" |
|
|
5
|
+
*
|
|
6
|
+
* @param {Field_RadiusInputs} inputs
|
|
7
|
+
* @param {{ locale?: "en" | "bn" }} options
|
|
8
|
+
* @returns {LocalizedString}
|
|
9
|
+
*/
|
|
10
|
+
export const field_radius: ((inputs?: Field_RadiusInputs, options?: {
|
|
11
|
+
locale?: "en" | "bn";
|
|
12
|
+
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Field_RadiusInputs, {
|
|
13
|
+
locale?: "en" | "bn";
|
|
14
|
+
}, {}>;
|
|
15
|
+
export type LocalizedString = import("../runtime.js").LocalizedString;
|
|
16
|
+
export type Field_RadiusInputs = {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
|
3
|
+
|
|
4
|
+
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
|
5
|
+
|
|
6
|
+
/** @typedef {{}} Field_RadiusInputs */
|
|
7
|
+
|
|
8
|
+
const en_field_radius = /** @type {(inputs: Field_RadiusInputs) => LocalizedString} */ () => {
|
|
9
|
+
return /** @type {LocalizedString} */ (`Radius`)
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const bn_field_radius = /** @type {(inputs: Field_RadiusInputs) => LocalizedString} */ () => {
|
|
13
|
+
return /** @type {LocalizedString} */ (`ব্যাসার্ধ`)
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* | output |
|
|
18
|
+
* | --- |
|
|
19
|
+
* | "Radius" |
|
|
20
|
+
*
|
|
21
|
+
* @param {Field_RadiusInputs} inputs
|
|
22
|
+
* @param {{ locale?: "en" | "bn" }} options
|
|
23
|
+
* @returns {LocalizedString}
|
|
24
|
+
*/
|
|
25
|
+
export const field_radius = /** @type {((inputs?: Field_RadiusInputs, options?: { locale?: "en" | "bn" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Field_RadiusInputs, { locale?: "en" | "bn" }, {}>} */ ((inputs = {}, options = {}) => {
|
|
26
|
+
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
27
|
+
if (locale === "en") return en_field_radius(inputs)
|
|
28
|
+
return bn_field_radius(inputs)
|
|
29
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* | output |
|
|
3
|
+
* | --- |
|
|
4
|
+
* | "Radius X" |
|
|
5
|
+
*
|
|
6
|
+
* @param {Field_Radius_XInputs} inputs
|
|
7
|
+
* @param {{ locale?: "en" | "bn" }} options
|
|
8
|
+
* @returns {LocalizedString}
|
|
9
|
+
*/
|
|
10
|
+
export const field_radius_x: ((inputs?: Field_Radius_XInputs, options?: {
|
|
11
|
+
locale?: "en" | "bn";
|
|
12
|
+
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Field_Radius_XInputs, {
|
|
13
|
+
locale?: "en" | "bn";
|
|
14
|
+
}, {}>;
|
|
15
|
+
export type LocalizedString = import("../runtime.js").LocalizedString;
|
|
16
|
+
export type Field_Radius_XInputs = {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
|
3
|
+
|
|
4
|
+
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
|
5
|
+
|
|
6
|
+
/** @typedef {{}} Field_Radius_XInputs */
|
|
7
|
+
|
|
8
|
+
const en_field_radius_x = /** @type {(inputs: Field_Radius_XInputs) => LocalizedString} */ () => {
|
|
9
|
+
return /** @type {LocalizedString} */ (`Radius X`)
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const bn_field_radius_x = /** @type {(inputs: Field_Radius_XInputs) => LocalizedString} */ () => {
|
|
13
|
+
return /** @type {LocalizedString} */ (`ব্যাসার্ধ X`)
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* | output |
|
|
18
|
+
* | --- |
|
|
19
|
+
* | "Radius X" |
|
|
20
|
+
*
|
|
21
|
+
* @param {Field_Radius_XInputs} inputs
|
|
22
|
+
* @param {{ locale?: "en" | "bn" }} options
|
|
23
|
+
* @returns {LocalizedString}
|
|
24
|
+
*/
|
|
25
|
+
export const field_radius_x = /** @type {((inputs?: Field_Radius_XInputs, options?: { locale?: "en" | "bn" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Field_Radius_XInputs, { locale?: "en" | "bn" }, {}>} */ ((inputs = {}, options = {}) => {
|
|
26
|
+
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
27
|
+
if (locale === "en") return en_field_radius_x(inputs)
|
|
28
|
+
return bn_field_radius_x(inputs)
|
|
29
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* | output |
|
|
3
|
+
* | --- |
|
|
4
|
+
* | "Radius Y" |
|
|
5
|
+
*
|
|
6
|
+
* @param {Field_Radius_YInputs} inputs
|
|
7
|
+
* @param {{ locale?: "en" | "bn" }} options
|
|
8
|
+
* @returns {LocalizedString}
|
|
9
|
+
*/
|
|
10
|
+
export const field_radius_y: ((inputs?: Field_Radius_YInputs, options?: {
|
|
11
|
+
locale?: "en" | "bn";
|
|
12
|
+
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Field_Radius_YInputs, {
|
|
13
|
+
locale?: "en" | "bn";
|
|
14
|
+
}, {}>;
|
|
15
|
+
export type LocalizedString = import("../runtime.js").LocalizedString;
|
|
16
|
+
export type Field_Radius_YInputs = {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
|
3
|
+
|
|
4
|
+
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
|
5
|
+
|
|
6
|
+
/** @typedef {{}} Field_Radius_YInputs */
|
|
7
|
+
|
|
8
|
+
const en_field_radius_y = /** @type {(inputs: Field_Radius_YInputs) => LocalizedString} */ () => {
|
|
9
|
+
return /** @type {LocalizedString} */ (`Radius Y`)
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const bn_field_radius_y = /** @type {(inputs: Field_Radius_YInputs) => LocalizedString} */ () => {
|
|
13
|
+
return /** @type {LocalizedString} */ (`ব্যাসার্ধ Y`)
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* | output |
|
|
18
|
+
* | --- |
|
|
19
|
+
* | "Radius Y" |
|
|
20
|
+
*
|
|
21
|
+
* @param {Field_Radius_YInputs} inputs
|
|
22
|
+
* @param {{ locale?: "en" | "bn" }} options
|
|
23
|
+
* @returns {LocalizedString}
|
|
24
|
+
*/
|
|
25
|
+
export const field_radius_y = /** @type {((inputs?: Field_Radius_YInputs, options?: { locale?: "en" | "bn" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Field_Radius_YInputs, { locale?: "en" | "bn" }, {}>} */ ((inputs = {}, options = {}) => {
|
|
26
|
+
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
27
|
+
if (locale === "en") return en_field_radius_y(inputs)
|
|
28
|
+
return bn_field_radius_y(inputs)
|
|
29
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* | output |
|
|
3
|
+
* | --- |
|
|
4
|
+
* | "Radius Z" |
|
|
5
|
+
*
|
|
6
|
+
* @param {Field_Radius_ZInputs} inputs
|
|
7
|
+
* @param {{ locale?: "en" | "bn" }} options
|
|
8
|
+
* @returns {LocalizedString}
|
|
9
|
+
*/
|
|
10
|
+
export const field_radius_z: ((inputs?: Field_Radius_ZInputs, options?: {
|
|
11
|
+
locale?: "en" | "bn";
|
|
12
|
+
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Field_Radius_ZInputs, {
|
|
13
|
+
locale?: "en" | "bn";
|
|
14
|
+
}, {}>;
|
|
15
|
+
export type LocalizedString = import("../runtime.js").LocalizedString;
|
|
16
|
+
export type Field_Radius_ZInputs = {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
|
3
|
+
|
|
4
|
+
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
|
5
|
+
|
|
6
|
+
/** @typedef {{}} Field_Radius_ZInputs */
|
|
7
|
+
|
|
8
|
+
const en_field_radius_z = /** @type {(inputs: Field_Radius_ZInputs) => LocalizedString} */ () => {
|
|
9
|
+
return /** @type {LocalizedString} */ (`Radius Z`)
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const bn_field_radius_z = /** @type {(inputs: Field_Radius_ZInputs) => LocalizedString} */ () => {
|
|
13
|
+
return /** @type {LocalizedString} */ (`ব্যাসার্ধ Z`)
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* | output |
|
|
18
|
+
* | --- |
|
|
19
|
+
* | "Radius Z" |
|
|
20
|
+
*
|
|
21
|
+
* @param {Field_Radius_ZInputs} inputs
|
|
22
|
+
* @param {{ locale?: "en" | "bn" }} options
|
|
23
|
+
* @returns {LocalizedString}
|
|
24
|
+
*/
|
|
25
|
+
export const field_radius_z = /** @type {((inputs?: Field_Radius_ZInputs, options?: { locale?: "en" | "bn" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Field_Radius_ZInputs, { locale?: "en" | "bn" }, {}>} */ ((inputs = {}, options = {}) => {
|
|
26
|
+
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
27
|
+
if (locale === "en") return en_field_radius_z(inputs)
|
|
28
|
+
return bn_field_radius_z(inputs)
|
|
29
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* | output |
|
|
3
|
+
* | --- |
|
|
4
|
+
* | "Spikiness" |
|
|
5
|
+
*
|
|
6
|
+
* @param {Field_SpikinessInputs} inputs
|
|
7
|
+
* @param {{ locale?: "en" | "bn" }} options
|
|
8
|
+
* @returns {LocalizedString}
|
|
9
|
+
*/
|
|
10
|
+
export const field_spikiness: ((inputs?: Field_SpikinessInputs, options?: {
|
|
11
|
+
locale?: "en" | "bn";
|
|
12
|
+
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Field_SpikinessInputs, {
|
|
13
|
+
locale?: "en" | "bn";
|
|
14
|
+
}, {}>;
|
|
15
|
+
export type LocalizedString = import("../runtime.js").LocalizedString;
|
|
16
|
+
export type Field_SpikinessInputs = {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import { getLocale, experimentalStaticLocale } from '../runtime.js';
|
|
3
|
+
|
|
4
|
+
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
|
|
5
|
+
|
|
6
|
+
/** @typedef {{}} Field_SpikinessInputs */
|
|
7
|
+
|
|
8
|
+
const en_field_spikiness = /** @type {(inputs: Field_SpikinessInputs) => LocalizedString} */ () => {
|
|
9
|
+
return /** @type {LocalizedString} */ (`Spikiness`)
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const bn_field_spikiness = /** @type {(inputs: Field_SpikinessInputs) => LocalizedString} */ () => {
|
|
13
|
+
return /** @type {LocalizedString} */ (`তীক্ষ্ণতা`)
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* | output |
|
|
18
|
+
* | --- |
|
|
19
|
+
* | "Spikiness" |
|
|
20
|
+
*
|
|
21
|
+
* @param {Field_SpikinessInputs} inputs
|
|
22
|
+
* @param {{ locale?: "en" | "bn" }} options
|
|
23
|
+
* @returns {LocalizedString}
|
|
24
|
+
*/
|
|
25
|
+
export const field_spikiness = /** @type {((inputs?: Field_SpikinessInputs, options?: { locale?: "en" | "bn" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Field_SpikinessInputs, { locale?: "en" | "bn" }, {}>} */ ((inputs = {}, options = {}) => {
|
|
26
|
+
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
|
|
27
|
+
if (locale === "en") return en_field_spikiness(inputs)
|
|
28
|
+
return bn_field_spikiness(inputs)
|
|
29
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* | output |
|
|
3
|
+
* | --- |
|
|
4
|
+
* | "Subdivisions" |
|
|
5
|
+
*
|
|
6
|
+
* @param {Field_SubdivisionsInputs} inputs
|
|
7
|
+
* @param {{ locale?: "en" | "bn" }} options
|
|
8
|
+
* @returns {LocalizedString}
|
|
9
|
+
*/
|
|
10
|
+
export const field_subdivisions: ((inputs?: Field_SubdivisionsInputs, options?: {
|
|
11
|
+
locale?: "en" | "bn";
|
|
12
|
+
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Field_SubdivisionsInputs, {
|
|
13
|
+
locale?: "en" | "bn";
|
|
14
|
+
}, {}>;
|
|
15
|
+
export type LocalizedString = import("../runtime.js").LocalizedString;
|
|
16
|
+
export type Field_SubdivisionsInputs = {};
|