@itwin/editor-backend 4.0.0-dev.1 → 4.0.0-dev.100

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/CHANGELOG.md CHANGED
@@ -1,6 +1,58 @@
1
1
  # Change Log - @itwin/editor-backend
2
2
 
3
- This log was last generated on Thu, 26 Jan 2023 22:53:27 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 25 Apr 2023 17:50:35 GMT and should not be manually modified.
4
+
5
+ ## 3.7.4
6
+ Tue, 25 Apr 2023 17:50:35 GMT
7
+
8
+ _Version update only_
9
+
10
+ ## 3.7.3
11
+ Thu, 20 Apr 2023 13:19:29 GMT
12
+
13
+ _Version update only_
14
+
15
+ ## 3.7.2
16
+ Wed, 12 Apr 2023 13:12:42 GMT
17
+
18
+ _Version update only_
19
+
20
+ ## 3.7.1
21
+ Mon, 03 Apr 2023 15:15:37 GMT
22
+
23
+ _Version update only_
24
+
25
+ ## 3.7.0
26
+ Wed, 29 Mar 2023 15:02:27 GMT
27
+
28
+ _Version update only_
29
+
30
+ ## 3.6.3
31
+ Mon, 27 Mar 2023 16:26:47 GMT
32
+
33
+ _Version update only_
34
+
35
+ ## 3.6.2
36
+ Fri, 17 Mar 2023 17:52:32 GMT
37
+
38
+ _Version update only_
39
+
40
+ ## 3.6.1
41
+ Fri, 24 Feb 2023 22:00:48 GMT
42
+
43
+ _Version update only_
44
+
45
+ ## 3.6.0
46
+ Wed, 08 Feb 2023 14:58:40 GMT
47
+
48
+ ### Updates
49
+
50
+ - add EditTools.busyRetry
51
+
52
+ ## 3.5.6
53
+ Fri, 24 Feb 2023 16:02:47 GMT
54
+
55
+ _Version update only_
4
56
 
5
57
  ## 3.5.5
6
58
  Thu, 26 Jan 2023 22:53:27 GMT
