@itwin/editor-common 4.6.0-dev.3 → 4.6.0-dev.6

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,16 @@
1
1
  # Change Log - @itwin/editor-common
2
2
 
3
- This log was last generated on Mon, 25 Mar 2024 22:24:35 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 03 Apr 2024 18:28:10 GMT and should not be manually modified.
4
+
5
+ ## 4.5.1
6
+ Wed, 03 Apr 2024 18:26:59 GMT
7
+
8
+ _Version update only_
9
+
10
+ ## 4.5.0
11
+ Tue, 02 Apr 2024 19:06:00 GMT
12
+
13
+ _Version update only_
4
14
 
5
15
  ## 4.4.8
6
16
  Mon, 25 Mar 2024 22:22:26 GMT
@@ -36,6 +36,8 @@ export interface FlatBufferGeometryFilter {
36
36
  * @beta
37
37
  */
38
38
  export interface BasicManipulationCommandIpc extends EditCommandIpc {
39
+ addAllowedChannel(channelKey: string): Promise<void>;
40
+ removeAllowedChannel(channelKey: string): Promise<void>;
39
41
  deleteElements(ids: CompressedId64Set): Promise<IModelStatus>;
40
42
  transformPlacement(ids: CompressedId64Set, transform: TransformProps): Promise<IModelStatus>;
41
43
  rotatePlacement(ids: CompressedId64Set, matrix: Matrix3dProps, aboutCenter: boolean): Promise<IModelStatus>;
@@ -1 +1 @@
1
- {"version":3,"file":"EditorBuiltInIpc.d.ts","sourceRoot":"","sources":["../../src/EditorBuiltInIpc.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAClF,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACnF,OAAO,EAAE,iBAAiB,EAAE,4BAA4B,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,oBAAo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------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Editing\r\n */\r\n\r\nimport { CompressedId64Set, Id64String, IModelStatus } from \"@itwin/core-bentley\";\r\nimport { Matrix3dProps, Range3dProps, TransformProps } from \"@itwin/core-geometry\";\r\nimport { EcefLocationProps, ElementGeometryBuilderParams, ElementGeometryInfo, ElementGeometryOpcode, GeometricElementProps, GeometryPartProps } from \"@itwin/core-common\";\r\nimport { EditCommandIpc } from \"./EditorIpc\";\r\n\r\n/** Command ids for built in EditCommandIpc classes.\r\n * @beta\r\n */\r\nexport const editorBuiltInCmdIds = {\r\n cmdBasicManipulation: \"basicManipulation\",\r\n};\r\n\r\n/** Optional criteria for requesting a GeometryStream from the backend.\r\n * @beta\r\n */\r\nexport interface FlatBufferGeometryFilter {\r\n /** Optional limit on number of displayable entries to accept */\r\n maxDisplayable?: number;\r\n /** Optional array of displayable opCodes to accept */\r\n accept?: ElementGeometryOpcode[];\r\n /** Optional array of displayable opCodes to reject */\r\n reject?: ElementGeometryOpcode[];\r\n /** Optional geometry type filter\r\n * curves - true to accept single curves and paths\r\n * surfaces - true to accept loops, planar regions, open polyfaces, and sheet bodies\r\n * solids - true to accept capped solids, closed polyfaces, and solid bodies\r\n */\r\n geometry?: { curves: boolean, surfaces: boolean, solids: boolean };\r\n}\r\n\r\n/** Interface for a backend EditCommand command that provides basic creation and modification operations.\r\n * @beta\r\n */\r\nexport interface BasicManipulationCommandIpc extends EditCommandIpc {\r\n deleteElements(ids: CompressedId64Set): Promise<IModelStatus>;\r\n transformPlacement(ids: CompressedId64Set, transform: TransformProps): Promise<IModelStatus>;\r\n rotatePlacement(ids: CompressedId64Set, matrix: Matrix3dProps, aboutCenter: boolean): Promise<IModelStatus>;\r\n\r\n /** Create and insert a new geometric element.\r\n * @param props Properties for the new [GeometricElement]($backend)\r\n * @see [GeometryStream]($docs/learning/common/geometrystream.md), [ElementGeometry]($common)\r\n * @throws [[IModelError]] if unable to insert the element\r\n */\r\n insertGeometricElement(props: GeometricElementProps): Promise<Id64String>;\r\n\r\n /** Create and insert a new geometry part element.\r\n * @param props Properties for the new [GeometryPart]($backend)\r\n * @see [GeometryStream]($docs/learning/common/geometrystream.md), [ElementGeometry]($common)\r\n * @throws [[IModelError]] if unable to insert the element\r\n */\r\n insertGeometryPart(props: GeometryPartProps): Promise<Id64String>;\r\n\r\n /** Update an existing geometric element.\r\n * @param propsOrId Properties or element id to update for an existing [GeometricElement]($backend)\r\n * @param data Optional binary format GeometryStream representation used in lieu of [[GeometricElementProps.geom]] or [[GeometricElementProps.elementGeometryBuilderParams]].\r\n * @see [GeometryStream]($docs/learning/common/geometrystream.md), [ElementGeometry]($common)\r\n * @throws [[IModelError]] if unable to update the element\r\n */\r\n updateGeometricElement(propsOrId: GeometricElementProps | Id64String, data?: ElementGeometryBuilderParams): Promise<void>;\r\n\r\n /** Request geometry from an existing element. Because a GeometryStream can be large and may contain information\r\n * that is not always useful to frontend code, filter options are provided to restrict what GeometryStreams are returned.\r\n * For example, a tool may only be interested in a GeometryStream that stores a single CurveCollection.\r\n * @param id Element id of an existing [GeometricElement]($backend) or [GeometryPart]($backend).\r\n * @param filter Optional criteria for accepting a GeometryStream.\r\n * @see [GeometryStream]($docs/learning/common/geometrystream.md), [ElementGeometry]($common)\r\n * @throws [[IModelError]] if unable to query the element\r\n */\r\n requestElementGeometry(id: Id64String, filter?: FlatBufferGeometryFilter): Promise<ElementGeometryInfo | undefined>;\r\n\r\n /** Update the project extents for the iModel.\r\n * @param extents New project extents.\r\n * @throws [[IModelError]] if unable to aquire schema lock or update the extents property.\r\n */\r\n updateProjectExtents(extents: Range3dProps): Promise<void>;\r\n\r\n /** Update the position of the iModel on the earth.\r\n * @param ecefLocation New ecef location properties.\r\n * @throws [[IModelError]] if unable to aquire schema lock or update the ecef location property.\r\n * @note Clears the geographic coordinate reference system of the iModel, do not call when a valid GCS exists.\r\n */\r\n updateEcefLocation(ecefLocation: EcefLocationProps): Promise<void>;\r\n}\r\n"]}
1
+ {"version":3,"file":"EditorBuiltInIpc.js","sourceRoot":"","sources":["../../src/EditorBuiltInIpc.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAOH;;GAEG;AACU,QAAA,mBAAmB,GAAG;IACjC,oBAAoB,EAAE,mBAAmB;CAC1C,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Editing\r\n */\r\n\r\nimport { CompressedId64Set, Id64String, IModelStatus } from \"@itwin/core-bentley\";\r\nimport { Matrix3dProps, Range3dProps, TransformProps } from \"@itwin/core-geometry\";\r\nimport { EcefLocationProps, ElementGeometryBuilderParams, ElementGeometryInfo, ElementGeometryOpcode, GeometricElementProps, GeometryPartProps } from \"@itwin/core-common\";\r\nimport { EditCommandIpc } from \"./EditorIpc\";\r\n\r\n/** Command ids for built in EditCommandIpc classes.\r\n * @beta\r\n */\r\nexport const editorBuiltInCmdIds = {\r\n cmdBasicManipulation: \"basicManipulation\",\r\n};\r\n\r\n/** Optional criteria for requesting a GeometryStream from the backend.\r\n * @beta\r\n */\r\nexport interface FlatBufferGeometryFilter {\r\n /** Optional limit on number of displayable entries to accept */\r\n maxDisplayable?: number;\r\n /** Optional array of displayable opCodes to accept */\r\n accept?: ElementGeometryOpcode[];\r\n /** Optional array of displayable opCodes to reject */\r\n reject?: ElementGeometryOpcode[];\r\n /** Optional geometry type filter\r\n * curves - true to accept single curves and paths\r\n * surfaces - true to accept loops, planar regions, open polyfaces, and sheet bodies\r\n * solids - true to accept capped solids, closed polyfaces, and solid bodies\r\n */\r\n geometry?: { curves: boolean, surfaces: boolean, solids: boolean };\r\n}\r\n\r\n/** Interface for a backend EditCommand command that provides basic creation and modification operations.\r\n * @beta\r\n */\r\nexport interface BasicManipulationCommandIpc extends EditCommandIpc {\r\n addAllowedChannel(channelKey: string): Promise<void>;\r\n removeAllowedChannel(channelKey: string): Promise<void>;\r\n deleteElements(ids: CompressedId64Set): Promise<IModelStatus>;\r\n transformPlacement(ids: CompressedId64Set, transform: TransformProps): Promise<IModelStatus>;\r\n rotatePlacement(ids: CompressedId64Set, matrix: Matrix3dProps, aboutCenter: boolean): Promise<IModelStatus>;\r\n\r\n /** Create and insert a new geometric element.\r\n * @param props Properties for the new [GeometricElement]($backend)\r\n * @see [GeometryStream]($docs/learning/common/geometrystream.md), [ElementGeometry]($common)\r\n * @throws [[IModelError]] if unable to insert the element\r\n */\r\n insertGeometricElement(props: GeometricElementProps): Promise<Id64String>;\r\n\r\n /** Create and insert a new geometry part element.\r\n * @param props Properties for the new [GeometryPart]($backend)\r\n * @see [GeometryStream]($docs/learning/common/geometrystream.md), [ElementGeometry]($common)\r\n * @throws [[IModelError]] if unable to insert the element\r\n */\r\n insertGeometryPart(props: GeometryPartProps): Promise<Id64String>;\r\n\r\n /** Update an existing geometric element.\r\n * @param propsOrId Properties or element id to update for an existing [GeometricElement]($backend)\r\n * @param data Optional binary format GeometryStream representation used in lieu of [[GeometricElementProps.geom]] or [[GeometricElementProps.elementGeometryBuilderParams]].\r\n * @see [GeometryStream]($docs/learning/common/geometrystream.md), [ElementGeometry]($common)\r\n * @throws [[IModelError]] if unable to update the element\r\n */\r\n updateGeometricElement(propsOrId: GeometricElementProps | Id64String, data?: ElementGeometryBuilderParams): Promise<void>;\r\n\r\n /** Request geometry from an existing element. Because a GeometryStream can be large and may contain information\r\n * that is not always useful to frontend code, filter options are provided to restrict what GeometryStreams are returned.\r\n * For example, a tool may only be interested in a GeometryStream that stores a single CurveCollection.\r\n * @param id Element id of an existing [GeometricElement]($backend) or [GeometryPart]($backend).\r\n * @param filter Optional criteria for accepting a GeometryStream.\r\n * @see [GeometryStream]($docs/learning/common/geometrystream.md), [ElementGeometry]($common)\r\n * @throws [[IModelError]] if unable to query the element\r\n */\r\n requestElementGeometry(id: Id64String, filter?: FlatBufferGeometryFilter): Promise<ElementGeometryInfo | undefined>;\r\n\r\n /** Update the project extents for the iModel.\r\n * @param extents New project extents.\r\n * @throws [[IModelError]] if unable to aquire schema lock or update the extents property.\r\n */\r\n updateProjectExtents(extents: Range3dProps): Promise<void>;\r\n\r\n /** Update the position of the iModel on the earth.\r\n * @param ecefLocation New ecef location properties.\r\n * @throws [[IModelError]] if unable to aquire schema lock or update the ecef location property.\r\n * @note Clears the geographic coordinate reference system of the iModel, do not call when a valid GCS exists.\r\n */\r\n updateEcefLocation(ecefLocation: EcefLocationProps): Promise<void>;\r\n}\r\n"]}
@@ -36,6 +36,8 @@ export interface FlatBufferGeometryFilter {
36
36
  * @beta
37
37
  */
38
38
  export interface BasicManipulationCommandIpc extends EditCommandIpc {
39
+ addAllowedChannel(channelKey: string): Promise<void>;
40
+ removeAllowedChannel(channelKey: string): Promise<void>;
39
41
  deleteElements(ids: CompressedId64Set): Promise<IModelStatus>;
40
42
  transformPlacement(ids: CompressedId64Set, transform: TransformProps): Promise<IModelStatus>;
41
43
  rotatePlacement(ids: CompressedId64Set, matrix: Matrix3dProps, aboutCenter: boolean): Promise<IModelStatus>;
@@ -1 +1 @@
1
- {"version":3,"file":"EditorBuiltInIpc.d.ts","sourceRoot":"","sources":["../../src/EditorBuiltInIpc.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAClF,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACnF,OAAO,EAAE,iBAAiB,EAAE,4BAA4B,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAC3K,OAAO,EA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CAAC,IAAI,CAAC,CAAC;IACxD,cAAc,CAAC,GAAG,EAAE,iBAAiB,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IAC9D,kBAAkB,CAAC,GAAG,EAAE,iBAAiB,EAAE,SAAS,EAAE,cAAc,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IAC7F,eAAe,CAAC,GAAG,EAAE,iBAAiB,EAAE,MAAM,EAAE,aAAa,EAAE,WAAW,EAAE,OAAO,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IAE5G;;;;OAIG;IACH,sBAAsB,CAAC,KAAK,EAAE,qBAAqB,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;IAE1E;;;;OAIG;IACH,kBAAkB,CAAC,KAAK,EAAE,iBAAiB,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;IAElE;;;;;OAKG;IACH,sBAAsB,CAAC,SAAS,EAAE,qBAAqB,GAAG,UAAU,EAAE,IAAI,CAAC,EAAE,4BAA4B,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE1H;;;;;;;OAOG;IACH,sBAAsB,CAAC,EAAE,EAAE,UAAU,EAAE,MAAM,CAAC,EAAE,wBAAwB,GAAG,OAAO,CAAC,mBAAmB,GAAG,SAAS,CAAC,CAAC;IAEpH;;;OAGG;IACH,oBAAoB,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE3D;;;;OAIG;IACH,kBAAkB,CAAC,YAAY,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACpE"}
@@ -1 +1 @@
1
- {"version":3,"file":"EditorBuiltInIpc.js","sourceRoot":"","sources":["../../src/EditorBuiltInIpc.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAOH;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,oBAAoB,EAAE,mBAAmB;CAC1C,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Editing\r\n */\r\n\r\nimport { CompressedId64Set, Id64String, IModelStatus } from \"@itwin/core-bentley\";\r\nimport { Matrix3dProps, Range3dProps, TransformProps } from \"@itwin/core-geometry\";\r\nimport { EcefLocationProps, ElementGeometryBuilderParams, ElementGeometryInfo, ElementGeometryOpcode, GeometricElementProps, GeometryPartProps } from \"@itwin/core-common\";\r\nimport { EditCommandIpc } from \"./EditorIpc\";\r\n\r\n/** Command ids for built in EditCommandIpc classes.\r\n * @beta\r\n */\r\nexport const editorBuiltInCmdIds = {\r\n cmdBasicManipulation: \"basicManipulation\",\r\n};\r\n\r\n/** Optional criteria for requesting a GeometryStream from the backend.\r\n * @beta\r\n */\r\nexport interface FlatBufferGeometryFilter {\r\n /** Optional limit on number of displayable entries to accept */\r\n maxDisplayable?: number;\r\n /** Optional array of displayable opCodes to accept */\r\n accept?: ElementGeometryOpcode[];\r\n /** Optional array of displayable opCodes to reject */\r\n reject?: ElementGeometryOpcode[];\r\n /** Optional geometry type filter\r\n * curves - true to accept single curves and paths\r\n * surfaces - true to accept loops, planar regions, open polyfaces, and sheet bodies\r\n * solids - true to accept capped solids, closed polyfaces, and solid bodies\r\n */\r\n geometry?: { curves: boolean, surfaces: boolean, solids: boolean };\r\n}\r\n\r\n/** Interface for a backend EditCommand command that provides basic creation and modification operations.\r\n * @beta\r\n */\r\nexport interface BasicManipulationCommandIpc extends EditCommandIpc {\r\n deleteElements(ids: CompressedId64Set): Promise<IModelStatus>;\r\n transformPlacement(ids: CompressedId64Set, transform: TransformProps): Promise<IModelStatus>;\r\n rotatePlacement(ids: CompressedId64Set, matrix: Matrix3dProps, aboutCenter: boolean): Promise<IModelStatus>;\r\n\r\n /** Create and insert a new geometric element.\r\n * @param props Properties for the new [GeometricElement]($backend)\r\n * @see [GeometryStream]($docs/learning/common/geometrystream.md), [ElementGeometry]($common)\r\n * @throws [[IModelError]] if unable to insert the element\r\n */\r\n insertGeometricElement(props: GeometricElementProps): Promise<Id64String>;\r\n\r\n /** Create and insert a new geometry part element.\r\n * @param props Properties for the new [GeometryPart]($backend)\r\n * @see [GeometryStream]($docs/learning/common/geometrystream.md), [ElementGeometry]($common)\r\n * @throws [[IModelError]] if unable to insert the element\r\n */\r\n insertGeometryPart(props: GeometryPartProps): Promise<Id64String>;\r\n\r\n /** Update an existing geometric element.\r\n * @param propsOrId Properties or element id to update for an existing [GeometricElement]($backend)\r\n * @param data Optional binary format GeometryStream representation used in lieu of [[GeometricElementProps.geom]] or [[GeometricElementProps.elementGeometryBuilderParams]].\r\n * @see [GeometryStream]($docs/learning/common/geometrystream.md), [ElementGeometry]($common)\r\n * @throws [[IModelError]] if unable to update the element\r\n */\r\n updateGeometricElement(propsOrId: GeometricElementProps | Id64String, data?: ElementGeometryBuilderParams): Promise<void>;\r\n\r\n /** Request geometry from an existing element. Because a GeometryStream can be large and may contain information\r\n * that is not always useful to frontend code, filter options are provided to restrict what GeometryStreams are returned.\r\n * For example, a tool may only be interested in a GeometryStream that stores a single CurveCollection.\r\n * @param id Element id of an existing [GeometricElement]($backend) or [GeometryPart]($backend).\r\n * @param filter Optional criteria for accepting a GeometryStream.\r\n * @see [GeometryStream]($docs/learning/common/geometrystream.md), [ElementGeometry]($common)\r\n * @throws [[IModelError]] if unable to query the element\r\n */\r\n requestElementGeometry(id: Id64String, filter?: FlatBufferGeometryFilter): Promise<ElementGeometryInfo | undefined>;\r\n\r\n /** Update the project extents for the iModel.\r\n * @param extents New project extents.\r\n * @throws [[IModelError]] if unable to aquire schema lock or update the extents property.\r\n */\r\n updateProjectExtents(extents: Range3dProps): Promise<void>;\r\n\r\n /** Update the position of the iModel on the earth.\r\n * @param ecefLocation New ecef location properties.\r\n * @throws [[IModelError]] if unable to aquire schema lock or update the ecef location property.\r\n * @note Clears the geographic coordinate reference system of the iModel, do not call when a valid GCS exists.\r\n */\r\n updateEcefLocation(ecefLocation: EcefLocationProps): Promise<void>;\r\n}\r\n"]}
1
+ {"version":3,"file":"EditorBuiltInIpc.js","sourceRoot":"","sources":["../../src/EditorBuiltInIpc.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAOH;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,oBAAoB,EAAE,mBAAmB;CAC1C,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Editing\r\n */\r\n\r\nimport { CompressedId64Set, Id64String, IModelStatus } from \"@itwin/core-bentley\";\r\nimport { Matrix3dProps, Range3dProps, TransformProps } from \"@itwin/core-geometry\";\r\nimport { EcefLocationProps, ElementGeometryBuilderParams, ElementGeometryInfo, ElementGeometryOpcode, GeometricElementProps, GeometryPartProps } from \"@itwin/core-common\";\r\nimport { EditCommandIpc } from \"./EditorIpc\";\r\n\r\n/** Command ids for built in EditCommandIpc classes.\r\n * @beta\r\n */\r\nexport const editorBuiltInCmdIds = {\r\n cmdBasicManipulation: \"basicManipulation\",\r\n};\r\n\r\n/** Optional criteria for requesting a GeometryStream from the backend.\r\n * @beta\r\n */\r\nexport interface FlatBufferGeometryFilter {\r\n /** Optional limit on number of displayable entries to accept */\r\n maxDisplayable?: number;\r\n /** Optional array of displayable opCodes to accept */\r\n accept?: ElementGeometryOpcode[];\r\n /** Optional array of displayable opCodes to reject */\r\n reject?: ElementGeometryOpcode[];\r\n /** Optional geometry type filter\r\n * curves - true to accept single curves and paths\r\n * surfaces - true to accept loops, planar regions, open polyfaces, and sheet bodies\r\n * solids - true to accept capped solids, closed polyfaces, and solid bodies\r\n */\r\n geometry?: { curves: boolean, surfaces: boolean, solids: boolean };\r\n}\r\n\r\n/** Interface for a backend EditCommand command that provides basic creation and modification operations.\r\n * @beta\r\n */\r\nexport interface BasicManipulationCommandIpc extends EditCommandIpc {\r\n addAllowedChannel(channelKey: string): Promise<void>;\r\n removeAllowedChannel(channelKey: string): Promise<void>;\r\n deleteElements(ids: CompressedId64Set): Promise<IModelStatus>;\r\n transformPlacement(ids: CompressedId64Set, transform: TransformProps): Promise<IModelStatus>;\r\n rotatePlacement(ids: CompressedId64Set, matrix: Matrix3dProps, aboutCenter: boolean): Promise<IModelStatus>;\r\n\r\n /** Create and insert a new geometric element.\r\n * @param props Properties for the new [GeometricElement]($backend)\r\n * @see [GeometryStream]($docs/learning/common/geometrystream.md), [ElementGeometry]($common)\r\n * @throws [[IModelError]] if unable to insert the element\r\n */\r\n insertGeometricElement(props: GeometricElementProps): Promise<Id64String>;\r\n\r\n /** Create and insert a new geometry part element.\r\n * @param props Properties for the new [GeometryPart]($backend)\r\n * @see [GeometryStream]($docs/learning/common/geometrystream.md), [ElementGeometry]($common)\r\n * @throws [[IModelError]] if unable to insert the element\r\n */\r\n insertGeometryPart(props: GeometryPartProps): Promise<Id64String>;\r\n\r\n /** Update an existing geometric element.\r\n * @param propsOrId Properties or element id to update for an existing [GeometricElement]($backend)\r\n * @param data Optional binary format GeometryStream representation used in lieu of [[GeometricElementProps.geom]] or [[GeometricElementProps.elementGeometryBuilderParams]].\r\n * @see [GeometryStream]($docs/learning/common/geometrystream.md), [ElementGeometry]($common)\r\n * @throws [[IModelError]] if unable to update the element\r\n */\r\n updateGeometricElement(propsOrId: GeometricElementProps | Id64String, data?: ElementGeometryBuilderParams): Promise<void>;\r\n\r\n /** Request geometry from an existing element. Because a GeometryStream can be large and may contain information\r\n * that is not always useful to frontend code, filter options are provided to restrict what GeometryStreams are returned.\r\n * For example, a tool may only be interested in a GeometryStream that stores a single CurveCollection.\r\n * @param id Element id of an existing [GeometricElement]($backend) or [GeometryPart]($backend).\r\n * @param filter Optional criteria for accepting a GeometryStream.\r\n * @see [GeometryStream]($docs/learning/common/geometrystream.md), [ElementGeometry]($common)\r\n * @throws [[IModelError]] if unable to query the element\r\n */\r\n requestElementGeometry(id: Id64String, filter?: FlatBufferGeometryFilter): Promise<ElementGeometryInfo | undefined>;\r\n\r\n /** Update the project extents for the iModel.\r\n * @param extents New project extents.\r\n * @throws [[IModelError]] if unable to aquire schema lock or update the extents property.\r\n */\r\n updateProjectExtents(extents: Range3dProps): Promise<void>;\r\n\r\n /** Update the position of the iModel on the earth.\r\n * @param ecefLocation New ecef location properties.\r\n * @throws [[IModelError]] if unable to aquire schema lock or update the ecef location property.\r\n * @note Clears the geographic coordinate reference system of the iModel, do not call when a valid GCS exists.\r\n */\r\n updateEcefLocation(ecefLocation: EcefLocationProps): Promise<void>;\r\n}\r\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itwin/editor-common",
3
- "version": "4.6.0-dev.3",
3
+ "version": "4.6.0-dev.6",
4
4
  "description": "iTwin.js editing properties common to frontend and backend",
5
5
  "main": "lib/cjs/editor-common.js",
6
6
  "module": "lib/esm/editor-common.js",
@@ -23,9 +23,9 @@
23
23
  "url": "http://www.bentley.com"
24
24
  },
25
25
  "peerDependencies": {
26
- "@itwin/core-bentley": "^4.6.0-dev.3",
27
- "@itwin/core-geometry": "^4.6.0-dev.3",
28
- "@itwin/core-common": "^4.6.0-dev.3"
26
+ "@itwin/core-bentley": "^4.6.0-dev.6",
27
+ "@itwin/core-geometry": "^4.6.0-dev.6",
28
+ "@itwin/core-common": "^4.6.0-dev.6"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@itwin/eslint-plugin": "4.0.0-dev.44",
@@ -36,10 +36,10 @@
36
36
  "mocha": "^10.2.0",
37
37
  "rimraf": "^3.0.2",
38
38
  "typescript": "~5.0.2",
39
- "@itwin/core-bentley": "4.6.0-dev.3",
40
- "@itwin/build-tools": "4.6.0-dev.3",
41
- "@itwin/core-common": "4.6.0-dev.3",
42
- "@itwin/core-geometry": "4.6.0-dev.3"
39
+ "@itwin/core-bentley": "4.6.0-dev.6",
40
+ "@itwin/build-tools": "4.6.0-dev.6",
41
+ "@itwin/core-common": "4.6.0-dev.6",
42
+ "@itwin/core-geometry": "4.6.0-dev.6"
43
43
  },
44
44
  "scripts": {
45
45
  "build": "npm run -s build:cjs && npm run -s build:esm",