@thoughts-on-things/vantage-mc 0.15.0 → 0.15.2
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.
|
@@ -622,4 +622,5 @@ declare function summarizeSurfaceBiomes(surface: SurfaceMap, names: string[], pa
|
|
|
622
622
|
*/
|
|
623
623
|
declare function summarizeBiomes(tile: DecodedTile, palette?: Rgb[]): BiomeEntry[];
|
|
624
624
|
|
|
625
|
-
export { worldFromUrl as $, parseTileQuantized as A,
|
|
625
|
+
export { worldFromUrl as $, parseTileQuantized as A, parseWorldIndex as C, pickDimension as E, resolveManifestPath as F, samePlayers as G, stripNamespace as I, summarizeBiomes as J, summarizeSurfaceBiomes as K, NO_PLAYERS as N, tileKey as O, TEXTURE_MAGIC as T, UV_SCALE as U, worldFromDirectory as X, worldFromFiles as Y, worldFromHttp as Z, worldFromIndexEntry as _, worldFromVantageServer as a0, wrapDegrees as a1, ByteReader as b, TILE_MAGIC as i, angleDelta as r, biomePalette as s, canonicalQuadIndices as t, isWorldIndex as u, parseManifest as v, parsePlayers as w, parseServerWorlds as x, parseTextureArray as y, parseTile as z };
|
|
626
|
+
export type { BiomeEntry as B, DecodedTile as D, HttpWorldOptions as H, Lightmap as L, ManifestAtmosphere as M, PlayerSnapshot as P, QuantizedTile as Q, Rgb as R, SurfaceMap as S, VantageServerOptions as V, WorldConditionalFetch as W, DecodedTextureArray as a, LowresLevel as c, ManifestDimension as d, ManifestTile as e, MeshSection as f, PlayerState as g, QuantizedSection as h, TextureAnimation as j, TileMagic as k, WorldDimension as l, WorldFetch as m, WorldHttpFetch as n, WorldIndex as o, WorldManifest as p, WorldSource as q };
|
package/dist/core/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { B as BiomeEntry, b as ByteReader, a as DecodedTextureArray, D as DecodedTile, H as HttpWorldOptions, L as Lightmap, c as LowresLevel, M as ManifestAtmosphere, d as ManifestDimension, e as ManifestTile, f as MeshSection, N as NO_PLAYERS, P as PlayerSnapshot, g as PlayerState, h as QuantizedSection, Q as QuantizedTile, R as Rgb, S as SurfaceMap, T as TEXTURE_MAGIC, i as TILE_MAGIC, j as TextureAnimation, k as TileMagic, U as UV_SCALE, V as VantageServerOptions, W as WorldConditionalFetch, l as WorldDimension, m as WorldFetch, n as WorldHttpFetch, o as WorldIndex, p as WorldManifest, q as WorldSource, r as angleDelta, s as biomePalette, t as canonicalQuadIndices, u as isWorldIndex, v as parseManifest, w as parsePlayers, x as parseServerWorlds, y as parseTextureArray, z as parseTile, A as parseTileQuantized, C as parseWorldIndex, E as pickDimension, F as resolveManifestPath, G as samePlayers, I as stripNamespace, J as summarizeBiomes, K as summarizeSurfaceBiomes, O as tileKey, X as worldFromDirectory, Y as worldFromFiles, Z as worldFromHttp, _ as worldFromIndexEntry, $ as worldFromUrl, a0 as worldFromVantageServer, a1 as wrapDegrees } from '../biome-
|
|
1
|
+
export { B as BiomeEntry, b as ByteReader, a as DecodedTextureArray, D as DecodedTile, H as HttpWorldOptions, L as Lightmap, c as LowresLevel, M as ManifestAtmosphere, d as ManifestDimension, e as ManifestTile, f as MeshSection, N as NO_PLAYERS, P as PlayerSnapshot, g as PlayerState, h as QuantizedSection, Q as QuantizedTile, R as Rgb, S as SurfaceMap, T as TEXTURE_MAGIC, i as TILE_MAGIC, j as TextureAnimation, k as TileMagic, U as UV_SCALE, V as VantageServerOptions, W as WorldConditionalFetch, l as WorldDimension, m as WorldFetch, n as WorldHttpFetch, o as WorldIndex, p as WorldManifest, q as WorldSource, r as angleDelta, s as biomePalette, t as canonicalQuadIndices, u as isWorldIndex, v as parseManifest, w as parsePlayers, x as parseServerWorlds, y as parseTextureArray, z as parseTile, A as parseTileQuantized, C as parseWorldIndex, E as pickDimension, F as resolveManifestPath, G as samePlayers, I as stripNamespace, J as summarizeBiomes, K as summarizeSurfaceBiomes, O as tileKey, X as worldFromDirectory, Y as worldFromFiles, Z as worldFromHttp, _ as worldFromIndexEntry, $ as worldFromUrl, a0 as worldFromVantageServer, a1 as wrapDegrees } from '../biome-oRwbbgzt.js';
|
|
2
2
|
|
|
3
3
|
declare const LOWRES_MAGIC = "VLR1";
|
|
4
4
|
/** Height sentinel for samples with no terrain (unpopulated chunks). */
|
|
@@ -36,4 +36,5 @@ declare function isGzip(buffer: ArrayBuffer): boolean;
|
|
|
36
36
|
/** Inflate the buffer if it is gzip-wrapped; return it untouched otherwise. */
|
|
37
37
|
declare function maybeInflate(buffer: ArrayBuffer): Promise<ArrayBuffer>;
|
|
38
38
|
|
|
39
|
-
export { LOWRES_EMPTY, LOWRES_MAGIC,
|
|
39
|
+
export { LOWRES_EMPTY, LOWRES_MAGIC, isGzip, maybeInflate, parseLowresTile };
|
|
40
|
+
export type { LowresTile };
|
package/dist/react/index.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { CSSProperties, ReactNode } from 'react';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
import { B as BiomeEntry, l as WorldDimension } from '../biome-oRwbbgzt.js';
|
|
4
|
+
import { WorldSource } from '../core/index.js';
|
|
5
|
+
export { D as DecodedTile, o as WorldIndex } from '../biome-oRwbbgzt.js';
|
|
6
|
+
import { k as TileSource, T as TextureSource, S as StreamingSettings, o as ViewMode, L as LightSettings, a as DisplaySettings, e as PlayerOptions, h as TileInfo, m as VantageViewer$1 } from '../viewer-D_36V87R.js';
|
|
7
|
+
export { D as DEFAULT_ORBIT_ANGLE, f as PlayerSettings, g as PlayerView, V as VANILLA_DISPLAY } from '../viewer-D_36V87R.js';
|
|
7
8
|
import 'three';
|
|
8
9
|
|
|
9
10
|
interface VantageViewerProps {
|
|
@@ -210,4 +211,5 @@ declare const CSS = "\n.vtg-root {\n position: relative; width: 100%; height: 1
|
|
|
210
211
|
/** Inject the component stylesheet once. No-op on the server or after the first call. */
|
|
211
212
|
declare function injectStyles(): void;
|
|
212
213
|
|
|
213
|
-
export { BiomeEntry, BiomeLayer,
|
|
214
|
+
export { BiomeEntry, BiomeLayer, CSS, DepthSlider, DimensionPicker, DisplaySettings, LightPanel, LightSettings, MapNav, Panel, PlayerList, PlayerOptions, QUALITY_PRESETS, Reticle, SettingsPanel, StreamingSettings, TextureSource, TileInfo, TileSource, VantageViewer$1 as VantageEngine, VantageViewer, ViewMode, WorldDimension, injectStyles, useVantage };
|
|
215
|
+
export type { BiomeLayerProps, DepthSliderProps, DimensionPickerProps, LightPanelProps, MapNavProps, PanelProps, PlayerListProps, QualityPreset, ReticleProps, SettingsPanelProps, VantageContextValue, VantageStatus, VantageViewerProps };
|
package/dist/three/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as THREE from 'three';
|
|
2
|
-
import { R as Rgb, Q as QuantizedTile, D as DecodedTile, a as DecodedTextureArray, S as SurfaceMap } from '../biome-
|
|
3
|
-
export { B as BiomeEntry, b as ByteReader, H as HttpWorldOptions, L as Lightmap, c as LowresLevel, M as ManifestAtmosphere, d as ManifestDimension, e as ManifestTile, f as MeshSection, N as NO_PLAYERS, P as PlayerSnapshot, g as PlayerState, h as QuantizedSection, T as TEXTURE_MAGIC, i as TILE_MAGIC, j as TextureAnimation, k as TileMagic, U as UV_SCALE, V as VantageServerOptions, W as WorldConditionalFetch, l as WorldDimension, m as WorldFetch, n as WorldHttpFetch, o as WorldIndex, p as WorldManifest, q as WorldSource, r as angleDelta, s as biomePalette, t as canonicalQuadIndices, u as isWorldIndex, v as parseManifest, w as parsePlayers, x as parseServerWorlds, y as parseTextureArray, z as parseTile, A as parseTileQuantized, C as parseWorldIndex, E as pickDimension, F as resolveManifestPath, G as samePlayers, I as stripNamespace, J as summarizeBiomes, K as summarizeSurfaceBiomes, O as tileKey, X as worldFromDirectory, Y as worldFromFiles, Z as worldFromHttp, _ as worldFromIndexEntry, $ as worldFromUrl, a0 as worldFromVantageServer, a1 as wrapDegrees } from '../biome-
|
|
2
|
+
import { R as Rgb, Q as QuantizedTile, D as DecodedTile, a as DecodedTextureArray, S as SurfaceMap } from '../biome-oRwbbgzt.js';
|
|
3
|
+
export { B as BiomeEntry, b as ByteReader, H as HttpWorldOptions, L as Lightmap, c as LowresLevel, M as ManifestAtmosphere, d as ManifestDimension, e as ManifestTile, f as MeshSection, N as NO_PLAYERS, P as PlayerSnapshot, g as PlayerState, h as QuantizedSection, T as TEXTURE_MAGIC, i as TILE_MAGIC, j as TextureAnimation, k as TileMagic, U as UV_SCALE, V as VantageServerOptions, W as WorldConditionalFetch, l as WorldDimension, m as WorldFetch, n as WorldHttpFetch, o as WorldIndex, p as WorldManifest, q as WorldSource, r as angleDelta, s as biomePalette, t as canonicalQuadIndices, u as isWorldIndex, v as parseManifest, w as parsePlayers, x as parseServerWorlds, y as parseTextureArray, z as parseTile, A as parseTileQuantized, C as parseWorldIndex, E as pickDimension, F as resolveManifestPath, G as samePlayers, I as stripNamespace, J as summarizeBiomes, K as summarizeSurfaceBiomes, O as tileKey, X as worldFromDirectory, Y as worldFromFiles, Z as worldFromHttp, _ as worldFromIndexEntry, $ as worldFromUrl, a0 as worldFromVantageServer, a1 as wrapDegrees } from '../biome-oRwbbgzt.js';
|
|
4
4
|
import { LowresTile } from '../core/index.js';
|
|
5
5
|
export { LOWRES_EMPTY, LOWRES_MAGIC, isGzip, maybeInflate, parseLowresTile } from '../core/index.js';
|
|
6
|
-
export { D as DEFAULT_ORBIT_ANGLE, a as DisplaySettings, H as HeightSampler, L as LightSettings, b as LoadOptions, M as MapControls, c as MapControlsOptions, P as PlayerLayer, d as PlayerLayerOptions, e as PlayerOptions, f as PlayerSettings, g as PlayerView, S as StreamingSettings, T as TextureSource, h as TileInfo, i as TileManager, j as TileManagerOptions, k as TileSource, l as TileStats, V as VANILLA_DISPLAY, m as VantageViewer, n as VantageViewerOptions, o as ViewMode } from '../viewer-
|
|
6
|
+
export { D as DEFAULT_ORBIT_ANGLE, a as DisplaySettings, H as HeightSampler, L as LightSettings, b as LoadOptions, M as MapControls, c as MapControlsOptions, P as PlayerLayer, d as PlayerLayerOptions, e as PlayerOptions, f as PlayerSettings, g as PlayerView, S as StreamingSettings, T as TextureSource, h as TileInfo, i as TileManager, j as TileManagerOptions, k as TileSource, l as TileStats, V as VANILLA_DISPLAY, m as VantageViewer, n as VantageViewerOptions, o as ViewMode } from '../viewer-D_36V87R.js';
|
|
7
7
|
|
|
8
8
|
/** The objects and metadata produced from a tile. */
|
|
9
9
|
interface TerrainObjects {
|
|
@@ -173,4 +173,5 @@ declare function normalizeSkin(image: CanvasImageSource, width: number, height:
|
|
|
173
173
|
*/
|
|
174
174
|
declare function headIconCanvas(skin: CanvasImageSource, size?: number, doc?: Document): HTMLCanvasElement;
|
|
175
175
|
|
|
176
|
-
export {
|
|
176
|
+
export { DecodedTextureArray, DecodedTile, LowresTile, QuantizedTile, Rgb, SKIN_SIZE, SKY_HORIZON, SKY_TOP, SurfaceMap, applyCaveRange, boxFaces, buildLowresMesh, buildQuantizedTileMeshes, buildTerrain, buildTileMeshes, createLowresMaterial, createSky, createTerrainMaterial, createWaterMaterial, defaultSkinCanvas, hashId, headIconCanvas, normalizeSkin, pickBiome, setSkyColors };
|
|
177
|
+
export type { BoxFaces, FaceRect, TerrainMaterialOptions, TerrainObjects, TileMeshes };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as THREE from 'three';
|
|
2
|
-
import { p as WorldManifest, m as WorldFetch, R as Rgb, e as ManifestTile, c as LowresLevel, B as BiomeEntry, g as PlayerState, P as PlayerSnapshot, a as DecodedTextureArray, D as DecodedTile, q as WorldSource, l as WorldDimension } from './biome-
|
|
2
|
+
import { p as WorldManifest, m as WorldFetch, R as Rgb, e as ManifestTile, c as LowresLevel, B as BiomeEntry, g as PlayerState, P as PlayerSnapshot, a as DecodedTextureArray, D as DecodedTile, q as WorldSource, l as WorldDimension } from './biome-oRwbbgzt.js';
|
|
3
3
|
|
|
4
4
|
interface TileManagerOptions {
|
|
5
5
|
manifest: WorldManifest;
|
|
@@ -1169,4 +1169,5 @@ declare class VantageViewer {
|
|
|
1169
1169
|
dispose(): void;
|
|
1170
1170
|
}
|
|
1171
1171
|
|
|
1172
|
-
export { DEFAULT_ORBIT_ANGLE as D,
|
|
1172
|
+
export { DEFAULT_ORBIT_ANGLE as D, MapControls as M, PlayerLayer as P, VANILLA_DISPLAY as V, TileManager as i, VantageViewer as m };
|
|
1173
|
+
export type { HeightSampler as H, LightSettings as L, StreamingSettings as S, TextureSource as T, DisplaySettings as a, LoadOptions as b, MapControlsOptions as c, PlayerLayerOptions as d, PlayerOptions as e, PlayerSettings as f, PlayerView as g, TileInfo as h, TileManagerOptions as j, TileSource as k, TileStats as l, VantageViewerOptions as n, ViewMode as o };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thoughts-on-things/vantage-mc",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.2",
|
|
4
4
|
"description": "Render a Minecraft (Java) world as a fast, beautiful 3D web map. The web frontend for the Vantage generator.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -57,11 +57,6 @@
|
|
|
57
57
|
"ci": "npm run typecheck && npm run test && npm run build",
|
|
58
58
|
"prepublishOnly": "npm run ci"
|
|
59
59
|
},
|
|
60
|
-
"overrides": {
|
|
61
|
-
"tsup": {
|
|
62
|
-
"esbuild": "^0.28.1"
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
60
|
"allowScripts": {
|
|
66
61
|
"esbuild": true
|
|
67
62
|
},
|
|
@@ -79,17 +74,17 @@
|
|
|
79
74
|
}
|
|
80
75
|
},
|
|
81
76
|
"devDependencies": {
|
|
82
|
-
"@types/node": "^26.
|
|
83
|
-
"@types/react": "^19.
|
|
84
|
-
"@types/react-dom": "^19.
|
|
85
|
-
"@types/three": "^0.
|
|
86
|
-
"@vitejs/plugin-react": "^6.0
|
|
87
|
-
"react": "^19.
|
|
88
|
-
"react-dom": "^19.
|
|
89
|
-
"three": "^0.
|
|
90
|
-
"tsup": "^
|
|
77
|
+
"@types/node": "^26.6.6",
|
|
78
|
+
"@types/react": "^19.3.0",
|
|
79
|
+
"@types/react-dom": "^19.3.0",
|
|
80
|
+
"@types/three": "^0.187.0",
|
|
81
|
+
"@vitejs/plugin-react": "^6.3.0",
|
|
82
|
+
"react": "^19.3.1",
|
|
83
|
+
"react-dom": "^19.3.1",
|
|
84
|
+
"three": "^0.187.0",
|
|
85
|
+
"tsup": "^9.0.0",
|
|
91
86
|
"typescript": "^6.0.3",
|
|
92
|
-
"vite": "^8.
|
|
93
|
-
"vitest": "^
|
|
87
|
+
"vite": "^8.3.8",
|
|
88
|
+
"vitest": "^5.1.0"
|
|
94
89
|
}
|
|
95
90
|
}
|