修复:eval2生成代码丢失
This commit is contained in:
44
types/Nest/Common/ArrayExt.d.ts
vendored
44
types/Nest/Common/ArrayExt.d.ts
vendored
@@ -1,44 +0,0 @@
|
||||
/**
|
||||
* 删除数组中指定的元素,返回数组本身
|
||||
* @param {Array<any>} arr 需要操作的数组
|
||||
* @param {*} el 需要移除的元素
|
||||
*/
|
||||
export declare function arrayRemove<T>(arr: Array<T>, el: T): Array<T>;
|
||||
export declare function arrayRemoveOnce<T>(arr: Array<T>, el: T): Array<T>;
|
||||
/**
|
||||
* 删除通过函数校验的元素
|
||||
* @param {(e: T) => boolean} checkFuntion 校验函数
|
||||
*/
|
||||
export declare function arrayRemoveIf<T>(arr: Array<T>, checkFuntion: (e: T) => boolean): Array<T>;
|
||||
export declare function arrayFirst<T>(arr: Array<T>): T;
|
||||
export declare function arrayLast<T>(arr: {
|
||||
[key: number]: T;
|
||||
length: number;
|
||||
}): T;
|
||||
/**
|
||||
* 根据数值从小到大排序数组
|
||||
* @param {Array<T>} arr
|
||||
* @returns {Array<T>} 返回自身
|
||||
*/
|
||||
export declare function arraySortByNumber<T>(arr: Array<T>): Array<T>;
|
||||
/**
|
||||
* 对排序好的数组进行去重操作
|
||||
* @param {(e1, e2) => boolean} [checkFuction] 校验对象相等函数
|
||||
* @returns {Array<T>} 返回自身
|
||||
*/
|
||||
export declare function arrayRemoveDuplicateBySort<T>(arr: Array<T>, checkFuction?: (e1: T, e2: T) => boolean): Array<T>;
|
||||
export declare function arrayMap<T>(arr: Array<T>, mapFunc: (v: T) => T): Array<T>;
|
||||
declare function checkEqual(e1: any, e2: any): boolean;
|
||||
/**
|
||||
* 改变数组的值顺序
|
||||
* @param arr 需要改变初始值位置的数组
|
||||
* @param index //将index位置以后的值放到起始位置
|
||||
*/
|
||||
export declare function changeArrayStartIndex<T>(arr: T[], index: number): T[];
|
||||
export declare function equalArray<T>(a: T[], b: T[], checkF?: typeof checkEqual): boolean;
|
||||
export declare function arrayClone<T>(arr: T[]): T[];
|
||||
export declare function arrayPushArray<T>(arr1: T[], arr2: T[]): T[];
|
||||
export declare function arraySum(arr: number[]): number;
|
||||
export declare function FilterSet<T>(s: Set<T>, fn: (el: T) => boolean): Set<T>;
|
||||
export {};
|
||||
//# sourceMappingURL=ArrayExt.d.ts.map
|
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"ArrayExt.d.ts","sourceRoot":"","sources":["../../../../src/Nest/Common/ArrayExt.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAa7D;AAGD,wBAAgB,eAAe,CAAC,CAAC,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAMjE;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,OAAO,GAAG,KAAK,CAAC,CAAC,CAAC,CAazF;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAG9C;AAED,wBAAgB,SAAS,CAAC,CAAC,EAAE,GAAG,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;CAAE,GAAG,CAAC,CAG1E;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAI5D;AAED;;;;GAIG;AACH,wBAAgB,0BAA0B,CAAC,CAAC,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,YAAY,GAAE,CAAC,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,KAAK,OAAoB,GAAG,KAAK,CAAC,CAAC,CAAC,CAS3H;AAGD,wBAAgB,QAAQ,CAAC,CAAC,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAKzE;AAOD,iBAAS,UAAU,CAAC,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,GAAG,OAAO,CAG7C;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE,KAAK,EAAE,MAAM,GAAG,CAAC,EAAE,CAIrE;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,oBAAa,WAOhE;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,CAG3C;AAGD,wBAAgB,cAAc,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,CAS3D;AAED,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,UAKrC;AAED,wBAAgB,SAAS,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,KAAK,OAAO,GAAG,GAAG,CAAC,CAAC,CAAC,CAStE"}
|
23
types/Nest/Common/ComparePoint.d.ts
vendored
23
types/Nest/Common/ComparePoint.d.ts
vendored
@@ -1,23 +0,0 @@
|
||||
interface Vec2 {
|
||||
x: number;
|
||||
y: number;
|
||||
}
|
||||
export type CompareVectorFn = (v1: Vec2, v2: Vec2) => number;
|
||||
/**
|
||||
* 构建返回一个用来排序的函数.根据key创建排序规则.
|
||||
*
|
||||
* 当key = "xyz" 时,点集按 x从小到大,y从小到大 z从小到大
|
||||
* key = "X" 时,点集按 x从大到小
|
||||
* 以此类推.
|
||||
*
|
||||
* 例子:
|
||||
* let pts:Vector3[] =...;
|
||||
* pts.sort(comparePoint("x")); //x从小到大排序
|
||||
* pts.sort(comparePoint("zX")); //z从小到大 x从大到小
|
||||
*
|
||||
* @export
|
||||
* @param {string} sortKey
|
||||
*/
|
||||
export declare function ComparePoint(sortKey: string): CompareVectorFn;
|
||||
export {};
|
||||
//# sourceMappingURL=ComparePoint.d.ts.map
|
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"ComparePoint.d.ts","sourceRoot":"","sources":["../../../../src/Nest/Common/ComparePoint.ts"],"names":[],"mappings":"AAAA,UAAU,IAAI;IAAG,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAC;CAAE;AAExC,MAAM,MAAM,eAAe,GAAG,CAAC,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,KAAK,MAAM,CAAC;AAO7D;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,eAAe,CAiC7D"}
|
3
types/Nest/Common/ConvexHull2D.d.ts
vendored
3
types/Nest/Common/ConvexHull2D.d.ts
vendored
@@ -1,3 +0,0 @@
|
||||
import { Point } from "./Point";
|
||||
export declare function ConvexHull2D(points: Point[]): Point[];
|
||||
//# sourceMappingURL=ConvexHull2D.d.ts.map
|
@@ -1 +0,0 @@
|
||||
{"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"}
|
2
types/Nest/Common/Shuffle.d.ts
vendored
2
types/Nest/Common/Shuffle.d.ts
vendored
@@ -1,2 +0,0 @@
|
||||
export declare function ShuffleArray<T = any>(array: T[]): void;
|
||||
//# sourceMappingURL=Shuffle.d.ts.map
|
@@ -1 +0,0 @@
|
||||
{"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"}
|
2
types/Nest/Common/Sleep.d.ts
vendored
2
types/Nest/Common/Sleep.d.ts
vendored
@@ -1,2 +0,0 @@
|
||||
export declare function Sleep(time: number): Promise<unknown>;
|
||||
//# sourceMappingURL=Sleep.d.ts.map
|
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"Sleep.d.ts","sourceRoot":"","sources":["../../../../src/Nest/Common/Sleep.ts"],"names":[],"mappings":"AAAA,wBAAsB,KAAK,CAAC,IAAI,EAAE,MAAM,oBAMvC"}
|
4
types/Nest/Converter/ConverBoard2Part.d.ts
vendored
4
types/Nest/Converter/ConverBoard2Part.d.ts
vendored
@@ -1,4 +0,0 @@
|
||||
import { Board } from "../../DatabaseServices/Entity/Board";
|
||||
import { Part } from "../Core/Part";
|
||||
export declare function ConverBoard2Part(board: Board, knifRadius?: number): Part;
|
||||
//# sourceMappingURL=ConverBoard2Part.d.ts.map
|
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"ConverBoard2Part.d.ts","sourceRoot":"","sources":["../../../../src/Nest/Converter/ConverBoard2Part.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,MAAM,qCAAqC,CAAC;AAO5D,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAMpC,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,KAAK,EAAE,UAAU,SAAM,GAAG,IAAI,CAoFrE"}
|
47
types/Nest/Core/Container.d.ts
vendored
47
types/Nest/Core/Container.d.ts
vendored
@@ -1,47 +0,0 @@
|
||||
import { Paths } from "js-angusj-clipper/web";
|
||||
import { Box2 } from "../Common/Box2";
|
||||
import { CompareVectorFn } from "../Common/ComparePoint";
|
||||
import { NestFiler } from "../Common/Filer";
|
||||
import { Point } from "../Common/Point";
|
||||
import { Part } from "./Part";
|
||||
import { Path } from "./Path";
|
||||
import { PlaceType } from "./PlaceType";
|
||||
/**
|
||||
* 排料零件的容器,用来放置零件
|
||||
* 它是一块大板
|
||||
* 也可以是一个网洞
|
||||
* 也可以是余料
|
||||
*/
|
||||
export declare class Container {
|
||||
protected BinPath?: Path;
|
||||
private _PlaceType;
|
||||
ParentId: number;
|
||||
ChildrenIndex: number;
|
||||
ParentM: Point;
|
||||
PlacedParts: Part[];
|
||||
PlacedArea: number;
|
||||
PlacedBox: Box2;
|
||||
PlacedHull: Point[];
|
||||
StatusKey: string;
|
||||
CompartePoint: CompareVectorFn;
|
||||
constructor(BinPath?: Path, _PlaceType?: PlaceType, compare?: string);
|
||||
get UseRatio(): number;
|
||||
private _NotPuts;
|
||||
private PrePut;
|
||||
private Calc;
|
||||
PutPart(p: Part, greedy?: boolean): boolean;
|
||||
protected GetNFPs(part: Part, binNfp: Point[][]): Paths;
|
||||
/**
|
||||
* 将Part添加的Placed列表
|
||||
* @param part 零件,已经计算了放置状态
|
||||
* @param [calc=true] 是否计算当前的容器状态?
|
||||
*/
|
||||
private AppendPart;
|
||||
/**
|
||||
* 得到最左边的点
|
||||
*/
|
||||
protected GetFarLeftP(nfp: Point[][]): Point;
|
||||
ReadFile(file: NestFiler, parts: Part[]): this;
|
||||
WriteFile(file: NestFiler): void;
|
||||
}
|
||||
//# sourceMappingURL=Container.d.ts.map
|
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"Container.d.ts","sourceRoot":"","sources":["../../../../src/Nest/Core/Container.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,EAAgB,MAAM,uBAAuB,CAAC;AAGtE,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAEtC,OAAO,EAAgB,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEvE,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAIxC,OAAO,EAAE,IAAI,EAAa,MAAM,QAAQ,CAAC;AACzC,OAAO,EAAE,IAAI,EAAiB,MAAM,QAAQ,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAaxC;;;;;GAKG;AACH,qBAAa,SAAS;IAeN,SAAS,CAAC,OAAO,CAAC,EAAE,IAAI;IAAE,OAAO,CAAC,UAAU;IAbxD,QAAQ,EAAE,MAAM,CAAM;IACtB,aAAa,EAAE,MAAM,CAAK;IAC1B,OAAO,EAAE,KAAK,CAAC;IAEf,WAAW,EAAE,IAAI,EAAE,CAAM;IAEzB,UAAU,SAAK;IACf,SAAS,EAAE,IAAI,CAAC;IAChB,UAAU,EAAE,KAAK,EAAE,CAAC;IAEpB,SAAS,EAAE,MAAM,CAAC;IAElB,aAAa,EAAE,eAAe,CAAC;gBACT,OAAO,CAAC,EAAE,IAAI,EAAU,UAAU,YAAgB,EAAE,OAAO,SAAO;IAQxF,IAAI,QAAQ,IAAI,MAAM,CAGrB;IAED,OAAO,CAAC,QAAQ,CAAqB;IAErC,OAAO,CAAC,MAAM;IAgHd,OAAO,CAAC,IAAI;IAkCZ,OAAO,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,UAAQ,GAAG,OAAO;IAuCzC,SAAS,CAAC,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,GAAG,KAAK;IAoCvD;;;;OAIG;IACH,OAAO,CAAC,UAAU;IA0BlB;;OAEG;IACH,SAAS,CAAC,WAAW,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE,GAAG,KAAK;IAgB5C,QAAQ,CAAC,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,EAAE;IAuBvC,SAAS,CAAC,IAAI,EAAE,SAAS;CA4B5B"}
|
3
types/Nest/Core/DefaultBin.d.ts
vendored
3
types/Nest/Core/DefaultBin.d.ts
vendored
@@ -1,3 +0,0 @@
|
||||
import { Path } from "./Path";
|
||||
export declare let DefaultBin: Path;
|
||||
//# sourceMappingURL=DefaultBin.d.ts.map
|
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"DefaultBin.d.ts","sourceRoot":"","sources":["../../../../src/Nest/Core/DefaultBin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAG9B,eAAO,IAAI,UAAU,MAA+F,CAAC"}
|
62
types/Nest/Core/Individual.d.ts
vendored
62
types/Nest/Core/Individual.d.ts
vendored
@@ -1,62 +0,0 @@
|
||||
import { NestFiler } from "../Common/Filer";
|
||||
import { Container } from "./Container";
|
||||
import { Part } from "./Part";
|
||||
import { Path } from "./Path";
|
||||
import { PlaceType } from "./PlaceType";
|
||||
/**
|
||||
* 个体(表示某一次优化的结果,或者还没开始优化的状态)
|
||||
* 个体是由一堆零件组成的,零件可以有不同的状态。
|
||||
*
|
||||
* 个体单独变异
|
||||
* 可以是某个零件的旋转状态发生改变
|
||||
* 可以是零件的顺序发生改变
|
||||
*
|
||||
* 个体交配(感觉暂时不需要)
|
||||
* 个体和其他个体进行基因交换
|
||||
*/
|
||||
export declare class Individual {
|
||||
Parts?: Part[];
|
||||
mutationRate: number;
|
||||
private bin?;
|
||||
private OddmentsBins;
|
||||
private ComparePointKeys;
|
||||
constructor(Parts?: Part[], mutationRate?: number, bin?: Path, OddmentsBins?: Path[], ComparePointKeys?: string[]);
|
||||
Fitness: number;
|
||||
Containers: Container[];
|
||||
HoleContainers: Container[];
|
||||
OddmentsContainers: Container[];
|
||||
/**
|
||||
* 评估健康程度
|
||||
*/
|
||||
Evaluate(bestCount: number, greedy?: boolean, type?: PlaceType): void;
|
||||
/**
|
||||
* 在网洞利用时,保持纹路正确
|
||||
*
|
||||
* @param bestCount
|
||||
* @param greedy
|
||||
* @param type
|
||||
*/
|
||||
private EvaluateOfUseRotateHole;
|
||||
/**
|
||||
* 计算健康度
|
||||
*/
|
||||
protected EvalFitness(): void;
|
||||
private AppendHoles;
|
||||
private InitHoleContainers;
|
||||
Clone(): Individual;
|
||||
/**
|
||||
* Point Mutate 点基因突变
|
||||
* 突变
|
||||
* 在变异率较高的情况下,会尝试相邻位置交换
|
||||
* 在变异率较低的情况下,会只调换一次牌,并进行状态突变
|
||||
*/
|
||||
Mutate(): this;
|
||||
/**
|
||||
* 大基因突变
|
||||
* 大洗牌+每个零件状态突变
|
||||
*/
|
||||
BigMutate(): void;
|
||||
ReadFile(file: NestFiler): void;
|
||||
WriteFile(f: NestFiler): void;
|
||||
}
|
||||
//# sourceMappingURL=Individual.d.ts.map
|
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"Individual.d.ts","sourceRoot":"","sources":["../../../../src/Nest/Core/Individual.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC;;;;;;;;;;GAUG;AACH,qBAAa,UAAU;IAEA,KAAK,CAAC,EAAE,IAAI,EAAE;IAAS,YAAY;IAAQ,OAAO,CAAC,GAAG,CAAC;IAAQ,OAAO,CAAC,YAAY;IAAe,OAAO,CAAC,gBAAgB;gBAA1H,KAAK,CAAC,EAAE,IAAI,EAAE,EAAS,YAAY,SAAM,EAAU,GAAG,CAAC,EAAE,IAAI,EAAU,YAAY,GAAE,IAAI,EAAO,EAAU,gBAAgB,GAAE,MAAM,EAA4B;IAEjL,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,SAAS,EAAE,CAAC;IACxB,cAAc,EAAE,SAAS,EAAE,CAAC;IAC5B,kBAAkB,EAAE,SAAS,EAAE,CAAC;IAChC;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,UAAQ,EAAE,IAAI,CAAC,EAAE,SAAS;IA8D5D;;;;;;OAMG;IACH,OAAO,CAAC,uBAAuB;IA4E/B;;OAEG;IACH,SAAS,CAAC,WAAW;IAmBrB,OAAO,CAAC,WAAW;IAcnB,OAAO,CAAC,kBAAkB;IAiB1B,KAAK;IAOL;;;;;MAKE;IACF,MAAM;IA6CN;;;OAGG;IACH,SAAS;IAcT,QAAQ,CAAC,IAAI,EAAE,SAAS;IAsBxB,SAAS,CAAC,CAAC,EAAE,SAAS;CAiBzB"}
|
19
types/Nest/Core/NestDatabase.d.ts
vendored
19
types/Nest/Core/NestDatabase.d.ts
vendored
@@ -1,19 +0,0 @@
|
||||
import { NestFiler } from "../Common/Filer";
|
||||
import { Part } from "./Part";
|
||||
import { Path } from "./Path";
|
||||
export declare const DefaultComparePointKeys: string[];
|
||||
/**
|
||||
* 排料数据库,用这个类来序列化需要排料的数据
|
||||
* 用于在Work间传输
|
||||
*/
|
||||
export declare class NestDatabase {
|
||||
Bin: Path;
|
||||
OddmentsBins: Path[];
|
||||
Paths: Path[];
|
||||
Parts: Part[];
|
||||
ComparePointKeys: string[];
|
||||
ReadFile(file: NestFiler): this;
|
||||
WriteFile(file: NestFiler): this;
|
||||
get File(): NestFiler;
|
||||
}
|
||||
//# sourceMappingURL=NestDatabase.d.ts.map
|
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"NestDatabase.d.ts","sourceRoot":"","sources":["../../../../src/Nest/Core/NestDatabase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAG9B,eAAO,MAAM,uBAAuB,UAAe,CAAC;AAEpD;;;GAGG;AACH,qBAAa,YAAY;IAErB,GAAG,EAAE,IAAI,CAAC;IACV,YAAY,EAAE,IAAI,EAAE,CAAC;IACrB,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,gBAAgB,EAAE,MAAM,EAAE,CAA2B;IAIrD,QAAQ,CAAC,IAAI,EAAE,SAAS;IAoCxB,SAAS,CAAC,IAAI,EAAE,SAAS;IAuBzB,IAAI,IAAI,cAKP;CACJ"}
|
35
types/Nest/Core/OptimizeMachine.d.ts
vendored
35
types/Nest/Core/OptimizeMachine.d.ts
vendored
@@ -1,35 +0,0 @@
|
||||
import { Individual } from "./Individual";
|
||||
import { Part } from "./Part";
|
||||
import { Path } from "./Path";
|
||||
/**
|
||||
* 优化器
|
||||
* 配置优化器
|
||||
* 放入零件
|
||||
* 按下启动
|
||||
* 按下暂停
|
||||
* 清理机台
|
||||
*/
|
||||
export declare class OptimizeMachine {
|
||||
Config: {
|
||||
PopulationCount: number;
|
||||
};
|
||||
Bin: Path;
|
||||
OddmentsBins: Path[];
|
||||
Parts: Part[];
|
||||
ComparePointKeys: string[];
|
||||
private _IsSuspend;
|
||||
protected _Individuals: Individual[];
|
||||
constructor();
|
||||
PutParts(parts: Part[]): void;
|
||||
callBack: (i: Individual) => Promise<void>;
|
||||
Start(): Promise<void>;
|
||||
calcCount: number;
|
||||
best: number;
|
||||
bestP: Individual;
|
||||
bestCount: number;
|
||||
private Run;
|
||||
Suspend(): void;
|
||||
Continue(): void;
|
||||
Clear(): void;
|
||||
}
|
||||
//# sourceMappingURL=OptimizeMachine.d.ts.map
|
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"OptimizeMachine.d.ts","sourceRoot":"","sources":["../../../../src/Nest/Core/OptimizeMachine.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG1C,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B;;;;;;;GAOG;AACH,qBAAa,eAAe;IAGxB,MAAM,EAAE;QACJ,eAAe,EAAE,MAAM,CAAC;KAC3B,CAAC;IAEF,GAAG,EAAE,IAAI,CAAC;IACV,YAAY,EAAE,IAAI,EAAE,CAAC;IACrB,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,gBAAgB,EAAE,MAAM,EAAE,CAA2B;IAKrD,OAAO,CAAC,UAAU,CAAS;IAE3B,SAAS,CAAC,YAAY,EAAE,UAAU,EAAE,CAAC;;IAQrC,QAAQ,CAAC,KAAK,EAAE,IAAI,EAAE;IActB,QAAQ,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAGrC,KAAK;IAoBX,SAAS,SAAK;IACd,IAAI,SAAY;IAChB,KAAK,EAAE,UAAU,CAAC;IAClB,SAAS,SAAK;YACA,GAAG;IA2EjB,OAAO;IAQP,QAAQ;IAMR,KAAK;CAGR"}
|
6
types/Nest/Core/OptimizeWorker.worker.d.ts
vendored
6
types/Nest/Core/OptimizeWorker.worker.d.ts
vendored
@@ -1,6 +0,0 @@
|
||||
declare const _default: {
|
||||
new (scriptURL: string | URL, options?: WorkerOptions): Worker;
|
||||
prototype: Worker;
|
||||
} & (new () => Worker);
|
||||
export default _default;
|
||||
//# sourceMappingURL=OptimizeWorker.worker.d.ts.map
|
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"OptimizeWorker.worker.d.ts","sourceRoot":"","sources":["../../../../src/Nest/Core/OptimizeWorker.worker.ts"],"names":[],"mappings":";;;eA4BgD,MAAM;AAAtD,wBAAwD"}
|
13
types/Nest/Core/ParseOddments.d.ts
vendored
13
types/Nest/Core/ParseOddments.d.ts
vendored
@@ -1,13 +0,0 @@
|
||||
import { Container } from "./Container";
|
||||
import { Path } from "./Path";
|
||||
/**
|
||||
* 分析排料结果的余料
|
||||
* @param container 排料结果的容器
|
||||
* @param binPath 容器的bin
|
||||
* @param [knifeRadius=3.5] 刀半径(以便我们再次偏移)
|
||||
* @param squarePath 使用一个正方形路径来简化余料轮廓
|
||||
* @param canPutPaths 使用可以放置的路径列表来测试余料是否可用,如果可用,则保留
|
||||
* @returns Path[] 轮廓的位置存储在OrigionMinPoint中
|
||||
*/
|
||||
export declare function ParseOddments(container: Container, binPath: Path, knifeRadius?: number, squarePath?: Path, canPutPaths?: Path[]): Path[];
|
||||
//# sourceMappingURL=ParseOddments.d.ts.map
|
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"ParseOddments.d.ts","sourceRoot":"","sources":["../../../../src/Nest/Core/ParseOddments.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,EAAE,IAAI,EAAgD,MAAM,QAAQ,CAAC;AAS5E;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,WAAW,GAAE,MAAY,EAAE,UAAU,GAAE,IAAiB,EAAE,WAAW,GAAE,IAAI,EAAgB,GAAG,IAAI,EAAE,CAsLtK"}
|
6
types/Nest/Core/PlaceType.d.ts
vendored
6
types/Nest/Core/PlaceType.d.ts
vendored
@@ -1,6 +0,0 @@
|
||||
export declare enum PlaceType {
|
||||
Hull = 0,
|
||||
Box = 1,
|
||||
Gravity = 2
|
||||
}
|
||||
//# sourceMappingURL=PlaceType.d.ts.map
|
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"PlaceType.d.ts","sourceRoot":"","sources":["../../../../src/Nest/Core/PlaceType.ts"],"names":[],"mappings":"AACA,oBAAY,SAAS;IAEjB,IAAI,IAAI;IACR,GAAG,IAAI;IACP,OAAO,IAAI;CACd"}
|
10
types/Nest/Test/PlaceUtil.d.ts
vendored
10
types/Nest/Test/PlaceUtil.d.ts
vendored
@@ -1,10 +0,0 @@
|
||||
import { Matrix4, Vec2 } from "three";
|
||||
import { Individual } from "../Core/Individual";
|
||||
import { NestDatabase } from "../Core/NestDatabase";
|
||||
import { Part } from "../Core/Part";
|
||||
import { Path } from "../Core/Path";
|
||||
export declare function PlaceCS(part: Part, move?: Vec2): Matrix4;
|
||||
export declare function DrawBin(count: number, binPath: Path): void;
|
||||
export declare function Place(inv: Individual, parts: Part[], binPath: Path): void;
|
||||
export declare function InitParts(binPath?: Path): Promise<NestDatabase>;
|
||||
//# sourceMappingURL=PlaceUtil.d.ts.map
|
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"PlaceUtil.d.ts","sourceRoot":"","sources":["../../../../src/Nest/Test/PlaceUtil.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAW,MAAM,OAAO,CAAC;AAiB/C,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD,OAAO,EAA2B,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAE7E,OAAO,EAAE,IAAI,EAAa,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAUpC,wBAAgB,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,EAAE,IAAI,GAAG,OAAO,CAsBxD;AAaD,wBAAgB,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,QAenD;AAID,wBAAgB,KAAK,CAAC,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,QAiLlE;AAED,wBAAsB,SAAS,CAAC,OAAO,OAAa,GAAG,OAAO,CAAC,YAAY,CAAC,CAuI3E"}
|
5
types/Nest/Test/TestContainer.d.ts
vendored
5
types/Nest/Test/TestContainer.d.ts
vendored
@@ -1,5 +0,0 @@
|
||||
import { Command } from "../../Editor/CommandMachine";
|
||||
export declare class Command_TestContainer implements Command {
|
||||
exec(): Promise<void>;
|
||||
}
|
||||
//# sourceMappingURL=TestContainer.d.ts.map
|
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"TestContainer.d.ts","sourceRoot":"","sources":["../../../../src/Nest/Test/TestContainer.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAUtD,qBACa,qBAAsB,YAAW,OAAO;IAE3C,IAAI;CA2Bb"}
|
5
types/Nest/Test/TestData.d.ts
vendored
5
types/Nest/Test/TestData.d.ts
vendored
@@ -1,5 +0,0 @@
|
||||
import { Command } from "../../Editor/CommandMachine";
|
||||
export declare class Command_NFPData implements Command {
|
||||
exec(): Promise<void>;
|
||||
}
|
||||
//# sourceMappingURL=TestData.d.ts.map
|
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"TestData.d.ts","sourceRoot":"","sources":["../../../../src/Nest/Test/TestData.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAGtD,qBAAa,eAAgB,YAAW,OAAO;IAErC,IAAI;CAgBb"}
|
9
types/Nest/Test/TestDrawYHData.d.ts
vendored
9
types/Nest/Test/TestDrawYHData.d.ts
vendored
@@ -1,9 +0,0 @@
|
||||
import { Command } from "../../Editor/CommandMachine";
|
||||
/**
|
||||
* 如果有优化结果,则调试最后一次的优化结果(并且不绘制新的曲线
|
||||
* 如果没有优化结果,则调试localStore保存的优化结果(绘制新的曲线)
|
||||
*/
|
||||
export declare class Command_TestDrawYHData implements Command {
|
||||
exec(): Promise<void>;
|
||||
}
|
||||
//# sourceMappingURL=TestDrawYHData.d.ts.map
|
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"TestDrawYHData.d.ts","sourceRoot":"","sources":["../../../../src/Nest/Test/TestDrawYHData.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAYtD;;;GAGG;AACH,qBACa,sBAAuB,YAAW,OAAO;IAE5C,IAAI;CAoGb"}
|
4
types/Nest/Test/TestHull.d.ts
vendored
4
types/Nest/Test/TestHull.d.ts
vendored
@@ -1,4 +0,0 @@
|
||||
export declare class Command_TestHull {
|
||||
exec(): Promise<void>;
|
||||
}
|
||||
//# sourceMappingURL=TestHull.d.ts.map
|
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"TestHull.d.ts","sourceRoot":"","sources":["../../../../src/Nest/Test/TestHull.ts"],"names":[],"mappings":"AAOA,qBAAa,gBAAgB;IAEnB,IAAI;CAab"}
|
5
types/Nest/Test/TestNFP.d.ts
vendored
5
types/Nest/Test/TestNFP.d.ts
vendored
@@ -1,5 +0,0 @@
|
||||
import { Command } from "../../Editor/CommandMachine";
|
||||
export declare class Command_TestNFP implements Command {
|
||||
exec(): Promise<void>;
|
||||
}
|
||||
//# sourceMappingURL=TestNFP.d.ts.map
|
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"TestNFP.d.ts","sourceRoot":"","sources":["../../../../src/Nest/Test/TestNFP.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAUtD,qBAAa,eAAgB,YAAW,OAAO;IAErC,IAAI;CA2Fb"}
|
7
types/Nest/Test/TestOffset.d.ts
vendored
7
types/Nest/Test/TestOffset.d.ts
vendored
@@ -1,7 +0,0 @@
|
||||
/**
|
||||
* 测试结果 19-20点以上时,使用c++进行偏移会更快
|
||||
*/
|
||||
export declare class Command_TestOffset {
|
||||
exec(): Promise<void>;
|
||||
}
|
||||
//# sourceMappingURL=TestOffset.d.ts.map
|
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"TestOffset.d.ts","sourceRoot":"","sources":["../../../../src/Nest/Test/TestOffset.ts"],"names":[],"mappings":"AAMA;;GAEG;AAEH,qBAAa,kBAAkB;IAErB,IAAI;CA8Bb"}
|
5
types/Nest/Test/TestPlace.d.ts
vendored
5
types/Nest/Test/TestPlace.d.ts
vendored
@@ -1,5 +0,0 @@
|
||||
import { Command } from "../../Editor/CommandMachine";
|
||||
export declare class Command_TestPlace implements Command {
|
||||
exec(): Promise<void>;
|
||||
}
|
||||
//# sourceMappingURL=TestPlace.d.ts.map
|
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"TestPlace.d.ts","sourceRoot":"","sources":["../../../../src/Nest/Test/TestPlace.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAStD,qBAAa,iBAAkB,YAAW,OAAO;IAEvC,IAAI;CA4Eb"}
|
5
types/Nest/Test/TestPraseOddments.d.ts
vendored
5
types/Nest/Test/TestPraseOddments.d.ts
vendored
@@ -1,5 +0,0 @@
|
||||
import { Command } from "../../Editor/CommandMachine";
|
||||
export declare class Command_TestParseOddments implements Command {
|
||||
exec(): Promise<void>;
|
||||
}
|
||||
//# sourceMappingURL=TestPraseOddments.d.ts.map
|
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"TestPraseOddments.d.ts","sourceRoot":"","sources":["../../../../src/Nest/Test/TestPraseOddments.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAWtD,qBACa,yBAA0B,YAAW,OAAO;IAE/C,IAAI;CA8Bb"}
|
8
types/Nest/Test/TestSaveYHData.d.ts
vendored
8
types/Nest/Test/TestSaveYHData.d.ts
vendored
@@ -1,8 +0,0 @@
|
||||
import { Command } from "../../Editor/CommandMachine";
|
||||
/**
|
||||
* 保存优化结果的数据
|
||||
*/
|
||||
export declare class Command_TestSaveYHData implements Command {
|
||||
exec(): Promise<void>;
|
||||
}
|
||||
//# sourceMappingURL=TestSaveYHData.d.ts.map
|
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"TestSaveYHData.d.ts","sourceRoot":"","sources":["../../../../src/Nest/Test/TestSaveYHData.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAEtD;;GAEG;AACH,qBAAa,sBAAuB,YAAW,OAAO;IAE5C,IAAI;CAKb"}
|
5
types/Nest/Test/TestSimply.d.ts
vendored
5
types/Nest/Test/TestSimply.d.ts
vendored
@@ -1,5 +0,0 @@
|
||||
import { Command } from "../../Editor/CommandMachine";
|
||||
export declare class Command_TestSimply implements Command {
|
||||
exec(): Promise<void>;
|
||||
}
|
||||
//# sourceMappingURL=TestSimply.d.ts.map
|
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"TestSimply.d.ts","sourceRoot":"","sources":["../../../../src/Nest/Test/TestSimply.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAOtD,qBACa,kBAAmB,YAAW,OAAO;IAExC,IAAI;CAiCb"}
|
5
types/Nest/Test/TestSimplyOddments.d.ts
vendored
5
types/Nest/Test/TestSimplyOddments.d.ts
vendored
@@ -1,5 +0,0 @@
|
||||
import { Command } from "../../Editor/CommandMachine";
|
||||
export declare class Command_TestSimplyOddments implements Command {
|
||||
exec(): Promise<void>;
|
||||
}
|
||||
//# sourceMappingURL=TestSimplyOddments.d.ts.map
|
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"TestSimplyOddments.d.ts","sourceRoot":"","sources":["../../../../src/Nest/Test/TestSimplyOddments.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAiBtD,qBAAa,0BAA2B,YAAW,OAAO;IAEhD,IAAI;CAkDb"}
|
5
types/Nest/Test/TestSum.d.ts
vendored
5
types/Nest/Test/TestSum.d.ts
vendored
@@ -1,5 +0,0 @@
|
||||
import { Command } from "../../Editor/CommandMachine";
|
||||
export declare class Command_TestSum implements Command {
|
||||
exec(): Promise<void>;
|
||||
}
|
||||
//# sourceMappingURL=TestSum.d.ts.map
|
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"TestSum.d.ts","sourceRoot":"","sources":["../../../../src/Nest/Test/TestSum.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAQtD,qBAAa,eAAgB,YAAW,OAAO;IAErC,IAAI;CAyDb"}
|
8
types/Nest/Test/TestVariant.d.ts
vendored
8
types/Nest/Test/TestVariant.d.ts
vendored
@@ -1,8 +0,0 @@
|
||||
import { Individual } from "../Core/Individual";
|
||||
import { Curve } from "../../DatabaseServices/Entity/Curve";
|
||||
import { Matrix4 } from "three";
|
||||
export declare let NestVariant: {
|
||||
best?: Individual;
|
||||
curveMap: Map<Curve, Matrix4>;
|
||||
};
|
||||
//# sourceMappingURL=TestVariant.d.ts.map
|
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"TestVariant.d.ts","sourceRoot":"","sources":["../../../../src/Nest/Test/TestVariant.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,qCAAqC,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEhC,eAAO,IAAI,WAAW,EAAE;IACpB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,QAAQ,EAAE,GAAG,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;CACP,CAAC"}
|
5
types/Nest/Test/TestYH2.d.ts
vendored
5
types/Nest/Test/TestYH2.d.ts
vendored
@@ -1,5 +0,0 @@
|
||||
import { Command } from "../../Editor/CommandMachine";
|
||||
export declare class Command_TestYH2 implements Command {
|
||||
exec(): Promise<void>;
|
||||
}
|
||||
//# sourceMappingURL=TestYH2.d.ts.map
|
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"TestYH2.d.ts","sourceRoot":"","sources":["../../../../src/Nest/Test/TestYH2.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAKtD,qBAAa,eAAgB,YAAW,OAAO;IAErC,IAAI;CA4Bb"}
|
5
types/Nest/Test/TestYHSingle.d.ts
vendored
5
types/Nest/Test/TestYHSingle.d.ts
vendored
@@ -1,5 +0,0 @@
|
||||
import { Command } from "../../Editor/CommandMachine";
|
||||
export declare class Command_TestYHSingle implements Command {
|
||||
exec(): Promise<void>;
|
||||
}
|
||||
//# sourceMappingURL=TestYHSingle.d.ts.map
|
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"TestYHSingle.d.ts","sourceRoot":"","sources":["../../../../src/Nest/Test/TestYHSingle.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAKtD,qBACa,oBAAqB,YAAW,OAAO;IAE1C,IAAI;CAsDb"}
|
14
types/Nest/Test/TestYHWorker.d.ts
vendored
14
types/Nest/Test/TestYHWorker.d.ts
vendored
@@ -1,14 +0,0 @@
|
||||
import { Command } from "../../Editor/CommandMachine";
|
||||
import { NestDatabase } from "../Core/NestDatabase";
|
||||
export declare const CacheYHData: {
|
||||
OriginalData: any;
|
||||
PlaceData: any[];
|
||||
DiscardPlaceData: any[];
|
||||
};
|
||||
export declare const CacheYHDatabase: {
|
||||
Db: NestDatabase;
|
||||
};
|
||||
export declare class Command_TestYHWorker implements Command {
|
||||
exec(): Promise<void>;
|
||||
}
|
||||
//# sourceMappingURL=TestYHWorker.d.ts.map
|
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"TestYHWorker.d.ts","sourceRoot":"","sources":["../../../../src/Nest/Test/TestYHWorker.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAe,MAAM,6BAA6B,CAAC;AAKnE,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAKpD,eAAO,MAAM,WAAW;;;;CAAmE,CAAC;AAC5F,eAAO,MAAM,eAAe,EAAE;IAAE,EAAE,EAAE,YAAY,CAAC;CAAiB,CAAC;AAEnE,qBACa,oBAAqB,YAAW,OAAO;IAE1C,IAAI;CAoDb"}
|
Reference in New Issue
Block a user