@bygga.dev/editor 1.9.8 → 1.9.11

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
@@ -262,7 +262,7 @@ editor.brand = {
262
262
  align: 'center', level: 2, padding: 8, background: '#ffffff',
263
263
  margin: { top: 0, right: 0, bottom: 16, left: 0 } },
264
264
  text: { font: 'arial', fontSize: 16, color: '#333333', align: 'left',
265
- paragraphSpacing: 8 },
265
+ paragraphSpacing: 8, lineHeight: 1.5 },
266
266
  button: { background: '#2f2a72', textColor: '#ffffff', font: 'arial',
267
267
  fontSize: 16, bold: true, align: 'center',
268
268
  padding: { top: 12, right: 24, bottom: 12, left: 24 },
@@ -281,7 +281,8 @@ Each style can also set the block's box — `margin` and `padding` (a number or
281
281
  `{ top, right, bottom, left }`), `borderRadius` (a number, or
282
282
  `{ topLeft, topRight, bottomRight, bottomLeft }`), and `border`
283
283
  (`{ width, color?, style? }`, `style` one of `solid`, `dashed`, `dotted`) — plus
284
- `underline` for header and text, `paragraphSpacing` (`0`, `4`, `8`, `12`, `16`,
284
+ `underline` and `lineHeight` (the space between lines as a multiple of the text's
285
+ size: `1`, `1.1`, `1.2`, `1.3`, `1.4`, `1.5`, `1.6`, `1.8` or `2`) for header and text, `paragraphSpacing` (`0`, `4`, `8`, `12`, `16`,
285
286
  `20`, `24` or `32` px) for text, and `minWidth` (whole px) for a button: the narrowest
286
287
  it is drawn, which a longer label still widens. Classic Outlook for Windows ignores a
287
288
  minimum width and draws the button at its label's width.
@@ -290,7 +291,7 @@ A style is a **starting value, written into the block when it is placed** — ex
290
291
  if the author had chosen each setting by hand. Revising your Brand changes the blocks
291
292
  placed next, never the ones already in your documents, and the compiled email knows
292
293
  nothing about Brands. A header's title and a button carry their whole style from the
293
- moment they appear; a text block is placed with its alignment, background and padding,
294
+ moment they appear; a text block is placed with its alignment, spacing, background and padding,
294
295
  and the face, size, colour and weight are applied to what the author types into an
295
296
  empty paragraph (a mark needs text to sit on). The author can change any of it
296
297
  afterwards, as with any block.