开发更新

This commit is contained in:
ChenX
2024-03-26 10:01:15 +08:00
parent ed08696189
commit 070821c353
498 changed files with 5192 additions and 10640 deletions

View File

@@ -1,52 +0,0 @@
import { BufferGeometry, CylinderBufferGeometry, LineSegments, Matrix3, Mesh, Object3D, Vector3 } from "three";
import { ObjectSnapMode } from "../../Editor/ObjectSnapMode";
import { Box3Ext } from "../../Geometry/Box";
import { RenderType } from "../../GraphicsSystem/RenderType";
import { CADFiler } from '../CADFiler';
import { Hole } from "./Hole";
export declare enum GangDrillType {
/**偏心轮 */
Pxl = 0,
/**连接杆 */
Ljg = 1,
/**预埋件 */
Ymj = 2,
/**层板钉 */
Nail = 3,
/** 木销 */
Wood = 4,
/** 通孔 */
TK = 5,
WoodPXL = 6
}
export declare class CylinderHole extends Hole {
private _Radius;
constructor();
static CreateCylHole(radius: number, height: number, type: GangDrillType): CylinderHole;
set Radius(r: number);
get Height(): number;
set Height(v: number);
get Radius(): number;
get BoundingBox(): Box3Ext;
/**
* 返回对象在自身坐标系下的Box
*/
get BoundingBoxInOCS(): Box3Ext;
private _MeshGeometry;
get MeshGeometry(): CylinderBufferGeometry;
private _EdgeGeometry;
private get EdgeGeometry();
GetGripPoints(): Vector3[];
GetObjectSnapPoints(snapMode: ObjectSnapMode, pickPoint: Vector3, lastPoint: Vector3, viewXform?: Matrix3): Vector3[];
Erase(isErase?: boolean): void;
InitDrawObject(renderType: RenderType): LineSegments<BufferGeometry, import("three").LineBasicMaterial> | Mesh<CylinderBufferGeometry, import("three").ShaderMaterial>;
private GetObject3DByRenderType;
UpdateDrawObject(type: RenderType, obj: Object3D): void;
UpdateDrawObjectMaterial(type: RenderType, obj: Object3D): void;
ClearDraw(): this;
protected _ReadFile(file: CADFiler): void;
WriteFile(file: CADFiler): void;
}
export declare function FastDrillingMeshGeometry(radius: number, height: number): CylinderBufferGeometry;
export declare function FastDrillingEdgeGeometry(radius: number, height: number): BufferGeometry;
//# sourceMappingURL=CylinderHole.d.ts.map

View File

@@ -1 +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mBAAmB,CACf,QAAQ,EAAE,cAAc,EACxB,SAAS,EAAE,OAAO,EAClB,SAAS,EAAE,OAAO,EAClB,SAAS,CAAC,EAAE,OAAO,GACpB,OAAO,EAAE;IAeZ,KAAK,CAAC,OAAO,GAAE,OAAc;IAc7B,cAAc,CAAC,UAAU,EAAE,UAAU;IAKrC,OAAO,CAAC,uBAAuB;IAW/B,gBAAgB,CAAC,IAAI,EAAE,UAAU,EAAE,GAAG,EAAE,QAAQ;IAOhD,wBAAwB,CAAC,IAAI,EAAE,UAAU,EAAE,GAAG,EAAE,QAAQ;IAiBxD,SAAS,IAAI,IAAI;IAWjB,SAAS,CAAC,SAAS,CAAC,IAAI,EAAE,QAAQ;IAmBlC,SAAS,CAAC,IAAI,EAAE,QAAQ;CAO3B;AAKD,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,0BAUtE;AAGD,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,cAAc,CAwBvF"}

View File

@@ -1,54 +0,0 @@
import { BufferGeometry, Geometry, Matrix3, Matrix4, Mesh, Object3D, Vector3 } from "three";
import { Line2 } from 'three/examples/jsm/lines/Line2';
import { ObjectSnapMode } from "../../Editor/ObjectSnapMode";
import { Box3Ext } from "../../Geometry/Box";
import { RenderType } from "../../GraphicsSystem/RenderType";
import { CADFiler } from "../CADFiler";
import { DragPointType } from "../Entity/DragPointType";
import { ExtrudeContourCurve, ExtrudeSolid } from "../Entity/Extrude";
import { Polyline } from "../Entity/Polyline";
import { Shape } from "../Shape";
import { OBB } from './../../Geometry/OBB/obb';
import { Hole } from "./Hole";
export declare class ExtrudeHole extends Hole {
private _contourCurve;
private _EdgeGeometry;
protected _knifeRadius: number;
isHole: boolean;
isThrough: boolean;
get KnifeRadius(): number;
set KnifeRadius(v: number);
Explode(): (Polyline | import("../Entity/Circle").Circle)[];
get ContourCurve(): ExtrudeContourCurve;
set ContourCurve(curve: ExtrudeContourCurve);
CheckContourCurve(): void;
Erase(isErase?: boolean): void;
protected ApplyScaleMatrix(m: Matrix4): this;
GetObjectSnapPoints(snapMode: ObjectSnapMode, pickPoint: Vector3, lastPoint: Vector3, viewXform?: Matrix3): Vector3[];
get Shape(): Shape;
get BoundingBoxInOCS(): Box3Ext;
get BoundingBox(): Box3Ext;
get EdgeGeometry(): BufferGeometry;
private _MeshGeometry;
get MeshGeometry(): Geometry | BufferGeometry;
private GeneralMeshGeometry;
GetGripOrStretchPoints(dragType: DragPointType): Vector3[];
private GetStrectchPointCountList;
MoveGripOrStretchPoints(indexList: number[], vec: Vector3, dragType: DragPointType): void;
IsStretchHeight(indexs: number[]): boolean;
MoveGripOrStretchPointsOnly(indexList: Array<number>, vec: Vector3, dragType: DragPointType): void;
GetGripPoints(): Array<Vector3>;
GetStretchPoints(): Vector3[];
MoveGripPoints(indexList: number[], vec: Vector3): void;
MoveStretchPoints(indexList: Array<number>, vec: Vector3): void;
Convert2ExtrudeSolid(): ExtrudeSolid;
GetPrintObject3D(): (Line2 | Mesh<Geometry | BufferGeometry, import("three").ShaderMaterial>)[];
InitDrawObject(renderType?: RenderType): Object3D;
UpdateDrawObject(renderType: RenderType, obj: Object3D): Object3D;
UpdateDrawObjectMaterial(renderType: RenderType, obj: Object3D): void;
ClearDraw(): this;
get OBB(): OBB;
ReadFile(file: CADFiler): void;
WriteFile(file: CADFiler): void;
}
//# sourceMappingURL=ExtrudeHole.d.ts.map

View File

@@ -1 +0,0 @@
{"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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CAAC,aAAa,CAA4B;IACjD,IAAI,YAAY,8BAOf;IACD,OAAO,CAAC,mBAAmB;IAuB3B,sBAAsB,CAAC,QAAQ,EAAE,aAAa;IAW9C,OAAO,CAAC,yBAAyB;IAIjC,uBAAuB,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,OAAO,EAAE,QAAQ,EAAE,aAAa;IAalF,eAAe,CAAC,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;IAqBvB,SAAS,CAAC,IAAI,EAAE,QAAQ;CAU3B"}

View File

@@ -1,19 +0,0 @@
import { CADFiler } from '../CADFiler';
import { Entity } from '../Entity/Entity';
import { ObjectId } from '../ObjectId';
import { GangDrillType } from './CylinderHole';
export declare abstract class Hole extends Entity {
FId: ObjectId;
MId: ObjectId;
protected _Height: number;
OtherHalfTongKong: ObjectId;
protected type: GangDrillType;
get Height(): number;
set Height(v: number);
get Type(): GangDrillType;
set Type(t: GangDrillType);
Clone(): this;
protected _ReadFile(file: CADFiler): void;
WriteFile(file: CADFiler): void;
}
//# sourceMappingURL=Hole.d.ts.map

View File

