@nice2dev/icons-math 1.0.10
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 +223 -0
- package/dist/createMathIcon-BbQhEo0A.mjs +157 -0
- package/dist/createMathIcon-BbQhEo0A.mjs.map +1 -0
- package/dist/createMathIcon-CK9tbq5-.js +156 -0
- package/dist/createMathIcon-CK9tbq5-.js.map +1 -0
- package/dist/createMathIcon.d.ts +14 -0
- package/dist/createMathIcon.d.ts.map +1 -0
- package/dist/functions.cjs +137 -0
- package/dist/functions.cjs.map +1 -0
- package/dist/functions.d.ts +57 -0
- package/dist/functions.d.ts.map +1 -0
- package/dist/functions.mjs +137 -0
- package/dist/functions.mjs.map +1 -0
- package/dist/geometry.cjs +125 -0
- package/dist/geometry.cjs.map +1 -0
- package/dist/geometry.d.ts +56 -0
- package/dist/geometry.d.ts.map +1 -0
- package/dist/geometry.mjs +125 -0
- package/dist/geometry.mjs.map +1 -0
- package/dist/index.cjs +190 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +114 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.mjs +190 -0
- package/dist/index.mjs.map +1 -0
- package/dist/operators.cjs +124 -0
- package/dist/operators.cjs.map +1 -0
- package/dist/operators.d.ts +56 -0
- package/dist/operators.d.ts.map +1 -0
- package/dist/operators.mjs +124 -0
- package/dist/operators.mjs.map +1 -0
- package/dist/sets.cjs +126 -0
- package/dist/sets.cjs.map +1 -0
- package/dist/sets.d.ts +56 -0
- package/dist/sets.d.ts.map +1 -0
- package/dist/sets.mjs +126 -0
- package/dist/sets.mjs.map +1 -0
- package/dist/statistics.cjs +164 -0
- package/dist/statistics.cjs.map +1 -0
- package/dist/statistics.d.ts +56 -0
- package/dist/statistics.d.ts.map +1 -0
- package/dist/statistics.mjs +164 -0
- package/dist/statistics.mjs.map +1 -0
- package/dist/types.d.ts +59 -0
- package/dist/types.d.ts.map +1 -0
- package/package.json +78 -0
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { c as createMathIcon } from "./createMathIcon-BbQhEo0A.mjs";
|
|
3
|
+
const Triangle = createMathIcon(
|
|
4
|
+
"Triangle",
|
|
5
|
+
/* @__PURE__ */ jsx("path", { d: "M12 3L3 21h18L12 3z", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
6
|
+
);
|
|
7
|
+
const Square = createMathIcon(
|
|
8
|
+
"Square",
|
|
9
|
+
/* @__PURE__ */ jsx("rect", { x: "4", y: "4", width: "16", height: "16", rx: "1", strokeLinecap: "round" })
|
|
10
|
+
);
|
|
11
|
+
const Circle = createMathIcon("Circle", /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "9" }));
|
|
12
|
+
const Cube = createMathIcon(
|
|
13
|
+
"Cube",
|
|
14
|
+
/* @__PURE__ */ jsxs(Fragment, { children: [
|
|
15
|
+
/* @__PURE__ */ jsx("path", { d: "M4 8l8-4 8 4v8l-8 4-8-4V8z", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
16
|
+
/* @__PURE__ */ jsx("path", { d: "M4 8l8 4 8-4M12 12v8", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
17
|
+
] })
|
|
18
|
+
);
|
|
19
|
+
const Sphere = createMathIcon(
|
|
20
|
+
"Sphere",
|
|
21
|
+
/* @__PURE__ */ jsxs(Fragment, { children: [
|
|
22
|
+
/* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "9" }),
|
|
23
|
+
/* @__PURE__ */ jsx("ellipse", { cx: "12", cy: "12", rx: "9", ry: "3" }),
|
|
24
|
+
/* @__PURE__ */ jsx("ellipse", { cx: "12", cy: "12", rx: "3", ry: "9" })
|
|
25
|
+
] })
|
|
26
|
+
);
|
|
27
|
+
const Pyramid = createMathIcon(
|
|
28
|
+
"Pyramid",
|
|
29
|
+
/* @__PURE__ */ jsxs(Fragment, { children: [
|
|
30
|
+
/* @__PURE__ */ jsx("path", { d: "M12 2L3 18h18L12 2z", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
31
|
+
/* @__PURE__ */ jsx("path", { d: "M12 2v16M3 18l9-5.5 9 5.5", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
32
|
+
] })
|
|
33
|
+
);
|
|
34
|
+
const Cylinder = createMathIcon(
|
|
35
|
+
"Cylinder",
|
|
36
|
+
/* @__PURE__ */ jsxs(Fragment, { children: [
|
|
37
|
+
/* @__PURE__ */ jsx("ellipse", { cx: "12", cy: "5", rx: "8", ry: "3" }),
|
|
38
|
+
/* @__PURE__ */ jsx("path", { d: "M4 5v14c0 1.66 3.58 3 8 3s8-1.34 8-3V5", strokeLinecap: "round" })
|
|
39
|
+
] })
|
|
40
|
+
);
|
|
41
|
+
const Cone = createMathIcon(
|
|
42
|
+
"Cone",
|
|
43
|
+
/* @__PURE__ */ jsxs(Fragment, { children: [
|
|
44
|
+
/* @__PURE__ */ jsx("ellipse", { cx: "12", cy: "19", rx: "8", ry: "3" }),
|
|
45
|
+
/* @__PURE__ */ jsx("path", { d: "M4 19L12 3l8 16", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
46
|
+
] })
|
|
47
|
+
);
|
|
48
|
+
const Pentagon = createMathIcon(
|
|
49
|
+
"Pentagon",
|
|
50
|
+
/* @__PURE__ */ jsx("path", { d: "M12 2l9 7-3.5 10h-11L3 9l9-7z", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
51
|
+
);
|
|
52
|
+
const Hexagon = createMathIcon(
|
|
53
|
+
"Hexagon",
|
|
54
|
+
/* @__PURE__ */ jsx("path", { d: "M12 2l8 4.5v9L12 22l-8-6.5v-9L12 2z", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
55
|
+
);
|
|
56
|
+
const Angle = createMathIcon(
|
|
57
|
+
"Angle",
|
|
58
|
+
/* @__PURE__ */ jsxs(Fragment, { children: [
|
|
59
|
+
/* @__PURE__ */ jsx("path", { d: "M4 20L12 4l8 16", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
60
|
+
/* @__PURE__ */ jsx("path", { d: "M8 14a6 6 0 0 1 8 0", strokeLinecap: "round" })
|
|
61
|
+
] })
|
|
62
|
+
);
|
|
63
|
+
const Parallel = createMathIcon(
|
|
64
|
+
"Parallel",
|
|
65
|
+
/* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "M6 4v16M12 4v16M18 4v16", strokeLinecap: "round" }) })
|
|
66
|
+
);
|
|
67
|
+
const Perpendicular = createMathIcon(
|
|
68
|
+
"Perpendicular",
|
|
69
|
+
/* @__PURE__ */ jsxs(Fragment, { children: [
|
|
70
|
+
/* @__PURE__ */ jsx("path", { d: "M12 4v16M4 12h16", strokeLinecap: "round" }),
|
|
71
|
+
/* @__PURE__ */ jsx("rect", { x: "12", y: "12", width: "4", height: "4", fill: "none", strokeWidth: "1" })
|
|
72
|
+
] })
|
|
73
|
+
);
|
|
74
|
+
const Compass = createMathIcon(
|
|
75
|
+
"Compass",
|
|
76
|
+
/* @__PURE__ */ jsxs(Fragment, { children: [
|
|
77
|
+
/* @__PURE__ */ jsx("circle", { cx: "12", cy: "5", r: "2" }),
|
|
78
|
+
/* @__PURE__ */ jsx("path", { d: "M12 7L7 21M12 7l5 14", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
79
|
+
/* @__PURE__ */ jsx("path", { d: "M8 16h8", strokeLinecap: "round" })
|
|
80
|
+
] })
|
|
81
|
+
);
|
|
82
|
+
const Protractor = createMathIcon(
|
|
83
|
+
"Protractor",
|
|
84
|
+
/* @__PURE__ */ jsxs(Fragment, { children: [
|
|
85
|
+
/* @__PURE__ */ jsx("path", { d: "M3 18a9 9 0 0 1 18 0H3z", strokeLinecap: "round" }),
|
|
86
|
+
/* @__PURE__ */ jsx("path", { d: "M12 18V9", strokeLinecap: "round" }),
|
|
87
|
+
/* @__PURE__ */ jsx("path", { d: "M12 18l-6-5M12 18l6-5", strokeLinecap: "round" })
|
|
88
|
+
] })
|
|
89
|
+
);
|
|
90
|
+
const geometryIcons = {
|
|
91
|
+
Triangle,
|
|
92
|
+
Square,
|
|
93
|
+
Circle,
|
|
94
|
+
Cube,
|
|
95
|
+
Sphere,
|
|
96
|
+
Pyramid,
|
|
97
|
+
Cylinder,
|
|
98
|
+
Cone,
|
|
99
|
+
Pentagon,
|
|
100
|
+
Hexagon,
|
|
101
|
+
Angle,
|
|
102
|
+
Parallel,
|
|
103
|
+
Perpendicular,
|
|
104
|
+
Compass,
|
|
105
|
+
Protractor
|
|
106
|
+
};
|
|
107
|
+
export {
|
|
108
|
+
Angle,
|
|
109
|
+
Circle,
|
|
110
|
+
Compass,
|
|
111
|
+
Cone,
|
|
112
|
+
Cube,
|
|
113
|
+
Cylinder,
|
|
114
|
+
Hexagon,
|
|
115
|
+
Parallel,
|
|
116
|
+
Pentagon,
|
|
117
|
+
Perpendicular,
|
|
118
|
+
Protractor,
|
|
119
|
+
Pyramid,
|
|
120
|
+
Sphere,
|
|
121
|
+
Square,
|
|
122
|
+
Triangle,
|
|
123
|
+
geometryIcons
|
|
124
|
+
};
|
|
125
|
+
//# sourceMappingURL=geometry.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"geometry.mjs","sources":["../src/geometry.tsx"],"sourcesContent":["import React from 'react';\r\n\r\nimport { createMathIcon } from './createMathIcon';\r\nimport type { MathIcon } from './types';\r\n\r\n/**\r\n * Geometry Icons - Geometric shapes and tools (15 icons)\r\n */\r\n\r\n/** Triangle shape */\r\nexport const Triangle: MathIcon = createMathIcon(\r\n 'Triangle',\r\n <path d=\"M12 3L3 21h18L12 3z\" strokeLinecap=\"round\" strokeLinejoin=\"round\" />,\r\n);\r\n\r\n/** Square shape */\r\nexport const Square: MathIcon = createMathIcon(\r\n 'Square',\r\n <rect x=\"4\" y=\"4\" width=\"16\" height=\"16\" rx=\"1\" strokeLinecap=\"round\" />,\r\n);\r\n\r\n/** Circle shape */\r\nexport const Circle: MathIcon = createMathIcon('Circle', <circle cx=\"12\" cy=\"12\" r=\"9\" />);\r\n\r\n/** Cube (3D) shape */\r\nexport const Cube: MathIcon = createMathIcon(\r\n 'Cube',\r\n <>\r\n <path d=\"M4 8l8-4 8 4v8l-8 4-8-4V8z\" strokeLinecap=\"round\" strokeLinejoin=\"round\" />\r\n <path d=\"M4 8l8 4 8-4M12 12v8\" strokeLinecap=\"round\" strokeLinejoin=\"round\" />\r\n </>,\r\n);\r\n\r\n/** Sphere (3D) shape */\r\nexport const Sphere: MathIcon = createMathIcon(\r\n 'Sphere',\r\n <>\r\n <circle cx=\"12\" cy=\"12\" r=\"9\" />\r\n <ellipse cx=\"12\" cy=\"12\" rx=\"9\" ry=\"3\" />\r\n <ellipse cx=\"12\" cy=\"12\" rx=\"3\" ry=\"9\" />\r\n </>,\r\n);\r\n\r\n/** Pyramid (3D) shape */\r\nexport const Pyramid: MathIcon = createMathIcon(\r\n 'Pyramid',\r\n <>\r\n <path d=\"M12 2L3 18h18L12 2z\" strokeLinecap=\"round\" strokeLinejoin=\"round\" />\r\n <path d=\"M12 2v16M3 18l9-5.5 9 5.5\" strokeLinecap=\"round\" strokeLinejoin=\"round\" />\r\n </>,\r\n);\r\n\r\n/** Cylinder (3D) shape */\r\nexport const Cylinder: MathIcon = createMathIcon(\r\n 'Cylinder',\r\n <>\r\n <ellipse cx=\"12\" cy=\"5\" rx=\"8\" ry=\"3\" />\r\n <path d=\"M4 5v14c0 1.66 3.58 3 8 3s8-1.34 8-3V5\" strokeLinecap=\"round\" />\r\n </>,\r\n);\r\n\r\n/** Cone (3D) shape */\r\nexport const Cone: MathIcon = createMathIcon(\r\n 'Cone',\r\n <>\r\n <ellipse cx=\"12\" cy=\"19\" rx=\"8\" ry=\"3\" />\r\n <path d=\"M4 19L12 3l8 16\" strokeLinecap=\"round\" strokeLinejoin=\"round\" />\r\n </>,\r\n);\r\n\r\n/** Pentagon shape */\r\nexport const Pentagon: MathIcon = createMathIcon(\r\n 'Pentagon',\r\n <path d=\"M12 2l9 7-3.5 10h-11L3 9l9-7z\" strokeLinecap=\"round\" strokeLinejoin=\"round\" />,\r\n);\r\n\r\n/** Hexagon shape */\r\nexport const Hexagon: MathIcon = createMathIcon(\r\n 'Hexagon',\r\n <path d=\"M12 2l8 4.5v9L12 22l-8-6.5v-9L12 2z\" strokeLinecap=\"round\" strokeLinejoin=\"round\" />,\r\n);\r\n\r\n/** Angle measurement symbol */\r\nexport const Angle: MathIcon = createMathIcon(\r\n 'Angle',\r\n <>\r\n <path d=\"M4 20L12 4l8 16\" strokeLinecap=\"round\" strokeLinejoin=\"round\" />\r\n <path d=\"M8 14a6 6 0 0 1 8 0\" strokeLinecap=\"round\" />\r\n </>,\r\n);\r\n\r\n/** Parallel lines symbol */\r\nexport const Parallel: MathIcon = createMathIcon(\r\n 'Parallel',\r\n <>\r\n <path d=\"M6 4v16M12 4v16M18 4v16\" strokeLinecap=\"round\" />\r\n </>,\r\n);\r\n\r\n/** Perpendicular lines symbol */\r\nexport const Perpendicular: MathIcon = createMathIcon(\r\n 'Perpendicular',\r\n <>\r\n <path d=\"M12 4v16M4 12h16\" strokeLinecap=\"round\" />\r\n <rect x=\"12\" y=\"12\" width=\"4\" height=\"4\" fill=\"none\" strokeWidth=\"1\" />\r\n </>,\r\n);\r\n\r\n/** Compass drawing tool */\r\nexport const Compass: MathIcon = createMathIcon(\r\n 'Compass',\r\n <>\r\n <circle cx=\"12\" cy=\"5\" r=\"2\" />\r\n <path d=\"M12 7L7 21M12 7l5 14\" strokeLinecap=\"round\" strokeLinejoin=\"round\" />\r\n <path d=\"M8 16h8\" strokeLinecap=\"round\" />\r\n </>,\r\n);\r\n\r\n/** Protractor measuring tool */\r\nexport const Protractor: MathIcon = createMathIcon(\r\n 'Protractor',\r\n <>\r\n <path d=\"M3 18a9 9 0 0 1 18 0H3z\" strokeLinecap=\"round\" />\r\n <path d=\"M12 18V9\" strokeLinecap=\"round\" />\r\n <path d=\"M12 18l-6-5M12 18l6-5\" strokeLinecap=\"round\" />\r\n </>,\r\n);\r\n\r\n/**\r\n * All geometry icons\r\n */\r\nexport const geometryIcons = {\r\n Triangle,\r\n Square,\r\n Circle,\r\n Cube,\r\n Sphere,\r\n Pyramid,\r\n Cylinder,\r\n Cone,\r\n Pentagon,\r\n Hexagon,\r\n Angle,\r\n Parallel,\r\n Perpendicular,\r\n Compass,\r\n Protractor,\r\n} as const;\r\n\r\nexport type { MathIcon };\r\n"],"names":[],"mappings":";;AAUO,MAAM,WAAqB;AAAA,EAChC;AAAA,sBACC,QAAA,EAAK,GAAE,uBAAsB,eAAc,SAAQ,gBAAe,QAAA,CAAQ;AAC7E;AAGO,MAAM,SAAmB;AAAA,EAC9B;AAAA,EACA,oBAAC,QAAA,EAAK,GAAE,KAAI,GAAE,KAAI,OAAM,MAAK,QAAO,MAAK,IAAG,KAAI,eAAc,QAAA,CAAQ;AACxE;AAGO,MAAM,SAAmB,eAAe,UAAU,oBAAC,UAAA,EAAO,IAAG,MAAK,IAAG,MAAK,GAAE,IAAA,CAAI,CAAE;AAGlF,MAAM,OAAiB;AAAA,EAC5B;AAAA,EACA,qBAAA,UAAA,EACE,UAAA;AAAA,IAAA,oBAAC,UAAK,GAAE,8BAA6B,eAAc,SAAQ,gBAAe,SAAQ;AAAA,wBACjF,QAAA,EAAK,GAAE,wBAAuB,eAAc,SAAQ,gBAAe,QAAA,CAAQ;AAAA,EAAA,EAAA,CAC9E;AACF;AAGO,MAAM,SAAmB;AAAA,EAC9B;AAAA,EACA,qBAAA,UAAA,EACE,UAAA;AAAA,IAAA,oBAAC,YAAO,IAAG,MAAK,IAAG,MAAK,GAAE,KAAI;AAAA,IAC9B,oBAAC,aAAQ,IAAG,MAAK,IAAG,MAAK,IAAG,KAAI,IAAG,IAAA,CAAI;AAAA,IACvC,oBAAC,aAAQ,IAAG,MAAK,IAAG,MAAK,IAAG,KAAI,IAAG,IAAA,CAAI;AAAA,EAAA,EAAA,CACzC;AACF;AAGO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require("./createMathIcon-CK9tbq5-.js");
|
|
4
|
+
const operators = require("./operators.cjs");
|
|
5
|
+
const functions = require("./functions.cjs");
|
|
6
|
+
const geometry = require("./geometry.cjs");
|
|
7
|
+
const sets = require("./sets.cjs");
|
|
8
|
+
const statistics = require("./statistics.cjs");
|
|
9
|
+
const allMathIcons = {
|
|
10
|
+
operators: {
|
|
11
|
+
Plus: true,
|
|
12
|
+
Minus: true,
|
|
13
|
+
Multiply: true,
|
|
14
|
+
Divide: true,
|
|
15
|
+
Equals: true,
|
|
16
|
+
NotEquals: true,
|
|
17
|
+
LessThan: true,
|
|
18
|
+
GreaterThan: true,
|
|
19
|
+
LessOrEqual: true,
|
|
20
|
+
GreaterOrEqual: true,
|
|
21
|
+
PlusMinus: true,
|
|
22
|
+
Percent: true,
|
|
23
|
+
Modulo: true,
|
|
24
|
+
Power: true,
|
|
25
|
+
SquareRoot: true
|
|
26
|
+
},
|
|
27
|
+
functions: {
|
|
28
|
+
Function: true,
|
|
29
|
+
Integral: true,
|
|
30
|
+
Derivative: true,
|
|
31
|
+
Summation: true,
|
|
32
|
+
Product: true,
|
|
33
|
+
Limit: true,
|
|
34
|
+
Pi: true,
|
|
35
|
+
Infinity: true,
|
|
36
|
+
InfinityIcon: true,
|
|
37
|
+
Sigma: true,
|
|
38
|
+
Delta: true,
|
|
39
|
+
Theta: true,
|
|
40
|
+
Lambda: true,
|
|
41
|
+
Factorial: true,
|
|
42
|
+
Logarithm: true,
|
|
43
|
+
Absolute: true
|
|
44
|
+
},
|
|
45
|
+
geometry: {
|
|
46
|
+
Triangle: true,
|
|
47
|
+
Square: true,
|
|
48
|
+
Circle: true,
|
|
49
|
+
Cube: true,
|
|
50
|
+
Sphere: true,
|
|
51
|
+
Pyramid: true,
|
|
52
|
+
Cylinder: true,
|
|
53
|
+
Cone: true,
|
|
54
|
+
Pentagon: true,
|
|
55
|
+
Hexagon: true,
|
|
56
|
+
Angle: true,
|
|
57
|
+
Parallel: true,
|
|
58
|
+
Perpendicular: true,
|
|
59
|
+
Compass: true,
|
|
60
|
+
Protractor: true
|
|
61
|
+
},
|
|
62
|
+
sets: {
|
|
63
|
+
Union: true,
|
|
64
|
+
Intersection: true,
|
|
65
|
+
Subset: true,
|
|
66
|
+
Superset: true,
|
|
67
|
+
Element: true,
|
|
68
|
+
NotElement: true,
|
|
69
|
+
EmptySet: true,
|
|
70
|
+
Universal: true,
|
|
71
|
+
Complement: true,
|
|
72
|
+
Difference: true,
|
|
73
|
+
SymmetricDiff: true,
|
|
74
|
+
CartesianProduct: true,
|
|
75
|
+
PowerSet: true,
|
|
76
|
+
SetBraces: true,
|
|
77
|
+
Mapping: true
|
|
78
|
+
},
|
|
79
|
+
statistics: {
|
|
80
|
+
BarChart: true,
|
|
81
|
+
Histogram: true,
|
|
82
|
+
BellCurve: true,
|
|
83
|
+
Scatter: true,
|
|
84
|
+
LineGraph: true,
|
|
85
|
+
PieChart: true,
|
|
86
|
+
BoxPlot: true,
|
|
87
|
+
Mean: true,
|
|
88
|
+
Median: true,
|
|
89
|
+
Mode: true,
|
|
90
|
+
StandardDev: true,
|
|
91
|
+
Variance: true,
|
|
92
|
+
Correlation: true,
|
|
93
|
+
Regression: true,
|
|
94
|
+
Probability: true
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
const MATH_ICON_COUNTS = {
|
|
98
|
+
operators: 15,
|
|
99
|
+
functions: 15,
|
|
100
|
+
geometry: 15,
|
|
101
|
+
sets: 15,
|
|
102
|
+
statistics: 15,
|
|
103
|
+
total: 75
|
|
104
|
+
};
|
|
105
|
+
exports.createMathIcon = createMathIcon.createMathIcon;
|
|
106
|
+
exports.getMathAnimation = createMathIcon.getMathAnimation;
|
|
107
|
+
exports.Divide = operators.Divide;
|
|
108
|
+
exports.Equals = operators.Equals;
|
|
109
|
+
exports.GreaterOrEqual = operators.GreaterOrEqual;
|
|
110
|
+
exports.GreaterThan = operators.GreaterThan;
|
|
111
|
+
exports.LessOrEqual = operators.LessOrEqual;
|
|
112
|
+
exports.LessThan = operators.LessThan;
|
|
113
|
+
exports.Minus = operators.Minus;
|
|
114
|
+
exports.Modulo = operators.Modulo;
|
|
115
|
+
exports.Multiply = operators.Multiply;
|
|
116
|
+
exports.NotEquals = operators.NotEquals;
|
|
117
|
+
exports.Percent = operators.Percent;
|
|
118
|
+
exports.Plus = operators.Plus;
|
|
119
|
+
exports.PlusMinus = operators.PlusMinus;
|
|
120
|
+
exports.Power = operators.Power;
|
|
121
|
+
exports.SquareRoot = operators.SquareRoot;
|
|
122
|
+
exports.operatorIcons = operators.operatorIcons;
|
|
123
|
+
exports.Absolute = functions.Absolute;
|
|
124
|
+
exports.Delta = functions.Delta;
|
|
125
|
+
exports.Derivative = functions.Derivative;
|
|
126
|
+
exports.Factorial = functions.Factorial;
|
|
127
|
+
exports.Function = functions.Function;
|
|
128
|
+
exports.Infinity = functions.InfinityIcon;
|
|
129
|
+
exports.InfinityIcon = functions.InfinityIcon;
|
|
130
|
+
exports.Integral = functions.Integral;
|
|
131
|
+
exports.Lambda = functions.Lambda;
|
|
132
|
+
exports.Limit = functions.Limit;
|
|
133
|
+
exports.Logarithm = functions.Logarithm;
|
|
134
|
+
exports.Pi = functions.Pi;
|
|
135
|
+
exports.Product = functions.Product;
|
|
136
|
+
exports.Sigma = functions.Sigma;
|
|
137
|
+
exports.Summation = functions.Summation;
|
|
138
|
+
exports.Theta = functions.Theta;
|
|
139
|
+
exports.functionIcons = functions.functionIcons;
|
|
140
|
+
exports.Angle = geometry.Angle;
|
|
141
|
+
exports.Circle = geometry.Circle;
|
|
142
|
+
exports.Compass = geometry.Compass;
|
|
143
|
+
exports.Cone = geometry.Cone;
|
|
144
|
+
exports.Cube = geometry.Cube;
|
|
145
|
+
exports.Cylinder = geometry.Cylinder;
|
|
146
|
+
exports.Hexagon = geometry.Hexagon;
|
|
147
|
+
exports.Parallel = geometry.Parallel;
|
|
148
|
+
exports.Pentagon = geometry.Pentagon;
|
|
149
|
+
exports.Perpendicular = geometry.Perpendicular;
|
|
150
|
+
exports.Protractor = geometry.Protractor;
|
|
151
|
+
exports.Pyramid = geometry.Pyramid;
|
|
152
|
+
exports.Sphere = geometry.Sphere;
|
|
153
|
+
exports.Square = geometry.Square;
|
|
154
|
+
exports.Triangle = geometry.Triangle;
|
|
155
|
+
exports.geometryIcons = geometry.geometryIcons;
|
|
156
|
+
exports.CartesianProduct = sets.CartesianProduct;
|
|
157
|
+
exports.Complement = sets.Complement;
|
|
158
|
+
exports.Difference = sets.Difference;
|
|
159
|
+
exports.Element = sets.Element;
|
|
160
|
+
exports.EmptySet = sets.EmptySet;
|
|
161
|
+
exports.Intersection = sets.Intersection;
|
|
162
|
+
exports.Mapping = sets.Mapping;
|
|
163
|
+
exports.NotElement = sets.NotElement;
|
|
164
|
+
exports.PowerSet = sets.PowerSet;
|
|
165
|
+
exports.SetBraces = sets.SetBraces;
|
|
166
|
+
exports.Subset = sets.Subset;
|
|
167
|
+
exports.Superset = sets.Superset;
|
|
168
|
+
exports.SymmetricDiff = sets.SymmetricDiff;
|
|
169
|
+
exports.Union = sets.Union;
|
|
170
|
+
exports.Universal = sets.Universal;
|
|
171
|
+
exports.setIcons = sets.setIcons;
|
|
172
|
+
exports.BarChart = statistics.BarChart;
|
|
173
|
+
exports.BellCurve = statistics.BellCurve;
|
|
174
|
+
exports.BoxPlot = statistics.BoxPlot;
|
|
175
|
+
exports.Correlation = statistics.Correlation;
|
|
176
|
+
exports.Histogram = statistics.Histogram;
|
|
177
|
+
exports.LineGraph = statistics.LineGraph;
|
|
178
|
+
exports.Mean = statistics.Mean;
|
|
179
|
+
exports.Median = statistics.Median;
|
|
180
|
+
exports.Mode = statistics.Mode;
|
|
181
|
+
exports.PieChart = statistics.PieChart;
|
|
182
|
+
exports.Probability = statistics.Probability;
|
|
183
|
+
exports.Regression = statistics.Regression;
|
|
184
|
+
exports.Scatter = statistics.Scatter;
|
|
185
|
+
exports.StandardDev = statistics.StandardDev;
|
|
186
|
+
exports.Variance = statistics.Variance;
|
|
187
|
+
exports.statisticsIcons = statistics.statisticsIcons;
|
|
188
|
+
exports.MATH_ICON_COUNTS = MATH_ICON_COUNTS;
|
|
189
|
+
exports.allMathIcons = allMathIcons;
|
|
190
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../src/index.ts"],"sourcesContent":["/**\r\n * @nice2dev/icons-math\r\n * Mathematics icon library for React applications\r\n */\r\n\r\n// Types\r\nexport type {\r\n MathIconProps,\r\n MathIconAnimation,\r\n MathIconVariant,\r\n MathIconName,\r\n OperatorIconName,\r\n FunctionIconName,\r\n GeometryIconName,\r\n SetIconName,\r\n StatisticsIconName,\r\n MathIcon,\r\n} from './types';\r\n\r\n// Factory\r\nexport { createMathIcon, getMathAnimation } from './createMathIcon';\r\n\r\n// Operator icons\r\nexport {\r\n Plus,\r\n Minus,\r\n Multiply,\r\n Divide,\r\n Equals,\r\n NotEquals,\r\n LessThan,\r\n GreaterThan,\r\n LessOrEqual,\r\n GreaterOrEqual,\r\n PlusMinus,\r\n Percent,\r\n Modulo,\r\n Power,\r\n SquareRoot,\r\n operatorIcons,\r\n} from './operators';\r\n\r\n// Function icons\r\nexport {\r\n Function,\r\n Integral,\r\n Derivative,\r\n Summation,\r\n Product,\r\n Limit,\r\n Pi,\r\n InfinityIcon,\r\n InfinityIcon as Infinity,\r\n Sigma,\r\n Delta,\r\n Theta,\r\n Lambda,\r\n Factorial,\r\n Logarithm,\r\n Absolute,\r\n functionIcons,\r\n} from './functions';\r\n\r\n// Geometry icons\r\nexport {\r\n Triangle,\r\n Square,\r\n Circle,\r\n Cube,\r\n Sphere,\r\n Pyramid,\r\n Cylinder,\r\n Cone,\r\n Pentagon,\r\n Hexagon,\r\n Angle,\r\n Parallel,\r\n Perpendicular,\r\n Compass,\r\n Protractor,\r\n geometryIcons,\r\n} from './geometry';\r\n\r\n// Set icons\r\nexport {\r\n Union,\r\n Intersection,\r\n Subset,\r\n Superset,\r\n Element,\r\n NotElement,\r\n EmptySet,\r\n Universal,\r\n Complement,\r\n Difference,\r\n SymmetricDiff,\r\n CartesianProduct,\r\n PowerSet,\r\n SetBraces,\r\n Mapping,\r\n setIcons,\r\n} from './sets';\r\n\r\n// Statistics icons\r\nexport {\r\n BarChart,\r\n Histogram,\r\n BellCurve,\r\n Scatter,\r\n LineGraph,\r\n PieChart,\r\n BoxPlot,\r\n Mean,\r\n Median,\r\n Mode,\r\n StandardDev,\r\n Variance,\r\n Correlation,\r\n Regression,\r\n Probability,\r\n statisticsIcons,\r\n} from './statistics';\r\n\r\n/**\r\n * All math icons grouped by category\r\n */\r\nexport const allMathIcons = {\r\n operators: {\r\n Plus: true,\r\n Minus: true,\r\n Multiply: true,\r\n Divide: true,\r\n Equals: true,\r\n NotEquals: true,\r\n LessThan: true,\r\n GreaterThan: true,\r\n LessOrEqual: true,\r\n GreaterOrEqual: true,\r\n PlusMinus: true,\r\n Percent: true,\r\n Modulo: true,\r\n Power: true,\r\n SquareRoot: true,\r\n },\r\n functions: {\r\n Function: true,\r\n Integral: true,\r\n Derivative: true,\r\n Summation: true,\r\n Product: true,\r\n Limit: true,\r\n Pi: true,\r\n Infinity: true,\r\n InfinityIcon: true,\r\n Sigma: true,\r\n Delta: true,\r\n Theta: true,\r\n Lambda: true,\r\n Factorial: true,\r\n Logarithm: true,\r\n Absolute: true,\r\n },\r\n geometry: {\r\n Triangle: true,\r\n Square: true,\r\n Circle: true,\r\n Cube: true,\r\n Sphere: true,\r\n Pyramid: true,\r\n Cylinder: true,\r\n Cone: true,\r\n Pentagon: true,\r\n Hexagon: true,\r\n Angle: true,\r\n Parallel: true,\r\n Perpendicular: true,\r\n Compass: true,\r\n Protractor: true,\r\n },\r\n sets: {\r\n Union: true,\r\n Intersection: true,\r\n Subset: true,\r\n Superset: true,\r\n Element: true,\r\n NotElement: true,\r\n EmptySet: true,\r\n Universal: true,\r\n Complement: true,\r\n Difference: true,\r\n SymmetricDiff: true,\r\n CartesianProduct: true,\r\n PowerSet: true,\r\n SetBraces: true,\r\n Mapping: true,\r\n },\r\n statistics: {\r\n BarChart: true,\r\n Histogram: true,\r\n BellCurve: true,\r\n Scatter: true,\r\n LineGraph: true,\r\n PieChart: true,\r\n BoxPlot: true,\r\n Mean: true,\r\n Median: true,\r\n Mode: true,\r\n StandardDev: true,\r\n Variance: true,\r\n Correlation: true,\r\n Regression: true,\r\n Probability: true,\r\n },\r\n} as const;\r\n\r\n/**\r\n * Icon counts by category\r\n */\r\nexport const MATH_ICON_COUNTS = {\r\n operators: 15,\r\n functions: 15,\r\n geometry: 15,\r\n sets: 15,\r\n statistics: 15,\r\n total: 75,\r\n} as const;\r\n"],"names":[],"mappings":";;;;;;;;AA8HO,MAAM,eAAe;AAAA,EAC1B,WAAW;AAAA,IACT,MAAM;AAAA,IACN,OAAO;AAAA,IACP,UAAU;AAAA,IACV,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,WAAW;AAAA,IACX,UAAU;AAAA,IACV,aAAa;AAAA,IACb,aAAa;AAAA,IACb,gBAAgB;AAAA,IAChB,WAAW;AAAA,IACX,SAAS;AAAA,IACT,QAAQ;AAAA,IACR,OAAO;AAAA,IACP,YAAY;AAAA,EAAA;AAAA,EAEd,WAAW;AAAA,IACT,UAAU;AAAA,IACV,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,WAAW;AAAA,IACX,SAAS;AAAA,IACT,OAAO;AAAA,IACP,IAAI;AAAA,IACJ,UAAU;AAAA,IACV,cAAc;AAAA,IACd,OAAO;AAAA,IACP,OAAO;AAAA,IACP,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,WAAW;AAAA,IACX,WAAW;AAAA,IACX,UAAU;AAAA,EAAA;AAAA,EAEZ,UAAU;AAAA,IACR,UAAU;AAAA,IACV,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,SAAS;AAAA,IACT,UAAU;AAAA,IACV,MAAM;AAAA,IACN,UAAU;AAAA,IACV,SAAS;AAAA,IACT,OAAO;AAAA,IACP,UAAU;AAAA,IACV,eAAe;AAAA,IACf,SAAS;AAAA,IACT,YAAY;AAAA,EAAA;AAAA,EAEd,MAAM;AAAA,IACJ,OAAO;AAAA,IACP,cAAc;AAAA,IACd,QAAQ;AAAA,IACR,UAAU;AAAA,IACV,SAAS;AAAA,IACT,YAAY;AAAA,IACZ,UAAU;AAAA,IACV,WAAW;AAAA,IACX,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,eAAe;AAAA,IACf,kBAAkB;AAAA,IAClB,UAAU;AAAA,IACV,WAAW;AAAA,IACX,SAAS;AAAA,EAAA;AAAA,EAEX,YAAY;AAAA,IACV,UAAU;AAAA,IACV,WAAW;AAAA,IACX,WAAW;AAAA,IACX,SAAS;AAAA,IACT,WAAW;AAAA,IACX,UAAU;AAAA,IACV,SAAS;AAAA,IACT,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,MAAM;AAAA,IACN,aAAa;AAAA,IACb,UAAU;AAAA,IACV,aAAa;AAAA,IACb,YAAY;AAAA,IACZ,aAAa;AAAA,EAAA;AAEjB;AAKO,MAAM,mBAAmB;AAAA,EAC9B,WAAW;AAAA,EACX,WAAW;AAAA,EACX,UAAU;AAAA,EACV,MAAM;AAAA,EACN,YAAY;AAAA,EACZ,OAAO;AACT;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @nice2dev/icons-math
|
|
3
|
+
* Mathematics icon library for React applications
|
|
4
|
+
*/
|
|
5
|
+
export type { MathIconProps, MathIconAnimation, MathIconVariant, MathIconName, OperatorIconName, FunctionIconName, GeometryIconName, SetIconName, StatisticsIconName, MathIcon, } from './types';
|
|
6
|
+
export { createMathIcon, getMathAnimation } from './createMathIcon';
|
|
7
|
+
export { Plus, Minus, Multiply, Divide, Equals, NotEquals, LessThan, GreaterThan, LessOrEqual, GreaterOrEqual, PlusMinus, Percent, Modulo, Power, SquareRoot, operatorIcons, } from './operators';
|
|
8
|
+
export { Function, Integral, Derivative, Summation, Product, Limit, Pi, InfinityIcon, InfinityIcon as Infinity, Sigma, Delta, Theta, Lambda, Factorial, Logarithm, Absolute, functionIcons, } from './functions';
|
|
9
|
+
export { Triangle, Square, Circle, Cube, Sphere, Pyramid, Cylinder, Cone, Pentagon, Hexagon, Angle, Parallel, Perpendicular, Compass, Protractor, geometryIcons, } from './geometry';
|
|
10
|
+
export { Union, Intersection, Subset, Superset, Element, NotElement, EmptySet, Universal, Complement, Difference, SymmetricDiff, CartesianProduct, PowerSet, SetBraces, Mapping, setIcons, } from './sets';
|
|
11
|
+
export { BarChart, Histogram, BellCurve, Scatter, LineGraph, PieChart, BoxPlot, Mean, Median, Mode, StandardDev, Variance, Correlation, Regression, Probability, statisticsIcons, } from './statistics';
|
|
12
|
+
/**
|
|
13
|
+
* All math icons grouped by category
|
|
14
|
+
*/
|
|
15
|
+
export declare const allMathIcons: {
|
|
16
|
+
readonly operators: {
|
|
17
|
+
readonly Plus: true;
|
|
18
|
+
readonly Minus: true;
|
|
19
|
+
readonly Multiply: true;
|
|
20
|
+
readonly Divide: true;
|
|
21
|
+
readonly Equals: true;
|
|
22
|
+
readonly NotEquals: true;
|
|
23
|
+
readonly LessThan: true;
|
|
24
|
+
readonly GreaterThan: true;
|
|
25
|
+
readonly LessOrEqual: true;
|
|
26
|
+
readonly GreaterOrEqual: true;
|
|
27
|
+
readonly PlusMinus: true;
|
|
28
|
+
readonly Percent: true;
|
|
29
|
+
readonly Modulo: true;
|
|
30
|
+
readonly Power: true;
|
|
31
|
+
readonly SquareRoot: true;
|
|
32
|
+
};
|
|
33
|
+
readonly functions: {
|
|
34
|
+
readonly Function: true;
|
|
35
|
+
readonly Integral: true;
|
|
36
|
+
readonly Derivative: true;
|
|
37
|
+
readonly Summation: true;
|
|
38
|
+
readonly Product: true;
|
|
39
|
+
readonly Limit: true;
|
|
40
|
+
readonly Pi: true;
|
|
41
|
+
readonly Infinity: true;
|
|
42
|
+
readonly InfinityIcon: true;
|
|
43
|
+
readonly Sigma: true;
|
|
44
|
+
readonly Delta: true;
|
|
45
|
+
readonly Theta: true;
|
|
46
|
+
readonly Lambda: true;
|
|
47
|
+
readonly Factorial: true;
|
|
48
|
+
readonly Logarithm: true;
|
|
49
|
+
readonly Absolute: true;
|
|
50
|
+
};
|
|
51
|
+
readonly geometry: {
|
|
52
|
+
readonly Triangle: true;
|
|
53
|
+
readonly Square: true;
|
|
54
|
+
readonly Circle: true;
|
|
55
|
+
readonly Cube: true;
|
|
56
|
+
readonly Sphere: true;
|
|
57
|
+
readonly Pyramid: true;
|
|
58
|
+
readonly Cylinder: true;
|
|
59
|
+
readonly Cone: true;
|
|
60
|
+
readonly Pentagon: true;
|
|
61
|
+
readonly Hexagon: true;
|
|
62
|
+
readonly Angle: true;
|
|
63
|
+
readonly Parallel: true;
|
|
64
|
+
readonly Perpendicular: true;
|
|
65
|
+
readonly Compass: true;
|
|
66
|
+
readonly Protractor: true;
|
|
67
|
+
};
|
|
68
|
+
readonly sets: {
|
|
69
|
+
readonly Union: true;
|
|
70
|
+
readonly Intersection: true;
|
|
71
|
+
readonly Subset: true;
|
|
72
|
+
readonly Superset: true;
|
|
73
|
+
readonly Element: true;
|
|
74
|
+
readonly NotElement: true;
|
|
75
|
+
readonly EmptySet: true;
|
|
76
|
+
readonly Universal: true;
|
|
77
|
+
readonly Complement: true;
|
|
78
|
+
readonly Difference: true;
|
|
79
|
+
readonly SymmetricDiff: true;
|
|
80
|
+
readonly CartesianProduct: true;
|
|
81
|
+
readonly PowerSet: true;
|
|
82
|
+
readonly SetBraces: true;
|
|
83
|
+
readonly Mapping: true;
|
|
84
|
+
};
|
|
85
|
+
readonly statistics: {
|
|
86
|
+
readonly BarChart: true;
|
|
87
|
+
readonly Histogram: true;
|
|
88
|
+
readonly BellCurve: true;
|
|
89
|
+
readonly Scatter: true;
|
|
90
|
+
readonly LineGraph: true;
|
|
91
|
+
readonly PieChart: true;
|
|
92
|
+
readonly BoxPlot: true;
|
|
93
|
+
readonly Mean: true;
|
|
94
|
+
readonly Median: true;
|
|
95
|
+
readonly Mode: true;
|
|
96
|
+
readonly StandardDev: true;
|
|
97
|
+
readonly Variance: true;
|
|
98
|
+
readonly Correlation: true;
|
|
99
|
+
readonly Regression: true;
|
|
100
|
+
readonly Probability: true;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* Icon counts by category
|
|
105
|
+
*/
|
|
106
|
+
export declare const MATH_ICON_COUNTS: {
|
|
107
|
+
readonly operators: 15;
|
|
108
|
+
readonly functions: 15;
|
|
109
|
+
readonly geometry: 15;
|
|
110
|
+
readonly sets: 15;
|
|
111
|
+
readonly statistics: 15;
|
|
112
|
+
readonly total: 75;
|
|
113
|
+
};
|
|
114
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,YAAY,EACV,aAAa,EACb,iBAAiB,EACjB,eAAe,EACf,YAAY,EACZ,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,WAAW,EACX,kBAAkB,EAClB,QAAQ,GACT,MAAM,SAAS,CAAC;AAGjB,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAGpE,OAAO,EACL,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,MAAM,EACN,MAAM,EACN,SAAS,EACT,QAAQ,EACR,WAAW,EACX,WAAW,EACX,cAAc,EACd,SAAS,EACT,OAAO,EACP,MAAM,EACN,KAAK,EACL,UAAU,EACV,aAAa,GACd,MAAM,aAAa,CAAC;AAGrB,OAAO,EACL,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,SAAS,EACT,OAAO,EACP,KAAK,EACL,EAAE,EACF,YAAY,EACZ,YAAY,IAAI,QAAQ,EACxB,KAAK,EACL,KAAK,EACL,KAAK,EACL,MAAM,EACN,SAAS,EACT,SAAS,EACT,QAAQ,EACR,aAAa,GACd,MAAM,aAAa,CAAC;AAGrB,OAAO,EACL,QAAQ,EACR,MAAM,EACN,MAAM,EACN,IAAI,EACJ,MAAM,EACN,OAAO,EACP,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,KAAK,EACL,QAAQ,EACR,aAAa,EACb,OAAO,EACP,UAAU,EACV,aAAa,GACd,MAAM,YAAY,CAAC;AAGpB,OAAO,EACL,KAAK,EACL,YAAY,EACZ,MAAM,EACN,QAAQ,EACR,OAAO,EACP,UAAU,EACV,QAAQ,EACR,SAAS,EACT,UAAU,EACV,UAAU,EACV,aAAa,EACb,gBAAgB,EAChB,QAAQ,EACR,SAAS,EACT,OAAO,EACP,QAAQ,GACT,MAAM,QAAQ,CAAC;AAGhB,OAAO,EACL,QAAQ,EACR,SAAS,EACT,SAAS,EACT,OAAO,EACP,SAAS,EACT,QAAQ,EACR,OAAO,EACP,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,WAAW,EACX,QAAQ,EACR,WAAW,EACX,UAAU,EACV,WAAW,EACX,eAAe,GAChB,MAAM,cAAc,CAAC;AAEtB;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuFf,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;;;;CAOnB,CAAC"}
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import { c, g } from "./createMathIcon-BbQhEo0A.mjs";
|
|
2
|
+
import { Divide, Equals, GreaterOrEqual, GreaterThan, LessOrEqual, LessThan, Minus, Modulo, Multiply, NotEquals, Percent, Plus, PlusMinus, Power, SquareRoot, operatorIcons } from "./operators.mjs";
|
|
3
|
+
import { Absolute, Delta, Derivative, Factorial, Function, InfinityIcon, InfinityIcon as InfinityIcon2, Integral, Lambda, Limit, Logarithm, Pi, Product, Sigma, Summation, Theta, functionIcons } from "./functions.mjs";
|
|
4
|
+
import { Angle, Circle, Compass, Cone, Cube, Cylinder, Hexagon, Parallel, Pentagon, Perpendicular, Protractor, Pyramid, Sphere, Square, Triangle, geometryIcons } from "./geometry.mjs";
|
|
5
|
+
import { CartesianProduct, Complement, Difference, Element, EmptySet, Intersection, Mapping, NotElement, PowerSet, SetBraces, Subset, Superset, SymmetricDiff, Union, Universal, setIcons } from "./sets.mjs";
|
|
6
|
+
import { BarChart, BellCurve, BoxPlot, Correlation, Histogram, LineGraph, Mean, Median, Mode, PieChart, Probability, Regression, Scatter, StandardDev, Variance, statisticsIcons } from "./statistics.mjs";
|
|
7
|
+
const allMathIcons = {
|
|
8
|
+
operators: {
|
|
9
|
+
Plus: true,
|
|
10
|
+
Minus: true,
|
|
11
|
+
Multiply: true,
|
|
12
|
+
Divide: true,
|
|
13
|
+
Equals: true,
|
|
14
|
+
NotEquals: true,
|
|
15
|
+
LessThan: true,
|
|
16
|
+
GreaterThan: true,
|
|
17
|
+
LessOrEqual: true,
|
|
18
|
+
GreaterOrEqual: true,
|
|
19
|
+
PlusMinus: true,
|
|
20
|
+
Percent: true,
|
|
21
|
+
Modulo: true,
|
|
22
|
+
Power: true,
|
|
23
|
+
SquareRoot: true
|
|
24
|
+
},
|
|
25
|
+
functions: {
|
|
26
|
+
Function: true,
|
|
27
|
+
Integral: true,
|
|
28
|
+
Derivative: true,
|
|
29
|
+
Summation: true,
|
|
30
|
+
Product: true,
|
|
31
|
+
Limit: true,
|
|
32
|
+
Pi: true,
|
|
33
|
+
Infinity: true,
|
|
34
|
+
InfinityIcon: true,
|
|
35
|
+
Sigma: true,
|
|
36
|
+
Delta: true,
|
|
37
|
+
Theta: true,
|
|
38
|
+
Lambda: true,
|
|
39
|
+
Factorial: true,
|
|
40
|
+
Logarithm: true,
|
|
41
|
+
Absolute: true
|
|
42
|
+
},
|
|
43
|
+
geometry: {
|
|
44
|
+
Triangle: true,
|
|
45
|
+
Square: true,
|
|
46
|
+
Circle: true,
|
|
47
|
+
Cube: true,
|
|
48
|
+
Sphere: true,
|
|
49
|
+
Pyramid: true,
|
|
50
|
+
Cylinder: true,
|
|
51
|
+
Cone: true,
|
|
52
|
+
Pentagon: true,
|
|
53
|
+
Hexagon: true,
|
|
54
|
+
Angle: true,
|
|
55
|
+
Parallel: true,
|
|
56
|
+
Perpendicular: true,
|
|
57
|
+
Compass: true,
|
|
58
|
+
Protractor: true
|
|
59
|
+
},
|
|
60
|
+
sets: {
|
|
61
|
+
Union: true,
|
|
62
|
+
Intersection: true,
|
|
63
|
+
Subset: true,
|
|
64
|
+
Superset: true,
|
|
65
|
+
Element: true,
|
|
66
|
+
NotElement: true,
|
|
67
|
+
EmptySet: true,
|
|
68
|
+
Universal: true,
|
|
69
|
+
Complement: true,
|
|
70
|
+
Difference: true,
|
|
71
|
+
SymmetricDiff: true,
|
|
72
|
+
CartesianProduct: true,
|
|
73
|
+
PowerSet: true,
|
|
74
|
+
SetBraces: true,
|
|
75
|
+
Mapping: true
|
|
76
|
+
},
|
|
77
|
+
statistics: {
|
|
78
|
+
BarChart: true,
|
|
79
|
+
Histogram: true,
|
|
80
|
+
BellCurve: true,
|
|
81
|
+
Scatter: true,
|
|
82
|
+
LineGraph: true,
|
|
83
|
+
PieChart: true,
|
|
84
|
+
BoxPlot: true,
|
|
85
|
+
Mean: true,
|
|
86
|
+
Median: true,
|
|
87
|
+
Mode: true,
|
|
88
|
+
StandardDev: true,
|
|
89
|
+
Variance: true,
|
|
90
|
+
Correlation: true,
|
|
91
|
+
Regression: true,
|
|
92
|
+
Probability: true
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
const MATH_ICON_COUNTS = {
|
|
96
|
+
operators: 15,
|
|
97
|
+
functions: 15,
|
|
98
|
+
geometry: 15,
|
|
99
|
+
sets: 15,
|
|
100
|
+
statistics: 15,
|
|
101
|
+
total: 75
|
|
102
|
+
};
|
|
103
|
+
export {
|
|
104
|
+
Absolute,
|
|
105
|
+
Angle,
|
|
106
|
+
BarChart,
|
|
107
|
+
BellCurve,
|
|
108
|
+
BoxPlot,
|
|
109
|
+
CartesianProduct,
|
|
110
|
+
Circle,
|
|
111
|
+
Compass,
|
|
112
|
+
Complement,
|
|
113
|
+
Cone,
|
|
114
|
+
Correlation,
|
|
115
|
+
Cube,
|
|
116
|
+
Cylinder,
|
|
117
|
+
Delta,
|
|
118
|
+
Derivative,
|
|
119
|
+
Difference,
|
|
120
|
+
Divide,
|
|
121
|
+
Element,
|
|
122
|
+
EmptySet,
|
|
123
|
+
Equals,
|
|
124
|
+
Factorial,
|
|
125
|
+
Function,
|
|
126
|
+
GreaterOrEqual,
|
|
127
|
+
GreaterThan,
|
|
128
|
+
Hexagon,
|
|
129
|
+
Histogram,
|
|
130
|
+
InfinityIcon as Infinity,
|
|
131
|
+
InfinityIcon2 as InfinityIcon,
|
|
132
|
+
Integral,
|
|
133
|
+
Intersection,
|
|
134
|
+
Lambda,
|
|
135
|
+
LessOrEqual,
|
|
136
|
+
LessThan,
|
|
137
|
+
Limit,
|
|
138
|
+
LineGraph,
|
|
139
|
+
Logarithm,
|
|
140
|
+
MATH_ICON_COUNTS,
|
|
141
|
+
Mapping,
|
|
142
|
+
Mean,
|
|
143
|
+
Median,
|
|
144
|
+
Minus,
|
|
145
|
+
Mode,
|
|
146
|
+
Modulo,
|
|
147
|
+
Multiply,
|
|
148
|
+
NotElement,
|
|
149
|
+
NotEquals,
|
|
150
|
+
Parallel,
|
|
151
|
+
Pentagon,
|
|
152
|
+
Percent,
|
|
153
|
+
Perpendicular,
|
|
154
|
+
Pi,
|
|
155
|
+
PieChart,
|
|
156
|
+
Plus,
|
|
157
|
+
PlusMinus,
|
|
158
|
+
Power,
|
|
159
|
+
PowerSet,
|
|
160
|
+
Probability,
|
|
161
|
+
Product,
|
|
162
|
+
Protractor,
|
|
163
|
+
Pyramid,
|
|
164
|
+
Regression,
|
|
165
|
+
Scatter,
|
|
166
|
+
SetBraces,
|
|
167
|
+
Sigma,
|
|
168
|
+
Sphere,
|
|
169
|
+
Square,
|
|
170
|
+
SquareRoot,
|
|
171
|
+
StandardDev,
|
|
172
|
+
Subset,
|
|
173
|
+
Summation,
|
|
174
|
+
Superset,
|
|
175
|
+
SymmetricDiff,
|
|
176
|
+
Theta,
|
|
177
|
+
Triangle,
|
|
178
|
+
Union,
|
|
179
|
+
Universal,
|
|
180
|
+
Variance,
|
|
181
|
+
allMathIcons,
|
|
182
|
+
c as createMathIcon,
|
|
183
|
+
functionIcons,
|
|
184
|
+
geometryIcons,
|
|
185
|
+
g as getMathAnimation,
|
|
186
|
+
operatorIcons,
|
|
187
|
+
setIcons,
|
|
188
|
+
statisticsIcons
|
|
189
|
+
};
|
|
190
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../src/index.ts"],"sourcesContent":["/**\r\n * @nice2dev/icons-math\r\n * Mathematics icon library for React applications\r\n */\r\n\r\n// Types\r\nexport type {\r\n MathIconProps,\r\n MathIconAnimation,\r\n MathIconVariant,\r\n MathIconName,\r\n OperatorIconName,\r\n FunctionIconName,\r\n GeometryIconName,\r\n SetIconName,\r\n StatisticsIconName,\r\n MathIcon,\r\n} from './types';\r\n\r\n// Factory\r\nexport { createMathIcon, getMathAnimation } from './createMathIcon';\r\n\r\n// Operator icons\r\nexport {\r\n Plus,\r\n Minus,\r\n Multiply,\r\n Divide,\r\n Equals,\r\n NotEquals,\r\n LessThan,\r\n GreaterThan,\r\n LessOrEqual,\r\n GreaterOrEqual,\r\n PlusMinus,\r\n Percent,\r\n Modulo,\r\n Power,\r\n SquareRoot,\r\n operatorIcons,\r\n} from './operators';\r\n\r\n// Function icons\r\nexport {\r\n Function,\r\n Integral,\r\n Derivative,\r\n Summation,\r\n Product,\r\n Limit,\r\n Pi,\r\n InfinityIcon,\r\n InfinityIcon as Infinity,\r\n Sigma,\r\n Delta,\r\n Theta,\r\n Lambda,\r\n Factorial,\r\n Logarithm,\r\n Absolute,\r\n functionIcons,\r\n} from './functions';\r\n\r\n// Geometry icons\r\nexport {\r\n Triangle,\r\n Square,\r\n Circle,\r\n Cube,\r\n Sphere,\r\n Pyramid,\r\n Cylinder,\r\n Cone,\r\n Pentagon,\r\n Hexagon,\r\n Angle,\r\n Parallel,\r\n Perpendicular,\r\n Compass,\r\n Protractor,\r\n geometryIcons,\r\n} from './geometry';\r\n\r\n// Set icons\r\nexport {\r\n Union,\r\n Intersection,\r\n Subset,\r\n Superset,\r\n Element,\r\n NotElement,\r\n EmptySet,\r\n Universal,\r\n Complement,\r\n Difference,\r\n SymmetricDiff,\r\n CartesianProduct,\r\n PowerSet,\r\n SetBraces,\r\n Mapping,\r\n setIcons,\r\n} from './sets';\r\n\r\n// Statistics icons\r\nexport {\r\n BarChart,\r\n Histogram,\r\n BellCurve,\r\n Scatter,\r\n LineGraph,\r\n PieChart,\r\n BoxPlot,\r\n Mean,\r\n Median,\r\n Mode,\r\n StandardDev,\r\n Variance,\r\n Correlation,\r\n Regression,\r\n Probability,\r\n statisticsIcons,\r\n} from './statistics';\r\n\r\n/**\r\n * All math icons grouped by category\r\n */\r\nexport const allMathIcons = {\r\n operators: {\r\n Plus: true,\r\n Minus: true,\r\n Multiply: true,\r\n Divide: true,\r\n Equals: true,\r\n NotEquals: true,\r\n LessThan: true,\r\n GreaterThan: true,\r\n LessOrEqual: true,\r\n GreaterOrEqual: true,\r\n PlusMinus: true,\r\n Percent: true,\r\n Modulo: true,\r\n Power: true,\r\n SquareRoot: true,\r\n },\r\n functions: {\r\n Function: true,\r\n Integral: true,\r\n Derivative: true,\r\n Summation: true,\r\n Product: true,\r\n Limit: true,\r\n Pi: true,\r\n Infinity: true,\r\n InfinityIcon: true,\r\n Sigma: true,\r\n Delta: true,\r\n Theta: true,\r\n Lambda: true,\r\n Factorial: true,\r\n Logarithm: true,\r\n Absolute: true,\r\n },\r\n geometry: {\r\n Triangle: true,\r\n Square: true,\r\n Circle: true,\r\n Cube: true,\r\n Sphere: true,\r\n Pyramid: true,\r\n Cylinder: true,\r\n Cone: true,\r\n Pentagon: true,\r\n Hexagon: true,\r\n Angle: true,\r\n Parallel: true,\r\n Perpendicular: true,\r\n Compass: true,\r\n Protractor: true,\r\n },\r\n sets: {\r\n Union: true,\r\n Intersection: true,\r\n Subset: true,\r\n Superset: true,\r\n Element: true,\r\n NotElement: true,\r\n EmptySet: true,\r\n Universal: true,\r\n Complement: true,\r\n Difference: true,\r\n SymmetricDiff: true,\r\n CartesianProduct: true,\r\n PowerSet: true,\r\n SetBraces: true,\r\n Mapping: true,\r\n },\r\n statistics: {\r\n BarChart: true,\r\n Histogram: true,\r\n BellCurve: true,\r\n Scatter: true,\r\n LineGraph: true,\r\n PieChart: true,\r\n BoxPlot: true,\r\n Mean: true,\r\n Median: true,\r\n Mode: true,\r\n StandardDev: true,\r\n Variance: true,\r\n Correlation: true,\r\n Regression: true,\r\n Probability: true,\r\n },\r\n} as const;\r\n\r\n/**\r\n * Icon counts by category\r\n */\r\nexport const MATH_ICON_COUNTS = {\r\n operators: 15,\r\n functions: 15,\r\n geometry: 15,\r\n sets: 15,\r\n statistics: 15,\r\n total: 75,\r\n} as const;\r\n"],"names":[],"mappings":";;;;;;AA8HO,MAAM,eAAe;AAAA,EAC1B,WAAW;AAAA,IACT,MAAM;AAAA,IACN,OAAO;AAAA,IACP,UAAU;AAAA,IACV,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,WAAW;AAAA,IACX,UAAU;AAAA,IACV,aAAa;AAAA,IACb,aAAa;AAAA,IACb,gBAAgB;AAAA,IAChB,WAAW;AAAA,IACX,SAAS;AAAA,IACT,QAAQ;AA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