build/module/lib/visual/Minecraft.js
/**
 * The dimensions have been adjusted so that the total height of the figure is 1.
 * @hidden
 */
The dimensions have been adjusted so that the total height of the figure is 1.
@hidden
The dimensions have been adjusted so that the total height of the figure is 1 . @hidden
function dimensions(part, height) {
    var LIMB_SIZE = 0.125 * height;
    var HEAD_SIZE = 0.25 * height;
    var TORSO_LENGTH = 0.375 * height;
    switch (part) {
        case MinecraftPartKind.Head: {
            return [HEAD_SIZE, HEAD_SIZE, HEAD_SIZE];
        }
        case MinecraftPartKind.Helm: {
            return [HEAD_SIZE, HEAD_SIZE, HEAD_SIZE];
        }
        case MinecraftPartKind.LeftLeg:
        case MinecraftPartKind.LeftLegLayer2:
        case MinecraftPartKind.RightLeg:
        case MinecraftPartKind.RightLegLayer2: {
            return [LIMB_SIZE, TORSO_LENGTH, LIMB_SIZE];
        }
        case MinecraftPartKind.Torso:
        case MinecraftPartKind.TorsoLayer2: {
            return [HEAD_SIZE, TORSO_LENGTH, LIMB_SIZE];
        }
        case MinecraftPartKind.LeftArm:
        case MinecraftPartKind.LeftArmLayer2:
        case MinecraftPartKind.RightArm:
        case MinecraftPartKind.RightArmLayer2: {
            return [LIMB_SIZE, TORSO_LENGTH, LIMB_SIZE];
        }
        default: {
            throw new Error("part: " + part);
        }
    }
}
function dimensions ( part , height ) { var LIMB_SIZE = 0.125 * height ; var HEAD_SIZE = 0.25 * height ; var TORSO_LENGTH = 0.375 * height ; switch ( part ) { case MinecraftPartKind . Head : { return [ HEAD_SIZE , HEAD_SIZE , HEAD_SIZE ] ; } case MinecraftPartKind . Helm : { return [ HEAD_SIZE , HEAD_SIZE , HEAD_SIZE ] ; } case MinecraftPartKind . LeftLeg : case MinecraftPartKind . LeftLegLayer2 : case MinecraftPartKind . RightLeg : case MinecraftPartKind . RightLegLayer2 : { return [ LIMB_SIZE , TORSO_LENGTH , LIMB_SIZE ] ; } case MinecraftPartKind . Torso : case MinecraftPartKind . TorsoLayer2 : { return [ HEAD_SIZE , TORSO_LENGTH , LIMB_SIZE ] ; } case MinecraftPartKind . LeftArm : case MinecraftPartKind . LeftArmLayer2 : case MinecraftPartKind . RightArm : case MinecraftPartKind . RightArmLayer2 : { return [ LIMB_SIZE , TORSO_LENGTH , LIMB_SIZE ] ; } default : { throw new Error ( "part: " + part ) ; } } }
The dimensions have been adjusted so that the total height of the figure is 1.
The dimensions have been adjusted so that the total height of the figure is 1 .