@plupin/character 0.3.0 → 0.5.0

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.
@@ -104,48 +104,72 @@ export declare const BODY_SCALE_LIMITS: {
104
104
  readonly max: 1.25;
105
105
  };
106
106
  };
107
- /** The round Plup's own knobs, beyond the box rig's: its outline, its limbs' length and bulk. */
107
+ /** The character body knobs, beyond the box rig's: silhouette, curves, limbs, bulk, and stylized figure mode. */
108
108
  export declare const PLUP_BODY_LIMITS: {
109
109
  readonly shoulders: {
110
- readonly min: 0.7;
111
- readonly max: 1.45;
110
+ readonly min: 0.65;
111
+ readonly max: 1.6;
112
112
  };
113
113
  readonly waist: {
114
- readonly min: 0.62;
115
- readonly max: 1.2;
114
+ readonly min: 0.48;
115
+ readonly max: 1.25;
116
116
  };
117
117
  readonly hips: {
118
118
  readonly min: 0.75;
119
+ readonly max: 1.55;
120
+ };
121
+ /** Forward chest / bust fullness (0 flat/neutral, up to 1.4 full curvy bust). */
122
+ readonly bust: {
123
+ readonly min: 0;
119
124
  readonly max: 1.4;
120
125
  };
121
- /** Leg length: 1 is Plup's stubs, 3 is a long-legged runway walker. */
126
+ /** Leg length: 0.65 is tiny chibi, 1 is Plup's stubs, 3 is a long-legged runway walker. */
122
127
  readonly legLength: {
123
- readonly min: 1;
128
+ readonly min: 0.65;
124
129
  readonly max: 3;
125
130
  };
126
131
  readonly armLength: {
127
- readonly min: 0.8;
132
+ readonly min: 0.55;
128
133
  readonly max: 1.8;
129
134
  };
130
- /** Arm and leg bulk, a muscular body's biceps. */
135
+ /** Arm, shoulder, chest and leg bulk (muscular / kekar build). */
131
136
  readonly muscle: {
132
137
  readonly min: 0.7;
133
- readonly max: 1.9;
138
+ readonly max: 2.2;
134
139
  };
135
- /** Where the arms come out, as a share of the body's height (the films' rig puts them at 0.34). */
140
+ /** Where the arms come out on the round Plup, as a share of the body's height (films' rig puts them at 0.34). */
136
141
  readonly shoulderHeight: {
137
142
  readonly min: 0.2;
138
143
  readonly max: 0.55;
139
144
  };
145
+ /** Head size multiplier: lower (0.55–0.8) makes the sculpted body stand out like anime/Roblox; 1.25–1.45 is chibi. */
146
+ readonly headSize: {
147
+ readonly min: 0.55;
148
+ readonly max: 1.45;
149
+ };
150
+ /** Torso height multiplier on stylized figure mode (0.45 = compact cute chibi body, 1.0 = full runway anime). */
151
+ readonly torsoHeight: {
152
+ readonly min: 0.45;
153
+ readonly max: 1.15;
154
+ };
155
+ /** 0 = classic round Plup blob, 1 = stylized anime/chibi figure (round head + neck + sculpted torso). */
156
+ readonly figure: {
157
+ readonly min: 0;
158
+ readonly max: 1;
159
+ };
140
160
  };
141
161
  export interface PlupBody {
142
162
  shoulders: number;
143
163
  waist: number;
144
164
  hips: number;
165
+ bust: number;
145
166
  legLength: number;
146
167
  armLength: number;
147
168
  muscle: number;
148
169
  shoulderHeight: number;
170
+ headSize: number;
171
+ torsoHeight: number;
172
+ figure: number;
149
173
  }
150
174
  export declare const CANONICAL_PLUP_BODY: PlupBody;
151
175
  /** Clamp a Plup body the same way `clampBodyScale` clamps the rig's: missing or broken is canonical. */
package/dist/three.d.ts CHANGED
@@ -1,9 +1,16 @@
1
1
  import { Group } from "three";
2
2
  import { type Emote } from "./emote";
3
+ export { ANIME_FACE_SIZE, ANIME_FACE_UV, drawAnimeFace } from "./anime-face";
4
+ export { blobRadiusAt, buildBlobGeometry, buildFigureHeadGeometry, buildFigureTorsoGeometry, figureTorsoPoint, } from "./blob";
5
+ export { BODY_PRESETS } from "./body-presets";
6
+ export { AUTHORED_CLIPS } from "./clips";
3
7
  export { buildWear } from "./dress";
8
+ export { EMOTES } from "./emote";
9
+ export { isHighResFace } from "./skin-map";
4
10
  export type { WearKit, WornPiece } from "./wear3d";
11
+ export { hairVolume, isHairKey, isWearKey, WEARABLES, wearSlotOf } from "./wearables";
5
12
  import { type ClipRef, type Pose } from "./pose";
6
- export { type BodyShapeId, createPlup, type Expression, type PlupFace, type PlupHandle, type PlupOptions, type PlupSkin, } from "./plup3d";
13
+ export { type BodyShapeId, createPlup, type Expression, type PlupFace, type PlupHandle, type PlupOptions, type PlupSkin, toon, } from "./plup3d";
7
14
  export type { RagdollMode } from "./ragdoll";
8
15
  import { type RigId } from "./rig";
9
16
  import { type BodyScale, type CharacterLook } from "./skin-native";