@pptx-studio/render-dom 0.2.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 +46 -0
  2. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -1,5 +1,51 @@
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
+
26
+ ## 0.3.0
27
+
28
+ ### Minor Changes
29
+
30
+ - 33a6f9d: Line ends are drawn, and strokes round to the display's own pixels.
31
+
32
+ `render-svg` draws the six `a:headEnd`/`a:tailEnd` heads as markers on the open ends of a stroked
33
+ path, sized from the pen PowerPoint's export uses at every width: two points at or under a
34
+ two-point line, the whole-pixel stroke above it, never under a device pixel (`markerPen` in `paint`,
35
+ 49 of 49 F2 cases). No renderer had drawn a line end before.
36
+
37
+ `RenderOptions.devicePixelRatio` multiplies the named width for the stroke rule alone, so a slide at
38
+ 100 % on a 2x display carries the strokes of 200 % at the same CSS size; `render-dom` passes it
39
+ through. The studio page passes the display's ratio and re-mounts when the window moves to another
40
+ display.
41
+
42
+ ### Patch Changes
43
+
44
+ - Updated dependencies [33a6f9d]
45
+ - @pptx-studio/paint@0.3.0
46
+ - @pptx-studio/render-svg@0.4.0
47
+ - @pptx-studio/model@0.1.3
48
+
3
49
  ## 0.2.0
4
50
 
5
51
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pptx-studio/render-dom",
3
- "version": "0.2.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",
@@ -41,10 +41,10 @@
41
41
  "./package.json": "./package.json"
42
42
  },
43
43
  "dependencies": {
44
- "@pptx-studio/model": "^0.1.2",
45
- "@pptx-studio/paint": "^0.2.0",
46
- "@pptx-studio/render-svg": "^0.3.0",
47
- "@pptx-studio/geometry": "^0.1.1"
44
+ "@pptx-studio/geometry": "^0.1.1",
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",