nucleation 0.5.1 → 0.7.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.
Files changed (190) hide show
  1. package/AnimationEffect.d.mts +44 -0
  2. package/AnimationEffect.d.ts +1 -1
  3. package/Autostack.d.mts +43 -0
  4. package/Autostack.d.ts +2 -2
  5. package/BlockPos.d.mts +28 -0
  6. package/BlockState.d.mts +39 -0
  7. package/BlockState.d.ts +1 -1
  8. package/Blocks.d.mts +91 -0
  9. package/Blocks.d.ts +1 -1
  10. package/Brush.d.mts +99 -0
  11. package/Brush.d.ts +21 -12
  12. package/Brush.mjs +66 -9
  13. package/BuildAnimation.d.mts +142 -0
  14. package/BuildAnimation.d.ts +5 -5
  15. package/BuildingTool.d.mts +46 -0
  16. package/BuildingTool.d.ts +4 -4
  17. package/CellularSdfConfig.d.mts +22 -0
  18. package/CellularSdfConfig.d.ts +22 -0
  19. package/CellularSdfConfig.mjs +69 -0
  20. package/ChunkMeshResult.d.mts +75 -0
  21. package/ChunkMeshResult.d.ts +7 -7
  22. package/CircuitBuilder.d.mts +118 -0
  23. package/CircuitBuilder.d.ts +6 -6
  24. package/Curve3D.d.mts +27 -0
  25. package/Curve3D.d.ts +1 -1
  26. package/DefinitionRegion.d.mts +274 -0
  27. package/DefinitionRegion.d.ts +5 -5
  28. package/Diff.d.mts +88 -0
  29. package/Diff.d.ts +2 -2
  30. package/Dimensions.d.mts +28 -0
  31. package/DistanceField.d.mts +39 -0
  32. package/DistanceField.d.ts +1 -1
  33. package/ExecutionMode.d.mts +42 -0
  34. package/ExecutionMode.d.ts +2 -2
  35. package/Field3.d.mts +40 -0
  36. package/Field3.d.ts +40 -0
  37. package/Field3.mjs +160 -0
  38. package/FieldProgram.d.mts +40 -0
  39. package/FieldProgram.d.ts +40 -0
  40. package/FieldProgram.mjs +167 -0
  41. package/FieldProgramBinaryOp.d.mts +42 -0
  42. package/FieldProgramBinaryOp.d.ts +42 -0
  43. package/FieldProgramBinaryOp.mjs +118 -0
  44. package/FieldProgramBuilder.d.mts +104 -0
  45. package/FieldProgramBuilder.d.ts +104 -0
  46. package/FieldProgramBuilder.mjs +486 -0
  47. package/FieldProgramDistanceKind.d.mts +26 -0
  48. package/FieldProgramDistanceKind.d.ts +26 -0
  49. package/FieldProgramDistanceKind.mjs +78 -0
  50. package/FieldProgramUnaryOp.d.mts +34 -0
  51. package/FieldProgramUnaryOp.d.ts +34 -0
  52. package/FieldProgramUnaryOp.mjs +102 -0
  53. package/FieldProgramValueType.d.mts +25 -0
  54. package/FieldProgramValueType.d.ts +25 -0
  55. package/FieldProgramValueType.mjs +75 -0
  56. package/FieldRange.d.mts +15 -0
  57. package/FieldRange.d.ts +15 -0
  58. package/FieldRange.mjs +108 -0
  59. package/Fingerprint.d.mts +44 -0
  60. package/Fingerprint.d.ts +2 -2
  61. package/GeneratedChunk.d.mts +35 -0
  62. package/GeneratedChunk.d.ts +35 -0
  63. package/GeneratedChunk.mjs +178 -0
  64. package/GeneratedChunkCoverage.d.mts +25 -0
  65. package/GeneratedChunkCoverage.d.ts +25 -0
  66. package/GeneratedChunkCoverage.mjs +75 -0
  67. package/GeneratedChunkOverlayMode.d.mts +24 -0
  68. package/GeneratedChunkOverlayMode.d.ts +24 -0
  69. package/GeneratedChunkOverlayMode.mjs +72 -0
  70. package/GeneratedWorldStream.d.mts +28 -0
  71. package/GeneratedWorldStream.d.ts +28 -0
  72. package/GeneratedWorldStream.mjs +86 -0
  73. package/Geo.d.mts +41 -0
  74. package/Geo.d.ts +2 -2
  75. package/InterpolationSpace.d.mts +25 -0
  76. package/IoLayout.d.mts +26 -0
  77. package/IoLayoutBuilder.d.mts +73 -0
  78. package/IoLayoutBuilder.d.ts +4 -4
  79. package/IoType.d.mts +41 -0
  80. package/ItemModelConfig.d.mts +65 -0
  81. package/ItemModelConfig.d.ts +1 -1
  82. package/ItemModelPackBuilder.d.mts +32 -0
  83. package/ItemModelPackBuilder.d.ts +1 -1
  84. package/ItemModelResult.d.mts +72 -0
  85. package/ItemModelResult.d.ts +7 -7
  86. package/ItemScale.d.mts +31 -0
  87. package/LayoutFunction.d.mts +52 -0
  88. package/LayoutFunction.d.ts +1 -1
  89. package/MchprsWorld.d.mts +131 -0
  90. package/MchprsWorld.d.ts +3 -3
  91. package/MeshBounds.d.mts +40 -0
  92. package/MeshConfig.d.mts +101 -0
  93. package/MeshConfig.d.ts +1 -1
  94. package/MeshJob.d.mts +44 -0
  95. package/MeshJob.d.ts +7 -7
  96. package/MeshPhase.d.mts +38 -0
  97. package/MeshProgress.d.mts +32 -0
  98. package/MeshProgress.d.ts +1 -1
  99. package/MeshResult.d.mts +65 -0
  100. package/MeshResult.d.ts +5 -5
  101. package/MultiMeshResult.d.mts +50 -0
  102. package/MultiMeshResult.d.ts +5 -5
  103. package/Nbt.d.mts +50 -0
  104. package/Nbt.d.ts +1 -1
  105. package/NucleationError.d.mts +41 -0
  106. package/NucleationError.d.ts +5 -0
  107. package/NucleationError.mjs +8 -1
  108. package/OutputCondition.d.mts +45 -0
  109. package/OutputCondition.d.ts +1 -1
  110. package/Palette.d.mts +145 -0
  111. package/Palette.d.ts +9 -1
  112. package/Palette.mjs +35 -0
  113. package/PaletteBuilder.d.mts +119 -0
  114. package/PaletteBuilder.d.ts +2 -2
  115. package/RawMeshExport.d.mts +74 -0
  116. package/RawMeshExport.d.ts +4 -4
  117. package/RedstoneGraph.d.mts +58 -0
  118. package/RedstoneGraph.d.ts +1 -1
  119. package/RegionBounds.d.mts +41 -0
  120. package/RenderConfig.d.mts +101 -0
  121. package/RenderConfig.d.ts +1 -1
  122. package/Renderer.d.mts +51 -0
  123. package/Renderer.d.ts +4 -4
  124. package/ResourcePack.d.mts +105 -0
  125. package/ResourcePack.d.ts +3 -3
  126. package/ResourcePackList.d.mts +32 -0
  127. package/Schematic.d.mts +734 -0
  128. package/Schematic.d.ts +4 -4
  129. package/SchematicBuilder.d.mts +103 -0
  130. package/SchematicBuilder.d.ts +2 -2
  131. package/SchematicRegions.d.mts +93 -0
  132. package/SchematicRegions.d.ts +3 -3
  133. package/Scripting.d.mts +40 -0
  134. package/Scripting.d.ts +2 -2
  135. package/Sdf.d.mts +234 -0
  136. package/Sdf.d.ts +208 -13
  137. package/Sdf.mjs +1106 -11
  138. package/SdfAxis.d.mts +25 -0
  139. package/SdfAxis.d.ts +25 -0
  140. package/SdfAxis.mjs +75 -0
  141. package/SdfBounds.d.mts +19 -0
  142. package/SdfBounds.d.ts +19 -0
  143. package/SdfBounds.mjs +160 -0
  144. package/SdfCellMode.d.mts +26 -0
  145. package/SdfCellMode.d.ts +26 -0
  146. package/SdfCellMode.mjs +78 -0
  147. package/SdfNormal.d.mts +16 -0
  148. package/SdfNormal.d.ts +16 -0
  149. package/SdfNormal.mjs +121 -0
  150. package/Shape.d.mts +143 -0
  151. package/Shape.d.ts +2 -2
  152. package/SortStrategy.d.mts +86 -0
  153. package/SortStrategy.d.ts +1 -1
  154. package/Store.d.mts +83 -0
  155. package/Store.d.ts +2 -2
  156. package/StoreIo.d.mts +71 -0
  157. package/StoreIo.d.ts +2 -2
  158. package/TextureAtlas.d.mts +40 -0
  159. package/TextureAtlas.d.ts +4 -4
  160. package/TextureInfo.d.mts +34 -0
  161. package/TypedCircuitExecutor.d.mts +101 -0
  162. package/TypedCircuitExecutor.d.ts +6 -6
  163. package/Value.d.mts +73 -0
  164. package/Value.d.ts +1 -1
  165. package/VideoConfig.d.mts +15 -0
  166. package/Voxelizer.d.mts +58 -0
  167. package/Voxelizer.d.ts +4 -4
  168. package/WorldChunkView.d.mts +75 -0
  169. package/WorldChunkView.d.ts +2 -2
  170. package/WorldGenerator.d.mts +75 -0
  171. package/WorldGenerator.d.ts +75 -0
  172. package/WorldGenerator.mjs +255 -0
  173. package/WorldSink.d.mts +50 -0
  174. package/WorldSink.d.ts +2 -2
  175. package/WorldStream.d.mts +45 -0
  176. package/WorldStream.d.ts +2 -2
  177. package/WsPartitionHints.d.mts +29 -0
  178. package/WsPartitionHints.d.ts +1 -1
  179. package/WsProfile.d.mts +46 -0
  180. package/WsProfile.d.ts +1 -1
  181. package/WsRunResult.d.mts +83 -0
  182. package/WsRunResult.d.ts +5 -5
  183. package/WsSegmentJob.d.mts +28 -0
  184. package/WsSegmentJob.d.ts +1 -1
  185. package/diplomat-runtime.d.mts +15 -0
  186. package/index.d.mts +177 -0
  187. package/index.d.ts +106 -70
  188. package/index.mjs +37 -1
  189. package/nucleation.wasm +0 -0
  190. package/package.json +2 -1
