Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
591 commits
Select commit Hold shift + click to select a range
6c2ab74
chore: rebuild application
kgryte Aug 22, 2025
8aa5514
Merge branch 'develop' of https://github.com/stdlib-js/stdlib into re…
kgryte Aug 22, 2025
c546ae9
feat: add axes title route and explicitly assign to plot `config` ins…
kgryte Aug 23, 2025
ed584a7
feat: add support for parameterized routes
kgryte Aug 23, 2025
caf1c44
feat: add support for parameterized object paths
kgryte Aug 23, 2025
8f39ff8
feat: add initial support for editing axis properties
kgryte Aug 23, 2025
277185a
chore: rebuild app
kgryte Aug 23, 2025
d3f97a9
Merge branch 'develop' of https://github.com/stdlib-js/stdlib into re…
kgryte Aug 23, 2025
8c0dbe6
chore: update copyright year
kgryte Aug 23, 2025
788e120
feat: add various axis routes
kgryte Aug 27, 2025
685fc10
Merge branch 'develop' of https://github.com/stdlib-js/stdlib into re…
kgryte Aug 27, 2025
f5ee402
Merge branch 'develop' of https://github.com/stdlib-js/stdlib into re…
kgryte Sep 2, 2025
1e92558
build: upgrade MathJax deps and add vega dev deps
kgryte Sep 5, 2025
de08725
refactor: upgrade to MathJax v4 for equation rendering
kgryte Sep 5, 2025
c4220a0
docs: update example output
kgryte Sep 5, 2025
33dac5b
test: fix failing tests and fix example
kgryte Sep 5, 2025
60af6d0
build: update dev deps
kgryte Sep 5, 2025
4308480
Merge branch 'develop' of https://github.com/stdlib-js/stdlib into re…
kgryte Sep 22, 2025
dd73005
Merge branch 'develop' of https://github.com/stdlib-js/stdlib into re…
kgryte Nov 15, 2025
0c4220e
Merge branch 'develop' of https://github.com/stdlib-js/stdlib into re…
kgryte Dec 16, 2025
a256141
feat: add support for various axis title properties
gururaj1512 Dec 31, 2025
fb8a93b
chore: add isNumber assertion in `plot/vega/axis/ctor/lib/band-position`
Sachinn-64 Mar 7, 2026
56fd065
feat: add `plot/vega/base/assert/is-discrete-scale-name`
gururaj1512 Mar 10, 2026
51281f5
feat: add `plot/vega/base/assert/is-discretizing-scale-name`
gururaj1512 Mar 10, 2026
25f0e8c
feat: add `plot/vega/scale/discrete`
gururaj1512 Mar 10, 2026
859122f
feat: add `plot/vega/base/assert/is-discrete-scale`
gururaj1512 Mar 10, 2026
7825e06
feat: add `plot/vega/scale/discretizing`
gururaj1512 Mar 10, 2026
61608b7
test: add tests for Autosize constructor and properties
gururaj1512 Mar 11, 2026
fce5d6d
test: add tests for Title constructor and properties
gururaj1512 Mar 12, 2026
5f0c937
feat: add `plot/vega/compare/orders`
gururaj1512 Mar 12, 2026
ad8b73f
feat: add `plot/vega/base/assert/is-compare-order`
gururaj1512 Mar 12, 2026
dcd3ae4
feat: add `plot/vega/signal/reference`
gururaj1512 Mar 12, 2026
ceb5cf5
fix: add missing isNumber assertion in `plot/vega/axis/ctor/lib/*-opa…
Sachinn-64 Mar 22, 2026
4621e98
test: add tests for Padding constructor and properties
Sachinn-64 Mar 22, 2026
b830dae
feat: add `plot/vega/base/assert/is-signal-name`
Sachinn-64 Mar 22, 2026
da890f3
refactor: add equality checks to `domain-raw` and `interpolate`
Sachinn-64 Apr 2, 2026
9396d79
chore: add Mathjax as dep
kgryte Apr 14, 2026
6ef0e4f
feat!: update namespace
kgryte Apr 14, 2026
0dfee08
Merge branch 'develop' of https://github.com/stdlib-js/stdlib into re…
kgryte Apr 14, 2026
1d16134
feat: stash `plot/ctor` in `plot/2d`
kgryte Apr 14, 2026
575c3cc
remove: remove plot/ctor package
kgryte Apr 14, 2026
f140625
feat: add initial skeleton of a line chart constructor
kgryte Apr 14, 2026
56770a6
fix: update require path
kgryte Apr 14, 2026
aeb14c7
chore: add FIXMEs
kgryte Apr 14, 2026
b359f80
build: update dep list
kgryte Apr 14, 2026
adbea38
chore: update copyright years
stdlib-bot Apr 14, 2026
9de4cd7
feat: add initial axis configuration
kgryte Apr 21, 2026
885ff1a
feat: add route for axis title opacity
kgryte Apr 21, 2026
9f0fade
feat: add support for axis title opacity menu
kgryte Apr 21, 2026
26b797d
refactor: remove hardcoded defaults
kgryte Apr 21, 2026
ab2bf94
refactor: remove hardcoded defaults
kgryte Apr 21, 2026
9f578f0
feat: add route and menu support for axis title font
gururaj1512 Apr 27, 2026
c7e2b1d
feat: add route and menu support for axis title color
gururaj1512 Apr 28, 2026
5eead7d
fix: update URL paths for some axis domain configurations
gururaj1512 Apr 29, 2026
f6760fe
feat: add `plot/vega/base/assert/is-font-weight`
Sachinn-64 May 3, 2026
93fbfc2
feat: add `plot/vega/base/assert/is-font-style`
Sachinn-64 May 3, 2026
fa696ef
test: add tests for Scale constructor and properties
Sachinn-64 May 3, 2026
20cbfba
fix: ensure domain updates correctly without refresh
gururaj1512 May 4, 2026
3a59551
Merge branch 'develop' of https://github.com/stdlib-js/stdlib into re…
kgryte May 4, 2026
d780b5d
Merge branch 'develop' of https://github.com/stdlib-js/stdlib into re…
kgryte May 4, 2026
9e434da
refactor: use `isFontStyle` and `isFontWeight` in title setters
Sachinn-64 May 5, 2026
c9056c3
feat: add route and menu support for axis domain properties
gururaj1512 May 5, 2026
f9c3374
feat: add `plot/vega/mark/interpolation-methods`
Sachinn-64 May 8, 2026
7185ece
feat: add `plot/vega/base/assert/is-mark-interpolation-method`
Sachinn-64 May 8, 2026
183af6c
feat: add `plot/vega/mark/area/orientations`
Sachinn-64 May 9, 2026
b7adf71
feat: add `plot/vega/base/assert/is-area-mark-orientation`
Sachinn-64 May 9, 2026
54dbe16
feat: add route and menu support for axis grid properties
gururaj1512 May 11, 2026
7391256
feat: add `plot/vega/axis/tick-styles`
gururaj1512 May 14, 2026
8f0b8a2
feat: add `plot/vega/base/assert/is-axis-tick-style`
gururaj1512 May 14, 2026
9b9dcc5
feat: add route and menu support for axis tick properties
gururaj1512 May 15, 2026
84befed
feat: add `plot/vega/mark/symbol/shapes`
Sachinn-64 May 15, 2026
3786fad
feat: add `plot/vega/base/assert/is-symbol-mark-shape`
Sachinn-64 May 15, 2026
86671ea
feat: add `plot/vega/base/assert/is-text-alignment`
Sachinn-64 May 16, 2026
30288ce
feat: add `plot/vega/legend/types`
Sachinn-64 May 17, 2026
14d4413
feat: add `plot/vega/base/assert/is-legend-type`
Sachinn-64 May 17, 2026
3c99d92
feat: add `plot/vega/legend/directions`
Sachinn-64 May 17, 2026
2bb77b4
feat: add `plot/vega/base/assert/is-legend-direction`
Sachinn-64 May 17, 2026
d5f4279
feat: add `plot/vega/legend/orientations`
Sachinn-64 May 17, 2026
3a999dd
feat: add `plot/vega/base/assert/is-legend-orientation`
Sachinn-64 May 17, 2026
275850a
test: add tests for Axis constructor and properties
Sachinn-64 May 19, 2026
d0b48c9
feat: add `plot/vega/base/format-types`
Sachinn-64 May 22, 2026
9612181
feat: add `plot/vega/base/assert/is-format-type`
Sachinn-64 May 22, 2026
8055618
feat: add `plot/vega/base/grid-alignments`
Sachinn-64 May 27, 2026
9f21770
feat: add `plot/vega/base/assert/is-grid-alignment`
Sachinn-64 May 27, 2026
4ab258b
feat: add route and menu support for axis title properties
gururaj1512 Jun 5, 2026
6ffe937
feat: add `plot/vega/field/ctor`
gururaj1512 Jun 8, 2026
c762e0f
feat: add `plot/vega/base/assert/is-field`
gururaj1512 Jun 8, 2026
fc5c89e
feat: add `plot/vega/base/assert/is-field-array`
gururaj1512 Jun 8, 2026
5d3cd6d
feat: add `plot/vega/transform/aggregate-operations`
gururaj1512 Jun 15, 2026
86098bc
feat: add `plot/vega/axis/label-overlaps`
gururaj1512 Jun 16, 2026
b2c42dd
feat: add route and menu support for axes label properties
gururaj1512 Jun 16, 2026
2458ce9
fix: update order of aggregate operations
gururaj1512 Jun 16, 2026
5c9157c
feat: add `plot/vega/base/stroke-joins`
Sachinn-64 Jun 20, 2026
999379c
feat: add `plot/vega/base/assert/is-stroke-join`
Sachinn-64 Jun 20, 2026
3d8ff56
fix: refresh specification when updating a visualization description
gururaj1512 Jun 26, 2026
97482bb
feat: add menu and route support for axis props
gururaj1512 Jun 28, 2026
7930752
Merge branch 'develop' of https://github.com/stdlib-js/stdlib into re…
kgryte Jul 9, 2026
dc0cb60
feat: add `plot/vega/value/base/ctor`
Sachinn-64 Jul 10, 2026
6e0fb04
feat: add `plot/vega/transform/label/line-anchor-positions`
Sachinn-64 Jul 17, 2026
bdd9361
feat: add `plot/vega/transform/label/anchor-directions`
Sachinn-64 Jul 17, 2026
4e0a960
feat: add `plot/vega/base/assert/is-label-transform-line-anchor-posit…
Sachinn-64 Jul 17, 2026
a7dd0cf
feat: add `plot/vega/transform/label/methods`
Sachinn-64 Jul 17, 2026
37012f1
feat: add `plot/vega/base/assert/is-label-transform-anchor-direction`
Sachinn-64 Jul 17, 2026
fb99630
feat: add `plot/vega/base/assert/is-label-transform-method`
Sachinn-64 Jul 17, 2026
eea1c45
feat: add `plot/vega/mark/data-source`
kgryte Jul 21, 2026
6b6a1be
Merge branch 'develop' of https://github.com/stdlib-js/stdlib into re…
kgryte Jul 21, 2026
ac36c73
feat: add `plot/vega/base/assert/is-mark-data-source`
kgryte Jul 21, 2026
bdbeb4c
Merge branch 'refactor/plot' of https://github.com/stdlib-js/stdlib i…
kgryte Jul 21, 2026
2a9cd01
fix: rename event name
kgryte Jul 21, 2026
2283f95
refactor!: require a data source instance
kgryte Jul 21, 2026
5b851f6
fix: update meta data
kgryte Jul 21, 2026
da4df21
feat: add `plot/vega/value/ctor`
kgryte Jul 21, 2026
a647e8e
remove: remove `plot/vega/value/base/ctor`
kgryte Jul 21, 2026
b629326
fix: add missing `properties` property and fix list of properties
kgryte Jul 21, 2026
fe8805c
feat: add `plot/vega/base/assert/is-value-reference`
kgryte Jul 21, 2026
77ed16b
feat: add `plot/vega/mark/base/encoding-set`
kgryte Jul 21, 2026
bc732ac
fix: remove unnecessary option
kgryte Jul 21, 2026
9416d75
feat: add remaining properties
kgryte Jul 21, 2026
a2c2146
feat: add `scale` support
kgryte Jul 22, 2026
a632013
refactor: add internally utility for performing brand checks
kgryte Jul 22, 2026
22c752c
feat: add `exponent` support
kgryte Jul 22, 2026
3640972
feat: add `plot/vega/mark/line/encoding-set`
kgryte Jul 22, 2026
38587b6
feat: add `plot/vega/base/assert/is-mark-encoding-set`
kgryte Jul 22, 2026
dbdb35c
feat: add `plot/vega/base/assert/is-line-mark-encoding-set`
kgryte Jul 22, 2026
e18324d
docs: fix examples
kgryte Jul 22, 2026
c492026
feat: add `plot/vega/mark/line/encoding`
kgryte Jul 22, 2026
04cb79e
feat: add `plot/vega/mark/base/encoding`
kgryte Jul 22, 2026
1a14b73
refactor: inherit from parent encoding class
kgryte Jul 22, 2026
1a69c44
refactor: defer internal property handling to parent class methods
kgryte Jul 22, 2026
0bbae1a
feat: add `plot/vega/base/assert/is-mark-encoding`
kgryte Jul 22, 2026
7a4758b
feat: add `plot/vega/base/assert/is-line-mark-encoding`
kgryte Jul 22, 2026
16f8eda
refactor!: require encoding instance
kgryte Jul 22, 2026
591ef00
fix: update error message
kgryte Jul 22, 2026
6fd4bf4
docs: reorder options and fix example
kgryte Jul 22, 2026
d69de02
feat: add `plot/vega/mark/line/ctor`
kgryte Jul 22, 2026
c802d8c
docs: update examples
kgryte Jul 22, 2026
c6cf231
refactor: create encoding instances
kgryte Jul 22, 2026
025c9a7
test: fix failing test
kgryte Jul 22, 2026
5ecaafe
refactor: remove FIXMEs
kgryte Jul 22, 2026
2829002
docs: update example
kgryte Jul 22, 2026
40dfe00
feat: add `plot/base/assert/is-line-style-array`
kgryte Jul 22, 2026
067fae9
style: disable lint rule
kgryte Jul 22, 2026
87ed2f0
feat: add support for line properties
kgryte Jul 22, 2026
25b46fe
fix: use correct property name
kgryte Jul 22, 2026
4afa53f
feat: add remaning properties to `plot/vega/value/ctor`
Sachinn-64 Jul 22, 2026
c529642
style: disable lint rule
kgryte Jul 29, 2026
41c5ca5
feat: add `plot/vega/mark/symbol/encoding-set`
Sachinn-64 Jul 29, 2026
8ab16d3
feat: add `plot/vega/base/assert/is-symbol-mark-encoding-set`
Sachinn-64 Jul 29, 2026
d2fe09d
docs: update examples
kgryte Jul 29, 2026
1646187
feat: add `plot/vega/mark/symbol/encoding`
Sachinn-64 Jul 29, 2026
19d2efc
feat: add `plot/vega/base/assert-is-symbol-mark-encoding`
Sachinn-64 Jul 29, 2026
fa10acb
feat: add `plot/vega/mark/rect/encoding-set`
Sachinn-64 Jul 29, 2026
1124778
feat: add `plot/vega/base/assert/is-rect-mark-encoding-set`
Sachinn-64 Jul 29, 2026
3105e87
feat: add `plot/vega/mark/symbol/ctor`
Sachinn-64 Jul 29, 2026
226f9c3
feat: add `plot/vega/mark/rect/encoding`
Sachinn-64 Jul 29, 2026
1964d37
feat: add `plot/vega/base/assert/is-rect-mark-encoding`
Sachinn-64 Jul 29, 2026
c17224d
feat: add `plot/vega/mark/rect/ctor`
Sachinn-64 Jul 29, 2026
045b9a8
style: disable lint rule
kgryte Jul 29, 2026
9435bd9
fix: avoid instantiating new mark instances on each render
kgryte Jul 29, 2026
2c8386d
docs: fix return annotations
Sachinn-64 Jul 30, 2026
39e84b5
feat: add `plot/vega/mark/arc/encoding-set`
Sachinn-64 Jul 30, 2026
c6c21de
feat: add `plot/vega/base/assert/is-arc-mark-encoding-set`
Sachinn-64 Jul 30, 2026
768a4ca
feat: add `plot/vega/mark/arc/encoding`
Sachinn-64 Jul 30, 2026
2f4e3d5
feat: add `plot/vega/base/assert/is-arc-mark-encoding`
Sachinn-64 Jul 30, 2026
c16b07f
feat: add `plot/vega/mark/arc/ctor`
Sachinn-64 Jul 30, 2026
6b84c12
docs: fix docs
kgryte Jul 31, 2026
faf8764
feat: add `plot/vega/mark/area/encoding-set`
Sachinn-64 Jul 31, 2026
ee40235
feat: add `plot/vega/base/assert/is-area-mark-encoding-set`
Sachinn-64 Jul 31, 2026
7431628
feat: add `plot/vega/mark/area/encoding`
Sachinn-64 Jul 31, 2026
e4ccb53
feat: add `plot/vega/base/assert/is-area-mark-encoding`
Sachinn-64 Jul 31, 2026
56e24b3
feat: add `plot/vega/mark/area/ctor`
Sachinn-64 Jul 31, 2026
716da0b
Merge branch 'develop' of https://github.com/stdlib-js/stdlib into re…
kgryte Jul 31, 2026
7af757a
feat: add `plot/vega/mark/path/encoding-set`
Sachinn-64 Aug 1, 2026
579a883
feat: add `plot/vega/base/assert/is-path-mark-encoding-set`
Sachinn-64 Aug 1, 2026
0b0d64e
feat: add `plot/vega/mark/path/encoding`
Sachinn-64 Aug 1, 2026
a772690
feat: add `plot/vega/base/assert/is-path-mark-encoding`
Sachinn-64 Aug 1, 2026
70dd801
feat: add `plot/vega/mark/path/ctor`
Sachinn-64 Aug 1, 2026
9f75e47
feat: add `plot/vega/mark/text/encoding-set`
Sachinn-64 Aug 8, 2026
e2ba9b4
feat: add `plot/vega/base/assert/is-text-mark-encoding-set`
Sachinn-64 Aug 8, 2026
ae1f2db
feat: add `plot/vega/mark/text/encoding`
Sachinn-64 Aug 8, 2026
edc2a78
feat: add `plot/vega/base/assert/is-text-mark-encoding`
Sachinn-64 Aug 8, 2026
bdcbe34
feat: add `plot/vega/mark/text/ctor`
Sachinn-64 Aug 8, 2026
a0fe154
feat: add `plot/vega/mark/image/encoding-set`
Sachinn-64 Aug 8, 2026
1a3e1e0
feat: add `plot/vega/base/assert/is-image-mark-encoding-set`
Sachinn-64 Aug 8, 2026
045d1ad
feat: add `plot/vega/mark/image/encoding`
Sachinn-64 Aug 8, 2026
4b59930
feat: add `plot/vega/base/assert/is-image-mark-encoding`
Sachinn-64 Aug 8, 2026
1ab97bb
feat: add `plot/vega/mark/image/ctor`
Sachinn-64 Aug 8, 2026
fae1e51
Merge branch 'develop' of https://github.com/stdlib-js/stdlib into re…
kgryte Aug 8, 2026
d86f5aa
feat: add `plot/vega/mark/trail/encoding-set`
Sachinn-64 Aug 9, 2026
86048a5
feat: add `plot/vega/base/assert/is-trail-mark-encoding-set`
Sachinn-64 Aug 9, 2026
c233357
feat: add `plot/vega/mark/trail/encoding`
Sachinn-64 Aug 9, 2026
58209e3
feat: add `plot/vega/base/assert/is-trail-mark-encoding`
Sachinn-64 Aug 9, 2026
674d8b8
feat: add `plot/vega/mark/trail/ctor`
Sachinn-64 Aug 9, 2026
67e1a10
feat: add `plot/vega/mark/rule/encoding-set`
Sachinn-64 Aug 9, 2026
f925efa
feat: add `plot/vega/base/assert/is-rule-mark-encoding-set`
Sachinn-64 Aug 9, 2026
680ba2c
feat: add `plot/vega/mark/rule/encoding`
Sachinn-64 Aug 9, 2026
6443dae
feat: add `plot/vega/base/assert/is-rule-mark-encoding`
Sachinn-64 Aug 9, 2026
3fbeea4
feat: add`plot/vega/mark/rule/ctor`
Sachinn-64 Aug 9, 2026
0f28652
feat: add `plot/vega/legend/ctor`
Sachinn-64 Aug 10, 2026
9ee3327
docs: update description
kgryte Aug 10, 2026
3588c40
docs: update example
kgryte Aug 10, 2026
ef0f5c7
refactor: force full refresh on patch
kgryte Aug 10, 2026
b1299ad
chore: rebuild bundle
kgryte Aug 10, 2026
a3ec861
docs: fix description
kgryte Aug 10, 2026
eb0694e
chore: add FIXME and TODO
kgryte Aug 11, 2026
9ea3b59
refactor: remove defaults for baselines and title
kgryte Aug 12, 2026
f12187d
refactor: set default values for axis properties
kgryte Aug 12, 2026
0da2efa
feat: add legend support and fix state synchronization bugs
kgryte Aug 12, 2026
9aaec2e
feat: add `plot/base/symbol-aliases`
Sachinn-64 Aug 14, 2026
bebcf40
feat: add `plot/base/symbol-shorthands`
Sachinn-64 Aug 14, 2026
1acc8dd
feat: add `plot/base/symbol2shape`
Sachinn-64 Aug 14, 2026
2a3fe97
feat: add `plot/base/symbol2alias`
Sachinn-64 Aug 14, 2026
689fa2b
feat: add `plot/base/symbols2aliases`
Sachinn-64 Aug 15, 2026
735415d
feat: add `plot/base/symbols2shapes`
Sachinn-64 Aug 15, 2026
910e5e3
feat: add `plot/base/assert/is-symbol-shorthand`
Sachinn-64 Aug 15, 2026
e3246b6
feat: add `plot/base/symbol2shorthand`
Sachinn-64 Aug 15, 2026
cce1dc3
feat: add `plot/base/symbols2shorthands`
Sachinn-64 Aug 15, 2026
74a44c1
feat: add `plot/base/assert/is-symbol-alias`
Sachinn-64 Aug 15, 2026
2fc832f
feat: add `plot/base/assert/is-symbol`
Sachinn-64 Aug 15, 2026
084a6b1
feat: add `plot/base/assert/is-symbol-array`
Sachinn-64 Aug 15, 2026
9c75f18
docs: fix description
kgryte Aug 16, 2026
189cac0
Merge branch 'refactor/plot' of https://github.com/stdlib-js/stdlib i…
kgryte Aug 16, 2026
1e99f36
refactor: svg path of dot
Sachinn-64 Aug 22, 2026
e679f8c
Merge branch 'develop' into refactor/plot
kgryte Aug 22, 2026
d447060
feat: add initial route and menu support for legend properties
gururaj1512 Sep 26, 2026
793b1e1
fix: ensure subclass properties are properly serialized
kgryte Sep 28, 2026
1992494
feat: add route and menu support for legend title properties
gururaj1512 Sep 30, 2026
126f2f1
style: add whitespace
kgryte Sep 30, 2026
a268827
Merge branch 'develop' of https://github.com/stdlib-js/stdlib into re…
kgryte Sep 30, 2026
bac4bb7
feat: add route and menu support to legend label properties
gururaj1512 Oct 29, 2026
b48a072
feat: add route and menu support to legend symbol properties
Sachinn-64 Oct 29, 2026
dd426cf
Merge branch 'develop' into refactor/plot
kgryte Oct 29, 2026
54ae0db
feat: add docs, tests, and benchmarks to `plot/charts/line/ctor`
Sachinn-64 Oct 29, 2026
5bbcc6c
fix: use correct package name
Sachinn-64 Oct 29, 2026
2fa98aa
docs: add docs and benchmarks to `plot/vega/padding/ctor`
Sachinn-64 Oct 29, 2026
71bba69
feat: add route and menu support for legend gradient properties
Sachinn-64 Oct 29, 2026
a225dd2
docs: add docs and benchmarks to `plot/vega/autosize/ctor`
Sachinn-64 Oct 30, 2026
92fb50d
docs: add docs and benchmarks to `plot/vega/title/ctor`
Sachinn-64 Oct 30, 2026
dfe7f90
feat: add route and menu support to legend layout properties
Sachinn-64 Nov 5, 2026
91d7929
docs: add docs and benchmarks to `plot/vega/axis/ctor`
Sachinn-64 Nov 6, 2026
6aeb7bd
feat: add docs and benchmarks to `plot/vega/legend/ctor`
Sachinn-64 Nov 6, 2026
5c9b718
feat: add route and menu support to legend tick and format properties
Sachinn-64 Nov 6, 2026
dca0e71
feat: add `plot/charts/scatter/ctor`
Sachinn-64 Nov 8, 2026
2546d84
Merge branch 'develop' into refactor/plot
kgryte Nov 8, 2026
dd7899b
feat: add `_tools/markdown/img-svg-figure`
gururaj1512 Nov 8, 2026
9c1d656
feat: add `_tools/remark/plugins/remark-img-figures`
gururaj1512 Nov 8, 2026
d0ef8ed
build: add recipes for processing Markdown figures
gururaj1512 Nov 8, 2026
3663dc4
feat: add `_tools/remark/plugins/remark-img-figures-src-urls`
gururaj1512 Nov 8, 2026
d530c3c
feat: add `plot/vega/base/spec2svg-file`
gururaj1512 Nov 8, 2026
ab7cfad
docs: update README and add figure generation script
gururaj1512 Nov 9, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
206 changes: 206 additions & 0 deletions lib/node_modules/@stdlib/_tools/markdown/img-svg-figure/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,206 @@
<!--

