@broadpaper/core 0.3.0 → 0.4.1

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/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  The document model, expression language, theme resolution and paginator behind BroadPaper. Framework-free.
8
8
 
9
- Part of [**BroadPaper**](https://www.broadpaper.com/developers/) — an embeddable visual report designer and PDF renderer.
9
+ Part of [**BroadPaper**](https://www.broadpaper.com/developers/?utm_source=npm&utm_medium=readme) — an embeddable visual report designer and PDF renderer.
10
10
  Your users design the report in your application; BroadPaper owns the layout, the branding,
11
11
  the pagination and the output.
12
12
 
@@ -41,7 +41,7 @@ production use. No seats, no activation, no machine binding, no telemetry, and n
41
41
  any point.
42
42
 
43
43
  - [How licensing works](https://www.broadpaper.com/docs/guide/licensing/)
44
- - [Pricing](https://www.broadpaper.com/developers/pricing/)
44
+ - [Pricing](https://www.broadpaper.com/developers/pricing/?utm_source=npm&utm_medium=readme)
45
45
  - [Licence agreement](https://www.broadpaper.com/legal/terms/)
46
46
 
47
47
  ## Documentation
@@ -51,6 +51,8 @@ any point.
51
51
  - [Data bindings](https://www.broadpaper.com/docs/guide/bindings)
52
52
  - [Conditional content](https://www.broadpaper.com/docs/guide/conditions)
53
53
  - [Full documentation](https://www.broadpaper.com/docs/)
54
+ - [Sample application](https://github.com/codingbadger/broadpaper-sample-application): the same app in React and Angular over one .NET back end
55
+ - [How BroadPaper compares](https://www.broadpaper.com/developers/compare/?utm_source=npm&utm_medium=readme) with react-pdf, pdfmake, Puppeteer and embedded report designers
54
56
 
55
57
  ## Support
56
58
 
package/dist/index.d.ts CHANGED
@@ -318,9 +318,20 @@ interface PageContext {
318
318
  * Brand theme supplied by the host. A template references theme values via
319
319
  * tokens (`$colors.primary`) so one template renders under any brand.
320
320
  */
321
+ /**
322
+ * A font, declared once for the canvas, the designer's pickers and the PDF.
323
+ *
324
+ * Include a TrueType or OpenType file among the sources: the browser reads any
325
+ * format, but the browserless PDF engine reads only those two, and a face with
326
+ * nothing else is drawn in a standard face in the file (with a warning saying so).
327
+ */
321
328
  interface ThemeFontFace {
322
329
  family: string;
323
- /** URL(s) to the font file(s). `data:` URLs are supported for fully offline rendering. */
330
+ /**
331
+ * URL(s) to the font file(s), in order of preference, as `@font-face` lists them.
332
+ * `data:` URLs are supported for fully offline rendering. The PDF engine takes the
333
+ * first TrueType or OpenType one and skips WOFF and WOFF2.
334
+ */
324
335
  src: string | string[];
325
336
  weight?: number | string;
326
337
  style?: "normal" | "italic";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@broadpaper/core",
3
- "version": "0.3.0",
3
+ "version": "0.4.1",
4
4
  "description": "BroadPaper core: document model, expression language, theming, resolver, paginator, editor store. Framework-free.",
5
5
  "keywords": [
6
6
  "pdf",