pimath 0.0.36 → 0.0.37
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/dist/pi.js +5 -5
- package/dist/pi.js.map +1 -1
- package/dist/pi.min.js +1 -1
- package/dist/pi.min.js.map +1 -1
- package/esm/index.d.ts +41 -0
- package/esm/index.js +47 -0
- package/esm/index.js.map +1 -0
- package/package.json +1 -1
- package/src/{main.ts → index.ts} +2 -2
- package/webpack-production-min.config.js +1 -1
- package/webpack-production.config.js +1 -1
- package/webpack.config.js +1 -1
package/esm/index.d.ts
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Numeric } from "./maths/numeric";
|
|
2
|
+
import { NumExp } from "./maths/expressions/numexp";
|
|
3
|
+
import { Shutingyard } from "./maths/shutingyard";
|
|
4
|
+
import { Random } from "./maths/randomization/random";
|
|
5
|
+
import { Fraction } from "./maths/coefficients/fraction";
|
|
6
|
+
import { Nthroot } from "./maths/coefficients/nthroot";
|
|
7
|
+
import { Monom } from "./maths/algebra/monom";
|
|
8
|
+
import { Polynom } from "./maths/algebra/polynom";
|
|
9
|
+
import { Equation } from "./maths/algebra/equation";
|
|
10
|
+
import { LinearSystem } from "./maths/algebra/linearSystem";
|
|
11
|
+
import { Rational } from "./maths/algebra/rational";
|
|
12
|
+
import { Logicalset } from "./maths/algebra/logicalset";
|
|
13
|
+
import { PolynomExpFactor, PolynomExpProduct } from "./maths/expressions/polynomexp";
|
|
14
|
+
import { Vector } from "./maths/geometry/vector";
|
|
15
|
+
import { Line } from "./maths/geometry/line";
|
|
16
|
+
import { Triangle } from "./maths/geometry/triangle";
|
|
17
|
+
import { Circle } from "./maths/geometry/circle";
|
|
18
|
+
import { Point } from "./maths/geometry/point";
|
|
19
|
+
export declare const PiMath: {
|
|
20
|
+
ShutingYard: typeof Shutingyard;
|
|
21
|
+
Numeric: typeof Numeric;
|
|
22
|
+
NumExp: typeof NumExp;
|
|
23
|
+
Fraction: typeof Fraction;
|
|
24
|
+
Root: typeof Nthroot;
|
|
25
|
+
Monom: typeof Monom;
|
|
26
|
+
Polynom: typeof Polynom;
|
|
27
|
+
Equation: typeof Equation;
|
|
28
|
+
LinearSystem: typeof LinearSystem;
|
|
29
|
+
Rational: typeof Rational;
|
|
30
|
+
Logicalset: typeof Logicalset;
|
|
31
|
+
Random: typeof Random;
|
|
32
|
+
PolynomExpFactor: typeof PolynomExpFactor;
|
|
33
|
+
PolynomExpProduct: typeof PolynomExpProduct;
|
|
34
|
+
Geometry: {
|
|
35
|
+
Vector: typeof Vector;
|
|
36
|
+
Point: typeof Point;
|
|
37
|
+
Line: typeof Line;
|
|
38
|
+
Triangle: typeof Triangle;
|
|
39
|
+
Circle: typeof Circle;
|
|
40
|
+
};
|
|
41
|
+
};
|
package/esm/index.js
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PiMath = void 0;
|
|
4
|
+
const numeric_1 = require("./maths/numeric");
|
|
5
|
+
const numexp_1 = require("./maths/expressions/numexp");
|
|
6
|
+
const shutingyard_1 = require("./maths/shutingyard");
|
|
7
|
+
const random_1 = require("./maths/randomization/random");
|
|
8
|
+
const fraction_1 = require("./maths/coefficients/fraction");
|
|
9
|
+
const nthroot_1 = require("./maths/coefficients/nthroot");
|
|
10
|
+
const monom_1 = require("./maths/algebra/monom");
|
|
11
|
+
const polynom_1 = require("./maths/algebra/polynom");
|
|
12
|
+
const equation_1 = require("./maths/algebra/equation");
|
|
13
|
+
const linearSystem_1 = require("./maths/algebra/linearSystem");
|
|
14
|
+
const rational_1 = require("./maths/algebra/rational");
|
|
15
|
+
const logicalset_1 = require("./maths/algebra/logicalset");
|
|
16
|
+
const polynomexp_1 = require("./maths/expressions/polynomexp");
|
|
17
|
+
const vector_1 = require("./maths/geometry/vector");
|
|
18
|
+
const line_1 = require("./maths/geometry/line");
|
|
19
|
+
const triangle_1 = require("./maths/geometry/triangle");
|
|
20
|
+
const circle_1 = require("./maths/geometry/circle");
|
|
21
|
+
const point_1 = require("./maths/geometry/point");
|
|
22
|
+
// Expose as global
|
|
23
|
+
exports.PiMath = {
|
|
24
|
+
ShutingYard: shutingyard_1.Shutingyard,
|
|
25
|
+
Numeric: numeric_1.Numeric,
|
|
26
|
+
NumExp: numexp_1.NumExp,
|
|
27
|
+
Fraction: fraction_1.Fraction,
|
|
28
|
+
Root: nthroot_1.Nthroot,
|
|
29
|
+
Monom: monom_1.Monom,
|
|
30
|
+
Polynom: polynom_1.Polynom,
|
|
31
|
+
Equation: equation_1.Equation,
|
|
32
|
+
LinearSystem: linearSystem_1.LinearSystem,
|
|
33
|
+
Rational: rational_1.Rational,
|
|
34
|
+
Logicalset: logicalset_1.Logicalset,
|
|
35
|
+
Random: random_1.Random,
|
|
36
|
+
PolynomExpFactor: polynomexp_1.PolynomExpFactor,
|
|
37
|
+
PolynomExpProduct: polynomexp_1.PolynomExpProduct,
|
|
38
|
+
Geometry: {
|
|
39
|
+
Vector: vector_1.Vector,
|
|
40
|
+
Point: point_1.Point,
|
|
41
|
+
Line: line_1.Line,
|
|
42
|
+
Triangle: triangle_1.Triangle,
|
|
43
|
+
Circle: circle_1.Circle
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
window.Pi = exports.PiMath;
|
|
47
|
+
//# sourceMappingURL=index.js.map
|
package/esm/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,6CAAwC;AACxC,uDAAkD;AAClD,qDAAgD;AAChD,yDAAoD;AACpD,4DAAuD;AACvD,0DAAqD;AACrD,iDAA4C;AAC5C,qDAAgD;AAChD,uDAAkD;AAClD,+DAA0D;AAC1D,uDAAkD;AAClD,2DAAsD;AACtD,+DAAmF;AACnF,oDAA+C;AAC/C,gDAA2C;AAC3C,wDAAmD;AACnD,oDAA+C;AAC/C,kDAA6C;AAE7C,mBAAmB;AACN,QAAA,MAAM,GAAG;IAClB,WAAW,EAAE,yBAAW;IACxB,OAAO,EAAE,iBAAO;IAChB,MAAM,EAAE,eAAM;IACd,QAAQ,EAAE,mBAAQ;IAClB,IAAI,EAAE,iBAAO;IACb,KAAK,EAAE,aAAK;IACZ,OAAO,EAAE,iBAAO;IAChB,QAAQ,EAAE,mBAAQ;IAClB,YAAY,EAAE,2BAAY;IAC1B,QAAQ,EAAE,mBAAQ;IAClB,UAAU,EAAE,uBAAU;IACtB,MAAM,EAAE,eAAM;IACd,gBAAgB,EAAE,6BAAgB;IAClC,iBAAiB,EAAE,8BAAiB;IACpC,QAAQ,EAAE;QACN,MAAM,EAAE,eAAM;QACd,KAAK,EAAE,aAAK;QACZ,IAAI,EAAE,WAAI;QACV,QAAQ,EAAE,mBAAQ;QAClB,MAAM,EAAE,eAAM;KACjB;CACJ,CAAC;AACI,MAAO,CAAC,EAAE,GAAG,cAAM,CAAA"}
|
package/package.json
CHANGED
package/src/{main.ts → index.ts}
RENAMED
|
@@ -18,7 +18,7 @@ import {Circle} from "./maths/geometry/circle";
|
|
|
18
18
|
import {Point} from "./maths/geometry/point";
|
|
19
19
|
|
|
20
20
|
// Expose as global
|
|
21
|
-
export const
|
|
21
|
+
export const PiMath = {
|
|
22
22
|
ShutingYard: Shutingyard,
|
|
23
23
|
Numeric: Numeric,
|
|
24
24
|
NumExp: NumExp,
|
|
@@ -41,4 +41,4 @@ export const Pi = {
|
|
|
41
41
|
Circle: Circle
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
|
-
(<any>window).Pi =
|
|
44
|
+
(<any>window).Pi = PiMath
|