@@ -0,0 +1,50 @@
1
+ // generated by diplomat-tool
2
+ import type { NucleationError } from "./NucleationError.mjs"
3
+ import type { WorldChunkView } from "./WorldChunkView.mjs"
4
+ import type { pointer, codepoint } from "./diplomat-runtime.d.ts";
5
+
6
+
7
+
8
+ /**
9
+ * A world writer. `finish` is consuming (PORTING rule 11): the inner sink is
10
+ * held in an `Option` and taken on `finish`; every method afterwards returns
11
+ * `AlreadyConsumed`. Dropping the handle without `finish` abandons the sink.
12
+ */
13
+ export class WorldSink {
14
+ /** @internal */
15
+ get ffiValue(): pointer;
16
+ /** @internal */
17
+ constructor();
18
+
19
+
20
+ /**
21
+ * Create a new world sink that writes fresh chunk data to `dir`.
22
+ * `options_json` is a serialized `WorldExportOptions` (empty string =
23
+ * defaults).
24
+ */
25
+ static create(dir: string, optionsJson: string): WorldSink;
26
+
27
+ /**
28
+ * Open an existing world directory for patching via `put_chunk`.
29
+ */
30
+ static openExisting(dir: string): WorldSink;
31
+
32
+ /**
33
+ * Write (append) a chunk view into the sink. The view is not consumed.
34
+ */
35
+ writeChunk(view: WorldChunkView): void;
36
+
37
+ /**
38
+ * Overwrite the chunk at (`view.cx`, `view.cz`) of the sink's world with
39
+ * the supplied view's block data. Only valid on sinks opened with
40
+ * `open_existing`; errors with `Io` on a create-mode sink. The view is
41
+ * not consumed.
42
+ */
43
+ putChunk(view: WorldChunkView): void;
44
+
45
+ /**
46
+ * Finalise and flush all pending writes. Consuming (PORTING rule 11):
47
+ * afterwards every method on this sink returns `AlreadyConsumed`.
48
+ */
49
+ finish(): void;
50
+ }
package/WorldSink.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  // generated by diplomat-tool
2
- import type { NucleationError } from "./NucleationError"
3
- import type { WorldChunkView } from "./WorldChunkView"
2
+ import type { NucleationError } from "./NucleationError.mjs"
3
+ import type { WorldChunkView } from "./WorldChunkView.mjs"
4
4
  import type { pointer, codepoint } from "./diplomat-runtime.d.ts";
