@ccpc/math 0.1.3 → 0.1.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ccpc/math",
3
- "version": "0.1.3",
3
+ "version": "0.1.7",
4
4
  "description": "2D geometry and curve math library",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -9,7 +9,7 @@ export declare class DiscreteTopology {
9
9
  * @param params 离散精度
10
10
  * @param startIdx
11
11
  */
12
- static tessPolygonEx(polygon: Polygon, params?: DiscreteParam, startIdx?: number): IMesh2d;
12
+ static tessPolygonEx(polygon: Polygon, params?: DiscreteParam, _startIdx?: number): IMesh2d;
13
13
  /**
14
14
  * 网格化polygon,得到三角面片
15
15
  * @param _polygon
@@ -1,5 +1,5 @@
1
- import { Paths64, PolyPath64 } from "clipper2-wasm/dist/clipper2z";
2
- import { IPoint, Path, Paths } from "./pave";
1
+ import { Paths64, PolyPath64 } from 'clipper2-wasm/dist/clipper2z';
2
+ import { IPoint, Path, Paths } from './pave';
3
3
  export interface Point<T extends bigint | number> {
4
4
  x: T;
5
5
  y: T;
@@ -30,7 +30,7 @@ export declare function applyMatrixToPt(pt: IPoint, matrix: number[][]): {
30
30
  y: number;
31
31
  };
32
32
  export declare function multiplyMatrix(A: number[][], B: number[][]): number[][];
33
- export declare function inv(square: number[][]): any[][];
33
+ export declare function inv(square: number[][]): number[][];
34
34
  export declare function getBBox(bg: IPoint[][], offset?: number): {
35
35
  right: number;
36
36
  left: number;
@@ -1,5 +1,5 @@
1
- import { IPoint, Paths } from "./pave";
2
- import { IPavePattern, IPolygon } from "./pattern_util";
1
+ import { IPoint, Paths } from './pave';
2
+ import { IPavePattern, IPolygon } from './pattern_util';
3
3
  export declare class Pattern {
4
4
  private precise;
5
5
  private recOffset;
@@ -1,6 +1,6 @@
1
- import { Coord2, Curve2 } from "../..";
2
- import { types } from "../../type_define/i_types";
3
- import { IPoint, Paths } from "./pave";
1
+ import { Coord2, Curve2 } from '../..';
2
+ import { types } from '../../type_define/i_types';
3
+ import { IPoint, Paths } from './pave';
4
4
  export declare class RegionMesh {
5
5
  buffer: types.IFlatMesh;
6
6
  material: number;
@@ -85,7 +85,7 @@ declare class PeriodInterval extends Interval {
85
85
  * @param param
86
86
  * @param tolerance
87
87
  */
88
- equals(that: PeriodInterval, tolerance?: number): boolean;
88
+ equals(that: PeriodInterval, _tolerance?: number): boolean;
89
89
  isClosed(tolerance?: number): boolean;
90
90
  /**
91
91
  * 与区间/点的距离,可使用该距离判断位置关系
@@ -18,7 +18,7 @@ export declare class IntersectCurve3 extends Curve3 {
18
18
  private _domain;
19
19
  constructor();
20
20
  constructor(surface: Surface[], intPts?: ISurfaceSurfaceIntersectPointInfo[]);
21
- toVerbNurbs(range?: Interval | undefined): geom.NurbsCurve;
21
+ toVerbNurbs(range?: Interval): geom.NurbsCurve;
22
22
  updateKonts(): void;
23
23
  getAllPoints(): Vec3[];
24
24
  getIntersectPtsChart(): ISurfaceSurfaceIntersectPointInfo[];