使textbox变成参数
This commit is contained in:
parent
fe80e33eae
commit
d16fc6febf
39
api.cjs.js
39
api.cjs.js
@ -19919,13 +19919,6 @@ let Board = Board_1 = class Board extends ExtrudeSolid {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (ent instanceof ExtrudeHole) {
|
|
||||||
if (ent.isHole) {
|
|
||||||
let g = ent.Convert2ExtrudeSolid();
|
|
||||||
g.__TempIndexVersion__ = { Index: ent.Id.Index, Version: ent.__UpdateVersion__ };
|
|
||||||
knifs.push(g);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ClearRelevance(en) {
|
ClearRelevance(en) {
|
||||||
@ -21269,7 +21262,6 @@ let ExtrudeHole = class ExtrudeHole extends Hole {
|
|||||||
this._knifeRadius = 3;
|
this._knifeRadius = 3;
|
||||||
this.isHole = true;
|
this.isHole = true;
|
||||||
this.isThrough = false;
|
this.isThrough = false;
|
||||||
this.RelevanceBoards = [];
|
|
||||||
}
|
}
|
||||||
get KnifeRadius() {
|
get KnifeRadius() {
|
||||||
return this._knifeRadius;
|
return this._knifeRadius;
|
||||||
@ -21617,14 +21609,11 @@ let ExtrudeHole = class ExtrudeHole extends Hole {
|
|||||||
this.type = file.Read();
|
this.type = file.Read();
|
||||||
else
|
else
|
||||||
this.type = GangDrillType.Ljg;
|
this.type = GangDrillType.Ljg;
|
||||||
|
//回退版本5弃用
|
||||||
if (ver > 4) {
|
if (ver > 4) {
|
||||||
let count = file.Read();
|
let count = file.Read();
|
||||||
this.RelevanceBoards.length = 0;
|
for (let i = 0; i < count; i++)
|
||||||
for (let i = 0; i < count; i++) {
|
file.ReadSoftObjectId();
|
||||||
let id = file.ReadSoftObjectId();
|
|
||||||
if (id)
|
|
||||||
this.RelevanceBoards.push(id);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
this.Update();
|
this.Update();
|
||||||
}
|
}
|
||||||
@ -21637,9 +21626,8 @@ let ExtrudeHole = class ExtrudeHole extends Hole {
|
|||||||
file.Write(this.isHole);
|
file.Write(this.isHole);
|
||||||
file.Write(this.isThrough);
|
file.Write(this.isThrough);
|
||||||
file.Write(this.type);
|
file.Write(this.type);
|
||||||
file.Write(this.RelevanceBoards.length);
|
//ver= 5 弃用
|
||||||
for (let id of this.RelevanceBoards)
|
file.Write(0);
|
||||||
file.WriteSoftObjectId(id);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
__decorate([
|
__decorate([
|
||||||
@ -21648,9 +21636,6 @@ __decorate([
|
|||||||
__decorate([
|
__decorate([
|
||||||
AutoRecord
|
AutoRecord
|
||||||
], ExtrudeHole.prototype, "isThrough", void 0);
|
], ExtrudeHole.prototype, "isThrough", void 0);
|
||||||
__decorate([
|
|
||||||
AutoRecord
|
|
||||||
], ExtrudeHole.prototype, "RelevanceBoards", void 0);
|
|
||||||
ExtrudeHole = __decorate([
|
ExtrudeHole = __decorate([
|
||||||
Factory
|
Factory
|
||||||
], ExtrudeHole);
|
], ExtrudeHole);
|
||||||
@ -22917,7 +22902,12 @@ function InitClipperCpp() {
|
|||||||
return new Promise((res, rej) => {
|
return new Promise((res, rej) => {
|
||||||
clipperLib__namespace.loadNativeClipperLibInstanceAsync(
|
clipperLib__namespace.loadNativeClipperLibInstanceAsync(
|
||||||
// let it autodetect which one to use, but also available WasmOnly and AsmJsOnly
|
// let it autodetect which one to use, but also available WasmOnly and AsmJsOnly
|
||||||
clipperLib__namespace.NativeClipperLibRequestedFormat.AsmJsOnly).then(c => {
|
//del_ue_exp_start
|
||||||
|
clipperLib__namespace.NativeClipperLibRequestedFormat.WasmOnly
|
||||||
|
//del_ue_exp_end
|
||||||
|
//del_ue_exp_start
|
||||||
|
//del_ue_exp_end clipperLib.NativeClipperLibRequestedFormat.AsmJsOnly
|
||||||
|
).then(c => {
|
||||||
clipperCpp.lib = c;
|
clipperCpp.lib = c;
|
||||||
res();
|
res();
|
||||||
// console.log("载入成功!");//不再需要
|
// console.log("载入成功!");//不再需要
|
||||||
@ -23218,10 +23208,10 @@ NestCache.CacheRect = new Map();
|
|||||||
|
|
||||||
const TEXT_BOX = NestCache.CreatePath(570, 110);
|
const TEXT_BOX = NestCache.CreatePath(570, 110);
|
||||||
//分析文字放置位置
|
//分析文字放置位置
|
||||||
function ParseRegionTextPos(contour, holes) {
|
function ParseRegionTextPos(contour, holes, textBox = TEXT_BOX) {
|
||||||
let hasTextBox = true;
|
let hasTextBox = true;
|
||||||
let path = new Path(contour);
|
let path = new Path(contour);
|
||||||
let nfps = path.GetInsideNFP(TEXT_BOX)?.map(nfp => Path2Polyline(PathTranslate_Self(PathScale(nfp, 1e-4), path.OrigionMinPoint.x, path.OrigionMinPoint.y))); //可能无法获得
|
let nfps = path.GetInsideNFP(textBox)?.map(nfp => Path2Polyline(PathTranslate_Self(PathScale(nfp, 1e-4), path.OrigionMinPoint.x, path.OrigionMinPoint.y))); //可能无法获得
|
||||||
if (!nfps || nfps.length === 0) {
|
if (!nfps || nfps.length === 0) {
|
||||||
nfps = [Path2Polyline(contour)];
|
nfps = [Path2Polyline(contour)];
|
||||||
hasTextBox = false;
|
hasTextBox = false;
|
||||||
@ -23229,7 +23219,7 @@ function ParseRegionTextPos(contour, holes) {
|
|||||||
let holenfps = [];
|
let holenfps = [];
|
||||||
for (let hole of holes) {
|
for (let hole of holes) {
|
||||||
let hpath = new Path(hole);
|
let hpath = new Path(hole);
|
||||||
let nfps = hpath.GetOutsideNFP(TEXT_BOX);
|
let nfps = hpath.GetOutsideNFP(textBox);
|
||||||
let nfp = nfps[Max(nfps, (n1, n2) => Area(n2) > Area(n1))];
|
let nfp = nfps[Max(nfps, (n1, n2) => Area(n2) > Area(n1))];
|
||||||
let pl = Path2Polyline(PathTranslate_Self(PathScale(nfp, 1e-4), hpath.OrigionMinPoint.x, hpath.OrigionMinPoint.y));
|
let pl = Path2Polyline(PathTranslate_Self(PathScale(nfp, 1e-4), hpath.OrigionMinPoint.x, hpath.OrigionMinPoint.y));
|
||||||
let box = pl.BoundingBox;
|
let box = pl.BoundingBox;
|
||||||
@ -24034,7 +24024,6 @@ exports.ShapeManager = ShapeManager;
|
|||||||
exports.SmartPointsSimply2Polyline = SmartPointsSimply2Polyline;
|
exports.SmartPointsSimply2Polyline = SmartPointsSimply2Polyline;
|
||||||
exports.SmartPolylineSimply2Polyline = SmartPolylineSimply2Polyline;
|
exports.SmartPolylineSimply2Polyline = SmartPolylineSimply2Polyline;
|
||||||
exports.SplineConver2Polyline = SplineConver2Polyline;
|
exports.SplineConver2Polyline = SplineConver2Polyline;
|
||||||
exports.TEXT_BOX = TEXT_BOX;
|
|
||||||
exports.TempPolyline = TempPolyline;
|
exports.TempPolyline = TempPolyline;
|
||||||
exports.VData2Curve = VData2Curve;
|
exports.VData2Curve = VData2Curve;
|
||||||
exports.VKnifToolPath = VKnifToolPath;
|
exports.VKnifToolPath = VKnifToolPath;
|
||||||
|
File diff suppressed because one or more lines are too long
33
api.esm.js
33
api.esm.js
@ -19892,13 +19892,6 @@ let Board = Board_1 = class Board extends ExtrudeSolid {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (ent instanceof ExtrudeHole) {
|
|
||||||
if (ent.isHole) {
|
|
||||||
let g = ent.Convert2ExtrudeSolid();
|
|
||||||
g.__TempIndexVersion__ = { Index: ent.Id.Index, Version: ent.__UpdateVersion__ };
|
|
||||||
knifs.push(g);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ClearRelevance(en) {
|
ClearRelevance(en) {
|
||||||
@ -21242,7 +21235,6 @@ let ExtrudeHole = class ExtrudeHole extends Hole {
|
|||||||
this._knifeRadius = 3;
|
this._knifeRadius = 3;
|
||||||
this.isHole = true;
|
this.isHole = true;
|
||||||
this.isThrough = false;
|
this.isThrough = false;
|
||||||
this.RelevanceBoards = [];
|
|
||||||
}
|
}
|
||||||
get KnifeRadius() {
|
get KnifeRadius() {
|
||||||
return this._knifeRadius;
|
return this._knifeRadius;
|
||||||
@ -21590,14 +21582,11 @@ let ExtrudeHole = class ExtrudeHole extends Hole {
|
|||||||
this.type = file.Read();
|
this.type = file.Read();
|
||||||
else
|
else
|
||||||
this.type = GangDrillType.Ljg;
|
this.type = GangDrillType.Ljg;
|
||||||
|
//回退版本5弃用
|
||||||
if (ver > 4) {
|
if (ver > 4) {
|
||||||
let count = file.Read();
|
let count = file.Read();
|
||||||
this.RelevanceBoards.length = 0;
|
for (let i = 0; i < count; i++)
|
||||||
for (let i = 0; i < count; i++) {
|
file.ReadSoftObjectId();
|
||||||
let id = file.ReadSoftObjectId();
|
|
||||||
if (id)
|
|
||||||
this.RelevanceBoards.push(id);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
this.Update();
|
this.Update();
|
||||||
}
|
}
|
||||||
@ -21610,9 +21599,8 @@ let ExtrudeHole = class ExtrudeHole extends Hole {
|
|||||||
file.Write(this.isHole);
|
file.Write(this.isHole);
|
||||||
file.Write(this.isThrough);
|
file.Write(this.isThrough);
|
||||||
file.Write(this.type);
|
file.Write(this.type);
|
||||||
file.Write(this.RelevanceBoards.length);
|
//ver= 5 弃用
|
||||||
for (let id of this.RelevanceBoards)
|
file.Write(0);
|
||||||
file.WriteSoftObjectId(id);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
__decorate([
|
__decorate([
|
||||||
@ -21621,9 +21609,6 @@ __decorate([
|
|||||||
__decorate([
|
__decorate([
|
||||||
AutoRecord
|
AutoRecord
|
||||||
], ExtrudeHole.prototype, "isThrough", void 0);
|
], ExtrudeHole.prototype, "isThrough", void 0);
|
||||||
__decorate([
|
|
||||||
AutoRecord
|
|
||||||
], ExtrudeHole.prototype, "RelevanceBoards", void 0);
|
|
||||||
ExtrudeHole = __decorate([
|
ExtrudeHole = __decorate([
|
||||||
Factory
|
Factory
|
||||||
], ExtrudeHole);
|
], ExtrudeHole);
|
||||||
@ -23191,10 +23176,10 @@ NestCache.CacheRect = new Map();
|
|||||||
|
|
||||||
const TEXT_BOX = NestCache.CreatePath(570, 110);
|
const TEXT_BOX = NestCache.CreatePath(570, 110);
|
||||||
//分析文字放置位置
|
//分析文字放置位置
|
||||||
function ParseRegionTextPos(contour, holes) {
|
function ParseRegionTextPos(contour, holes, textBox = TEXT_BOX) {
|
||||||
let hasTextBox = true;
|
let hasTextBox = true;
|
||||||
let path = new Path(contour);
|
let path = new Path(contour);
|
||||||
let nfps = path.GetInsideNFP(TEXT_BOX)?.map(nfp => Path2Polyline(PathTranslate_Self(PathScale(nfp, 1e-4), path.OrigionMinPoint.x, path.OrigionMinPoint.y))); //可能无法获得
|
let nfps = path.GetInsideNFP(textBox)?.map(nfp => Path2Polyline(PathTranslate_Self(PathScale(nfp, 1e-4), path.OrigionMinPoint.x, path.OrigionMinPoint.y))); //可能无法获得
|
||||||
if (!nfps || nfps.length === 0) {
|
if (!nfps || nfps.length === 0) {
|
||||||
nfps = [Path2Polyline(contour)];
|
nfps = [Path2Polyline(contour)];
|
||||||
hasTextBox = false;
|
hasTextBox = false;
|
||||||
@ -23202,7 +23187,7 @@ function ParseRegionTextPos(contour, holes) {
|
|||||||
let holenfps = [];
|
let holenfps = [];
|
||||||
for (let hole of holes) {
|
for (let hole of holes) {
|
||||||
let hpath = new Path(hole);
|
let hpath = new Path(hole);
|
||||||
let nfps = hpath.GetOutsideNFP(TEXT_BOX);
|
let nfps = hpath.GetOutsideNFP(textBox);
|
||||||
let nfp = nfps[Max(nfps, (n1, n2) => Area(n2) > Area(n1))];
|
let nfp = nfps[Max(nfps, (n1, n2) => Area(n2) > Area(n1))];
|
||||||
let pl = Path2Polyline(PathTranslate_Self(PathScale(nfp, 1e-4), hpath.OrigionMinPoint.x, hpath.OrigionMinPoint.y));
|
let pl = Path2Polyline(PathTranslate_Self(PathScale(nfp, 1e-4), hpath.OrigionMinPoint.x, hpath.OrigionMinPoint.y));
|
||||||
let box = pl.BoundingBox;
|
let box = pl.BoundingBox;
|
||||||
@ -23984,5 +23969,5 @@ class CurveWrap {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export { Arc, BUL_IS_LINE_FUZZ, BoolOpeartionType, CADFiler, Circle, Circle2Points, ComputeBiarc, Contour, ConverToPolylineAndSplitArc, CurveContainerCurve, CurveWrap, Curves2Points, DuplicateRecordCloning, FeedingToolPath, InitClipperCpp, IsPtsAllOutOrOnReg, IsRect, LargestInteriorRectangle, Line, ParseRegionTextPos, PointsSimplify2PolylineAndParseArc, Polyline, Polyline2Points, PolylineFilletMinArc, Production, Shape, ShapeManager, SmartPointsSimply2Polyline, SmartPolylineSimply2Polyline, SplineConver2Polyline, Status, TEXT_BOX, TempPolyline, UpdateDraw, VData2Curve, VKnifToolPath, clipperCpp, fastCurveInCurve2, isTargetCurInOrOnSourceCur };
|
export { Arc, BUL_IS_LINE_FUZZ, BoolOpeartionType, CADFiler, Circle, Circle2Points, ComputeBiarc, Contour, ConverToPolylineAndSplitArc, CurveContainerCurve, CurveWrap, Curves2Points, DuplicateRecordCloning, FeedingToolPath, InitClipperCpp, IsPtsAllOutOrOnReg, IsRect, LargestInteriorRectangle, Line, ParseRegionTextPos, PointsSimplify2PolylineAndParseArc, Polyline, Polyline2Points, PolylineFilletMinArc, Production, Shape, ShapeManager, SmartPointsSimply2Polyline, SmartPolylineSimply2Polyline, SplineConver2Polyline, Status, TempPolyline, UpdateDraw, VData2Curve, VKnifToolPath, clipperCpp, fastCurveInCurve2, isTargetCurInOrOnSourceCur };
|
||||||
//# sourceMappingURL=api.esm.js.map
|
//# sourceMappingURL=api.esm.js.map
|
||||||
|
File diff suppressed because one or more lines are too long
@ -7,7 +7,6 @@ import { CADFiler } from "../CADFiler";
|
|||||||
import { DragPointType } from "../Entity/DragPointType";
|
import { DragPointType } from "../Entity/DragPointType";
|
||||||
import { ExtrudeContourCurve, ExtrudeSolid } from "../Entity/Extrude";
|
import { ExtrudeContourCurve, ExtrudeSolid } from "../Entity/Extrude";
|
||||||
import { Polyline } from "../Entity/Polyline";
|
import { Polyline } from "../Entity/Polyline";
|
||||||
import { ObjectId } from "../ObjectId";
|
|
||||||
import { Shape } from "../Shape";
|
import { Shape } from "../Shape";
|
||||||
import { OBB } from './../../Geometry/OBB/obb';
|
import { OBB } from './../../Geometry/OBB/obb';
|
||||||
import { Hole } from "./Hole";
|
import { Hole } from "./Hole";
|
||||||
@ -17,7 +16,6 @@ export declare class ExtrudeHole extends Hole {
|
|||||||
protected _knifeRadius: number;
|
protected _knifeRadius: number;
|
||||||
isHole: boolean;
|
isHole: boolean;
|
||||||
isThrough: boolean;
|
isThrough: boolean;
|
||||||
RelevanceBoards: ObjectId[];
|
|
||||||
get KnifeRadius(): number;
|
get KnifeRadius(): number;
|
||||||
set KnifeRadius(v: number);
|
set KnifeRadius(v: number);
|
||||||
Explode(): (Polyline | import("../Entity/Circle").Circle)[];
|
Explode(): (Polyline | import("../Entity/Circle").Circle)[];
|
||||||
|
@ -1 +1 @@
|
|||||||
{"version":3,"file":"ExtrudeHole.d.ts","sourceRoot":"","sources":["../../../../src/DatabaseServices/3DSolid/ExtrudeHole.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAA2C,QAAQ,EAAwE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAC3M,OAAO,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAC;AAMvD,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAK7C,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAG7D,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtE,OAAO,EAAE,QAAQ,EAAE,MAAM,o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AC,MAAM,EAAE,MAAM,EAAE;IAUhC,2BAA2B,CAAC,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE,QAAQ,EAAE,aAAa;IA6E3F,aAAa,IAAI,KAAK,CAAC,OAAO,CAAC;IAI/B,gBAAgB;IAIhB,cAAc,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,OAAO;IAIhD,iBAAiB,CAAC,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,OAAO;IAIxD,oBAAoB;IASpB,gBAAgB;IAWhB,cAAc,CAAC,UAAU,GAAE,UAAiC;IA6B5D,gBAAgB,CAAC,UAAU,EAAE,UAAU,EAAE,GAAG,EAAE,QAAQ;IAuCtD,wBAAwB,CAAC,UAAU,EAAE,UAAU,EAAE,GAAG,EAAE,QAAQ;IAmB9D,SAAS,IAAI,IAAI;IAWjB,IAAI,GAAG,IAAI,GAAG,CAIb;IACD,QAAQ,CAAC,IAAI,EAAE,QAAQ;IA6BvB,SAAS,CAAC,IAAI,EAAE,QAAQ;CAa3B"}
|
File diff suppressed because one or more lines are too long
@ -1,6 +1,5 @@
|
|||||||
import { Vector3 } from "three";
|
import { Vector3 } from "three";
|
||||||
import { Point } from "../../../Nest/Common/Point";
|
import { Point } from "../../../Nest/Common/Point";
|
||||||
import { Path } from "../../../Nest/Core/Path";
|
import { Path } from "../../../Nest/Core/Path";
|
||||||
export declare const TEXT_BOX: Path;
|
export declare function ParseRegionTextPos(contour: Point[], holes: (Point[])[], textBox?: Path): Vector3;
|
||||||
export declare function ParseRegionTextPos(contour: Point[], holes: (Point[])[]): Vector3;
|
|
||||||
//# sourceMappingURL=ParseRegionTextPos.d.ts.map
|
//# sourceMappingURL=ParseRegionTextPos.d.ts.map
|
@ -1 +1 @@
|
|||||||
{"version":3,"file":"ParseRegionTextPos.d.ts","sourceRoot":"","sources":["../../../../../src/DatabaseServices/Room/ParseService/ParseRegionTextPos.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAC;AAInD,OAAO,EAAE,IAAI,EAAiC,MAAM,yBAAyB,CAAC;AAM9E,eAAO,MAAM,QAAQ,MAAiC,CAAC;AAGvD,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,WAuGtE"}
|
{"version":3,"file":"ParseRegionTextPos.d.ts","sourceRoot":"","sources":["../../../../../src/DatabaseServices/Room/ParseService/ParseRegionTextPos.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAC;AAInD,OAAO,EAAE,IAAI,EAAiC,MAAM,yBAAyB,CAAC;AAS9E,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE,OAAO,OAAW,WAuG1F"}
|
@ -1,4 +1,6 @@
|
|||||||
import { CADFiler } from "../../CADFiler";
|
import { CADFiler } from "../../CADFiler";
|
||||||
|
import { I2DModeling } from "../../Entity/Board";
|
||||||
|
import { ExtrudeSolid } from "../../Entity/Extrude";
|
||||||
import { ObjectId } from "../../ObjectId";
|
import { ObjectId } from "../../ObjectId";
|
||||||
import { TemplateAction } from "./TemplateAction";
|
import { TemplateAction } from "./TemplateAction";
|
||||||
export interface IGrooveFillet {
|
export interface IGrooveFillet {
|
||||||
@ -6,7 +8,7 @@ export interface IGrooveFillet {
|
|||||||
ArcParams: number[];
|
ArcParams: number[];
|
||||||
Grooves?: IGrooveFillet[];
|
Grooves?: IGrooveFillet[];
|
||||||
}
|
}
|
||||||
interface IFilletcActionData {
|
export interface IFilletcActionData {
|
||||||
Entity: ObjectId;
|
Entity: ObjectId;
|
||||||
ArcParams: number[];
|
ArcParams: number[];
|
||||||
Grooves?: IGrooveFillet[];
|
Grooves?: IGrooveFillet[];
|
||||||
@ -16,9 +18,10 @@ export declare class TemplateFilletAction extends TemplateAction {
|
|||||||
FilletDatas: IFilletcActionData[];
|
FilletDatas: IFilletcActionData[];
|
||||||
constructor();
|
constructor();
|
||||||
protected _Update(paramDiff: number, newValue: number): void;
|
protected _Update(paramDiff: number, newValue: number): void;
|
||||||
private Fillet;
|
protected Fillet(br: ExtrudeSolid | I2DModeling, newValue: number, d: {
|
||||||
|
ArcParams: number[];
|
||||||
|
}): void;
|
||||||
ReadFile(file: CADFiler): void;
|
ReadFile(file: CADFiler): void;
|
||||||
WriteFile(file: CADFiler): void;
|
WriteFile(file: CADFiler): void;
|
||||||
}
|
}
|
||||||
export {};
|
|
||||||
//# sourceMappingURL=TemplateFilletAction.d.ts.map
|
//# sourceMappingURL=TemplateFilletAction.d.ts.map
|
@ -1 +1 @@
|
|||||||
{"version":3,"file":"TemplateFilletAction.d.ts","sourceRoot":"","sources":["../../../../../src/DatabaseServices/Template/Action/TemplateFilletAction.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAK1C,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,MAAM,WAAW,aAAa;IAE1B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,OAAO,CAAC,EAAE,aAAa,EAAE,CAAC;CAC7B;AAED,UAAU,kBAAkB;IAExB,MAAM,EAAE,QAAQ,CAAC;IACjB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,OAAO,CAAC,EAAE,aAAa,EAAE,CAAC;IAC1B,MAAM,CAAC,EAAE,aAAa,EAAE,CAAC;CAC5B;AAED,qBACa,oBAAqB,SAAQ,cAAc;IAGpD,WAAW,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EAAE,QAAQ;IAqFvB,SAAS,CAAC,IAAI,EAAE,QAAQ;CA2C3B"}
|
@ -1 +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,CAmB9C"}
|
{"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,CAsB9C"}
|
Loading…
Reference in New Issue
Block a user