@license Apache-2.0

Copyright (c) 2026 The Stdlib Authors.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

-->

# Figure Element

> Generate an HTML string for displaying an SVG figure as an image in a GitHub Markdown file.

<!-- Section to include introductory text. Make sure to keep an empty line after the intro `section` element and another before the `/section` close. -->

<section class="intro">

</section>

<!-- /.intro -->

<!-- Package usage documentation. -->

<section class="usage">

## Usage

```javascript
var createElement = require( '@stdlib/_tools/markdown/img-svg-figure' );
```

#### createElement( \[options] )

Generates an HTML `string` for displaying an SVG figure as an image in a GitHub Markdown file.

```javascript
var html = createElement();
// returns '<div class="figure" align="center" data-figure="">\n <img src="" alt="">\n <br>\n</div>'
```

The function accepts the following `options`:

- **className**: element class name. Default: `'figure'`.
- **align**: element alignment. Default: `'center'`.
- **label**: figure label.
- **src**: image source URL.
- **alt**: alternative image text.

Each `option` corresponds an HTML attribute. For example, to set the image source URL, set the `src` option.

```javascript
var opts = {
'src': 'https://cdn.jsdelivr.net/gh/stdlib-js/stdlib@master/docs/img/fig1.svg'
};

var html = createElement( opts );
// returns '<div class="figure" align="center" data-figure="">\n <img src="https://cdn.jsdelivr.net/gh/stdlib-js/stdlib@master/docs/img/fig1.svg" alt="">\n <br>\n</div>'
```

