@pptx-studio/render-dom 0.3.0 → 0.3.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/CHANGELOG.md +46 -0
  2. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,51 @@
1
1
  # @pptx-studio/render-dom
2
2
 
3
+ ## 0.3.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 6ceb245: A rectangular picture's border is drawn as PowerPoint's export draws it.
8
+
9
+ At a named width the border is the device pen on the frame outset by half the true width, over
10
+ the picture, with no clip: crisp when the width is a whole number of device pixels and antialiased
11
+ otherwise (F3, `snap.json`: 48 of 48 borders). The path carries `data-band="out"`, and a zoom mask
12
+ may let its crispness change with the pen as it lets `stroke-width` change. A picture that is not
13
+ a rectangle keeps its double-width band clipped to the outside. `StrokePaint` gains `whole`, whether
14
+ the pen is the true width in whole device pixels.
15
+
16
+ The rule's own domain is now measured: every case fits it on the six widths that are an eighth of
17
+ a pixel per point with a whole-pixel height, 239 and 227 of 242 at the two other whole-dpi,
18
+ whole-height widths where an exact half rounds its width and its parity apart, an exact half
19
+ rounds up at every power-of-two scale — which is every zoom the page has — and an `algn="in"`
20
+ stroke, measured for the first time, sits a device pixel outside its rounded frame edge; the
21
+ renderer's clipped band for it is up to a pixel and a half too far in, and the record says so.
22
+
23
+ - Updated dependencies [6ceb245]
24
+ - @pptx-studio/render-svg@0.6.0
25
+
26
+ ## 0.3.1
27
+
28
+ ### Patch Changes
29
+
30
+ - da4dc86: Edges land where PowerPoint's export puts them on the device grid.
31
+
32
+ `devicePen` in `paint` gives a stroke its whole-pixel pen and, when that pen is odd, the half
33
+ device pixel it sits past the rounded coordinate (F3, `snap.json`: 732 of 732 axis-aligned
34
+ strokes). At a named width `render-svg` draws every rectilinear path — a rectangle, a horizontal or
35
+ vertical line, a rectilinear `custGeom`, turned by a quarter or flipped — with
36
+ `shape-rendering="crispEdges"`, and moves an odd pen half a device pixel down and right, so a
37
+ whole-pixel stroke is one crisp row at every offset and a fill edge starts on the row the export
38
+ starts it on. Curves, diagonals and turned rectangles stay antialiased where they lie; a clipped
39
+ band stays antialiased under its clip.
40
+
41
+ A named `height` now stretches the slide into its box, as the export stretches into its own
42
+ whole-pixel box; with only a width the aspect holds. `render-dom` mounts the same tree.
43
+
44
+ - Updated dependencies [da4dc86]
45
+ - @pptx-studio/paint@0.4.0
46
+ - @pptx-studio/render-svg@0.5.0
47
+ - @pptx-studio/model@0.1.4
48
+
3
49
  ## 0.3.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.3.0",
3
+ "version": "0.3.2",
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.4",
44
45
  "@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"
46
+ "@pptx-studio/render-svg": "^0.6.0",
47
+ "@pptx-studio/paint": "^0.4.0"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@arethetypeswrong/cli": "0.18.5",