@pptx-studio/render-dom 0.3.0 → 0.3.1

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 +23 -0
  2. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # @pptx-studio/render-dom
2
2
 
3
+ ## 0.3.1
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/paint@0.4.0
23
+ - @pptx-studio/render-svg@0.5.0
24
+ - @pptx-studio/model@0.1.4
25
+
3
26
  ## 0.3.0
4
27
 
5
28
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pptx-studio/render-dom",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "The live DOM renderer: one element per shape, over the same layout engine as render-svg",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -42,9 +42,9 @@
42
42
  },
43
43
  "dependencies": {
44
44
  "@pptx-studio/geometry": "^0.1.1",
45
- "@pptx-studio/paint": "^0.3.0",
46
- "@pptx-studio/model": "^0.1.3",
47
- "@pptx-studio/render-svg": "^0.4.0"
45
+ "@pptx-studio/model": "^0.1.4",
46
+ "@pptx-studio/paint": "^0.4.0",
47
+ "@pptx-studio/render-svg": "^0.5.0"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@arethetypeswrong/cli": "0.18.5",