@itwin/editor-backend 3.6.0-dev.7 → 3.6.0

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,38 @@
1
1
  # Change Log - @itwin/editor-backend
2
2
 
3
- This log was last generated on Wed, 07 Dec 2022 19:12:37 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 08 Feb 2023 14:58:40 GMT and should not be manually modified.
4
+
5
+ ## 3.6.0
6
+ Wed, 08 Feb 2023 14:58:40 GMT
7
+
8
+ ### Updates
9
+
10
+ - add EditTools.busyRetry
11
+
12
+ ## 3.5.5
13
+ Thu, 26 Jan 2023 22:53:27 GMT
14
+
15
+ _Version update only_
16
+
17
+ ## 3.5.4
18
+ Wed, 18 Jan 2023 15:27:15 GMT
19
+
20
+ _Version update only_
21
+
22
+ ## 3.5.3
23
+ Fri, 13 Jan 2023 17:23:07 GMT
24
+
25
+ _Version update only_
26
+
27
+ ## 3.5.2
28
+ Wed, 11 Jan 2023 16:46:30 GMT
29
+
30
+ _Version update only_
31
+
32
+ ## 3.5.1
33
+ Thu, 15 Dec 2022 16:38:29 GMT
34
+
35
+ _Version update only_
4
36
 
5
37
  ## 3.5.0
6
38
  Wed, 07 Dec 2022 19:12:37 GMT
package/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # MIT License
2
2
 
3
- Copyright © 2017-2022 Bentley Systems, Incorporated. All rights reserved.
3
+ Copyright © 2017-2023 Bentley Systems, Incorporated. All rights reserved.
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
6
 
@@ -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