@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.
- package/dist/anime-face.d.ts +17 -17
- package/dist/anime-face.js +1 -1
- package/dist/blob.d.ts +62 -11
- package/dist/blob.js +31 -1
- package/dist/body-presets.d.ts +106 -37
- package/dist/canvas.js +22 -3
- package/dist/chunk-ewkkvpte.js +448 -0
- package/dist/{chunk-60p135hw.js → chunk-kf7f1tdx.js} +113 -9
- package/dist/{chunk-kber92gm.js → chunk-nx2wbkfn.js} +8 -2
- package/dist/{chunk-sa2r1cxz.js → chunk-phwn2cn7.js} +17 -9
- package/dist/{chunk-yd5zzkkg.js → chunk-s083mv4f.js} +176 -1
- package/dist/{chunk-g1c0wdcj.js → chunk-wryfx2sg.js} +538 -10
- package/dist/chunk-x8f5p1qg.js +226 -0
- package/dist/clips.d.ts +1 -1
- package/dist/index.js +5 -43
- package/dist/listing.js +39 -13
- package/dist/plup3d.d.ts +9 -58
- package/dist/png.d.ts +4 -3
- package/dist/pose.js +1 -1
- package/dist/skin-map.d.ts +3 -2
- package/dist/skin-map.js +3 -1
- package/dist/skin-native.d.ts +35 -11
- package/dist/three.d.ts +8 -1
- package/dist/three.js +1510 -408
- package/dist/wear3d.d.ts +19 -0
- package/dist/wearables.d.ts +114 -10
- package/dist/wearables.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-09c5tps4.js +0 -337
- package/dist/chunk-dpb0rnw9.js +0 -37
package/dist/skin-native.d.ts
CHANGED
|
@@ -104,48 +104,72 @@ export declare const BODY_SCALE_LIMITS: {
|
|
|
104
104
|
readonly max: 1.25;
|
|
105
105
|
};
|
|
106
106
|
};
|
|
107
|
-
/** The
|
|
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.
|
|
111
|
-
readonly max: 1.
|
|
110
|
+
readonly min: 0.65;
|
|
111
|
+
readonly max: 1.6;
|
|
112
112
|
};
|
|
113
113
|
readonly waist: {
|
|
114
|
-
readonly min: 0.
|
|
115
|
-
readonly max: 1.
|
|
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:
|
|
128
|
+
readonly min: 0.65;
|
|
124
129
|
readonly max: 3;
|
|
125
130
|
};
|
|
126
131
|
readonly armLength: {
|
|
127
|
-
readonly min: 0.
|
|
132
|
+
readonly min: 0.55;
|
|
128
133
|
readonly max: 1.8;
|
|
129
134
|
};
|
|
130
|
-
/** Arm and leg bulk
|
|
135
|
+
/** Arm, shoulder, chest and leg bulk (muscular / kekar build). */
|
|
131
136
|
readonly muscle: {
|
|
132
137
|
readonly min: 0.7;
|
|
133
|
-
readonly max:
|
|
138
|
+
readonly max: 2.2;
|
|
134
139
|
};
|
|
135
|
-
/** Where the arms come out, as a share of the body's height (
|
|
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";
|