@fbltd/math 1.0.4 → 1.0.6

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.
@@ -1 +1,2 @@
1
1
  export * from './src';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAA"}
@@ -12,3 +12,4 @@ export declare class Angle {
12
12
  static toCSS(angle: number, unit: AngleUnits): string;
13
13
  static angleUnitCorrespondence: Record<AngleUnits, string>;
14
14
  }
15
+ //# sourceMappingURL=angle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"angle.d.ts","sourceRoot":"","sources":["../../../src/angle.ts"],"names":[],"mappings":"AAEA,oBAAY,UAAU;IAClB,GAAG,IAAI;IACP,GAAG,IAAI;IACP,IAAI,IAAI;CACX;AAGD,qBAAa,KAAK;IAGd,MAAM,CAAC,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,GAAE,UAA2B;IAW7D,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,GAAE,UAA2B;IAW9D,MAAM,CAAC,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,GAAE,UAA2B;IAa7D,MAAM,CAAC,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU;IAWjD,MAAM,CAAC,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU;IAehD,MAAM,CAAC,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU;IAK5C,MAAM,CAAC,uBAAuB,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,CAIzD;CAGJ"}
@@ -5,3 +5,4 @@ export declare class Color {
5
5
  constructor(red: number, green: number, blue: number);
6
6
  toCSS(): string;
7
7
  }
8
+ //# sourceMappingURL=color.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"color.d.ts","sourceRoot":"","sources":["../../../../src/colors/color.ts"],"names":[],"mappings":"AAAA,qBAAa,KAAK;IACK,GAAG,EAAE,MAAM;IAAS,KAAK,EAAE,MAAM;IAAS,IAAI,EAAE,MAAM;gBAAtD,GAAG,EAAE,MAAM,EAAS,KAAK,EAAE,MAAM,EAAS,IAAI,EAAE,MAAM;IAMzE,KAAK;CAGR"}
@@ -15,3 +15,4 @@ export declare class ConicGradient {
15
15
  toCanvas(ctx: CanvasRenderingContext2D, center: IPoint2): CanvasGradient;
16
16
  toCSS(): string;
17
17
  }
18
+ //# sourceMappingURL=conic.gradient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conic.gradient.d.ts","sourceRoot":"","sources":["../../../../src/colors/conic.gradient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,EAAC,MAAM,SAAS,CAAC;AAC9B,OAAO,EAAC,OAAO,EAAC,MAAM,YAAY,CAAC;AAEnC,qBAAa,aAAa;IACtB,MAAM,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,KAAK,CAAA;KAAE,EAAE,CAAA;gBAE7B,GAAG,MAAM,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,KAAK,CAAA;KAAE,EAAE;IAYxD,eAAe,CAAC,KAAK,EAAE,MAAM;IAuB7B,eAAe,CAAC,KAAK,EAAE,KAAK;IAgC5B,cAAc,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO;IAOrC,QAAQ,CAAC,GAAG,EAAE,wBAAwB,EAAE,MAAM,EAAE,OAAO;IAYvD,KAAK;CAYR"}
@@ -1,2 +1,3 @@
1
1
  export * from './color';
2
2
  export * from './conic.gradient';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/colors/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,kBAAkB,CAAA"}
@@ -6,3 +6,4 @@ export declare class Circle {
6
6
  constructor(center: IPoint2, r: number);
7
7
  transform(matrix: IMatrix2d): void;
8
8
  }
9
+ //# sourceMappingURL=circle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"circle.d.ts","sourceRoot":"","sources":["../../../../src/figures/circle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,SAAS,CAAC;AAChC,OAAO,EAAC,SAAS,EAAW,MAAM,WAAW,CAAC;AAE9C,qBAAa,MAAM;IACI,MAAM,EAAE,OAAO;IAAS,CAAC,EAAE,MAAM;gBAAjC,MAAM,EAAE,OAAO,EAAS,CAAC,EAAE,MAAM;IAIpD,SAAS,CAAC,MAAM,EAAE,SAAS;CAG9B"}
@@ -1,3 +1,4 @@
1
1
  export * from './point';
2
2
  export * from './circle';
3
3
  export * from './straight-line';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/figures/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,iBAAiB,CAAA"}
