@pptx-studio/render-dom 0.3.2 → 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.
- package/CHANGELOG.md +25 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# @pptx-studio/render-dom
|
|
2
2
|
|
|
3
|
+
## 0.3.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- e8ba475: A table is parsed, and its grid is the one PowerPoint draws.
|
|
8
|
+
|
|
9
|
+
`Shape.table` carries the `a:tbl` of a `p:graphicFrame`: the `a:tblPr` flags and style source, every
|
|
10
|
+
`a:gridCol`, every `a:tr` with its cells, and each cell's spans, body and `a:tcPr` as written.
|
|
11
|
+
`tableGrid` resolves the merges by the rule C7 measured (`tables.json`, 76 of 76 tables PowerPoint
|
|
12
|
+
opened as written and 21 it authored itself): each `a:tc` takes the next column, the spans on the
|
|
13
|
+
anchor are the whole story, a covered position is covered whatever its own attributes say, a span
|
|
14
|
+
stops at the edge or at the first claimed position, and `hMerge`/`vMerge` change nothing. `a:tr/@h`
|
|
15
|
+
is a minimum, a column is never narrower than its cells' side margins plus 2 pt, and the frame's
|
|
16
|
+
`a:ext` says nothing about the drawn size. A table attribute of the wrong type throws
|
|
17
|
+
`MODEL_TABLE_ATTR`.
|
|
18
|
+
|
|
19
|
+
`@pptx-studio/validate` gains `V030`, a warning on a table whose rows, spans and flags disagree —
|
|
20
|
+
PowerPoint opens it silently and rewrites it on the next save — and `V031`, fatal on the missing or
|
|
21
|
+
mistyped table attributes PowerPoint repairs. The downstream packages carry the new rules and the
|
|
22
|
+
new field; nothing they draw changes.
|
|
23
|
+
|
|
24
|
+
- Updated dependencies [e8ba475]
|
|
25
|
+
- @pptx-studio/model@0.2.0
|
|
26
|
+
- @pptx-studio/render-svg@0.6.1
|
|
27
|
+
|
|
3
28
|
## 0.3.2
|
|
4
29
|
|
|
5
30
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pptx-studio/render-dom",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
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,9 +41,9 @@
|
|
|
41
41
|
"./package.json": "./package.json"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@pptx-studio/model": "^0.1.4",
|
|
45
44
|
"@pptx-studio/geometry": "^0.1.1",
|
|
46
|
-
"@pptx-studio/
|
|
45
|
+
"@pptx-studio/model": "^0.2.0",
|
|
46
|
+
"@pptx-studio/render-svg": "^0.6.1",
|
|
47
47
|
"@pptx-studio/paint": "^0.4.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|