@itwin/editor-backend 3.5.0-dev.8 → 3.5.1

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,73 @@
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, 15 Dec 2022 16:38:29 GMT and should not be manually modified.
4
+
5
+ ## 3.5.1
6
+ Thu, 15 Dec 2022 16:38:29 GMT
7
+
8
+ _Version update only_
9
+
10
+ ## 3.5.0
11
+ Wed, 07 Dec 2022 19:12:37 GMT
12
+
13
+ _Version update only_
14
+
15
+ ## 3.4.7
16
+ Wed, 30 Nov 2022 14:28:19 GMT
17
+
18
+ _Version update only_
19
+
20
+ ## 3.4.6
21
+ Tue, 22 Nov 2022 14:24:19 GMT
22
+
23
+ _Version update only_
24
+
25
+ ## 3.4.5
26
+ Thu, 17 Nov 2022 21:32:50 GMT
27
+
28
+ _Version update only_
29
+
30
+ ## 3.4.4
31
+ Thu, 10 Nov 2022 19:32:17 GMT
32
+
33
+ _Version update only_
34
+
35
+ ## 3.4.3
36
+ Fri, 28 Oct 2022 13:34:58 GMT
37
+
38
+ _Version update only_
39
+
40
+ ## 3.4.2
41
+ Mon, 24 Oct 2022 13:23:45 GMT
42
+
43
+ _Version update only_
44
+
45
+ ## 3.4.1
46
+ Mon, 17 Oct 2022 20:06:51 GMT
47
+
48
+ _Version update only_
49
+
50
+ ## 3.4.0
51
+ Thu, 13 Oct 2022 20:24:47 GMT
52
+
53
+ ### Updates
54
+
55
+ - Implement onStart.
56
+
57
+ ## 3.3.5
58
+ Tue, 27 Sep 2022 11:50:59 GMT
59
+
60
+ _Version update only_
61
+
62
+ ## 3.3.4
63
+ Thu, 08 Sep 2022 19:00:05 GMT
64
+
65
+ _Version update only_
66
+
67
+ ## 3.3.3
68
+ Tue, 06 Sep 2022 20:54:19 GMT
69
+
70
+ _Version update only_
4
71
 
5
72
  ## 3.3.2
6
73
  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