@bangerpage/cli 0.2.1 → 0.2.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.
@@ -59,6 +59,7 @@ description: HTML 1 枚で「めくらない」プレゼンテーション (キ
59
59
  - 中身は `bang-free` の直下にルート要素を 1 つ置き、規則は直下の `<style>` に書く。規則はその `bang-free` の中だけに効く。 ルート要素は箱の高さいっぱいに伸びる。コードの箱のように内容の高さにしたいものは、`<div>` で包んでその中に置く。
60
60
  - 色はテーマの変数だけで書く。文字や線は `var(--bang-color-*)` と `color-mix(in srgb, var(--bang-color-ink) 60%, transparent)`、帯と同じ塗りは `var(--bang-band-ground)`、表紙の塗りは `var(--bang-cover-ground)`。色コードは書かない。
61
61
  - `style` 属性は配置の px のためだけに、`bang-free` の中で書いてよい。`<script>` は書かない。
62
+ - ぼかした影 (`box-shadow` のぼかし、`filter: blur()`・`drop-shadow()`) は書かない。PDF に書き出すと、Mac のプレビューなどで灰色の四角い板になる。影が要るときはテーマの `cardShadow` を使う。
62
63
  - 位置は grid と、1 つのセルへの重ね (`grid-area: 1 / 1`) を先に考え、絶対座標は最後に使う。座標は `banger snap` の画像を見て直す。
63
64
  - 他の内容の上に注記や矢印を重ねるときは、フレームの最後の子に `overlay` つきの `bang-free` を 1 つ置く。座標はフレームの左上が原点の px (1920×1080)。先頭の子にしない。
64
65
  - 箱の中の図を座標で組むときは、箱の大きさに頼らない。SVG に `viewBox` (元の図の座標) を書いて `width: 100%; height: 100%` で箱に合わせる。縦横比を保つなら `preserveAspectRatio` は既定のまま、箱いっぱいに伸ばすなら `none`。図をフレームの px で置きたいときは `overlay` を使う。
@@ -1,4 +1,4 @@
1
1
  {
2
- "skillVersion": "0.2.1",
3
- "runtimeVersion": "0.2.1"
2
+ "skillVersion": "0.2.2",
3
+ "runtimeVersion": "0.2.2"
4
4
  }
@@ -6,7 +6,7 @@
6
6
  <title>Starter</title>
7
7
  </head>
8
8
  <body>
9
- <script type="module" src="https://cdn.jsdelivr.net/npm/@bangerpage/core@0.2.1/dist/index.js"></script>
9
+ <script type="module" src="https://cdn.jsdelivr.net/npm/@bangerpage/core@0.2.2/dist/index.js"></script>
10
10
  <bang-root theme="light">
11
11
  <bang-frame id="intro" at="0,0">
12
12
  <bang-title>めくらないプレゼン</bang-title>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bangerpage/cli",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "The banger command: preview, snap and export Banger presentations to PNG and PDF.",
5
5
  "keywords": [
6
6
  "presentation",
@@ -44,7 +44,7 @@
44
44
  "@cantoo/pdf-lib": "^2.11.1",
45
45
  "parse5": "^8.1.1",
46
46
  "playwright-core": "^1.65.1",
47
- "@bangerpage/core": "0.2.1"
47
+ "@bangerpage/core": "0.2.2"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@types/node": "^24.0.0",