To include a figure label in the element, set the `label` option.

```javascript
var opts = {
'label': 'fig:fig1',
'src': 'https://cdn.jsdelivr.net/gh/stdlib-js/stdlib@master/docs/img/fig1.svg'
};

var html = createElement( opts );
// returns '<div class="figure" align="center" data-figure="fig:fig1">\n <img src="https://cdn.jsdelivr.net/gh/stdlib-js/stdlib@master/docs/img/fig1.svg" alt="">\n <br>\n</div>'
```

</section>

<!-- /.usage -->

<!-- Package usage notes. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->

<section class="notes">

</section>

<!-- /.notes -->

<!-- Package usage examples. -->

<section class="examples">

## Examples

<!-- eslint no-undef: "error" -->

```javascript
var createElement = require( '@stdlib/_tools/markdown/img-svg-figure' );

var opts = {
'className': 'fig',
'align': 'center',
'label': 'fig:padding',
'src': 'https://cdn.jsdelivr.net/gh/stdlib-js/stdlib@master/lib/node_modules/@stdlib/plot/vega/padding/ctor/docs/img/figure_padding.svg',
'alt': 'A visualization showing padding margins.'
};

var html = createElement( opts );

console.log( html );
// => '<div class="fig" align="center" data-figure="fig:padding">\n <img src="https://cdn.jsdelivr.net/gh/stdlib-js/stdlib@master/lib/node_modules/@stdlib/plot/vega/padding/ctor/docs/img/figure_padding.svg" alt="A visualization showing padding margins.">\n <br>\n</div>'
```

