-
-
Notifications
You must be signed in to change notification settings - Fork 458
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v7 prep - includes redesigning parts of core, and unifying different types #956
Conversation
…ml; not useful in declarative style API
…s to declarative style
… changed to val, and shadow alias removed
…type; BREAKING: paragraph border value attr renamed to style, to match other usages of borders
…s functions, which check and clean up values for specific defined types from the schema
Codecov Report
@@ Coverage Diff @@
## master #956 +/- ##
==========================================
+ Coverage 98.73% 99.29% +0.56%
==========================================
Files 339 311 -28
Lines 3859 3541 -318
Branches 354 377 +23
==========================================
- Hits 3810 3516 -294
+ Misses 48 24 -24
Partials 1 1
Continue to review full report at Codecov.
|
Wow, very well done, Could you add a list of breaking changes so I can add it to the release notes, like so: |
Yes, I'll make you a list when it's ready. I still need to go over:
and a couple other areas first. |
…umber value <foo w:val="1234"/>
…es.updateFields = true setting
I'm wrapping it up, that's good enough for now. I did not get deep into file/drawing -- that should probably be done at some point, but for now we can move ahead without reworking it. Here's the breaking changes and notes: New features:
Breaking changes:
new Paragraph({
border: {
top: {
value: "single",
size: 6,
color: "red",
},
}
}) new: new Paragraph({
border: {
top: {
style: BorderStyle.SINGLE,
size: 6,
color: "FF0000",
},
}
})
old: shading: {
val: ShadingType.REVERSE_DIAGONAL_STRIPE,
color: "00FFFF",
fill: "FF0000",
}, new: shading: {
type: ShadingType.REVERSE_DIAGONAL_STRIPE,
color: "00FFFF",
fill: "FF0000",
},
|
@devoidfury Been reviewing it recently Will let you know! |
|
||
for (const child of options.children) { | ||
this.root.push(child); | ||
} | ||
|
||
if (options.width) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these properties added back anywhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/file/table/table-cell/table-cell-properties.ts
@devoidfury Left some comments Feel free to reply and address, will approve after! |
@@ -132,18 +134,6 @@ export class File { | |||
this.footnotesWrapper.View.createFootNote(parseFloat(key), options.footnotes[key].children); | |||
} | |||
} | |||
|
|||
if (options.features) { | |||
if (options.features.trackRevisions) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@devoidfury If this gets deleted, then Demo 60 won't work?
@devoidfury Does demo 60 still work? |
@dolanmiu it appears to - I didn't remove the "trackRevisions" feature |
src/file/settings/settings.ts Rather than calling this.settings.addTrackRevisions(), it's passed straight as an option into the Settings object which handles it in the constructor. |
@devoidfury Thank you for clarifying |
@devoidfury Merged in! |
The intent of this PR is to do a few things -
It's not ready to merge quite yet - I'm still working on things here; so far I've removed more code than I've added, even after adding a lot of comments and a few features. Opening this PR so you can review what's been done so far and start the discussion around these changes.
There may be a few items worth cherry-picking onto v6 - for example, commit 528be93, which fixes issue #507.