5
5
 
6
6
 
@@ -0,0 +1,45 @@
1
+ // generated by diplomat-tool
2
+ import type { NucleationError } from "./NucleationError.mjs"
3
+ import type { WorldChunkView } from "./WorldChunkView.mjs"
4
+ import type { pointer, codepoint } from "./diplomat-runtime.d.ts";
5
+
6
+
7
+
8
+ /**
9
+ * A streaming iterator over the chunks of a world.
10
+ */
11
+ export class WorldStream {
12
+ /** @internal */
13
+ get ffiValue(): pointer;
14
+ /** @internal */
15
+ constructor();
16
+
17
+
18
+ /**
19
+ * Open a streaming iterator over a world directory.
20
+ */
21
+ static openDir(path: string): WorldStream;
22
+
23
+ /**
24
+ * Open a streaming iterator over a world directory, bounded to the given
25
+ * block-coordinate box `[min_x..max_x, min_y..max_y, min_z..max_z]`.
26
+ */
27
+ static openDirBounded(path: string, minX: number, minY: number, minZ: number, maxX: number, maxY: number, maxZ: number): WorldStream;
28
+
29
+ /**
30
+ * Open a streaming iterator from a zip archive in memory.
31
+ */
32
+ static fromZip(data: Array<number>): WorldStream;
33
+
34
+ /**
35
+ * Open a bounded streaming iterator from a zip archive in memory.
36
+ */
37
+ static fromZipBounded(data: Array<number>, minX: number, minY: number, minZ: number, maxX: number, maxY: number, maxZ: number): WorldStream;
38
+
39
+ /**
40
+ * Advance the iterator and return the next chunk view. Errors with
41
+ * `NotFound` at end-of-stream (the old ABI returned NULL). Corrupt
42
+ * chunks are silently skipped, matching the old ABI.
43
+ */
44
+ next(): WorldChunkView;
45
+ }
package/WorldStream.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  // generated by diplomat-tool
2
- import type { NucleationError } from "./NucleationError"
3
- import type { WorldChunkView } from "./WorldChunkView"
2
+ import type { NucleationError } from "./NucleationError.mjs"
3
+ import type { WorldChunkView } from "./WorldChunkView.mjs"
4
4
  import type { pointer, codepoint } from "./diplomat-runtime.d.ts";
