pixelkiln 0.102.2 → 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 +9 -3
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +9 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +20 -12
- package/dist/index.d.ts +20 -12
- package/dist/index.js +9 -3
- package/dist/index.js.map +1 -1
- package/docs/GENERATORS.md +15 -0
- package/docs/MANIFEST.md +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1426,6 +1426,8 @@ function specHash(spec, styleImageHashes, providerOptionIdentity = spec.provider
|
|
|
1426
1426
|
terrainSideWallThickness: spec.terrainSideWallThickness,
|
|
1427
1427
|
terrainSideWallPlacement: spec.terrainSideWallPlacement,
|
|
1428
1428
|
terrainEnhance: spec.terrainEnhance,
|
|
1429
|
+
// Absent unless a pixflux style sets it, so every older hash stands.
|
|
1430
|
+
textGuidanceScale: spec.textGuidanceScale,
|
|
1429
1431
|
terrainPlatformThickness: spec.terrainPlatformThickness,
|
|
1430
1432
|
// Reference images enter as their bytes' hashes, never their paths.
|
|
1431
1433
|
// The starting image by its bytes, with its strength only when set.
|
|
@@ -2696,9 +2698,10 @@ var StyleObjectSchema = z.object({
|
|
|
2696
2698
|
/** `character` only, `standard` humanoid bases. A preset or multipliers; an asset may override it. */
|
|
2697
2699
|
proportions: CharacterProportionsSchema.optional(),
|
|
2698
2700
|
/**
|
|
2699
|
-
* `character`
|
|
2700
|
-
* follow their text, 1 to 20;
|
|
2701
|
-
* engines do not take
|
|
2701
|
+
* `character` and `pixflux`. How closely a `standard` character base
|
|
2702
|
+
* and a template loop, or a `pixflux` image, follow their text, 1 to 20;
|
|
2703
|
+
* PixelLab's default is 8. The v3 and pro character engines do not take
|
|
2704
|
+
* it. Part of a `pixflux` asset's identity only when set.
|
|
2702
2705
|
*/
|
|
2703
2706
|
textGuidanceScale: z.number().min(1).max(20).optional(),
|
|
2704
2707
|
/** `character` only. Draw `standard` bases and every loop in isometric view. */
|
|
@@ -8156,6 +8159,7 @@ var PixelLabClient = class {
|
|
|
8156
8159
|
if (args.shading) body.shading = args.shading;
|
|
8157
8160
|
if (args.detail) body.detail = args.detail;
|
|
8158
8161
|
if (args.view) body.view = args.view;
|
|
8162
|
+
if (args.textGuidanceScale != null) body.text_guidance_scale = args.textGuidanceScale;
|
|
8159
8163
|
if (args.seed != null) body.seed = args.seed;
|
|
8160
8164
|
const res = validateResponse(
|
|
8161
8165
|
PixfluxResponseSchema,
|
|
@@ -11834,6 +11838,7 @@ var PixelLabProvider = class _PixelLabProvider {
|
|
|
11834
11838
|
detail: spec.detail,
|
|
11835
11839
|
// Only a view the style states: the resolved default would steer every scene and banner top-down.
|
|
11836
11840
|
view: spec.styleView,
|
|
11841
|
+
textGuidanceScale: spec.textGuidanceScale,
|
|
11837
11842
|
seed: spec.seed,
|
|
11838
11843
|
...await initImageArgs(spec)
|
|
11839
11844
|
});
|
|
@@ -14970,6 +14975,7 @@ async function resolveSpecs(loaded, filter) {
|
|
|
14970
14975
|
size,
|
|
14971
14976
|
view: style.view ?? (generator === "1dir" ? "top-down" : generator === "character" ? "low top-down" : "high top-down"),
|
|
14972
14977
|
...style.view !== void 0 ? { styleView: style.view } : {},
|
|
14978
|
+
...generator === "pixflux" && style.textGuidanceScale !== void 0 ? { textGuidanceScale: style.textGuidanceScale } : {},
|
|
14973
14979
|
styleImagePaths: style.styleImages.map((s) => s.path),
|
|
14974
14980
|
outline: style.outline,
|
|
14975
14981
|
shading: style.shading,
|