Commit Graph
159 Commits
Author SHA1 Message Date
Tom Z?hner 7dec052d9d Remove unnecessary function.prototype.call() 2018-03-01 21:37:35 +01:00
Tom Z?hner d1cd52e708 Convert Destinations.ts to typescript classes 2018-03-01 21:33:31 +01:00
Tom Z?hner 38cab7b8be rtf.js typing improvements 2018-03-01 14:40:58 +01:00
Tom Z?hner ca6a33f50a Add emf.js typings 2018-02-28 17:00:14 +01:00
Tom Z?hner 22f9288700 Add wmfjs typings 2018-02-27 17:57:06 +01:00
Tom Z?hner 5c4b095143 Add RenderChp and RenderPap typings 2018-02-27 11:13:28 +01:00
Tom Z?hner 09e11b9426 Disable test timeout to prevent ci breaking 2018-02-26 17:13:29 +01:00
Tom Z?hner 8e36b396c8 Add renderer typings 2018-02-26 17:05:46 +01:00
Tom Z?hner 12b335b6fb More parser refactoring 2018-02-26 14:58:02 +01:00
Tom Z?hner 7b031d348b Parser refactoring 2018-02-26 14:35:12 +01:00
Tom Z?hner 25eaf047c2 Convert record functions to ES6 2018-02-26 12:22:22 +01:00
Tom Z?hner f1fdb2f6d0 More typings 2018-02-26 10:35:02 +01:00
Tom Z?hner 2fd739a6e8 Extract container classes and destinations from parser 2018-02-26 10:23:47 +01:00
Tom Z?hner de3f233d3b Add some typings 2018-02-25 18:19:06 +01:00
Tom Z?hner 8a6c7bcff1 Fix .gitattributes 2018-02-25 16:39:42 +01:00
Tom Z?hner 6df0b03243 Add test case for file import (had to remove nice html formatting since it was either to slow or broke with base64 images) 2018-02-25 16:23:48 +01:00
Tom Z?hner 238b32a629 Add test regenaration script 2018-02-25 14:06:24 +01:00
Tom Z?hner 0ce1b6e468 Add .gitattributes to fix github statistics 2018-02-25 12:49:55 +01:00
Tom Z?hner 312e738859 Add build status to README 2018-02-25 12:33:32 +01:00
Tom Z?hner f853566f44 Return dates in rtf meta data as UTC to prevent test breakage 2018-02-25 12:26:14 +01:00
Tom Z?hner 7411d9ca2c Add rtf tests with wmf / emf, improve test repeatability, improve html formatting 2018-02-25 12:09:01 +01:00
Tom Z?hner 994e94c7e0 Image import fix 2018-02-25 11:41:39 +01:00
Tom Z?hner 7df25491ba Add version 2.0 information 2.0 2018-02-24 19:40:42 +01:00
Tom Zöhner f840cf3949 Merge pull request #32 from warren-bank/PR03-import-images
add support for RTFs that import images from external files
2018-02-24 19:33:28 +01:00
Tom Z?hner b1a723afcb Move asyncTask handling to parser 2018-02-24 17:32:33 +01:00
zoehneto 17b1f2c7cd switch Document.render() to promise and unify rendering for all documents 2018-02-24 16:39:34 +01:00
Warren R Bank 5bb7eb613b add support for RTFs that import images from external files
ex:
===
  {\field {\*\fldinst import image.WMF}}
  {\field {\*\fldinst import image.EMF}}

where:
======
* "image.WMF" is a relative URL path
* the external files are not read by the library
* a new hook function is added to the "settings" Object
  that is passed to the "RTFJS.Document()" constructor
  * "settings.onImport(relURL, cb)"
  * this hook function is responsible for:
    * reading data from the external file @ "relURL" into a blob
    * mapping the file extension to a "keyword" (ex: "wmetafile")
    * passing this information to the callback function with the desired height
      * cb({keyword, blob, height})

demo:
=====
  samples/04_rtf_imports/rtf.html
2018-02-24 16:39:34 +01:00
Tom Zöhner a5e8b7ca42 Merge pull request #33 from tbluemel/typescript
Switch to Typescript
2018-02-24 16:29:31 +01:00
Tom Z?hner f40573cac9 Update README and CHANGELOG 2018-02-24 16:27:42 +01:00
Tom Z?hner 934ef6508a Port tests 2018-02-24 00:06:35 +01:00
Tom Z?hner 8aa43c1d04 Convert loggingEnabled to function to fix logging switch (Breaking Change) 2018-02-24 00:06:34 +01:00
Tom Z?hner 92a817c240 Fix parser bug which breaks in module environment 2018-02-24 00:06:34 +01:00
Tom Z?hner 305fc2d0d8 Fix error export for backwards compatibility 2018-02-24 00:06:34 +01:00
Tom Z?hner bd9149a798 Convert emf.js to typescript 2018-02-24 00:06:34 +01:00
Tom Z?hner 00c0846375 Only keep bundles in dist 2018-02-24 00:06:34 +01:00
Tom Z?hner 1f08fc533a Extract parser, decouple parser and renderer using document, split document into data container and api 2018-02-24 00:06:34 +01:00
Tom Z?hner 0cb8a871d6 Generate sourcemaps 2018-02-24 00:06:34 +01:00
Tom Z?hner b4d4b16437 Convert wmfjs to typescript 2018-02-24 00:06:34 +01:00
Tom Z?hner e45eaaeaf8 Fix logging enabled switch 2018-02-24 00:06:34 +01:00
Tom Z?hner c97d45db63 Initial typescript conversion of rtf.js 2018-02-24 00:06:34 +01:00
Tom Z?hner 1b898a1cb9 Run lint for PRs 2018-02-24 00:06:12 +01:00
Tom Z?hner f98afd40f2 Add travis ci config 2018-02-23 17:47:23 +01:00
Tom Z?hner bb6bb7e586 Apply editorconfig to tests 2018-02-23 10:08:49 +01:00
Tom Z?hner effb7652b6 Mention tests in README 2018-02-23 10:06:34 +01:00
Tom Z?hner 612cb84b88 Implement test runner 2018-02-23 10:01:08 +01:00
Tom Z?hner 18a03b5d8a Implement test case generation 2018-02-23 08:54:27 +01:00
Tom Zöhner 11965c2ae9 Add author to package.json 2018-02-19 22:42:14 +01:00
Tom Zöhner 17ddbfee83 Add Changelog 2018-02-19 22:36:36 +01:00
Tom Zöhner ef2e7f4a43 Merge pull request #31 from warren-bank/PR02-refactor-samples
refactor samples
1.0
2018-02-19 16:47:03 +01:00
Warren R Bank 0e4500e3d7 organize directory structure + relink 2018-02-19 07:39:22 -08:00