5
5
 
6
6
 
@@ -0,0 +1,29 @@
1
+ // generated by diplomat-tool
2
+ import type { NucleationError } from "./NucleationError.mjs"
3
+ import type { pointer, codepoint } from "./diplomat-runtime.d.ts";
4
+
5
+
6
+
7
+ /**
8
+ * Caller-supplied partition hints (full-column boxes a cluster may never
9
+ * span under {@link PartitionPolicy::HardCut}). Order does not matter:
10
+ * {@link PartitionIndex::new}(crate::world_segment::partition::PartitionIndex)
11
+ * sorts hints by full content at construction time.
12
+ */
13
+ export class WsPartitionHints {
14
+ /** @internal */
15
+ get ffiValue(): pointer;
16
+ /** @internal */
17
+ constructor();
18
+
19
+
20
+ static create(): WsPartitionHints;
21
+
22
+ /**
23
+ * Add a full-column hint (`y_range: None`) covering inclusive
24
+ * `x0..=x1, z0..=z1`.
25
+ */
26
+ add(id: string, x0: number, x1: number, z0: number, z1: number): void;
27
+
28
+ len(): number;
29
+ }
@@ -1,5 +1,5 @@
1
1
  // generated by diplomat-tool
2
- import type { NucleationError } from "./NucleationError"
2
+ import type { NucleationError } from "./NucleationError.mjs"
3
3
  import type { pointer, codepoint } from "./diplomat-runtime.d.ts";
