pixelkiln 0.102.1 → 0.102.2

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/index.cjs CHANGED
@@ -3402,6 +3402,7 @@ var PixelLabClient = class {
3402
3402
  if (args.outline) body.outline = args.outline;
3403
3403
  if (args.shading) body.shading = args.shading;
3404
3404
  if (args.detail) body.detail = args.detail;
3405
+ if (args.view) body.view = args.view;
3405
3406
  if (args.seed != null) body.seed = args.seed;
3406
3407
  const res = validateResponse(
3407
3408
  PixfluxResponseSchema,
@@ -6894,6 +6895,7 @@ var PixelLabProvider = class _PixelLabProvider {
6894
6895
  "highly detailed shading"
6895
6896
  ]);
6896
6897
  requirePixelLabOption("pixflux", "detail", spec.detail, ["low detail", "medium detail", "highly detailed"]);
6898
+ requirePixelLabOption("pixflux", "view", spec.styleView, ["side", "low top-down", "high top-down"]);
6897
6899
  }
6898
6900
  if (spec.generator === "terrain") {
6899
6901
  if (spec.outline) {
@@ -7869,6 +7871,8 @@ var PixelLabProvider = class _PixelLabProvider {
7869
7871
  outline: spec.outline,
7870
7872
  shading: spec.shading,
7871
7873
  detail: spec.detail,
7874
+ // Only a view the style states: the resolved default would steer every scene and banner top-down.
7875
+ view: spec.styleView,
7872
7876
  seed: spec.seed,
7873
7877
  ...await initImageArgs(spec)
7874
7878
  });
@@ -12422,6 +12426,7 @@ async function resolveSpecs(loaded, filter) {
12422
12426
  height,
12423
12427
  size,
12424
12428
  view: style.view ?? (generator === "1dir" ? "top-down" : generator === "character" ? "low top-down" : "high top-down"),
12429
+ ...style.view !== void 0 ? { styleView: style.view } : {},
12425
12430
  styleImagePaths: style.styleImages.map((s) => s.path),
12426
12431
  outline: style.outline,
12427
12432
  shading: style.shading,