</section>

<!-- /.examples -->

* * *

<section class="cli">

## CLI

<!-- CLI usage documentation. -->

<section class="usage">

### Usage

```text
Usage: ghimgfig [options]

Options:

-h, --help Print this message.
-V, --version Print the package version.
--class name Element class name. Default: figure.
--align alignment Element alignment. Default: center.
--label label Figure label.
--src url Image source URL.
--alt text Alternative image text.
```

</section>

<!-- /.usage -->

<!-- CLI usage notes. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->

<section class="notes">

</section>

<!-- /.notes -->

<!-- CLI usage examples. -->

<section class="examples">

### Examples

```bash
$ ghimgfig --label 'fig:fig1' --src 'https://cdn.jsdelivr.net/gh/stdlib-js/stdlib@master/docs/img/fig1.svg'
<div class="figure" align="center" data-figure="fig:fig1">
<img src="https://cdn.jsdelivr.net/gh/stdlib-js/stdlib@master/docs/img/fig1.svg" alt="">
<br>
</div>
```

</section>

<!-- /.examples -->

</section>

<!-- /.cli -->

<!-- Section to include cited references. If references are included, add a horizontal rule *before* the section. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->

<section class="references">

</section>

<!-- /.references -->

<!-- Section for related `stdlib` packages. Do not manually edit this section, as it is automatically populated. -->

