1 |
|
2 | /** The style module contains regular expressions and functions for parsing and composing style strings.
|
3 | * [Style string definition](https://tools.ietf.org/id/draft-slevinski-formal-signwriting-09.html#name-styling-string)
|
4 | * @module style
|
5 | */
|
6 |
|
7 | /**
|
8 | * The elements of a style string
|
9 | * @typedef {object} StyleObject
|
10 | * @property {boolean} colorize - boolean to use standardized colors for symbol groups
|
11 | * @property {number} padding - integer value for padding around symbol or sign
|
12 | * @property {string} background - css name or hex color for background
|
13 | * @property {array} detail - array for css name or hex color for line and optional fill
|
14 | * @property {number} zoom - decimal value for zoom level
|
15 | * @property {object[]} detailsym - custom colors for individual symbols
|
16 | * @property {number} detailsym.index - symbol index in sign box
|
17 | * @property {array} detailsym.detail - array for css name or hex color for line and optional fill
|
18 | * @property {string} classes - list of class names separated with spaces used for SVG
|
19 | * @property {string} id - id name used for SVG
|
20 | */
|
21 |
|
22 | import { re } from './style-re';
|
23 | import { parse } from './style-parse';
|
24 | import { compose } from './style-compose';
|
25 |
|
26 | export { re, parse, compose }
|