4
4
 
5
5
 
@@ -0,0 +1,46 @@
1
+ // generated by diplomat-tool
2
+ import type { NucleationError } from "./NucleationError.mjs"
3
+ import type { pointer, codepoint } from "./diplomat-runtime.d.ts";
4
+
5
+
6
+
7
+ /**
8
+ * A pinned {@link WorldProfile}(crate::world_segment::profile::WorldProfile):
9
+ * the substrate palette + Y band derived (or supplied) once per world and
10
+ * reused across every segmentation run against it.
11
+ */
12
+ export class WsProfile {
13
+ /** @internal */
14
+ get ffiValue(): pointer;
15
+ /** @internal */
16
+ constructor();
17
+
18
+
19
+ /**
20
+ * Derive a profile from up to `sample` tiles (regions) of a world
21
+ * directory, in ascending `(x, z)` region order. `coverage` is
22
+ * `ProfileParams::min_slab_coverage`; every other `ProfileParams`
23
+ * field uses its default (`sample_stride: 1`, `y_scan: (-64, 320)`).
24
+ */
25
+ static deriveFromDir(worldDir: string, minY: number, maxY: number, sample: number, coverage: number): WsProfile;
26
+
27
+ /**
28
+ * The derived substrate Y band's lower bound (inclusive).
29
+ */
30
+ bandMin(): number;
31
+
32
+ /**
33
+ * The derived substrate Y band's upper bound (inclusive).
34
+ */
35
+ bandMax(): number;
36
+
37
+ /**
38
+ * Number of distinct block names in the substrate palette.
39
+ */
40
+ paletteLen(): number;
41
+
42
+ /**
43
+ * The substrate palette as a JSON array of block-name strings.
44
+ */
45
+ writePaletteJson(): string;
46
+ }
package/WsProfile.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  // generated by diplomat-tool
2
- import type { NucleationError } from "./NucleationError"
2
+ import type { NucleationError } from "./NucleationError.mjs"
3
3
  import type { pointer, codepoint } from "./diplomat-runtime.d.ts";
4
4
 
5
5
 
