Jspdf-autotable: Typescript and dependency injection refactor

Created on 26 Apr 2020  路  4Comments  路  Source: simonbengtsson/jsPDF-AutoTable

Have been refactors the entire plugin this weekend to be strict typescript typed and improved the exported types somewhat. Will release new version soon 馃憣

Also refactored to use parameter dependency injection everywhere instead of the previous state() module. Looks a bit messy at times with many parameters, but now all dependencies are clear and testing is much easier. Next step is to write tests for more components, but no timeframe on that.

In terms of feature requests the current most requested features seems to be colspan column width calculations (open issue), splitting wide tables horizontally across multiple tables and performance improvements.

Let me know if you have additional thoughts @mmghv

enhancement

All 4 comments

Great work, just make sure to do some tests before releasing because there seem to be a problem the "Long text" example with ellipsize, also "Column styles" example and probably "Custom style", so compare all examples with the previous release.

I might be able to help with colspan width calculation in a couple of weeks, pretty swamped right now.

Fixed two for the column styles and custom style example which are probably the ones you saw as well. Have not seen any issues with the long text example though?

I can see it's all fixed now :+1:

Released in 3.4.5 馃憣

Was this page helpful?
0 / 5 - 0 ratings

Related issues

simonbengtsson picture simonbengtsson  路  5Comments

cplaiu picture cplaiu  路  3Comments

sciefylab picture sciefylab  路  6Comments

bsparacino picture bsparacino  路  3Comments

tapz picture tapz  路  3Comments