<section class="related">

</section>

<!-- /.related -->

<!-- Section for all links. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->

<section class="links">

</section>

<!-- /.links -->
78 changes: 78 additions & 0 deletions lib/node_modules/@stdlib/_tools/markdown/img-svg-figure/bin/cli
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
#!/usr/bin/env node

/**
* @license Apache-2.0
*
* Copyright (c) 2026 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

'use strict';

// MODULES //

var join = require( 'path' ).join;
var readFileSync = require( '@stdlib/fs/read-file' ).sync;
var CLI = require( '@stdlib/cli/ctor' );
var createElement = require( './../lib' );


// MAIN //

/**
* Main execution sequence.
*
* @private
*/
function main() {
var flags;
var opts;
var cli;

// Create a command-line interface:
cli = new CLI({
'pkg': require( './../package.json' ),
'options': require( './../etc/cli_opts.json' ),
'help': readFileSync( join( __dirname, '..', 'docs', 'usage.txt' ), {
'encoding': 'utf8'
})
});

// Get any provided command-line options:
flags = cli.flags();
if ( flags.help || flags.version ) {
return;
}

// Extract options...
opts = {};
if ( flags[ 'class' ] ) {
opts.className = flags[ 'class' ];
}
if ( flags.align ) {
opts.align = flags.align;
}
if ( flags.label ) {
opts.label = flags.label;
}
if ( flags.src ) {
opts.src = flags.src;
}
if ( flags.alt ) {
opts.alt = flags.alt;
}
console.log( createElement( opts ) ); // eslint-disable-line no-console
}

