pixelkiln 0.102.1 → 0.103.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/cli.js +14 -3
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +14 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +24 -12
- package/dist/index.d.ts +24 -12
- package/dist/index.js +14 -3
- package/dist/index.js.map +1 -1
- package/docs/GENERATORS.md +21 -3
- package/docs/MANIFEST.md +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1539,9 +1539,10 @@ var StyleObjectSchema = import_zod.z.object({
|
|
|
1539
1539
|
/** `character` only, `standard` humanoid bases. A preset or multipliers; an asset may override it. */
|
|
1540
1540
|
proportions: CharacterProportionsSchema.optional(),
|
|
1541
1541
|
/**
|
|
1542
|
-
* `character`
|
|
1543
|
-
* follow their text, 1 to 20;
|
|
1544
|
-
* engines do not take
|
|
1542
|
+
* `character` and `pixflux`. How closely a `standard` character base
|
|
1543
|
+
* and a template loop, or a `pixflux` image, follow their text, 1 to 20;
|
|
1544
|
+
* PixelLab's default is 8. The v3 and pro character engines do not take
|
|
1545
|
+
* it. Part of a `pixflux` asset's identity only when set.
|
|
1545
1546
|
*/
|
|
1546
1547
|
textGuidanceScale: import_zod.z.number().min(1).max(20).optional(),
|
|
1547
1548
|
/** `character` only. Draw `standard` bases and every loop in isometric view. */
|
|
@@ -3402,6 +3403,8 @@ var PixelLabClient = class {
|
|
|
3402
3403
|
if (args.outline) body.outline = args.outline;
|
|
3403
3404
|
if (args.shading) body.shading = args.shading;
|
|
3404
3405
|
if (args.detail) body.detail = args.detail;
|
|
3406
|
+
if (args.view) body.view = args.view;
|
|
3407
|
+
if (args.textGuidanceScale != null) body.text_guidance_scale = args.textGuidanceScale;
|
|
3405
3408
|
if (args.seed != null) body.seed = args.seed;
|
|
3406
3409
|
const res = validateResponse(
|
|
3407
3410
|
PixfluxResponseSchema,
|
|
@@ -5333,6 +5336,8 @@ function specHash(spec, styleImageHashes, providerOptionIdentity = spec.provider
|
|
|
5333
5336
|
terrainSideWallThickness: spec.terrainSideWallThickness,
|
|
5334
5337
|
terrainSideWallPlacement: spec.terrainSideWallPlacement,
|
|
5335
5338
|
terrainEnhance: spec.terrainEnhance,
|
|
5339
|
+
// Absent unless a pixflux style sets it, so every older hash stands.
|
|
5340
|
+
textGuidanceScale: spec.textGuidanceScale,
|
|
5336
5341
|
terrainPlatformThickness: spec.terrainPlatformThickness,
|
|
5337
5342
|
// Reference images enter as their bytes' hashes, never their paths.
|
|
5338
5343
|
// The starting image by its bytes, with its strength only when set.
|
|
@@ -6894,6 +6899,7 @@ var PixelLabProvider = class _PixelLabProvider {
|
|
|
6894
6899
|
"highly detailed shading"
|
|
6895
6900
|
]);
|
|
6896
6901
|
requirePixelLabOption("pixflux", "detail", spec.detail, ["low detail", "medium detail", "highly detailed"]);
|
|
6902
|
+
requirePixelLabOption("pixflux", "view", spec.styleView, ["side", "low top-down", "high top-down"]);
|
|
6897
6903
|
}
|
|
6898
6904
|
if (spec.generator === "terrain") {
|
|
6899
6905
|
if (spec.outline) {
|
|
@@ -7869,6 +7875,9 @@ var PixelLabProvider = class _PixelLabProvider {
|
|
|
7869
7875
|
outline: spec.outline,
|
|
7870
7876
|
shading: spec.shading,
|
|
7871
7877
|
detail: spec.detail,
|
|
7878
|
+
// Only a view the style states: the resolved default would steer every scene and banner top-down.
|
|
7879
|
+
view: spec.styleView,
|
|
7880
|
+
textGuidanceScale: spec.textGuidanceScale,
|
|
7872
7881
|
seed: spec.seed,
|
|
7873
7882
|
...await initImageArgs(spec)
|
|
7874
7883
|
});
|
|
@@ -12422,6 +12431,8 @@ async function resolveSpecs(loaded, filter) {
|
|
|
12422
12431
|
height,
|
|
12423
12432
|
size,
|
|
12424
12433
|
view: style.view ?? (generator === "1dir" ? "top-down" : generator === "character" ? "low top-down" : "high top-down"),
|
|
12434
|
+
...style.view !== void 0 ? { styleView: style.view } : {},
|
|
12435
|
+
...generator === "pixflux" && style.textGuidanceScale !== void 0 ? { textGuidanceScale: style.textGuidanceScale } : {},
|
|
12425
12436
|
styleImagePaths: style.styleImages.map((s) => s.path),
|
|
12426
12437
|
outline: style.outline,
|
|
12427
12438
|
shading: style.shading,
|