Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat!: refactor the stdlib plot API to build on top of Vega #7715

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
kgryte wants to merge 358 commits into develop
base: develop
Choose a base branch
Loading
from refactor/plot
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
358 commits
Select commit Hold shift + click to select a range
3e2dfaf
feat: add initial `plot/base/view` implementation
kgryte Jul 23, 2025
7ab078a
feat: add stubs for remaining properties
kgryte Jul 23, 2025
04656cd
feat: add `$schema` property
kgryte Jul 23, 2025
c9d2906
refactor: ensure all properties have defaults and disallow `undefined`
kgryte Jul 23, 2025
58533d5
remove: remove `plot/base/ctor`
kgryte Jul 23, 2025
1771c47
feat: add `background` support
kgryte Jul 23, 2025
c25b8e8
feat: add initial `plot/charts/base/ctor` implementation
kgryte Jul 23, 2025
1700018
refactor: add missing `break`
kgryte Jul 24, 2025
36f2970
Merge branch 'develop' of https://github.com/stdlib-js/stdlib into re...
kgryte Jul 24, 2025
06b7301
chore: update copyright years
kgryte Jul 24, 2025
30f2c11
refactor: add padding defaults and remove parent method override
kgryte Jul 24, 2025
b269d9e
feat: add initial `plot/charts/base/quantitative` implementation
kgryte Jul 24, 2025
e835bf4
feat: add initial `plot/vega/base/to-json` implementation
kgryte Jul 25, 2025
c969262
feat: add initial `plot/vega/base/transform-validation-message` imple...
kgryte Jul 25, 2025
30c6108
refactor: emit change object and use utilities
kgryte Jul 25, 2025
45dfa8e
feat: add initial `plot/vega/base/property2object` implementation
kgryte Jul 25, 2025
2f21ffb
refactor: reduce copy-paste errors by consolidating property names
kgryte Jul 25, 2025
0a2a5b3
refactor: use properties object and use utilities
kgryte Jul 25, 2025
58e419b
refactor: use properties object and use utilities
kgryte Jul 25, 2025
572f199
refactor: use properties object and use utilities
kgryte Jul 25, 2025
206f511
refactor: use properties object and use utilities
kgryte Jul 25, 2025
1d341c0
refactor: use properties object and use utilities
kgryte Jul 25, 2025
aca2d21
refactor: use property object and use utilities
kgryte Jul 25, 2025
f9a880c
Merge branch 'develop' of https://github.com/stdlib-js/stdlib into re...
kgryte Jul 25, 2025
a64de32
feat: add initial `plot/vega/log-scale` implementation
kgryte Jul 25, 2025
e7bbc62
fix: update log namespace
kgryte Jul 25, 2025
2317160
feat: add initial `plot/vega/power-scale` implementation
kgryte Jul 25, 2025
fe5959a
feat: add initial `plot/vega/sqrt-scale` implementation
kgryte Jul 25, 2025
e8fff4d
docs: update description
kgryte Jul 25, 2025
f63458d
fix: ensure correct JSON serialization
kgryte Jul 25, 2025
cb301ea
fix: ensure correct JSON serialization
kgryte Jul 25, 2025
5c7a3fc
refactor: allow non-plain objects
kgryte Jul 25, 2025
9314600
refactor: allow non-plain objects
kgryte Jul 25, 2025
dce8a0d
refactor: allow non-plain objects
kgryte Jul 25, 2025
770c58a
refactor: allow non-plain objects
kgryte Jul 25, 2025
a8e2a23
refactor: allow non-plain objects
kgryte Jul 25, 2025
13e6e8c
fix: ensure correct JSON serialization
kgryte Jul 25, 2025
2ef5e06
refactor: allow non-plain objects
kgryte Jul 25, 2025
308a175
fix: ensure correct JSON serialization
kgryte Jul 25, 2025
b4481d3
refactor: allow non-plain objects
kgryte Jul 25, 2025
003656f
refactor: allow non-plain objects
kgryte Jul 25, 2025
7085304
refactor: allow non-plain objects
kgryte Jul 25, 2025
e260ceb
docs: order options in alphabetical order
kgryte Jul 25, 2025
389e289
feat: add initial `plot/vega/symmetric-log-scale` implementation
kgryte Jul 25, 2025
4d46474
feat: add initial `plot/vega/time-scale` implementation
kgryte Jul 25, 2025
fd41f5e
docs: fix supported types
kgryte Jul 25, 2025
962a6b4
feat: add initial `plot/vega/utc-scale` implementation
kgryte Jul 25, 2025
523d6f9
Merge branch 'develop' of https://github.com/stdlib-js/stdlib into re...
kgryte Jul 25, 2025
a943492
fix: ensure private properties are always set
kgryte Jul 25, 2025
9c5c794
feat: add initial `plot/vega/scale-ctors` implementation
kgryte Jul 25, 2025
69b30dd
refactor!: require providing a default scale type and return a typed ...
kgryte Jul 25, 2025
cb1e4be
refactor!: switch argument order and always return a scale of a parti...
kgryte Jul 25, 2025
12c5472
remove: remove `plot/vega/x-quantitative-scale`
kgryte Jul 25, 2025
a65cee5
remove: remove `plot/vega/y-quantitative-scale`
kgryte Jul 25, 2025
b1b05ab
feat: add initial `plot/vega/x-linear-scale` implementation
kgryte Jul 25, 2025
b110d85
feat: add initial `plot/vega/y-linear-scale` implementation
kgryte Jul 25, 2025
e60c56e
remove: remove `plot/vega/x-scale`
kgryte Jul 25, 2025
12b7057
remove: remove `plot/vega/y-scale`
kgryte Jul 25, 2025
6cc6a72
remove: remove `plot/vega/named-quantitative-scale`
kgryte Jul 25, 2025
b4bb7cc
feat: add a `properties` property for resolving the list of component...
kgryte Jul 25, 2025
fe56d73
feat: add `plot/vega/base/assert/is-scale-name-array`
kgryte Jul 25, 2025
3c1f3f3
docs: update description
kgryte Jul 25, 2025
5992440
docs: update description
kgryte Jul 25, 2025
2a13b22
docs: update description
kgryte Jul 25, 2025
284d152
feat: add initial `plot/vega/generalized-scale` implementation
kgryte Jul 26, 2025
c775292
feat: add initial `plot/vega/x-quantitative-scale` implementation
kgryte Jul 26, 2025
07b098b
feat: add initial `plot/vega/y-quantitative-scale` implementation
kgryte Jul 26, 2025
800ccfb
fix: ensure thrown error is informative
kgryte Jul 26, 2025
a3366ad
fix: update error message
kgryte Jul 26, 2025
17cc106
feat: add initial `plot/vega/ordinal-scale` implementation
kgryte Jul 26, 2025
18a1b98
feat: add `plot/vega/scale/base/ctor`
kgryte Jul 26, 2025
8f05bf4
refactor: update require paths
kgryte Jul 26, 2025
ff9d087
remove: remove `plot/vega/scale`
kgryte Jul 26, 2025
3cf3599
feat: add `plot/vega/scale/*` packages
kgryte Jul 26, 2025
deb5e6b
refactor: update paths
kgryte Jul 26, 2025
30e2b96
remove: remove top-level scale packages in favor of `plot/vega/scale/*`
kgryte Jul 26, 2025
0c28df6
feat: add `plot/vega/scale/names`
kgryte Jul 26, 2025
1c3a300
refactor: update require paths
kgryte Jul 26, 2025
da1a158
remove: remove `plot/vega/base/scales` in favor of `plot/vega/scale/n...
kgryte Jul 26, 2025
619c628
feat: add `plot/vega/scale/base/range-defaults`
kgryte Jul 26, 2025
bfb3e8d
refactor: update paths
kgryte Jul 26, 2025
0ff2b84
remove: remove `plot/vega/base/scale-range-defaults` in favor of `plo...
kgryte Jul 26, 2025
7a5c7ab
feat: add `plot/vega/scale/base/range-interpolation-methods`
kgryte Jul 26, 2025
28527fb
refactor: update paths
kgryte Jul 26, 2025
b5d08d5
remove: remove `plot/vega/base/scale-range-interpolation-methods` in ...
kgryte Jul 26, 2025
d89ac19
feat: add `plot/vega/axis/ctor`
kgryte Jul 26, 2025
0863784
refactor: update paths
kgryte Jul 26, 2025
f1631cd
remove: remove `plot/vega/axis` in favor of `plot/vega/axis/ctor`
kgryte Jul 26, 2025
a77bc21
feat: add `plot/vega/axis/orientations`
kgryte Jul 26, 2025
b9d7ef6
refactor: update paths
kgryte Jul 26, 2025
8439c13
remove: remove `plot/vega/base/axis-orientations` in favor of `plot/v...
kgryte Jul 26, 2025
a454a56
feat: add `plot/vega/axis/x-orientations`
kgryte Jul 26, 2025
c3e608e
refactor: update paths
kgryte Jul 26, 2025
3222be8
remove: remove `plot/vega/base/x-axis-orientations` in favor of `plot...
kgryte Jul 26, 2025
7e4a6b8
feat: add `plot/vega/axis/y-orientations`
kgryte Jul 26, 2025
54c75a3
refactor: update paths
kgryte Jul 26, 2025
dee68ab
remove: remove `plot/vega/base/y-axis-orientations` in favor of `plot...
kgryte Jul 26, 2025
6f5aabe
feat: add `plot/vega/builder`
kgryte Jul 26, 2025
345d63c
refactor: update require path
kgryte Jul 26, 2025
43f7f03
remove: remove `plot/vega/visualization` in favor of `plot/vega/builder`
kgryte Jul 26, 2025
47d9e43
feat: add `plot/vega/autosize/ctor`
kgryte Jul 26, 2025
aa662ab
refactor: update paths
kgryte Jul 26, 2025
60ed1d6
refactor: update paths
kgryte Jul 26, 2025
f24eb0b
remove: remove `plot/vega/autosize` in favor of `plot/vega/autosize/c...
kgryte Jul 26, 2025
01e9565
feat: add `plot/vega/autosize/methods`
kgryte Jul 26, 2025
05de4a0
refactor: update paths and variable names
kgryte Jul 26, 2025
fe12167
remove: remove `plot/vega/base/autosize-size` in favor of `plot/vega/...
kgryte Jul 26, 2025
56800a0
feat: add `plot/vega/base/assert/is-autosize-method`
kgryte Jul 26, 2025
efc6d67
refactor: update paths
kgryte Jul 26, 2025
81bc529
remove: remove `plot/vega/base/assert/is-autosize-type` in favor of `...
kgryte Jul 26, 2025
0a3af3d
feat: add `plot/vega/title/ctor`
kgryte Jul 26, 2025
32444c5
refactor: update paths
kgryte Jul 26, 2025
2f2342b
remove: remove `plot/vega/title` in favor of `plot/vega/title/ctor`
kgryte Jul 26, 2025
66ec691
feat: add `plot/vega/title/orientations`
kgryte Jul 26, 2025
47a2621
refactor: update paths
kgryte Jul 26, 2025
2d3bb17
remove: remove `plot/vega/base/title-orientations` in favor of `plot/...
kgryte Jul 26, 2025
255b793
Merge branch 'develop' of https://github.com/stdlib-js/stdlib into re...
kgryte Jul 26, 2025
104d03d
feat: add `plot/vega/padding/ctor`
kgryte Jul 26, 2025
c0399a0
refactor: update paths
kgryte Jul 26, 2025
aeb9b54
remove: remove `plot/vega/padding` in favor of `plot/vega/padding/ctor`
kgryte Jul 26, 2025
99c6d7d
refactor: update logging namespace
kgryte Jul 26, 2025
69df71a
feat: add initial `plot/vega/trigger` implementation
kgryte Jul 28, 2025
cd2d5be
fix: add missing `index.js` file
kgryte Jul 28, 2025
ba9a3e8
Merge branch 'develop' of https://github.com/stdlib-js/stdlib into re...
kgryte Jul 28, 2025
bcb6f23
feat: add `plot/vega/base/assert/is-trigger`
kgryte Jul 28, 2025
acbb3cb
feat: add `plot/vega/base/assert/is-trigger-array`
kgryte Jul 28, 2025
b1e2f0a
feat: add initial `plot/vega/data/base/ctor` implementation
kgryte Jul 28, 2025
1dab157
feat: add initial `plot/vega/data/values` implementation
kgryte Jul 28, 2025
b6b39d7
refactor: use utility
kgryte Jul 28, 2025
db0d9ec
Merge branch 'develop' of https://github.com/stdlib-js/stdlib into re...
kgryte Jul 28, 2025
4998263
fix: add missing `toJSON` method
kgryte Jul 28, 2025
23d0eda
fix: avoid explicit serialization of inlined values
kgryte Jul 28, 2025
f220119
feat: add initial `plot/vega/data/tidy/from-array` implementation
kgryte Jul 28, 2025
4974627
Merge branch 'develop' of https://github.com/stdlib-js/stdlib into re...
kgryte Jul 28, 2025
9ceb3c1
docs: update description
kgryte Jul 28, 2025
e3d18a5
feat: add initial `plot/vega/data/tidy/from-nested-array` implementation
kgryte Jul 28, 2025
8359111
Merge branch 'develop' of https://github.com/stdlib-js/stdlib into re...
kgryte Jul 29, 2025
5fef203
feat: add initial `plot/vega/tidy/from-arrays` implementation
kgryte Jul 29, 2025
72d2f44
feat: add initial `plot/vega/tidy/from-object-array` implementation
kgryte Jul 29, 2025
c4bc0f3
Merge branch 'develop' of https://github.com/stdlib-js/stdlib into re...
kgryte Jul 29, 2025
44db454
feat: add initial `plot/vega/data/tidy/from-vectors` implementation
kgryte Jul 29, 2025
2a866dc
feat: add initial `plot/vega/data/type/from-vector` implementation
kgryte Jul 29, 2025
4c02999
refactor: allow the `mapping` argument to be optional
kgryte Jul 29, 2025
3279352
feat: add initial `plot/vega/data/tidy/split-on-key` implementation
kgryte Jul 29, 2025
8d39305
refactor!: update to accept a `DataSet` rather than an array of objects
kgryte Jul 29, 2025
3c4fc87
feat: add initial `plot/vega/data/tidy/from-matrix-columns` implement...
kgryte Jul 29, 2025
a81936f
chore: add TODOs
kgryte Jul 29, 2025
f4f234f
feat: add initial `plot/vega/data/tidy/from-nested-arrays` implementa...
kgryte Jul 29, 2025
b2ec9b1
feat: add initial `plot/vega/data/tidy/from-object-arrays` implementa...
kgryte Jul 29, 2025
6e4efd4
feat: add initial `plot/vega/data/tidy/from-paired-arrays` implementa...
kgryte Jul 29, 2025
8c4e426
feat: add initial `plot/vega/data/tidy/from-paired-vectors` implement...
kgryte Jul 29, 2025
c453a88
feat: add initial `plot/vega/data/tidy/from-paired-matrix-columns` im...
kgryte Jul 29, 2025
83511dc
feat: add initial `plot/vega/data/tidy/from-xy-arguments` implementation
kgryte Jul 31, 2025
c86bbc5
refactor: update argument handling and add support for `labels`
kgryte Jul 31, 2025
913e3b7
docs: update data types
kgryte Jul 31, 2025
908b7df
feat: add `plot/vega/base/assert/is-dataset`
kgryte Aug 1, 2025
1d10ed4
feat: add `plot/vega/base/assert/is-dataset-array`
kgryte Aug 1, 2025
6bc24cc
feat: add support for getting and setting data and add shorthand prop...
kgryte Aug 1, 2025
d4a0d8b
Merge branch 'develop' of https://github.com/stdlib-js/stdlib into re...
kgryte Aug 1, 2025
30d9761
feat: add `plot/vega/mark/names`
kgryte Aug 2, 2025
2eaa0e3
feat: add `plot/vega/base/assert/is-mark-name`
kgryte Aug 2, 2025
d49c1c2
feat: add initial `plot/vega/mark/base/ctor` implementation
kgryte Aug 2, 2025
ea207e3
feat: add `plot/vega/base/assert/is-mark`
kgryte Aug 2, 2025
45384f5
feat: add `plot/vega/base/assert/is-mark-array`
kgryte Aug 2, 2025
4134161
docs: update type
kgryte Aug 2, 2025
ca13113
refactor: test for an array of marks and enable event listening
kgryte Aug 2, 2025
5cef2e1
Merge branch 'develop' of https://github.com/stdlib-js/stdlib into re...
kgryte Aug 2, 2025
e12300c
feat: add initial support for `from` property
kgryte Aug 2, 2025
0ffe385
Merge branch 'develop' of https://github.com/stdlib-js/stdlib into re...
kgryte Aug 11, 2025
579ee4b
feat: add support for various label properties
kgryte Aug 11, 2025
e966d85
feat: add `maxExtent`, `minExtent`, `offset`, and `position` property...
kgryte Aug 12, 2025
8841cb4
feat: add various tick properties
kgryte Aug 12, 2025
397fd40
Merge branch 'develop' of https://github.com/stdlib-js/stdlib into re...
kgryte Aug 12, 2025
49c50e1
docs: fix type
kgryte Aug 12, 2025
84b8a1a
feat: add z-index support
kgryte Aug 12, 2025
aff47d3
fix: remove default for label baseline
kgryte Aug 12, 2025
2bdec56
feat: add support for remaining tick properties
kgryte Aug 13, 2025
0b8305f
Merge branch 'develop' of https://github.com/stdlib-js/stdlib into re...
kgryte Aug 13, 2025
fe08c2f
feat: add `format` support
kgryte Aug 13, 2025
26ac82c
feat: add support for `formatType` property
kgryte Aug 13, 2025
dda48ee
fix: remove default for `tickBand` to avoid globbering other settings
kgryte Aug 13, 2025
41eed21
docs: fix example
kgryte Aug 13, 2025
f3c67e0
feat: add support for various axis title properties
kgryte Aug 14, 2025
4cbf306
Merge branch 'develop' of https://github.com/stdlib-js/stdlib into re...
kgryte Aug 14, 2025
61aa43f
Merge branch 'develop' of https://github.com/stdlib-js/stdlib into re...
kgryte Aug 15, 2025
cf0ec80
refactor: remove obsolete style sheets
kgryte Aug 16, 2025
b3ec351
Merge branch 'develop' of https://github.com/stdlib-js/stdlib into re...
kgryte Aug 16, 2025
b20d000
Merge branch 'develop' of https://github.com/stdlib-js/stdlib into re...
kgryte Aug 16, 2025
927a38f
feat: add initial `plot/base/server` implementation
kgryte Aug 16, 2025
cb5a4b3
refactor: use `plot/base/server` for serving content
kgryte Aug 16, 2025
ec8ea6a
refactor: disallow HTTP/1 requests
kgryte Aug 16, 2025
3d62c92
refactor: remove obsolete expression
kgryte Aug 16, 2025
96abca0
refactor: move variable to parent scope
kgryte Aug 16, 2025
835fd90
refactor: move variables to parent scope and clean-up
kgryte Aug 16, 2025
15566b5
fix: update option handling
kgryte Aug 18, 2025
1877a42
feat: add `server` property
kgryte Aug 18, 2025
225c5a8
refactor: add server implementation and add WIP Electron refactor
kgryte Aug 18, 2025
e6f8305
chore: add vendored files
kgryte Aug 18, 2025
1f46fb3
Merge branch 'develop' of https://github.com/stdlib-js/stdlib into re...
kgryte Aug 18, 2025
992eada
fix: perform deep equality comparison to avoid false positive change ...
kgryte Aug 18, 2025
1411219
fix: set correct property
kgryte Aug 18, 2025
5a7d8b8
fix: ensure change listeners are bound to default objects
kgryte Aug 18, 2025
d9baf7d
refactor: use correct property paths
kgryte Aug 18, 2025
b4e6935
refactor: fix slow rendering bug and create context class
kgryte Aug 18, 2025
18009fe
fix: re-emit event object
kgryte Aug 19, 2025
d59fddd
refactor: add editor support with eager updates
kgryte Aug 19, 2025
3b5a248
refactor: reduce code duplication and add transforms
kgryte Aug 19, 2025
9e7d67a
Merge branch 'develop' of https://github.com/stdlib-js/stdlib into re...
kgryte Aug 20, 2025
d0815dd
feat: add `plot/vega/base/assert/is-signal-reference`
kgryte Aug 20, 2025
e5e28ab
refactor: replace single script with app bundle
kgryte Aug 21, 2025
ad1dbd5
build: add script for generating a bundle
kgryte Aug 21, 2025
e80a401
refactor: rename `/spec` endpoint to `/schema` to ensure consistent t...
kgryte Aug 21, 2025
e6384ba
refactor: add app source files
kgryte Aug 21, 2025
50be430
Merge branch 'develop' of https://github.com/stdlib-js/stdlib into re...
kgryte Aug 21, 2025
76ffdc1
feat: add title routes
kgryte Aug 21, 2025
eacbd41
fix: update route path
kgryte Aug 21, 2025
a7d29aa
docs: fix descriptions
kgryte Aug 22, 2025
3922891
refactor: set title defaults
kgryte Aug 22, 2025
18b0ec4
chore: fix function name
kgryte Aug 22, 2025
df1b489
feat: add `plot/vega/base/text-alignments`
kgryte Aug 22, 2025
21eaa1c
feat: add `plot/vega/base/font-styles`
kgryte Aug 22, 2025
cf34296
feat: add `plot/vega/base/font-weights`
kgryte Aug 22, 2025
229ce23
feat: add initial editor config implementations
kgryte Aug 22, 2025
9124ac5
feat: add initial implementation of `plot/vega/editor-config/visualiz...
kgryte Aug 22, 2025
b843de3
refactor: add steps
kgryte Aug 22, 2025
506c685
refactor: add steps
kgryte Aug 22, 2025
6c4b388
docs: update comments
kgryte Aug 22, 2025
b4c0d10
refactor: use editor configurations
kgryte Aug 22, 2025
0dca888
fix: add missing units
kgryte Aug 22, 2025
cec4834
fix: ensure correct default value resolution
kgryte Aug 22, 2025
307fa00
feat: add initial `plot/vega/editor-config/background` implementation
kgryte Aug 22, 2025
746dfc0
fix: special case `background` in order to account for empty string a...
kgryte Aug 22, 2025
76e7eb8
refactor: split transforms into separate files, thus mirroring editor...
kgryte Aug 22, 2025
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
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
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
* var opts = {
* 'className': 'equation',
* 'align': 'center',
* 'raw': '\\operatorname{erf}(x) = \\frac{2}{\\sqrt\\pi}\\int_0^x e^{-t^2}\,円\\mathrm dt'
* 'raw': '\\operatorname{erf}(x) = \\frac{2}{\\sqrt\\pi}\\int_0^x e^{-t^2}\,円\\mathrm dt',

Check warning on line 51 in lib/node_modules/@stdlib/_tools/markdown/inline-svg-equation/lib/main.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Unknown word: "mathrm"
* 'label': 'eqn:erf'
* };
* createElement( opts, done );
Expand Down
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -1,21 +1,3 @@
<div class="equation" align="center" data-raw-text="y = mx + b" data-equation="eq:line">
<svg xmlns:xlink="http://www.w3.org/1999/xlink" width="11.462ex" height="2.509ex" style="vertical-align: -0.671ex;" viewBox="0 -791.3 4935 1080.4" role="img" focusable="false" xmlns="http://www.w3.org/2000/svg" aria-labelledby="MathJax-SVG-1-Title">
<title id="MathJax-SVG-1-Title">y equals m x plus b</title>
<defs aria-hidden="true">
<path stroke-width="1" id="E1-MJMATHI-79" d="M21 287Q21 301 36 335T84 406T158 442Q199 442 224 419T250 355Q248 336 247 334Q247 331 231 288T198 191T182 105Q182 62 196 45T238 27Q261 27 281 38T312 61T339 94Q339 95 344 114T358 173T377 247Q415 397 419 404Q432 431 462 431Q475 431 483 424T494 412T496 403Q496 390 447 193T391 -23Q363 -106 294 -155T156 -205Q111 -205 77 -183T43 -117Q43 -95 50 -80T69 -58T89 -48T106 -45Q150 -45 150 -87Q150 -107 138 -122T115 -142T102 -147L99 -148Q101 -153 118 -160T152 -167H160Q177 -167 186 -165Q219 -156 247 -127T290 -65T313 -9T321 21L315 17Q309 13 296 6T270 -6Q250 -11 231 -11Q185 -11 150 11T104 82Q103 89 103 113Q103 170 138 262T173 379Q173 380 173 381Q173 390 173 393T169 400T158 404H154Q131 404 112 385T82 344T65 302T57 280Q55 278 41 278H27Q21 284 21 287Z"></path>
<path stroke-width="1" id="E1-MJMAIN-3D" d="M56 347Q56 360 70 367H707Q722 359 722 347Q722 336 708 328L390 327H72Q56 332 56 347ZM56 153Q56 168 72 173H708Q722 163 722 153Q722 140 707 133H70Q56 140 56 153Z"></path>
<path stroke-width="1" id="E1-MJMATHI-6D" d="M21 287Q22 293 24 303T36 341T56 388T88 425T132 442T175 435T205 417T221 395T229 376L231 369Q231 367 232 367L243 378Q303 442 384 442Q401 442 415 440T441 433T460 423T475 411T485 398T493 385T497 373T500 364T502 357L510 367Q573 442 659 442Q713 442 746 415T780 336Q780 285 742 178T704 50Q705 36 709 31T724 26Q752 26 776 56T815 138Q818 149 821 151T837 153Q857 153 857 145Q857 144 853 130Q845 101 831 73T785 17T716 -10Q669 -10 648 17T627 73Q627 92 663 193T700 345Q700 404 656 404H651Q565 404 506 303L499 291L466 157Q433 26 428 16Q415 -11 385 -11Q372 -11 364 -4T353 8T350 18Q350 29 384 161L420 307Q423 322 423 345Q423 404 379 404H374Q288 404 229 303L222 291L189 157Q156 26 151 16Q138 -11 108 -11Q95 -11 87 -5T76 7T74 17Q74 30 112 181Q151 335 151 342Q154 357 154 369Q154 405 129 405Q107 405 92 377T69 316T57 280Q55 278 41 278H27Q21 284 21 287Z"></path>
<path stroke-width="1" id="E1-MJMATHI-78" d="M52 289Q59 331 106 386T222 442Q257 442 286 424T329 379Q371 442 430 442Q467 442 494 420T522 361Q522 332 508 314T481 292T458 288Q439 288 427 299T415 328Q415 374 465 391Q454 404 425 404Q412 404 406 402Q368 386 350 336Q290 115 290 78Q290 50 306 38T341 26Q378 26 414 59T463 140Q466 150 469 151T485 153H489Q504 153 504 145Q504 144 502 134Q486 77 440 33T333 -11Q263 -11 227 52Q186 -10 133 -10H127Q78 -10 57 16T35 71Q35 103 54 123T99 143Q142 143 142 101Q142 81 130 66T107 46T94 41L91 40Q91 39 97 36T113 29T132 26Q168 26 194 71Q203 87 217 139T245 247T261 313Q266 340 266 352Q266 380 251 392T217 404Q177 404 142 372T93 290Q91 281 88 280T72 278H58Q52 284 52 289Z"></path>
<path stroke-width="1" id="E1-MJMAIN-2B" d="M56 237T56 250T70 270H369V420L370 570Q380 583 389 583Q402 583 409 568V270H707Q722 262 722 250T707 230H409V-68Q401 -82 391 -82H389H387Q375 -82 369 -68V230H70Q56 237 56 250Z"></path>
<path stroke-width="1" id="E1-MJMATHI-62" d="M73 647Q73 657 77 670T89 683Q90 683 161 688T234 694Q246 694 246 685T212 542Q204 508 195 472T180 418L176 399Q176 396 182 402Q231 442 283 442Q345 442 383 396T422 280Q422 169 343 79T173 -11Q123 -11 82 27T40 150V159Q40 180 48 217T97 414Q147 611 147 623T109 637Q104 637 101 637H96Q86 637 83 637T76 640T73 647ZM336 325V331Q336 405 275 405Q258 405 240 397T207 376T181 352T163 330L157 322L136 236Q114 150 114 114Q114 66 138 42Q154 26 178 26Q211 26 245 58Q270 81 285 114T318 219Q336 291 336 325Z"></path>
</defs>
<g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)" aria-hidden="true">
<use xlink:href="#E1-MJMATHI-79" x="0" y="0"></use>
<use xlink:href="#E1-MJMAIN-3D" x="775" y="0"></use>
<use xlink:href="#E1-MJMATHI-6D" x="1831" y="0"></use>
<use xlink:href="#E1-MJMATHI-78" x="2710" y="0"></use>
<use xlink:href="#E1-MJMAIN-2B" x="3504" y="0"></use>
<use xlink:href="#E1-MJMATHI-62" x="4505" y="0"></use>
</g>
</svg>
<svg style="vertical-align: -0.464ex;" xmlns="http://www.w3.org/2000/svg" width="11.143ex" height="2.034ex" role="img" focusable="false" viewBox="0 -694 4925 899" xmlns:xlink="http://www.w3.org/1999/xlink" aria-label="y equals m x plus b"><defs><path id="MJX-1-NCM-I-1D466" d="M163 442C118 442 83 417 58 367C39 328 29 301 29 286C29 277 34 272 45 272C59 272 60 278 64 293C87 372 119 412 160 412C173 412 180 403 180 385C180 369 175 346 164 317C126 214 107 145 107 108C107 32 154-13 231-13C264-13 295-1 323 23C288-109 233-175 158-175C124-175 101-164 89-142C129-140 149-121 149-85C149-60 136-47 109-47C72-47 50-78 50-115C50-170 100-205 158-205C273-205 367-99 392-1L486 377C489 388 490 396 490 401C490 421 479 431 458 431C442 431 429 423 420 408C414 387 409 369 406 354L342 97C332 61 279 16 234 16C196 16 177 41 177 92C177 134 194 198 227 284C240 319 247 343 247 357C247 406 212 442 163 442Z"/><path id="MJX-1-NCM-N-3D" d="M698 367L80 367C64 367 56 359 56 344C56 329 64 321 80 321L698 321C714 321 722 329 722 344C722 356 711 367 698 367M698 179L80 179C64 179 56 171 56 156C56 141 64 133 80 133L698 133C714 133 722 141 722 156C722 169 711 179 698 179Z"/><path id="MJX-1-NCM-I-1D45A" d="M657 442C596 442 543 412 498 353C489 412 451 442 383 442C324 442 273 416 231 363C223 407 188 442 137 442C96 442 66 409 45 344C34 312 29 293 29 287C29 278 34 273 45 273C50 273 53 274 56 276C61 285 64 292 66 299C84 375 107 413 134 413C152 413 161 399 161 371C161 358 156 331 145 290L88 63C84 51 79 25 79 19C79-1 90-11 111-11C131-11 145-1 152 19C153 24 160 49 171 92L192 181L222 295C233 318 250 341 272 365C301 397 337 413 380 413C413 413 429 391 429 348C429 335 424 308 414 267L387 153C380 124 364 64 356 32C355 25 354 21 354 19C354-1 365-11 387-11C398-11 406-8 413-1C428 14 429 21 435 48L494 285C497 298 511 321 535 353C565 393 605 413 654 413C687 413 703 391 703 348C703 309 683 236 642 129C633 106 629 87 629 74C629 25 666-11 714-11C759-11 793 14 818 64C838 104 848 131 848 144C848 153 843 158 832 158C825 157 818 148 813 137C791 58 759 18 716 18C703 18 696 28 696 47C696 62 702 84 714 115C755 222 775 295 775 333C775 404 728 442 657 442Z"/><path id="MJX-1-NCM-I-1D465" d="M527 373C527 419 482 442 432 442C389 442 355 419 329 373C308 419 273 442 222 442C173 442 133 419 101 374C74 335 60 306 60 287C60 278 65 273 75 273C84 273 90 278 92 287C111 345 153 413 220 413C253 413 269 392 269 351C269 330 251 252 216 118C199 51 169 18 126 18C112 18 99 21 88 26C114 36 127 54 127 80C127 106 114 119 87 119C54 119 29 91 29 58C29 12 76-11 125-11C167-11 201 12 228 58C247 12 283-11 335-11C383-11 423 12 455 57C482 96 496 125 496 144C496 153 491 158 481 158C472 158 467 153 464 144C447 87 402 18 337 18C304 18 287 38 287 79C287 92 292 120 303 165L337 300C356 375 387 413 431 413C445 413 458 410 469 405C442 396 429 378 429 351C429 325 443 312 470 312C502 312 527 341 527 373Z"/><path id="MJX-1-NCM-N-2B" d="M698 274L413 274L413 559C413 575 405 583 389 583C373 583 365 575 365 559L365 274L80 274C64 274 56 266 56 250C56 234 64 226 80 226L365 226L365-59C365-75 373-83 389-83C405-83 413-75 413-59L413 226L698 226C714 226 722 234 722 250C722 263 711 274 698 274Z"/><path id="MJX-1-NCM-I-1D44F" d="M281 445C245 445 209 428 174 394L243 679C241 688 238 694 226 694C193 694 120 685 107 684C92 682 84 675 84 660C84 650 93 645 112 645C131 645 157 646 157 632C157 628 152 608 143 571L63 249C52 207 47 173 47 148C47 62 93-11 175-11C240-11 297 22 347 89C392 151 415 216 415 283C415 370 364 445 281 445M279 415C318 415 337 385 337 326C337 299 331 263 319 218C297 133 268 75 233 44C213 27 194 19 175 19C134 19 114 51 114 115C114 137 119 170 129 214L151 304C154 319 159 330 165 338C204 389 242 415 279 415Z"/></defs><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="scale(1,-1)"><g><g><use xlink:href="#MJX-1-NCM-I-1D466"/></g><g transform="translate(767.8,0)"><use xlink:href="#MJX-1-NCM-N-3D"/></g><g transform="translate(1823.6,0)"><use xlink:href="#MJX-1-NCM-I-1D45A"/></g><g transform="translate(2701.6,0)"><use xlink:href="#MJX-1-NCM-I-1D465"/></g><g transform="translate(3495.8,0)"><use xlink:href="#MJX-1-NCM-N-2B"/></g><g transform="translate(4496,0)"><use xlink:href="#MJX-1-NCM-I-1D44F"/></g></g></g></svg>
</div>
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ tape( 'the function returns an HTML string for inlining an SVG equation in Markd
});