main();
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@

Usage: ghimgfig [options]

Options:

-h, --help Print this message.
-V, --version Print the package version.
--class name Element class name. Default: figure.
--align alignment Element alignment. Default: center.
--label label Figure label.
--src url Image source URL.
--alt text Alternative image text.

Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"string": [
"class",
"align",
"label",
"src",
"alt"
],
"boolean": [
"help",
"version"
],
"alias": {
"help": [
"h"
],
"version": [
"V"
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/**
* @license Apache-2.0
*
* Copyright (c) 2026 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

'use strict';

var createElement = require( './../lib' );

var opts = {
'className': 'fig',
'align': 'center',
'label': 'fig:padding',
'src': 'https://cdn.jsdelivr.net/gh/stdlib-js/stdlib@master/lib/node_modules/@stdlib/plot/vega/padding/ctor/docs/img/figure_padding.svg',
'alt': 'A visualization showing padding margins.'
};

var html = createElement( opts );

console.log( html );
// => '<div class="fig" align="center" data-figure="fig:padding">\n <img src="https://cdn.jsdelivr.net/gh/stdlib-js/stdlib@master/lib/node_modules/@stdlib/plot/vega/padding/ctor/docs/img/figure_padding.svg" alt="A visualization showing padding margins.">\n <br>\n</div>'
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"className": "figure",
"align": "center",
"label": "",
"src": "",
"alt": ""
}
Loading
Loading