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.cjs CHANGED
@@ -3399,6 +3399,10 @@ var PixelLabClient = class {
3399
3399
  body.init_image = { type: "base64", base64: args.initImage.base64, format: args.initImage.format };
3400
3400
  if (args.initImageStrength != null) body.init_image_strength = args.initImageStrength;
3401
3401
  }
3402
+ if (args.outline) body.outline = args.outline;
3403
+ if (args.shading) body.shading = args.shading;
3404
+ if (args.detail) body.detail = args.detail;
3405
+ if (args.view) body.view = args.view;
3402
3406
  if (args.seed != null) body.seed = args.seed;
3403
3407
  const res = validateResponse(
3404
3408
  PixfluxResponseSchema,
@@ -6876,6 +6880,23 @@ var PixelLabProvider = class _PixelLabProvider {
6876
6880
  "high detail"
6877
6881
  ]);
6878
6882
  }
6883
+ if (spec.generator === "pixflux") {
6884
+ requirePixelLabOption("pixflux", "outline", spec.outline, [
6885
+ "single color black outline",
6886
+ "single color outline",
6887
+ "selective outline",
6888
+ "lineless"
6889
+ ]);
6890
+ requirePixelLabOption("pixflux", "shading", spec.shading, [
6891
+ "flat shading",
6892
+ "basic shading",
6893
+ "medium shading",
6894
+ "detailed shading",
6895
+ "highly detailed shading"
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"]);
6899
+ }
6879
6900
  if (spec.generator === "terrain") {
6880
6901
  if (spec.outline) {
6881
6902
  requirePixelLabOption("terrain", "outline", spec.outline, [
@@ -7847,6 +7868,11 @@ var PixelLabProvider = class _PixelLabProvider {
7847
7868
  height: spec.height,
7848
7869
  noBackground: spec.noBackground,
7849
7870
  paletteSwatchBase64: swatch,
7871
+ outline: spec.outline,
7872
+ shading: spec.shading,
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,
7850
7876
  seed: spec.seed,
7851
7877
  ...await initImageArgs(spec)
7852
7878
  });
@@ -12400,6 +12426,7 @@ async function resolveSpecs(loaded, filter) {
12400
12426
  height,
12401
12427
  size,
12402
12428
  view: style.view ?? (generator === "1dir" ? "top-down" : generator === "character" ? "low top-down" : "high top-down"),
12429
+ ...style.view !== void 0 ? { styleView: style.view } : {},
12403
12430
  styleImagePaths: style.styleImages.map((s) => s.path),
12404
12431
  outline: style.outline,
12405
12432
  shading: style.shading,