@itwin/editor-frontend 4.0.0-dev.52 → 4.0.0-dev.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/CreateElementTool.d.ts +100 -100
- package/lib/cjs/CreateElementTool.js +325 -325
- package/lib/cjs/DeleteElementsTool.d.ts +13 -13
- package/lib/cjs/DeleteElementsTool.js +38 -38
- package/lib/cjs/DeleteElementsTool.js.map +1 -1
- package/lib/cjs/EditTool.d.ts +38 -38
- package/lib/cjs/EditTool.js +80 -80
- package/lib/cjs/EditTool.js.map +1 -1
- package/lib/cjs/EditToolIpc.d.ts +18 -18
- package/lib/cjs/EditToolIpc.js +28 -28
- package/lib/cjs/ElementGeometryTool.d.ts +147 -147
- package/lib/cjs/ElementGeometryTool.js +704 -704
- package/lib/cjs/ModifyCurveTools.d.ts +139 -139
- package/lib/cjs/ModifyCurveTools.js +776 -776
- package/lib/cjs/ModifyCurveTools.js.map +1 -1
- package/lib/cjs/ModifyElementTool.d.ts +47 -47
- package/lib/cjs/ModifyElementTool.js +177 -177
- package/lib/cjs/ProjectLocation/ProjectExtentsDecoration.d.ts +135 -135
- package/lib/cjs/ProjectLocation/ProjectExtentsDecoration.js +822 -822
- package/lib/cjs/ProjectLocation/ProjectExtentsDecoration.js.map +1 -1
- package/lib/cjs/ProjectLocation/ProjectGeolocation.d.ts +135 -135
- package/lib/cjs/ProjectLocation/ProjectGeolocation.js +532 -532
- package/lib/cjs/ProjectLocation/ProjectGeolocation.js.map +1 -1
- package/lib/cjs/SketchTools.d.ts +304 -304
- package/lib/cjs/SketchTools.js +1704 -1704
- package/lib/cjs/SketchTools.js.map +1 -1
- package/lib/cjs/SolidModelingTools.d.ts +380 -380
- package/lib/cjs/SolidModelingTools.js +1452 -1452
- package/lib/cjs/SolidModelingTools.js.map +1 -1
- package/lib/cjs/SolidPrimitiveTools.d.ts +318 -318
- package/lib/cjs/SolidPrimitiveTools.js +1372 -1372
- package/lib/cjs/SolidPrimitiveTools.js.map +1 -1
- package/lib/cjs/TransformElementsTool.d.ts +164 -164
- package/lib/cjs/TransformElementsTool.js +652 -652
- package/lib/cjs/TransformElementsTool.js.map +1 -1
- package/lib/cjs/UndoRedoTool.d.ts +16 -16
- package/lib/cjs/UndoRedoTool.js +41 -41
- package/lib/cjs/UndoRedoTool.js.map +1 -1
- package/lib/cjs/editor-frontend.d.ts +17 -17
- package/lib/cjs/editor-frontend.js +37 -33
- package/lib/cjs/editor-frontend.js.map +1 -1
- package/lib/esm/CreateElementTool.d.ts +100 -100
- package/lib/esm/CreateElementTool.js +317 -317
- package/lib/esm/DeleteElementsTool.d.ts +13 -13
- package/lib/esm/DeleteElementsTool.js +35 -34
- package/lib/esm/DeleteElementsTool.js.map +1 -1
- package/lib/esm/EditTool.d.ts +38 -38
- package/lib/esm/EditTool.js +77 -76
- package/lib/esm/EditTool.js.map +1 -1
- package/lib/esm/EditToolIpc.d.ts +18 -18
- package/lib/esm/EditToolIpc.js +24 -24
- package/lib/esm/ElementGeometryTool.d.ts +147 -147
- package/lib/esm/ElementGeometryTool.js +696 -696
- package/lib/esm/ModifyCurveTools.d.ts +139 -139
- package/lib/esm/ModifyCurveTools.js +771 -767
- package/lib/esm/ModifyCurveTools.js.map +1 -1
- package/lib/esm/ModifyElementTool.d.ts +47 -47
- package/lib/esm/ModifyElementTool.js +172 -172
- package/lib/esm/ProjectLocation/ProjectExtentsDecoration.d.ts +135 -135
- package/lib/esm/ProjectLocation/ProjectExtentsDecoration.js +818 -814
- package/lib/esm/ProjectLocation/ProjectExtentsDecoration.js.map +1 -1
- package/lib/esm/ProjectLocation/ProjectGeolocation.d.ts +135 -135
- package/lib/esm/ProjectLocation/ProjectGeolocation.js +529 -526
- package/lib/esm/ProjectLocation/ProjectGeolocation.js.map +1 -1
- package/lib/esm/SketchTools.d.ts +304 -304
- package/lib/esm/SketchTools.js +1700 -1694
- package/lib/esm/SketchTools.js.map +1 -1
- package/lib/esm/SolidModelingTools.d.ts +380 -380
- package/lib/esm/SolidModelingTools.js +1444 -1427
- package/lib/esm/SolidModelingTools.js.map +1 -1
- package/lib/esm/SolidPrimitiveTools.d.ts +318 -318
- package/lib/esm/SolidPrimitiveTools.js +1368 -1361
- package/lib/esm/SolidPrimitiveTools.js.map +1 -1
- package/lib/esm/TransformElementsTool.d.ts +164 -164
- package/lib/esm/TransformElementsTool.js +647 -644
- package/lib/esm/TransformElementsTool.js.map +1 -1
- package/lib/esm/UndoRedoTool.d.ts +16 -16
- package/lib/esm/UndoRedoTool.js +38 -35
- package/lib/esm/UndoRedoTool.js.map +1 -1
- package/lib/esm/editor-frontend.d.ts +17 -17
- package/lib/esm/editor-frontend.js +21 -21
- package/package.json +16 -16
|
@@ -1,140 +1,140 @@
|
|
|
1
|
-
import { DialogItem, DialogProperty, DialogPropertySyncItem } from "@itwin/appui-abstract";
|
|
2
|
-
import { Id64String } from "@itwin/core-bentley";
|
|
3
|
-
import { ElementGeometryInfo, FlatBufferGeometryStream, GeometricElementProps, GeometryParams, JsonGeometryStream } from "@itwin/core-common";
|
|
4
|
-
import { BeButtonEvent, ToolAssistanceInstruction } from "@itwin/core-frontend";
|
|
5
|
-
import { CurveCollection, CurveLocationDetail, CurvePrimitive, GeometryQuery, Path, Plane3dByOriginAndUnitNormal, Point3d } from "@itwin/core-geometry";
|
|
6
|
-
import { ModifyElementWithDynamicsTool } from "./ModifyElementTool";
|
|
7
|
-
/** @alpha */
|
|
8
|
-
export declare class CurveData {
|
|
9
|
-
props: GeometricElementProps;
|
|
10
|
-
params: GeometryParams;
|
|
11
|
-
geom: CurveCollection | CurvePrimitive;
|
|
12
|
-
constructor(props: GeometricElementProps, params: GeometryParams, geom: CurveCollection | CurvePrimitive);
|
|
13
|
-
}
|
|
14
|
-
/** @alpha Base class for modifying all types of curve geometry. */
|
|
15
|
-
export declare abstract class ModifyCurveTool extends ModifyElementWithDynamicsTool {
|
|
16
|
-
protected _startedCmd?: string;
|
|
17
|
-
protected curveData?: CurveData;
|
|
18
|
-
protected startCommand(): Promise<string>;
|
|
19
|
-
static isSingleCurve(info: ElementGeometryInfo): {
|
|
20
|
-
curve: CurveCollection | CurvePrimitive;
|
|
21
|
-
params: GeometryParams;
|
|
22
|
-
} | undefined;
|
|
23
|
-
static isInPlane(curve: CurveCollection | CurvePrimitive, plane: Plane3dByOriginAndUnitNormal): boolean;
|
|
24
|
-
protected acceptCurve(_curve: CurveCollection | CurvePrimitive): boolean;
|
|
25
|
-
protected modifyCurve(_ev: BeButtonEvent, _isAccept: boolean): GeometryQuery | undefined;
|
|
26
|
-
protected getCurveData(id: Id64String): Promise<CurveData | undefined>;
|
|
27
|
-
protected doAcceptElementForOperation(id: Id64String): Promise<boolean>;
|
|
28
|
-
protected onAgendaModified(): Promise<void>;
|
|
29
|
-
protected setupAccuDraw(): void;
|
|
30
|
-
protected getGeometryProps(ev: BeButtonEvent, isAccept: boolean): JsonGeometryStream | FlatBufferGeometryStream | undefined;
|
|
31
|
-
protected getElementProps(ev: BeButtonEvent): GeometricElementProps | undefined;
|
|
32
|
-
protected doUpdateElement(elemProps: GeometricElementProps): Promise<boolean>;
|
|
33
|
-
protected get wantModifyOriginal(): boolean;
|
|
34
|
-
protected get wantContinueWithPreviousResult(): boolean;
|
|
35
|
-
onProcessComplete(): Promise<void>;
|
|
36
|
-
}
|
|
37
|
-
/** @alpha Tool for applying an offset to paths and loops. */
|
|
38
|
-
export declare class OffsetCurveTool extends ModifyCurveTool {
|
|
39
|
-
static toolId: string;
|
|
40
|
-
static iconSpec: string;
|
|
41
|
-
private _useDistanceProperty;
|
|
42
|
-
get useDistanceProperty(): DialogProperty<boolean>;
|
|
43
|
-
get useDistance(): boolean;
|
|
44
|
-
set useDistance(value: boolean);
|
|
45
|
-
private _distanceProperty;
|
|
46
|
-
get distanceProperty(): DialogProperty<number>;
|
|
47
|
-
get distance(): number;
|
|
48
|
-
set distance(value: number);
|
|
49
|
-
private _makeCopyProperty;
|
|
50
|
-
get makeCopyProperty(): DialogProperty<boolean>;
|
|
51
|
-
get makeCopy(): boolean;
|
|
52
|
-
set makeCopy(value: boolean);
|
|
53
|
-
protected getToolSettingPropertyLocked(property: DialogProperty<any>): DialogProperty<any> | undefined;
|
|
54
|
-
applyToolSettingPropertyChange(updatedValue: DialogPropertySyncItem): Promise<boolean>;
|
|
55
|
-
supplyToolSettingsProperties(): DialogItem[] | undefined;
|
|
56
|
-
protected acceptCurve(curve: CurveCollection | CurvePrimitive): boolean;
|
|
57
|
-
protected modifyCurve(ev: BeButtonEvent, isAccept: boolean): GeometryQuery | undefined;
|
|
58
|
-
protected get wantModifyOriginal(): boolean;
|
|
59
|
-
protected get wantContinueWithPreviousResult(): boolean;
|
|
60
|
-
protected setupAccuDraw(): void;
|
|
61
|
-
protected provideToolAssistance(_mainInstrText?: string, _additionalInstr?: ToolAssistanceInstruction[]): void;
|
|
62
|
-
onRestartTool(): Promise<void>;
|
|
63
|
-
}
|
|
64
|
-
/** @alpha Tool for opening loops and splitting paths. */
|
|
65
|
-
export declare class BreakCurveTool extends ModifyCurveTool {
|
|
66
|
-
static toolId: string;
|
|
67
|
-
static iconSpec: string;
|
|
68
|
-
protected resultA?: CurveCollection | CurvePrimitive;
|
|
69
|
-
protected resultB?: CurveCollection | CurvePrimitive;
|
|
70
|
-
protected modifyOriginal: boolean;
|
|
71
|
-
protected get wantDynamics(): boolean;
|
|
72
|
-
protected get wantModifyOriginal(): boolean;
|
|
73
|
-
protected acceptCurve(curve: CurveCollection | CurvePrimitive): boolean;
|
|
74
|
-
protected doBreakCurve(ev: BeButtonEvent): void;
|
|
75
|
-
protected modifyCurve(_ev: BeButtonEvent, _isAccept: boolean): GeometryQuery | undefined;
|
|
76
|
-
processAgenda(ev: BeButtonEvent): Promise<void>;
|
|
77
|
-
protected provideToolAssistance(_mainInstrText?: string, _additionalInstr?: ToolAssistanceInstruction[]): void;
|
|
78
|
-
onRestartTool(): Promise<void>;
|
|
79
|
-
}
|
|
80
|
-
/** @alpha Tool to extend or trim a path or open curve */
|
|
81
|
-
export declare class ExtendCurveTool extends ModifyCurveTool {
|
|
82
|
-
static toolId: string;
|
|
83
|
-
static iconSpec: string;
|
|
84
|
-
protected modifyingEnd?: CurvePrimitive;
|
|
85
|
-
protected get wantAgendaAppearanceOverride(): boolean;
|
|
86
|
-
protected acceptCurve(curve: CurveCollection | CurvePrimitive): boolean;
|
|
87
|
-
protected extendCurve(geom: CurvePrimitive, pickPoint: Point3d, spacePoint: Point3d): CurvePrimitive | undefined;
|
|
88
|
-
protected extendPathEnd(geom: Path, closeDetail: CurveLocationDetail, isStart: boolean): Path | undefined;
|
|
89
|
-
protected extendPath(geom: Path, pickPoint: Point3d, spacePoint: Point3d): Path | CurvePrimitive | undefined;
|
|
90
|
-
protected modifyCurve(ev: BeButtonEvent, _isAccept: boolean): GeometryQuery | undefined;
|
|
91
|
-
protected onAgendaModified(): Promise<void>;
|
|
92
|
-
protected setupAccuDraw(): void;
|
|
93
|
-
protected provideToolAssistance(_mainInstrText?: string, _additionalInstr?: ToolAssistanceInstruction[]): void;
|
|
94
|
-
onRestartTool(): Promise<void>;
|
|
95
|
-
}
|
|
96
|
-
/** @alpha */
|
|
97
|
-
export declare enum RegionBooleanMode {
|
|
98
|
-
/** Create region from union of all input regions */
|
|
99
|
-
Unite = 0,
|
|
100
|
-
/** Create region from subtraction from the first input region */
|
|
101
|
-
Subtract = 1,
|
|
102
|
-
/** Create region from intersection of all input regions */
|
|
103
|
-
Intersect = 2
|
|
104
|
-
}
|
|
105
|
-
/** @alpha Tool to unite, subtract, or intersect planar regions. */
|
|
106
|
-
export declare class RegionBooleanTool extends ModifyCurveTool {
|
|
107
|
-
static toolId: string;
|
|
108
|
-
static iconSpec: string;
|
|
109
|
-
private _makeCopyProperty;
|
|
110
|
-
get makeCopyProperty(): DialogProperty<boolean>;
|
|
111
|
-
get makeCopy(): boolean;
|
|
112
|
-
set makeCopy(value: boolean);
|
|
113
|
-
private static modeMessage;
|
|
114
|
-
private static getModeChoices;
|
|
115
|
-
private _modeProperty;
|
|
116
|
-
get modeProperty(): DialogProperty<number>;
|
|
117
|
-
get mode(): RegionBooleanMode;
|
|
118
|
-
set mode(mode: RegionBooleanMode);
|
|
119
|
-
protected get clearSelectionSet(): boolean;
|
|
120
|
-
protected get allowSelectionSet(): boolean;
|
|
121
|
-
protected get allowDragSelect(): boolean;
|
|
122
|
-
protected get controlKeyContinuesSelection(): boolean;
|
|
123
|
-
protected get requiredElementCount(): number;
|
|
124
|
-
protected get wantAccuSnap(): boolean;
|
|
125
|
-
protected get wantDynamics(): boolean;
|
|
126
|
-
protected get wantModifyOriginal(): boolean;
|
|
127
|
-
protected onAgendaModified(): Promise<void>;
|
|
128
|
-
protected acceptCurve(curve: CurveCollection | CurvePrimitive): boolean;
|
|
129
|
-
private regionBinaryOp;
|
|
130
|
-
private regionFromSignedLoops;
|
|
131
|
-
private regionBooleanXY;
|
|
132
|
-
protected doRegionBoolean(_ev: BeButtonEvent): Promise<void>;
|
|
133
|
-
protected modifyCurve(_ev: BeButtonEvent, _isAccept: boolean): GeometryQuery | undefined;
|
|
134
|
-
protected applyAgendaOperation(ev: BeButtonEvent): Promise<boolean>;
|
|
135
|
-
processAgenda(ev: BeButtonEvent): Promise<void>;
|
|
136
|
-
onRestartTool(): Promise<void>;
|
|
137
|
-
applyToolSettingPropertyChange(updatedValue: DialogPropertySyncItem): Promise<boolean>;
|
|
138
|
-
supplyToolSettingsProperties(): DialogItem[] | undefined;
|
|
139
|
-
}
|
|
1
|
+
import { DialogItem, DialogProperty, DialogPropertySyncItem } from "@itwin/appui-abstract";
|
|
2
|
+
import { Id64String } from "@itwin/core-bentley";
|
|
3
|
+
import { ElementGeometryInfo, FlatBufferGeometryStream, GeometricElementProps, GeometryParams, JsonGeometryStream } from "@itwin/core-common";
|
|
4
|
+
import { BeButtonEvent, ToolAssistanceInstruction } from "@itwin/core-frontend";
|
|
5
|
+
import { CurveCollection, CurveLocationDetail, CurvePrimitive, GeometryQuery, Path, Plane3dByOriginAndUnitNormal, Point3d } from "@itwin/core-geometry";
|
|
6
|
+
import { ModifyElementWithDynamicsTool } from "./ModifyElementTool";
|
|
7
|
+
/** @alpha */
|
|
8
|
+
export declare class CurveData {
|
|
9
|
+
props: GeometricElementProps;
|
|
10
|
+
params: GeometryParams;
|
|
11
|
+
geom: CurveCollection | CurvePrimitive;
|
|
12
|
+
constructor(props: GeometricElementProps, params: GeometryParams, geom: CurveCollection | CurvePrimitive);
|
|
13
|
+
}
|
|
14
|
+
/** @alpha Base class for modifying all types of curve geometry. */
|
|
15
|
+
export declare abstract class ModifyCurveTool extends ModifyElementWithDynamicsTool {
|
|
16
|
+
protected _startedCmd?: string;
|
|
17
|
+
protected curveData?: CurveData;
|
|
18
|
+
protected startCommand(): Promise<string>;
|
|
19
|
+
static isSingleCurve(info: ElementGeometryInfo): {
|
|
20
|
+
curve: CurveCollection | CurvePrimitive;
|
|
21
|
+
params: GeometryParams;
|
|
22
|
+
} | undefined;
|
|
23
|
+
static isInPlane(curve: CurveCollection | CurvePrimitive, plane: Plane3dByOriginAndUnitNormal): boolean;
|
|
24
|
+
protected acceptCurve(_curve: CurveCollection | CurvePrimitive): boolean;
|
|
25
|
+
protected modifyCurve(_ev: BeButtonEvent, _isAccept: boolean): GeometryQuery | undefined;
|
|
26
|
+
protected getCurveData(id: Id64String): Promise<CurveData | undefined>;
|
|
27
|
+
protected doAcceptElementForOperation(id: Id64String): Promise<boolean>;
|
|
28
|
+
protected onAgendaModified(): Promise<void>;
|
|
29
|
+
protected setupAccuDraw(): void;
|
|
30
|
+
protected getGeometryProps(ev: BeButtonEvent, isAccept: boolean): JsonGeometryStream | FlatBufferGeometryStream | undefined;
|
|
31
|
+
protected getElementProps(ev: BeButtonEvent): GeometricElementProps | undefined;
|
|
32
|
+
protected doUpdateElement(elemProps: GeometricElementProps): Promise<boolean>;
|
|
33
|
+
protected get wantModifyOriginal(): boolean;
|
|
34
|
+
protected get wantContinueWithPreviousResult(): boolean;
|
|
35
|
+
onProcessComplete(): Promise<void>;
|
|
36
|
+
}
|
|
37
|
+
/** @alpha Tool for applying an offset to paths and loops. */
|
|
38
|
+
export declare class OffsetCurveTool extends ModifyCurveTool {
|
|
39
|
+
static toolId: string;
|
|
40
|
+
static iconSpec: string;
|
|
41
|
+
private _useDistanceProperty;
|
|
42
|
+
get useDistanceProperty(): DialogProperty<boolean>;
|
|
43
|
+
get useDistance(): boolean;
|
|
44
|
+
set useDistance(value: boolean);
|
|
45
|
+
private _distanceProperty;
|
|
46
|
+
get distanceProperty(): DialogProperty<number>;
|
|
47
|
+
get distance(): number;
|
|
48
|
+
set distance(value: number);
|
|
49
|
+
private _makeCopyProperty;
|
|
50
|
+
get makeCopyProperty(): DialogProperty<boolean>;
|
|
51
|
+
get makeCopy(): boolean;
|
|
52
|
+
set makeCopy(value: boolean);
|
|
53
|
+
protected getToolSettingPropertyLocked(property: DialogProperty<any>): DialogProperty<any> | undefined;
|
|
54
|
+
applyToolSettingPropertyChange(updatedValue: DialogPropertySyncItem): Promise<boolean>;
|
|
55
|
+
supplyToolSettingsProperties(): DialogItem[] | undefined;
|
|
56
|
+
protected acceptCurve(curve: CurveCollection | CurvePrimitive): boolean;
|
|
57
|
+
protected modifyCurve(ev: BeButtonEvent, isAccept: boolean): GeometryQuery | undefined;
|
|
58
|
+
protected get wantModifyOriginal(): boolean;
|
|
59
|
+
protected get wantContinueWithPreviousResult(): boolean;
|
|
60
|
+
protected setupAccuDraw(): void;
|
|
61
|
+
protected provideToolAssistance(_mainInstrText?: string, _additionalInstr?: ToolAssistanceInstruction[]): void;
|
|
62
|
+
onRestartTool(): Promise<void>;
|
|
63
|
+
}
|
|
64
|
+
/** @alpha Tool for opening loops and splitting paths. */
|
|
65
|
+
export declare class BreakCurveTool extends ModifyCurveTool {
|
|
66
|
+
static toolId: string;
|
|
67
|
+
static iconSpec: string;
|
|
68
|
+
protected resultA?: CurveCollection | CurvePrimitive;
|
|
69
|
+
protected resultB?: CurveCollection | CurvePrimitive;
|
|
70
|
+
protected modifyOriginal: boolean;
|
|
71
|
+
protected get wantDynamics(): boolean;
|
|
72
|
+
protected get wantModifyOriginal(): boolean;
|
|
73
|
+
protected acceptCurve(curve: CurveCollection | CurvePrimitive): boolean;
|
|
74
|
+
protected doBreakCurve(ev: BeButtonEvent): void;
|
|
75
|
+
protected modifyCurve(_ev: BeButtonEvent, _isAccept: boolean): GeometryQuery | undefined;
|
|
76
|
+
processAgenda(ev: BeButtonEvent): Promise<void>;
|
|
77
|
+
protected provideToolAssistance(_mainInstrText?: string, _additionalInstr?: ToolAssistanceInstruction[]): void;
|
|
78
|
+
onRestartTool(): Promise<void>;
|
|
79
|
+
}
|
|
80
|
+
/** @alpha Tool to extend or trim a path or open curve */
|
|
81
|
+
export declare class ExtendCurveTool extends ModifyCurveTool {
|
|
82
|
+
static toolId: string;
|
|
83
|
+
static iconSpec: string;
|
|
84
|
+
protected modifyingEnd?: CurvePrimitive;
|
|
85
|
+
protected get wantAgendaAppearanceOverride(): boolean;
|
|
86
|
+
protected acceptCurve(curve: CurveCollection | CurvePrimitive): boolean;
|
|
87
|
+
protected extendCurve(geom: CurvePrimitive, pickPoint: Point3d, spacePoint: Point3d): CurvePrimitive | undefined;
|
|
88
|
+
protected extendPathEnd(geom: Path, closeDetail: CurveLocationDetail, isStart: boolean): Path | undefined;
|
|
89
|
+
protected extendPath(geom: Path, pickPoint: Point3d, spacePoint: Point3d): Path | CurvePrimitive | undefined;
|
|
90
|
+
protected modifyCurve(ev: BeButtonEvent, _isAccept: boolean): GeometryQuery | undefined;
|
|
91
|
+
protected onAgendaModified(): Promise<void>;
|
|
92
|
+
protected setupAccuDraw(): void;
|
|
93
|
+
protected provideToolAssistance(_mainInstrText?: string, _additionalInstr?: ToolAssistanceInstruction[]): void;
|
|
94
|
+
onRestartTool(): Promise<void>;
|
|
95
|
+
}
|
|
96
|
+
/** @alpha */
|
|
97
|
+
export declare enum RegionBooleanMode {
|
|
98
|
+
/** Create region from union of all input regions */
|
|
99
|
+
Unite = 0,
|
|
100
|
+
/** Create region from subtraction from the first input region */
|
|
101
|
+
Subtract = 1,
|
|
102
|
+
/** Create region from intersection of all input regions */
|
|
103
|
+
Intersect = 2
|
|
104
|
+
}
|
|
105
|
+
/** @alpha Tool to unite, subtract, or intersect planar regions. */
|
|
106
|
+
export declare class RegionBooleanTool extends ModifyCurveTool {
|
|
107
|
+
static toolId: string;
|
|
108
|
+
static iconSpec: string;
|
|
109
|
+
private _makeCopyProperty;
|
|
110
|
+
get makeCopyProperty(): DialogProperty<boolean>;
|
|
111
|
+
get makeCopy(): boolean;
|
|
112
|
+
set makeCopy(value: boolean);
|
|
113
|
+
private static modeMessage;
|
|
114
|
+
private static getModeChoices;
|
|
115
|
+
private _modeProperty;
|
|
116
|
+
get modeProperty(): DialogProperty<number>;
|
|
117
|
+
get mode(): RegionBooleanMode;
|
|
118
|
+
set mode(mode: RegionBooleanMode);
|
|
119
|
+
protected get clearSelectionSet(): boolean;
|
|
120
|
+
protected get allowSelectionSet(): boolean;
|
|
121
|
+
protected get allowDragSelect(): boolean;
|
|
122
|
+
protected get controlKeyContinuesSelection(): boolean;
|
|
123
|
+
protected get requiredElementCount(): number;
|
|
124
|
+
protected get wantAccuSnap(): boolean;
|
|
125
|
+
protected get wantDynamics(): boolean;
|
|
126
|
+
protected get wantModifyOriginal(): boolean;
|
|
127
|
+
protected onAgendaModified(): Promise<void>;
|
|
128
|
+
protected acceptCurve(curve: CurveCollection | CurvePrimitive): boolean;
|
|
129
|
+
private regionBinaryOp;
|
|
130
|
+
private regionFromSignedLoops;
|
|
131
|
+
private regionBooleanXY;
|
|
132
|
+
protected doRegionBoolean(_ev: BeButtonEvent): Promise<void>;
|
|
133
|
+
protected modifyCurve(_ev: BeButtonEvent, _isAccept: boolean): GeometryQuery | undefined;
|
|
134
|
+
protected applyAgendaOperation(ev: BeButtonEvent): Promise<boolean>;
|
|
135
|
+
processAgenda(ev: BeButtonEvent): Promise<void>;
|
|
136
|
+
onRestartTool(): Promise<void>;
|
|
137
|
+
applyToolSettingPropertyChange(updatedValue: DialogPropertySyncItem): Promise<boolean>;
|
|
138
|
+
supplyToolSettingsProperties(): DialogItem[] | undefined;
|
|
139
|
+
}
|
|
140
140
|
//# sourceMappingURL=ModifyCurveTools.d.ts.map
|