minerender 2.1.0-alpha.76 → 2.1.0-alpha.77
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 +57 -0
- package/dist/browser/index.d.mts +121 -2
- package/dist/browser/index.d.ts +121 -2
- package/dist/browser/index.js +720 -303
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/index.mjs +688 -271
- package/dist/browser/index.mjs.map +1 -1
- package/dist/bundle.js +1463 -1035
- package/dist/bundle.js.map +1 -1
- package/dist/node/index.d.mts +121 -2
- package/dist/node/index.d.ts +121 -2
- package/dist/node/index.js +721 -302
- package/dist/node/index.js.map +1 -1
- package/dist/node/index.mjs +687 -270
- package/dist/node/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -62,3 +62,60 @@ Filter expressions use JavaScript regular expressions with substring matching.
|
|
|
62
62
|
Namespace and path matches can come from different rules, following vanilla's
|
|
63
63
|
filter behavior. Paths include the asset type and extension, such as
|
|
64
64
|
`textures/block/stone.png`. Java-only regular expression syntax is not supported.
|
|
65
|
+
|
|
66
|
+
## Load an editable scene
|
|
67
|
+
|
|
68
|
+
The web scene editor saves versioned JSON that the library can load directly:
|
|
69
|
+
|
|
70
|
+
```ts
|
|
71
|
+
import { AssetLoader, Renderer, SceneDocumentLoader } from "minerender";
|
|
72
|
+
|
|
73
|
+
const response = await fetch("./scene.json");
|
|
74
|
+
if (!response.ok) throw new Error("Could not fetch scene.json");
|
|
75
|
+
const definition = SceneDocumentLoader.parse(await response.json());
|
|
76
|
+
if (definition.minecraftVersion) AssetLoader.setVersion(definition.minecraftVersion);
|
|
77
|
+
|
|
78
|
+
const renderer = new Renderer({
|
|
79
|
+
controls: { enabled: true },
|
|
80
|
+
...(definition.camera ? { camera: {
|
|
81
|
+
position: definition.camera.position,
|
|
82
|
+
lookingAt: definition.camera.target
|
|
83
|
+
} } : {})
|
|
84
|
+
});
|
|
85
|
+
renderer.appendTo(document.body);
|
|
86
|
+
const scene = await SceneDocumentLoader.load(renderer.scene, definition);
|
|
87
|
+
const unsubscribe = renderer.onFrame(({ delta }) => scene.advanceAnimations(delta));
|
|
88
|
+
renderer.start();
|
|
89
|
+
|
|
90
|
+
// Release the scene when its view closes.
|
|
91
|
+
function dispose() {
|
|
92
|
+
unsubscribe();
|
|
93
|
+
scene.dispose();
|
|
94
|
+
renderer.dispose();
|
|
95
|
+
}
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
A minimal document contains a format, schema version, and object definitions:
|
|
99
|
+
|
|
100
|
+
```json
|
|
101
|
+
{
|
|
102
|
+
"format": "minerender-scene",
|
|
103
|
+
"version": 1,
|
|
104
|
+
"minecraftVersion": "1.21.11",
|
|
105
|
+
"objects": [
|
|
106
|
+
{
|
|
107
|
+
"id": "stairs",
|
|
108
|
+
"type": "block",
|
|
109
|
+
"asset": "minecraft:oak_stairs",
|
|
110
|
+
"state": { "facing": "east", "half": "bottom", "shape": "straight" },
|
|
111
|
+
"position": [0, 0, 0],
|
|
112
|
+
"rotation": [0, 0, 0]
|
|
113
|
+
}
|
|
114
|
+
]
|
|
115
|
+
}
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
Supported object types are `skin`, `block`, `item`, `model`, `entity`, and `gui`.
|
|
119
|
+
Positions use model units (16 per block); JSON rotations use radians.
|
|
120
|
+
|
|
121
|
+
Callers apply the saved camera settings and select the matching asset version.
|
package/dist/browser/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as three from 'three';
|
|
2
|
-
import { Vector3, PixelFormat, BoxGeometry, Material, ColorRepresentation, MeshBasicMaterial, Mesh, Euler, Vector2, BufferAttribute, Float32BufferAttribute, BufferGeometry, Object3D, Box3, InstancedMesh, PerspectiveCamera, OrthographicCamera, Matrix4, Box2, Scene, Object3DEventMap, Texture, Camera, MOUSE, TOUCH, WebGLRenderer, EventDispatcher, Raycaster, Intersection, DataTexture, CanvasTexture, InterleavedBufferAttribute, TrianglesDrawModes, Line, Points
|
|
2
|
+
import { Vector3, PixelFormat, BoxGeometry, Material, ColorRepresentation, MeshBasicMaterial, Mesh, Euler, Vector2, BufferAttribute, Float32BufferAttribute, BufferGeometry, Object3D, Box3, InstancedMesh, PerspectiveCamera, OrthographicCamera, Matrix4, Box2, Scene, Object3DEventMap, Texture, Camera, MOUSE, TOUCH, WebGLRenderer, EventDispatcher, Raycaster, Intersection, Group, DataTexture, CanvasTexture, InterleavedBufferAttribute, TrianglesDrawModes, Line, Points } from 'three';
|
|
3
3
|
import * as nodeCanvas from 'canvas';
|
|
4
4
|
import { ImageData as ImageData$1, CanvasRenderingContext2D } from 'canvas';
|
|
5
5
|
import { Buffer } from 'buffer';
|
|
@@ -2674,6 +2674,125 @@ declare class StatLine {
|
|
|
2674
2674
|
update(): void;
|
|
2675
2675
|
}
|
|
2676
2676
|
|
|
2677
|
+
/** Portable scene setup. Positions use model units (16 per block); rotations use radians. */
|
|
2678
|
+
interface SceneDocument {
|
|
2679
|
+
format: "minerender-scene";
|
|
2680
|
+
version: 1;
|
|
2681
|
+
minecraftVersion?: string;
|
|
2682
|
+
camera?: {
|
|
2683
|
+
position: TripleArray;
|
|
2684
|
+
target: TripleArray;
|
|
2685
|
+
};
|
|
2686
|
+
objects: SceneObjectDefinition[];
|
|
2687
|
+
}
|
|
2688
|
+
interface SceneObjectDefinitionBase {
|
|
2689
|
+
id: string;
|
|
2690
|
+
name?: string;
|
|
2691
|
+
position?: TripleArray;
|
|
2692
|
+
rotation?: TripleArray;
|
|
2693
|
+
scale?: TripleArray;
|
|
2694
|
+
visible?: boolean;
|
|
2695
|
+
}
|
|
2696
|
+
type SceneSkinPosePart = "head" | "body" | "rightArm" | "leftArm" | "rightLeg" | "leftLeg" | "cape";
|
|
2697
|
+
interface SceneSkinDefinition extends SceneObjectDefinitionBase {
|
|
2698
|
+
type: "skin";
|
|
2699
|
+
/** Texture URL, Minecraft username, or UUID. Omit for Steve, or Alex with slim: true, from the active asset version. */
|
|
2700
|
+
skin?: string;
|
|
2701
|
+
cape?: {
|
|
2702
|
+
texture: string;
|
|
2703
|
+
layout?: CapeLayout;
|
|
2704
|
+
};
|
|
2705
|
+
options?: {
|
|
2706
|
+
slim?: boolean;
|
|
2707
|
+
legacy?: boolean;
|
|
2708
|
+
};
|
|
2709
|
+
/** Mesh names from SkinPart; hiding a base part does not hide its overlay. */
|
|
2710
|
+
hiddenParts?: string[];
|
|
2711
|
+
/** Absolute local XYZ joint rotations in radians; omitted joints keep their default pose. */
|
|
2712
|
+
pose?: Partial<Record<SceneSkinPosePart, TripleArray>>;
|
|
2713
|
+
}
|
|
2714
|
+
interface SceneBlockDefinition extends SceneObjectDefinitionBase {
|
|
2715
|
+
type: "block";
|
|
2716
|
+
asset: string;
|
|
2717
|
+
state?: Record<string, string>;
|
|
2718
|
+
options?: {
|
|
2719
|
+
wireframe?: boolean;
|
|
2720
|
+
tints?: Record<number, number>;
|
|
2721
|
+
};
|
|
2722
|
+
}
|
|
2723
|
+
interface SceneModelDefinition extends SceneObjectDefinitionBase {
|
|
2724
|
+
type: "item" | "model";
|
|
2725
|
+
asset: string;
|
|
2726
|
+
options?: {
|
|
2727
|
+
wireframe?: boolean;
|
|
2728
|
+
displayPosition?: DisplayPosition;
|
|
2729
|
+
tints?: Record<number, number>;
|
|
2730
|
+
};
|
|
2731
|
+
}
|
|
2732
|
+
interface SceneEntityDefinition extends SceneObjectDefinitionBase {
|
|
2733
|
+
type: "entity";
|
|
2734
|
+
asset: string;
|
|
2735
|
+
texture?: string;
|
|
2736
|
+
layers?: string[];
|
|
2737
|
+
when?: string[];
|
|
2738
|
+
textures?: Record<string, string>;
|
|
2739
|
+
options?: {
|
|
2740
|
+
flip?: boolean;
|
|
2741
|
+
wireframe?: boolean;
|
|
2742
|
+
tints?: Record<string, string | number>;
|
|
2743
|
+
};
|
|
2744
|
+
animation?: {
|
|
2745
|
+
name: string;
|
|
2746
|
+
loop?: boolean;
|
|
2747
|
+
speed?: number;
|
|
2748
|
+
time?: number;
|
|
2749
|
+
paused?: boolean;
|
|
2750
|
+
};
|
|
2751
|
+
}
|
|
2752
|
+
type SceneGuiLayer = (Omit<GuiTextureLayer, "texture"> & {
|
|
2753
|
+
texture: string;
|
|
2754
|
+
}) | (Omit<GuiItemLayer, "item"> & {
|
|
2755
|
+
item: string;
|
|
2756
|
+
}) | (Omit<GuiTextLayer, "font"> & {
|
|
2757
|
+
font?: string;
|
|
2758
|
+
});
|
|
2759
|
+
interface SceneGuiDefinition extends SceneObjectDefinitionBase {
|
|
2760
|
+
type: "gui";
|
|
2761
|
+
layers: SceneGuiLayer[];
|
|
2762
|
+
}
|
|
2763
|
+
type SceneObjectDefinition = SceneSkinDefinition | SceneBlockDefinition | SceneModelDefinition | SceneEntityDefinition | SceneGuiDefinition;
|
|
2764
|
+
/** Validates and copies a scene document without requesting assets or changing the active asset version. */
|
|
2765
|
+
declare function parseSceneDocument(value: unknown): SceneDocument;
|
|
2766
|
+
|
|
2767
|
+
interface LoadedSceneObject {
|
|
2768
|
+
readonly root: Group;
|
|
2769
|
+
readonly object: SceneObject;
|
|
2770
|
+
readonly definition: SceneObjectDefinition;
|
|
2771
|
+
/** Advances entity playback in seconds unless the definition has paused it. */
|
|
2772
|
+
advanceAnimation(delta: number): void;
|
|
2773
|
+
/** Removes this object and releases its owned resources. Safe to call more than once. */
|
|
2774
|
+
dispose(): void;
|
|
2775
|
+
}
|
|
2776
|
+
interface LoadedSceneDocument {
|
|
2777
|
+
readonly root: Group;
|
|
2778
|
+
readonly objects: LoadedSceneObject[];
|
|
2779
|
+
readonly definition: SceneDocument;
|
|
2780
|
+
advanceAnimations(delta: number): void;
|
|
2781
|
+
dispose(): void;
|
|
2782
|
+
}
|
|
2783
|
+
/** Loads portable scene documents using the asset sources already configured by the caller. */
|
|
2784
|
+
declare class SceneDocumentLoader {
|
|
2785
|
+
static parse(value: unknown): SceneDocument;
|
|
2786
|
+
/**
|
|
2787
|
+
* Loads objects concurrently and attaches them in document order after every load succeeds.
|
|
2788
|
+
* A failure waits for all loads, disposes staged objects, and reports the first error in document order.
|
|
2789
|
+
*/
|
|
2790
|
+
static load(scene: MineRenderScene, value: unknown, parent?: Object3D): Promise<LoadedSceneDocument>;
|
|
2791
|
+
/** Loads an independently editable object. Its root owns the document's position, rotation, and scale. */
|
|
2792
|
+
static loadObject(scene: MineRenderScene, value: SceneObjectDefinition, parent?: Object3D): Promise<LoadedSceneObject>;
|
|
2793
|
+
private static loadValidatedObject;
|
|
2794
|
+
}
|
|
2795
|
+
|
|
2677
2796
|
type SkinGeometries = Record<SkinPart, TripleArray>;
|
|
2678
2797
|
declare const classicSkinGeometries: SkinGeometries;
|
|
2679
2798
|
declare const slimSkinGeometries: SkinGeometries;
|
|
@@ -3036,4 +3155,4 @@ declare class BrowserCache extends PersistentCache<LocalForage> {
|
|
|
3036
3155
|
*/
|
|
3037
3156
|
declare function probeImageSize(data: Uint8Array): ImageSizeInfo;
|
|
3038
3157
|
|
|
3039
|
-
export { AXES, type AnimationFrame, type AnimationMeta, type AnimatorFunction, type AnvilChunk, AnvilParser, type AnvilRegion, ArchiveAssetSource, type ArchiveAssetSourceOptions, type ArchiveEntry, type ArchiveProxy, AssetKey, AssetLoadError, AssetLoader, AssetParser, AssetSource, type AssetType, Assets, Axis, BUILTIN_ENTITY, BUILTIN_GENERATED, BasicAssetKey, type BasicMinecraftAsset, BatchedExecutor, type BedrockBone, type BedrockCube, type BedrockEntityDescription, type BedrockEntityFile, type BedrockGeometry, type BedrockGeometryFile, type BitmapFont, type BitmapGlyph, type Block, BlockEntities, type BlockEntityEntry, type BlockEntityIndex, type BlockEntityPart, type BlockEntityRotation, type BlockFluidState, type BlockInfo, type BlockModel, type BlockModelTextures, BlockObject, type BlockObjectOptions, type BlockState, type BlockStateMultipart, type BlockStateProperties, type BlockStateProperty, type BlockStatePropertyDefaults, type BlockStatePropertyValue, BlockStateResolver, type BlockStateVariant, type BlockStateVariants, BlockStates, BlockTints, type BoxGeometryKey, BrowserArchiveProxy, BrowserCache, BrowserEnv, CUBE_FACES, CUBE_FACE_OFFSETS, type CacheKey, Caching, type CameraOptions, CanvasImage, type CapeLayout, Chunk, ChunkData, Colormaps, type CompatCanvas, type CompatImage, type ComposerOptions, type ControlsOptions, CubeFace, CubeFaceIndex, DEFAULT_ELEMENTS, DEFAULT_NAMESPACE, DEFAULT_ROOT, DEFAULT_UV, DISPLAY_POSITIONS, type DebugOptions, type DeepPartial, DefaultBlockStates, DisplayPosition, DisplayTransforms, type Disposable, type DoubleArray, ENTITY_ANIMATION_CHANNELS, type ElementFace, type ElementRotation, Entities, type EntityAnimation, type EntityAnimationBone, type EntityAnimationChannel, type EntityAnimationFile, type EntityAnimationKeyframe, type EntityAnimationOptions, EntityAnimationPlayer, type EntityAnimationPose, type EntityLayer, type EntityModel, type EntityModelCube, type EntityModelFile, type EntityModelLayer, type EntityModelOptions, type EntityModelPart, type EntityModelPass, EntityObject, type EntityObjectOptions, type EntityRenderMode, type EntityTransformOp, Env, type EnvProvider, type ExtractableImageData, type FluidKind, FluidModelObject, type FluidSample, type FluidSampler, Fonts, type FrameCallback, type FromTo, Geometries, GuiHelper, type GuiItemLayer, type GuiLayer, GuiLight, GuiObject, type GuiObjectOptions, type GuiRecipe, type GuiRecipeIngredient, type GuiRecipeOptions, type GuiSpriteScaling, type GuiText, type GuiTextLayer, type GuiTextLayout, type GuiTextOptions, type GuiTextRun, type GuiTextStyle, type GuiTextureLayer, type GuiTooltipOptions, HostedAssetSource, type IModelTextures, ITEM_GENERATED, type ImageInfo, ImageLoader, type ImageSizeInfo, InstanceManager, InstanceReference, type Instanceable, type ItemModel, type ItemModelTextures, type ItemTintColor, type ItemTintSource, ItemTints, type ListAsset, MapControls, type MaterialKey, Materials, type Maybe, type MeshKey, Meshes, MineRenderError, MineRenderScene, type MineRenderSceneOptions, MineRenderWorld, type MineRenderWorldOptions, type MinecraftAsset, MinecraftCubeTexture, MinecraftFaceUV, type MinecraftTextureMeta, type Model, ModelCulling, type ModelDisplay, type ModelElement, type ModelFaces, ModelGenerator, ModelMerger, ModelObject, type ModelObjectOptions, ModelTextures, Models, type MultiBlockBlock, type MultiBlockEntity, type MultiBlockStructure, type MultipartCondition, type NBTAsset, NBTHelper, OrbitControls, type PackFormat, PackFormats, PackMetadata, PersistentCache, type PositionedGuiGlyph, type QuadArray, type RawImageKey, type RenderOptions, Renderer, type RendererFrame, type RendererOptions, type RequestConfig, RequestError, type RequestResponse, Requests, type ResolvedBlockEntity, type ResponseParser, SKIN_PARTS, SceneExporter, type SceneGLTFExportOptions, SceneInspector, SceneObject, type SceneObjectOptions, SceneStats, SceneStatsDisplay, SchematicParser, type SchematicParserOptions, SectionMesh, type SectionMeshEntry, type SectionMeshTemplate, SectionModels, type Serializable, type SkinGeometries, SkinImage, SkinObject, type SkinObjectOptions, SkinPart, type SkinTexture, type SkinTextureCoordinates, SkinTextures, Skins, type SpecialItemPart, type SpecialItemRenderer, SpecialItems, type StructureNBT, StructureParser, type TextureAsset, TextureAtlas, type TextureKey, TextureLoader, Textures, Ticker, type TickerFunction, TintColors, type Transformable, type TripleArray, UVMapper, WrappedImage, addBox3WireframeToObject, addWireframeToMesh, addWireframeToObject, applyElementRotation, applyGenericRotation, axisToVec3, base64decode, base64encode, capeTextureSizes, captureException, changeEvent, clampRotationDegrees, classicSkinGeometries, classicSkinTextureCoordinates, computeMorphedAttributes, createCanvas, createFluidGeometry, createGuiTextGeometry, createGuiTextureGeometry, createImage, entityAnimationTime, estimateBytesUsed, getBlockFluidState, getFluidKind, interleaveAttributes, isAssetKey, isBasicAssetKey, isBlockObject, isDisposable, isDoubleArray, isEntityObject, isGuiObject, isInstanceManager, isInstanceReference, isInstanceable, isInstancedMesh, isMesh, isMineRenderScene, isModelObject, isObject3D, isOrthographicCamera, isPerspectiveCamera, isQuadArray, isSceneObject, isTransformable, isTripleArray, isVector3, layoutGuiText, md5, mergeBufferAttributes, mergeBufferGeometries, mergeVertices, prefix, probeImageSize, registerBrowserEnv, sampleEntityAnimation, sampleEntityKeyframes, sampleFluid, serializeBoxGeometryKey, serializeImageKey, serializeMaterialKey, serializeMeshKey, serializeTextureKey, sha1, sha256, sha512, shutdown, sleep, slimSkinGeometries, slimSkinTextureCoordinates, timingEnd, timingStart, toDegrees, toRadians, toTrianglesDrawMode, trimCanvas };
|
|
3158
|
+
export { AXES, type AnimationFrame, type AnimationMeta, type AnimatorFunction, type AnvilChunk, AnvilParser, type AnvilRegion, ArchiveAssetSource, type ArchiveAssetSourceOptions, type ArchiveEntry, type ArchiveProxy, AssetKey, AssetLoadError, AssetLoader, AssetParser, AssetSource, type AssetType, Assets, Axis, BUILTIN_ENTITY, BUILTIN_GENERATED, BasicAssetKey, type BasicMinecraftAsset, BatchedExecutor, type BedrockBone, type BedrockCube, type BedrockEntityDescription, type BedrockEntityFile, type BedrockGeometry, type BedrockGeometryFile, type BitmapFont, type BitmapGlyph, type Block, BlockEntities, type BlockEntityEntry, type BlockEntityIndex, type BlockEntityPart, type BlockEntityRotation, type BlockFluidState, type BlockInfo, type BlockModel, type BlockModelTextures, BlockObject, type BlockObjectOptions, type BlockState, type BlockStateMultipart, type BlockStateProperties, type BlockStateProperty, type BlockStatePropertyDefaults, type BlockStatePropertyValue, BlockStateResolver, type BlockStateVariant, type BlockStateVariants, BlockStates, BlockTints, type BoxGeometryKey, BrowserArchiveProxy, BrowserCache, BrowserEnv, CUBE_FACES, CUBE_FACE_OFFSETS, type CacheKey, Caching, type CameraOptions, CanvasImage, type CapeLayout, Chunk, ChunkData, Colormaps, type CompatCanvas, type CompatImage, type ComposerOptions, type ControlsOptions, CubeFace, CubeFaceIndex, DEFAULT_ELEMENTS, DEFAULT_NAMESPACE, DEFAULT_ROOT, DEFAULT_UV, DISPLAY_POSITIONS, type DebugOptions, type DeepPartial, DefaultBlockStates, DisplayPosition, DisplayTransforms, type Disposable, type DoubleArray, ENTITY_ANIMATION_CHANNELS, type ElementFace, type ElementRotation, Entities, type EntityAnimation, type EntityAnimationBone, type EntityAnimationChannel, type EntityAnimationFile, type EntityAnimationKeyframe, type EntityAnimationOptions, EntityAnimationPlayer, type EntityAnimationPose, type EntityLayer, type EntityModel, type EntityModelCube, type EntityModelFile, type EntityModelLayer, type EntityModelOptions, type EntityModelPart, type EntityModelPass, EntityObject, type EntityObjectOptions, type EntityRenderMode, type EntityTransformOp, Env, type EnvProvider, type ExtractableImageData, type FluidKind, FluidModelObject, type FluidSample, type FluidSampler, Fonts, type FrameCallback, type FromTo, Geometries, GuiHelper, type GuiItemLayer, type GuiLayer, GuiLight, GuiObject, type GuiObjectOptions, type GuiRecipe, type GuiRecipeIngredient, type GuiRecipeOptions, type GuiSpriteScaling, type GuiText, type GuiTextLayer, type GuiTextLayout, type GuiTextOptions, type GuiTextRun, type GuiTextStyle, type GuiTextureLayer, type GuiTooltipOptions, HostedAssetSource, type IModelTextures, ITEM_GENERATED, type ImageInfo, ImageLoader, type ImageSizeInfo, InstanceManager, InstanceReference, type Instanceable, type ItemModel, type ItemModelTextures, type ItemTintColor, type ItemTintSource, ItemTints, type ListAsset, type LoadedSceneDocument, type LoadedSceneObject, MapControls, type MaterialKey, Materials, type Maybe, type MeshKey, Meshes, MineRenderError, MineRenderScene, type MineRenderSceneOptions, MineRenderWorld, type MineRenderWorldOptions, type MinecraftAsset, MinecraftCubeTexture, MinecraftFaceUV, type MinecraftTextureMeta, type Model, ModelCulling, type ModelDisplay, type ModelElement, type ModelFaces, ModelGenerator, ModelMerger, ModelObject, type ModelObjectOptions, ModelTextures, Models, type MultiBlockBlock, type MultiBlockEntity, type MultiBlockStructure, type MultipartCondition, type NBTAsset, NBTHelper, OrbitControls, type PackFormat, PackFormats, PackMetadata, PersistentCache, type PositionedGuiGlyph, type QuadArray, type RawImageKey, type RenderOptions, Renderer, type RendererFrame, type RendererOptions, type RequestConfig, RequestError, type RequestResponse, Requests, type ResolvedBlockEntity, type ResponseParser, SKIN_PARTS, type SceneBlockDefinition, type SceneDocument, SceneDocumentLoader, type SceneEntityDefinition, SceneExporter, type SceneGLTFExportOptions, type SceneGuiDefinition, type SceneGuiLayer, SceneInspector, type SceneModelDefinition, SceneObject, type SceneObjectDefinition, type SceneObjectDefinitionBase, type SceneObjectOptions, type SceneSkinDefinition, type SceneSkinPosePart, SceneStats, SceneStatsDisplay, SchematicParser, type SchematicParserOptions, SectionMesh, type SectionMeshEntry, type SectionMeshTemplate, SectionModels, type Serializable, type SkinGeometries, SkinImage, SkinObject, type SkinObjectOptions, SkinPart, type SkinTexture, type SkinTextureCoordinates, SkinTextures, Skins, type SpecialItemPart, type SpecialItemRenderer, SpecialItems, type StructureNBT, StructureParser, type TextureAsset, TextureAtlas, type TextureKey, TextureLoader, Textures, Ticker, type TickerFunction, TintColors, type Transformable, type TripleArray, UVMapper, WrappedImage, addBox3WireframeToObject, addWireframeToMesh, addWireframeToObject, applyElementRotation, applyGenericRotation, axisToVec3, base64decode, base64encode, capeTextureSizes, captureException, changeEvent, clampRotationDegrees, classicSkinGeometries, classicSkinTextureCoordinates, computeMorphedAttributes, createCanvas, createFluidGeometry, createGuiTextGeometry, createGuiTextureGeometry, createImage, entityAnimationTime, estimateBytesUsed, getBlockFluidState, getFluidKind, interleaveAttributes, isAssetKey, isBasicAssetKey, isBlockObject, isDisposable, isDoubleArray, isEntityObject, isGuiObject, isInstanceManager, isInstanceReference, isInstanceable, isInstancedMesh, isMesh, isMineRenderScene, isModelObject, isObject3D, isOrthographicCamera, isPerspectiveCamera, isQuadArray, isSceneObject, isTransformable, isTripleArray, isVector3, layoutGuiText, md5, mergeBufferAttributes, mergeBufferGeometries, mergeVertices, parseSceneDocument, prefix, probeImageSize, registerBrowserEnv, sampleEntityAnimation, sampleEntityKeyframes, sampleFluid, serializeBoxGeometryKey, serializeImageKey, serializeMaterialKey, serializeMeshKey, serializeTextureKey, sha1, sha256, sha512, shutdown, sleep, slimSkinGeometries, slimSkinTextureCoordinates, timingEnd, timingStart, toDegrees, toRadians, toTrianglesDrawMode, trimCanvas };
|
package/dist/browser/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as three from 'three';
|
|
2
|
-
import { Vector3, PixelFormat, BoxGeometry, Material, ColorRepresentation, MeshBasicMaterial, Mesh, Euler, Vector2, BufferAttribute, Float32BufferAttribute, BufferGeometry, Object3D, Box3, InstancedMesh, PerspectiveCamera, OrthographicCamera, Matrix4, Box2, Scene, Object3DEventMap, Texture, Camera, MOUSE, TOUCH, WebGLRenderer, EventDispatcher, Raycaster, Intersection, DataTexture, CanvasTexture, InterleavedBufferAttribute, TrianglesDrawModes, Line, Points
|
|
2
|
+
import { Vector3, PixelFormat, BoxGeometry, Material, ColorRepresentation, MeshBasicMaterial, Mesh, Euler, Vector2, BufferAttribute, Float32BufferAttribute, BufferGeometry, Object3D, Box3, InstancedMesh, PerspectiveCamera, OrthographicCamera, Matrix4, Box2, Scene, Object3DEventMap, Texture, Camera, MOUSE, TOUCH, WebGLRenderer, EventDispatcher, Raycaster, Intersection, Group, DataTexture, CanvasTexture, InterleavedBufferAttribute, TrianglesDrawModes, Line, Points } from 'three';
|
|
3
3
|
import * as nodeCanvas from 'canvas';
|
|
4
4
|
import { ImageData as ImageData$1, CanvasRenderingContext2D } from 'canvas';
|
|
5
5
|
import { Buffer } from 'buffer';
|
|
@@ -2674,6 +2674,125 @@ declare class StatLine {
|
|
|
2674
2674
|
update(): void;
|
|
2675
2675
|
}
|
|
2676
2676
|
|
|
2677
|
+
/** Portable scene setup. Positions use model units (16 per block); rotations use radians. */
|
|
2678
|
+
interface SceneDocument {
|
|
2679
|
+
format: "minerender-scene";
|
|
2680
|
+
version: 1;
|
|
2681
|
+
minecraftVersion?: string;
|
|
2682
|
+
camera?: {
|
|
2683
|
+
position: TripleArray;
|
|
2684
|
+
target: TripleArray;
|
|
2685
|
+
};
|
|
2686
|
+
objects: SceneObjectDefinition[];
|
|
2687
|
+
}
|
|
2688
|
+
interface SceneObjectDefinitionBase {
|
|
2689
|
+
id: string;
|
|
2690
|
+
name?: string;
|
|
2691
|
+
position?: TripleArray;
|
|
2692
|
+
rotation?: TripleArray;
|
|
2693
|
+
scale?: TripleArray;
|
|
2694
|
+
visible?: boolean;
|
|
2695
|
+
}
|
|
2696
|
+
type SceneSkinPosePart = "head" | "body" | "rightArm" | "leftArm" | "rightLeg" | "leftLeg" | "cape";
|
|
2697
|
+
interface SceneSkinDefinition extends SceneObjectDefinitionBase {
|
|
2698
|
+
type: "skin";
|
|
2699
|
+
/** Texture URL, Minecraft username, or UUID. Omit for Steve, or Alex with slim: true, from the active asset version. */
|
|
2700
|
+
skin?: string;
|
|
2701
|
+
cape?: {
|
|
2702
|
+
texture: string;
|
|
2703
|
+
layout?: CapeLayout;
|
|
2704
|
+
};
|
|
2705
|
+
options?: {
|
|
2706
|
+
slim?: boolean;
|
|
2707
|
+
legacy?: boolean;
|
|
2708
|
+
};
|
|
2709
|
+
/** Mesh names from SkinPart; hiding a base part does not hide its overlay. */
|
|
2710
|
+
hiddenParts?: string[];
|
|
2711
|
+
/** Absolute local XYZ joint rotations in radians; omitted joints keep their default pose. */
|
|
2712
|
+
pose?: Partial<Record<SceneSkinPosePart, TripleArray>>;
|
|
2713
|
+
}
|
|
2714
|
+
interface SceneBlockDefinition extends SceneObjectDefinitionBase {
|
|
2715
|
+
type: "block";
|
|
2716
|
+
asset: string;
|
|
2717
|
+
state?: Record<string, string>;
|
|
2718
|
+
options?: {
|
|
2719
|
+
wireframe?: boolean;
|
|
2720
|
+
tints?: Record<number, number>;
|
|
2721
|
+
};
|
|
2722
|
+
}
|
|
2723
|
+
interface SceneModelDefinition extends SceneObjectDefinitionBase {
|
|
2724
|
+
type: "item" | "model";
|
|
2725
|
+
asset: string;
|
|
2726
|
+
options?: {
|
|
2727
|
+
wireframe?: boolean;
|
|
2728
|
+
displayPosition?: DisplayPosition;
|
|
2729
|
+
tints?: Record<number, number>;
|
|
2730
|
+
};
|
|
2731
|
+
}
|
|
2732
|
+
interface SceneEntityDefinition extends SceneObjectDefinitionBase {
|
|
2733
|
+
type: "entity";
|
|
2734
|
+
asset: string;
|
|
2735
|
+
texture?: string;
|
|
2736
|
+
layers?: string[];
|
|
2737
|
+
when?: string[];
|
|
2738
|
+
textures?: Record<string, string>;
|
|
2739
|
+
options?: {
|
|
2740
|
+
flip?: boolean;
|
|
2741
|
+
wireframe?: boolean;
|
|
2742
|
+
tints?: Record<string, string | number>;
|
|
2743
|
+
};
|
|
2744
|
+
animation?: {
|
|
2745
|
+
name: string;
|
|
2746
|
+
loop?: boolean;
|
|
2747
|
+
speed?: number;
|
|
2748
|
+
time?: number;
|
|
2749
|
+
paused?: boolean;
|
|
2750
|
+
};
|
|
2751
|
+
}
|
|
2752
|
+
type SceneGuiLayer = (Omit<GuiTextureLayer, "texture"> & {
|
|
2753
|
+
texture: string;
|
|
2754
|
+
}) | (Omit<GuiItemLayer, "item"> & {
|
|
2755
|
+
item: string;
|
|
2756
|
+
}) | (Omit<GuiTextLayer, "font"> & {
|
|
2757
|
+
font?: string;
|
|
2758
|
+
});
|
|
2759
|
+
interface SceneGuiDefinition extends SceneObjectDefinitionBase {
|
|
2760
|
+
type: "gui";
|
|
2761
|
+
layers: SceneGuiLayer[];
|
|
2762
|
+
}
|
|
2763
|
+
type SceneObjectDefinition = SceneSkinDefinition | SceneBlockDefinition | SceneModelDefinition | SceneEntityDefinition | SceneGuiDefinition;
|
|
2764
|
+
/** Validates and copies a scene document without requesting assets or changing the active asset version. */
|
|
2765
|
+
declare function parseSceneDocument(value: unknown): SceneDocument;
|
|
2766
|
+
|
|
2767
|
+
interface LoadedSceneObject {
|
|
2768
|
+
readonly root: Group;
|
|
2769
|
+
readonly object: SceneObject;
|
|
2770
|
+
readonly definition: SceneObjectDefinition;
|
|
2771
|
+
/** Advances entity playback in seconds unless the definition has paused it. */
|
|
2772
|
+
advanceAnimation(delta: number): void;
|
|
2773
|
+
/** Removes this object and releases its owned resources. Safe to call more than once. */
|
|
2774
|
+
dispose(): void;
|
|
2775
|
+
}
|
|
2776
|
+
interface LoadedSceneDocument {
|
|
2777
|
+
readonly root: Group;
|
|
2778
|
+
readonly objects: LoadedSceneObject[];
|
|
2779
|
+
readonly definition: SceneDocument;
|
|
2780
|
+
advanceAnimations(delta: number): void;
|
|
2781
|
+
dispose(): void;
|
|
2782
|
+
}
|
|
2783
|
+
/** Loads portable scene documents using the asset sources already configured by the caller. */
|
|
2784
|
+
declare class SceneDocumentLoader {
|
|
2785
|
+
static parse(value: unknown): SceneDocument;
|
|
2786
|
+
/**
|
|
2787
|
+
* Loads objects concurrently and attaches them in document order after every load succeeds.
|
|
2788
|
+
* A failure waits for all loads, disposes staged objects, and reports the first error in document order.
|
|
2789
|
+
*/
|
|
2790
|
+
static load(scene: MineRenderScene, value: unknown, parent?: Object3D): Promise<LoadedSceneDocument>;
|
|
2791
|
+
/** Loads an independently editable object. Its root owns the document's position, rotation, and scale. */
|
|
2792
|
+
static loadObject(scene: MineRenderScene, value: SceneObjectDefinition, parent?: Object3D): Promise<LoadedSceneObject>;
|
|
2793
|
+
private static loadValidatedObject;
|
|
2794
|
+
}
|
|
2795
|
+
|
|
2677
2796
|
type SkinGeometries = Record<SkinPart, TripleArray>;
|
|
2678
2797
|
declare const classicSkinGeometries: SkinGeometries;
|
|
2679
2798
|
declare const slimSkinGeometries: SkinGeometries;
|
|
@@ -3036,4 +3155,4 @@ declare class BrowserCache extends PersistentCache<LocalForage> {
|
|
|
3036
3155
|
*/
|
|
3037
3156
|
declare function probeImageSize(data: Uint8Array): ImageSizeInfo;
|
|
3038
3157
|
|
|
3039
|
-
export { AXES, type AnimationFrame, type AnimationMeta, type AnimatorFunction, type AnvilChunk, AnvilParser, type AnvilRegion, ArchiveAssetSource, type ArchiveAssetSourceOptions, type ArchiveEntry, type ArchiveProxy, AssetKey, AssetLoadError, AssetLoader, AssetParser, AssetSource, type AssetType, Assets, Axis, BUILTIN_ENTITY, BUILTIN_GENERATED, BasicAssetKey, type BasicMinecraftAsset, BatchedExecutor, type BedrockBone, type BedrockCube, type BedrockEntityDescription, type BedrockEntityFile, type BedrockGeometry, type BedrockGeometryFile, type BitmapFont, type BitmapGlyph, type Block, BlockEntities, type BlockEntityEntry, type BlockEntityIndex, type BlockEntityPart, type BlockEntityRotation, type BlockFluidState, type BlockInfo, type BlockModel, type BlockModelTextures, BlockObject, type BlockObjectOptions, type BlockState, type BlockStateMultipart, type BlockStateProperties, type BlockStateProperty, type BlockStatePropertyDefaults, type BlockStatePropertyValue, BlockStateResolver, type BlockStateVariant, type BlockStateVariants, BlockStates, BlockTints, type BoxGeometryKey, BrowserArchiveProxy, BrowserCache, BrowserEnv, CUBE_FACES, CUBE_FACE_OFFSETS, type CacheKey, Caching, type CameraOptions, CanvasImage, type CapeLayout, Chunk, ChunkData, Colormaps, type CompatCanvas, type CompatImage, type ComposerOptions, type ControlsOptions, CubeFace, CubeFaceIndex, DEFAULT_ELEMENTS, DEFAULT_NAMESPACE, DEFAULT_ROOT, DEFAULT_UV, DISPLAY_POSITIONS, type DebugOptions, type DeepPartial, DefaultBlockStates, DisplayPosition, DisplayTransforms, type Disposable, type DoubleArray, ENTITY_ANIMATION_CHANNELS, type ElementFace, type ElementRotation, Entities, type EntityAnimation, type EntityAnimationBone, type EntityAnimationChannel, type EntityAnimationFile, type EntityAnimationKeyframe, type EntityAnimationOptions, EntityAnimationPlayer, type EntityAnimationPose, type EntityLayer, type EntityModel, type EntityModelCube, type EntityModelFile, type EntityModelLayer, type EntityModelOptions, type EntityModelPart, type EntityModelPass, EntityObject, type EntityObjectOptions, type EntityRenderMode, type EntityTransformOp, Env, type EnvProvider, type ExtractableImageData, type FluidKind, FluidModelObject, type FluidSample, type FluidSampler, Fonts, type FrameCallback, type FromTo, Geometries, GuiHelper, type GuiItemLayer, type GuiLayer, GuiLight, GuiObject, type GuiObjectOptions, type GuiRecipe, type GuiRecipeIngredient, type GuiRecipeOptions, type GuiSpriteScaling, type GuiText, type GuiTextLayer, type GuiTextLayout, type GuiTextOptions, type GuiTextRun, type GuiTextStyle, type GuiTextureLayer, type GuiTooltipOptions, HostedAssetSource, type IModelTextures, ITEM_GENERATED, type ImageInfo, ImageLoader, type ImageSizeInfo, InstanceManager, InstanceReference, type Instanceable, type ItemModel, type ItemModelTextures, type ItemTintColor, type ItemTintSource, ItemTints, type ListAsset, MapControls, type MaterialKey, Materials, type Maybe, type MeshKey, Meshes, MineRenderError, MineRenderScene, type MineRenderSceneOptions, MineRenderWorld, type MineRenderWorldOptions, type MinecraftAsset, MinecraftCubeTexture, MinecraftFaceUV, type MinecraftTextureMeta, type Model, ModelCulling, type ModelDisplay, type ModelElement, type ModelFaces, ModelGenerator, ModelMerger, ModelObject, type ModelObjectOptions, ModelTextures, Models, type MultiBlockBlock, type MultiBlockEntity, type MultiBlockStructure, type MultipartCondition, type NBTAsset, NBTHelper, OrbitControls, type PackFormat, PackFormats, PackMetadata, PersistentCache, type PositionedGuiGlyph, type QuadArray, type RawImageKey, type RenderOptions, Renderer, type RendererFrame, type RendererOptions, type RequestConfig, RequestError, type RequestResponse, Requests, type ResolvedBlockEntity, type ResponseParser, SKIN_PARTS, SceneExporter, type SceneGLTFExportOptions, SceneInspector, SceneObject, type SceneObjectOptions, SceneStats, SceneStatsDisplay, SchematicParser, type SchematicParserOptions, SectionMesh, type SectionMeshEntry, type SectionMeshTemplate, SectionModels, type Serializable, type SkinGeometries, SkinImage, SkinObject, type SkinObjectOptions, SkinPart, type SkinTexture, type SkinTextureCoordinates, SkinTextures, Skins, type SpecialItemPart, type SpecialItemRenderer, SpecialItems, type StructureNBT, StructureParser, type TextureAsset, TextureAtlas, type TextureKey, TextureLoader, Textures, Ticker, type TickerFunction, TintColors, type Transformable, type TripleArray, UVMapper, WrappedImage, addBox3WireframeToObject, addWireframeToMesh, addWireframeToObject, applyElementRotation, applyGenericRotation, axisToVec3, base64decode, base64encode, capeTextureSizes, captureException, changeEvent, clampRotationDegrees, classicSkinGeometries, classicSkinTextureCoordinates, computeMorphedAttributes, createCanvas, createFluidGeometry, createGuiTextGeometry, createGuiTextureGeometry, createImage, entityAnimationTime, estimateBytesUsed, getBlockFluidState, getFluidKind, interleaveAttributes, isAssetKey, isBasicAssetKey, isBlockObject, isDisposable, isDoubleArray, isEntityObject, isGuiObject, isInstanceManager, isInstanceReference, isInstanceable, isInstancedMesh, isMesh, isMineRenderScene, isModelObject, isObject3D, isOrthographicCamera, isPerspectiveCamera, isQuadArray, isSceneObject, isTransformable, isTripleArray, isVector3, layoutGuiText, md5, mergeBufferAttributes, mergeBufferGeometries, mergeVertices, prefix, probeImageSize, registerBrowserEnv, sampleEntityAnimation, sampleEntityKeyframes, sampleFluid, serializeBoxGeometryKey, serializeImageKey, serializeMaterialKey, serializeMeshKey, serializeTextureKey, sha1, sha256, sha512, shutdown, sleep, slimSkinGeometries, slimSkinTextureCoordinates, timingEnd, timingStart, toDegrees, toRadians, toTrianglesDrawMode, trimCanvas };
|
|
3158
|
+
export { AXES, type AnimationFrame, type AnimationMeta, type AnimatorFunction, type AnvilChunk, AnvilParser, type AnvilRegion, ArchiveAssetSource, type ArchiveAssetSourceOptions, type ArchiveEntry, type ArchiveProxy, AssetKey, AssetLoadError, AssetLoader, AssetParser, AssetSource, type AssetType, Assets, Axis, BUILTIN_ENTITY, BUILTIN_GENERATED, BasicAssetKey, type BasicMinecraftAsset, BatchedExecutor, type BedrockBone, type BedrockCube, type BedrockEntityDescription, type BedrockEntityFile, type BedrockGeometry, type BedrockGeometryFile, type BitmapFont, type BitmapGlyph, type Block, BlockEntities, type BlockEntityEntry, type BlockEntityIndex, type BlockEntityPart, type BlockEntityRotation, type BlockFluidState, type BlockInfo, type BlockModel, type BlockModelTextures, BlockObject, type BlockObjectOptions, type BlockState, type BlockStateMultipart, type BlockStateProperties, type BlockStateProperty, type BlockStatePropertyDefaults, type BlockStatePropertyValue, BlockStateResolver, type BlockStateVariant, type BlockStateVariants, BlockStates, BlockTints, type BoxGeometryKey, BrowserArchiveProxy, BrowserCache, BrowserEnv, CUBE_FACES, CUBE_FACE_OFFSETS, type CacheKey, Caching, type CameraOptions, CanvasImage, type CapeLayout, Chunk, ChunkData, Colormaps, type CompatCanvas, type CompatImage, type ComposerOptions, type ControlsOptions, CubeFace, CubeFaceIndex, DEFAULT_ELEMENTS, DEFAULT_NAMESPACE, DEFAULT_ROOT, DEFAULT_UV, DISPLAY_POSITIONS, type DebugOptions, type DeepPartial, DefaultBlockStates, DisplayPosition, DisplayTransforms, type Disposable, type DoubleArray, ENTITY_ANIMATION_CHANNELS, type ElementFace, type ElementRotation, Entities, type EntityAnimation, type EntityAnimationBone, type EntityAnimationChannel, type EntityAnimationFile, type EntityAnimationKeyframe, type EntityAnimationOptions, EntityAnimationPlayer, type EntityAnimationPose, type EntityLayer, type EntityModel, type EntityModelCube, type EntityModelFile, type EntityModelLayer, type EntityModelOptions, type EntityModelPart, type EntityModelPass, EntityObject, type EntityObjectOptions, type EntityRenderMode, type EntityTransformOp, Env, type EnvProvider, type ExtractableImageData, type FluidKind, FluidModelObject, type FluidSample, type FluidSampler, Fonts, type FrameCallback, type FromTo, Geometries, GuiHelper, type GuiItemLayer, type GuiLayer, GuiLight, GuiObject, type GuiObjectOptions, type GuiRecipe, type GuiRecipeIngredient, type GuiRecipeOptions, type GuiSpriteScaling, type GuiText, type GuiTextLayer, type GuiTextLayout, type GuiTextOptions, type GuiTextRun, type GuiTextStyle, type GuiTextureLayer, type GuiTooltipOptions, HostedAssetSource, type IModelTextures, ITEM_GENERATED, type ImageInfo, ImageLoader, type ImageSizeInfo, InstanceManager, InstanceReference, type Instanceable, type ItemModel, type ItemModelTextures, type ItemTintColor, type ItemTintSource, ItemTints, type ListAsset, type LoadedSceneDocument, type LoadedSceneObject, MapControls, type MaterialKey, Materials, type Maybe, type MeshKey, Meshes, MineRenderError, MineRenderScene, type MineRenderSceneOptions, MineRenderWorld, type MineRenderWorldOptions, type MinecraftAsset, MinecraftCubeTexture, MinecraftFaceUV, type MinecraftTextureMeta, type Model, ModelCulling, type ModelDisplay, type ModelElement, type ModelFaces, ModelGenerator, ModelMerger, ModelObject, type ModelObjectOptions, ModelTextures, Models, type MultiBlockBlock, type MultiBlockEntity, type MultiBlockStructure, type MultipartCondition, type NBTAsset, NBTHelper, OrbitControls, type PackFormat, PackFormats, PackMetadata, PersistentCache, type PositionedGuiGlyph, type QuadArray, type RawImageKey, type RenderOptions, Renderer, type RendererFrame, type RendererOptions, type RequestConfig, RequestError, type RequestResponse, Requests, type ResolvedBlockEntity, type ResponseParser, SKIN_PARTS, type SceneBlockDefinition, type SceneDocument, SceneDocumentLoader, type SceneEntityDefinition, SceneExporter, type SceneGLTFExportOptions, type SceneGuiDefinition, type SceneGuiLayer, SceneInspector, type SceneModelDefinition, SceneObject, type SceneObjectDefinition, type SceneObjectDefinitionBase, type SceneObjectOptions, type SceneSkinDefinition, type SceneSkinPosePart, SceneStats, SceneStatsDisplay, SchematicParser, type SchematicParserOptions, SectionMesh, type SectionMeshEntry, type SectionMeshTemplate, SectionModels, type Serializable, type SkinGeometries, SkinImage, SkinObject, type SkinObjectOptions, SkinPart, type SkinTexture, type SkinTextureCoordinates, SkinTextures, Skins, type SpecialItemPart, type SpecialItemRenderer, SpecialItems, type StructureNBT, StructureParser, type TextureAsset, TextureAtlas, type TextureKey, TextureLoader, Textures, Ticker, type TickerFunction, TintColors, type Transformable, type TripleArray, UVMapper, WrappedImage, addBox3WireframeToObject, addWireframeToMesh, addWireframeToObject, applyElementRotation, applyGenericRotation, axisToVec3, base64decode, base64encode, capeTextureSizes, captureException, changeEvent, clampRotationDegrees, classicSkinGeometries, classicSkinTextureCoordinates, computeMorphedAttributes, createCanvas, createFluidGeometry, createGuiTextGeometry, createGuiTextureGeometry, createImage, entityAnimationTime, estimateBytesUsed, getBlockFluidState, getFluidKind, interleaveAttributes, isAssetKey, isBasicAssetKey, isBlockObject, isDisposable, isDoubleArray, isEntityObject, isGuiObject, isInstanceManager, isInstanceReference, isInstanceable, isInstancedMesh, isMesh, isMineRenderScene, isModelObject, isObject3D, isOrthographicCamera, isPerspectiveCamera, isQuadArray, isSceneObject, isTransformable, isTripleArray, isVector3, layoutGuiText, md5, mergeBufferAttributes, mergeBufferGeometries, mergeVertices, parseSceneDocument, prefix, probeImageSize, registerBrowserEnv, sampleEntityAnimation, sampleEntityKeyframes, sampleFluid, serializeBoxGeometryKey, serializeImageKey, serializeMaterialKey, serializeMeshKey, serializeTextureKey, sha1, sha256, sha512, shutdown, sleep, slimSkinGeometries, slimSkinTextureCoordinates, timingEnd, timingStart, toDegrees, toRadians, toTrianglesDrawMode, trimCanvas };
|