@openbone/cli 0.4.0 → 0.4.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.
Files changed (2) hide show
  1. package/dist/bin.js +5 -2
  2. package/package.json +4 -4
package/dist/bin.js CHANGED
@@ -19,7 +19,7 @@ Usage:
19
19
  options: --animation walk --animations walk,run (spritesheet, json, obonb) --skin name
20
20
  --scale 1 --fps 30 --duration 2 --time 0 --state-machine ui --steps '<json>'
21
21
  --transparent --sequence (png/jpeg: every frame, ZIP)
22
- --engine unity|godot|flutter|generic (spritesheet) --single-file (web) --binary
22
+ --engine unity|godot|flutter|generic (spritesheet) --single-file (web) --fit contain|cover|auto|none --no-clip --fullscreen-fit auto|cover|contain|same (web) --binary
23
23
  --pack (json/obonb/web: embed an atlas)
24
24
  --embed (obone/json/obonb: put every image and sound inside the file, so it opens on its own)
25
25
  --no-audio (avi/mov/mp4/webm: leave the sound out) --quality 0.85 (mp4/webm)
@@ -62,7 +62,7 @@ async function session() {
62
62
  }
63
63
  /** Flags that take no value (everything else starting with -- takes the next argument). */
64
64
  const SWITCHES = new Set([
65
- "bones", "bounding-boxes", "transparent", "sequence", "single-file", "binary", "pack", "embed", "no-audio", "no-pot", "rotate", "strip-whitespace", "polygons", "premultiplied", "no-minify",
65
+ "bones", "bounding-boxes", "transparent", "sequence", "single-file", "binary", "pack", "embed", "no-audio", "no-pot", "rotate", "strip-whitespace", "polygons", "premultiplied", "no-minify", "no-clip",
66
66
  "square", "multiple-of-4", "no-alias", "keep-blank", "no-edge-padding", "no-duplicate-padding", "bleed", "no-bleed", "debug",
67
67
  ]);
68
68
  /** `--name value` that must be one of `allowed` (undefined when absent). */
@@ -172,6 +172,9 @@ async function exportCommand() {
172
172
  sequence: flag("sequence"),
173
173
  engine: opt("engine"),
174
174
  singleFile: flag("single-file"),
175
+ fit: choice("fit", ["contain", "cover", "auto", "none"]),
176
+ ...(flag("no-clip") ? { clip: false } : {}),
177
+ fullscreenFit: choice("fullscreen-fit", ["auto", "cover", "contain", "none", "same"]),
175
178
  minify: !flag("no-minify"),
176
179
  binary: flag("binary") ? true : undefined,
177
180
  pack: flag("pack"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openbone/cli",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "description": "OpenBone command line: validate, render, export and edit .obone files, and start the MCP server",
5
5
  "keywords": [
6
6
  "openbone",
@@ -39,9 +39,9 @@
39
39
  "access": "public"
40
40
  },
41
41
  "dependencies": {
42
- "@openbone/core": "0.4.0",
43
- "@openbone/scripting": "0.4.0",
44
- "@openbone/mcp": "0.4.0"
42
+ "@openbone/core": "0.4.2",
43
+ "@openbone/scripting": "0.4.2",
44
+ "@openbone/mcp": "0.4.2"
45
45
  },
46
46
  "scripts": {
47
47
  "build": "node ../build.mjs"