@@ -1 +0,0 @@
{"version":3,"file":"Hole.d.ts","sourceRoot":"","sources":["../../../../src/DatabaseServices/3DSolid/Hole.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C,8BACsB,IAAK,SAAQ,MAAM;IAEzB,GAAG,EAAE,QAAQ,CAAC;IACd,GAAG,EAAE,QAAQ,CAAC;IAC1B,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC;IACd,iBAAiB,EAAE,QAAQ,CAAC;IACxC,SAAS,CAAC,IAAI,EAAE,aAAa,CAAqB;IAClD,IAAI,MAAM,IAII,MAAM,CADnB;IACD,IAAI,MAAM,CAAC,CAAC,EAAE,MAAM,EAQnB;IAED,IAAI,IAAI,IAII,aAAa,CADxB;IACD,IAAI,IAAI,CAAC,CAAC,EAAE,aAAa,EAOxB;IAED,KAAK;IAML,SAAS,CAAC,SAAS,CAAC,IAAI,EAAE,QAAQ;IAqBlC,SAAS,CAAC,IAAI,EAAE,QAAQ;CAS3B"}

View File

@@ -1,54 +0,0 @@
import { Box3, BufferGeometry, Matrix3, Matrix4, Object3D, Vector3 } from "three";
import { ObjectSnapMode } from "../../Editor/ObjectSnapMode";
import { SweepGeometry } from '../../Geometry/SweepGeometry';
import { RenderType } from "../../GraphicsSystem/RenderType";
import { CADFiler } from '../CADFiler';
import { Curve } from "../Entity/Curve";
import { Entity } from "../Entity/Entity";
import { Polyline } from '../Entity/Polyline';
import { OBB } from './../../Geometry/OBB/obb';
export declare class SweepSolid extends Entity {
static UseRectFakerContour: boolean;
protected _Contour: Polyline;
protected _PathCurve: Curve | Curve[];
constructor(contour?: Polyline, pathCurve?: Curve | Curve[]);
Explode(): (Curve | Polyline)[];
get Contour(): Polyline;
get Path(): Curve | Curve[];
get Paths(): Curve[];
Reverse(): void;
/**
* 将轮廓变换到wcs空间,当用户选定某个与扫描线起点相切的轮廓时.
*/
private TransfromPathToWCS;
private _MeshGeometry;
private _LineGeom;
get MeshGeometry(): BufferGeometry | SweepGeometry;
private _EdgeGeometry;
get EdgeGeometry(): BufferGeometry;
InitDrawObject(renderType: RenderType): Object3D;
UpdateDrawGeometry(): void;
ClearDraw(): this;
UpdateDrawObject(renderType: RenderType, obj: Object3D): Object3D;
/**
* 当实体需要被更新时,更新实体材质
*/
UpdateDrawObjectMaterial(type: RenderType, obj: Object3D): void;
get BoundingBox(): Box3;
get OBB(): OBB;
GetObjectSnapPoints(snapMode: ObjectSnapMode, pickPoint: Vector3, lastPoint: Vector3, viewXform?: Matrix3): Vector3[];
private _GripSubIndexMap;
/** 获取夹点与子实体的索引 */
GetGripSubIndexMap(): Map<number, Entity>;
GetGripPoints(): Vector3[];
GetStretchPoints(): Vector3[];
private GetEndPoint;
private GetMidPoints;
MoveGripPoints(indexList: number[], vec: Vector3): void;
MoveStretchPoints(indexList: number[], vec: Vector3): void;
ApplyMatrix(m: Matrix4): this;
protected ApplyMirrorMatrix(m: Matrix4): this;
protected _ReadFile(file: CADFiler): void;
WriteFile(file: CADFiler): void;
}
//# sourceMappingURL=SweepSolid.d.ts.map

View File

@@ -1 +0,0 @@
{"version":3,"file":"SweepSolid.d.ts","sourceRoot":"","sources":["../../../../src/DatabaseServices/3DSolid/SweepSolid.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAqB,cAAc,EAAgB,OAAO,EAAE,OAAO,EAAQ,QAAQ,EAAiB,OAAO,EAAE,MAAM,OAAO,CAAC;AAWxI,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAE7D,OAAO,EAAqB,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAChF,OAAO,EAAE,UAAU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ACpB,OAAO,EAAE;IA4CZ,OAAO,CAAC,gBAAgB,CAAsB;IAC9C,kBAAkB;IAClB,kBAAkB;IAUlB,aAAa;IA+Bb,gBAAgB;IA0BhB,OAAO,CAAC,WAAW;IAsEnB,OAAO,CAAC,YAAY;IA2BpB,cAAc,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,OAAO;IA8EhD,iBAAiB,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,OAAO;IAiGnD,WAAW,CAAC,CAAC,EAAE,OAAO;IAwBtB,SAAS,CAAC,iBAAiB,CAAC,CAAC,EAAE,OAAO;IAwBtC,SAAS,CAAC,SAAS,CAAC,IAAI,EAAE,QAAQ;IA6BlC,SAAS,CAAC,IAAI,EAAE,QAAQ;CAiB3B"}

View File

@@ -1,13 +0,0 @@
import { CADFiler } from './CADFiler';
import { ISerialize } from './ISerialize';
import { CADObject } from './CADObject';
/**
* 保存对象创建或者修改时的所有数据记录
*/
export declare class AllObjectData implements ISerialize {
file: CADFiler;
constructor(obj?: CADObject);
ReadFile(file: CADFiler): this;
WriteFile(file: CADFiler): this;
}
//# sourceMappingURL=AllObjectData.d.ts.map

View File

@@ -1 +0,0 @@
{"version":3,"file":"AllObjectData.d.ts","sourceRoot":"","sources":["../../../src/DatabaseServices/AllObjectData.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC;;GAEG;AACH,qBACa,aAAc,YAAW,UAAU;IAE5C,IAAI,EAAE,QAAQ,CAAC;gBACH,GAAG,CAAC,EAAE,SAAS;IAS3B,QAAQ,CAAC,IAAI,EAAE,QAAQ;IAQvB,SAAS,CAAC,IAAI,EAAE,QAAQ;CAM3B"}

View File

@@ -1,19 +0,0 @@
export declare const ISPROXYKEY = "_isProxy";
/**
* 自动对CADObject的属性添加属性记录器,自动调用 `WriteAllObjectRecord`
* 如果属性是数组,那么自动添加`Proxy`.
* 可以使用`ISPROXYKEY`覆盖这个函数的代理行为(使用CADObject.CreateProxyArray快速覆盖)
*
* ! 仅在{数组}或者{值}类型上使用,如果是Object,请使用AutoRecordObject
*
* @param target
* @param property
* @param [descriptor]
*/
export declare function AutoRecord(target: {
WriteAllObjectRecord: () => void;
}, property: string, descriptor?: PropertyDecorator): void;
export declare function AutoRecordObject(target: {
WriteAllObjectRecord: () => void;
}, property: string, descriptor?: PropertyDecorator): void;
//# sourceMappingURL=AutoRecord.d.ts.map

View File

@@ -1 +0,0 @@
{"version":3,"file":"AutoRecord.d.ts","sourceRoot":"","sources":["../../../src/DatabaseServices/AutoRecord.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,aAAa,CAAC;AAErC;;;;;;;;;;GAUG;AACH,wBAAgB,UAAU,CACtB,MAAM,EAAE;IAAE,oBAAoB,EAAE,MAAM,IAAI,CAAC;CAAE,EAC7C,QAAQ,EAAE,MAAM,EAChB,UAAU,CAAC,EAAE,iBAAiB,QA8DjC;AAGD,wBAAgB,gBAAgB,CAC5B,MAAM,EAAE;IAAE,oBAAoB,EAAE,MAAM,IAAI,CAAC;CAAE,EAC7C,QAAQ,EAAE,MAAM,EAChB,UAAU,CAAC,EAAE,iBAAiB,QA4DjC"}

View File

@@ -1,22 +0,0 @@
import { Status } from '../Common/Status';
import { CADFiler } from './CADFiler';
import { Database } from './Database';
import { Entity } from './Entity/Entity';
import { ObjectCollection } from './ObjectCollection';
import { SymbolTableRecord } from './SymbolTableRecord';
export declare class BlockTableRecord extends SymbolTableRecord {
EntityCol: ObjectCollection<Entity>;
constructor();
SetOwnerDatabase(db: Database): this;
get Entitys(): Entity[];
/** 提供通用的Add方法(以便在WblockClone时能统一调用.Add) */
Add(obj: Entity, isCheckObjectCleanly?: boolean): Status;
Append(entity: Entity, isCheckObjectCleanly?: boolean): void;
/**添加实体实现(通过转发) */
AppendEvent(entity: Entity): void;
Remove(entity: Entity): void;
Destroy(): void;
ReadFile(file: CADFiler): void;
WriteFile(file: CADFiler): void;
}
//# sourceMappingURL=BlockTableRecord.d.ts.map

View File

@@ -1 +0,0 @@
{"version":3,"file":"BlockTableRecord.d.ts","sourceRoot":"","sources":["../../../src/DatabaseServices/BlockTableRecord.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE1C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAGtC,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAKtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,qBACa,gBAAiB,SAAQ,iBAAiB;IAEnD,SAAS,2BAAkC;;IAO3C,gBAAgB,CAAC,EAAE,EAAE,QAAQ;IAO7B,IAAI,OAAO,aAAqC;IAEhD,2CAA2C;IAC3C,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,oBAAoB,UAAO,GAAG,MAAM;IAMrD,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,oBAAoB,UAAO;IA8BlD,kBAAkB;IAClB,WAAW,CAAC,MAAM,EAAE,MAAM;IAE1B,MAAM,CAAC,MAAM,EAAE,MAAM;IAKrB,OAAO;IAQP,QAAQ,CAAC,IAAI,EAAE,QAAQ;IAOvB,SAAS,CAAC,IAAI,EAAE,QAAQ;CAO3B"}

View File

@@ -1,13 +0,0 @@
/**
* CAD对象工厂,通过注册 和暴露的创建方法,动态创建对象
*/
export declare class CADFactory {
private constructor();
private objectNameMap;
private static factory;
static RegisterObject(C: any): void;
static RegisterObjectAlias(C: any, name: string): void;
static CreateObject(name: string): any;
}
export declare function Factory(target: Object): void;
//# sourceMappingURL=CADFactory.d.ts.map

View File

@@ -1 +0,0 @@
{"version":3,"file":"CADFactory.d.ts","sourceRoot":"","sources":["../../../src/DatabaseServices/CADFactory.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,qBAAa,UAAU;IAEnB,OAAO;IACP,OAAO,CAAC,aAAa,CAA0B;IAC/C,OAAO,CAAC,MAAM,CAAC,OAAO,CAAoB;IAC1C,MAAM,CAAC,cAAc,CAAC,CAAC,EAAE,GAAG;IAK5B,MAAM,CAAC,mBAAmB,CAAC,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM;IAI/C,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG;CAKzC;AAGD,wBAAgB,OAAO,CAAC,MAAM,EAAE,MAAM,QAGrC"}

View File

@@ -1,41 +0,0 @@
import { Vec3 } from '../Geometry/IVec3';
import { CADObject } from './CADObject';
import { Database } from './Database';
import { ISerialize } from './ISerialize';
import { ObjectId } from './ObjectId';
/**
* CAD文件数据
*/
export declare class CADFiler {
protected _datas: any[];
database: Database;
private readIndex;
constructor(_datas?: any[]);
Destroy(): void;
get Data(): any[];
set Data(data: any[]);
Clear(): this;
Reset(): this;
WriteString(str: string): this;
ReadString(): string;
WriteObject(obj: ISerialize): this;
ReadObject<T extends ISerialize = CADObject>(obj?: T): T;
CloneObjects(objects: CADObject[], clonedObjects?: CADObject[]): CADObject[];
Write(data: any): this;
WriteBool(v: boolean): void;
WriteVec3(v3: Vec3): void;
Write2dArray(arr: [any, any][]): void;
Read(): any;
ReadBool(): boolean;
ReadArray(count: number): any[];
Read2dArray(): [any, any][];
WriteObjectId(id: ObjectId): this;
ReadObjectId(): ObjectId;
WriteSoftObjectId(id: ObjectId): this;
ReadSoftObjectId(): ObjectId;
WriteHardObjectId(id: ObjectId): this;
ReadHardObjectId(): ObjectId<CADObject>;
ToString(): string;
FromString(str: string): void;
}
//# sourceMappingURL=CADFiler.d.ts.map

View File

@@ -1 +0,0 @@
{"version":3,"file":"CADFiler.d.ts","sourceRo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GAAG,IAAI;IASjC,YAAY,IAAI,QAAQ;IAQxB,iBAAiB,CAAC,EAAE,EAAE,QAAQ,GAAG,IAAI;IAIrC,gBAAgB,IAAI,QAAQ;IAM5B,iBAAiB,CAAC,EAAE,EAAE,QAAQ,GAAG,IAAI;IAIrC,gBAAgB;IAMhB,QAAQ;IAIR,UAAU,CAAC,GAAG,EAAE,MAAM;CAIzB"}

View File

@@ -1,55 +0,0 @@
import { CADFiler } from './CADFiler';
import { CommandHistoryRecord } from './CommandHistoryRecord';
import { Database } from './Database';
import { ISerialize } from './ISerialize';
import { ObjectId } from './ObjectId';
export declare abstract class CADObject {
protected _Owner: ObjectId;
/**
* 用于储存临时数据
*/
TempData: any;
__CacheBox__: any;
__CacheBoard__: any;
__CacheSize__: any;
__CachePolyline__: any;
set Owner(owner: ObjectId);
get Owner(): ObjectId;
Destroy(): void;
GoodBye(): any;
/**
* 当实体异步更新绘制实体完成后触发这个函数.
* Application通过注入的方式得知这个事件,刷新视图显示.
*/
AsyncUpdated(): void;
protected _db: Database;
get Db(): Database;
SetDefaultDb(db: Database): this;
SetOwnerDatabase(db: Database): this;
/**
* WblockClone 的时候,id是db分配的,此刻我们只需要设置它的db
*/
SetDatabase(db: Database): void;
protected _isErase: boolean;
get IsErase(): boolean;
Erase(isErase?: boolean): void;
objectId: ObjectId<this>;
get Id(): ObjectId<this>;
ReadFile(file: CADFiler): void;
WriteFile(file: CADFiler): void;
ApplyPartialUndo(undoData: ISerialize): void;
UndoRecord(): CommandHistoryRecord;
WriteAllObjectRecord(): boolean;
Clone(): this;
DeepClone(ownerObject: CADObject, cloneObejct: CADObject, idMaping?: Map<number, ObjectId>, isPrimary?: boolean): this;
CopyFrom(obj: CADObject): void;
/**
* 配合 `@AutoRecord` 使用
* 使用这个方法来覆盖AutoRecord的监听行为.
* 这个行为只能用来监听实体添加和实体修改.
* 实体删除行为暂时无法监听
* @param setCallback 设置新的实体到数组时的回调函数
*/
protected CreateProxyArray(setCallback: (v: any) => void):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AI,EAAE,QAAQ;IAavB,SAAS,CAAC,IAAI,EAAE,QAAQ;IAQxB,gBAAgB,CAAC,QAAQ,EAAE,UAAU;IAerC,UAAU,IAAI,oBAAoB;IAMlC,oBAAoB,IAAI,OAAO;IAY/B,KAAK,IAAI,IAAI;IAqBb,SAAS,CACL,WAAW,EAAE,SAAS,EACtB,WAAW,EAAE,SAAS,EACtB,QAAQ,GAAE,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAa,EAC3C,SAAS,UAAO,GACjB,IAAI;IAMP,QAAQ,CAAC,GAAG,EAAE,SAAS;IAgBvB;;;;;;OAMG;IACH,SAAS,CAAC,gBAAgB,CAAC,WAAW,EAAE,CAAC,CAAC,EAAE,GAAG,KAAK,IAAI;CA0B3D"}

View File

@@ -1,14 +0,0 @@
import { Matrix4 } from "three";
import { CameraUpdate } from "../../GraphicsSystem/CameraUpdate";
import { RenderType } from "../../GraphicsSystem/RenderType";
import { CADFiler } from "../CADFiler";
import { CADObject } from "../CADObject";
export declare class CameraSnapshootRecord extends CADObject {
Name: string;
CameraData: CameraUpdate;
UCS: Matrix4;
RenderType: RenderType;
ReadFile(file: CADFiler): void;
WriteFile(file: CADFiler): void;
}
//# sourceMappingURL=CameraSnapshootRecord.d.ts.map

View File

@@ -1 +0,0 @@
{"version":3,"file":"CameraSnapshootRecord.d.ts","sourceRoot":"","sources":["../../../../src/DatabaseServices/CameraSnapshoot/CameraSnapshootRecord.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAE7D,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,qBACa,qBAAsB,SAAQ,SAAS;IAEhD,IAAI,EAAE,MAAM,CAAM;IAClB,UAAU,eAAoB;IAC9B,GAAG,EAAE,OAAO,CAAe;IAC3B,UAAU,EAAE,UAAU,CAAwB;IAK9C,QAAQ,CAAC,IAAI,EAAE,QAAQ;IAsBvB,SAAS,CAAC,IAAI,EAAE,QAAQ;CAU3B"}

View File

@@ -1,24 +0,0 @@
import { CADFiler } from './CADFiler';
import { CADObject } from './CADObject';
import { HistorycRecord } from './HistorycRecord';
import { ObjectAllDataHistoryRecord } from './ObjectAllDataHistoryRecord';
import { ObjectId } from './ObjectId';
/**
* 命令的历史记录
*/
export declare class CommandHistoryRecord extends CADObject {
CommandName: string;
constructor(CommandName?: string);
private _HistoryList;
private _CreateObjects;
get HistoryList(): Map<ObjectId, HistorycRecord[]>;
private GetObjectHistoryList;
EndCommand(): void;
GetObjectAllDataRecord(historyList: HistorycRecord[]): ObjectAllDataHistoryRecord | undefined;
WriteObjectHistoryPath(obj: CADObject, history: HistorycRecord): void;
WriteObjectSnapshoot(obj: CADObject): void;
CreateEraseHistory(obj: CADObject, isErase: boolean): void;
ReadFile(file: CADFiler): void;
WriteFile(file: CADFiler): void;
}
//# sourceMappingURL=CommandHistoryRecord.d.ts.map

View File

@@ -1 +0,0 @@
{"version":3,"file":"CommandHistoryRecord.d.ts","sourceRoot":"","sources":["../../../src/DatabaseServices/CommandHistoryRecord.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAC1E,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC;;GAEG;AACH,qBACa,oBAAqB,SAAQ,SAAS;IAE5B,WAAW;gBAAX,WAAW,SAAK;IAKnC,OAAO,CAAC,YAAY,CAAyC;IAC7D,OAAO,CAAC,cAAc,CAAwC;IAE9D,IAAI,WAAW,IAAI,GAAG,CAAC,QAAQ,EAAE,cAAc,EAAE,CAAC,CAGjD;IAED,OAAO,CAAC,oBAAoB;IAO5B,UAAU;IAiBV,sBAAsB,CAAC,WAAW,EAAE,cAAc,EAAE,GAAG,0BAA0B,GAAG,SAAS;IAW7F,sBAAsB,CAAC,GAAG,EAAE,SAAS,EAAE,OAAO,EAAE,cAAc;IAe9D,oBAAoB,CAAC,GAAG,EAAE,SAAS,GAAG,IAAI;IAmB1C,kBAAkB,CAAC,GAAG,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO;IAanD,QAAQ,CAAC,IAAI,EAAE,QAAQ;IAqBvB,SAAS,CAAC,IAAI,EAAE,QAAQ;CAgB3B"}

View File

@@ -1,67 +0,0 @@
import { Vector3 } from "three";
import { IntersectResult } from "../GraphicsSystem/IntersectWith";
import { Circle } from "./Entity/Circle";
import { Curve } from "./Entity/Curve";
import { Polyline } from "./Entity/Polyline";
export declare class Contour {
private _Curve;
protected SetCurve(cu: Polyline | Circle): void;
/**会将传入的闭合轮廓改为逆时针 */
static CreateContour(cus: Curve[] | Polyline | Circle, needLink?: boolean): Contour;
get Curve(): Polyline | Circle;
get Area(): number;
get BoundingBox(): import("../Geometry/Box").Box3Ext;
/**
* 不等比例缩放
* @param {number} ref 缩放参考值,大于该值的点缩放
* @param {number} dist 缩放距离
* @param {string} dir x y z
*/
UnEqualProportionScale(ref: number, dist: number, dir: "x" | "y"): boolean;
Clone(): Contour;
IntersectionBoolOperation(target: Contour): Contour[];
UnionBoolOperation(target: Contour): {
contours: Contour[];
holes: Contour[];
};
SubstactBoolOperation(target: Contour): Contour[];
/**
* 计算与目标轮廓布尔运算后的结果曲线.
*/
GetIntersetAndUnionList(target: Contour): {
intersectionList: Curve[];
unionList: Curve[];
};
GetSubtractList(target: Contour): Polyline[];
GetSubtractListByMoreTargets(targets: Contour[]): {
holes: Contour[];
outlines: Contour[];
};
GetSubListWithCus(targets: Contour[]): {
holes: Polyline[];
subtractList: Polyline[];
};
/**
* 获得全部闭合曲线
* @若传入二维曲线数据,将默认子数组为闭合曲线段
*/
static GetAllContour(cus: Curve[] | Curve[][]): Contour[];
/**
* 合并曲线组成为多段线
* @param cus 曲线组
* @param [needLink=true] 需要解析成首尾连接状态
* @returns 单一曲线,如果返回超过1个,其他的将被遗弃.
*/
static Combine(cus: Curve[], needLink?: boolean, tolerance?: number): Curve;
get Shape(): THREE.Shape;
/**
* 判断是否完全包含曲线
* @param smallCurve 传入的这个曲线不能比本轮廓还大(这个需要自己优化?)
* @returns
*/
ContainerCurve(smallCurve: Polyline | Circle | Curve, isAreaCheckd?: boolean, ipts?: IntersectResult[]): boolean;
Equal(tar: Contour): boolean;
}
export declare function fastCurveInCurve2(bigCurve: Polyline | Circle, smallCurve: Curve, iPt?: Vector3): boolean;
export declare function CurveContainerCurve(bigCurve: Polyline | Circle, smallCurve: Polyline | Circle | Curve, ipts?: IntersectResult[], fuzz?: number): boolean;
//# sourceMappingURL=Contour.d.ts.map

View File

@@ -1 +0,0 @@
{"version":3,"file":"Contour.d.ts","sourceRoot":"","sources":["../../../src/DatabaseServices/Contour.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAWhC,OAAO,EAAmB,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAEnF,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAM7C,qBAAa,OAAO;IAEhB,OAAO,CAAC,MAAM,CAAoB;IAElC,SAAS,CAAC,QAAQ,CAAC,EAAE,EAAE,QAAQ,GAAG,MAAM;IASxC,oBAAoB;IACpB,MAAM,CAAC,aAAa,CAAC,GAAG,EAAE,KAAK,EAAE,GAAG,QAAQ,GAAG,MAAM,EAAE,QAAQ,UAAO;IA2BtE,IAAI,KAAK,IAAI,QAAQ,G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,EAAE,QAAQ,GAAG,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,GAAG,CAAC,EAAE,OAAO,WAY9F;AAGD,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,EAAE,UAAU,EAAE,QAAQ,GAAG,MAAM,GAAG,KAAK,EAAE,IAAI,GAAE,eAAe,EAAc,EAAE,IAAI,SAAe,WAW/J"}

View File

@@ -1,18 +0,0 @@
import { CADFiler } from './CADFiler';
import { CADObject } from './CADObject';
import { Database } from './Database';
export declare class CreateObjectData extends CADObject {
Object?: CADObject;
private CADFiler;
CreateObject: CADObject;
/**
* 如果是实体新建,那么不需要调用`Save`,历史记录会在命令结束的时候调用.
* 如果是实体删除,那么请自行调用`Save`.
*/
constructor(Object?: CADObject);
Save(): this;
GetObject(db: Database): CADObject;
ReadFile(file: CADFiler): void;
WriteFile(file: CADFiler): void;
}
//# sourceMappingURL=CreateObjectData.d.ts.map

View File

@@ -1 +0,0 @@
{"version":3,"file":"CreateObjectData.d.ts","sourceRoot":"","sources":["../../../src/DatabaseServices/CreateObjectData.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,qBACa,gBAAiB,SAAQ,SAAS;IAWxB,MAAM,CAAC,EAAE,SAAS;IATrC,OAAO,CAAC,QAAQ,CAA4B;IAG5C,YAAY,EAAE,SAAS,CAAC;IAExB;;;OAGG;gBACgB,MAAM,CAAC,EAAE,SAAS;IAMrC,IAAI;IAUJ,SAAS,CAAC,EAAE,EAAE,QAAQ,GAAG,SAAS;IAYlC,QAAQ,CAAC,IAAI,EAAE,QAAQ;IAOvB,SAAS,CAAC,IAAI,EAAE,QAAQ;CAM3B"}

View File

@@ -1,100 +0,0 @@
import { Vector3 } from 'three';
import { DuplicateRecordCloning } from '../Common/Status';
import { BlockTableRecord } from './BlockTableRecord';
import { CADFiler } from './CADFiler';
import { CADObject } from './CADObject';
import { CameraSnapshootRecord } from './CameraSnapshoot/CameraSnapshootRecord';
import { DeepCloneFiler } from './DeepCloneFiler';
import { DimStyleTable } from './DimStyle/DimStyleTable';
import { GroupTable } from './GroupTable';
import { HistoricManage } from './HistoricManage';
import { IdMaping } from './IdMaping';
import { AmbientLight } from './Lights/AmbientLight';
import { DirectionalLight } from './Lights/DirectionalLight';
import { HemisphereLight } from './Lights/HemisphereLight';
import { MaterialTable } from './MaterialTable';
import { ObjectId } from './ObjectId';
import { OwnerContainer } from './OwnerContainer';
import { PhysicalMaterialRecord } from './PhysicalMaterialRecord';
import { ProcessingGroupTable } from './ProcessingGroup/ProcessingGroupTable';
import { TemplateTable } from './Template/TemplateTable';
import { TextureTable } from './TextureTable';
import { WblockCloneFiler } from './WblockCloneFiler';
export declare class Database {
IsDefaultDatabase: boolean;
hm: HistoricManage;
MaterialTable: MaterialTable;
TextureTable: TextureTable;
TemplateTable: TemplateTable;
GroupTable: GroupTable;
ProcessingGroupTable: ProcessingGroupTable;
DimStyleTable: DimStyleTable;
ModelSpace: BlockTableRecord;
LayoutSpace: BlockTableRecord;
Lights: BlockTableRecord;
CameraSnapshoots: CameraSnapshootRecord[];
AmbientLight: AmbientLight;
SunLight: DirectionalLight;
HemisphereLight: HemisphereLight;
DefaultMaterial: PhysicalMaterialRecord;
/** 这是为UE设计器提供的拓展数据,WebCAD只负责保存,不使用它.
* 在存储吊顶模块时,存储了材质槽信息
*/
ExtendedData: any;
private idIndex;
private idMap;
constructor(buildDefaultDrawing?: boolean, IsDefaultDatabase?: boolean, disableHistoric?: boolean);
private InitDimStyle;
private InitMaterial;
private InitLight;
SettingDefaultStyleAndMaterial(): void;
Destroy(): void;
FileWrite(file?: CADFiler): CADFiler;
FileRead(file: CADFiler): this;
/**
* 单个数据库内克隆对象(objects),并将他们附加到指定的容器对象(owner).
* @param objects 被克隆的对象
* @param owner 克隆对象的容器
* @param idMap id映射
* @param deferXlation 指示是否应该进行ID转换
* @returns 新克隆的对象列表
*/
DeepCloneObjects(objects: CADObject[], owner: OwnerContainer, idMap?: IdMaping, deferXlation?: boolean): CADObject[];
/**
* 清理拷贝后的实体空引用
*/
private ClearEmptyAssoc;
DeepCloneObject(filer: DeepCloneFiler, object: CADObject, owner: OwnerContainer, idMap?: IdMaping): CADObject | undefined;
/**
* 将来自不同数据库的对象列表拷贝到本数据库中.
* 当前支持使用HardId模式来硬关联某个对象,使该对象能够在WblockClone时一起被带过来.
* 当前不支持硬关联对象的Owner不是默认的容器.
* 如果需要这么做,请将该对象的Owner设置为Hard关联
* @param objects 对象不能属于本数据库
* @param owner 克隆对象的新容器
* @param idMap id映射
*/
WblockCloneObejcts(objects: CADObject[], owner: OwnerContainer, idMap: IdMaping, drc: DuplicateRecordCloning, filer?: WblockCloneFiler): CADObject[];
/**
* 克隆引用对象 WriteHardObjectId
*/
private WblockCloneReferenceObject;
private WblockCloneObject;
/**
* 为拷贝出来的对象分配id索引,并在数据库中注册
*/
private AllocationObjectId;
Insert(): void;
/**
* 写块
* @param outputDatabase 输出到指定的数据库
* @param objects
* @param basePoint
* @param cloning
*/
Wblock(outputDataBase: Database, objects: CADObject[], basePoint: Vector3, cloning: any): void;
AllocateId(): ObjectId;
GetObjectId(index: number, create?: boolean): ObjectId;
DeleteId(idIndex: number): void;
}
//# sourceMappingURL=Database.d.ts.map

View File

@@ -1 +0,0 @@
{"version":3,"file":"Database.d.ts","sourceRoot":"","sources":["../../../src/DatabaseServices/Database.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0B,OAAO,EAAE,MAAM,OAAO,CAAC;AAExD,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,M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E,QAAQ,EACxB,OAAO,EAAE,SAAS,EAAE,EACpB,SAAS,EAAE,OAAO,EAClB,OAAO,EAAE,GAAG;IAWhB,UAAU,IAAI,QAAQ;IAKtB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,UAAQ,GAAG,QAAQ;IAcpD,QAAQ,CAAC,OAAO,EAAE,MAAM;CAM3B"}

View File

@@ -1,13 +0,0 @@
import { CADFiler } from "./CADFiler";
import { ObjectId } from "./ObjectId";
export declare class DeepCloneFiler extends CADFiler {
idMaping: Map<number, ObjectId<import("./CADObject").CADObject>>;
constructor(idMaping?: Map<number, ObjectId<import("./CADObject").CADObject>>);
ReadObjectId(): ObjectId<import("./CADObject").CADObject>;
ReadSoftObjectId(): ObjectId<import("./CADObject").CADObject>;
ReadHardObjectId(): ObjectId<import("./CADObject").CADObject>;
hardObjectIds: Set<number>;
cloned: Set<number>;
WriteHardObjectId(id: ObjectId): this;
}
//# sourceMappingURL=DeepCloneFiler.d.ts.map

View File

@@ -1 +0,0 @@
{"version":3,"file":"DeepCloneFiler.d.ts","sourceRoot":"","sources":["../../../src/DatabaseServices/DeepCloneFiler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAiB,MAAM,YAAY,CAAC;AAErD,qBAAa,cAAe,SAAQ,QAAQ;IAErB,QAAQ;gBAAR,QAAQ,yDAA8B;IAKzD,YAAY;IAcZ,gBAAgB;IAQhB,gBAAgB;IAQhB,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,CAAa;IACvC,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,CAAa;IAChC,iBAAiB,CAAC,EAAE,EAAE,QAAQ;CAOjC"}

View File

@@ -1,37 +0,0 @@
import { CADFiler } from "../CADFiler";
import { SymbolTableRecord } from "../SymbolTableRecord";
export declare enum DimTextPosDir {
Top = 1,
Out = 2
}
/**
* 标注样式
*/
export declare class DimStyleRecord extends SymbolTableRecord {
/** 如果设置为 1延长线(脚线)具有固定长度 DIMFXLON 290 */
DIMFXLON: boolean;
/** DIMFXL 49 尺寸线下方的延长线长度如果固定DIMFXLON 为 1DIMEXE 定义尺寸线上方的长度 */
DIMFXL: number;
/** 控制尺寸中换算单位的显示 DIMALT 170 */
DIMALT: boolean;
/** 控制换算单位的小数位数。如果打开 DIMALTDIMALTD 会设置交替测量中小数点右侧显示的位数。 DIMALTD 171 */
DIMALTD: number;
DIMADEC: number;
/** DIMASZ 41 控制尺寸线和引线箭头的大小。还控制钩线的大小。箭头大小的倍数决定尺寸线和文本是否应适合尺寸界线。如果由 DIMBLK 设置DIMASZ 也用于缩放箭头块。当 DIMTSZ 不为零时DIMASZ 无效。 */
DIMASZ: number;
/**147 尺寸线距离文字的距离(从尺寸线偏移) */
DIMGAP: number;
/**42 指定尺寸界线与原点的偏移距离。对于固定长度的延长线,此值确定最小偏移量。 */
DIMEXO: number;
/**43 */
DIMDLI: number;
/**44 肩膀上面的延伸线长度 */
DIMEXE: number;
/** 140 文字高度 */
DIMTXT: number;
/**77 控制文本相对于尺寸线的垂直位置。 */
DIMTAD: DimTextPosDir;
ReadFile(file: CADFiler): void;
WriteFile(file: CADFiler): void;
}
//# sourceMappingURL=DimStyleRecord.d.ts.map

View File

@@ -1 +0,0 @@
{"version":3,"file":"DimStyleRecord.d.ts","sourceRoot":"","sources":["../../../../src/DatabaseServices/DimStyle/DimStyleRecord.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAIzD,oBAAY,aAAa;IAErB,GAAG,IAAI;IACP,GAAG,IAAI;CACV;AAED;;GAEG;AACH,qBACa,cAAe,SAAQ,iBAAiB;IAEjD,yCAAyC;IAC7B,QAAQ,EAAE,OAAO,CAAQ;IAErC,gEAAgE;IACpD,MAAM,EAAE,MAAM,CAAO;IAEjC,8BAA8B;IAClB,MAAM,EAAE,OAAO,CAAQ;IAEnC,sEAAsE;IAC1D,OAAO,EAAE,MAAM,CAAK;IAEpB,OAAO,EAAE,MAAM,CAAK;IAEhC,wHAAwH;IAC5G,MAAM,EAAE,MAAM,CAAM;IAEhC,4BAA4B;IAChB,MAAM,EAAE,MAAM,CAAM;IAEhC,6CAA6C;IACjC,MAAM,EAAE,MAAM,CAAM;IAEhC,QAAQ;IACI,MAAM,EAAE,MAAM,CAAM;IAEhC,mBAAmB;IACP,MAAM,EAAE,MAAM,CAAM;IAEhC,eAAe;IACH,MAAM,EAAE,MAAM,CAAM;IAChC,yBAAyB;IACb,MAAM,EAAE,aAAa,CAAqB;IAO7C,QAAQ,CAAC,IAAI,EAAE,QAAQ;IAyBvB,SAAS,CAAC,IAAI,EAAE,QAAQ;CAuBpC"}

View File

@@ -1,10 +0,0 @@
import { CADFiler } from "../CADFiler";
import { ObjectId } from "../ObjectId";
import { SymbolTable } from "./../SymbolTable";
export declare class DimStyleTable extends SymbolTable {
Current: ObjectId;
get DimStyleNames(): string[];
ReadFile(file: CADFiler): void;
WriteFile(file: CADFiler): void;
}
//# sourceMappingURL=DimStyleTable.d.ts.map

View File

@@ -1 +0,0 @@
{"version":3,"file":"DimStyleTable.d.ts","sourceRoot":"","sources":["../../../../src/DatabaseServices/DimStyle/DimStyleTable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAG/C,qBACa,aAAc,SAAQ,WAAW;IAE1C,OAAO,EAAE,QAAQ,CAAC;IAElB,IAAI,aAAa,IAAI,MAAM,EAAE,CAM5B;IAIQ,QAAQ,CAAC,IAAI,EAAE,QAAQ;IAOvB,SAAS,CAAC,IAAI,EAAE,QAAQ;CAOpC"}

View File

@@ -1,19 +0,0 @@
export declare enum DimStyleKeyCode {
DIMEXO = 20,
/**如果设置为 1延长线具有固定长度 */
DIMFXL = 49,
/**延长线长度 */
DIMFXLON = 290,
/**控制尺寸中换算单位的显示 */
DIMALT = 170,
/**控制换算单位的小数位数。 */
DIMALTD = 171,
DIMADEC = 179,
/**箭头尺寸 */
DIMASZ = 41,
DIMEXE = 44,
DIMTAD = 77,
DIMTXT = 140,
DIMGAP = 147
}
//# sourceMappingURL=DimstyleKeyCodeEnum.d.ts.map

View File

@@ -1 +0,0 @@
{"version":3,"file":"DimstyleKeyCodeEnum.d.ts","sourceRoot":"","sources":["../../../../src/DatabaseServices/DimStyle/DimstyleKeyCodeEnum.ts"],"names":[],"mappings":"AACA,oBAAY,eAAe;IAEvB,MAAM,KAAK;IACX,uBAAuB;IACvB,MAAM,KAAK;IACX,WAAW;IACX,QAAQ,MAAM;IACd,kBAAkB;IAClB,MAAM,MAAM;IACZ,kBAAkB;IAClB,OAAO,MAAM;IACb,OAAO,MAAM;IACb,UAAU;IACV,MAAM,KAAK;IAEX,MAAM,KAAK;IACX,MAAM,KAAK;IACX,MAAM,MAAM;IAEZ,MAAM,MAAM;CACf"}

View File

@@ -1,35 +0,0 @@
import { CADFiler } from "../CADFiler";
import { DimStyleKeyCode } from "../DimStyle/DimstyleKeyCodeEnum";
import { Entity } from "../Entity/Entity";
import { ObjectId } from "../ObjectId";
import { Text } from "../Text/Text";
export declare abstract class Dimension extends Entity {
OnlyRenderType: boolean;
protected _TextString: string;
protected _Text: Text;
get Material(): ObjectId;
set Material(materialId: ObjectId);
protected _DimStyle: ObjectId;
protected _DimStyleOverride: Map<DimStyleKeyCode, any>;
GetDimStyleOverrideValue(key: DimStyleKeyCode): any;
SetDimStyleOverrideValue(key: DimStyleKeyCode, value: any): void;
DeleteDimStyleOverrideValue(key: DimStyleKeyCode): void;
ClearDimStyleOverride(): void;
GetDimStyleValue(key: DimStyleKeyCode): any;
get DimStyle(): ObjectId;
/**设置标注样式 */
set DimStyle(styleId: ObjectId);
set TextString(txt: string);
get TextString(): string;
/**计算文字盒子占用的宽度 */
get TextBoxWidth(): number;
get TextSize(): number;
set TextSize(size: number);
get FractionDigits(): number;
set FractionDigits(length: number);
/**未被修改过的 原始显示字符串,供内部使用 实际文字需要使用.TextString */
protected abstract GetPrimitiveString(): string;
protected ReadDimStyle(file: CADFiler): void;
protected WriteDimStyle(file: CADFiler): void;
}
//# sourceMappingURL=Dimension.d.ts.map

View File

@@ -1 +0,0 @@
{"version":3,"file":"Dimension.d.ts","sourceRoot":"","sources":["../../../../src/DatabaseServices/Dimension/Dimension.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAElE,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,8BACsB,SAAU,SAAQ,MAAM;IAE1C,cAAc,UAAQ;IACtB,SAAS,CAAC,WAAW,EAAE,MAAM,CAAC;IAC9B,SAAS,CAAC,KAAK,OAA2C;IAG1D,IAAI,QAAQ,IACa,QAAQ,CADU;IAC3C,IAAI,QAAQ,CAAC,UAAU,EAAE,QAAQ,EAAK;IAGtC,SAAS,CAAC,SAAS,EAAE,QAAQ,CAAC;IAC9B,SAAS,CAAC,iBAAiB,EAAE,GAAG,CAAC,eAAe,EAAE,GAAG,CAAC,CAAW;IAGjE,wBAAwB,CAAC,GAAG,EAAE,eAAe,GAAG,GAAG;IAEnD,wBAAwB,CAAC,GAAG,EAAE,eAAe,EAAE,KAAK,EAAE,GAAG;IAczD,2BAA2B,CAAC,GAAG,EAAE,eAAe;IAQhD,qBAAqB;IAUrB,gBAAgB,CAAC,GAAG,EAAE,eAAe;IAYrC,IAAI,QAAQ,IAEU,QAAQ,CAFW;IACzC,YAAY;IACZ,IAAI,QAAQ,CAAC,OAAO,EAAE,QAAQ,EAS7B;IAID,IAAI,UAAU,CAAC,GAAG,EAAE,MAAM,EAazB;IAED,IAAI,UAAU,IAfM,MAAM,CAkBzB;IACD,iBAAiB;IACjB,IAAI,YAAY,WAGf;IAED,IAAI,QAAQ,IACO,MAAM,CAD+C;IACxE,IAAI,QAAQ,CAAC,IAAI,EAAE,MAAM,EAGxB;IAGD,IAAI,cAAc,IACS,MAAM,CAD8C;IAC/E,IAAI,cAAc,CAAC,MAAM,EAAE,MAAM,EAGhC;IAGD,8CAA8C;IAC9C,SAAS,CAAC,QAAQ,CAAC,kBAAkB,IAAI,MAAM;IAG/C,SAAS,CAAC,YAAY,CAAC,IAAI,EAAE,QAAQ;IAWrC,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,QAAQ;CASzC"}

View File

@@ -1,129 +0,0 @@
import { Box3, Matrix3, Matrix4, Vector2, Vector3 } from 'three';
import { Status } from '../../Common/Status';
import { ObjectSnapMode } from '../../Editor/ObjectSnapMode';
import { Box3Ext } from '../../Geometry/Box';
import { IntersectOption, IntersectResult } from '../../GraphicsSystem/IntersectWith';
import { CADFiler } from '../CADFiler';
import { Shape2 } from '../Shape2';
import { Curve } from './Curve';
/**
* 圆弧实体类
* 与ACAD不同,这个类加入了时针变量,并且默认构造的圆弧为顺时针圆弧.
*
* 关于时针圆弧:
* 起始圆弧到终止圆弧总是在0-2PI之间.(一个完整的圆).
* 圆弧的绘制从起始圆弧绘制到终止圆弧. 按照时针绘制.
* 参考计算圆弧的完整角度方法查看该计算方式.
*/
export declare class Arc extends Curve {
constructor(center?: Vector3, radius?: number, startAngle?: number, endAngle?: number, clockwise?: boolean);
private _Radius;
private _StartAngle;
private _EndAngle;
/**
* 曲线为顺时针
*/
private _Clockwise;
get Shape(): Shape2;
get Center(): Vector3;
set Center(v: Vector3);
get Normal(): Vector3;
set Normal(v: Vector3);
get Area(): number;
get Area2(): number;
get IsClose(): boolean;
private get BoundingBoxPtsInOCS();
private static _X;
private static _Y;
private static _Z;
private static _Mtx;
get BoundingBox(): Box3;
/**
* 返回对象在自身坐标系下的Box
*/
get BoundingBoxInOCS(): Box3Ext;
get Radius(): number;
set Radius(v: number);
get IsClockWise(): boolean;
set IsClockWise(v: boolean);
get StartAngle(): number;
set StartAngle(v: number);
get EndAngle(): number;
set EndAngle(v: number);
get StartPoint(): Vector3;
set StartPoint(v: Vector3);
get EndPoint(): Vector3;
set EndPoint(v: Vector3);
get StartParam(): number;
get EndParam(): number;
get Length(): number;
GetParamAtPoint2(pt: Vector3): number;
PtOnCurve3(p: Vector3, fuzz?: number): boolean;
protected ApplyScaleMatrix(m: Matrix4): this;
protected ApplyMirrorMatrix(m: Matrix4): this;
GetPointAtParam(param: number): Vector3;
GetPointAtDistance(distance: number): Vector3;
GetDistAtParam(param: number): number;
GetDistAtPoint(pt: Vector3): number;
GetParamAtPoint(pt: Vector3): number;
/**
* 利用角度计算该角度在圆弧中代表的参数.
* 如果角度在圆弧内,那么返回0-1
* 如果角度不在圆弧内,那么尝试返回离圆弧起始或者结束的较近的参数
*
* @param {number} an
* @returns
* @memberof Arc
*/
GetParamAtAngle(an: number): number;
/**
* 根据角度获得参数,不过在这里我们可以指定我们是要获取前面的参数还是后面的参数(正负)
* @param an
* @param [isStart] true:返回负数false 返回正数
* @returns
*/
GetParamAtAngle2(an: number, isStart?: boolean): number;
private static __PointTemp__;
GetAngleAtPoint(pt: Vector3): number;
GetAngleAtParam(param: number): number;
GetSplitCurves(param: number[] | number): Arc[];
GetOffsetCurves(offsetDist: number): Arc[];
Extend(newParam: number): void;
Join(cu: Curve): Status;
Reverse(): this;
IntersectWith2(curve: Curve, intType: IntersectOption, tolerance?: number): IntersectResult[];
/**
* 计算出圆弧所包含的角度
*
* @readonly
* @type {number}
* @memberof Arc
*/
get AllAngle(): number;
get Bul(): number;
/**
* 计算所包含的角度
* @param {number} endAngle 结束的角度
*/
ComputeAnlge(endAngle: number): number;
/**
* 解析两点和凸度所构成的圆弧
* ref http://www.lee-mac.com/bulgeconversion.html
* @param {Vector2} p1
* @param {Vector2} p2
* @param {number} bul 凸度,在cad中,凸度为 <(四分之一圆心角)的正切值>
*/
ParseFromBul(p1: Vector3 | Vector2, p2: Vector3 | Vector2, bul: number): Arc;
FromThreePoint(pt1: Vector3, pt2: Vector3, pt3: Vector3): this;
GetObjectSnapPoints(snapMode: ObjectSnapMode, pickPoint: Vector3, lastPoint: Vector3, viewXform?: Matrix3): Vector3[];
GetGripPoints(): Array<Vector3>;
MoveGripPoints(indexList: Array<number>, vec: Vector3): void;
GetStretchPoints(): Array<Vector3>;
MoveStretchPoints(indexList: Array<number>, vec: Vector3): void;
GetParamAtDist(d: number): number;
GetFirstDeriv(pt: number | Vector3): Vector3;
GetClosestPointTo(pt: Vector3, extend: boolean): Vector3;
protected _ReadFile(file: CADFiler): void;
WriteFile(file: CADFiler): void;
}
//# sourceMappingURL=Arc.d.ts.map

View File

@@ -1 +0,0 @@
{"version":3,"file":"Arc.d.ts","sourceRoot":"","sources":["../../../../src/DatabaseServices/Entity/Arc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAGjE,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAG7C,OAAO,EAAkG,eAAe,EAA6B,eAAe,EAA0B,MAAM,oCAAoC,CAAC;AAEzO,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAGnC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAKhC;;;;;;;;GAQG;AACH,qBACa,GAAI,SAAQ,KAAK;gBAEd,MAAM,GAAE,OAAiB,EAAE,MAAM,G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B;IAED;;;OAGG;IACH,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM;IAmBtC;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,EAAE,OAAO,GAAG,OAAO,EAAE,EAAE,EAAE,OAAO,GAAG,OAAO,EAAE,GAAG,EAAE,MAAM,GAAG,GAAG;IA6B5E,cAAc,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,OAAO;IA+BvD,mBAAmB,CACf,QAAQ,EAAE,cAAc,EACxB,SAAS,EAAE,OAAO,EAClB,SAAS,EAAE,OAAO,EAClB,SAAS,CAAC,EAAE,OAAO,GACpB,OAAO,EAAE;IAiCZ,aAAa,IAAI,KAAK,CAAC,OAAO,CAAC;IAS/B,cAAc,CAAC,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,OAAO;IAoDrD,gBAAgB,IAAI,KAAK,CAAC,OAAO,CAAC;IAKlC,iBAAiB,CAAC,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,OAAO;IA+BxD,cAAc,CAAC,CAAC,EAAE,MAAM;IAIxB,aAAa,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO;IAalC,iBAAiB,CAAC,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,GAAG,OAAO;IAkBxD,SAAS,CAAC,SAAS,CAAC,IAAI,EAAE,QAAQ;IAelC,SAAS,CAAC,IAAI,EAAE,QAAQ;CAU3B"}

View File

@@ -1,197 +0,0 @@
import Geom3 from '@jscad/modeling/src/geometries/geom3/type';
import { Frustum, Geometry, Matrix3, Matrix4, Object3D, UVGenerator, Vector3 } from 'three';
import { FaceDirection } from "../../Add-on/DrawDrilling/DrillType";
import { ObjectSnapMode } from '../../Editor/ObjectSnapMode';
import { RenderType } from '../../GraphicsSystem/RenderType';
import { BoardProcessOption } from "../../UI/Store/OptionInterface/BoardProcessOption";
import { CADFiler } from '../CADFiler';
import { ObjectId } from '../ObjectId';
import { Shape } from '../Shape';
import { BoardOpenDir, BoardType } from './BoardInterface';
import { ExtrudeContourCurve, ExtrudeSolid } from './Extrude';
import { Polyline } from './Polyline';
export interface IModeling {
shape: Shape;
thickness: number;
dir: FaceDirection;
knifeRadius: number;
addLen: number;
addWidth?: number;
addDepth?: number;
}
export interface IKnifeInfo {
angle: number;
radius: number;
id: string;
name: string;
}
export interface I2DModeingItem {
depth: number;
offset: number;
knife: IKnifeInfo;
}
export interface I2DModeling {
path: Polyline;
dir: FaceDirection;
items: I2DModeingItem[];
}
export interface IPathItem {
pt: Vector3;
bul: number;
}
export interface I3DModeling {
path: IPathItem[];
dir: FaceDirection;
knife: IKnifeInfo;
}
/**
* 板件实体
*/
export declare class Board extends ExtrudeSolid {
protected HasEdgeRenderType: boolean;
protected HasPlaceFaceRenderType: boolean;
protected HasBigHoleFaceRenderType: boolean;
private _Rotation;
private _BoardType;
private _Name;
private _BoardProcessOption;
private _DrillList;
private _LayerNails;
RelativeHardware: ObjectId[];
private _OpenDir;
RelativeHandle: ObjectId[];
private _IsChaiDan;
private _2DModelingList;
private _3DModelingList;
private _CustomNumber;
protected bevelEnabled: boolean;
private _KnifePolylineMap;
constructor();
/**
* 创建一个代理数组,数组改变时被监听
*/
private CreateArray;
private InitBoardData;
InitBoard(length: number, width: number, thickness: number, boardType?: BoardType): void;
static CreateBoard(length: number, width: number, thickness: number, boardType?: BoardType): Board;
get DrillList(): Map<ObjectId<import("../CADObject").CADObject>, ObjectId<import("../CADObject").CADObject>[][]>;
get LayerNails(): ObjectId<import("../CADObject").CADObject>[];
AppendNails(ids: ObjectId[]): void;
ClearLayerNails(): void;
private _CustomNumberTextEntity;
private _AsyncIngTextEntity;
get CustomNumber(): number | null;
set CustomNumber(n: number | null);
/**
* 你可以安心的修改它,这样会直接影响到板件,因为板件对这个对象添加了代理.
*/
get BoardProcessOption(): BoardProcessOption;
set BoardProcessOption(obj: BoardProcessOption);
get NeedUpdateRelevanceGroove(): boolean;
protected GetRelevanceKnifes(knifs: ExtrudeSolid[]): void;
ClearRelevance(en?: ExtrudeSolid): void;
get SplitBoards(): this[];
get BoardModeling(): IModeling[];
set BoardModeling(models: IModeling[]);
get Modeling2D(): I2DModeling[];
set Modeling2D(ms: I2DModeling[]);
get Modeling3D(): I3DModeling[];
set Modeling3D(ms: I3DModeling[]);
ClearModeling2DList(): void;
ClearModeling3DList(): void;
get IsChaiDan(): boolean;
set IsChaiDan(v: boolean);
get OpenDir(): BoardOpenDir;
set OpenDir(v: BoardOpenDir);
ClearBoardModeling(): void;
/**
* 注意传入的排钻列表,避免指针被引用
*/
AppendDrillList(k: ObjectId, drs: ObjectId[][]): void;
ClearDrillList(k: ObjectId): void;
ClearAllDrillList(): void;
Erase(isErase?: boolean): void;
get RotateMat(): Matrix4;
get Height(): number;
set Height(v: number);
get Width(): number;
set Width(v: number);
get BoardType(): BoardType;
set BoardType(type: BoardType);
SetBoardType(type: BoardType): void;
get MinPoint(): Vector3;
get MaxPoint(): Vector3;
get IsRect(): boolean;
get IsSpecialShape(): boolean;
get HasGroove(): boolean;
get Name(): string;
set Name(n: string);
/**
* 板件的轮廓,在板件坐标系中的表现方式.
*/
get ContourCurve(): ExtrudeContourCurve;
set ContourCurve(newContour: ExtrudeContourCurve);
Explode(): import("./Region").Region[];
/**
* 在不改变Normal和实体显示的情况下,修改X轴的指向
* @param xAxis
*/
SetXAxis(xAxis: Vector3, isKeepLines?: boolean): this;
RotateBoard(rox: number, roy: number, roz: number): void;
/**实际上这个值可能被改变,应该适当的去校验它(仅在重新设计模块时,这个值会被改变!) */
get Rotation(): {
x: number;
y: number;
z: number;
};
protected ApplyMirrorMatrix(m: Matrix4): this;
get UCGenerator(): UVGenerator;
UpdateUV(geo: Geometry, ocs: Matrix4, isRev?: boolean): void;
CopyFrom(obj: Board): void;
Clone(): this;
Join(target: this): import("../../Common/Status").Status;
private GetLinesDir;
private GetLinesOpenDir;
get KnifePolylineMap(): Map<string, Polyline>;
set KnifePolylineMap(map: Map<string, Polyline>);
private _3DPathObject;
Clear3DPathCache(): void;
private Get3DPathDrawObject;
Clear2DPathCache(): void;
_2DPathCsgs: Geom3[];
_2DPathDrawObject: Object3D;
/**
* 这个函数生成了二维刀路的csg数组,并且同时生成了_2DPathDrawObject(二维刀路提刀线框显示对象)
*/
Get2DPathCsgs(): Geom3[];
protected get Has2DPath(): boolean;
private _workerCalcedGeom;
private _async2DPathIng;
get Async2DPathing(): boolean;
GoodBye(): void;
private promise2DPath;
Load2DPathIng(): Promise<boolean>;
HandleSpliteEntitys(splitEntitys: this[]): void;
private get PlaceColor();
private GetPlaceFace;
private GetBigHoleFace;
OffsetPathCache: Map<Polyline, {
[key: string]: Polyline;
}>;
/**
* 根据板的信息修改绘制的实体
* 1.非拆单板 灰色
* 2.纹路 开门方向纹路
* 3.二维 三维刀路
*/
private UpdateDrawObjectByBoardInfo;
UpdateDrawObjectMaterial(renderType: RenderType, obj: Object3D): void;
CheckSealing(obj: Object3D): void;
GetStretchPoints(): Vector3[];
MoveStretchPoints(indexList: Array<number>, vec: Vector3): void;
GetObjectSnapPoints(snapMode: ObjectSnapMode, pickPoint: Vector3, lastPoint: Vector3, viewXform?: Matrix3, frustum?: Frustum): Vector3[];
DeferUpdate(): void;
protected _ReadFile(file: CADFiler): void;
WriteFile(file: CADFiler): void;
}
//# sourceMappingURL=Board.d.ts.map

File diff suppressed because one or more lines are too long

View File

@@ -1,35 +0,0 @@
export declare enum BoardType {
Layer = 0,
Vertical = 1,
Behind = 2
}
export declare enum LinesType {
/** 正纹 */
Positive = 0,
/** 反纹 */
Reverse = 1,
/** 可翻转 */
CanReversal = 2
}
export declare enum ComposingType {
Positive = 0,
Reverse = 1,
Arbitrary = 2
}
export declare enum BoardOpenDir {
Left = 1,
Right = 2,
Up = 3,
Down = 4,
None = 0
}
export declare enum BrRelativePos {
Front = "front",
Back = "back",
Top = "top",
Bottom = "bottom",
Left = "left",
Right = "right",
Div = "div"
}
//# sourceMappingURL=BoardInterface.d.ts.map

View File

@@ -1 +0,0 @@
{"version":3,"file":"BoardInterface.d.ts","sourceRoot":"","sources":["../../../../src/DatabaseServices/Entity/BoardInterface.ts"],"names":[],"mappings":"AAAA,oBAAY,SAAS;IAEjB,KAAK,IAAI;IACT,QAAQ,IAAI;IACZ,MAAM,IAAI;CACb;AAGD,oBAAY,SAAS;IAEjB,SAAS;IACT,QAAQ,IAAI;IACZ,SAAS;IACT,OAAO,IAAI;IACX,UAAU;IACV,WAAW,IAAI;CAClB;AAGD,oBAAY,aAAa;IAErB,QAAQ,IAAI;IACZ,OAAO,IAAI;IACX,SAAS,IAAI;CAChB;AAED,oBAAY,YAAY;IAEpB,IAAI,IAAI;IACR,KAAK,IAAI;IACT,EAAE,IAAI;IACN,IAAI,IAAI;IACR,IAAI,IAAI;CACX;AAED,oBAAY,aAAa;IAErB,KAAK,UAAU;IACf,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,GAAG,QAAQ;CACd"}

View File

@@ -1,57 +0,0 @@
import { Material, Matrix3, Matrix4, Object3D, Vector3 } from 'three';
import { ObjectSnapMode } from '../../Editor/ObjectSnapMode';
import { Box3Ext } from '../../Geometry/Box';
import { IntersectOption, IntersectResult } from '../../GraphicsSystem/IntersectWith';
import { RenderType } from '../../GraphicsSystem/RenderType';
import { CADFiler } from '../CADFiler';
import { Shape2 } from '../Shape2';
import { Arc } from './Arc';
import { Curve } from './Curve';
import { DragPointType } from './DragPointType';
export declare class Circle extends Curve {
constructor(center?: Vector3, radius?: number);
private _Radius;
get Shape(): Shape2;
get Center(): Vector3;
set Center(v: Vector3);
get Radius(): number;
set Radius(v: number);
protected ApplyScaleMatrix(m: Matrix4): this;
protected ApplyMirrorMatrix(m: Matrix4): this;
get StartPoint(): Vector3;
get StartParam(): number;
get EndPoint(): Vector3;
get EndParam(): number;
PtInCurve(pt: Vector3): boolean;
get Area(): number;
get Area2(): number;
get Length(): number;
get IsClose(): boolean;
get IsClockWise(): boolean;
GetPointAtParam(param: number): Vector3;
GetPointAtDistance(distance: number): Vector3;
GetDistAtParam(param: number): number;
GetDistAtPoint(pt: Vector3): number;
GetParamAtDist(d: number): number;
GetSplitCurves(param: number[] | number): Arc[];
GetParamAtPoint(pt?: Vector3): number;
PtOnCurve(pt: Vector3, fuzz?: number): boolean;
GetOffsetCurves(offsetDist: number): Curve[];
IntersectWith2(curve: Curve, intType: IntersectOption, tolerance?: number): IntersectResult[];
get BoundingBoxInOCS(): Box3Ext;
get BoundingBox(): Box3Ext;
InitDrawObject(renderType?: RenderType): Object3D;
UpdateDrawObject(type: RenderType, obj: Object3D): void;
UpdateDrawObjectMaterial(type: RenderType, obj: Object3D, material: Material): Object3D;
GetDragPointCount(drag: DragPointType): number;
GetGripPoints(): Array<Vector3>;
GetObjectSnapPoints(snapMode: ObjectSnapMode, pickPoint: Vector3, lastPoint: Vector3, viewXform?: Matrix3): Vector3[];
MoveGripPoints(indexList: Array<number>, vec: Vector3): void;
GetStretchPoints(): Array<Vector3>;
MoveStretchPoints(indexList: Array<number>, vec: Vector3): void;
GetFirstDeriv(pt: number | Vector3): Vector3;
GetClosestPointTo(pt: Vector3, extend: boolean): Vector3;
protected _ReadFile(file: CADFiler): void;
WriteFile(file: CADFiler): void;
}
//# sourceMappingURL=Circle.d.ts.map

View File

@@ -1 +0,0 @@
{"version":3,"file":"Circle.d.ts","sourceRoot":"","sources":["../../../../src/DatabaseServices/Entity/Circle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAiB,OAAO,EAAE,MAAM,OAAO,CAAC;AAQnH,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAI7C,OAAO,EAA2G,eAAe,EAA6B,eAAe,EAA0B,MAAM,oCAAoC,CAAC;AAClP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EAAE,QAAQ;CAO3B"}

View File

@@ -1,56 +0,0 @@
import { Matrix3, Matrix4, Object3D, Vector3 } from "three";
import { ObjectSnapMode } from "../../Editor/ObjectSnapMode";
import { Box3Ext } from "../../Geometry/Box";
import { RenderType } from "../../GraphicsSystem/RenderType";
import { CADFiler } from "../CADFiler";
import { DragPointType } from "./DragPointType";
import { Entity } from "./Entity";
export declare abstract class CompositeEntity extends Entity {
constructor();
Entitys: Entity[];
/**
* 返回对象在自身坐标系下的Box
*/
get BoundingBoxInOCS(): Box3Ext;
/**
* 初始化绘制的threejs实体,子类型重载该函数初始化绘制实体.
*/
Explode(): Entity[];
Traverse(callback: (arg0: Entity) => void): void;
protected InitDrawObject(renderType?: RenderType): Object3D;
UpdateDrawObject(renderType: RenderType, obj: Object3D): void;
get ColorIndex(): number;
set ColorIndex(color: number);
get Material(): import("../ObjectId").ObjectId<import("../CADObject").CADObject>;
set Material(id: import("../ObjectId").ObjectId<import("../CADObject").CADObject>);
UpdateDrawObjectMaterial(renderType: RenderType, obj: Object3D): void;
RestoreJigMaterial(): void;
/**
*
* @param snapMode 捕捉模式(单一)
* @param pickPoint const
* @param lastPoint const
* @param viewXform const 最近点捕捉需要这个变量
* @returns object snap points
*/
GetObjectSnapPoints(snapMode: ObjectSnapMode, pickPoint: Vector3, lastPoint: Vector3, viewXform?: Matrix3): Vector3[];
GetGripPoints(): Array<Vector3>;
MoveGripPoints(indexList: number[], vec: Vector3): void;
GetStretchPoints(): Array<Vector3>;
/**
* 拉伸夹点,用于Stretch命令
*
* @param {Array<number>} indexList 拉伸点索引列表.
* @param {Vector3} vec 移动向量
* @memberof Entity
*/
MoveStretchPoints(indexList: Array<number>, vec: Vector3): void;
private GetGripOrStretchPoints;
private GetStrectchPointCountList;
MoveGripOrStretchPoints(indexList: number[], vec: Vector3, dragType: DragPointType): void;
CloneDrawObject(from: this): void;
ApplyMirrorMatrix(m: Matrix4): this;
protected _ReadFile(file: CADFiler): void;
WriteFile(file: CADFiler): void;
}
//# sourceMappingURL=CompositeEntity.d.ts.map

View File

@@ -1 +0,0 @@
{"version":3,"file":"CompositeEntity.d.ts","sourceRoot":"","sources":["../../../../src/DatabaseServices/Entity/CompositeEntity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAK5D,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAG7D,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAIlC,8BACsB,eAAgB,SAAQ,MAAM;;IAOpC,OAAO,EAAE,MAAM,EAAE,CAAM;IAEnC;;MAEE;IACF,IAAa,gBAAgB,IAAI,OAAO,CA6BvC;IAID;;MAEE;IACO,OAAO;IAShB,QAAQ,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI;IAsBzC,SAAS,CAAC,cAAc,CAAC,UAAU,GAAE,UAAiC,GAAG,QAAQ;IAajF,gBAAgB,CAAC,UAAU,EAAE,UAAU,EAAE,GAAG,EAAE,QAAQ;IAwBtD,IAAI,UAAU,IAAI,MAAM,CAGvB;IAED,IAAI,UAAU,CAAC,KAAK,EAAE,MAAM,EAgB3B;IACD,IAAI,QAAQ,qEAGX;IACD,IAAI,QAAQ,CAAC,EAAE,kEAAA,EAQd;IAED,wBAAwB,CAAC,UAAU,EAAE,UAAU,EAAE,GAAG,EAAE,QAAQ;IAK9D,kBAAkB;IASlB;;;;;;;MAOE;IACF,mBAAmB,CACf,QAAQ,EAAE,cAAc,EACxB,SAAS,EAAE,OAAO,EAClB,SAAS,EAAE,OAAO,EAClB,SAAS,CAAC,EAAE,OAAO,GACpB,OAAO,EAAE;IAQZ,aAAa,IAAI,KAAK,CAAC,OAAO,CAAC;IAK/B,cAAc,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,OAAO;IAMhD,gBAAgB,IAAI,KAAK,CAAC,OAAO,CAAC;IAKlC;;;;;;OAMG;IACH,iBAAiB,CAAC,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,OAAO;IAMxD,OAAO,CAAC,sBAAsB;IAU9B,OAAO,CAAC,yBAAyB;IASjC,uBAAuB,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,OAAO,EAAE,QAAQ,EAAE,aAAa;IA4ClF,eAAe,CAAC,IAAI,EAAE,IAAI;IAkB1B,iBAAiB,CAAC,CAAC,EAAE,OAAO;IAS5B,SAAS,CAAC,SAAS,CAAC,IAAI,EAAE,QAAQ;IAclC,SAAS,CAAC,IAAI,EAAE,QAAQ;CAS3B"}

View File

@@ -1,117 +0,0 @@
import { Material, Object3D, Curve as TCurve, Vector3 } from 'three';
import { Status } from '../../Common/Status';
import { IntersectOption, IntersectResult } from '../../GraphicsSystem/IntersectWith';
import { RenderType } from '../../GraphicsSystem/RenderType';
import { DragPointType } from './DragPointType';
import { Entity } from './Entity';
export declare enum ExtendType {
/**
* 前后都不延伸
*/
None = 0,
/**
* 只允许延伸前面
*/
Front = 1,
/**
* 只允许延伸后面
*/
Back = 2,
/**
* 前后延伸
*/
Both = 3
}
/**
* 曲线的基类,子类请实现以下方法.
*/
export declare abstract class Curve extends Entity {
constructor();
get Is2D(): boolean;
get StartPoint(): Vector3;
set StartPoint(v: Vector3);
get StartParam(): number;
get EndPoint(): Vector3;
set EndPoint(v: Vector3);
/** 曲线中点 */
get Midpoint(): Vector3;
get MidParam(): number;
get EndParam(): number;
get Area(): number;
/**
*获得曲线的面积,逆时针为正,顺时针为负.
*/
get Area2(): number;
get Length(): number;
get IsClose(): boolean;
/** 曲线为顺时针 */
get IsClockWise(): boolean;
get Shape(): TCurve<any>;
GetPointAtParam(param: number): Vector3;
GetPointAtDistance(distance: number): Vector3;
GetDistAtParam(param: number): number;
GetDistAtPoint(pt: Vector3): number;
GetParamAtPoint(pt: Vector3, fuzz?: number): number;
GetParamAtPoint2(pt: Vector3, fuzz?: number): number;
GetParamAtDist(d: number): number;
/**
* 返回曲线在指定位置的一阶导数(在wcs内)
* @param {(number | Vector3)} param
*/
GetFirstDeriv(param: number | Vector3): Vector3;
GetFirstDerivAngle(param: number | Vector3): number;
/**
* 返回切割曲线后的结果.总是从起点开始切割,并且按顺序返回曲线.
* @param {(number[] | number)} param
*/
GetSplitCurves(param: number[] | number): Array<Curve>;
GetCurveAtParamRange(startParam: number, EndParam: number): Array<Curve>;
GetSplitCurvesByPts(pt: Vector3[] | Vector3): Array<Curve>;
protected SplitParamSort(param: number[] | number): number[];
Extend(newParam: number): void;
/**
* 连接曲线到本曲线,如果成功返回true
* @param {Curve} cu 需要连接的曲线
* @returns {boolean} 连接成功
* @memberof Curve
*/
Join(cu: Curve, allowGap?: boolean, tolerance?: number): Status;
Reverse(): this;
PtOnCurve(pt: Vector3, fuzz?: number): boolean;
PtOnCurve2(pt: Vector3): boolean;
PtOnCurve3(p: Vector3, fuzz?: number): boolean;
ParamOnCurve(param: number, fuzz?: number): boolean;
GetOffsetCurves(offsetDist: number): Array<Curve>;
GetClosestPointTo(pt: Vector3, extend: boolean): Vector3;
/**
* 曲线相交点
*/
IntersectWith(curve: Curve, intType: IntersectOption, tolerance?: number): Vector3[];
/**
* 曲线相交点和点的参数
*/
IntersectWith2(curve: Curve, intType: IntersectOption, tolerance?: number): IntersectResult[];
/**
* 拽托点个数
*/
GetDragPointCount(drag: DragPointType): number;
protected OnlyRenderType: boolean;
GetDrawCount(): number;
/**
* @param {RenderType} [renderType=RenderType.Wireframe]
*/
protected InitDrawObject(renderType?: RenderType): Object3D;
/**
* 重载:更新绘制的实体
* @param {RenderType} type
* @param {Object3D} obj
*/
UpdateDrawObject(type: RenderType, obj: Object3D): void;
/**
* 重载:更新实体材质
*/
UpdateDrawObjectMaterial(type: RenderType, obj: Object3D, material?: Material): void;
UpdateJigMaterial(color?: number): void;
}
export declare const DbCurve: typeof Curve;
//# sourceMappingURL=Curve.d.ts.map

View File

@@ -1 +0,0 @@
{"version":3,"file":"Curve.d.ts","sourceRoot":"","sources":["../../../../src/DatabaseServices/Entity/Curve.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,QAAQ,EAAE,QAAQ,EAAE,KAAK,IAAI,MAAM,EAAiB,OAAO,EAAE,MAAM,OAAO,CAAC;AAK1G,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAG7C,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACtF,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAE7D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,oBAAY,UAAU;IAElB;;OAEG;IACH,IAAI,IAAI;IACR;;OAEG;IACH,KAAK,IAAI;IACT;;OAEG;IACH,IAAI,IAAI;IACR;;OAEG;IACH,IAAI,IAAI;CACX;AAED;;GAEG;AACH,8BACsB,KAAM,SAAQ,MAAM;;IAOtC,IAAI,IAAI,YAGP;IAED,IAAI,UAAU,IAAI,OAAO,CAAY;IACrC,IAAI,UAAU,CAAC,CAAC,EAAE,OAAO,EAAa;IACtC,IAAI,UAAU,IAAI,MAAM,CAAY;IACpC,IAAI,QAAQ,IAAI,OAAO,CAAY;IACnC,IAAI,QAAQ,CAAC,CAAC,EAAE,OAAO,EAAa;IAEpC,WAAW;IACX,IAAI,QAAQ,YAGX;IAED,IAAI,QAAQ,WAMX;IAED,IAAI,QAAQ,IAAI,MAAM,CAAY;IAClC,IAAI,IAAI,IAAI,MAAM,CAAc;IAChC;;OAEG;IACH,IAAI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G3D,OAAO,IAAI,IAAI;IAGf,SAAS,CAAC,EAAE,EAAE,OAAO,EAAE,IAAI,SAAO,GAAG,OAAO;IAM5C,UAAU,CAAC,EAAE,EAAE,OAAO,GAAG,OAAO;IAMhC,UAAU,CAAC,CAAC,EAAE,OAAO,EAAE,IAAI,SAAO,GAAG,OAAO;IAM5C,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,SAAO,GAAG,OAAO;IACjD,eAAe,CAAC,UAAU,EAAE,MAAM,GAAG,KAAK,CAAC,KAAK,CAAC;IACjD,iBAAiB,CAAC,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,GAAG,OAAO;IAExD;;OAEG;IACH,aAAa,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,eAAe,EAAE,SAAS,SAAO,GAAG,OAAO,EAAE;IAKlF;;OAEG;IACH,cAAc,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,eAAe,EAAE,SAAS,SAAO,GAAG,eAAe,EAAE;IAG3F;;OAEG;IACH,iBAAiB,CAAC,IAAI,EAAE,aAAa,GAAG,MAAM;IAI9C,UAAmB,cAAc,UAAQ;IAGzC,YAAY;IAEZ;;MAEE;cACiB,cAAc,CAAC,UAAU,GAAE,UAAiC,GAAG,QAAQ;IAgB1F;;;;OAIG;IACM,gBAAgB,CAAC,IAAI,EAAE,UAAU,EAAE,GAAG,EAAE,QAAQ;IAoBzD;;OAEG;IACM,wBAAwB,CAAC,IAAI,EAAE,UAAU,EAAE,GAAG,EAAE,QAAQ,EAAE,QAAQ,CAAC,EAAE,QAAQ;IAa7E,iBAAiB,CAAC,KAAK,SAAI;CAOvC;AAED,eAAO,MAAM,OAAO,cAAQ,CAAC"}

View File

@@ -1,5 +0,0 @@
export declare enum DragPointType {
Grip = 0,
Stretch = 1
}
//# sourceMappingURL=DragPointType.d.ts.map

View File

@@ -1 +0,0 @@
{"version":3,"file":"DragPointType.d.ts","sourceRoot":"","sources":["../../../../src/DatabaseServices/Entity/DragPointType.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa;IAErB,IAAI,IAAI;IACR,OAAO,IAAI;CACd"}

View File

@@ -1,64 +0,0 @@
import { Matrix3, Matrix4, Shape, Vector3 } from 'three';
import { Status } from '../../Common/Status';
import { ObjectSnapMode } from '../../Editor/ObjectSnapMode';
import { IntersectOption } from '../../GraphicsSystem/IntersectWith';
import { CADFiler } from '../CADFiler';
import { Curve } from './Curve';
import { Polyline } from './Polyline';
export declare class Ellipse extends Curve {
private _radX;
private _radY;
private _rotate;
private _startAngle;
private _endAngle;
constructor(center?: Vector3, radX?: number, radY?: number, angle?: number);
get StartParam(): number;
get EndParam(): number;
get StartPoint(): Vector3;
get EndPoint(): Vector3;
get Shape(): Shape;
get IsClose(): boolean;
get Center(): Vector3;
set Center(v: Vector3);
get RadX(): number;
set RadX(v: number);
get RadY(): number;
set RadY(v: number);
get Rotation(): number;
set Rotation(v: number);
get StartAngle(): number;
get EndAngle(): number;
set StartAngle(v: number);
set EndAngle(v: number);
get Length(): number;
get Area(): number;
get TotalAngle(): number;
protected ApplyScaleMatrix(m: Matrix4): this;
Extend(newParam: number): void;
PtInCurve(pt: Vector3): boolean;
PtOnCurve(pt: Vector3): boolean;
PtOnEllipse(pt: Vector3): boolean;
GetPointAtParam(param: number): Vector3;
GetParamAtPoint(pt?: Vector3): number;
GetPointAtDistance(distance: number): Vector3;
GetDistAtParam(param: number): number;
GetDistAtPoint(pt: Vector3): number;
GetParamAtDist(d: number): number;
GetAngleAtParam(param: number): number;
GetCircleAngleAtPoint(pt: Vector3): number;
GetFirstDeriv(pt: number | Vector3): Vector3;
GetClosestPointTo(p: Vector3, extend: boolean): Vector3;
GetOffsetCurves(offsetDist: number): this[];
GetSplitCurves(param: number[] | number): this[];
Join(el: Ellipse): Status.False | Status.True;
GetObjectSnapPoints(snapMode: ObjectSnapMode, pickPoint: Vector3, lastPoint: Vector3, viewXform?: Matrix3): Vector3[];
IntersectWith2(curve: Curve, intType: IntersectOption): import("../../GraphicsSystem/IntersectWith").IntersectResult[];
GetStretchPoints(): Array<Vector3>;
GetGripPoints(): Array<Vector3>;
MoveStretchPoints(indexList: Array<number>, vec: Vector3): void;
MoveGripPoints(indexList: Array<number>, vec: Vector3): void;
Convert2Polyline(count?: number): Polyline;
protected _ReadFile(file: CADFiler): void;
WriteFile(file: CADFiler): void;
}
//# sourceMappingURL=Ellipse.d.ts.map

View File

@@ -1 +0,0 @@
{"version":3,"file":"Ellipse.d.ts","sourceRoot":"","sources":["../../../../src/DatabaseServices/Entity/Ellipse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAGpE,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAG7D,OAAO,EAA6E,eAAe,EAAqD,MAAM,oCAAoC,CAAC;AAEnM,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAIvC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,qBACa,OAAQ,SAAQ,KAAK;IAE9B,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,WAAW,CAAK;IACxB,OAAO,CAAC,SAAS,CAAe;gBAE5B,MAAM,CAAC,EAAE,OAAO,EAChB,IAAI,GAAE,MAAa,EACnB,IAAI,GAAE,MAAa,EACnB,KAAK,GAAE,MAAU;IAQrB,IAAI,UAAU,IAAI,MAAM,CAGvB;IACD,IAAI,QAAQ,IAAI,MAAM,CAGrB;IACD,IAAI,UAAU,YAGb;IACD,IAAI,QAAQ,YAGX;IACD,IAAI,KAAK,IAAI,KAAK,CAKjB;IACD,IAAI,OAAO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,OAAO,GAAG,OAAO;IA+CvD,eAAe,CAAC,UAAU,EAAE,MAAM;IAWlC,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM;IAqCvC,IAAI,CAAC,EAAE,EAAE,OAAO;IAwBhB,mBAAmB,CACf,QAAQ,EAAE,cAAc,EACxB,SAAS,EAAE,OAAO,EAClB,SAAS,EAAE,OAAO,EAClB,SAAS,CAAC,EAAE,OAAO,GACpB,OAAO,EAAE;IAkCZ,cAAc,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,eAAe;IAuBrD,gBAAgB,IAAI,KAAK,CAAC,OAAO,CAAC;IAIlC,aAAa,IAAI,KAAK,CAAC,OAAO,CAAC;IAoB/B,iBAAiB,CAAC,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,OAAO;IAIxD,cAAc,CAAC,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,OAAO;IAoCrD,gBAAgB,CAAC,KAAK,SAAI;IA0B1B,SAAS,CAAC,SAAS,CAAC,IAAI,EAAE,QAAQ;IAYlC,SAAS,CAAC,IAAI,EAAE,QAAQ;CAW3B"}

View File

@@ -1,186 +0,0 @@
import { Frustum, Material, Matrix3, Matrix4, Object3D, Vector3 } from 'three';
import { UpdateDraw } from '../../Common/Status';
import { ObjectSnapMode } from '../../Editor/ObjectSnapMode';
import { Box3Ext } from '../../Geometry/Box';
import { Vec3 } from '../../Geometry/IVec3';
import { IntersectOption } from '../../GraphicsSystem/IntersectWith';
import { RenderType } from '../../GraphicsSystem/RenderType';
import { CADFiler } from '../CADFiler';
import { CADObject } from '../CADObject';
import { ISerialize } from '../ISerialize';
import { ObjectId } from '../ObjectId';
/**
* Entity 是所有图元的基类,绘制的实体都集成该类.
*/
export declare class Entity extends CADObject {
IsEmbedEntity: boolean;
/**
* 该实体的只有一个渲染类型,任何渲染类型都一个样
*/
protected OnlyRenderType: boolean;
protected HasEdgeRenderType: boolean;
protected HasPlaceFaceRenderType: boolean;
protected HasBigHoleFaceRenderType: boolean;
protected _CacheDrawObject: Map<RenderType, Object3D>;
protected _MaterialId: ObjectId;
protected _Color: number;
protected _Matrix: Matrix4;
constructor();
protected _SpaceOCS: Matrix4;
get CacheDrawObject(): Map<RenderType, Object3D>;
get SpaceCSNoClone(): Matrix4;
get SpaceOCS(): Matrix4;
set SpaceOCS(m: Matrix4);
get SpaceOCSInv(): Matrix4;
protected _Visible: boolean;
protected _VisibleInRender: boolean;
protected _Freeze: boolean;
get Freeze(): boolean;
set Freeze(f: boolean);
get VisibleInRender(): boolean;
set VisibleInRender(v: boolean);
GroupId: ObjectId;
Template: ObjectId;
ProcessingGroupList: ObjectId[];
/**
* 当AutoUpdate为false时,记录需要更新的标志.
* 以便延迟更新时找到相应的更新标志.
*/
NeedUpdateFlag: UpdateDraw;
AutoUpdate: boolean;
CopyInRenderTpye: RenderType;
set Material(materialId: ObjectId);
get Material(): ObjectId;
GetMaterialSlots(): void;
SetMaterialAtSlot(mtl: ObjectId, slotIndex: number): void;
set ColorIndex(color: number);
get ColorIndex(): number;
/**
* 炸开实体
*/
Explode(): Entity[];
/**
* 返回对象的包围框.
*/
get BoundingBox(): import("three").Box3;
/**
* 返回对象在自身坐标系下的Box
*/
get BoundingBoxInOCS(): Box3Ext;
GetBoundingBoxInMtx(mtx: Matrix4): Box3Ext;
get BoundingBoxInSpaceCS(): Box3Ext;
get OCS(): Matrix4;
get OCSNoClone(): Matrix4;
set OCS(mat4: Matrix4);
get Normal(): Vector3;
get Position(): Vector3;
Move(v: Vec3): this;
set Position(pt: Vector3);
get Z(): number;
set Z(z: number);
Z0(): this;
MatrixPlanarizere(): this;
get OCSInv(): Matrix4;
/**
* 与指定实体是否共面.
*/
IsCoplaneTo(e: Entity): boolean;
/**
* 测试两个实体的包围盒是否相交.
*/
BoundingBoxIntersectWith(en: Entity): boolean;
ClearDraw(): this;
ClearDrawOfJig(): void;
get IsOnlyRender(): boolean;
protected get CaseShadow(): boolean;
protected get ReceiveShadow(): boolean;
_drawObject: Object3D;
get DrawObject(): Object3D;
get JigObject(): Object3D;
DestroyJigObject(): void;
protected _CurRenderType: RenderType;
UpdateRenderType(type: RenderType): void;
GetDrawObjectFromRenderType(renderType?: RenderType): Object3D;
/**
* 初始化绘制的threejs实体,子类型重载该函数初始化绘制实体.
*/
protected InitDrawObject(renderType?: RenderType): Object3D;
__UpdateVersion__: number;
/**
* 当实体数据改变时,绘制的实体必须做出改变.供框架调用
*/
Update(mode?: UpdateDraw): void;
UpdateDrawGeometry(): void;
/** 立即更新 */
DeferUpdate(): void;
/**
* 当实体需要更新时,需要重载该方法,实现实体更新
*/
UpdateDrawObject(type: RenderType, en: Object3D): void;
/**
* 当实体需要被更新时,更新实体材质
*/
UpdateDrawObjectMaterial(type: RenderType, obj: Object3D, material?: Material): void;
protected get MeshMaterial(): Material | Material[];
/**
* 更新实体Jig状态时的材质
*/
UpdateJigMaterial(color?: number): void;
RestoreJigMaterial(): void;
get Visible(): boolean;
set Visible(v: boolean);
get IsVisible(): boolean;
UpdateVisible(): void;
GoodBye(): void;
Erase(isErase?: boolean): void;
EraseEvent(isErase: boolean): void;
static _xa: Vector3;
static _ya: Vector3;
static _za: Vector3;
/**
* 使用统一的方法设置对象的矩阵.
* 需要对缩放矩形进行重载.避免对象矩阵不是单位矩阵
*/
ApplyMatrix(m: Matrix4): this;
protected ApplyScaleMatrix(m: Matrix4): this;
protected ApplyMirrorMatrix(m: Matrix4): this;
/**
*
* @param snapMode 捕捉模式(单一)
* @param pickPoint const
* @param lastPoint const
* @param viewXform const 最近点捕捉需要这个变量
* @returns object snap points
*/
GetObjectSnapPoints(snapMode: ObjectSnapMode, pickPoint: Vector3, lastPoint: Vector3, viewXform?: Matrix3, frustum?: Frustum): Vector3[];
GetGripPoints(): Vector3[];
MoveGripPoints(indexList: number[], vec: Vector3): void;
GetStretchPoints(): Array<Vector3>;
/**
* 拉伸夹点,用于Stretch命令
* @param {Array<number>} indexList 拉伸点索引列表.
* @param {Vector3} vec 移动向量
*/
MoveStretchPoints(indexList: Array<number>, vec: Vector3): void;
IntersectWith(curve: Entity, intType: IntersectOption): Vector3[];
Clone(cloneDraw?: boolean): this;
CloneDrawObject(from: this): void;
static __ReadFileIng__: boolean;
__ReadFileIng__: boolean;
get ReadFileIng(): boolean;
/**
* 从文件读取,序列化自身,如果需要,重载_ReadFile
*/
ReadFile(file: CADFiler): void;
protected _ReadFile(file: CADFiler): void;
WriteFile(file: CADFiler): void;
ApplyPartialUndo(undoData: CADObject): void;
CopyFrom(obj: CADObject): void;
}
export declare class EntityColorHistoryRecord implements ISerialize {
color: number;
constructor(color: number);
ReadFile(file: CADFiler): this;
WriteFile(file: CADFiler): this;
}
//# sourceMappingURL=Entity.d.ts.map

View File

@@ -1 +0,0 @@
{"version":3,"file":"Entity.d.ts","sourceRoot":"","sources":["../../../../src/DatabaseServices/Entity/Entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAwB,QAAQ,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAKrG,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAE7C,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAG7D,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGvC;;GAEG;AACH,qBACa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G;IACH,iBAAiB,CAAC,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,OAAO;IAIxD,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,eAAe,GAAG,OAAO,EAAE;IAIxD,KAAK,CAAC,SAAS,UAAO,GAAG,IAAI;IAUtC,eAAe,CAAC,IAAI,EAAE,IAAI;IAkB1B,MAAM,CAAC,eAAe,EAAE,OAAO,CAAC;IAChC,eAAe,EAAE,OAAO,CAAC;IAEzB,IAAI,WAAW,YAGd;IAED;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,QAAQ;IASvB,SAAS,CAAC,SAAS,CAAC,IAAI,EAAE,QAAQ;IA6ClC,SAAS,CAAC,IAAI,EAAE,QAAQ;IAoBxB,gBAAgB,CAAC,QAAQ,EAAE,SAAS;IAO3B,QAAQ,CAAC,GAAG,EAAE,SAAS;CASnC;AAED,qBACa,wBAAyB,YAAW,UAAU;IAEpC,KAAK,EAAE,MAAM;gBAAb,KAAK,EAAE,MAAM;IAChC,QAAQ,CAAC,IAAI,EAAE,QAAQ,GAAG,IAAI;IAK9B,SAAS,CAAC,IAAI,EAAE,QAAQ,GAAG,IAAI;CAKlC"}

View File

@@ -1,232 +0,0 @@
import { BoxGeometry, BufferGeometry, Frustum, Geometry, Matrix3, Matrix4, Mesh, Object3D, UVGenerator, Vector3 } from "three";
import { Line2 } from "three/examples/jsm/lines/Line2";
import { Status } from "../../Common/Status";
import { ObjectSnapMode } from "../../Editor/ObjectSnapMode";
import { Box3Ext } from "../../Geometry/Box";
import { EdgesGeometry } from "../../Geometry/EdgeGeometry";
import { OBB } from "../../Geometry/OBB/obb";
import { RenderType } from "../../GraphicsSystem/RenderType";
import { CADFiler } from "../CADFiler";
import { ObjectId } from "../ObjectId";
import { Shape } from "../Shape";
import { Circle } from "./Circle";
import { DragPointType } from "./DragPointType";
import { Entity } from "./Entity";
import { Polyline } from "./Polyline";
import { Region } from "./Region";
export type ExtrudeContourCurve = Polyline | Circle;
export type ExtrudeContour = Polyline | Circle | ExtrudeSolid | Region;
export declare const MaxDrawGrooveCount = 1000;
export declare class ExtrudeSolid extends Entity {
protected height: number;
protected width: number;
/**
* 拉伸实体的厚度
* 我们允许它是一个负数,但是这个时候这个实体已经是一个无效的拉伸实体了.
* 允许负数,用来校验凹槽的合理性.
*/
protected thickness: number;
protected isRect: boolean;
protected bevelEnabled: boolean;
IsKnife: boolean;
RelevanceMeats: ObjectId[];
RelevanceKnifs: ObjectId[];
__OriginalId__: ObjectId;
__OriginalEnt__: this;
/**
* 拉伸形状
* 出于优化考虑,可能未初始化,请注意调用this.ContourCurve
* 形状位于WCS 0点位置,不随OCS变化而变化
* 注意:这个时针不一定为逆时针
*/
protected contourCurve: ExtrudeContourCurve;
/**
* 正面和反面的凹槽造型
*/
protected grooves: ExtrudeSolid[];
protected knifeRadius: number;
protected groovesAddLength: number;
protected groovesAddWidth: number;
protected groovesAddDepth: number;
__TempIndexVersion__: {
Index: number;
Version: number;
};
constructor();
set Material(materialId: ObjectId);
get Material(): ObjectId;
get KnifeRadius(): number;
set KnifeRadius(v: number);
get BoundingBox(): Box3Ext;
get BoundingBoxInOCS(): Box3Ext;
get OBB(): OBB;
get GroovesAddLength(): number;
set GroovesAddLength(v: number);
get GroovesAddWidth(): number;
set GroovesAddWidth(v: number);
get GroovesAddDepth(): number;
set GroovesAddDepth(v: number);
Clone(): this;
ApplyMatrix(m: Matrix4): this;
protected ApplyScaleMatrix(m: Matrix4): this;
protected ApplyMirrorMatrix(m: Matrix4): this;
get Width(): number;
get Height(): number;
get Thickness(): number;
set Thickness(thickness: number);
get Grooves(): ExtrudeSolid[];
/**
* 返回未拷贝的轮廓曲线
*/
get ContourCurve(): ExtrudeContourCurve;
set ContourCurve(cu: ExtrudeContourCurve);
/**
* 生成矩形轮廓(强制)
*/
GeneralRectContour(): void;
/**
* 转换成矩形拉伸实体
*/
ConverToRectSolid(width?: number, height?: number, thickness?: number): this;
/**
* 更新拉伸实体的轮廓
* @param curve 曲线已经存在WCS坐标系0点
*/
SetContourCurve(curve: ExtrudeContourCurve): void;
/**
* 在不改变Normal和实体显示的情况下,修改X轴的指向
* @param xAxis
*/
SetXAxis(xAxis: Vector3): this;
/**
* 检验轮廓曲线,通常当轮廓曲线被修改时,都需要检验轮廓曲线,并更新实体大小和轮廓位置.
* >计算轮廓大小
* >判断是否矩形
* >修正轮廓基点
* >保证轮廓是逆时针(不再设置)
*/
CheckContourCurve(): void;
get IsRect(): boolean;
/**
* 这个拉伸实体的面域形状
*/
get Shape(): Shape;
private GetShape;
/**
* 实体合并(不会删除target)
*/
Join(target: this): Status;
get Volume(): number;
/**
* 被切割
* @param extrudes 切割刀
* @param [output=undefined] 如果实体被分裂,那么输出分裂的其他实体(如果为空,则尝试入当前实体的容器中)
* @param [checkIntersect=true] 检查相交,性能优化
* @returns 切割是否成功
*/
Subtract(extrudes: ExtrudeSolid[], output?: ExtrudeSolid[], checkIntersect?: boolean): boolean;
RelevanceSubtract(knif: ExtrudeSolid, check?: boolean): void;
/**
* 当实体被分裂后,加入新图纸时,需要修复关联拉槽
*/
RepairRelevance(): void;
AppendGroove(groove: ExtrudeSolid): void;
/** 添加槽进板件,并且自动分裂.
* 通常槽已经校验过准确性,所以不在校验
*/
AppendGrooves(grooves: ExtrudeSolid[], output?: ExtrudeSolid[]): void;
GetObjectSnapPoints(snapMode: ObjectSnapMode, pickPoint: Vector3, lastPoint: Vector3, viewXform?: Matrix3, frustum?: Frustum): Vector3[];
protected GetStrectchPointCountList(dragType: DragPointType): number[];
GetGripOrStretchPoints(dragType: DragPointType): Vector3[];
MoveGripOrStretchPoints(indexList: number[], vec: Vector3, dragType: DragPointType): void;
GetGripPoints(): Array<Vector3>;
MoveGripPoints(indexList: number[], vec: Vector3): void;
GetStretchPoints(): Vector3[];
MoveStretchPoints(indexList: Array<number>, vec: Vector3): void;
/**
* 只对自身的轮廓和厚度进行拉伸,忽略子实体
*/
MoveGripOrStretchPointsOnly(indexList: Array<number>, vec: Vector3, dragType: DragPointType): void;
IsStretchThickness(indexs: number[]): boolean;
/**
* (步骤2)
* 更新凹槽位置和厚度(校验凹槽的Z轴位置是否存在交集)
*/
GrooveCheckPosition(target: ExtrudeSolid): Status;
/**
* (步骤3)
* 计算凹槽合并
*/
GrooveCheckMerge(checkGrooveContourCurve?: boolean): void;
/**
* (步骤4.1)
* 计算凹槽轮廓在本实体中的约束状态(可能分裂)
* @param groove 凹槽(不拷贝,直接被修改)
* @returns this[] 凹槽在本实体中正确的约束状态.(可能分裂成为多个)
*/
private GrooveCheckContour;
/**
* (步骤4.2)
* 计算本实体被全身的凹槽差集后正确的实体轮廓,和有可能的分裂实体
* @param splitEntitys 分裂出来的实体
* @returns [Status] Status : 消失不见
*/
ContourCheckSubtract(splitEntitys: this[]): boolean;
IsLazyGrooveCheck: boolean;
IsNeedGrooveCheck: boolean;
/**
* 无法知道修改了轮廓是否为更新到内部凹槽.
* 无法知道修改了内部凹槽之后是否会更新到轮廓.
* 所以默认全部校验内部的凹槽
*/
GrooveCheckAll(splitEntitys: this[]): void;
/** 校验内部槽并且自动分裂 */
GrooveCheckAllAutoSplit(output?: ExtrudeSolid[]): void;
HandleSpliteEntitys(splitEntitys: this[]): void;
LazyGrooveCheckAll(): void;
GetPrintObject3D(): (Line2 | Mesh<BufferGeometry, import("three").ShaderMaterial>)[];
InitDrawObject(renderType?: RenderType): Object3D;
get UCGenerator(): UVGenerator;
__CacheKnifVersion__: {
[key: number]: number;
};
get NeedUpdateRelevanceGroove(): boolean;
__CacheVolume__: number;
__CacheSplitExtrudes: this[];
/**
* 计算关联拉槽,更新绘制对象(MeshGeometry和EdgeGeometry)
*/
private CalcRelevanceGroove;
/**
* 如果实体被切割,那么将返回分裂的实体数组,否则返回自身
*/
get SplitExtrudes(): this[];
protected GetRelevanceKnifes(knifs: ExtrudeSolid[]): void;
ClearRelevance(en?: ExtrudeSolid): void;
private _MeshGeometry;
get MeshGeometry(): BufferGeometry;
UpdateMeshGeom(geo: BufferGeometry | Geometry): BufferGeometry;
protected get Has2DPath(): boolean;
protected _EdgeGeometry: EdgesGeometry | BufferGeometry;
get EdgeGeometry(): BufferGeometry;
UpdateUV(geo: Geometry, ocs: Matrix4, isRev?: boolean): void;
GenWorldUV(geo: BufferGeometry): void;
UpdateBufferGeometryUvs(isRev: boolean): void;
DeferUpdate(): void;
ClearDraw(): this;
UpdateDrawObject(renderType: RenderType, obj: Object3D): Object3D;
UpdateDrawObjectMaterial(renderType: RenderType, obj: Object3D): void;
private GetModelGroove;
UpdateJigMaterial(color?: number): void;
/**
* 简化的文件读取和写入,只写入必要的数据,没有id,没有其他版本号
*/
ReadFileLite(file: CADFiler): void;
WriteFileLite(file: CADFiler): void;
private ReadFileOnly;
private WriteFileOnly;
protected _ReadFile(file: CADFiler): void;
WriteFile(file: CADFiler): void;
}
export declare function FastMeshGeometry(width: number, height: number, thickness: number): BoxGeometry;
//# sourceMappingURL=Extrude.d.ts.map

File diff suppressed because one or more lines are too long

View File

@@ -1,4 +0,0 @@
export declare const ExtrudeConfig: {
DisableRefCut: boolean;
};
//# sourceMappingURL=ExtrudeConfig.d.ts.map

View File

@@ -1 +0,0 @@
{"version":3,"file":"ExtrudeConfig.d.ts","sourceRoot":"","sources":["../../../../src/DatabaseServices/Entity/ExtrudeConfig.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,aAAa;;CAEzB,CAAC"}

View File

@@ -1,14 +0,0 @@
import { BufferGeometry, Material, Matrix4, Mesh, Vector3 } from "three";
export declare function GetFaceDir(direction: Vector3): Vector3;
export declare class GenUVForWorld {
InvMtxMap: Map<Vector3, Matrix4>;
private _Z;
private _X;
private _Y;
private _Box;
private _Box2;
GetMtxInv(normalX: number, normalY: number, normalZ: number): Matrix4;
GenUV(mesh: Mesh<BufferGeometry, Material[]>): void;
GenGeoUV(geo: BufferGeometry, mtl: Material, scale?: number): void;
}
//# sourceMappingURL=GenUVForWorld.d.ts.map

View File

@@ -1 +0,0 @@
{"version":3,"file":"GenUVForWorld.d.ts","sourceRoot":"","sources":["../../../../src/DatabaseServices/Entity/GenUVForWorld.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,cAAc,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAMhG,wBAAgB,UAAU,CAAC,SAAS,EAAE,OAAO,GAAG,OAAO,CAsBtD;AAED,qBAAa,aAAa;IAEtB,SAAS,wBAA+B;IAExC,OAAO,CAAC,EAAE,CAAe;IACzB,OAAO,CAAC,EAAE,CAAe;IACzB,OAAO,CAAC,EAAE,CAAe;IACzB,OAAO,CAAC,IAAI,CAAY;IACxB,OAAO,CAAC,KAAK,CAAY;IACzB,SAAS,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM;IAiB3D,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,cAAc,EAAE,QAAQ,EAAE,CAAC;IAqD5C,QAAQ,CAAC,GAAG,EAAE,cAAc,EAAE,GAAG,EAAE,QAAQ,EAAE,KAAK,SAAO;CA+B5D"}

View File

@@ -1,73 +0,0 @@
import { Box3, Matrix3, Matrix4, Object3D, Shape, Vector3 } from 'three';
import { Status } from '../../Common/Status';
import { ObjectSnapMode } from '../../Editor/ObjectSnapMode';
import { Box3Ext } from '../../Geometry/Box';
import { IntersectOption, IntersectResult } from '../../GraphicsSystem/IntersectWith';
import { RenderType } from '../../GraphicsSystem/RenderType';
import { CADFiler } from '../CADFiler';
import { Curve } from './Curve';
export declare class Line extends Curve {
private _StartPoint;
private _EndPoint;
constructor(_StartPoint?: Vector3, _EndPoint?: Vector3);
get Is2D(): boolean;
get Shape(): Shape;
Z0(): this;
protected ApplyScaleMatrix(m: Matrix4): this;
protected ApplyMirrorMatrix(m: Matrix4): this;
InitDrawObject(renderType?: RenderType): Object3D;
/**
* 重载:更新绘制的实体
* @param {RenderType} type
* @param {Object3D} obj
*/
UpdateDrawObject(type: RenderType, obj: Object3D): void;
GetObjectSnapPoints(snapMode: ObjectSnapMode, pickPoint: Vector3, lastPoint: Vector3, viewXform: Matrix3): Vector3[];
GetGripPoints(): Vector3[];
MoveGripPoints(indexList: Array<number>, vec: Vector3): void;
GetStretchPoints(): Array<THREE.Vector3>;
MoveStretchPoints(indexList: Array<number>, vec: Vector3): void;
GetFirstDeriv(param: number | Vector3): Vector3;
/**
* 需要注意的是,平行线和共线无交点
* @param curve
* @param intType
* @param [tolerance=1e-4]
* @returns
*/
IntersectWith2(curve: Curve, intType: IntersectOption, tolerance?: number): IntersectResult[];
GetPointAtParam(param: number): Vector3;
GetParamAtPoint(pt: Vector3, fuzz?: number): number;
GetParamAtDist(d: number): number;
GetPointAtDistance(distance: number): Vector3;
GetDistAtParam(param: number): number;
GetDistAtPoint(pt: Vector3): number;
GetSplitCurves(param: number[] | number): Curve[];
GetParamAtPoint2(pt: Vector3): number;
PtOnCurve3(p: Vector3, fuzz?: number): boolean;
GetClosestAtPoint(pt: Vector3, extend: boolean): {
closestPt: Vector3;
param: number;
};
GetClosestPointTo(pt: Vector3, extend: boolean): Vector3;
Extend(newParam: number): void;
Join(cu: Curve, allowGap?: boolean, tolerance?: number): Status;
Reverse(): this;
GetOffsetCurves(offsetDist: number): Array<Line>;
get BoundingBox(): Box3;
/**
* 返回对象在自身坐标系下的Box
*/
get BoundingBoxInOCS(): Box3Ext;
get StartParam(): number;
get EndParam(): number;
get Length(): number;
protected _ReadFile(file: CADFiler): void;
WriteFile(file: CADFiler): void;
set StartPoint(p: Vector3);
get StartPoint(): Vector3;
get EndPoint(): Vector3;
set EndPoint(p: Vector3);
SetStartEndPoint(s: Vector3, e: Vector3): void;
}
//# sourceMappingURL=Line.d.ts.map

View File

@@ -1 +0,0 @@
{"version":3,"file":"Line.d.ts","sourceRoot":"","sources":["../../../../src/DatabaseServices/Entity/Line.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAyB,OAAO,EAAE,OAAO,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;IACD,IAAI,QAAQ,WAGX;IAED,IAAI,MAAM,IAAI,MAAM,CAAwD;cAMzD,SAAS,CAAC,IAAI,EAAE,QAAQ;IAQlC,SAAS,CAAC,IAAI,EAAE,QAAQ;IAUjC,IAAI,UAAU,CAAC,CAAC,EAAE,OAAO,EAKxB;IACD,IAAI,UAAU,IAAI,OAAO,CAGxB;IAED,IAAI,QAAQ,IAAI,OAAO,CAGtB;IACD,IAAI,QAAQ,CAAC,CAAC,EAAE,OAAO,EAKtB;IAED,gBAAgB,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO;CAU1C"}

View File

@@ -1,200 +0,0 @@
import { Matrix3, Matrix4, Vec2, Vector2, Vector3 } from 'three';
import { Status } from '../../Common/Status';
import { ObjectSnapMode } from '../../Editor/ObjectSnapMode';
import { Box3Ext } from '../../Geometry/Box';
import { IntersectOption } from '../../GraphicsSystem/IntersectWith';
import { PolylineJoinType } from '../../GraphicsSystem/OffsetPolyline';
import { CADFiler } from '../CADFiler';
import { Shape2 } from '../Shape2';
import { Arc } from './Arc';
import { Curve, ExtendType } from './Curve';
import { DragPointType } from './DragPointType';
import { Line } from './Line';
export interface PolylineProps {
pt: Vector2;
bul: number;
}
export declare const BUL_IS_LINE_FUZZ = 0.00001;
export declare class Polyline extends Curve {
private _LineData;
private _ClosedMark;
constructor(_LineData?: PolylineProps[]);
UpdateOCSTo(m: Matrix4): void;
/**
* 原地翻转,仅改变法向量
*/
Flip(): this;
Reverse(): this;
set LineData(data: PolylineProps[]);
get LineData(): PolylineProps[];
get NumberOfVertices(): number;
/**
* 在指定位置插入点.
* 例如:
* pl.AddVertexAt(pl.NumberOfVertices,p);//在末尾插入一个点
*
* @param {number} index 索引位置
* @param {Vector2} pt 点
* @returns {this}
* @memberof Polyline
*/
AddVertexAt(index: number, pt: Vector2 | Vector2[]): this;
RemoveVertexAt(index: number): this;
RemoveVertexIn(from: number, to: number): this;
/**
* 重设闭合多段线的起点
* @param index 起始index,如果index非整数,将用最接近的整数作为起始索引
*/
ResetStartPoint(index: number): boolean;
GetPoint2dAt(index: number): Vector2 | undefined;
/**
* 设置指定点的位置
*
* @param {number} index
* @param {Vector2} pt
* @memberof Polyline
*/
SetPointAt(index: number, pt: Vector2): this;
protected ApplyScaleMatrix(m: Matrix4): this;
protected ApplyMirrorMatrix(m: Matrix4): this;
SetBulgeAt(index: number, bul: number): this;
GetBulgeAt(index: number): number;
Rectangle(length: number, height: number): this;
RectangleFrom2Pt(p1: Vector3, p2: Vector3): this;
FromPoints2d(pts: Vec2[]): this;
get StartPoint(): Vector3;
set StartPoint(p: Vector3);
get EndPoint(): Vector3;
set EndPoint(p: Vector3);
get CurveCount(): number;
get StartParam(): number;
/**
* 表示最后一条曲线的终止参数,使用该参数可以直接遍历到多段线的所有子线段. for(i<EndParam)...
*/
get EndParam(): number;
get Area2(): number;
get Area(): number;
get CloseMark(): boolean;
get IsClose(): boolean;
set CloseMark(v: boolean);
DigestionCloseMark(): void;
/**
* 删除重复点
* @param [fuzz=0.1] 容差=0.1
*/
RemoveRepeatPos(fuzz?: number): void;
get Length(): number;
/**
* 获得指定参数所在的点.
* 当曲线存在闭合标志时,参数必须在曲线内部.
* 当曲线不存在闭合标志时,参数允许延伸出曲线.
*
* @param {number} param 参数
* @returns {Vector3} 三维点,可为空
*/
GetPointAtParam(param: number): Vector3;
GetDistAtParam(param: number): number;
GetPointAtDistance(dist: number): Vector3;
/**
* 返回参数所在的点. 如果曲线不闭合,会试图返回延伸点参数
*
* @param {Vector3} pt
* @returns {number}
* @memberof Polyline
*/
GetParamAtPoint(pt: Vector3): number;
GetParamAtDist(dist: number): number;
GetDistAtPoint(pt: Vector3): number;
/**
* 返回曲线的一阶导数.
* 当曲线闭合(标志)且点不在曲线上.
* 或者曲线不闭合(标志) 且点不在曲线上也不在延伸上
*
* @param {(number | Vector3)} param
* @returns {Vector3}
* @memberof Polyline
*/
GetFirstDeriv(param: number | Vector3): Vector3;
GetSplitCurves(param: number[] | number): Array<Polyline>;
GetCurveAtParamRange(startParam: number, endParam: number): Array<Curve>;
Extend(newParam: number): void;
MatrixAlignTo2(toMatrix: Matrix4): {
pts: Vector2[];
buls: number[];
};
Join(cu: Curve, allowGap?: boolean, tolerance?: number): Status.False | Status.True;
/**
* 将曲线数组组合成多段线
* @param curves 已经使用CurveLinked的数组,总是首尾相连
* @returns
*/
static Combine(curves: Curve[], tolerance?: number): Polyline | undefined;
/**首尾相连的曲线直接连接 */
static FastCombine(curves: Curve[], tolerance?: number, computOCS?: boolean): Polyline | undefined;
PtOnCurve(pt: Vector3, fuzz?: number): boolean;
PtOnCurve3(p: Vector3, fuzz?: number): boolean;
PtInCurve(pt: Vector3): boolean;
GetClosestPointTo(pt: Vector3, extend: boolean): Vector3;
GetClosestPointTo2(pt: Vector3, extType: ExtendType): Vector3;
GetOffsetCurves(offsetDist: number): Polyline[];
GetFeedingToolPath(offsetDist: number, offsetDistSq?: number, joinType?: PolylineJoinType): Polyline[];
/**
* 分解
*/
Explode(): (Line | Arc)[];
/**
* 根据参数得到参数所在的子曲线.
*
* 当曲线存在闭合标志时,参数必须在曲线内部,否则返回空.
*
* @param {number} param 参数值
* @returns {Curve} 曲线(直线或者圆弧) 或空
* @memberof Polyline
*/
GetCurveAtParam(param: number): Curve;
/**
* 得到参数在子曲线中的表示
*
* @param {number} param 参数在多段线中表示
* @returns {number} 参数在子曲线中表示
* @memberof Polyline
*/
GetCurveParamAtParam(param: number): number;
/**
* 获得曲线,来自索引位置.
* @param {number} i 索引位置 整数
*/
GetCurveAtIndex(i: number): Line | Arc;
IntersectWith2(curve: Curve, intType: IntersectOption, tolerance?: number): import("../../GraphicsSystem/IntersectWith").IntersectResult[];
IntersectSelf(): number[];
IsIntersectSelf(): boolean;
get BoundingBox(): Box3Ext;
SetPtsBuls(pts: Vector2[], buls: number[]): this;
/**
* 得到曲线有用的点表和凸度(闭合曲线首尾重复)
*/
get PtsBuls(): {
pts: Vector2[];
buls: number[];
};
get IsBulge(): boolean;
get Shape(): Shape2;
get SVG(): string;
GetDragPointCount(drag: DragPointType): number;
GetObjectSnapPoints(snapMode: ObjectSnapMode, pickPoint: Vector3, lastPoint: Vector3, viewXform?: Matrix3): Vector3[];
GetGripPoints(): Array<Vector3>;
MoveGripPoints(indexList: number[], moveVec: Vector3): void;
GetStretchPoints(): Vector3[];
/**
* 范围拉伸(stretch),对夹点进行拉伸.
* 如果对圆弧的一侧进行拉伸,那么修改bul
*
* @param {Array<number>} indexList
* @param {Vector3} vec
*/
MoveStretchPoints(indexList: Array<number>, vec: Vector3): void;
protected _ReadFile(file: CADFiler): void;
WriteFile(file: CADFiler): void;
}
export declare const TempPolyline: Polyline;
//# sourceMappingURL=Polyline.d.ts.map

View File

@@ -1 +0,0 @@
{"version":3,"file":"Polyline.d.ts","sourceRoot":"","sources":["../../../../src/DatabaseServices/Entity/Polyline.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAIvE,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAE7C,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAG7C,OAAO,EAAE,eAAe,EAA6B,MAAM,oCAAoC,CAAC;AAChG,OAAO,EAAkB,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AAEvF,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,M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E,KAAK,EAAE,OAAO,EAAE,eAAe,EAAE,SAAS,SAAO;IAMhF,aAAa,IAAI,MAAM,EAAE;IAuBzB,eAAe;IA6Df,IAAI,WAAW,YASd;IAED,UAAU,CAAC,GAAG,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;IAezC;;OAEG;IACH,IAAI,OAAO,IAAI;QAAE,GAAG,EAAE,OAAO,EAAE,CAAC;QAAC,IAAI,EAAE,MAAM,EAAE,CAAC;KAAE,CAsBjD;IACD,IAAI,OAAO,YAiDV;IACD,IAAI,KAAK,IAAI,MAAM,CAIlB;IACD,IAAI,GAAG,WAiBN;IAED,iBAAiB,CAAC,IAAI,EAAE,aAAa,GAAG,MAAM;IAc9C,mBAAmB,CACf,QAAQ,EAAE,cAAc,EACxB,SAAS,EAAE,OAAO,EAClB,SAAS,EAAE,OAAO,EAClB,SAAS,CAAC,EAAE,OAAO,GACpB,OAAO,EAAE;IA4EZ,aAAa,IAAI,KAAK,CAAC,OAAO,CAAC;IAe/B,cAAc,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,OAAO;IA8DpD,gBAAgB,IAAI,OAAO,EAAE;IAa7B;;;;;;OAMG;IACH,iBAAiB,CAAC,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,OAAO;IA+DxD,SAAS,CAAC,SAAS,CAAC,IAAI,EAAE,QAAQ;IAqBlC,SAAS,CAAC,IAAI,EAAE,QAAQ;CAa3B;AAED,eAAO,MAAM,YAAY,UAAiB,CAAC"}

View File

@@ -1,56 +0,0 @@
import { Box3, BufferGeometry, Material, Matrix3, Matrix4, Object3D, Vector3 } from 'three';
import { ObjectSnapMode } from '../../Editor/ObjectSnapMode';
import { BoolOpeartionType } from '../../GraphicsSystem/BoolOperateUtils';
import { RenderType } from '../../GraphicsSystem/RenderType';
import { CADFiler } from '../CADFiler';
import { ShapeManager } from '../ShapeManager';
import { Curve } from './Curve';
import { Entity } from './Entity';
export declare class Region extends Entity {
private _ShapeManager;
static CreateFromCurves(cus: Curve[] | (Curve[])[]): Region | undefined;
constructor(_ShapeManager?: ShapeManager);
get ShapeManager(): ShapeManager;
get Area(): number;
get BoundingBox(): Box3;
Explode(): Curve[] | Region[];
/**
* 对于布尔操作,这个将会变换内部轮廓到对方坐标系.
* 并且这个变换不会更新图形绘制.
* @param {Matrix4} m
* @memberof Region
*/
ShapeApplyMatrix(m: Matrix4): void;
GetObjectSnapPoints(snapMode: ObjectSnapMode, pickPoint: Vector3, lastPoint: Vector3, viewXform?: Matrix3): Vector3[];
GetGripPoints(): Array<Vector3>;
MoveGripPoints(indexList: number[], moveVec: Vector3): void;
ApplyMatrix(m: Matrix4): this;
get Position(): Vector3;
set Position(pt: Vector3);
protected ApplyScaleMatrix(m: Matrix4): this;
Z0(): this;
MatrixPlanarizere(): this;
protected ApplyMirrorMatrix(m: Matrix4): this;
/**
* 请注意:该计算会操作otherRegion的矩阵
* @param {Region} otherRegion
* @param {BoolOpeartionType} boolType
*/
BooleanOper(otherRegion: Region, boolType: BoolOpeartionType): boolean;
private _MeshGeometry;
get MeshGeometry(): BufferGeometry;
private _EdgeGeometry;
private get EdgeGeometry();
private UpdateGeometry;
UpdateDrawGeometry(): void;
ClearDraw(): this;
InitDrawObject(renderType?: RenderType): Object3D;
UpdateDrawObject(renderType: RenderType, obj: Object3D): Object3D;
/**
* 当实体需要被更新时,更新实体材质
*/
UpdateDrawObjectMaterial(type: RenderType, obj: Object3D, material?: Material): void;
protected _ReadFile(file: CADFiler): void;
WriteFile(file: CADFiler): void;
}
//# sourceMappingURL=Region.d.ts.map

View File

@@ -1 +0,0 @@
{"version":3,"file":"Region.d.ts","sourceRoot":"","sources":["../../../../src/DatabaseServices/Entity/Region.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,cAAc,EAAgB,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAQ,QAAQ,EAA0B,OAAO,EAAE,MAAM,OAAO,CAA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;;;OAIG;IACH,WAAW,CAAC,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,iBAAiB,GAAG,OAAO;IAkBtE,OAAO,CAAC,aAAa,CAAiB;IACtC,IAAI,YAAY,IAAI,cAAc,CAMjC;IAED,OAAO,CAAC,aAAa,CAAiB;IACtC,OAAO,KAAK,YAAY,GAMvB;IAED,OAAO,CAAC,cAAc;IA4CtB,kBAAkB;IAUlB,SAAS,IAAI,IAAI;IAMjB,cAAc,CAAC,UAAU,GAAE,UAAiC,GAAG,QAAQ;IAoCvE,gBAAgB,CAAC,UAAU,EAAE,UAAU,EAAE,GAAG,EAAE,QAAQ;IAyCtD;;MAEE;IACF,wBAAwB,CAAC,IAAI,EAAE,UAAU,EAAE,GAAG,EAAE,QAAQ,EAAE,QAAQ,CAAC,EAAE,QAAQ;IA8B7E,SAAS,CAAC,SAAS,CAAC,IAAI,EAAE,QAAQ;IAOlC,SAAS,CAAC,IAAI,EAAE,QAAQ;CAM3B"}

View File

@@ -1,9 +0,0 @@
import { CADFiler } from './CADFiler';
import { ISerialize } from './ISerialize';
export declare class EraseEntityData implements ISerialize {
isErase: boolean;
ReadFile(file: CADFiler): this;
WriteFile(file: CADFiler): this;
constructor(isErase?: boolean);
}
//# sourceMappingURL=EraseEntityData.d.ts.map

View File

@@ -1 +0,0 @@
{"version":3,"file":"EraseEntityData.d.ts","sourceRoot":"","sources":["../../../src/DatabaseServices/EraseEntityData.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,qBACa,eAAgB,YAAW,UAAU;IAY3B,OAAO;IAV1B,QAAQ,CAAC,IAAI,EAAE,QAAQ,GAAG,IAAI;IAK9B,SAAS,CAAC,IAAI,EAAE,QAAQ,GAAG,IAAI;gBAKZ,OAAO,UAAO;CAGpC"}

View File

@@ -1,11 +0,0 @@
import { GroupRecord } from "./GroupTableRecord";
import { ObjectCollection } from "./ObjectCollection";
import { CADFiler } from "./CADFiler";
import { Status } from "../Common/Status";
export declare class GroupTable extends ObjectCollection<GroupRecord> {
Append(object: GroupRecord, isCheckObjectCleanly?: boolean): import("./ObjectId").ObjectId<GroupRecord>;
Add(record: GroupRecord, isCheckObjectCleanly?: boolean): Status;
ReadFile(file: CADFiler): void;
WriteFile(file: CADFiler): void;
}
//# sourceMappingURL=GroupTable.d.ts.map

View File

@@ -1 +0,0 @@
{"version":3,"file":"GroupTable.d.ts","sourceRoot":"","sources":["../../../src/DatabaseServices/GroupTable.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE1C,qBACa,UAAW,SAAQ,gBAAgB,CAAC,WAAW,CAAC;IAGzD,MAAM,CAAC,MAAM,EAAE,WAAW,EAAE,oBAAoB,UAAO;IAUvD,GAAG,CAAC,MAAM,EAAE,WAAW,EAAE,oBAAoB,UAAO,GAAG,MAAM;IAU7D,QAAQ,CAAC,IAAI,EAAE,QAAQ;IAMvB,SAAS,CAAC,IAAI,EAAE,QAAQ;CAO3B"}

View File

@@ -1,13 +0,0 @@
import { CADFiler } from "./CADFiler";
import { ObjectId } from "./ObjectId";
import { SymbolTableRecord } from "./SymbolTableRecord";
export declare class GroupRecord extends SymbolTableRecord {
Entitys: ObjectId[];
constructor();
get Name(): string;
set Name(name: string);
Purge(): void;
ReadFile(file: CADFiler): void;
WriteFile(file: CADFiler): void;
}
//# sourceMappingURL=GroupTableRecord.d.ts.map

View File

@@ -1 +0,0 @@
{"version":3,"file":"GroupTableRecord.d.ts","sourceRoot":"","sources":["../../../src/DatabaseServices/GroupTableRecord.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,qBACa,WAAY,SAAQ,iBAAiB;IAElC,OAAO,EAAE,QAAQ,EAAE,CAAC;;IAgChC,IAAI,IAAI,IAIO,MAAM,CADpB;IACD,IAAI,IAAI,CAAC,IAAI,EAAE,MAAM,EAOpB;IAED,KAAK;IAML,QAAQ,CAAC,IAAI,EAAE,QAAQ;IAcvB,SAAS,CAAC,IAAI,EAAE,QAAQ;CAS3B"}

View File

@@ -1,27 +0,0 @@
import { Matrix4 } from "three";
import { ICompHardwareOption } from "../../UI/Components/RightPanel/RightPanelInterface";
import { CADFiler } from "../CADFiler";
import { CompositeEntity } from "../Entity/CompositeEntity";
import { Entity } from "../Entity/Entity";
import { ObjectId } from "../ObjectId";
export declare class HardwareCompositeEntity extends CompositeEntity {
HardwareOption: ICompHardwareOption;
/**
* 备注
*/
DataList: [string, string][];
RelevanceBoards: ObjectId[];
RelevanceHardware: ObjectId[];
RelevanceHandle: ObjectId[];
/**
*
* @param [checkIsHole=false] true:只获取是孔的实体 false:返回所有实体
* @param [checkFilter] 过滤函数
* @returns
*/
GetAllEntity(checkIsHole?: boolean, checkFilter?: (e: Entity) => boolean): Entity[];
ApplyMirrorMatrix(m: Matrix4): this;
protected _ReadFile(file: CADFiler): void;
WriteFile(file: CADFiler): void;
}
//# sourceMappingURL=HardwareCompositeEntity.d.ts.map

View File

@@ -1 +0,0 @@
{"version":3,"file":"HardwareCompositeEntity.d.ts","sourceRoot":"","sources":["../../../../src/DatabaseServices/Hardware/HardwareCompositeEntity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,EAAE,mBAAmB,EAAE,MAAM,oDAAoD,CAAC;AAGzF,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,qBACa,uBAAwB,SAAQ,eAAe;IAEtC,cAAc,EAAE,mBAAmB,CAAuC;IAC5F;;OAEG;IACS,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAM;IAClC,eAAe,EAAE,QAAQ,EAAE,CAAM;IACjC,iBAAiB,EAAE,QAAQ,EAAE,CAAM;IACnC,eAAe,EAAE,QAAQ,EAAE,CAAM;IAC7C;;;;;OAKG;IACH,YAAY,CAAC,WAAW,GAAE,OAAe,EAAE,WAAW,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,OAAO;IAmB/E,iBAAiB,CAAC,CAAC,EAAE,OAAO;IAc5B,SAAS,CAAC,SAAS,CAAC,IAAI,EAAE,QAAQ;IAmElC,SAAS,CAAC,IAAI,EAAE,QAAQ;CA2C3B"}

View File

@@ -1,19 +0,0 @@
import { IToplineOption } from "../../UI/Components/RightPanel/RightPanelInterface";
import { SweepSolid } from "../3DSolid/SweepSolid";
import { CADFiler } from "../CADFiler";
import { Curve } from "../Entity/Curve";
export declare class HardwareTopline extends SweepSolid {
HardwareOption: IToplineOption;
DataList: [string, string][];
private _contourRotation;
get ContourRotation(): number;
/**
*延伸取最大最小轮廓每段首尾到前面线段,取最长线段作为分段长
*/
get Segmentations(): Curve[];
get MaxLength(): number;
set ContourRotation(ro: number);
protected _ReadFile(file: CADFiler): void;
WriteFile(file: CADFiler): void;
}
//# sourceMappingURL=HardwareTopline.d.ts.map

View File

@@ -1 +0,0 @@
{"version":3,"file":"HardwareTopline.d.ts","sourceRoot":"","sources":["../../../../src/DatabaseServices/Hardware/HardwareTopline.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,cAAc,EAAE,MAAM,oDAAoD,CAAC;AACpF,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAGnD,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAIxC,qBACa,eAAgB,SAAQ,UAAU;IAEzB,cAAc,EAAE,cAAc,CAAqC;IACzE,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAM;IAC9C,OAAO,CAAC,gBAAgB,CAAK;IAC7B,IAAI,eAAe,IAkHK,MAAM,CA/G7B;IAED;;OAEG;IACH,IAAI,aAAa,IAAI,KAAK,EAAE,CAoG3B;IAED,IAAI,SAAS,WAGZ;IACD,IAAI,eAAe,CAAC,EAAE,EAAE,MAAM,EAU7B;IAED,SAAS,CAAC,SAAS,CAAC,IAAI,EAAE,QAAQ;IA4BlC,SAAS,CAAC,IAAI,EAAE,QAAQ;CA0B3B"}

View File

@@ -1,50 +0,0 @@
import { CADFiler } from './CADFiler';
import { CADObject } from './CADObject';
import { CommandHistoryRecord } from './CommandHistoryRecord';
/**
* 历史记录管理
*
* 关于子命令标记:
* 当子命令标记出现的时候,才允许出现局部撤销,否则命令执行中不允许撤销,触发命令重写了撤销和重做的事件.
*/
export declare class HistoricManage extends CADObject {
useSubCommand: boolean;
curIndex: number;
lockIndex: number;
historyRecord: CommandHistoryRecord[];
doing: boolean;
Enable: boolean;
_SignalCommandHistory: HistoricManage;
constructor(useSubCommand?: boolean);
/**
* 清理历史记录
* @param [remCount=0] 剩余的记录记录个数
*/
Clear(remCount?: number): void;
ReadFile(file: CADFiler): void;
WriteFile(file: CADFiler): void;
get IsNow(): boolean;
get UndoData(): CommandHistoryRecord;
StartMark(subCommandName?: string): void;
/**
* 不要在命令中直接调用这个函数!
* 请调用 commandMachine.CommandStart
*/
StartCmd(cmdName: string): void;
CurrentHasHistory(): boolean;
EndCmd(): boolean;
/**
* 获得这个命令修改的对象列表
*/
get ChangeObjects(): Set<CADObject>;
GetRangeChangeObject(startIndex: number, endIndex: number): Set<CADObject>;
/**
* 合并命令历史记录,因为命令记录器允许存在子记录,所以当命令结束时,应该把子记录合并到父记录中,子记录将被摧毁.
*/
private MergeSubCommmand;
Undo(): boolean;
Redo(): any;
UndoEvent(cmdName: string, historyRec: CommandHistoryRecord): void;
RedoEvent(cmdName: string, historyRec: CommandHistoryRecord): void;
}
//# sourceMappingURL=HistoricManage.d.ts.map

View File

@@ -1 +0,0 @@
{"version":3,"file":"HistoricManage.d.ts","sourceRoot":"","sources":["../../../src/DatabaseServices/HistoricManage.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D;;;;;GAKG;AACH,qBACa,cAAe,SAAQ,SAAS;IAUtB,aAAa;IARhC,QAAQ,EAAE,MAAM,CAAM;IACtB,SAAS,SAAM;IACf,aAAa,EAAE,oBAAoB,EAAE,CAAM;IAC3C,KAAK,EAAE,OAAO,CAAS;IACvB,MAAM,EAAE,OAAO,CAAQ;IAEvB,qBAAqB,EAAE,cAAc,CAAC;gBAEnB,aAAa,UAAO;IAMvC;;;OAGG;IACH,KAAK,CAAC,QAAQ,SAAI;IAUlB,QAAQ,CAAC,IAAI,EAAE,QAAQ;IAYvB,SAAS,CAAC,IAAI,EAAE,QAAQ;IAYxB,IAAI,KAAK,IAAI,OAAO,CAGnB;IAED,IAAI,QAAQ,IAAI,oBAAoB,CAgCnC;IAGD,SAAS,CAAC,cAAc,SAAK;IAY7B;;;OAGG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM;IAQxB,iBAAiB,IAAI,OAAO;IAS5B,MAAM,IAAI,OAAO;IA+BjB;;OAEG;IACH,IAAI,aAAa,IAAI,GAAG,CAAC,SAAS,CAAC,CAclC;IACD,oBAAoB,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,GAAG,CAAC,SAAS,CAAC;IAS1E;;OAEG;IACH,OAAO,CAAC,gBAAgB;IAiBxB,IAAI,IAAI,OAAO;IA6Bf,IAAI;IA2BJ,SAAS,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,oBAAoB;IAI3D,SAAS,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,oBAAoB;CAI9D"}

View File

@@ -1,12 +0,0 @@
import { CADFiler } from './CADFiler';
import { ISerialize } from './ISerialize';
/**
* 历史记录,用于撤销和重做的数据.
*/
export declare class HistorycRecord {
undoData: ISerialize;
redoData: ISerialize;
ReadFile(file: CADFiler): void;
WriteFile(file: CADFiler): void;
}
//# sourceMappingURL=HistorycRecord.d.ts.map

View File

@@ -1 +0,0 @@
{"version":3,"file":"HistorycRecord.d.ts","sourceRoot":"","sources":["../../../src/DatabaseServices/HistorycRecord.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C;;GAEG;AACH,qBACa,cAAc;IAGvB,QAAQ,EAAE,UAAU,CAAC;IAErB,QAAQ,EAAE,UAAU,CAAC;IAMrB,QAAQ,CAAC,IAAI,EAAE,QAAQ;IASvB,SAAS,CAAC,IAAI,EAAE,QAAQ;CAO3B"}

View File

@@ -1,359 +0,0 @@
import { Color } from "three";
import { PhysicalMaterialRecord } from "./PhysicalMaterialRecord";
declare const DefaultParam: Readonly<{
color: "#ffffff";
baseColorluminance: 0;
baseColorLightColor: Color;
baseColorDarkColor: Color;
baseColorSaturability: 1;
transparent: false;
opacity: 1;
opacityContrast: 1;
opacityBorder: 1;
opacityMaximum: 1;
opacityMinimum: 0.3;
matalness: 0;
bumpScale: 0.1;
roughness: 0.2;
specular: 1;
selfLuminous: 0;
fresnelPO: 1;
fresnelST: 1;
fresnelLuminance: 1;
fresnelLightColor: Color;
fresnelDarkColor: Color;
UVType: 0;
sharpen: 1;
}>;
type MaterialParam = typeof DefaultParam;
export declare const DefaultParamMap: Readonly<{
木纹: Readonly<{
color: "#ffffff";
baseColorluminance: 0;
baseColorLightColor: Color;
baseColorDarkColor: Color;
baseColorSaturability: 1;
transparent: false;
opacity: 1;
opacityContrast: 1;
opacityBorder: 1;
opacityMaximum: 1;
opacityMinimum: 0.3;
matalness: 0;
bumpScale: 0.1;
roughness: 0.2;
specular: 1;
selfLuminous: 0;
fresnelPO: 1;
fresnelST: 1;
fresnelLuminance: 1;
fresnelLightColor: Color;
fresnelDarkColor: Color;
UVType: 0;
sharpen: 1;
}>;
乳胶漆: Readonly<{
color: "#ffffff";
baseColorluminance: 0;
baseColorLightColor: Color;
baseColorDarkColor: Color;
baseColorSaturability: 1;
transparent: false;
opacity: 1;
opacityContrast: 1;
opacityBorder: 1;
opacityMaximum: 1;
opacityMinimum: 0.3;
matalness: 0;
bumpScale: 0.1;
roughness: 0.2;
specular: 1;
selfLuminous: 0;
fresnelPO: 1;
fresnelST: 1;
fresnelLuminance: 1;
fresnelLightColor: Color;
fresnelDarkColor: Color;
UVType: 0;
sharpen: 1;
}>;
烤漆: Readonly<{
color: "#ffffff";
baseColorluminance: 0;
baseColorLightColor: Color;
baseColorDarkColor: Color;
baseColorSaturability: 1;
transparent: false;
opacity: 1;
opacityContrast: 1;
opacityBorder: 1;
opacityMaximum: 1;
opacityMinimum: 0.3;
matalness: 0;
bumpScale: 0.1;
roughness: 0.2;
specular: 1;
selfLuminous: 0;
fresnelPO: 1;
fresnelST: 1;
fresnelLuminance: 1;
fresnelLightColor: Color;
fresnelDarkColor: Color;
UVType: 0;
sharpen: 1;
}>;
金属: Readonly<{
color: "#ffffff";
baseColorluminance: 0;
baseColorLightColor: Color;
baseColorDarkColor: Color;
baseColorSaturability: 1;
transparent: false;
opacity: 1;
opacityContrast: 1;
opacityBorder: 1;
opacityMaximum: 1;
opacityMinimum: 0.3;
matalness: 0;
bumpScale: 0.1;
roughness: 0.2;
specular: 1;
selfLuminous: 0;
fresnelPO: 1;
fresnelST: 1;
fresnelLuminance: 1;
fresnelLightColor: Color;
fresnelDarkColor: Color;
UVType: 0;
sharpen: 1;
}>;
亚光金属: Readonly<{
color: "#ffffff";
baseColorluminance: 0;
baseColorLightColor: Color;
baseColorDarkColor: Color;
baseColorSaturability: 1;
transparent: false;
opacity: 1;
opacityContrast: 1;
opacityBorder: 1;
opacityMaximum: 1;
opacityMinimum: 0.3;
matalness: 0;
bumpScale: 0.1;
roughness: 0.2;
specular: 1;
selfLuminous: 0;
fresnelPO: 1;
fresnelST: 1;
fresnelLuminance: 1;
fresnelLightColor: Color;
fresnelDarkColor: Color;
UVType: 0;
sharpen: 1;
}>;
自发光: Readonly<{
color: "#ffffff";
baseColorluminance: 0;
baseColorLightColor: Color;
baseColorDarkColor: Color;
baseColorSaturability: 1;
transparent: false;
opacity: 1;
opacityContrast: 1;
opacityBorder: 1;
opacityMaximum: 1;
opacityMinimum: 0.3;
matalness: 0;
bumpScale: 0.1;
roughness: 0.2;
specular: 1;
selfLuminous: 0;
fresnelPO: 1;
fresnelST: 1;
fresnelLuminance: 1;
fresnelLightColor: Color;
fresnelDarkColor: Color;
UVType: 0;
sharpen: 1;
}>;
大理石: Readonly<{
color: "#ffffff";
baseColorluminance: 0;
baseColorLightColor: Color;
baseColorDarkColor: Color;
baseColorSaturability: 1;
transparent: false;
opacity: 1;
opacityContrast: 1;
opacityBorder: 1;
opacityMaximum: 1;
opacityMinimum: 0.3;
matalness: 0;
bumpScale: 0.1;
roughness: 0.2;
specular: 1;
selfLuminous: 0;
fresnelPO: 1;
fresnelST: 1;
fresnelLuminance: 1;
fresnelLightColor: Color;
fresnelDarkColor: Color;
UVType: 0;
sharpen: 1;
}>;
混凝土: Readonly<{
color: "#ffffff";
baseColorluminance: 0;
baseColorLightColor: Color;
baseColorDarkColor: Color;
baseColorSaturability: 1;
transparent: false;
opacity: 1;
opacityContrast: 1;
opacityBorder: 1;
opacityMaximum: 1;
opacityMinimum: 0.3;
matalness: 0;
bumpScale: 0.1;
roughness: 0.2;
specular: 1;
selfLuminous: 0;
fresnelPO: 1;
fresnelST: 1;
fresnelLuminance: 1;
fresnelLightColor: Color;
fresnelDarkColor: Color;
UVType: 0;
sharpen: 1;
}>;
粗糙石材: Readonly<{
color: "#ffffff";
baseColorluminance: 0;
baseColorLightColor: Color;
baseColorDarkColor: Color;
baseColorSaturability: 1;
transparent: false;
opacity: 1;
opacityContrast: 1;
opacityBorder: 1;
opacityMaximum: 1;
opacityMinimum: 0.3;
matalness: 0;
bumpScale: 0.1;
roughness: 0.2;
specular: 1;
selfLuminous: 0;
fresnelPO: 1;
fresnelST: 1;
fresnelLuminance: 1;
fresnelLightColor: Color;
fresnelDarkColor: Color;
UVType: 0;
sharpen: 1;
}>;
玻璃: Readonly<{
color: "#ffffff";
baseColorluminance: 0;
baseColorLightColor: Color;
baseColorDarkColor: Color;
baseColorSaturability: 1;
transparent: false;
opacity: 1;
opacityContrast: 1;
opacityBorder: 1;
opacityMaximum: 1;
opacityMinimum: 0.3;
matalness: 0;
bumpScale: 0.1;
roughness: 0.2;
specular: 1;
selfLuminous: 0;
fresnelPO: 1;
fresnelST: 1;
fresnelLuminance: 1;
fresnelLightColor: Color;
fresnelDarkColor: Color;
UVType: 0;
sharpen: 1;
}>;
皮革: Readonly<{
color: "#ffffff";
baseColorluminance: 0;
baseColorLightColor: Color;
baseColorDarkColor: Color;
baseColorSaturability: 1;
transparent: false;
opacity: 1;
opacityContrast: 1;
opacityBorder: 1;
opacityMaximum: 1;
opacityMinimum: 0.3;
matalness: 0;
bumpScale: 0.1;
roughness: 0.2;
specular: 1;
selfLuminous: 0;
fresnelPO: 1;
fresnelST: 1;
fresnelLuminance: 1;
fresnelLightColor: Color;
fresnelDarkColor: Color;
UVType: 0;
sharpen: 1;
}>;
布料: Readonly<{
color: "#ffffff";
baseColorluminance: 0;
baseColorLightColor: Color;
baseColorDarkColor: Color;
baseColorSaturability: 1;
transparent: false;
opacity: 1;
opacityContrast: 1;
opacityBorder: 1;
opacityMaximum: 1;
opacityMinimum: 0.3;
matalness: 0;
bumpScale: 0.1;
roughness: 0.2;
specular: 1;
selfLuminous: 0;
fresnelPO: 1;
fresnelST: 1;
fresnelLuminance: 1;
fresnelLightColor: Color;
fresnelDarkColor: Color;
UVType: 0;
sharpen: 1;
}>;
竹藤编织: Readonly<{
color: "#ffffff";
baseColorluminance: 0;
baseColorLightColor: Color;
baseColorDarkColor: Color;
baseColorSaturability: 1;
transparent: false;
opacity: 1;
opacityContrast: 1;
opacityBorder: 1;
opacityMaximum: 1;
opacityMinimum: 0.3;
matalness: 0;
bumpScale: 0.1;
roughness: 0.2;
specular: 1;
selfLuminous: 0;
fresnelPO: 1;
fresnelST: 1;
fresnelLuminance: 1;
fresnelLightColor: Color;
fresnelDarkColor: Color;
UVType: 0;
sharpen: 1;
}>;
}>;
export type MaterialType = keyof (typeof DefaultParamMap);
export declare function SetMaterialParams(mtl: PhysicalMaterialRecord, param: MaterialParam): void;
export {};
//# sourceMappingURL=IMaterialDefaultParam.d.ts.map

View File

@@ -1 +0,0 @@
{"version":3,"file":"IMaterialDefaultParam.d.ts","sourceRoot":"","sources":["../../../src/DatabaseServices/IMaterialDefaultParam.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAC9B,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAyBlE,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;EAsChB,CAAC;AAEH,KAAK,aAAa,GAAG,OAAO,YAAY,CAAC;AAGzC,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+Q1B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,OAAO,eAAe,CAAC,CAAC;AAE1D,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,sBAAsB,EAAE,KAAK,EAAE,aAAa,GAAG,IAAI,CAazF"}

View File

@@ -1,6 +0,0 @@
import { CADFiler } from "./CADFiler";
export interface ISerialize {
ReadFile(file: CADFiler): void;
WriteFile(file: CADFiler): void;
}
//# sourceMappingURL=ISerialize.d.ts.map

View File

@@ -1 +0,0 @@
{"version":3,"file":"ISerialize.d.ts","sourceRoot":"","sources":["../../../src/DatabaseServices/ISerialize.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,MAAM,WAAW,UAAU;IAEvB,QAAQ,CAAC,IAAI,EAAE,QAAQ,GAAG,IAAI,CAAC;IAC/B,SAAS,CAAC,IAAI,EAAE,QAAQ,GAAG,IAAI,CAAC;CACnC"}

View File

@@ -1,3 +0,0 @@
import { ObjectId } from "./ObjectId";
export type IdMaping = Map<ObjectId, ObjectId>;
//# sourceMappingURL=IdMaping.d.ts.map

View File

@@ -1 +0,0 @@
{"version":3,"file":"IdMaping.d.ts","sourceRoot":"","sources":["../../../src/DatabaseServices/IdMaping.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,MAAM,MAAM,QAAQ,GAAG,GAAG,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC"}

View File

@@ -1,10 +0,0 @@
import { Object3D } from "three";
import { RenderType } from "../../GraphicsSystem/RenderType";
import { Light } from "./Light";
export declare class AmbientLight extends Light {
protected _Intensity: number;
protected _OpenLight: boolean;
protected _CaseShadow: boolean;
protected InitDrawObject(renderType?: RenderType): Object3D;
}
//# sourceMappingURL=AmbientLight.d.ts.map

View File

@@ -1 +0,0 @@
{"version":3,"file":"AmbientLight.d.ts","sourceRoot":"","sources":["../../../../src/DatabaseServices/Lights/AmbientLight.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiC,QAAQ,EAAE,MAAM,OAAO,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAE7D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,qBACa,YAAa,SAAQ,KAAK;IAEnC,SAAS,CAAC,UAAU,SAAO;IAC3B,SAAS,CAAC,UAAU,UAAQ;IAC5B,SAAS,CAAC,WAAW,EAAE,OAAO,CAAS;IACvC,SAAS,CAAC,cAAc,CAAC,UAAU,GAAE,UAAiC,GAAG,QAAQ;CAKpF"}

View File

@@ -1,38 +0,0 @@
import { Matrix4, Object3D, Vector3 } from "three";
import { RenderType } from "../../GraphicsSystem/RenderType";
import { CADFiler } from "../CADFiler";
import { Light } from "./Light";
/**
* 平行光源
*/
export declare class DirectionalLight extends Light {
protected _Intensity: number;
LightSourceAngle: number;
LightSourceSoftAngle: number;
OnlyRenderType: boolean;
private _Target;
protected _ShowHelper: boolean;
protected _OpenLight: boolean;
constructor();
Erase(isErase?: boolean): void;
/**
* @param theta 身体旋转 角度(deg)
* @param phi 头部旋转 角度(deg)
*/
SetRotate(thetaDeg: number, phiDeg: number): void;
get Target(): Vector3;
set Target(p: Vector3);
get SunPosition(): Vector3;
set SunPosition(p: Vector3);
get Position(): Vector3;
set Position(p: Vector3);
get WebIntensity(): number;
ApplyMatrix(m: Matrix4): this;
GetGripPoints(): Array<Vector3>;
MoveGripPoints(indexList: number[], vec: Vector3): void;
protected InitDrawObject(renderType?: RenderType): Object3D;
UpdateDrawObject(type: RenderType, en: Object3D): void;
protected _ReadFile(file: CADFiler): void;
WriteFile(file: CADFiler): void;
}
//# sourceMappingURL=DirectionalLight.d.ts.map

View File

@@ -1 +0,0 @@
{"version":3,"file":"DirectionalLight.d.ts","sourceRoot":"","sources":["../../../../src/DatabaseServices/Lights/DirectionalLight.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoE,OAAO,EAAE,QAAQ,EAAW,OAAO,EAAE,MAAM,OAAO,CAAC;AAG9H,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAG7D,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAGhC;;GAEG;AACH,qBACa,gBAAiB,SAAQ,KAAK;IAEvC,SAAS,CAAC,UAAU,EAAE,MAAM,CAAM;IAEtB,gBAAgB,SAAU;IAE1B,oBAAoB,SAAK;IAErC,cAAc,UAAQ;IACtB,OAAO,CAAC,OAAO,CAAiB;IAChC,SAAS,CAAC,WAAW,UAAS;IAC9B,SAAS,CAAC,UAAU,UAAQ;;IAS5B,KAAK,CAAC,OAAO,GAAE,OAAc;IAK7B;;;OAGG;IACH,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;IAc1C,IAAI,MAAM,IACI,OAAO,CADwB;IAC7C,IAAI,MAAM,CAAC,CAAC,EAAE,OAAO,EAQpB;IAED,IAAI,WAAW,IACI,OAAO,CADkB;IAC5C,IAAI,WAAW,CAAC,CAAC,EAAE,OAAO,EAYzB;IAED,IAAI,QAAQ,IACI,OAAO,CADkB;IACzC,IAAI,QAAQ,CAAC,CAAC,EAAE,OAAO,EAOtB;IAED,IAAI,YAAY,WAKf;IAED,WAAW,CAAC,CAAC,EAAE,OAAO;IAOtB,aAAa,IAAI,KAAK,CAAC,OAAO,CAAC;IAO/B,cAAc,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,OAAO;IAQhD,SAAS,CAAC,cAAc,CAAC,UAAU,GAAE,UAAiC,GAAG,QAAQ;IAqBjF,gBAAgB,CAAC,IAAI,EAAE,UAAU,EAAE,EAAE,EAAE,QAAQ;IAoB/C,SAAS,CAAC,SAAS,CAAC,IAAI,EAAE,QAAQ;IAYlC,SAAS,CAAC,IAAI,EAAE,QAAQ;CAU3B"}

View File

@@ -1,19 +0,0 @@
import { Color, Light as TLight, Object3D } from "three";
import { RenderType } from "../../GraphicsSystem/RenderType";
import { CADFiler } from "../CADFiler";
import { Light } from "./Light";
export declare class HemisphereLight extends Light {
private _GroundColor;
protected _Intensity: number;
AutoExposure: boolean;
ExposureCompensation: number;
protected _OpenLight: boolean;
get GroundColor(): Color;
set GroundColor(color: Color);
get WebIntensity(): number;
protected InitDrawObject(renderType?: RenderType): Object3D;
UpdateDrawObject(type: RenderType, en: TLight): void;
protected _ReadFile(file: CADFiler): void;
WriteFile(file: CADFiler): void;
}
//# sourceMappingURL=HemisphereLight.d.ts.map

View File

@@ -1 +0,0 @@
{"version":3,"file":"HemisphereLight.d.ts","sourceRoot":"","sources":["../../../../src/DatabaseServices/Lights/HemisphereLight.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAuC,KAAK,IAAI,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC9F,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAG7D,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,qBACa,eAAgB,SAAQ,KAAK;IAEtC,OAAO,CAAC,YAAY,CAAe;IACnC,SAAS,CAAC,UAAU,SAAK;IACb,YAAY,UAAS;IACrB,oBAAoB,SAAK;IACrC,SAAS,CAAC,UAAU,UAAQ;IAE5B,IAAI,WAAW,IAEQ,KAAK,CAFmB;IAE/C,IAAI,WAAW,CAAC,KAAK,EAAE,KAAK,EAK3B;IAED,IAAI,YAAY,WAGf;IAED,SAAS,CAAC,cAAc,CAAC,UAAU,GAAE,UAAiC,GAAG,QAAQ;IAMjF,gBAAgB,CAAC,IAAI,EAAE,UAAU,EAAE,EAAE,EAAE,MAAM;IAO7C,SAAS,CAAC,SAAS,CAAC,IAAI,EAAE,QAAQ;IAelC,SAAS,CAAC,IAAI,EAAE,QAAQ;CAU3B"}

View File

@@ -1,46 +0,0 @@
import { Box3, Color, Light as TLight, Vector3 } from 'three';
import { ObjectSnapMode } from '../../Editor/ObjectSnapMode';
import { Box3Ext } from '../../Geometry/Box';
import { RenderType } from '../../GraphicsSystem/RenderType';
import { CADFiler } from '../CADFiler';
import { Entity } from '../Entity/Entity';
/**
* 灯光实体基类
*/
export declare class Light extends Entity {
static DefaultOpenLight: boolean;
static DefaultCaseShadow: boolean;
static DefaultShowHelpr: boolean;
OnlyRenderType: boolean;
protected _Intensity: number;
protected _LightColor: Color;
Temperature: number;
IndirectLightingIntensity: number;
SpecularScale: number;
protected _ShowHelper: boolean;
protected _CaseShadow: boolean;
protected _OpenLight: boolean;
Clone(): any;
get CaseShadow(): boolean;
set CaseShadow(v: boolean);
get OpenLight(): boolean;
set OpenLight(v: boolean);
get Position(): Vector3;
set Position(v: Vector3);
get Color(): Color;
set Color(color: Color);
get ShowHelper(): boolean;
set ShowHelper(v: boolean);
get BoundingBoxInOCS(): Box3Ext;
get BoundingBox(): Box3;
GetObjectSnapPoints(snapMode: ObjectSnapMode, pickPoint: Vector3, lastPoint: Vector3): Vector3[];
GetGripPoints(): Array<Vector3>;
MoveGripPoints(indexList: number[], vec: Vector3): void;
UpdateDrawObject(type: RenderType, en: TLight): void;
get Intensity(): number;
set Intensity(v: number);
get WebIntensity(): number;
protected _ReadFile(file: CADFiler): void;
WriteFile(file: CADFiler): void;
}
//# sourceMappingURL=Light.d.ts.map

View File

@@ -1 +0,0 @@
{"version":3,"file":"Light.d.ts","sourceRoot":"","sources":["../../../../src/DatabaseServices/Lights/Light.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK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,cAAc,EACxB,SAAS,EAAE,OAAO,EAClB,SAAS,EAAE,OAAO,GACnB,OAAO,EAAE;IASZ,aAAa,IAAI,KAAK,CAAC,OAAO,CAAC;IAK/B,cAAc,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,OAAO;IAKhD,gBAAgB,CAAC,IAAI,EAAE,UAAU,EAAE,EAAE,EAAE,MAAM;IAM7C,IAAI,SAAS,IAKI,MAAM,CAFtB;IAED,IAAI,SAAS,CAAC,CAAC,EAAE,MAAM,EAMtB;IAED,IAAI,YAAY,WAGf;IACD,SAAS,CAAC,SAAS,CAAC,IAAI,EAAE,QAAQ;IAuBlC,SAAS,CAAC,IAAI,EAAE,QAAQ;CAoB3B"}

View File

@@ -1,7 +0,0 @@
import { Color, DirectionalLight, DirectionalLightHelper, Mesh } from "three";
export declare class SunLightHelper extends DirectionalLightHelper {
children: [Mesh];
color: Color | string | number;
constructor(light: DirectionalLight, size: number, color?: Color);
}
//# sourceMappingURL=SunLightHelper.d.ts.map

View File

@@ -1 +0,0 @@
{"version":3,"file":"SunLightHelper.d.ts","sourceRoot":"","sources":["../../../../src/DatabaseServices/Lights/SunLightHelper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,gBAAgB,EAAE,sBAAsB,EAAqB,IAAI,EAAwB,MAAM,OAAO,CAAC;AAEvH,qBAAa,cAAe,SAAQ,sBAAsB;IAE9C,QAAQ,EAAE,CAAC,IAAI,CAAC,CAAC;IACjB,KAAK,EAAE,KAAK,GAAG,MAAM,GAAG,MAAM,CAAC;gBAE3B,KAAK,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,KAAK;CAUnE"}

Some files were not shown because too many files have changed in this diff Show More