gum-jsx 1.2.0 → 1.2.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 +2 -4
- package/package.json +1 -1
- package/src/gum.js +1 -1
package/README.md
CHANGED
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
|
|
11
11
|
A language for creating visualizations using a React-like JSX dialect that evaluates to SVG. Designed for general graphics, plots, graphs, and network diagrams.
|
|
12
12
|
|
|
13
|
-
Head to **[compendiumlabs.ai/gum](https://compendiumlabs.ai/gum)** for a live demo and documentation. For Python bindings, see
|
|
13
|
+
Head to **[compendiumlabs.ai/gum](https://compendiumlabs.ai/gum)** for a live demo and documentation. For Python bindings, see [gum.py](https://github.com/CompendiumLabs/gum.py).
|
|
14
14
|
|
|
15
15
|
# Installation
|
|
16
16
|
|
|
17
17
|
```bash
|
|
18
|
-
npm install gum
|
|
18
|
+
npm install gum-jsx
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
# Usage
|
|
@@ -73,6 +73,4 @@ CLI options:
|
|
|
73
73
|
| Option | Description | Default |
|
|
74
74
|
|--------|-------------|---------|
|
|
75
75
|
| `-s, --size <size>` | Image size in pixels | 500 |
|
|
76
|
-
| `-f, --format <format>` | Output format: `svg` or `png` | svg |
|
|
77
76
|
| `-t, --theme <theme>` | Theme: `light` or `dark` | light |
|
|
78
|
-
| `-b, --background <color>` | Background color | null |
|
package/package.json
CHANGED
package/src/gum.js
CHANGED
|
@@ -1000,7 +1000,7 @@ class Metadata {
|
|
|
1000
1000
|
|
|
1001
1001
|
class Svg extends Group {
|
|
1002
1002
|
constructor(args = {}) {
|
|
1003
|
-
const { children: children0, size : size0, padding = 1, bare = false, dims = true, filters = null, aspect: aspect0 = 'auto', view: view0, style = null, xmlns = C.svgns, font_family = C.sans, font_weight = C.normal,
|
|
1003
|
+
const { children: children0, size : size0 = D.size, padding = 1, bare = false, dims = true, filters = null, aspect: aspect0 = 'auto', view: view0, style = null, xmlns = C.svgns, font_family = C.sans, font_weight = C.normal, prec = D.prec, ...attr } = THEME(args, 'Svg')
|
|
1004
1004
|
const children = ensure_array(children0)
|
|
1005
1005
|
const size_base = ensure_vector(size0, 2)
|
|
1006
1006
|
|