@itwin/editor-backend 3.5.0-dev.5 → 3.5.0-dev.51

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,48 @@
1
1
  # Change Log - @itwin/editor-backend
2
2
 
3
- This log was last generated on Thu, 01 Sep 2022 14:37:22 GMT and should not be manually modified.
3
+ This log was last generated on Thu, 10 Nov 2022 19:32:17 GMT and should not be manually modified.
4
+
5
+ ## 3.4.4
6
+ Thu, 10 Nov 2022 19:32:17 GMT
7
+
8
+ _Version update only_
9
+
10
+ ## 3.4.3
11
+ Fri, 28 Oct 2022 13:34:58 GMT
12
+
13
+ _Version update only_
14
+
15
+ ## 3.4.2
16
+ Mon, 24 Oct 2022 13:23:45 GMT
17
+
18
+ _Version update only_
19
+
20
+ ## 3.4.1
21
+ Mon, 17 Oct 2022 20:06:51 GMT
22
+
23
+ _Version update only_
24
+
25
+ ## 3.4.0
26
+ Thu, 13 Oct 2022 20:24:47 GMT
27
+
28
+ ### Updates
29
+
30
+ - Implement onStart.
31
+
32
+ ## 3.3.5
33
+ Tue, 27 Sep 2022 11:50:59 GMT
34
+
35
+ _Version update only_
36
+
37
+ ## 3.3.4
38
+ Thu, 08 Sep 2022 19:00:05 GMT
39
+
40
+ _Version update only_
41
+
42
+ ## 3.3.3
43
+ Tue, 06 Sep 2022 20:54:19 GMT
44
+
45
+ _Version update only_
4
46
 
5
47
  ## 3.3.2
6
48
  Thu, 01 Sep 2022 14:37:22 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