@pixelvibing/cli 0.56.1 → 0.56.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.
@@ -3309,13 +3309,15 @@ const WINDOWS = [
3309
3309
  { width: 1536, height: 1024 },
3310
3310
  { width: 1024, height: 1536 }
3311
3311
  ];
3312
+ function fitsRouteWindow(size) {
3313
+ return WINDOWS.some((window) => size.width <= window.width && size.height <= window.height);
3314
+ }
3312
3315
  function conceptSizeProblem(size) {
3313
3316
  const { width, height } = size;
3314
3317
  const side = (value) => Number.isInteger(value) && value >= CONCEPT_SIDE.min && value <= CONCEPT_SIDE.max && value % ROUTE_MULTIPLE === 0;
3315
3318
  if (!side(width) || !side(height))
3316
3319
  return `a concept art's sides are multiples of ${ROUTE_MULTIPLE} from ${CONCEPT_SIDE.min} to ${CONCEPT_SIDE.max} px, not ${width} × ${height}`;
3317
- if (!WINDOWS.some((window) => width <= window.width && height <= window.height))
3318
- return `a ${width} × ${height} px concept art is past the route's window: it fits within 1536 × 1024 or 1024 × 1536`;
3320
+ if (!fitsRouteWindow(size)) return `a ${width} × ${height} px concept art is past the route's window: it fits within 1536 × 1024 or 1024 × 1536`;
3319
3321
  return null;
3320
3322
  }
3321
3323
  function conceptShapeProblem(shape) {
@@ -6608,7 +6610,7 @@ const move = {
6608
6610
  );
6609
6611
  }
6610
6612
  };
6611
- const version = "0.56.1";
6613
+ const version = "0.56.2";
6612
6614
  const manifest = {
6613
6615
  version
6614
6616
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pixelvibing/cli",
3
- "version": "0.56.1",
3
+ "version": "0.56.2",
4
4
  "description": "PixelVibing: pixel art game assets from the command line, and the Skills that teach coding assistants to make them.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://pixelvibing.com",