@pptx-studio/cli 0.3.1 → 0.3.3

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/CHANGELOG.md +42 -0
  2. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -1,5 +1,47 @@
1
1
  # @pptx-studio/cli
2
2
 
3
+ ## 0.3.3
4
+
5
+ ### Patch Changes
6
+
7
+ - da4dc86: Edges land where PowerPoint's export puts them on the device grid.
8
+
9
+ `devicePen` in `paint` gives a stroke its whole-pixel pen and, when that pen is odd, the half
10
+ device pixel it sits past the rounded coordinate (F3, `snap.json`: 732 of 732 axis-aligned
11
+ strokes). At a named width `render-svg` draws every rectilinear path — a rectangle, a horizontal or
12
+ vertical line, a rectilinear `custGeom`, turned by a quarter or flipped — with
13
+ `shape-rendering="crispEdges"`, and moves an odd pen half a device pixel down and right, so a
14
+ whole-pixel stroke is one crisp row at every offset and a fill edge starts on the row the export
15
+ starts it on. Curves, diagonals and turned rectangles stay antialiased where they lie; a clipped
16
+ band stays antialiased under its clip.
17
+
18
+ A named `height` now stretches the slide into its box, as the export stretches into its own
19
+ whole-pixel box; with only a width the aspect holds. `render-dom` mounts the same tree.
20
+
21
+ - Updated dependencies [da4dc86]
22
+ - @pptx-studio/render-svg@0.5.0
23
+ - @pptx-studio/model@0.1.4
24
+
25
+ ## 0.3.2
26
+
27
+ ### Patch Changes
28
+
29
+ - 33a6f9d: Line ends are drawn, and strokes round to the display's own pixels.
30
+
31
+ `render-svg` draws the six `a:headEnd`/`a:tailEnd` heads as markers on the open ends of a stroked
32
+ path, sized from the pen PowerPoint's export uses at every width: two points at or under a
33
+ two-point line, the whole-pixel stroke above it, never under a device pixel (`markerPen` in `paint`,
34
+ 49 of 49 F2 cases). No renderer had drawn a line end before.
35
+
36
+ `RenderOptions.devicePixelRatio` multiplies the named width for the stroke rule alone, so a slide at
37
+ 100 % on a 2x display carries the strokes of 200 % at the same CSS size; `render-dom` passes it
38
+ through. The studio page passes the display's ratio and re-mounts when the window moves to another
39
+ display.
40
+
41
+ - Updated dependencies [33a6f9d]
42
+ - @pptx-studio/render-svg@0.4.0
43
+ - @pptx-studio/model@0.1.3
44
+
3
45
  ## 0.3.1
4
46
 
5
47
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pptx-studio/cli",
3
- "version": "0.3.1",
3
+ "version": "0.3.3",
4
4
  "description": "Command line tools for PPTX packages: render slides to SVG without a browser, inspect a deck, validate it, prove a round trip, and bisect the change that breaks it",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -52,13 +52,13 @@
52
52
  },
53
53
  "dependencies": {
54
54
  "@pptx-studio/census": "^0.1.1",
55
- "@pptx-studio/model": "^0.1.2",
55
+ "@pptx-studio/render-svg": "^0.5.0",
56
56
  "@pptx-studio/opc": "^0.1.1",
57
- "@pptx-studio/render-svg": "^0.3.0",
57
+ "@pptx-studio/model": "^0.1.4",
58
58
  "@pptx-studio/text": "^0.2.0",
59
- "@pptx-studio/xml": "^0.1.1",
60
59
  "@pptx-studio/validate": "^0.1.1",
61
- "@pptx-studio/writer": "^0.1.1"
60
+ "@pptx-studio/writer": "^0.1.1",
61
+ "@pptx-studio/xml": "^0.1.1"
62
62
  },
63
63
  "devDependencies": {
64
64
  "@arethetypeswrong/cli": "0.18.5",