minerender 2.1.0-alpha.50 → 2.1.0-alpha.51
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/dist/browser/index.d.mts +6 -1
- package/dist/browser/index.d.ts +6 -1
- package/dist/browser/index.js +207 -161
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/index.mjs +207 -161
- package/dist/browser/index.mjs.map +1 -1
- package/dist/bundle.js +207 -161
- package/dist/bundle.js.map +1 -1
- package/dist/node/index.d.mts +6 -1
- package/dist/node/index.d.ts +6 -1
- package/dist/node/index.js +207 -161
- package/dist/node/index.js.map +1 -1
- package/dist/node/index.mjs +207 -161
- package/dist/node/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/node/index.d.mts
CHANGED
|
@@ -819,7 +819,11 @@ declare class ModelCulling {
|
|
|
819
819
|
|
|
820
820
|
declare class ModelGenerator {
|
|
821
821
|
static readonly ITEM_LAYERS: string[];
|
|
822
|
-
|
|
822
|
+
/**
|
|
823
|
+
* Front and back faces plus one zero-thickness side face per run of texels that border a transparent texel,
|
|
824
|
+
* like vanilla's ItemModelGenerator. Pass the pixels of a single (first) animation frame.
|
|
825
|
+
*/
|
|
826
|
+
static generateItemModel(imageData: Pick<ImageData$1, "width" | "height" | "data">, layer: string): ModelElement[];
|
|
823
827
|
}
|
|
824
828
|
|
|
825
829
|
declare class ModelMerger {
|
|
@@ -958,6 +962,7 @@ declare const SKIN_PARTS: SkinPart[];
|
|
|
958
962
|
type CapeLayout = "minecraft" | "optifine" | "labymod";
|
|
959
963
|
declare const capeTextureSizes: Record<CapeLayout, DoubleArray>;
|
|
960
964
|
|
|
965
|
+
/** A player model facing +Z. Left and right parts are the player's own: left is +X, right is -X. */
|
|
961
966
|
declare class SkinObject extends SceneObject {
|
|
962
967
|
readonly options: SkinObjectOptions;
|
|
963
968
|
private slim;
|
package/dist/node/index.d.ts
CHANGED
|
@@ -819,7 +819,11 @@ declare class ModelCulling {
|
|
|
819
819
|
|
|
820
820
|
declare class ModelGenerator {
|
|
821
821
|
static readonly ITEM_LAYERS: string[];
|
|
822
|
-
|
|
822
|
+
/**
|
|
823
|
+
* Front and back faces plus one zero-thickness side face per run of texels that border a transparent texel,
|
|
824
|
+
* like vanilla's ItemModelGenerator. Pass the pixels of a single (first) animation frame.
|
|
825
|
+
*/
|
|
826
|
+
static generateItemModel(imageData: Pick<ImageData$1, "width" | "height" | "data">, layer: string): ModelElement[];
|
|
823
827
|
}
|
|
824
828
|
|
|
825
829
|
declare class ModelMerger {
|
|
@@ -958,6 +962,7 @@ declare const SKIN_PARTS: SkinPart[];
|
|
|
958
962
|
type CapeLayout = "minecraft" | "optifine" | "labymod";
|
|
959
963
|
declare const capeTextureSizes: Record<CapeLayout, DoubleArray>;
|
|
960
964
|
|
|
965
|
+
/** A player model facing +Z. Left and right parts are the player's own: left is +X, right is -X. */
|
|
961
966
|
declare class SkinObject extends SceneObject {
|
|
962
967
|
readonly options: SkinObjectOptions;
|
|
963
968
|
private slim;
|