@itwin/core-common 3.5.0-dev.8 → 3.6.0-dev.3
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 +75 -1
- package/lib/cjs/BackendTypes.d.ts +13 -0
- package/lib/cjs/BackendTypes.d.ts.map +1 -0
- package/lib/cjs/BackendTypes.js +10 -0
- package/lib/cjs/BackendTypes.js.map +1 -0
- package/lib/cjs/Base64EncodedString.d.ts +2 -0
- package/lib/cjs/Base64EncodedString.d.ts.map +1 -1
- package/lib/cjs/Base64EncodedString.js +10 -0
- package/lib/cjs/Base64EncodedString.js.map +1 -1
- package/lib/cjs/ChangedElements.d.ts +3 -1
- package/lib/cjs/ChangedElements.d.ts.map +1 -1
- package/lib/cjs/ChangedElements.js +2 -0
- package/lib/cjs/ChangedElements.js.map +1 -1
- package/lib/cjs/ConcurrentQuery.d.ts +181 -1
- package/lib/cjs/ConcurrentQuery.d.ts.map +1 -1
- package/lib/cjs/ConcurrentQuery.js +175 -3
- package/lib/cjs/ConcurrentQuery.js.map +1 -1
- package/lib/cjs/ElementMesh.d.ts +40 -0
- package/lib/cjs/ElementMesh.d.ts.map +1 -0
- package/lib/cjs/ElementMesh.js +57 -0
- package/lib/cjs/ElementMesh.js.map +1 -0
- package/lib/cjs/ElementProps.d.ts +4 -1
- package/lib/cjs/ElementProps.d.ts.map +1 -1
- package/lib/cjs/ElementProps.js.map +1 -1
- package/lib/cjs/EntityReference.d.ts +52 -0
- package/lib/cjs/EntityReference.d.ts.map +1 -0
- package/lib/cjs/EntityReference.js +57 -0
- package/lib/cjs/EntityReference.js.map +1 -0
- package/lib/cjs/IpcAppProps.d.ts +18 -1
- package/lib/cjs/IpcAppProps.d.ts.map +1 -1
- package/lib/cjs/IpcAppProps.js +6 -1
- package/lib/cjs/IpcAppProps.js.map +1 -1
- package/lib/cjs/Localization.d.ts +2 -0
- package/lib/cjs/Localization.d.ts.map +1 -1
- package/lib/cjs/Localization.js.map +1 -1
- package/lib/cjs/ModelProps.d.ts +1 -0
- package/lib/cjs/ModelProps.d.ts.map +1 -1
- package/lib/cjs/ModelProps.js.map +1 -1
- package/lib/cjs/RenderSchedule.d.ts +12 -9
- package/lib/cjs/RenderSchedule.d.ts.map +1 -1
- package/lib/cjs/RenderSchedule.js +11 -9
- package/lib/cjs/RenderSchedule.js.map +1 -1
- package/lib/cjs/TextureMapping.d.ts +17 -2
- package/lib/cjs/TextureMapping.d.ts.map +1 -1
- package/lib/cjs/TextureMapping.js.map +1 -1
- package/lib/cjs/ViewDetails.d.ts.map +1 -1
- package/lib/cjs/ViewDetails.js +10 -2
- package/lib/cjs/ViewDetails.js.map +1 -1
- package/lib/cjs/core-common.d.ts +4 -0
- package/lib/cjs/core-common.d.ts.map +1 -1
- package/lib/cjs/core-common.js +4 -0
- package/lib/cjs/core-common.js.map +1 -1
- package/lib/cjs/ipc/IpcWebSocketTransport.d.ts.map +1 -1
- package/lib/cjs/ipc/IpcWebSocketTransport.js +5 -3
- package/lib/cjs/ipc/IpcWebSocketTransport.js.map +1 -1
- package/lib/cjs/rpc/IModelReadRpcInterface.d.ts +25 -1
- package/lib/cjs/rpc/IModelReadRpcInterface.d.ts.map +1 -1
- package/lib/cjs/rpc/IModelReadRpcInterface.js +8 -1
- package/lib/cjs/rpc/IModelReadRpcInterface.js.map +1 -1
- package/lib/cjs/rpc/core/RpcConfiguration.d.ts.map +1 -1
- package/lib/cjs/rpc/core/RpcConfiguration.js +0 -1
- package/lib/cjs/rpc/core/RpcConfiguration.js.map +1 -1
- package/lib/cjs/rpc/core/RpcControl.d.ts +2 -0
- package/lib/cjs/rpc/core/RpcControl.d.ts.map +1 -1
- package/lib/cjs/rpc/core/RpcControl.js +13 -18
- package/lib/cjs/rpc/core/RpcControl.js.map +1 -1
- package/lib/cjs/rpc/core/RpcInvocation.d.ts.map +1 -1
- package/lib/cjs/rpc/core/RpcInvocation.js +1 -0
- package/lib/cjs/rpc/core/RpcInvocation.js.map +1 -1
- package/lib/cjs/rpc/core/RpcMarshaling.d.ts +2 -3
- package/lib/cjs/rpc/core/RpcMarshaling.d.ts.map +1 -1
- package/lib/cjs/rpc/core/RpcMarshaling.js +5 -2
- package/lib/cjs/rpc/core/RpcMarshaling.js.map +1 -1
- package/lib/cjs/rpc/web/RpcMultipart.d.ts +11 -7
- package/lib/cjs/rpc/web/RpcMultipart.d.ts.map +1 -1
- package/lib/cjs/rpc/web/RpcMultipart.js +17 -12
- package/lib/cjs/rpc/web/RpcMultipart.js.map +1 -1
- package/lib/cjs/rpc/web/WebAppRpcLogging.d.ts +19 -8
- package/lib/cjs/rpc/web/WebAppRpcLogging.d.ts.map +1 -1
- package/lib/cjs/rpc/web/WebAppRpcLogging.js +62 -63
- package/lib/cjs/rpc/web/WebAppRpcLogging.js.map +1 -1
- package/lib/cjs/rpc/web/WebAppRpcProtocol.d.ts +4 -3
- package/lib/cjs/rpc/web/WebAppRpcProtocol.d.ts.map +1 -1
- package/lib/cjs/rpc/web/WebAppRpcProtocol.js.map +1 -1
- package/lib/cjs/rpc/web/WebAppRpcRequest.d.ts +6 -10
- package/lib/cjs/rpc/web/WebAppRpcRequest.d.ts.map +1 -1
- package/lib/cjs/rpc/web/WebAppRpcRequest.js +14 -149
- package/lib/cjs/rpc/web/WebAppRpcRequest.js.map +1 -1
- package/lib/cjs/rpc/web/multipart/RpcMultipartParser.d.ts +2 -3
- package/lib/cjs/rpc/web/multipart/RpcMultipartParser.d.ts.map +1 -1
- package/lib/cjs/rpc/web/multipart/RpcMultipartParser.js +34 -21
- package/lib/cjs/rpc/web/multipart/RpcMultipartParser.js.map +1 -1
- package/lib/cjs/tile/ElementGraphics.d.ts +13 -2
- package/lib/cjs/tile/ElementGraphics.d.ts.map +1 -1
- package/lib/cjs/tile/ElementGraphics.js.map +1 -1
- package/lib/esm/BackendTypes.d.ts +13 -0
- package/lib/esm/BackendTypes.d.ts.map +1 -0
- package/lib/esm/BackendTypes.js +9 -0
- package/lib/esm/BackendTypes.js.map +1 -0
- package/lib/esm/Base64EncodedString.d.ts +2 -0
- package/lib/esm/Base64EncodedString.d.ts.map +1 -1
- package/lib/esm/Base64EncodedString.js +10 -0
- package/lib/esm/Base64EncodedString.js.map +1 -1
- package/lib/esm/ChangedElements.d.ts +3 -1
- package/lib/esm/ChangedElements.d.ts.map +1 -1
- package/lib/esm/ChangedElements.js +2 -0
- package/lib/esm/ChangedElements.js.map +1 -1
- package/lib/esm/ConcurrentQuery.d.ts +181 -1
- package/lib/esm/ConcurrentQuery.d.ts.map +1 -1
- package/lib/esm/ConcurrentQuery.js +175 -3
- package/lib/esm/ConcurrentQuery.js.map +1 -1
- package/lib/esm/ElementMesh.d.ts +40 -0
- package/lib/esm/ElementMesh.d.ts.map +1 -0
- package/lib/esm/ElementMesh.js +53 -0
- package/lib/esm/ElementMesh.js.map +1 -0
- package/lib/esm/ElementProps.d.ts +4 -1
- package/lib/esm/ElementProps.d.ts.map +1 -1
- package/lib/esm/ElementProps.js.map +1 -1
- package/lib/esm/EntityReference.d.ts +52 -0
- package/lib/esm/EntityReference.d.ts.map +1 -0
- package/lib/esm/EntityReference.js +53 -0
- package/lib/esm/EntityReference.js.map +1 -0
- package/lib/esm/IpcAppProps.d.ts +18 -1
- package/lib/esm/IpcAppProps.d.ts.map +1 -1
- package/lib/esm/IpcAppProps.js +4 -0
- package/lib/esm/IpcAppProps.js.map +1 -1
- package/lib/esm/Localization.d.ts +2 -0
- package/lib/esm/Localization.d.ts.map +1 -1
- package/lib/esm/Localization.js.map +1 -1
- package/lib/esm/ModelProps.d.ts +1 -0
- package/lib/esm/ModelProps.d.ts.map +1 -1
- package/lib/esm/ModelProps.js.map +1 -1
- package/lib/esm/RenderSchedule.d.ts +12 -9
- package/lib/esm/RenderSchedule.d.ts.map +1 -1
- package/lib/esm/RenderSchedule.js +11 -9
- package/lib/esm/RenderSchedule.js.map +1 -1
- package/lib/esm/TextureMapping.d.ts +17 -2
- package/lib/esm/TextureMapping.d.ts.map +1 -1
- package/lib/esm/TextureMapping.js.map +1 -1
- package/lib/esm/ViewDetails.d.ts.map +1 -1
- package/lib/esm/ViewDetails.js +11 -3
- package/lib/esm/ViewDetails.js.map +1 -1
- package/lib/esm/core-common.d.ts +4 -0
- package/lib/esm/core-common.d.ts.map +1 -1
- package/lib/esm/core-common.js +4 -0
- package/lib/esm/core-common.js.map +1 -1
- package/lib/esm/ipc/IpcWebSocketTransport.d.ts.map +1 -1
- package/lib/esm/ipc/IpcWebSocketTransport.js +5 -3
- package/lib/esm/ipc/IpcWebSocketTransport.js.map +1 -1
- package/lib/esm/rpc/IModelReadRpcInterface.d.ts +25 -1
- package/lib/esm/rpc/IModelReadRpcInterface.d.ts.map +1 -1
- package/lib/esm/rpc/IModelReadRpcInterface.js +8 -1
- package/lib/esm/rpc/IModelReadRpcInterface.js.map +1 -1
- package/lib/esm/rpc/core/RpcConfiguration.d.ts.map +1 -1
- package/lib/esm/rpc/core/RpcConfiguration.js +0 -1
- package/lib/esm/rpc/core/RpcConfiguration.js.map +1 -1
- package/lib/esm/rpc/core/RpcControl.d.ts +2 -0
- package/lib/esm/rpc/core/RpcControl.d.ts.map +1 -1
- package/lib/esm/rpc/core/RpcControl.js +13 -18
- package/lib/esm/rpc/core/RpcControl.js.map +1 -1
- package/lib/esm/rpc/core/RpcInvocation.d.ts.map +1 -1
- package/lib/esm/rpc/core/RpcInvocation.js +2 -1
- package/lib/esm/rpc/core/RpcInvocation.js.map +1 -1
- package/lib/esm/rpc/core/RpcMarshaling.d.ts +2 -3
- package/lib/esm/rpc/core/RpcMarshaling.d.ts.map +1 -1
- package/lib/esm/rpc/core/RpcMarshaling.js +5 -2
- package/lib/esm/rpc/core/RpcMarshaling.js.map +1 -1
- package/lib/esm/rpc/web/RpcMultipart.d.ts +11 -7
- package/lib/esm/rpc/web/RpcMultipart.d.ts.map +1 -1
- package/lib/esm/rpc/web/RpcMultipart.js +17 -12
- package/lib/esm/rpc/web/RpcMultipart.js.map +1 -1
- package/lib/esm/rpc/web/WebAppRpcLogging.d.ts +19 -8
- package/lib/esm/rpc/web/WebAppRpcLogging.d.ts.map +1 -1
- package/lib/esm/rpc/web/WebAppRpcLogging.js +62 -63
- package/lib/esm/rpc/web/WebAppRpcLogging.js.map +1 -1
- package/lib/esm/rpc/web/WebAppRpcProtocol.d.ts +4 -3
- package/lib/esm/rpc/web/WebAppRpcProtocol.d.ts.map +1 -1
- package/lib/esm/rpc/web/WebAppRpcProtocol.js.map +1 -1
- package/lib/esm/rpc/web/WebAppRpcRequest.d.ts +6 -10
- package/lib/esm/rpc/web/WebAppRpcRequest.d.ts.map +1 -1
- package/lib/esm/rpc/web/WebAppRpcRequest.js +15 -150
- package/lib/esm/rpc/web/WebAppRpcRequest.js.map +1 -1
- package/lib/esm/rpc/web/multipart/RpcMultipartParser.d.ts +2 -3
- package/lib/esm/rpc/web/multipart/RpcMultipartParser.d.ts.map +1 -1
- package/lib/esm/rpc/web/multipart/RpcMultipartParser.js +34 -21
- package/lib/esm/rpc/web/multipart/RpcMultipartParser.js.map +1 -1
- package/lib/esm/tile/ElementGraphics.d.ts +13 -2
- package/lib/esm/tile/ElementGraphics.d.ts.map +1 -1
- package/lib/esm/tile/ElementGraphics.js.map +1 -1
- package/package.json +8 -10
|
@@ -47,10 +47,21 @@ export interface GraphicsRequestProps {
|
|
|
47
47
|
* @see [ClipVector.toCompactString]($core-geometry) to produce the string representation.
|
|
48
48
|
*/
|
|
49
49
|
readonly sectionCut?: string;
|
|
50
|
-
/** If true, vertex positions will be quantized to [[QPoint3d]]s to conserve space
|
|
51
|
-
* perceptible inaccuracies when producing graphics for large and/or highly-detailed elements.
|
|
50
|
+
/** If true, vertex positions will be quantized to [[QPoint3d]]s to conserve space; otherwise, vertex positions will use 32-bit float precision.
|
|
51
|
+
* Quantization may produce perceptible inaccuracies when producing graphics for large and/or highly-detailed elements. It is not generally recommended.
|
|
52
|
+
* Note that 32-bit precision is also susceptible to inaccuracies, to a lesser extent; see [[useAbsolutePositions]] to mitigate them.
|
|
53
|
+
* Default: false.
|
|
52
54
|
*/
|
|
53
55
|
quantizePositions?: boolean;
|
|
56
|
+
/** Determines whether unquantized positions are specified in relative or absolute coordinates.
|
|
57
|
+
* Coordinates very far from the origin can produce precision errors resulting in visual artifacts. If `useAbsolutePositions` is `false`, then
|
|
58
|
+
* these precision errors are mitigated by applying a translation to the vertex positions to move them closer to the origin, and then applying the inverse
|
|
59
|
+
* translation (using 64-bit precision) when drawing the graphics.
|
|
60
|
+
* Using absolute positions is not generally recommended.
|
|
61
|
+
* Default: false.
|
|
62
|
+
* @note This property has no effect if [[quantizePositions]] is `true`.
|
|
63
|
+
*/
|
|
64
|
+
useAbsolutePositions?: boolean;
|
|
54
65
|
}
|
|
55
66
|
/** Wire format describing a request to produce graphics in "iMdl" format for a single element.
|
|
56
67
|
* @see [[ElementGraphicsRequestProps]] for more details.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ElementGraphics.d.ts","sourceRoot":"","sources":["../../../src/tile/ElementGraphics.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACrE,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAE/D;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACnC,yGAAyG;IACzG,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,+IAA+I;IAC/I,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC;;;OAGG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC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AQ,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC;IAChC;;;OAGG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,UAAU,CAAC;CAC/B;AAED;;;;GAIG;AACH,MAAM,WAAW,6BAA8B,SAAQ,2BAA2B;IAChF,oCAAoC;IACpC,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC;IACpB,+CAA+C;IAC/C,QAAQ,CAAC,SAAS,EAAE,IAAI,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAC;CACpD;AAED;;;;GAIG;AACH,MAAM,WAAW,6BAA8B,SAAQ,2BAA2B;IAChF,oCAAoC;IACpC,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC;IACpB,+CAA+C;IAC/C,QAAQ,CAAC,SAAS,EAAE,IAAI,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAC;CACpD;AAED;;;;;;GAMG;AACH,oBAAY,2BAA2B,GAAG,8BAA8B,GAAG,6BAA6B,GAAG,6BAA6B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ElementGraphics.js","sourceRoot":"","sources":["../../../src/tile/ElementGraphics.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG","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 Tile\r\n */\r\n\r\nimport { Id64String } from \"@itwin/core-bentley\";\r\nimport { TransformProps } from \"@itwin/core-geometry\";\r\nimport { Placement2dProps, Placement3dProps } from \"../ElementProps\";\r\nimport { ElementGeometryDataEntry } from \"../geometry/ElementGeometry\";\r\nimport { GeometryStreamProps } from \"../geometry/GeometryStream\";\r\nimport { ContentFlags, TreeFlags } from \"../tile/TileMetadata\";\r\n\r\n/** Wire format describing properties common to [[PersistentGraphicsRequestProps]] and [[DynamicGraphicsRequestProps]].\r\n * @see [[ElementGraphicsRequestProps]] for more details.\r\n * @public\r\n * @extensions\r\n */\r\nexport interface GraphicsRequestProps {\r\n /** Uniquely identifies this request among all [[ElementGraphicsRequestProps]] for a given [[IModel]]. */\r\n readonly id: string;\r\n /** Log10 of the chord tolerance with which to stroke the element's geometry. e.g., for a chord tolerance of 0.01 (10^-2) meters, supply -2. */\r\n readonly toleranceLog10: number;\r\n /** The major version of the \"iMdl\" format to use when producing the iMdl representation of the element's geometry.\r\n * If omitted, the most recent version known to the backend will be used.\r\n * @alpha\r\n */\r\n readonly formatVersion?: number;\r\n /** Optional flags. [[TreeFlags.UseProjectExtents]] has no effect. [[TreeFlags.EnforceDisplayPriority]] is not yet implemented. @alpha */\r\n readonly treeFlags?: TreeFlags;\r\n /** Optional flags. [[ContentFlags.ImprovedElision]] has no effect. @alpha */\r\n readonly contentFlags?: ContentFlags;\r\n /** Transform from element graphics to world coordinates. Defaults to identity. */\r\n readonly location?: TransformProps;\r\n /** If true, surface edges will be omitted from the graphics. */\r\n readonly omitEdges?: boolean;\r\n /** If omitEdges is false, specifies the type of edges to produce. Generally determined by TileAdmin.requestElementGraphics.\r\n * @note This uses the deleted EdgeType enum where 1 indicates non-indexed edges and 2 indicates indexed edges, to avoid breaking the RPC API.\r\n * @internal\r\n */\r\n readonly edgeType?: 1 | 2;\r\n /** If true, and omitEdges is false, a polyface with no edge visibility info will display edges for all faces;\r\n * if false, edges will be inferred from the polyface's topology.\r\n * @internal\r\n */\r\n readonly smoothPolyfaceEdges?: boolean;\r\n /** If true, the element's graphics will be clipped against the iModel's project extents. */\r\n readonly clipToProjectExtents?: boolean;\r\n /** If defined, the compact string representation of a [ClipVector]($core-geometry) to be applied to the geometry to produce section-cut\r\n * geometry at the intersections with the clip planes. Any geometry *not* intersecting the clip planes is omitted from the tiles.\r\n * @see [ClipVector.toCompactString]($core-geometry) to produce the string representation.\r\n */\r\n readonly sectionCut?: string;\r\n /** If true, vertex positions will be quantized to [[QPoint3d]]s to conserve space
|
|
1
|
+
{"version":3,"file":"ElementGraphics.js","sourceRoot":"","sources":["../../../src/tile/ElementGraphics.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG","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 Tile\r\n */\r\n\r\nimport { Id64String } from \"@itwin/core-bentley\";\r\nimport { TransformProps } from \"@itwin/core-geometry\";\r\nimport { Placement2dProps, Placement3dProps } from \"../ElementProps\";\r\nimport { ElementGeometryDataEntry } from \"../geometry/ElementGeometry\";\r\nimport { GeometryStreamProps } from \"../geometry/GeometryStream\";\r\nimport { ContentFlags, TreeFlags } from \"../tile/TileMetadata\";\r\n\r\n/** Wire format describing properties common to [[PersistentGraphicsRequestProps]] and [[DynamicGraphicsRequestProps]].\r\n * @see [[ElementGraphicsRequestProps]] for more details.\r\n * @public\r\n * @extensions\r\n */\r\nexport interface GraphicsRequestProps {\r\n /** Uniquely identifies this request among all [[ElementGraphicsRequestProps]] for a given [[IModel]]. */\r\n readonly id: string;\r\n /** Log10 of the chord tolerance with which to stroke the element's geometry. e.g., for a chord tolerance of 0.01 (10^-2) meters, supply -2. */\r\n readonly toleranceLog10: number;\r\n /** The major version of the \"iMdl\" format to use when producing the iMdl representation of the element's geometry.\r\n * If omitted, the most recent version known to the backend will be used.\r\n * @alpha\r\n */\r\n readonly formatVersion?: number;\r\n /** Optional flags. [[TreeFlags.UseProjectExtents]] has no effect. [[TreeFlags.EnforceDisplayPriority]] is not yet implemented. @alpha */\r\n readonly treeFlags?: TreeFlags;\r\n /** Optional flags. [[ContentFlags.ImprovedElision]] has no effect. @alpha */\r\n readonly contentFlags?: ContentFlags;\r\n /** Transform from element graphics to world coordinates. Defaults to identity. */\r\n readonly location?: TransformProps;\r\n /** If true, surface edges will be omitted from the graphics. */\r\n readonly omitEdges?: boolean;\r\n /** If omitEdges is false, specifies the type of edges to produce. Generally determined by TileAdmin.requestElementGraphics.\r\n * @note This uses the deleted EdgeType enum where 1 indicates non-indexed edges and 2 indicates indexed edges, to avoid breaking the RPC API.\r\n * @internal\r\n */\r\n readonly edgeType?: 1 | 2;\r\n /** If true, and omitEdges is false, a polyface with no edge visibility info will display edges for all faces;\r\n * if false, edges will be inferred from the polyface's topology.\r\n * @internal\r\n */\r\n readonly smoothPolyfaceEdges?: boolean;\r\n /** If true, the element's graphics will be clipped against the iModel's project extents. */\r\n readonly clipToProjectExtents?: boolean;\r\n /** If defined, the compact string representation of a [ClipVector]($core-geometry) to be applied to the geometry to produce section-cut\r\n * geometry at the intersections with the clip planes. Any geometry *not* intersecting the clip planes is omitted from the tiles.\r\n * @see [ClipVector.toCompactString]($core-geometry) to produce the string representation.\r\n */\r\n readonly sectionCut?: string;\r\n /** If true, vertex positions will be quantized to [[QPoint3d]]s to conserve space; otherwise, vertex positions will use 32-bit float precision.\r\n * Quantization may produce perceptible inaccuracies when producing graphics for large and/or highly-detailed elements. It is not generally recommended.\r\n * Note that 32-bit precision is also susceptible to inaccuracies, to a lesser extent; see [[useAbsolutePositions]] to mitigate them.\r\n * Default: false.\r\n */\r\n quantizePositions?: boolean;\r\n /** Determines whether unquantized positions are specified in relative or absolute coordinates.\r\n * Coordinates very far from the origin can produce precision errors resulting in visual artifacts. If `useAbsolutePositions` is `false`, then\r\n * these precision errors are mitigated by applying a translation to the vertex positions to move them closer to the origin, and then applying the inverse\r\n * translation (using 64-bit precision) when drawing the graphics.\r\n * Using absolute positions is not generally recommended.\r\n * Default: false.\r\n * @note This property has no effect if [[quantizePositions]] is `true`.\r\n */\r\n useAbsolutePositions?: boolean;\r\n}\r\n\r\n/** Wire format describing a request to produce graphics in \"iMdl\" format for a single element.\r\n * @see [[ElementGraphicsRequestProps]] for more details.\r\n * @public\r\n * @extensions\r\n */\r\nexport interface PersistentGraphicsRequestProps extends GraphicsRequestProps {\r\n /** The element whose geometry is to be used to generate the graphics. */\r\n readonly elementId: Id64String;\r\n}\r\n\r\n/** As part of a [[DynamicGraphicsRequestProps]], specifies the geometry from which to generate the graphics in JSON format.\r\n * @public\r\n * @extensions\r\n */\r\nexport interface JsonGeometryStream {\r\n /** Discriminator for [[DynamicGraphicsRequestProps.geometry]]. */\r\n format: \"json\";\r\n /** The geometry stream in JSON format. */\r\n data: GeometryStreamProps;\r\n}\r\n\r\n/** As part of a [[DynamicGraphicsRequestProps]], specifies the geometry from which to generate the graphics in binary flatbuffer-encoded format.\r\n * @public\r\n * @extensions\r\n */\r\nexport interface FlatBufferGeometryStream {\r\n /** Discriminator for [[DynamicGraphicsRequestProps.geometry]]. */\r\n format: \"flatbuffer\";\r\n /** The geometry stream in flatbuffer format. */\r\n data: ElementGeometryDataEntry[];\r\n}\r\n\r\n/** Wire format describing a request to produce graphics in \"iMdl\" format for a single geometry stream.\r\n * @see [[DynamicGraphicsRequest2dProps]] and [[DynamicGraphicsRequest3dProps]].\r\n * @see [[ElementGraphicsRequestProps]] for more details.\r\n * @public\r\n * @extensions\r\n */\r\nexport interface DynamicGraphicsRequestProps extends GraphicsRequestProps {\r\n /** The geometry from which to generate the graphics. */\r\n readonly geometry: JsonGeometryStream | FlatBufferGeometryStream;\r\n /** The category to which the geometry belongs. This is required to identify a persistent [SpatialCategory]($backend) for 3d geometry or\r\n * [DrawingCategory]($backend) for 2d geometry.\r\n */\r\n readonly categoryId: Id64String;\r\n /** If specified, tools will recognize the generated graphics as being associated with this element. */\r\n readonly elementId?: Id64String;\r\n /** If specified, tools will recognize the generated graphics as being associated with this model.\r\n * It should identify a 3d model for 3d geometry or a 2d model for 2d geometry.\r\n * It needn't identify a persistent model - it can be a transient Id.\r\n */\r\n readonly modelId?: Id64String;\r\n}\r\n\r\n/** Wire format describing a request to produce graphics in \"iMdl\" format for a 2d geometry stream.\r\n * @see [[ElementGraphicsRequestProps]] for more details.\r\n * @public\r\n * @extensions\r\n */\r\nexport interface DynamicGraphicsRequest2dProps extends DynamicGraphicsRequestProps {\r\n /** Specifies the geometry is 2d. */\r\n readonly type: \"2d\";\r\n /** The origin and rotation of the geometry. */\r\n readonly placement: Omit<Placement2dProps, \"bbox\">;\r\n}\r\n\r\n/** Wire format describing a request to produce graphics in \"iMdl\" format for a 3d geometry stream.\r\n * @see [[ElementGraphicsRequestProps]] for more details.\r\n * @public\r\n * @extensions\r\n */\r\nexport interface DynamicGraphicsRequest3dProps extends DynamicGraphicsRequestProps {\r\n /** Specifies the geometry is 3d. */\r\n readonly type: \"3d\";\r\n /** The origin and rotation of the geometry. */\r\n readonly placement: Omit<Placement3dProps, \"bbox\">;\r\n}\r\n\r\n/** Wire format describing a request to produce graphics in \"iMdl\" format for a single element or geometry stream.\r\n * @note Every request must have an `id` that is unique amongst all extant requests for a given [[IModel]].\r\n * @see [TileAdmin.requestElementGraphics]($frontend) and [IModelDb.generateElementGraphics]($backend) to fulfill such a request.\r\n * @see [readElementGraphics]($frontend) to convert the result of a request to a [RenderGraphic]($frontend) for display.\r\n * @public\r\n * @extensions\r\n */\r\nexport type ElementGraphicsRequestProps = PersistentGraphicsRequestProps | DynamicGraphicsRequest2dProps | DynamicGraphicsRequest3dProps;\r\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** @packageDocumentation
|
|
2
|
+
* @module Utils
|
|
3
|
+
*/
|
|
4
|
+
/// <reference types="node" />
|
|
5
|
+
import type { Readable, Writable } from "stream";
|
|
6
|
+
import type { Buffer } from "buffer";
|
|
7
|
+
/** @public @deprecated */
|
|
8
|
+
export declare type BackendReadable = Readable;
|
|
9
|
+
/** @public @deprecated */
|
|
10
|
+
export declare type BackendWritable = Writable;
|
|
11
|
+
/** @internal @deprecated */
|
|
12
|
+
export declare type BackendBuffer = Buffer;
|
|
13
|
+
//# sourceMappingURL=BackendTypes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BackendTypes.d.ts","sourceRoot":"","sources":["../../src/BackendTypes.ts"],"names":[],"mappings":"AAIA;;GAEG;;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AACjD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AASrC,0BAA0B;AAC1B,oBAAY,eAAe,GAAG,QAAQ,CAAC;AAEvC,0BAA0B;AAC1B,oBAAY,eAAe,GAAG,QAAQ,CAAC;AAEvC,4BAA4B;AAC5B,oBAAY,aAAa,GAAG,MAAM,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
/** @packageDocumentation
|
|
6
|
+
* @module Utils
|
|
7
|
+
*/
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=BackendTypes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BackendTypes.js","sourceRoot":"","sources":["../../src/BackendTypes.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG","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 Utils\r\n */\r\n\r\nimport type { Readable, Writable } from \"stream\"; // Must be \"import type\" to avoid webpack polyfill errors\r\nimport type { Buffer } from \"buffer\"; // Must be \"import type\" to avoid webpack polyfill errors\r\n\r\n/*\r\nIMPORTANT:\r\nThis is a temporary source file for backwards compatibility only.\r\nDo not add any new types to this file.\r\nAll types here will be removed in 4.0\r\n*/\r\n\r\n/** @public @deprecated */\r\nexport type BackendReadable = Readable;\r\n\r\n/** @public @deprecated */\r\nexport type BackendWritable = Writable;\r\n\r\n/** @internal @deprecated */\r\nexport type BackendBuffer = Buffer;\r\n"]}
|
|
@@ -27,5 +27,7 @@ export declare namespace Base64EncodedString {
|
|
|
27
27
|
const reviver: (_name: string, value: any) => any;
|
|
28
28
|
/** A function suitable for use with `JSON.stringify` to serialize a Uint8Array as a Base64EncodedString. */
|
|
29
29
|
const replacer: (_name: string, value: any) => any;
|
|
30
|
+
function encode(src: string, urlSafe?: boolean): Base64EncodedString;
|
|
31
|
+
function decode(src: string): Base64EncodedString;
|
|
30
32
|
}
|
|
31
33
|
//# sourceMappingURL=Base64EncodedString.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Base64EncodedString.d.ts","sourceRoot":"","sources":["../../src/Base64EncodedString.ts"],"names":[],"mappings":"AAIA;;GAEG;AAIH;;;;GAIG;AACH,oBAAY,mBAAmB,GAAG,MAAM,CAAC;AAEzC;;GAEG;AACH,yBAAiB,mBAAmB,CAAC;IACnC,4EAA4E;IACrE,MAAM,MAAM,qBAAqB,CAAC;IAEzC,2DAA2D;IAC3D,SAAgB,cAAc,CAAC,KAAK,EAAE,UAAU,GAAG,mBAAmB,CAErE;IAED,2DAA2D;IAC3D,SAAgB,YAAY,CAAC,MAAM,EAAE,mBAAmB,GAAG,UAAU,CAEpE;IAED,+HAA+H;IAC/H,SAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAE9C;IAED,6FAA6F;IAC7F,SAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,mBAAmB,CAEhE;IAED,4EAA4E;IAC5E,SAAgB,WAAW,CAAC,MAAM,EAAE,mBAAmB,GAAG,MAAM,CAE/D;IAED,uGAAuG;IAChG,MAAM,OAAO,UAAW,MAAM,SAAS,GAAG,KAAG,GAKnD,CAAC;IAEF,4GAA4G;IACrG,MAAM,QAAQ,UAAW,MAAM,SAAS,GAAG,KAAG,GAKpD,CAAC;
|
|
1
|
+
{"version":3,"file":"Base64EncodedString.d.ts","sourceRoot":"","sources":["../../src/Base64EncodedString.ts"],"names":[],"mappings":"AAIA;;GAEG;AAIH;;;;GAIG;AACH,oBAAY,mBAAmB,GAAG,MAAM,CAAC;AAEzC;;GAEG;AACH,yBAAiB,mBAAmB,CAAC;IACnC,4EAA4E;IACrE,MAAM,MAAM,qBAAqB,CAAC;IAEzC,2DAA2D;IAC3D,SAAgB,cAAc,CAAC,KAAK,EAAE,UAAU,GAAG,mBAAmB,CAErE;IAED,2DAA2D;IAC3D,SAAgB,YAAY,CAAC,MAAM,EAAE,mBAAmB,GAAG,UAAU,CAEpE;IAED,+HAA+H;IAC/H,SAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAE9C;IAED,6FAA6F;IAC7F,SAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,mBAAmB,CAEhE;IAED,4EAA4E;IAC5E,SAAgB,WAAW,CAAC,MAAM,EAAE,mBAAmB,GAAG,MAAM,CAE/D;IAED,uGAAuG;IAChG,MAAM,OAAO,UAAW,MAAM,SAAS,GAAG,KAAG,GAKnD,CAAC;IAEF,4GAA4G;IACrG,MAAM,QAAQ,UAAW,MAAM,SAAS,GAAG,KAAG,GAKpD,CAAC;IAGF,SAAgB,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,mBAAmB,CAE1E;IAGD,SAAgB,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,mBAAmB,CAEvD;CACF"}
|
|
@@ -50,5 +50,15 @@ export var Base64EncodedString;
|
|
|
50
50
|
value = fromUint8Array(value);
|
|
51
51
|
return value;
|
|
52
52
|
};
|
|
53
|
+
/* Encode a string into a Base64EncodedString. */
|
|
54
|
+
function encode(src, urlSafe) {
|
|
55
|
+
return Base64.encode(src, urlSafe);
|
|
56
|
+
}
|
|
57
|
+
Base64EncodedString.encode = encode;
|
|
58
|
+
/* Decode a Base64EncodedString into a string. */
|
|
59
|
+
function decode(src) {
|
|
60
|
+
return Base64.decode(src);
|
|
61
|
+
}
|
|
62
|
+
Base64EncodedString.decode = decode;
|
|
53
63
|
})(Base64EncodedString || (Base64EncodedString = {}));
|
|
54
64
|
//# sourceMappingURL=Base64EncodedString.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Base64EncodedString.js","sourceRoot":"","sources":["../../src/Base64EncodedString.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AASnC;;GAEG;AACH,MAAM,KAAW,mBAAmB,
|
|
1
|
+
{"version":3,"file":"Base64EncodedString.js","sourceRoot":"","sources":["../../src/Base64EncodedString.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AASnC;;GAEG;AACH,MAAM,KAAW,mBAAmB,CAsDnC;AAtDD,WAAiB,mBAAmB;IAClC,4EAA4E;IAC/D,0BAAM,GAAG,kBAAkB,CAAC;IAEzC,2DAA2D;IAC3D,SAAgB,cAAc,CAAC,KAAiB;QAC9C,OAAO,GAAG,oBAAA,MAAM,GAAG,MAAM,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,CAAC;IACpD,CAAC;IAFe,kCAAc,iBAE7B,CAAA;IAED,2DAA2D;IAC3D,SAAgB,YAAY,CAAC,MAA2B;QACtD,OAAO,MAAM,CAAC,YAAY,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC;IAClD,CAAC;IAFe,gCAAY,eAE3B,CAAA;IAED,+HAA+H;IAC/H,SAAgB,SAAS,CAAC,GAAW;QACnC,OAAO,GAAG,CAAC,UAAU,CAAC,oBAAA,MAAM,CAAC,CAAC;IAChC,CAAC;IAFe,6BAAS,YAExB,CAAA;IAED,6FAA6F;IAC7F,SAAgB,YAAY,CAAC,MAAc;QACzC,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,oBAAA,MAAM,GAAG,MAAM,EAAE,CAAC;IAC3D,CAAC;IAFe,gCAAY,eAE3B,CAAA;IAED,4EAA4E;IAC5E,SAAgB,WAAW,CAAC,MAA2B;QACrD,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,oBAAA,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;IACnE,CAAC;IAFe,+BAAW,cAE1B,CAAA;IAED,uGAAuG;IAC1F,2BAAO,GAAG,CAAC,KAAa,EAAE,KAAU,EAAO,EAAE;QACxD,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,SAAS,CAAC,KAAK,CAAC;YAC/C,KAAK,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC;QAE9B,OAAO,KAAK,CAAC;IACf,CAAC,CAAC;IAEF,4GAA4G;IAC/F,4BAAQ,GAAG,CAAC,KAAa,EAAE,KAAU,EAAO,EAAE;QACzD,IAAI,KAAK,IAAI,KAAK,CAAC,WAAW,KAAK,UAAU;YAC3C,KAAK,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;QAEhC,OAAO,KAAK,CAAC;IACf,CAAC,CAAC;IAEF,iDAAiD;IACjD,SAAgB,MAAM,CAAC,GAAW,EAAE,OAAiB;QACnD,OAAO,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;IACrC,CAAC;IAFe,0BAAM,SAErB,CAAA;IAED,iDAAiD;IACjD,SAAgB,MAAM,CAAC,GAAW;QAChC,OAAO,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IAC5B,CAAC;IAFe,0BAAM,SAErB,CAAA;AACH,CAAC,EAtDgB,mBAAmB,KAAnB,mBAAmB,QAsDnC","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 Entities\r\n */\r\n\r\nimport { Base64 } from \"js-base64\";\r\n\r\n/** Represents an array of bytes encoded in base-64 with a prefix indicating the encoding, as required when converting EC properties of `binary` type to and from JSON.\r\n * @see [[TextureProps.data]] and [[BRepEntity.DataProps.data]] for examples of properties of this type.\r\n * @public\r\n * @extensions\r\n */\r\nexport type Base64EncodedString = string;\r\n\r\n/** Represents an array of bytes encoded in base-64 with a prefix indicating the encoding, as persisted in an [ECDb]($backend) for properties of `binary` type.\r\n * @public\r\n */\r\nexport namespace Base64EncodedString { // eslint-disable-line @typescript-eslint/no-redeclare\r\n /** The prefix prepended to the string identifying it as base-64-encoded. */\r\n export const prefix = \"encoding=base64;\";\r\n\r\n /** Encode an array of bytes into a Base64EncodedString. */\r\n export function fromUint8Array(bytes: Uint8Array): Base64EncodedString {\r\n return `${prefix}${Base64.fromUint8Array(bytes)}`;\r\n }\r\n\r\n /** Decode a Base64EncodedString into an array of bytes. */\r\n export function toUint8Array(base64: Base64EncodedString): Uint8Array {\r\n return Base64.toUint8Array(stripPrefix(base64));\r\n }\r\n\r\n /** Returns true if the input starts with [[Base64EncodedString.prefix]] indicating it is a well-formed Base64EncodedString. */\r\n export function hasPrefix(str: string): boolean {\r\n return str.startsWith(prefix);\r\n }\r\n\r\n /** Ensure that the base-64-encoded string starts with the [[Base64EncodedString.prefix]]. */\r\n export function ensurePrefix(base64: string): Base64EncodedString {\r\n return hasPrefix(base64) ? base64 : `${prefix}${base64}`;\r\n }\r\n\r\n /** Remove the [[Base64EncodedString.prefix]] from the string if present. */\r\n export function stripPrefix(base64: Base64EncodedString): string {\r\n return hasPrefix(base64) ? base64.substr(prefix.length) : base64;\r\n }\r\n\r\n /** A function suitable for use with `JSON.parse` to revive a Base64EncodedString into a Uint8Array. */\r\n export const reviver = (_name: string, value: any): any => {\r\n if (typeof value === \"string\" && hasPrefix(value))\r\n value = toUint8Array(value);\r\n\r\n return value;\r\n };\r\n\r\n /** A function suitable for use with `JSON.stringify` to serialize a Uint8Array as a Base64EncodedString. */\r\n export const replacer = (_name: string, value: any): any => {\r\n if (value && value.constructor === Uint8Array)\r\n value = fromUint8Array(value);\r\n\r\n return value;\r\n };\r\n\r\n /* Encode a string into a Base64EncodedString. */\r\n export function encode(src: string, urlSafe?: boolean): Base64EncodedString {\r\n return Base64.encode(src, urlSafe);\r\n }\r\n\r\n /* Decode a Base64EncodedString into a string. */\r\n export function decode(src: string): Base64EncodedString {\r\n return Base64.decode(src);\r\n }\r\n}\r\n"]}
|
|
@@ -18,7 +18,9 @@ export declare enum TypeOfChange {
|
|
|
18
18
|
/** Indirect change occurred to this element by a related instance */
|
|
19
19
|
Indirect = 8,
|
|
20
20
|
/** Hidden properties of the element changed */
|
|
21
|
-
Hidden = 16
|
|
21
|
+
Hidden = 16,
|
|
22
|
+
/** The top-most parent of the element has changed */
|
|
23
|
+
Parent = 32
|
|
22
24
|
}
|
|
23
25
|
/** Changed elements found in a changeset or between a range of changesets.
|
|
24
26
|
* All arrays in this object will have the same number of items.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChangedElements.d.ts","sourceRoot":"","sources":["../../src/ChangedElements.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAI7D;;;GAGG;AACH,oBAAY,YAAY;IACtB,wCAAwC;IACxC,QAAQ,IAAM;IACd,oEAAoE;IACpE,QAAQ,IAAO;IACf,kEAAkE;IAClE,SAAS,IAAQ;IACjB,qEAAqE;IACrE,QAAQ,IAAS;IACjB,+CAA+C;IAC/C,MAAM,KAAU;
|
|
1
|
+
{"version":3,"file":"ChangedElements.d.ts","sourceRoot":"","sources":["../../src/ChangedElements.ts"],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 +15,7 @@ export var TypeOfChange;
|
|
|
15
15
|
TypeOfChange[TypeOfChange["Indirect"] = 8] = "Indirect";
|
|
16
16
|
/** Hidden properties of the element changed */
|
|
17
17
|
TypeOfChange[TypeOfChange["Hidden"] = 16] = "Hidden";
|
|
18
|
+
/** The top-most parent of the element has changed */
|
|
19
|
+
TypeOfChange[TypeOfChange["Parent"] = 32] = "Parent";
|
|
18
20
|
})(TypeOfChange || (TypeOfChange = {}));
|
|
19
21
|
//# sourceMappingURL=ChangedElements.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChangedElements.js","sourceRoot":"","sources":["../../src/ChangedElements.ts"],"names":[],"mappings":"AAWA,uBAAuB;AAEvB;;;GAGG;AACH,MAAM,CAAN,IAAY,
|
|
1
|
+
{"version":3,"file":"ChangedElements.js","sourceRoot":"","sources":["../../src/ChangedElements.ts"],"names":[],"mappings":"AAWA,uBAAuB;AAEvB;;;GAGG;AACH,MAAM,CAAN,IAAY,YAaX;AAbD,WAAY,YAAY;IACtB,wCAAwC;IACxC,uDAAc,CAAA;IACd,oEAAoE;IACpE,uDAAe,CAAA;IACf,kEAAkE;IAClE,yDAAiB,CAAA;IACjB,qEAAqE;IACrE,uDAAiB,CAAA;IACjB,+CAA+C;IAC/C,oDAAgB,CAAA;IAChB,qDAAqD;IACrD,oDAAiB,CAAA;AACnB,CAAC,EAbW,YAAY,KAAZ,YAAY,QAavB","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/**\r\n * @packageDocumentation\r\n * @module Entities\r\n */\r\nimport { DbOpcode, Id64String } from \"@itwin/core-bentley\";\r\nimport { AxisAlignedBox3dProps } from \"./geometry/Placement\";\r\n\r\n// cspell:ignore bboxes\r\n\r\n/** Bitflags describing which aspects of an [Element]($backend) changed as part of a [[ChangedElements]].\r\n * @public\r\n * @extensions\r\n */\r\nexport enum TypeOfChange {\r\n /** A property in the element changed */\r\n Property = 0b1,\r\n /** The geometry stream of a [GeometricElement]($backend) changed */\r\n Geometry = 0b10,\r\n /** The [[Placement]] of a [GeometricElement]($backend) changed */\r\n Placement = 0b100,\r\n /** Indirect change occurred to this element by a related instance */\r\n Indirect = 0b1000,\r\n /** Hidden properties of the element changed */\r\n Hidden = 0b10000,\r\n /** The top-most parent of the element has changed */\r\n Parent = 0b100000,\r\n}\r\n\r\n/** Changed elements found in a changeset or between a range of changesets.\r\n * All arrays in this object will have the same number of items.\r\n * Each index for those arrays refer to the same element, e.g. to get the class Id of\r\n * the element given by element Id changedElements.elements[index], you can use changedElements.classIds[index].\r\n * @public\r\n * @extensions\r\n */\r\nexport interface ChangedElements {\r\n /** Ids of elements that changed */\r\n elements: Id64String[];\r\n /** ECClass Ids of elements that changed */\r\n classIds: Id64String[];\r\n /** Operation that occurred on the element. Whether the element was inserted, updated or deleted.\r\n * See [DbOpcode]($core-bentley)\r\n */\r\n opcodes: DbOpcode[];\r\n /** Type of change bitflags, see [[TypeOfChange]] */\r\n type: TypeOfChange[];\r\n /** Model Ids of the changed elements\r\n * This may be undefined if the agent that did the processing job did not export model Ids\r\n */\r\n modelIds?: Id64String[];\r\n /** Property accessor strings of properties that changed, if any, for each changed element\r\n * This may be undefined if the agent that did the processing job did not export properties\r\n */\r\n properties?: string[][];\r\n /** Before state checksums of the property value\r\n * Useful to determine if property values have changed\r\n * between the versions being inspected\r\n * This may be undefined if the agent that did the processing job did not export checksums\r\n */\r\n oldChecksums?: number[][];\r\n /** After state checksums of the property value\r\n * Useful to determine if property values have changed\r\n * between the versions being inspected\r\n * This may be undefined if the agent that did the processing job did not export checksums\r\n */\r\n newChecksums?: number[][];\r\n /**\r\n * Parent ids of the changed elements\r\n * Will be \"0\" if the element has no parent\r\n * This may be undefined if the agent that did the processing job did not export parent information\r\n */\r\n parentIds?: Id64String[];\r\n /**\r\n * Parent ECClass Ids of the changed elements\r\n * Will be \"0\" if the element has no parent\r\n * This may be undefined if the agent that did the processing job did not export parent information\r\n */\r\n parentClassIds?: Id64String[];\r\n}\r\n\r\n/** @internal */\r\nexport interface ChangedModels {\r\n modelIds: Id64String[];\r\n bboxes: AxisAlignedBox3dProps[];\r\n}\r\n\r\n/** @internal */\r\nexport interface ChangeData {\r\n changedElements: ChangedElements;\r\n changedModels: ChangedModels;\r\n}\r\n"]}
|
|
@@ -80,6 +80,12 @@ export interface BaseReaderOptions {
|
|
|
80
80
|
usePrimaryConn?: boolean;
|
|
81
81
|
/** Restrict time or memory for query but use as hint and may be changed base on backend settings */
|
|
82
82
|
quota?: QueryQuota;
|
|
83
|
+
/**
|
|
84
|
+
* @internal
|
|
85
|
+
* Allow query to be be deferred by milliseconds specified. This parameter is ignore by default unless
|
|
86
|
+
* concurrent query is configure to honour it.
|
|
87
|
+
*/
|
|
88
|
+
delay?: number;
|
|
83
89
|
}
|
|
84
90
|
/**
|
|
85
91
|
* ECSql query config
|
|
@@ -122,44 +128,210 @@ export declare class QueryOptionsBuilder {
|
|
|
122
128
|
private _options;
|
|
123
129
|
constructor(_options?: QueryOptions);
|
|
124
130
|
getOptions(): QueryOptions;
|
|
131
|
+
/**
|
|
132
|
+
* @internal
|
|
133
|
+
* Allow to set priority of query. Query will be inserted int queue base on priority value. This value will be ignored if concurrent query is configured with ignored priority is true.
|
|
134
|
+
* @param val integer value which can be negative as well. By default its zero.
|
|
135
|
+
* @returns @type QueryOptionsBuilder for fluent interface.
|
|
136
|
+
*/
|
|
125
137
|
setPriority(val: number): this;
|
|
138
|
+
/**
|
|
139
|
+
* Allow to set restart token. If restart token is set then any other query(s) in queue with same token is cancelled if its not already executed.
|
|
140
|
+
* @param val A string token identifying a use case in which previous query with same token is cancelled.
|
|
141
|
+
* @returns @type QueryOptionsBuilder for fluent interface.
|
|
142
|
+
*/
|
|
126
143
|
setRestartToken(val: string): this;
|
|
144
|
+
/**
|
|
145
|
+
* Allow to set quota restriction for query. Its a hint and may be overriden or ignored by concurrent query manager.
|
|
146
|
+
* @param val @type QueryQuota Specify time and memory that can be used by a query.
|
|
147
|
+
* @returns @type QueryOptionsBuilder for fluent interface.
|
|
148
|
+
*/
|
|
127
149
|
setQuota(val: QueryQuota): this;
|
|
150
|
+
/**
|
|
151
|
+
* Force a query to be executed synchronously against primary connection. This option is ignored if provided by frontend.
|
|
152
|
+
* @param val A boolean value to force use primary connection on main thread to execute query.
|
|
153
|
+
* @returns @type QueryOptionsBuilder for fluent interface.
|
|
154
|
+
*/
|
|
128
155
|
setUsePrimaryConnection(val: boolean): this;
|
|
156
|
+
/**
|
|
157
|
+
* By default all blobs are abbreviated to save memory and network bandwidth. If set to false, all blob data will be returned by query as is.
|
|
158
|
+
* Use @type BlobReader to access blob data more efficiently.
|
|
159
|
+
* @param val A boolean value, if set to false will return complete blob type property data. This could cost time and network bandwidth.
|
|
160
|
+
* @returns @type QueryOptionsBuilder for fluent interface.
|
|
161
|
+
*/
|
|
129
162
|
setAbbreviateBlobs(val: boolean): this;
|
|
163
|
+
/**
|
|
164
|
+
* When query fail to prepare it will log error. This setting will suppress log errors in case where query come from user typing it and its expected to fail often.
|
|
165
|
+
* @param val A boolean value, if set to true, any error logging will be suppressed.
|
|
166
|
+
* @returns @type QueryOptionsBuilder for fluent interface.
|
|
167
|
+
*/
|
|
130
168
|
setSuppressLogErrors(val: boolean): this;
|
|
169
|
+
/**
|
|
170
|
+
* If set ECClassId, SourceECClassId and TargetECClassId system properties will return qualified name of class instead of a @typedef Id64String.
|
|
171
|
+
* @param val A boolean value.
|
|
172
|
+
* @returns @type QueryOptionsBuilder for fluent interface.
|
|
173
|
+
*/
|
|
131
174
|
setConvertClassIdsToNames(val: boolean): this;
|
|
175
|
+
/**
|
|
176
|
+
* Specify limit for query. Limit determine number of rows and offset in result-set.
|
|
177
|
+
* @param val Specify count and offset from within the result-set of a ECSQL query.
|
|
178
|
+
* @returns @type QueryOptionsBuilder for fluent interface.
|
|
179
|
+
*/
|
|
132
180
|
setLimit(val: QueryLimit): this;
|
|
181
|
+
/**
|
|
182
|
+
* Specify row format returned by concurrent query manager.
|
|
183
|
+
* @param val @enum QueryRowFormat specifying format for result.
|
|
184
|
+
* @returns @type QueryOptionsBuilder for fluent interface.
|
|
185
|
+
*/
|
|
133
186
|
setRowFormat(val: QueryRowFormat): this;
|
|
187
|
+
/**
|
|
188
|
+
* @internal
|
|
189
|
+
* Defers execution of query in queue by specified milliseconds. This parameter is ignored by default unless concurrent query is configure to not ignore it.
|
|
190
|
+
* @param val Number of milliseconds.
|
|
191
|
+
* @returns @type QueryOptionsBuilder for fluent interface.
|
|
192
|
+
*/
|
|
193
|
+
setDelay(val: number): this;
|
|
134
194
|
}
|
|
135
195
|
/** @beta */
|
|
136
196
|
export declare class BlobOptionsBuilder {
|
|
137
197
|
private _options;
|
|
138
198
|
constructor(_options?: BlobOptions);
|
|
139
199
|
getOptions(): BlobOptions;
|
|
200
|
+
/**
|
|
201
|
+
* @internal
|
|
202
|
+
* Allow to set priority of blob request. Blob request will be inserted int queue base on priority value. This value will be ignored if concurrent query is configured with ignored priority is true.
|
|
203
|
+
* @param val integer value which can be negative as well. By default its zero.
|
|
204
|
+
* @returns @type BlobOptionsBuilder for fluent interface.
|
|
205
|
+
*/
|
|
140
206
|
setPriority(val: number): this;
|
|
207
|
+
/**
|
|
208
|
+
* Allow to set restart token. If restart token is set then any other blob request in queue with same token is cancelled if its not already executed.
|
|
209
|
+
* @param val A string token identifying a use case in which previous blob request with same token is cancelled.
|
|
210
|
+
* @returns @type BlobOptionsBuilder for fluent interface.
|
|
211
|
+
*/
|
|
141
212
|
setRestartToken(val: string): this;
|
|
213
|
+
/**
|
|
214
|
+
* Allow to set quota restriction for blob request. Its a hint and may be overriden or ignored by concurrent query manager.
|
|
215
|
+
* @param val @type QueryQuota Specify time and memory that can be used by a query.
|
|
216
|
+
* @returns @type BlobOptionsBuilder for fluent interface.
|
|
217
|
+
*/
|
|
142
218
|
setQuota(val: QueryQuota): this;
|
|
219
|
+
/**
|
|
220
|
+
* Force a blob request to be executed synchronously against primary connection. This option is ignored if provided by frontend.
|
|
221
|
+
* @param val A boolean value to force use primary connection on main thread to execute blob request.
|
|
222
|
+
* @returns @type BlobOptionsBuilder for fluent interface.
|
|
223
|
+
*/
|
|
143
224
|
setUsePrimaryConnection(val: boolean): this;
|
|
225
|
+
/**
|
|
226
|
+
* Specify range with in the blob that need to be returned.
|
|
227
|
+
* @param val Specify offset and count of bytes that need to be returned.
|
|
228
|
+
* @returns @type BlobOptionsBuilder for fluent interface.
|
|
229
|
+
*/
|
|
144
230
|
setRange(val: BlobRange): this;
|
|
231
|
+
/**
|
|
232
|
+
* @internal
|
|
233
|
+
* Defers execution of blob request in queue by specified milliseconds. This parameter is ignored by default unless concurrent query is configure to not ignore it.
|
|
234
|
+
* @param val Number of milliseconds.
|
|
235
|
+
* @returns @type BlobOptionsBuilder for fluent interface.
|
|
236
|
+
*/
|
|
237
|
+
setDelay(val: number): this;
|
|
145
238
|
}
|
|
146
|
-
/**
|
|
239
|
+
/**
|
|
240
|
+
* @public
|
|
241
|
+
* QueryBinder allow to bind values to a ECSQL query.
|
|
242
|
+
* */
|
|
147
243
|
export declare class QueryBinder {
|
|
148
244
|
private _args;
|
|
149
245
|
private verify;
|
|
246
|
+
/**
|
|
247
|
+
* Bind boolean value to ECSQL statement.
|
|
248
|
+
* @param indexOrName Specify parameter index or its name used in ECSQL statement.
|
|
249
|
+
* @param val Boolean value to bind to ECSQL statement.
|
|
250
|
+
* @returns @type QueryBinder to allow fluent interface.
|
|
251
|
+
*/
|
|
150
252
|
bindBoolean(indexOrName: string | number, val: boolean): this;
|
|
253
|
+
/**
|
|
254
|
+
* Bind blob value to ECSQL statement.
|
|
255
|
+
* @param indexOrName Specify parameter index or its name used in ECSQL statement.
|
|
256
|
+
* @param val Blob value to bind to ECSQL statement.
|
|
257
|
+
* @returns @type QueryBinder to allow fluent interface.
|
|
258
|
+
*/
|
|
151
259
|
bindBlob(indexOrName: string | number, val: Uint8Array): this;
|
|
260
|
+
/**
|
|
261
|
+
* Bind double value to ECSQL statement.
|
|
262
|
+
* @param indexOrName Specify parameter index or its name used in ECSQL statement.
|
|
263
|
+
* @param val Double value to bind to ECSQL statement.
|
|
264
|
+
* @returns @type QueryBinder to allow fluent interface.
|
|
265
|
+
*/
|
|
152
266
|
bindDouble(indexOrName: string | number, val: number): this;
|
|
267
|
+
/**
|
|
268
|
+
* Bind @typedef Id64String value to ECSQL statement.
|
|
269
|
+
* @param indexOrName Specify parameter index or its name used in ECSQL statement.
|
|
270
|
+
* @param val @typedef Id64String value to bind to ECSQL statement.
|
|
271
|
+
* @returns @type QueryBinder to allow fluent interface.
|
|
272
|
+
*/
|
|
153
273
|
bindId(indexOrName: string | number, val: Id64String): this;
|
|
274
|
+
/**
|
|
275
|
+
* Bind @type OrderedId64Iterable to ECSQL statement.
|
|
276
|
+
* @param indexOrName Specify parameter index or its name used in ECSQL statement.
|
|
277
|
+
* @param val @type OrderedId64Iterable value to bind to ECSQL statement.
|
|
278
|
+
* @returns @type QueryBinder to allow fluent interface.
|
|
279
|
+
*/
|
|
154
280
|
bindIdSet(indexOrName: string | number, val: OrderedId64Iterable): this;
|
|
281
|
+
/**
|
|
282
|
+
* Bind integer to ECSQL statement.
|
|
283
|
+
* @param indexOrName Specify parameter index or its name used in ECSQL statement.
|
|
284
|
+
* @param val Integer value to bind to ECSQL statement.
|
|
285
|
+
* @returns @type QueryBinder to allow fluent interface.
|
|
286
|
+
*/
|
|
155
287
|
bindInt(indexOrName: string | number, val: number): this;
|
|
288
|
+
/**
|
|
289
|
+
* Bind struct to ECSQL statement. Struct specified as object.
|
|
290
|
+
* @param indexOrName Specify parameter index or its name used in ECSQL statement.
|
|
291
|
+
* @param val struct value to bind to ECSQL statement.
|
|
292
|
+
* @returns @type QueryBinder to allow fluent interface.
|
|
293
|
+
*/
|
|
156
294
|
bindStruct(indexOrName: string | number, val: object): this;
|
|
295
|
+
/**
|
|
296
|
+
* Bind long to ECSQL statement.
|
|
297
|
+
* @param indexOrName Specify parameter index or its name used in ECSQL statement.
|
|
298
|
+
* @param val Long value to bind to ECSQL statement.
|
|
299
|
+
* @returns @type QueryBinder to allow fluent interface.
|
|
300
|
+
*/
|
|
157
301
|
bindLong(indexOrName: string | number, val: number): this;
|
|
302
|
+
/**
|
|
303
|
+
* Bind string to ECSQL statement.
|
|
304
|
+
* @param indexOrName Specify parameter index or its name used in ECSQL statement.
|
|
305
|
+
* @param val String value to bind to ECSQL statement.
|
|
306
|
+
* @returns @type QueryBinder to allow fluent interface.
|
|
307
|
+
*/
|
|
158
308
|
bindString(indexOrName: string | number, val: string): this;
|
|
309
|
+
/**
|
|
310
|
+
* Bind null to ECSQL statement.
|
|
311
|
+
* @param indexOrName Specify parameter index or its name used in ECSQL statement.
|
|
312
|
+
* @returns @type QueryBinder to allow fluent interface.
|
|
313
|
+
*/
|
|
159
314
|
bindNull(indexOrName: string | number): this;
|
|
315
|
+
/**
|
|
316
|
+
* Bind @type Point2d to ECSQL statement.
|
|
317
|
+
* @param indexOrName Specify parameter index or its name used in ECSQL statement.
|
|
318
|
+
* @param val @type Point2d value to bind to ECSQL statement.
|
|
319
|
+
* @returns @type QueryBinder to allow fluent interface.
|
|
320
|
+
*/
|
|
160
321
|
bindPoint2d(indexOrName: string | number, val: Point2d): this;
|
|
322
|
+
/**
|
|
323
|
+
* Bind @type Point3d to ECSQL statement.
|
|
324
|
+
* @param indexOrName Specify parameter index or its name used in ECSQL statement.
|
|
325
|
+
* @param val @type Point3d value to bind to ECSQL statement.
|
|
326
|
+
* @returns @type QueryBinder to allow fluent interface.
|
|
327
|
+
*/
|
|
161
328
|
bindPoint3d(indexOrName: string | number, val: Point3d): this;
|
|
162
329
|
private static bind;
|
|
330
|
+
/**
|
|
331
|
+
* Allow bulk bind either parameters by index as value array or by parameter names as object.
|
|
332
|
+
* @param args if array of values is provided then array index is used as index. If object is provided then object property name is used as parameter name of reach value.
|
|
333
|
+
* @returns @type QueryBinder to allow fluent interface.
|
|
334
|
+
*/
|
|
163
335
|
static from(args: any[] | object | undefined): QueryBinder;
|
|
164
336
|
serialize(): object;
|
|
165
337
|
}
|
|
@@ -239,4 +411,12 @@ export declare class DbQueryError extends BentleyError {
|
|
|
239
411
|
export interface DbRequestExecutor<TRequest extends DbRequest, TResponse extends DbResponse> {
|
|
240
412
|
execute(request: TRequest): Promise<TResponse>;
|
|
241
413
|
}
|
|
414
|
+
/** @internal */
|
|
415
|
+
export interface DbQueryConfig {
|
|
416
|
+
globalQuota?: QueryQuota;
|
|
417
|
+
ignoreDelay?: boolean;
|
|
418
|
+
ignorePriority?: boolean;
|
|
419
|
+
requestQueueSize?: number;
|
|
420
|
+
workerThreads?: number;
|
|
421
|
+
}
|
|
242
422
|
//# sourceMappingURL=ConcurrentQuery.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConcurrentQuery.d.ts","sourceRoot":"","sources":["../../src/ConcurrentQuery.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,OAAO,EAAE,YAAY,EAAqB,QAAQ,EAAQ,UAAU,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AACvH,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAGxD;;;;;;GAMG;AACH,oBAAY,cAAc;IACxB;;OAEG;IACH,qBAAqB,IAAA;IACrB;;OAEG;IACH,uBAAuB,IAAA;IACvB;;OAEG;IACH,kBAAkB,IAAA;CACnB;AACD;;;;KAIK;AACL,MAAM,WAAW,UAAU;IACzB,+BAA+B;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uCAAuC;IACvC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AACD,YAAY;AACZ,MAAM,WAAW,qBAAqB;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,QAA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