@@ -3,3 +3,4 @@ export declare class Point2 {
3
3
  static sum(p1: IPoint2, p2: IPoint2): IPoint2;
4
4
  static scale(v: IPoint2, factor: number): IPoint2;
5
5
  }
6
+ //# sourceMappingURL=point.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"point.d.ts","sourceRoot":"","sources":["../../../../src/figures/point.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,OAAO,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;AAKtC,qBAAa,MAAM;IACf,MAAM,CAAC,GAAG,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,OAAO,GAAG,OAAO;IAO7C,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO;CAMpD"}
@@ -6,3 +6,4 @@ export declare class StraightLine {
6
6
  constructor(p1: IPoint2, p2: IPoint2);
7
7
  transform(matrix: IMatrix2d, transformThis?: boolean): StraightLine;
8
8
  }
9
+ //# sourceMappingURL=straight-line.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"straight-line.d.ts","sourceRoot":"","sources":["../../../../src/figures/straight-line.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,SAAS,CAAC;AAChC,OAAO,EAAC,SAAS,EAAW,MAAM,WAAW,CAAC;AAE9C,qBAAa,YAAY;IACF,EAAE,EAAE,OAAO;IAAS,EAAE,EAAE,OAAO;gBAA/B,EAAE,EAAE,OAAO,EAAS,EAAE,EAAE,OAAO;IAIlD,SAAS,CAAC,MAAM,EAAE,SAAS,EAAE,aAAa,UAAQ;CAMrD"}
@@ -4,3 +4,4 @@ export * from './operator';
4
4
  export * from './utils';
5
5
  export * from './colors';
6
6
  export * from './figures';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA;AAC1B,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA"}
@@ -12,3 +12,4 @@ export declare class Matrix2d {
12
12
  static multiply(matrix: IMatrix2d, ...matrices: IMatrix2d[]): IMatrix2d;
13
13
  static apply(matrix: IMatrix2d, point: IPoint2): IPoint2;
14
14
  }
15
+ //# sourceMappingURL=matrix.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"matrix.d.ts","sourceRoot":"","sources":["../../../src/matrix.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAElC,MAAM,MAAM,SAAS,GAAG;IACpB,MAAM;IAAE,MAAM;IAAE,MAAM;IACtB,MAAM;IAAE,MAAM;IAAE,MAAM;CACzB,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,SAA8B,CAAA;AAE3D,qBAAa,QAAQ;IACjB,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,SAAS,EAAE,GAAG,QAAQ,EAAE,SAAS,EAAE;IAe3D,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO;CAM3D"}
@@ -5,3 +5,4 @@ export declare class Operator {
5
5
  private static temp2;
6
6
  static rotateIdentity(angle: number, unit?: AngleUnits): IMatrix2d;
7
7
  }
8
+ //# sourceMappingURL=operator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operator.d.ts","sourceRoot":"","sources":["../../../src/operator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,UAAU,CAAC;AACnC,OAAO,EAAQ,UAAU,EAAC,MAAM,SAAS,CAAC;AAE1C,qBAAa,QAAQ;IACjB,OAAO,CAAC,MAAM,CAAC,KAAK,CAAQ;IAC5B,OAAO,CAAC,MAAM,CAAC,KAAK,CAAQ;IAK5B,MAAM,CAAC,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,GAAE,UAA2B,GAAG,SAAS;CAYrF"}
@@ -1,3 +1,4 @@
1
1
  export declare function approximately(theValue: number, is: number, withPrecision?: number): boolean;
2
2
  export declare function toPositive(value: number, range: number): number;
3
3
  export declare function isCorrectNumber(value: any): boolean;
4
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/utils.ts"],"names":[],"mappings":"AAAA,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,aAAa,GAAE,MAAa,WAEvF;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,UAGtD;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,GAAG,WAOzC"}
package/package.json CHANGED
@@ -1,9 +1,16 @@
1
1
  {
2
2
  "name": "@fbltd/math",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "",
5
5
  "main": "dist/bin/index.js",
6
6
  "types": "dist/types/index.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "require": "./dist/bin/index.js",
10
+ "import": "./dist/bin/index.js",
11
+ "types": "./dist/types/index.d.ts"
12
+ }
13
+ },
7
14
  "files": [
8
15
  "dist",
9
16
  "README.ms"