@@ -0,0 +1,83 @@
1
+ // generated by diplomat-tool
2
+ import type { BlockPos } from "./BlockPos.mjs"
3
+ import type { NucleationError } from "./NucleationError.mjs"
4
+ import type { WsPartitionHints } from "./WsPartitionHints.mjs"
5
+ import type { WsProfile } from "./WsProfile.mjs"
6
+ import type { WsSegmentJob } from "./WsSegmentJob.mjs"
7
+ import type { pointer, codepoint } from "./diplomat-runtime.d.ts";
8
+
9
+
10
+
11
+ /**
12
+ * The materialized output of one segmentation run: every build (in the
13
+ * pipeline's deterministic stable-id order) plus the aggregate
14
+ * {@link RunStats}(crate::world_segment::runner::RunStats).
15
+ */
16
+ export class WsRunResult {
17
+ /** @internal */
18
+ get ffiValue(): pointer;
19
+ /** @internal */
20
+ constructor();
21
+
22
+
23
+ /**
24
+ * Run the full pipeline (source -> segment -> stitch -> score ->
25
+ * identity -> materialize) over a world directory. No prior-snapshot
26
+ * builds are supplied, so every build seeds a fresh stable id (see
27
+ * `StableBuildId::seed`).
28
+ *
29
+ * See the module docs for why this catches a panic instead of
30
+ * propagating it.
31
+ */
32
+ static runDir(job: WsSegmentJob, hints: WsPartitionHints, profile: WsProfile, worldDir: string): WsRunResult;
33
+
34
+ /**
35
+ * Total builds materialized (same as `build_count`, from `RunStats`).
36
+ */
37
+ builds(): bigint;
38
+
39
+ tierConfident(): bigint;
40
+
41
+ tierProbable(): bigint;
42
+
43
+ tierDebris(): bigint;
44
+
45
+ crossTile(): bigint;
46
+
47
+ largestBlockCount(): bigint;
48
+
49
+ /**
50
+ * Number of builds held in this result (indices `0..build_count()`
51
+ * are valid for every per-index accessor below).
52
+ */
53
+ buildCount(): number;
54
+
55
+ /**
56
+ * The build's stable id (hex), stable across re-runs against the
57
+ * same source under the same config, absent a prior-snapshot match.
58
+ */
59
+ stableIdHex(index: number): string;
60
+
61
+ /**
62
+ * The build's content fingerprint, as 32 lowercase hex digits (u128,
63
+ * big-endian).
64
+ */
65
+ fingerprintHex(index: number): string;
66
+
67
+ /**
68
+ * `0` = Confident, `1` = Probable, `2` = Debris.
69
+ */
70
+ tierOf(index: number): number;
71
+
72
+ blockCountOf(index: number): bigint;
73
+
74
+ /**
75
+ * The build's world-space bounding box minimum (inclusive).
76
+ */
77
+ bboxMinOf(index: number): BlockPos;
78
+
79
+ /**
80
+ * The build's world-space bounding box maximum (inclusive).
81
+ */
82
+ bboxMaxOf(index: number): BlockPos;
83
+ }
package/WsRunResult.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  // generated by diplomat-tool
2
- import type { BlockPos } from "./BlockPos"
3
- import type { NucleationError } from "./NucleationError"
4
- import type { WsPartitionHints } from "./WsPartitionHints"
5
- import type { WsProfile } from "./WsProfile"
6
- import type { WsSegmentJob } from "./WsSegmentJob"
2
+ import type { BlockPos } from "./BlockPos.mjs"
3
+ import type { NucleationError } from "./NucleationError.mjs"
4
+ import type { WsPartitionHints } from "./WsPartitionHints.mjs"
5
+ import type { WsProfile } from "./WsProfile.mjs"
6
+ import type { WsSegmentJob } from "./WsSegmentJob.mjs"
7
7
  import type { pointer, codepoint } from "./diplomat-runtime.d.ts";
8
8
 
9
9
 
@@ -0,0 +1,28 @@
1
+ // generated by diplomat-tool
2
+ import type { NucleationError } from "./NucleationError.mjs"
3
+ import type { pointer, codepoint } from "./diplomat-runtime.d.ts";
4
+
5
+
6
+
7
+ /**
8
+ * One segmentation run's parameters (the primitive knobs of
9
+ * {@link SegmentJob}(crate::world_segment::runner::SegmentJob), plus a
10
+ * `hard_cut` flag selecting {@link PartitionPolicy}). Built once, passed by
11
+ * reference into {@link WsRunResult::run_dir}.
12
+ */
13
+ export class WsSegmentJob {
14
+ /** @internal */
15
+ get ffiValue(): pointer;
16
+ /** @internal */
17
+ constructor();
18
+
19
+
20
+ /**
21
+ * `algorithm_version` is pinned to
22
+ * {@link SegConfig::default}(crate::world_segment::segment::SegConfig)'s
23
+ * value; `score_config` uses `ScoreConfig::default()`. Neither is
24
+ * exposed as a knob here — construct a `SegmentJob` directly in Rust
25
+ * if you need to override them.
26
+ */
27
+ static create(cellSize: number, closingRadius: number, minClusterBlocks: bigint, sourceId: string, snapshotId: string, minY: number, maxY: number, extractedAt: bigint, matchIou: number, hardCut: boolean): WsSegmentJob;
28
+ }
package/WsSegmentJob.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  // generated by diplomat-tool
2
- import type { NucleationError } from "./NucleationError"
2
+ import type { NucleationError } from "./NucleationError.mjs"
3
3
  import type { pointer, codepoint } from "./diplomat-runtime.d.ts";
4
4
 
5
5
 
