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