@@ -1,79 +1,79 @@
1
- /** @packageDocumentation
2
- * @module Editing
3
- */
4
- import { CompressedId64Set, Id64String, IModelStatus } from "@itwin/core-bentley";
5
- import { Matrix3dProps, Range3dProps, TransformProps, XYZProps } from "@itwin/core-geometry";
6
- import { IModelDb } from "@itwin/core-backend";
7
- import { EcefLocationProps, ElementGeometryBuilderParams, ElementGeometryBuilderParamsForPart, ElementGeometryInfo, GeometricElementProps, GeometryPartProps } from "@itwin/core-common";
8
- import { BasicManipulationCommandIpc, BlendEdgesProps, BooleanOperationProps, BRepEntityType, ChamferEdgesProps, ConnectedSubEntityProps, CutProps, DeleteSubEntityProps, EdgeParameterRangeProps, ElementGeometryCacheFilter, ElementGeometryResultOptions, ElementGeometryResultProps, EmbossProps, EvaluatedEdgeProps, EvaluatedFaceProps, EvaluatedVertexProps, FaceParameterRangeProps, FlatBufferGeometryFilter, HollowFacesProps, ImprintProps, LocateSubEntityProps, LoftProps, OffsetEdgesProps, OffsetFacesProps, PointInsideResultProps, SewSheetProps, SolidModelingCommandIpc, SpinFacesProps, SubEntityGeometryProps, SubEntityLocationProps, SubEntityProps, SubEntityType, SweepFacesProps, SweepPathProps, ThickenSheetProps, TransformSubEntityProps } from "@itwin/editor-common";
9
- import { EditCommand } from "./EditCommand";
10
- /** @alpha */
11
- export declare class BasicManipulationCommand extends EditCommand implements BasicManipulationCommandIpc {
12
- protected _str: string;
13
- static commandId: string;
14
- constructor(iModel: IModelDb, _str: string);
15
- onStart(): Promise<string>;
16
- deleteElements(ids: CompressedId64Set): Promise<IModelStatus>;
17
- transformPlacement(ids: CompressedId64Set, transProps: TransformProps): Promise<IModelStatus>;
18
- rotatePlacement(ids: CompressedId64Set, matrixProps: Matrix3dProps, aboutCenter: boolean): Promise<IModelStatus>;
19
- insertGeometricElement(props: GeometricElementProps, data?: ElementGeometryBuilderParams): Promise<Id64String>;
20
- insertGeometryPart(props: GeometryPartProps, data?: ElementGeometryBuilderParamsForPart): Promise<Id64String>;
21
- updateGeometricElement(propsOrId: GeometricElementProps | Id64String, data?: ElementGeometryBuilderParams): Promise<void>;
22
- requestElementGeometry(elementId: Id64String, filter?: FlatBufferGeometryFilter): Promise<ElementGeometryInfo | undefined>;
23
- updateProjectExtents(extents: Range3dProps): Promise<void>;
24
- updateEcefLocation(ecefLocation: EcefLocationProps): Promise<void>;
25
- }
26
- /** @alpha */
27
- export declare class SolidModelingCommand extends BasicManipulationCommand implements SolidModelingCommandIpc {
28
- static commandId: string;
29
- onStart(): Promise<string>;
30
- private updateElementGeometryCache;
31
- createElementGeometryCache(id: Id64String, filter?: ElementGeometryCacheFilter): Promise<boolean>;
32
- clearElementGeometryCache(): Promise<void>;
33
- summarizeElementGeometryCache(id: Id64String): Promise<BRepEntityType[] | undefined>;
34
- private requestSubEntityGeometry;
35
- getSubEntityGeometry(id: Id64String, subEntity: SubEntityProps, opts: Omit<ElementGeometryResultOptions, "writeChanges" | "insertProps">): Promise<SubEntityGeometryProps | undefined>;
36
- getSubEntityParameterRange(id: Id64String, subEntity: SubEntityProps): Promise<FaceParameterRangeProps | EdgeParameterRangeProps | undefined>;
37
- evaluateSubEntity(id: Id64String, subEntity: SubEntityProps, uParam?: number, vParam?: number): Promise<EvaluatedFaceProps | EvaluatedEdgeProps | EvaluatedVertexProps | undefined>;
38
- private subEntityQuery;
39
- isPlanarFace(id: Id64String, subEntity: SubEntityProps): Promise<boolean>;
40
- isSmoothEdge(id: Id64String, subEntity: SubEntityProps): Promise<boolean>;
41
- isLaminarEdge(id: Id64String, subEntity: SubEntityProps): Promise<boolean>;
42
- isLinearEdge(id: Id64String, subEntity: SubEntityProps): Promise<boolean>;
43
- isRedundantEdge(id: Id64String, subEntity: SubEntityProps): Promise<boolean>;
44
- isSmoothVertex(id: Id64String, subEntity: SubEntityProps): Promise<boolean>;
45
- private bodyQuery;
46
- isDisjointBody(id: Id64String, index: number): Promise<boolean>;
47
- isPlanarBody(id: Id64String, index: number): Promise<boolean>;
48
- isSingleFacePlanarSheet(id: Id64String, index: number): Promise<boolean>;
49
- hasOnlyPlanarFaces(id: Id64String, index: number): Promise<boolean>;
50
- hasCurvedFaceOrEdge(id: Id64String, index: number): Promise<boolean>;
51
- getBodySubEntities(id: Id64String, type: SubEntityType, firstOnly?: true): Promise<SubEntityProps[] | undefined>;
52
- getConnectedSubEntities(id: Id64String, subEntity: SubEntityProps, type: SubEntityType, options?: ConnectedSubEntityProps): Promise<SubEntityProps[] | undefined>;
53
- locateSubEntities(id: Id64String, point: XYZProps, direction: XYZProps, options: LocateSubEntityProps): Promise<SubEntityLocationProps[] | undefined>;
54
- locateFace(id: Id64String, subEntity: SubEntityProps, point: XYZProps, direction: XYZProps): Promise<SubEntityLocationProps[] | undefined>;
55
- getClosestSubEntity(id: Id64String, point: XYZProps): Promise<SubEntityLocationProps | undefined>;
56
- getClosestFace(id: Id64String, point: XYZProps, direction?: XYZProps): Promise<SubEntityLocationProps | undefined>;
57
- getClosestPoint(id: Id64String, subEntity: SubEntityProps, point: XYZProps): Promise<SubEntityLocationProps | undefined>;
58
- isPointInside(id: Id64String, point: XYZProps): Promise<PointInsideResultProps[] | undefined>;
59
- private getElementGeometryResults;
60
- private doElementGeometryOperation;
61
- booleanOperation(id: Id64String, params: BooleanOperationProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
62
- sewSheets(id: Id64String, params: SewSheetProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
63
- thickenSheets(id: Id64String, params: ThickenSheetProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
64
- cutSolid(id: Id64String, params: CutProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
65
- embossBody(id: Id64String, params: EmbossProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
66
- imprintBody(id: Id64String, params: ImprintProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
67
- sweepAlongPath(id: Id64String, params: SweepPathProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
68
- loftProfiles(id: Id64String, params: LoftProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
69
- offsetFaces(id: Id64String, params: OffsetFacesProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
70
- offsetEdges(id: Id64String, params: OffsetEdgesProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
71
- hollowFaces(id: Id64String, params: HollowFacesProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
72
- sweepFaces(id: Id64String, params: SweepFacesProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
73
- spinFaces(id: Id64String, params: SpinFacesProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
74
- deleteSubEntities(id: Id64String, params: DeleteSubEntityProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
75
- transformSubEntities(id: Id64String, params: TransformSubEntityProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
76
- blendEdges(id: Id64String, params: BlendEdgesProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
77
- chamferEdges(id: Id64String, params: ChamferEdgesProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
78
- }
1
+ /** @packageDocumentation
2
+ * @module Editing
3
+ */
4
+ import { CompressedId64Set, Id64String, IModelStatus } from "@itwin/core-bentley";
5
+ import { Matrix3dProps, Range3dProps, TransformProps, XYZProps } from "@itwin/core-geometry";
6
+ import { IModelDb } from "@itwin/core-backend";
7
+ import { EcefLocationProps, ElementGeometryBuilderParams, ElementGeometryBuilderParamsForPart, ElementGeometryInfo, GeometricElementProps, GeometryPartProps } from "@itwin/core-common";
8
+ import { BasicManipulationCommandIpc, BlendEdgesProps, BooleanOperationProps, BRepEntityType, ChamferEdgesProps, ConnectedSubEntityProps, CutProps, DeleteSubEntityProps, EdgeParameterRangeProps, ElementGeometryCacheFilter, ElementGeometryResultOptions, ElementGeometryResultProps, EmbossProps, EvaluatedEdgeProps, EvaluatedFaceProps, EvaluatedVertexProps, FaceParameterRangeProps, FlatBufferGeometryFilter, HollowFacesProps, ImprintProps, LocateSubEntityProps, LoftProps, OffsetEdgesProps, OffsetFacesProps, PointInsideResultProps, SewSheetProps, SolidModelingCommandIpc, SpinFacesProps, SubEntityGeometryProps, SubEntityLocationProps, SubEntityProps, SubEntityType, SweepFacesProps, SweepPathProps, ThickenSheetProps, TransformSubEntityProps } from "@itwin/editor-common";
9
+ import { EditCommand } from "./EditCommand";
10
+ /** @alpha */
11
+ export declare class BasicManipulationCommand extends EditCommand implements BasicManipulationCommandIpc {
12
+ protected _str: string;
13
+ static commandId: string;
14
+ constructor(iModel: IModelDb, _str: string);
15
+ onStart(): Promise<string>;
16
+ deleteElements(ids: CompressedId64Set): Promise<IModelStatus>;
17
+ transformPlacement(ids: CompressedId64Set, transProps: TransformProps): Promise<IModelStatus>;
18
+ rotatePlacement(ids: CompressedId64Set, matrixProps: Matrix3dProps, aboutCenter: boolean): Promise<IModelStatus>;
19
+ insertGeometricElement(props: GeometricElementProps, data?: ElementGeometryBuilderParams): Promise<Id64String>;
20
+ insertGeometryPart(props: GeometryPartProps, data?: ElementGeometryBuilderParamsForPart): Promise<Id64String>;
21
+ updateGeometricElement(propsOrId: GeometricElementProps | Id64String, data?: ElementGeometryBuilderParams): Promise<void>;
22
+ requestElementGeometry(elementId: Id64String, filter?: FlatBufferGeometryFilter): Promise<ElementGeometryInfo | undefined>;
23
+ updateProjectExtents(extents: Range3dProps): Promise<void>;
24
+ updateEcefLocation(ecefLocation: EcefLocationProps): Promise<void>;
25
+ }
26
+ /** @alpha */
27
+ export declare class SolidModelingCommand extends BasicManipulationCommand implements SolidModelingCommandIpc {
28
+ static commandId: string;
29
+ onStart(): Promise<string>;
30
+ private updateElementGeometryCache;
31
+ createElementGeometryCache(id: Id64String, filter?: ElementGeometryCacheFilter): Promise<boolean>;
32
+ clearElementGeometryCache(): Promise<void>;
33
+ summarizeElementGeometryCache(id: Id64String): Promise<BRepEntityType[] | undefined>;
34
+ private requestSubEntityGeometry;
35
+ getSubEntityGeometry(id: Id64String, subEntity: SubEntityProps, opts: Omit<ElementGeometryResultOptions, "writeChanges" | "insertProps">): Promise<SubEntityGeometryProps | undefined>;
36
+ getSubEntityParameterRange(id: Id64String, subEntity: SubEntityProps): Promise<FaceParameterRangeProps | EdgeParameterRangeProps | undefined>;
37
+ evaluateSubEntity(id: Id64String, subEntity: SubEntityProps, uParam?: number, vParam?: number): Promise<EvaluatedFaceProps | EvaluatedEdgeProps | EvaluatedVertexProps | undefined>;
38
+ private subEntityQuery;
39
+ isPlanarFace(id: Id64String, subEntity: SubEntityProps): Promise<boolean>;
40
+ isSmoothEdge(id: Id64String, subEntity: SubEntityProps): Promise<boolean>;
41
+ isLaminarEdge(id: Id64String, subEntity: SubEntityProps): Promise<boolean>;
42
+ isLinearEdge(id: Id64String, subEntity: SubEntityProps): Promise<boolean>;
43
+ isRedundantEdge(id: Id64String, subEntity: SubEntityProps): Promise<boolean>;
44
+ isSmoothVertex(id: Id64String, subEntity: SubEntityProps): Promise<boolean>;
45
+ private bodyQuery;
46
+ isDisjointBody(id: Id64String, index: number): Promise<boolean>;
47
+ isPlanarBody(id: Id64String, index: number): Promise<boolean>;
48
+ isSingleFacePlanarSheet(id: Id64String, index: number): Promise<boolean>;
49
+ hasOnlyPlanarFaces(id: Id64String, index: number): Promise<boolean>;
50
+ hasCurvedFaceOrEdge(id: Id64String, index: number): Promise<boolean>;
51
+ getBodySubEntities(id: Id64String, type: SubEntityType, firstOnly?: true): Promise<SubEntityProps[] | undefined>;
52
+ getConnectedSubEntities(id: Id64String, subEntity: SubEntityProps, type: SubEntityType, options?: ConnectedSubEntityProps): Promise<SubEntityProps[] | undefined>;
53
+ locateSubEntities(id: Id64String, point: XYZProps, direction: XYZProps, options: LocateSubEntityProps): Promise<SubEntityLocationProps[] | undefined>;
54
+ locateFace(id: Id64String, subEntity: SubEntityProps, point: XYZProps, direction: XYZProps): Promise<SubEntityLocationProps[] | undefined>;
55
+ getClosestSubEntity(id: Id64String, point: XYZProps): Promise<SubEntityLocationProps | undefined>;
56
+ getClosestFace(id: Id64String, point: XYZProps, direction?: XYZProps): Promise<SubEntityLocationProps | undefined>;
57
+ getClosestPoint(id: Id64String, subEntity: SubEntityProps, point: XYZProps): Promise<SubEntityLocationProps | undefined>;
58
+ isPointInside(id: Id64String, point: XYZProps): Promise<PointInsideResultProps[] | undefined>;
59
+ private getElementGeometryResults;
60
+ private doElementGeometryOperation;
61
+ booleanOperation(id: Id64String, params: BooleanOperationProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
62
+ sewSheets(id: Id64String, params: SewSheetProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
63
+ thickenSheets(id: Id64String, params: ThickenSheetProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
64
+ cutSolid(id: Id64String, params: CutProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
65
+ embossBody(id: Id64String, params: EmbossProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
66
+ imprintBody(id: Id64String, params: ImprintProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
67
+ sweepAlongPath(id: Id64String, params: SweepPathProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
68
+ loftProfiles(id: Id64String, params: LoftProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
69
+ offsetFaces(id: Id64String, params: OffsetFacesProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
70
+ offsetEdges(id: Id64String, params: OffsetEdgesProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
71
+ hollowFaces(id: Id64String, params: HollowFacesProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
72
+ sweepFaces(id: Id64String, params: SweepFacesProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
73
+ spinFaces(id: Id64String, params: SpinFacesProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
74
+ deleteSubEntities(id: Id64String, params: DeleteSubEntityProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
75
+ transformSubEntities(id: Id64String, params: TransformSubEntityProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
76
+ blendEdges(id: Id64String, params: BlendEdgesProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
77
+ chamferEdges(id: Id64String, params: ChamferEdgesProps, opts: ElementGeometryResultOptions): Promise<ElementGeometryResultProps | undefined>;
78
+ }
79
79
  //# sourceMappingURL=EditBuiltInCommand.d.ts.map