pixelkiln 0.102.0 → 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;
@@ -21558,6 +21560,12 @@ declare class PixelLabClient {
21558
21560
  /** A PNG to start from, and how strongly it holds (1-999; the API default is 300). */
21559
21561
  initImage?: Base64Image;
21560
21562
  initImageStrength?: number;
21563
+ /** The style's look, sent only when set: PixelLab's `Outline`, `Shading` and `Detail` enums. */
21564
+ outline?: string;
21565
+ shading?: string;
21566
+ detail?: string;
21567
+ /** Camera angle, weakly guiding: side, low top-down or high top-down. */
21568
+ view?: string;
21561
21569
  seed?: number;
21562
21570
  }): Promise<{
21563
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;
@@ -21558,6 +21560,12 @@ declare class PixelLabClient {
21558
21560
  /** A PNG to start from, and how strongly it holds (1-999; the API default is 300). */
21559
21561
  initImage?: Base64Image;
21560
21562
  initImageStrength?: number;
21563
+ /** The style's look, sent only when set: PixelLab's `Outline`, `Shading` and `Detail` enums. */
21564
+ outline?: string;
21565
+ shading?: string;
21566
+ detail?: string;
21567
+ /** Camera angle, weakly guiding: side, low top-down or high top-down. */
21568
+ view?: string;
21561
21569
  seed?: number;
21562
21570
  }): Promise<{
21563
21571
  png: Buffer;
package/dist/index.js CHANGED
@@ -2940,6 +2940,10 @@ var PixelLabClient = class {
2940
2940
  body.init_image = { type: "base64", base64: args.initImage.base64, format: args.initImage.format };
2941
2941
  if (args.initImageStrength != null) body.init_image_strength = args.initImageStrength;
2942
2942
  }
2943
+ if (args.outline) body.outline = args.outline;
2944
+ if (args.shading) body.shading = args.shading;
2945
+ if (args.detail) body.detail = args.detail;
2946
+ if (args.view) body.view = args.view;
2943
2947
  if (args.seed != null) body.seed = args.seed;
2944
2948
  const res = validateResponse(
2945
2949
  PixfluxResponseSchema,
@@ -6417,6 +6421,23 @@ var PixelLabProvider = class _PixelLabProvider {
6417
6421
  "high detail"
6418
6422
  ]);
6419
6423
  }
6424
+ if (spec.generator === "pixflux") {
6425
+ requirePixelLabOption("pixflux", "outline", spec.outline, [
6426
+ "single color black outline",
6427
+ "single color outline",
6428
+ "selective outline",
6429
+ "lineless"
6430
+ ]);
6431
+ requirePixelLabOption("pixflux", "shading", spec.shading, [
6432
+ "flat shading",
6433
+ "basic shading",
6434
+ "medium shading",
6435
+ "detailed shading",
6436
+ "highly detailed shading"
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"]);
6440
+ }
6420
6441
  if (spec.generator === "terrain") {
6421
6442
  if (spec.outline) {
6422
6443
  requirePixelLabOption("terrain", "outline", spec.outline, [
@@ -7388,6 +7409,11 @@ var PixelLabProvider = class _PixelLabProvider {
7388
7409
  height: spec.height,
7389
7410
  noBackground: spec.noBackground,
7390
7411
  paletteSwatchBase64: swatch,
7412
+ outline: spec.outline,
7413
+ shading: spec.shading,
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,
7391
7417
  seed: spec.seed,
7392
7418
  ...await initImageArgs(spec)
7393
7419
  });
@@ -11941,6 +11967,7 @@ async function resolveSpecs(loaded, filter) {
11941
11967
  height,
11942
11968
  size,
11943
11969
  view: style.view ?? (generator === "1dir" ? "top-down" : generator === "character" ? "low top-down" : "high top-down"),
11970
+ ...style.view !== void 0 ? { styleView: style.view } : {},
11944
11971
  styleImagePaths: style.styleImages.map((s) => s.path),
11945
11972
  outline: style.outline,
11946
11973
  shading: style.shading,