pixelkiln 0.102.0 → 0.102.1

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
@@ -21558,6 +21558,10 @@ declare class PixelLabClient {
21558
21558
  /** A PNG to start from, and how strongly it holds (1-999; the API default is 300). */
21559
21559
  initImage?: Base64Image;
21560
21560
  initImageStrength?: number;
21561
+ /** The style's look, sent only when set: PixelLab's `Outline`, `Shading` and `Detail` enums. */
21562
+ outline?: string;
21563
+ shading?: string;
21564
+ detail?: string;
21561
21565
  seed?: number;
21562
21566
  }): Promise<{
21563
21567
  png: Buffer;
package/dist/index.d.ts CHANGED
@@ -21558,6 +21558,10 @@ declare class PixelLabClient {
21558
21558
  /** A PNG to start from, and how strongly it holds (1-999; the API default is 300). */
21559
21559
  initImage?: Base64Image;
21560
21560
  initImageStrength?: number;
21561
+ /** The style's look, sent only when set: PixelLab's `Outline`, `Shading` and `Detail` enums. */
21562
+ outline?: string;
21563
+ shading?: string;
21564
+ detail?: string;
21561
21565
  seed?: number;
21562
21566
  }): Promise<{
21563
21567
  png: Buffer;
package/dist/index.js CHANGED
@@ -2940,6 +2940,9 @@ 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;
2943
2946
  if (args.seed != null) body.seed = args.seed;
2944
2947
  const res = validateResponse(
2945
2948
  PixfluxResponseSchema,
@@ -6417,6 +6420,22 @@ var PixelLabProvider = class _PixelLabProvider {
6417
6420
  "high detail"
6418
6421
  ]);
6419
6422
  }
6423
+ if (spec.generator === "pixflux") {
6424
+ requirePixelLabOption("pixflux", "outline", spec.outline, [
6425
+ "single color black outline",
6426
+ "single color outline",
6427
+ "selective outline",
6428
+ "lineless"
6429
+ ]);
6430
+ requirePixelLabOption("pixflux", "shading", spec.shading, [
6431
+ "flat shading",
6432
+ "basic shading",
6433
+ "medium shading",
6434
+ "detailed shading",
6435
+ "highly detailed shading"
6436
+ ]);
6437
+ requirePixelLabOption("pixflux", "detail", spec.detail, ["low detail", "medium detail", "highly detailed"]);
6438
+ }
6420
6439
  if (spec.generator === "terrain") {
6421
6440
  if (spec.outline) {
6422
6441
  requirePixelLabOption("terrain", "outline", spec.outline, [
@@ -7388,6 +7407,9 @@ var PixelLabProvider = class _PixelLabProvider {
7388
7407
  height: spec.height,
7389
7408
  noBackground: spec.noBackground,
7390
7409
  paletteSwatchBase64: swatch,
7410
+ outline: spec.outline,
7411
+ shading: spec.shading,
7412
+ detail: spec.detail,
7391
7413
  seed: spec.seed,
7392
7414
  ...await initImageArgs(spec)
7393
7415
  });