@@ -0,0 +1,15 @@
1
+ /// A [codepoint] is a Unicode code point, such as `a`, or `💡`.
2
+ ///
3
+ /// The recommended way to obtain a `codepoint` is to create it from a
4
+ /// `String`, which is conceptually a list of `codepoint`s. For example,
5
+ /// `'a'.codePointAt(0)` is equal to the `char` `a`.
6
+ ///
7
+ /// JS does not have a character/codepoint literal, so integer literals
8
+ /// need to be used. For example the Unicode code point U+1F4A1, `💡`,
9
+ /// can be represented by `0x1F4A1`. Note that only values in the ranges
10
+ /// `0x0..0xD7FF` and `0xE000..0x10FFFF` (both inclusive) are Unicode
11
+ /// code points, and hence valid `codepoint`s.
12
+ ///
13
+ /// A `String` can be constructed from a `codepoint` using `String.fromCodePoint()`.
14
+ export type codepoint = number;
15
+ export type pointer = number;
package/index.d.mts ADDED
@@ -0,0 +1,177 @@
1
+
2
+ export { codepoint } from './diplomat-runtime.mjs';
3
+
4
+
5
+ export { RegionBounds, RegionBounds_obj } from "./RegionBounds.mjs"
6
+
7
+ export { ItemScale, ItemScale_obj } from "./ItemScale.mjs"
8
+
9
+ export { MeshBounds, MeshBounds_obj } from "./MeshBounds.mjs"
10
+
11
+ export { MeshProgress, MeshProgress_obj } from "./MeshProgress.mjs"
12
+
13
+ export { TextureInfo, TextureInfo_obj } from "./TextureInfo.mjs"
14
+
15
+ export { BlockPos, BlockPos_obj } from "./BlockPos.mjs"
16
+
17
+ export { Dimensions, Dimensions_obj } from "./Dimensions.mjs"
18
+
19
+ export { FieldRange } from "./FieldRange.mjs"
20
+
21
+ export { SdfBounds } from "./SdfBounds.mjs"
22
+
23
+ export { SdfNormal } from "./SdfNormal.mjs"
24
+
25
+ export { AnimationEffect } from "./AnimationEffect.mjs"
26
+
27
+ export { BuildAnimation } from "./BuildAnimation.mjs"
28
+
29
+ export { VideoConfig } from "./VideoConfig.mjs"
30
+
31
+ export { Autostack } from "./Autostack.mjs"
32
+
33
+ export { Blocks } from "./Blocks.mjs"
34
+
35
+ export { Brush } from "./Brush.mjs"
36
+
37
+ export { BuildingTool } from "./BuildingTool.mjs"
38
+
39
+ export { Curve3D } from "./Curve3D.mjs"
40
+
41
+ export { Palette } from "./Palette.mjs"
42
+
43
+ export { PaletteBuilder } from "./PaletteBuilder.mjs"
44
+
45
+ export { Shape } from "./Shape.mjs"
46
+
47
+ export { DefinitionRegion } from "./DefinitionRegion.mjs"
48
+
49
+ export { SchematicRegions } from "./SchematicRegions.mjs"
50
+
51
+ export { Diff } from "./Diff.mjs"
52
+
53
+ export { Fingerprint } from "./Fingerprint.mjs"
54
+
55
+ export { DistanceField } from "./DistanceField.mjs"
56
+
57
+ export { Field3 } from "./Field3.mjs"
58
+
59
+ export { Geo } from "./Geo.mjs"
60
+
61
+ export { ChunkMeshResult } from "./ChunkMeshResult.mjs"
62
+
63
+ export { ItemModelConfig } from "./ItemModelConfig.mjs"
64
+
65
+ export { ItemModelPackBuilder } from "./ItemModelPackBuilder.mjs"
66
+
67
+ export { ItemModelResult } from "./ItemModelResult.mjs"
68
+
69
+ export { MeshConfig } from "./MeshConfig.mjs"
70
+
71
+ export { MeshJob } from "./MeshJob.mjs"
72
+
73
+ export { MeshResult } from "./MeshResult.mjs"
74
+
75
+ export { MultiMeshResult } from "./MultiMeshResult.mjs"
76
+
77
+ export { RawMeshExport } from "./RawMeshExport.mjs"
78
+
79
+ export { ResourcePack } from "./ResourcePack.mjs"
80
+
81
+ export { ResourcePackList } from "./ResourcePackList.mjs"
82
+
83
+ export { TextureAtlas } from "./TextureAtlas.mjs"
84
+
85
+ export { Nbt } from "./Nbt.mjs"
86
+
87
+ export { RenderConfig } from "./RenderConfig.mjs"
88
+
89
+ export { Renderer } from "./Renderer.mjs"
90
+
91
+ export { BlockState } from "./BlockState.mjs"
92
+
93
+ export { Schematic } from "./Schematic.mjs"
94
+
95
+ export { SchematicBuilder } from "./SchematicBuilder.mjs"
96
+
97
+ export { Scripting } from "./Scripting.mjs"
98
+
99
+ export { FieldProgram } from "./FieldProgram.mjs"
100
+
101
+ export { FieldProgramBuilder } from "./FieldProgramBuilder.mjs"
102
+
103
+ export { Sdf } from "./Sdf.mjs"
104
+
105
+ export { CircuitBuilder } from "./CircuitBuilder.mjs"
106
+
107
+ export { ExecutionMode } from "./ExecutionMode.mjs"
108
+
109
+ export { IoLayout } from "./IoLayout.mjs"
110
+
111
+ export { IoLayoutBuilder } from "./IoLayoutBuilder.mjs"
112
+
113
+ export { IoType } from "./IoType.mjs"
114
+
115
+ export { LayoutFunction } from "./LayoutFunction.mjs"
116
+
117
+ export { MchprsWorld } from "./MchprsWorld.mjs"
118
+
119
+ export { OutputCondition } from "./OutputCondition.mjs"
120
+
121
+ export { RedstoneGraph } from "./RedstoneGraph.mjs"
122
+
123
+ export { SortStrategy } from "./SortStrategy.mjs"
124
+
125
+ export { TypedCircuitExecutor } from "./TypedCircuitExecutor.mjs"
126
+
127
+ export { Value } from "./Value.mjs"
128
+
129
+ export { Store } from "./Store.mjs"
130
+
131
+ export { StoreIo } from "./StoreIo.mjs"
132
+
133
+ export { Voxelizer } from "./Voxelizer.mjs"
134
+
135
+ export { CellularSdfConfig } from "./CellularSdfConfig.mjs"
136
+
137
+ export { GeneratedChunk } from "./GeneratedChunk.mjs"
138
+
139
+ export { GeneratedWorldStream } from "./GeneratedWorldStream.mjs"
140
+
141
+ export { WorldGenerator } from "./WorldGenerator.mjs"
142
+
143
+ export { WsPartitionHints } from "./WsPartitionHints.mjs"
144
+
145
+ export { WsProfile } from "./WsProfile.mjs"
146
+
147
+ export { WsRunResult } from "./WsRunResult.mjs"
148
+
149
+ export { WsSegmentJob } from "./WsSegmentJob.mjs"
150
+
151
+ export { WorldChunkView } from "./WorldChunkView.mjs"
152
+
153
+ export { WorldSink } from "./WorldSink.mjs"
154
+
155
+ export { WorldStream } from "./WorldStream.mjs"
156
+
157
+ export { InterpolationSpace } from "./InterpolationSpace.mjs"
158
+
159
+ export { MeshPhase } from "./MeshPhase.mjs"
160
+
161
+ export { FieldProgramBinaryOp } from "./FieldProgramBinaryOp.mjs"
162
+
163
+ export { FieldProgramDistanceKind } from "./FieldProgramDistanceKind.mjs"
164
+
165
+ export { FieldProgramUnaryOp } from "./FieldProgramUnaryOp.mjs"
166
+
167
+ export { FieldProgramValueType } from "./FieldProgramValueType.mjs"
168
+
169
+ export { SdfAxis } from "./SdfAxis.mjs"
170
+
171
+ export { SdfCellMode } from "./SdfCellMode.mjs"
172
+
173
+ export { NucleationError } from "./NucleationError.mjs"
174
+
175
+ export { GeneratedChunkCoverage } from "./GeneratedChunkCoverage.mjs"
176
+
177
+ export { GeneratedChunkOverlayMode } from "./GeneratedChunkOverlayMode.mjs"