math-notation 0.1.0
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/LICENSE +21 -0
- package/README.md +158 -0
- package/dist/CurlyBraceListOption.svg +3 -0
- package/dist/formulize.cjs.js +24587 -0
- package/dist/formulize.cjs.js.map +1 -0
- package/dist/formulize.es.js +24569 -0
- package/dist/formulize.es.js.map +1 -0
- package/dist/formulize.svg +9 -0
- package/dist/formulize.umd.js +24582 -0
- package/dist/formulize.umd.js.map +1 -0
- package/dist/mass.svg +25 -0
- package/dist/show-expression-border.svg +15 -0
- package/dist/show-expression-shadow.svg +4 -0
- package/dist/show-formula-border.svg +15 -0
- package/dist/show-formula-shadow.svg +4 -0
- package/dist/show-label-border.svg +15 -0
- package/dist/show-label-shadow.svg +4 -0
- package/dist/show-step-border.svg +15 -0
- package/dist/show-step-shadow.svg +4 -0
- package/dist/show-var-border.svg +15 -0
- package/dist/show-var-shadow.svg +4 -0
- package/dist/style.css +3000 -0
- package/dist/types/index.d.ts +1764 -0
- package/dist/velocity.svg +30 -0
- package/package.json +156 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
+
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
|
|
3
|
+
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
4
|
+
<svg height="800px" width="800px" version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
5
|
+
viewBox="0 0 305 305" xml:space="preserve">
|
|
6
|
+
<g>
|
|
7
|
+
<path style="fill:#222220;" d="M305,173.726c0-41.662-16.799-79.469-43.972-107.02c-0.212-0.282-0.438-0.558-0.695-0.815
|
|
8
|
+
c-0.257-0.257-0.532-0.483-0.814-0.694C231.968,38.024,194.161,21.226,152.5,21.226c-41.661,0-79.468,16.799-107.02,43.971
|
|
9
|
+
c-0.282,0.212-0.557,0.438-0.814,0.694c-0.257,0.257-0.483,0.532-0.695,0.815C16.799,94.257,0,132.064,0,173.726
|
|
10
|
+
c0,40.729,15.859,79.018,44.655,107.821c0.004,0.004,0.008,0.009,0.012,0.013c0.003,0.002,0.005,0.005,0.008,0.007
|
|
11
|
+
c0.004,0.004,0.008,0.008,0.012,0.012c1.464,1.464,3.383,2.195,5.302,2.195c1.92,0,3.84-0.732,5.304-2.197
|
|
12
|
+
c0.125-0.125,0.238-0.258,0.352-0.39l23.112-23.113c2.929-2.93,2.929-7.678,0-10.607c-2.929-2.928-7.678-2.928-10.606,0
|
|
13
|
+
l-18.036,18.036c-21.031-23.403-33.232-52.857-34.91-84.277h25.507c4.142,0,7.5-3.357,7.5-7.5s-3.358-7.5-7.5-7.5H15.207
|
|
14
|
+
c1.744-32.272,14.668-61.618,34.957-84.229l17.987,17.987c1.464,1.464,3.384,2.196,5.303,2.196c1.919,0,3.839-0.732,5.303-2.196
|
|
15
|
+
c2.929-2.93,2.929-7.678,0-10.607L60.771,71.389C83.383,51.1,112.728,38.176,145,36.433v25.506c0,4.143,3.358,7.5,7.5,7.5
|
|
16
|
+
s7.5-3.357,7.5-7.5V36.433c32.272,1.743,61.617,14.668,84.229,34.957l-17.987,17.987c-2.929,2.93-2.929,7.678,0,10.607
|
|
17
|
+
c1.464,1.464,3.384,2.196,5.303,2.196s3.839-0.732,5.303-2.196l17.987-17.987c20.289,22.612,33.214,51.957,34.957,84.229h-25.506
|
|
18
|
+
c-4.142,0-7.5,3.357-7.5,7.5s3.358,7.5,7.5,7.5h25.507c-1.678,31.42-13.878,60.875-34.909,84.278l-18.036-18.037
|
|
19
|
+
c-2.928-2.928-7.677-2.928-10.606,0c-2.929,2.93-2.929,7.678,0,10.607l23.485,23.485c1.464,1.464,3.384,2.196,5.303,2.196
|
|
20
|
+
c0.959,0,1.919-0.183,2.822-0.549c0.903-0.366,1.749-0.915,2.482-1.647C289.137,252.755,305,214.459,305,173.726z"/>
|
|
21
|
+
<path style="fill:#222220;" d="M186.956,87.718c-3.847-1.541-8.211,0.327-9.751,4.173l-21.673,54.1
|
|
22
|
+
c-1.01-0.108-2.02-0.182-3.031-0.182c-10.556,0-20.091,5.847-24.886,15.259c-5.012,9.839-3.728,21.595,3.432,31.445
|
|
23
|
+
c0.732,1.007,1.652,1.928,2.666,2.665c5.817,4.229,12.314,6.464,18.788,6.464c10.556,0,20.092-5.847,24.886-15.259
|
|
24
|
+
c5.012-9.839,3.728-21.594-3.427-31.437c-0.732-1.01-1.654-1.934-2.671-2.674c-0.547-0.398-1.106-0.761-1.665-1.123l21.505-53.681
|
|
25
|
+
C192.669,93.624,190.801,89.258,186.956,87.718z M164.02,179.574c-2.221,4.359-6.635,7.067-11.52,7.067
|
|
26
|
+
c-3.204,0-6.429-1.119-9.589-3.327c-3.6-5.169-4.307-10.773-1.93-15.438c2.22-4.359,6.634-7.067,11.52-7.067
|
|
27
|
+
c1.558,0,3.12,0.27,4.678,0.795c0.051,0.021,0.098,0.048,0.15,0.069c0.164,0.065,0.329,0.118,0.494,0.171
|
|
28
|
+
c1.43,0.549,2.854,1.305,4.266,2.291C165.688,169.304,166.396,174.909,164.02,179.574z"/>
|
|
29
|
+
</g>
|
|
30
|
+
</svg>
|
package/package.json
ADDED
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "math-notation",
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"description": "A React component library for mathematical expressions",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "./dist/formulize.cjs.js",
|
|
8
|
+
"module": "./dist/formulize.es.js",
|
|
9
|
+
"types": "./dist/types/index.d.ts",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"import": "./dist/formulize.es.js",
|
|
13
|
+
"require": "./dist/formulize.cjs.js",
|
|
14
|
+
"types": "./dist/types/index.d.ts"
|
|
15
|
+
},
|
|
16
|
+
"./style.css": "./dist/style.css"
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"dist",
|
|
20
|
+
"README.md",
|
|
21
|
+
"LICENSE"
|
|
22
|
+
],
|
|
23
|
+
"keywords": [
|
|
24
|
+
"math",
|
|
25
|
+
"react",
|
|
26
|
+
"component"
|
|
27
|
+
],
|
|
28
|
+
"author": "Eric Dai <Ericdai2000@gmail.com>, Zain Khan <zain6khan@gmail.com>",
|
|
29
|
+
"license": "MIT",
|
|
30
|
+
"repository": {
|
|
31
|
+
"type": "git",
|
|
32
|
+
"url": "git+https://github.com/ericdai5/formulize.git"
|
|
33
|
+
},
|
|
34
|
+
"bugs": {
|
|
35
|
+
"url": "https://github.com/ericdai5/formulize/issues"
|
|
36
|
+
},
|
|
37
|
+
"homepage": "https://github.com/ericdai5/formulize#readme",
|
|
38
|
+
"peerDependencies": {
|
|
39
|
+
"@codemirror/autocomplete": "^6.0.0",
|
|
40
|
+
"@codemirror/lang-javascript": "^6.0.0",
|
|
41
|
+
"@codemirror/language": "^6.0.0",
|
|
42
|
+
"@codemirror/legacy-modes": "^6.0.0",
|
|
43
|
+
"@codemirror/state": "^6.0.0",
|
|
44
|
+
"@codemirror/view": "^6.0.0",
|
|
45
|
+
"@uiw/react-codemirror": "^4.0.0",
|
|
46
|
+
"@xyflow/react": "^12.0.0",
|
|
47
|
+
"better-react-mathjax": "^2.0.0",
|
|
48
|
+
"codemirror": "^6.0.0",
|
|
49
|
+
"d3": "^7.0.0",
|
|
50
|
+
"katex": "^0.16.0",
|
|
51
|
+
"lodash": "^4.0.0",
|
|
52
|
+
"lucide-react": "^0.400.0",
|
|
53
|
+
"mathjax-full": "^3.2.2",
|
|
54
|
+
"mathjs": "^13.0.0",
|
|
55
|
+
"mobx": "^6.0.0",
|
|
56
|
+
"mobx-react-lite": "^4.0.0",
|
|
57
|
+
"mobx-state-tree": "^5.0.0",
|
|
58
|
+
"plotly.js-dist": "^3.0.0",
|
|
59
|
+
"react": "^18.0.0",
|
|
60
|
+
"react-dom": "^18.0.0"
|
|
61
|
+
},
|
|
62
|
+
"peerDependenciesMeta": {
|
|
63
|
+
"react": {
|
|
64
|
+
"optional": false
|
|
65
|
+
},
|
|
66
|
+
"react-dom": {
|
|
67
|
+
"optional": false
|
|
68
|
+
},
|
|
69
|
+
"plotly.js-dist": {
|
|
70
|
+
"optional": true
|
|
71
|
+
},
|
|
72
|
+
"d3": {
|
|
73
|
+
"optional": true
|
|
74
|
+
},
|
|
75
|
+
"@xyflow/react": {
|
|
76
|
+
"optional": true
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"sideEffects": [
|
|
80
|
+
"*.css",
|
|
81
|
+
"src/**/*.css"
|
|
82
|
+
],
|
|
83
|
+
"scripts": {
|
|
84
|
+
"dev": "vite",
|
|
85
|
+
"build": "vite build --mode production",
|
|
86
|
+
"deploy": "rm -rf docs/forge/* && cp -r dist/* docs/forge/",
|
|
87
|
+
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
88
|
+
"preview": "vite preview",
|
|
89
|
+
"prepare": "husky install",
|
|
90
|
+
"prepublishOnly": "npm run build"
|
|
91
|
+
},
|
|
92
|
+
"dependencies": {
|
|
93
|
+
"dompurify": "^3.2.3",
|
|
94
|
+
"js-beautify": "^1.15.4",
|
|
95
|
+
"prettier-plugin-latex": "^2.0.1",
|
|
96
|
+
"react-intersection-observer": "^9.8.2",
|
|
97
|
+
"react-split": "^2.0.14",
|
|
98
|
+
"react-usestateref": "^1.0.9"
|
|
99
|
+
},
|
|
100
|
+
"devDependencies": {
|
|
101
|
+
"@babel/plugin-proposal-decorators": "^7.24.1",
|
|
102
|
+
"@babel/plugin-syntax-decorators": "^7.24.1",
|
|
103
|
+
"@codemirror/autocomplete": "^6.18.7",
|
|
104
|
+
"@codemirror/lang-javascript": "^6.2.4",
|
|
105
|
+
"@codemirror/language": "^6.10.1",
|
|
106
|
+
"@codemirror/legacy-modes": "^6.4.0",
|
|
107
|
+
"@codemirror/state": "^6.4.1",
|
|
108
|
+
"@codemirror/view": "^6.38.0",
|
|
109
|
+
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
|
|
110
|
+
"@types/d3": "^7.4.3",
|
|
111
|
+
"@types/dompurify": "^3.2.0",
|
|
112
|
+
"@types/js-beautify": "^1.14.3",
|
|
113
|
+
"@types/katex": "^0.16.7",
|
|
114
|
+
"@types/lodash-es": "^4.17.12",
|
|
115
|
+
"@types/mathjax": "^0.0.40",
|
|
116
|
+
"@types/react": "^18.2.56",
|
|
117
|
+
"@types/react-dom": "^18.2.19",
|
|
118
|
+
"@typescript-eslint/eslint-plugin": "^7.0.2",
|
|
119
|
+
"@typescript-eslint/parser": "^7.0.2",
|
|
120
|
+
"@uiw/react-codemirror": "^4.22.0",
|
|
121
|
+
"@vitejs/plugin-react": "^4.3.3",
|
|
122
|
+
"@vitejs/plugin-react-swc": "^3.7.1",
|
|
123
|
+
"@xyflow/react": "^12.8.2",
|
|
124
|
+
"ajv": "^8.17.1",
|
|
125
|
+
"better-react-mathjax": "^2.0.3",
|
|
126
|
+
"codemirror": "^6.0.1",
|
|
127
|
+
"d3": "^7.9.0",
|
|
128
|
+
"eslint": "^8.56.0",
|
|
129
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
130
|
+
"eslint-plugin-react-refresh": "^0.4.5",
|
|
131
|
+
"husky": "^9.0.11",
|
|
132
|
+
"katex": "^0.16.11",
|
|
133
|
+
"lint-staged": "^15.2.2",
|
|
134
|
+
"lodash": "^4.17.21",
|
|
135
|
+
"lucide-react": "^0.471.0",
|
|
136
|
+
"mathjax-full": "3.2.2",
|
|
137
|
+
"mathjs": "^13.2.2",
|
|
138
|
+
"mobx": "^6.12.3",
|
|
139
|
+
"mobx-react-lite": "^4.0.7",
|
|
140
|
+
"mobx-state-tree": "^5.4.1",
|
|
141
|
+
"plotly.js-dist": "^3.0.1",
|
|
142
|
+
"prettier": "^3.2.5",
|
|
143
|
+
"react": "^18.0.0",
|
|
144
|
+
"react-dom": "^18.0.0",
|
|
145
|
+
"react-router-dom": "^7.13.0",
|
|
146
|
+
"react-scan": "^0.4.3",
|
|
147
|
+
"tailwindcss": "^3.4.17",
|
|
148
|
+
"typescript": "^5.2.2",
|
|
149
|
+
"vite": "^5.1.4",
|
|
150
|
+
"vite-plugin-dts": "^4.5.4"
|
|
151
|
+
},
|
|
152
|
+
"lint-staged": {
|
|
153
|
+
"*.{ts,tsx}": "eslint --cache --fix",
|
|
154
|
+
"*.{js,css,md}": "prettier --write"
|
|
155
|
+
}
|
|
156
|
+
}
|