0.0.1
This commit is contained in:
33
types/Nest/Common/Box2.d.ts
vendored
Normal file
33
types/Nest/Common/Box2.d.ts
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
import { Vector2 } from "./Vector2";
|
||||
import { Point } from "./Point";
|
||||
export declare class Box2 {
|
||||
min: Vector2;
|
||||
max: Vector2;
|
||||
constructor(min?: Vector2, max?: Vector2);
|
||||
get area(): number;
|
||||
set(min: Vector2, max: Vector2): Box2;
|
||||
setFromPoints(points: Vector2[]): Box2;
|
||||
private static _setFromCenterAndSize_v1;
|
||||
setFromCenterAndSize(center: Vector2, size: Vector2): Box2;
|
||||
clone(): Box2;
|
||||
copy(box: Box2): Box2;
|
||||
makeEmpty(): Box2;
|
||||
isEmpty(): boolean;
|
||||
getCenter(result?: Vector2): Vector2;
|
||||
getSize(result?: Vector2): Vector2;
|
||||
expandByPoint(point: Vector2): Box2;
|
||||
expandByVector(vector: Vector2): Box2;
|
||||
expandByScalar(scalar: number): Box2;
|
||||
containsPoint(point: Vector2): boolean;
|
||||
containsBox(box: Box2): boolean;
|
||||
getParameter(point: Vector2, result?: Vector2): Vector2;
|
||||
intersectsBox(box: Box2): boolean;
|
||||
clampPoint(point: Vector2, result?: Vector2): Vector2;
|
||||
private static _distanceToPoint_v1;
|
||||
distanceToPoint(point: Vector2): number;
|
||||
intersect(box: Box2): Box2;
|
||||
union(box: Box2): Box2;
|
||||
translate(offset: Point): Box2;
|
||||
equals(box: Box2): boolean;
|
||||
}
|
||||
//# sourceMappingURL=Box2.d.ts.map
|
1
types/Nest/Common/Box2.d.ts.map
Normal file
1
types/Nest/Common/Box2.d.ts.map
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Box2.d.ts","sourceRoot":"","sources":["../../../../../src/Nest/Common/Box2.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,qBAAa,IAAI;I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AAG,IAAI;IAMtB,SAAS,CAAC,MAAM,EAAE,KAAK,GAAG,IAAI;IAM9B,MAAM,CAAC,GAAG,EAAE,IAAI,GAAG,OAAO;CAI7B"}
|
6
types/Nest/Common/ClipperCpp.d.ts
vendored
Normal file
6
types/Nest/Common/ClipperCpp.d.ts
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
import * as clipperLib from "js-angusj-clipper/web";
|
||||
export declare let clipperCpp: {
|
||||
lib?: clipperLib.ClipperLibWrapper;
|
||||
};
|
||||
export declare function InitClipperCpp(): Promise<void>;
|
||||
//# sourceMappingURL=ClipperCpp.d.ts.map
|
1
types/Nest/Common/ClipperCpp.d.ts.map
Normal file
1
types/Nest/Common/ClipperCpp.d.ts.map
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"ClipperCpp.d.ts","sourceRoot":"","sources":["../../../../../src/Nest/Common/ClipperCpp.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,uBAAuB,CAAC;AAEpD,eAAO,IAAI,UAAU,EAAE;IAAE,GAAG,CAAC,EAAE,UAAU,CAAC,iBAAiB,CAAC;CAAO,CAAC;AACpE,wBAAgB,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC,CAiB9C"}
|
3
types/Nest/Common/ConvexHull2D.d.ts
vendored
Normal file
3
types/Nest/Common/ConvexHull2D.d.ts
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
import { Point } from "./Point";
|
||||
export declare function ConvexHull2D(points: Point[]): Point[];
|
||||
//# sourceMappingURL=ConvexHull2D.d.ts.map
|
1
types/Nest/Common/ConvexHull2D.d.ts.map
Normal file
1
types/Nest/Common/ConvexHull2D.d.ts.map
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"ConvexHull2D.d.ts","sourceRoot":"","sources":["../../../../../src/Nest/Common/ConvexHull2D.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,wBAAgB,YAAY,CAAC,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,CAKrD"}
|
13
types/Nest/Common/Filer.d.ts
vendored
Normal file
13
types/Nest/Common/Filer.d.ts
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
/**
|
||||
* CAD文件数据
|
||||
*/
|
||||
export declare class NestFiler {
|
||||
_datas: any[];
|
||||
private readIndex;
|
||||
constructor(_datas?: any[]);
|
||||
Clear(): this;
|
||||
Reset(): this;
|
||||
Write(data: any): this;
|
||||
Read(): any;
|
||||
}
|
||||
//# sourceMappingURL=Filer.d.ts.map
|
1
types/Nest/Common/Filer.d.ts.map
Normal file
1
types/Nest/Common/Filer.d.ts.map
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Filer.d.ts","sourceRoot":"","sources":["../../../../../src/Nest/Common/Filer.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,qBAAa,SAAS;IAGC,MAAM,EAAE,GAAG,EAAE;IADhC,OAAO,CAAC,SAAS,CAAa;gBACX,MAAM,GAAE,GAAG,EAAO;IAErC,KAAK;IAKL,KAAK;IAML,KAAK,CAAC,IAAI,EAAE,GAAG;IAMf,IAAI,IAAI,GAAG;CAId"}
|
5
types/Nest/Common/Point.d.ts
vendored
Normal file
5
types/Nest/Common/Point.d.ts
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
export interface Point {
|
||||
x: number;
|
||||
y: number;
|
||||
}
|
||||
//# sourceMappingURL=Point.d.ts.map
|
1
types/Nest/Common/Point.d.ts.map
Normal file
1
types/Nest/Common/Point.d.ts.map
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Point.d.ts","sourceRoot":"","sources":["../../../../../src/Nest/Common/Point.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,KAAK;IAElB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACb"}
|
2
types/Nest/Common/Random.d.ts
vendored
Normal file
2
types/Nest/Common/Random.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export declare function RandomIndex(count: number, exclude?: number): number;
|
||||
//# sourceMappingURL=Random.d.ts.map
|
1
types/Nest/Common/Random.d.ts.map
Normal file
1
types/Nest/Common/Random.d.ts.map
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Random.d.ts","sourceRoot":"","sources":["../../../../../src/Nest/Common/Random.ts"],"names":[],"mappings":"AAEA,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAMnE"}
|
2
types/Nest/Common/Shuffle.d.ts
vendored
Normal file
2
types/Nest/Common/Shuffle.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export declare function ShuffleArray<T = any>(array: T[]): void;
|
||||
//# sourceMappingURL=Shuffle.d.ts.map
|
1
types/Nest/Common/Shuffle.d.ts.map
Normal file
1
types/Nest/Common/Shuffle.d.ts.map
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Shuffle.d.ts","sourceRoot":"","sources":["../../../../../src/Nest/Common/Shuffle.ts"],"names":[],"mappings":"AAAA,wBAAgB,YAAY,CAAC,CAAC,GAAG,GAAG,EAAE,KAAK,EAAE,CAAC,EAAE,QAO/C"}
|
8
types/Nest/Common/Util.d.ts
vendored
Normal file
8
types/Nest/Common/Util.d.ts
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
export declare function equaln(v1: number, v2: number, fuzz?: number): boolean;
|
||||
export declare function FixIndex(index: number, arr: Array<any> | number): number;
|
||||
/**
|
||||
* @param compart 如果t2大于t1那么返回t2
|
||||
* @returns 索引
|
||||
*/
|
||||
export declare function Max<T>(arr: T[], compart: (t1: T, t2: T) => boolean): number;
|
||||
//# sourceMappingURL=Util.d.ts.map
|
1
types/Nest/Common/Util.d.ts.map
Normal file
1
types/Nest/Common/Util.d.ts.map
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Util.d.ts","sourceRoot":"","sources":["../../../../../src/Nest/Common/Util.ts"],"names":[],"mappings":"AAAA,wBAAgB,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,SAAO,WAGzD;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC,GAAG,MAAM,UAS/D;AAED;;;GAGG;AACH,wBAAgB,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,KAAK,OAAO,GAAG,MAAM,CAc3E"}
|
60
types/Nest/Common/Vector2.d.ts
vendored
Normal file
60
types/Nest/Common/Vector2.d.ts
vendored
Normal file
@@ -0,0 +1,60 @@
|
||||
import { Point } from "./Point";
|
||||
export declare class Vector2 {
|
||||
x: number;
|
||||
y: number;
|
||||
readonly isVector2: boolean;
|
||||
constructor(x?: number, y?: number);
|
||||
get width(): number;
|
||||
set width(value: number);
|
||||
get height(): number;
|
||||
set height(value: number);
|
||||
set(x: number, y: number): Vector2;
|
||||
setScalar(scalar: number): Vector2;
|
||||
setX(x: number): Vector2;
|
||||
setY(y: number): Vector2;
|
||||
setComponent(index: number, value: number): Vector2;
|
||||
getComponent(index: number): number;
|
||||
clone(): Vector2;
|
||||
copy(v: Vector2): Vector2;
|
||||
add(v: Point): Vector2;
|
||||
addScalar(s: number): Vector2;
|
||||
addVectors(a: Vector2, b: Vector2): Vector2;
|
||||
addScaledVector(v: Vector2, s: number): Vector2;
|
||||
sub(v: Vector2): Vector2;
|
||||
subScalar(s: number): Vector2;
|
||||
subVectors(a: Vector2, b: Vector2): Vector2;
|
||||
multiply(v: Vector2): Vector2;
|
||||
multiplyScalar(scalar: number): Vector2;
|
||||
divide(v: Vector2): Vector2;
|
||||
divideScalar(scalar: number): Vector2;
|
||||
min(v: Vector2): Vector2;
|
||||
max(v: Vector2): Vector2;
|
||||
clamp(min: Vector2, max: Vector2): Vector2;
|
||||
private static clampScalar_min;
|
||||
private static clampScalar_max;
|
||||
clampScalar(minVal: number, maxVal: number): Vector2;
|
||||
clampLength(min: number, max: number): Vector2;
|
||||
floor(): Vector2;
|
||||
ceil(): Vector2;
|
||||
round(): Vector2;
|
||||
roundToZero(): Vector2;
|
||||
negate(): Vector2;
|
||||
dot(v: Vector2): number;
|
||||
lengthSq(): number;
|
||||
length(): number;
|
||||
lengthManhattan(): number;
|
||||
normalize(): Vector2;
|
||||
angle(): number;
|
||||
distanceTo(v: Vector2): number;
|
||||
distanceToSquared(v: Vector2): number;
|
||||
distanceToManhattan(v: Vector2): number;
|
||||
setLength(length: number): Vector2;
|
||||
lerp(v: Vector2, alpha: number): Vector2;
|
||||
lerpVectors(v1: Vector2, v2: Vector2, alpha: number): Vector2;
|
||||
equals(v: Vector2): boolean;
|
||||
fromArray(array: Float32Array | number[], offset?: number): Vector2;
|
||||
toArray(array?: Float32Array | number[], offset?: number): Float32Array | number[];
|
||||
fromAttribute(attribute: any, index: number, offset?: number): Vector2;
|
||||
rotateAround(center: Vector2, angle: number): Vector2;
|
||||
}
|
||||
//# sourceMappingURL=Vector2.d.ts.map
|
1
types/Nest/Common/Vector2.d.ts.map
Normal file
1
types/Nest/Common/Vector2.d.ts.map
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Vector2.d.ts","sourceRoot":"","sources":["../../../../../src/Nest/Common/Vector2.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,qBAAa,OAAO;IAEhB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAQ;gBACvB,CAAC,GAAE,MAAU,EAAE,CAAC,GAAE,MAAU;IAKxC,IAAI,KAAK,IAAI,MAAM,CAAmB;IACtC,IAAI,KAAK,CAAC,KAAK,EAAE,MAAM,EAAqB;IAC5C,IAAI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