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.d.cts CHANGED
@@ -17554,6 +17554,8 @@ interface ResolvedSpec {
17554
17554
  width: number;
17555
17555
  height: number;
17556
17556
  view: string;
17557
+ /** The style's own `view`, absent when `view` above is the generator's default. Not part of identity; `view` is. */
17558
+ styleView?: string;
17557
17559
  size: number;
17558
17560
  styleImagePaths: string[];
17559
17561
  outFile: string;
@@ -21562,6 +21564,8 @@ declare class PixelLabClient {
21562
21564
  outline?: string;
21563
21565
  shading?: string;
21564
21566
  detail?: string;
21567
+ /** Camera angle, weakly guiding: side, low top-down or high top-down. */
21568
+ view?: string;
21565
21569
  seed?: number;
21566
21570
  }): Promise<{
21567
21571
  png: Buffer;
package/dist/index.d.ts CHANGED
@@ -17554,6 +17554,8 @@ interface ResolvedSpec {
17554
17554
  width: number;
17555
17555
  height: number;
17556
17556
  view: string;
17557
+ /** The style's own `view`, absent when `view` above is the generator's default. Not part of identity; `view` is. */
17558
+ styleView?: string;
17557
17559
  size: number;
17558
17560
  styleImagePaths: string[];
17559
17561
  outFile: string;
@@ -21562,6 +21564,8 @@ declare class PixelLabClient {
21562
21564
  outline?: string;
21563
21565
  shading?: string;
21564
21566
  detail?: string;
21567
+ /** Camera angle, weakly guiding: side, low top-down or high top-down. */
21568
+ view?: string;
21565
21569
  seed?: number;
21566
21570
  }): Promise<{
21567
21571
  png: Buffer;
package/dist/index.js CHANGED
@@ -2943,6 +2943,7 @@ var PixelLabClient = class {
2943
2943
  if (args.outline) body.outline = args.outline;
2944
2944
  if (args.shading) body.shading = args.shading;
2945
2945
  if (args.detail) body.detail = args.detail;
2946
+ if (args.view) body.view = args.view;
2946
2947
  if (args.seed != null) body.seed = args.seed;
2947
2948
  const res = validateResponse(
2948
2949
  PixfluxResponseSchema,
@@ -6435,6 +6436,7 @@ var PixelLabProvider = class _PixelLabProvider {
6435
6436
  "highly detailed shading"
6436
6437
  ]);
6437
6438
  requirePixelLabOption("pixflux", "detail", spec.detail, ["low detail", "medium detail", "highly detailed"]);
6439
+ requirePixelLabOption("pixflux", "view", spec.styleView, ["side", "low top-down", "high top-down"]);
6438
6440
  }
6439
6441
  if (spec.generator === "terrain") {
6440
6442
  if (spec.outline) {
@@ -7410,6 +7412,8 @@ var PixelLabProvider = class _PixelLabProvider {
7410
7412
  outline: spec.outline,
7411
7413
  shading: spec.shading,
7412
7414
  detail: spec.detail,
7415
+ // Only a view the style states: the resolved default would steer every scene and banner top-down.
7416
+ view: spec.styleView,
7413
7417
  seed: spec.seed,
7414
7418
  ...await initImageArgs(spec)
7415
7419
  });
@@ -11963,6 +11967,7 @@ async function resolveSpecs(loaded, filter) {
11963
11967
  height,
11964
11968
  size,
11965
11969
  view: style.view ?? (generator === "1dir" ? "top-down" : generator === "character" ? "low top-down" : "high top-down"),
11970
+ ...style.view !== void 0 ? { styleView: style.view } : {},
11966
11971
  styleImagePaths: style.styleImages.map((s) => s.path),
11967
11972
  outline: style.outline,
11968
11973
  shading: style.shading,