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/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. */
|
|
@@ -8155,6 +8158,8 @@ var PixelLabClient = class {
|
|
|
8155
8158
|
if (args.outline) body.outline = args.outline;
|
|
8156
8159
|
if (args.shading) body.shading = args.shading;
|
|
8157
8160
|
if (args.detail) body.detail = args.detail;
|
|
8161
|
+
if (args.view) body.view = args.view;
|
|
8162
|
+
if (args.textGuidanceScale != null) body.text_guidance_scale = args.textGuidanceScale;
|
|
8158
8163
|
if (args.seed != null) body.seed = args.seed;
|
|
8159
8164
|
const res = validateResponse(
|
|
8160
8165
|
PixfluxResponseSchema,
|
|
@@ -10855,6 +10860,7 @@ var PixelLabProvider = class _PixelLabProvider {
|
|
|
10855
10860
|
"highly detailed shading"
|
|
10856
10861
|
]);
|
|
10857
10862
|
requirePixelLabOption("pixflux", "detail", spec.detail, ["low detail", "medium detail", "highly detailed"]);
|
|
10863
|
+
requirePixelLabOption("pixflux", "view", spec.styleView, ["side", "low top-down", "high top-down"]);
|
|
10858
10864
|
}
|
|
10859
10865
|
if (spec.generator === "terrain") {
|
|
10860
10866
|
if (spec.outline) {
|
|
@@ -11830,6 +11836,9 @@ var PixelLabProvider = class _PixelLabProvider {
|
|
|
11830
11836
|
outline: spec.outline,
|
|
11831
11837
|
shading: spec.shading,
|
|
11832
11838
|
detail: spec.detail,
|
|
11839
|
+
// Only a view the style states: the resolved default would steer every scene and banner top-down.
|
|
11840
|
+
view: spec.styleView,
|
|
11841
|
+
textGuidanceScale: spec.textGuidanceScale,
|
|
11833
11842
|
seed: spec.seed,
|
|
11834
11843
|
...await initImageArgs(spec)
|
|
11835
11844
|
});
|
|
@@ -14965,6 +14974,8 @@ async function resolveSpecs(loaded, filter) {
|
|
|
14965
14974
|
height,
|
|
14966
14975
|
size,
|
|
14967
14976
|
view: style.view ?? (generator === "1dir" ? "top-down" : generator === "character" ? "low top-down" : "high top-down"),
|
|
14977
|
+
...style.view !== void 0 ? { styleView: style.view } : {},
|
|
14978
|
+
...generator === "pixflux" && style.textGuidanceScale !== void 0 ? { textGuidanceScale: style.textGuidanceScale } : {},
|
|
14968
14979
|
styleImagePaths: style.styleImages.map((s) => s.path),
|
|
14969
14980
|
outline: style.outline,
|
|
14970
14981
|
shading: style.shading,
|