tape( 'if not provided an option, the function will set a corresponding HTML attribute to either a default value (if one exists) or an empty string', function test( t ) {
var expected = '<div class="equation" align="center" data-raw-text="" data-equation="">\n <svg xmlns:xlink="http://www.w3.org/1999/xlink" width="0" height="0.343ex" style="vertical-align: -0.171ex;" viewBox="0 -73.8 0 147.5" role="img" focusable="false" xmlns="http://www.w3.org/2000/svg" aria-labelledby="MathJax-SVG-1-Title">\n<title id="MathJax-SVG-1-Title"></title>\n<defs aria-hidden="true"></defs>\n<g stroke="currentColor" fill="currentColor" stroke-width="0" transform="matrix(1 0 0 -1 0 0)" aria-hidden="true"></g>\n</svg>\n</div>';
var expected = '<div class="equation" align="center" data-raw-text="" data-equation="">\n <svg style="vertical-align: 0;" xmlns="http://www.w3.org/2000/svg" width="0.036ex" height="0.036ex" role="img" focusable="false" viewBox="0 0 16 16" xmlns:xlink="http://www.w3.org/1999/xlink" aria-label=""><defs/><g stroke="currentColor" fill="currentColor" stroke-width="0" transform="scale(1,-1)"><g/></g></svg>\n</div>';

createElement( done );

Expand Down
Loading
Loading

AltStyle によって変換されたページ (->オリジナル) /