ver
This commit is contained in:
5
types/Add-on/HoleGrooveDim/Command_hole_groove_dim.d.ts
vendored
Normal file
5
types/Add-on/HoleGrooveDim/Command_hole_groove_dim.d.ts
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
import { Command } from "../../Editor/CommandMachine";
|
||||
export declare class HoleGrooveDimCommand implements Command {
|
||||
exec(): Promise<void>;
|
||||
}
|
||||
//# sourceMappingURL=Command_hole_groove_dim.d.ts.map
|
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Command_hole_groove_dim.d.ts","sourceRoot":"","sources":["../../../../src/Add-on/HoleGrooveDim/Command_hole_groove_dim.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAStD,qBAAa,oBAAqB,YAAW,OAAO;IAE1C,IAAI;CAsDb"}
|
8
types/Add-on/HoleGrooveDim/ConfigInterface.d.ts
vendored
Normal file
8
types/Add-on/HoleGrooveDim/ConfigInterface.d.ts
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
export declare enum HoleOptionKeyList {
|
||||
radius = "Radius",
|
||||
diameter = "Diameter",
|
||||
depth = "Depth"
|
||||
}
|
||||
export declare const BrInfoDimList: [string, string][];
|
||||
export declare const HoleInfoDimList: [string, string][];
|
||||
//# sourceMappingURL=ConfigInterface.d.ts.map
|
1
types/Add-on/HoleGrooveDim/ConfigInterface.d.ts.map
Normal file
1
types/Add-on/HoleGrooveDim/ConfigInterface.d.ts.map
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"ConfigInterface.d.ts","sourceRoot":"","sources":["../../../../src/Add-on/HoleGrooveDim/ConfigInterface.ts"],"names":[],"mappings":"AAGA,oBAAY,iBAAiB;IAEzB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,KAAK,UAAU;CAClB;AAGD,eAAO,MAAM,aAAa,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EAoB3C,CAAC;AAGF,eAAO,MAAM,eAAe,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EAI7C,CAAC"}
|
37
types/Add-on/HoleGrooveDim/ConfigPanel.d.ts
vendored
Normal file
37
types/Add-on/HoleGrooveDim/ConfigPanel.d.ts
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
import React from "react";
|
||||
import { ModalState } from "../../UI/Components/Modal/ModalInterface";
|
||||
import './ConfigPanelStyle.less';
|
||||
import { HoleGrooveDimStore } from "./ConfigStore";
|
||||
declare enum TextAreaType {
|
||||
sHoleInfo = "sHoleInfo",
|
||||
fBHoleInfo = "fBHoleInfo",
|
||||
brInfo = "brInfo"
|
||||
}
|
||||
export declare class HoleGrooveDimConfigModal extends React.Component<{
|
||||
store: HoleGrooveDimStore;
|
||||
}> {
|
||||
_Event: Function;
|
||||
_MoveItem: {
|
||||
type: TextAreaType;
|
||||
value: string;
|
||||
};
|
||||
_DragToTextarea: TextAreaType;
|
||||
_SHoleInfoList: JSX.Element[];
|
||||
_FBHoleInfoList: JSX.Element[];
|
||||
_BrInfoDimList: JSX.Element[];
|
||||
constructor(props: {
|
||||
store: HoleGrooveDimStore;
|
||||
});
|
||||
createList(list: [string, string][], type: TextAreaType): JSX.Element[];
|
||||
componentDidMount(): void;
|
||||
componentWillUnmount(): void;
|
||||
handleDragStart: (e: React.DragEvent) => void;
|
||||
handleDragOver: (e: React.DragEvent) => void;
|
||||
handleDragend: () => void;
|
||||
_Return: (status: ModalState) => void;
|
||||
updateInfo(key: TextAreaType, value: string): void;
|
||||
textAreaEle(key: TextAreaType, list: JSX.Element[], textAreaStyle: React.CSSProperties, ulStyle: React.CSSProperties): JSX.Element;
|
||||
render(): JSX.Element;
|
||||
}
|
||||
export {};
|
||||
//# sourceMappingURL=ConfigPanel.d.ts.map
|
1
types/Add-on/HoleGrooveDim/ConfigPanel.d.ts.map
Normal file
1
types/Add-on/HoleGrooveDim/ConfigPanel.d.ts.map
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"ConfigPanel.d.ts","sourceRoot":"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AAa;IAsBpH,MAAM;CAyGT"}
|
14
types/Add-on/HoleGrooveDim/ConfigStore.d.ts
vendored
Normal file
14
types/Add-on/HoleGrooveDim/ConfigStore.d.ts
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
import { IConfigOption } from "../../UI/Components/Board/UserConfigComponent";
|
||||
import { IConfigStore } from "../../UI/Store/BoardStore";
|
||||
import { IHoleGrooveDimOption } from "../../UI/Store/OptionInterface/IOptionInterface";
|
||||
export declare class HoleGrooveDimStore implements IConfigStore {
|
||||
configName: string;
|
||||
configsNames: any[];
|
||||
m_Option: IHoleGrooveDimOption;
|
||||
InitOption(): void;
|
||||
SaveConfig(): IConfigOption<import("../../UI/Store/OptionInterface/IOptionInterface").AnyObject>;
|
||||
UpdateOption(cof: IConfigOption<IHoleGrooveDimOption>): void;
|
||||
private static _SingleInstance;
|
||||
static GetInstance(): HoleGrooveDimStore;
|
||||
}
|
||||
//# sourceMappingURL=ConfigStore.d.ts.map
|
1
types/Add-on/HoleGrooveDim/ConfigStore.d.ts.map
Normal file
1
types/Add-on/HoleGrooveDim/ConfigStore.d.ts.map
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"ConfigStore.d.ts","sourceRoot":"","sources":["../../../../src/Add-on/HoleGrooveDim/ConfigStore.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,+CAA+C,CAAC;AAC9E,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,iDAAiD,CAAC;AAEvF,qBAAa,kBAAmB,YAAW,YAAY;IAEvC,UAAU,SAAQ;IAClB,YAAY,QAAM;IAClB,QAAQ,EAAE,oBAAoB,CAAqC;IAE/E,UAAU;IAKV,UAAU;IAQV,YAAY,CAAC,GAAG,EAAE,aAAa,CAAC,oBAAoB,CAAC;IAKrD,OAAO,CAAC,MAAM,CAAC,eAAe,CAAqB;IACnD,MAAM,CAAC,WAAW,IAAI,kBAAkB;CAM3C"}
|
35
types/Add-on/HoleGrooveDim/ConfigUtils.d.ts
vendored
Normal file
35
types/Add-on/HoleGrooveDim/ConfigUtils.d.ts
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
import { Vector3 } from "three";
|
||||
import { Board } from "../../DatabaseServices/Entity/Board";
|
||||
import { Entity } from "../../DatabaseServices/Entity/Entity";
|
||||
import { Polyline } from "../../DatabaseServices/Entity/Polyline";
|
||||
import { IBoardHoleInfo, IOriginSideModelingData, ISpliteOrderData } from "../../Production/Product";
|
||||
/**
|
||||
* 根据配置的板件信息规则,获取对应的板件信息
|
||||
* @param {Board} br 板件
|
||||
* @param {string} [ruleStr=""] 规则
|
||||
* @return {*} {string}
|
||||
*/
|
||||
export declare function GetBoardInfoByRule(br: Board, ruleStr: string): string;
|
||||
/**
|
||||
* 加减乘除运算,并格式化到小数点后一位
|
||||
* 注意:1、参数a必须为有效数字(number或数值类字符串)
|
||||
* 2、若运算错误,返回a的值(如operator不是加减乘除之一,或者b转换后为无效数字,或者除数为0))
|
||||
* @param {(number | string)} a
|
||||
* @param {string} [operator]
|
||||
* @param {(number | string)} [b]
|
||||
* @return {*} {(number)}
|
||||
*/
|
||||
export declare function Calculate(a: number | string, operator?: string, b?: number | string): string;
|
||||
/**
|
||||
* 替换规则花括号中的字段为具体值。
|
||||
* 若值为数值,可进行数学运算:{长 运算符 数字}如 {长*100} => 5
|
||||
* @param {string} ruleStr 规则字符串 如:{长} - {宽}
|
||||
* @param {[string, string][]} paramsList 中英文对应参数列表 如:[["长", "Length"], ["宽", "Width"]]
|
||||
* @param {(key: string, operator?: string, calValue?: string) => string} getParamCorrValue 获取参数对应的值
|
||||
* @return {*} {string} 按规则字符串计算后的结果
|
||||
*/
|
||||
export declare function ReplaceRuleFieldWithCorrValue(ruleStr: string, paramsList: [string, string][], getParamCorrValue: (key: string, operator?: string, calValue?: string) => string): string;
|
||||
export declare function DrawHole(holeInfo: IBoardHoleInfo, offset: Vector3): Promise<Entity[]>;
|
||||
export declare function DrawSideHole(sideHoleInfo: IOriginSideModelingData[], sealingContour: Polyline, offset: Vector3): Entity[];
|
||||
export declare function DrawOriginModeling(br: Board, info: ISpliteOrderData): Entity[];
|
||||
//# sourceMappingURL=ConfigUtils.d.ts.map
|
1
types/Add-on/HoleGrooveDim/ConfigUtils.d.ts.map
Normal file
1
types/Add-on/HoleGrooveDim/ConfigUtils.d.ts.map
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"ConfigUtils.d.ts","sourceRoot":"","sources":["../../../../src/Add-on/HoleGrooveDim/ConfigUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,OAAO,EAAE,MAAM,OAAO,CAAC;AAIzC,OAAO,EAAE,KAAK,EAAE,MAAM,qCAAqC,CAAC;AAG5D,OAAO,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAE9D,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAOlE,OAAO,EAAE,cAAc,EAAE,uBAAuB,EAAE,gBAAgB,EAAyB,MAAM,0BAA0B,CAAC;AAK5H;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CA4FrE;AAED;;;;;;;;GAQG;AACH,wBAAgB,SAAS,CACrB,CAAC,EAAE,MAAM,GAAG,MAAM,EAClB,QAAQ,CAAC,EAAE,MAAM,EACjB,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,GACpB,MAAM,CAoDR;AAED;;;;;;;GAOG;AACH,wBAAgB,6BAA6B,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,EAAE,iBAAiB,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,MAAM,GAAG,MAAM,CAqBvL;AAED,wBAAsB,QAAQ,CAAC,QAAQ,EAAE,cAAc,EAAE,MAAM,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CA2B3F;AAED,wBAAgB,YAAY,CAAC,YAAY,EAAE,uBAAuB,EAAE,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,GAAG,MAAM,EAAE,CAiCzH;AAED,wBAAgB,kBAAkB,CAAC,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,gBAAgB,GAAG,MAAM,EAAE,CA+B9E"}
|
6
types/Add-on/HoleGrooveDim/DrawHoleGrooveDim.d.ts
vendored
Normal file
6
types/Add-on/HoleGrooveDim/DrawHoleGrooveDim.d.ts
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
import { Vector3 } from "three";
|
||||
import { Board } from "../../DatabaseServices/Entity/Board";
|
||||
import { ISpliteOrderData } from "../../Production/Product";
|
||||
import { HoleGrooveDimStore } from "./ConfigStore";
|
||||
export declare function DrawHoleGrooveDim(startPt: Vector3, brs: Board[], infos: ISpliteOrderData[], store: HoleGrooveDimStore, brInfoDims: string[]): Promise<void>;
|
||||
//# sourceMappingURL=DrawHoleGrooveDim.d.ts.map
|
1
types/Add-on/HoleGrooveDim/DrawHoleGrooveDim.d.ts.map
Normal file
1
types/Add-on/HoleGrooveDim/DrawHoleGrooveDim.d.ts.map
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"DrawHoleGrooveDim.d.ts","sourceRoot":"","sources":["../../../../src/Add-on/HoleGrooveDim/DrawHoleGrooveDim.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,OAAO,EAAE,MAAM,OAAO,CAAC;AAI/C,OAAO,EAAE,KAAK,EAAE,MAAM,qCAAqC,CAAC;AAS5D,OAAO,EAAE,gBAAgB,EAAc,MAAM,0BAA0B,CAAC;AAIxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAGnD,wBAAsB,iBAAiB,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,gBAAgB,EAAE,EAAE,KAAK,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,EAAE,iBA0GjJ"}
|
Reference in New Issue
Block a user