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/cli.js CHANGED
@@ -8152,6 +8152,10 @@ var PixelLabClient = class {
8152
8152
  body.init_image = { type: "base64", base64: args.initImage.base64, format: args.initImage.format };
8153
8153
  if (args.initImageStrength != null) body.init_image_strength = args.initImageStrength;
8154
8154
  }
8155
+ if (args.outline) body.outline = args.outline;
8156
+ if (args.shading) body.shading = args.shading;
8157
+ if (args.detail) body.detail = args.detail;
8158
+ if (args.view) body.view = args.view;
8155
8159
  if (args.seed != null) body.seed = args.seed;
8156
8160
  const res = validateResponse(
8157
8161
  PixfluxResponseSchema,
@@ -10837,6 +10841,23 @@ var PixelLabProvider = class _PixelLabProvider {
10837
10841
  "high detail"
10838
10842
  ]);
10839
10843
  }
10844
+ if (spec.generator === "pixflux") {
10845
+ requirePixelLabOption("pixflux", "outline", spec.outline, [
10846
+ "single color black outline",
10847
+ "single color outline",
10848
+ "selective outline",
10849
+ "lineless"
10850
+ ]);
10851
+ requirePixelLabOption("pixflux", "shading", spec.shading, [
10852
+ "flat shading",
10853
+ "basic shading",
10854
+ "medium shading",
10855
+ "detailed shading",
10856
+ "highly detailed shading"
10857
+ ]);
10858
+ requirePixelLabOption("pixflux", "detail", spec.detail, ["low detail", "medium detail", "highly detailed"]);
10859
+ requirePixelLabOption("pixflux", "view", spec.styleView, ["side", "low top-down", "high top-down"]);
10860
+ }
10840
10861
  if (spec.generator === "terrain") {
10841
10862
  if (spec.outline) {
10842
10863
  requirePixelLabOption("terrain", "outline", spec.outline, [
@@ -11808,6 +11829,11 @@ var PixelLabProvider = class _PixelLabProvider {
11808
11829
  height: spec.height,
11809
11830
  noBackground: spec.noBackground,
11810
11831
  paletteSwatchBase64: swatch,
11832
+ outline: spec.outline,
11833
+ shading: spec.shading,
11834
+ detail: spec.detail,
11835
+ // Only a view the style states: the resolved default would steer every scene and banner top-down.
11836
+ view: spec.styleView,
11811
11837
  seed: spec.seed,
11812
11838
  ...await initImageArgs(spec)
11813
11839
  });
@@ -14943,6 +14969,7 @@ async function resolveSpecs(loaded, filter) {
14943
14969
  height,
14944
14970
  size,
14945
14971
  view: style.view ?? (generator === "1dir" ? "top-down" : generator === "character" ? "low top-down" : "high top-down"),
14972
+ ...style.view !== void 0 ? { styleView: style.view } : {},
14946
14973
  styleImagePaths: style.styleImages.map((s) => s.path),
14947
14974
  outline: style.outline,
14948
14975
  shading: style.shading,