@itwin/core-common 5.0.0-dev.40 → 5.0.0-dev.49
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 +11 -1
- package/lib/cjs/AnalysisStyle.d.ts +0 -3
- package/lib/cjs/AnalysisStyle.d.ts.map +1 -1
- package/lib/cjs/AnalysisStyle.js +0 -3
- package/lib/cjs/AnalysisStyle.js.map +1 -1
- package/lib/cjs/FeatureSymbology.d.ts +25 -46
- package/lib/cjs/FeatureSymbology.d.ts.map +1 -1
- package/lib/cjs/FeatureSymbology.js +14 -29
- package/lib/cjs/FeatureSymbology.js.map +1 -1
- package/lib/cjs/FeatureTable.d.ts +6 -108
- package/lib/cjs/FeatureTable.d.ts.map +1 -1
- package/lib/cjs/FeatureTable.js +8 -329
- package/lib/cjs/FeatureTable.js.map +1 -1
- package/lib/cjs/Gradient.d.ts +3 -4
- package/lib/cjs/Gradient.d.ts.map +1 -1
- package/lib/cjs/Gradient.js +3 -4
- package/lib/cjs/Gradient.js.map +1 -1
- package/lib/cjs/HiddenLine.d.ts +17 -18
- package/lib/cjs/HiddenLine.d.ts.map +1 -1
- package/lib/cjs/HiddenLine.js +0 -1
- package/lib/cjs/HiddenLine.js.map +1 -1
- package/lib/cjs/Image.d.ts +7 -8
- package/lib/cjs/Image.d.ts.map +1 -1
- package/lib/cjs/Image.js +3 -4
- package/lib/cjs/Image.js.map +1 -1
- package/lib/cjs/PlanProjectionSettings.d.ts +1 -2
- package/lib/cjs/PlanProjectionSettings.d.ts.map +1 -1
- package/lib/cjs/PlanProjectionSettings.js +0 -1
- package/lib/cjs/PlanProjectionSettings.js.map +1 -1
- package/lib/cjs/PlanarClipMask.d.ts +0 -12
- package/lib/cjs/PlanarClipMask.d.ts.map +1 -1
- package/lib/cjs/PlanarClipMask.js.map +1 -1
- package/lib/cjs/QPoint.d.ts +5 -5
- package/lib/cjs/QPoint.d.ts.map +1 -1
- package/lib/cjs/QPoint.js +5 -5
- package/lib/cjs/QPoint.js.map +1 -1
- package/lib/cjs/RenderPolyline.d.ts +36 -0
- package/lib/cjs/RenderPolyline.d.ts.map +1 -0
- package/lib/cjs/RenderPolyline.js +26 -0
- package/lib/cjs/RenderPolyline.js.map +1 -0
- package/lib/cjs/RenderTexture.d.ts +4 -2
- package/lib/cjs/RenderTexture.d.ts.map +1 -1
- package/lib/cjs/RenderTexture.js +8 -0
- package/lib/cjs/RenderTexture.js.map +1 -1
- package/lib/cjs/TextureMapping.d.ts +17 -14
- package/lib/cjs/TextureMapping.d.ts.map +1 -1
- package/lib/cjs/TextureMapping.js +22 -17
- package/lib/cjs/TextureMapping.js.map +1 -1
- package/lib/cjs/ViewFlags.d.ts +1 -3
- package/lib/cjs/ViewFlags.d.ts.map +1 -1
- package/lib/cjs/ViewFlags.js +1 -3
- package/lib/cjs/ViewFlags.js.map +1 -1
- package/lib/cjs/core-common.d.ts +1 -1
- package/lib/cjs/core-common.d.ts.map +1 -1
- package/lib/cjs/core-common.js +1 -1
- package/lib/cjs/core-common.js.map +1 -1
- package/lib/cjs/internal/PackedFeatureTable.d.ts +111 -0
- package/lib/cjs/internal/PackedFeatureTable.d.ts.map +1 -0
- package/lib/cjs/internal/PackedFeatureTable.js +349 -0
- package/lib/cjs/internal/PackedFeatureTable.js.map +1 -0
- package/lib/cjs/internal/RenderMesh.d.ts +52 -0
- package/lib/cjs/internal/RenderMesh.d.ts.map +1 -0
- package/lib/cjs/{Render.js → internal/RenderMesh.js} +3 -25
- package/lib/cjs/internal/RenderMesh.js.map +1 -0
- package/lib/cjs/internal/cross-package.d.ts +2 -0
- package/lib/cjs/internal/cross-package.d.ts.map +1 -1
- package/lib/cjs/internal/cross-package.js +12 -0
- package/lib/cjs/internal/cross-package.js.map +1 -1
- package/lib/cjs/rpc/core/RpcRequest.d.ts +1 -1
- package/lib/cjs/rpc/core/RpcRequest.d.ts.map +1 -1
- package/lib/cjs/rpc/core/RpcRequest.js +4 -4
- package/lib/cjs/rpc/core/RpcRequest.js.map +1 -1
- package/lib/esm/AnalysisStyle.d.ts +0 -3
- package/lib/esm/AnalysisStyle.d.ts.map +1 -1
- package/lib/esm/AnalysisStyle.js +0 -3
- package/lib/esm/AnalysisStyle.js.map +1 -1
- package/lib/esm/FeatureSymbology.d.ts +25 -46
- package/lib/esm/FeatureSymbology.d.ts.map +1 -1
- package/lib/esm/FeatureSymbology.js +14 -29
- package/lib/esm/FeatureSymbology.js.map +1 -1
- package/lib/esm/FeatureTable.d.ts +6 -108
- package/lib/esm/FeatureTable.d.ts.map +1 -1
- package/lib/esm/FeatureTable.js +6 -324
- package/lib/esm/FeatureTable.js.map +1 -1
- package/lib/esm/Gradient.d.ts +3 -4
- package/lib/esm/Gradient.d.ts.map +1 -1
- package/lib/esm/Gradient.js +3 -4
- package/lib/esm/Gradient.js.map +1 -1
- package/lib/esm/HiddenLine.d.ts +17 -18
- package/lib/esm/HiddenLine.d.ts.map +1 -1
- package/lib/esm/HiddenLine.js +0 -1
- package/lib/esm/HiddenLine.js.map +1 -1
- package/lib/esm/Image.d.ts +7 -8
- package/lib/esm/Image.d.ts.map +1 -1
- package/lib/esm/Image.js +3 -4
- package/lib/esm/Image.js.map +1 -1
- package/lib/esm/PlanProjectionSettings.d.ts +1 -2
- package/lib/esm/PlanProjectionSettings.d.ts.map +1 -1
- package/lib/esm/PlanProjectionSettings.js +0 -1
- package/lib/esm/PlanProjectionSettings.js.map +1 -1
- package/lib/esm/PlanarClipMask.d.ts +0 -12
- package/lib/esm/PlanarClipMask.d.ts.map +1 -1
- package/lib/esm/PlanarClipMask.js.map +1 -1
- package/lib/esm/QPoint.d.ts +5 -5
- package/lib/esm/QPoint.d.ts.map +1 -1
- package/lib/esm/QPoint.js +5 -5
- package/lib/esm/QPoint.js.map +1 -1
- package/lib/esm/RenderPolyline.d.ts +36 -0
- package/lib/esm/RenderPolyline.d.ts.map +1 -0
- package/lib/esm/RenderPolyline.js +23 -0
- package/lib/esm/RenderPolyline.js.map +1 -0
- package/lib/esm/RenderTexture.d.ts +4 -2
- package/lib/esm/RenderTexture.d.ts.map +1 -1
- package/lib/esm/RenderTexture.js +8 -0
- package/lib/esm/RenderTexture.js.map +1 -1
- package/lib/esm/TextureMapping.d.ts +17 -14
- package/lib/esm/TextureMapping.d.ts.map +1 -1
- package/lib/esm/TextureMapping.js +22 -17
- package/lib/esm/TextureMapping.js.map +1 -1
- package/lib/esm/ViewFlags.d.ts +1 -3
- package/lib/esm/ViewFlags.d.ts.map +1 -1
- package/lib/esm/ViewFlags.js +1 -3
- package/lib/esm/ViewFlags.js.map +1 -1
- package/lib/esm/core-common.d.ts +1 -1
- package/lib/esm/core-common.d.ts.map +1 -1
- package/lib/esm/core-common.js +1 -1
- package/lib/esm/core-common.js.map +1 -1
- package/lib/esm/internal/PackedFeatureTable.d.ts +111 -0
- package/lib/esm/internal/PackedFeatureTable.d.ts.map +1 -0
- package/lib/esm/internal/PackedFeatureTable.js +342 -0
- package/lib/esm/internal/PackedFeatureTable.js.map +1 -0
- package/lib/esm/internal/RenderMesh.d.ts +52 -0
- package/lib/esm/internal/RenderMesh.d.ts.map +1 -0
- package/lib/esm/{Render.js → internal/RenderMesh.js} +2 -23
- package/lib/esm/internal/RenderMesh.js.map +1 -0
- package/lib/esm/internal/cross-package.d.ts +2 -0
- package/lib/esm/internal/cross-package.d.ts.map +1 -1
- package/lib/esm/internal/cross-package.js +2 -1
- package/lib/esm/internal/cross-package.js.map +1 -1
- package/lib/esm/rpc/core/RpcRequest.d.ts +1 -1
- package/lib/esm/rpc/core/RpcRequest.d.ts.map +1 -1
- package/lib/esm/rpc/core/RpcRequest.js +4 -4
- package/lib/esm/rpc/core/RpcRequest.js.map +1 -1
- package/package.json +7 -7
- package/lib/cjs/Render.d.ts +0 -85
- package/lib/cjs/Render.d.ts.map +0 -1
- package/lib/cjs/Render.js.map +0 -1
- package/lib/esm/Render.d.ts +0 -85
- package/lib/esm/Render.d.ts.map +0 -1
- package/lib/esm/Render.js.map +0 -1
package/lib/esm/core-common.d.ts
CHANGED
|
@@ -94,7 +94,7 @@ export * from "./BackendTypes";
|
|
|
94
94
|
export * from "./QPoint";
|
|
95
95
|
export * from "./RealityDataAccessProps";
|
|
96
96
|
export * from "./RealityModelDisplaySettings";
|
|
97
|
-
export * from "./
|
|
97
|
+
export * from "./RenderPolyline";
|
|
98
98
|
export * from "./RenderMaterial";
|
|
99
99
|
export * from "./RenderSchedule";
|
|
100
100
|
export * from "./RenderTexture";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core-common.d.ts","sourceRoot":"","sources":["../../src/core-common.ts"],"names":[],"mappings":"AAIA,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,qCAAqC,CAAC;AACpD,cAAc,oCAAoC,CAAC;AACnD,cAAc,wBAAwB,CAAC;AACvC,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kCAAkC,CAAC;AACjD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAA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;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG"}
|
package/lib/esm/core-common.js
CHANGED
|
@@ -98,7 +98,7 @@ export * from "./BackendTypes";
|
|
|
98
98
|
export * from "./QPoint";
|
|
99
99
|
export * from "./RealityDataAccessProps";
|
|
100
100
|
export * from "./RealityModelDisplaySettings";
|
|
101
|
-
export * from "./
|
|
101
|
+
export * from "./RenderPolyline";
|
|
102
102
|
export * from "./RenderMaterial";
|
|
103
103
|
export * from "./RenderSchedule";
|
|
104
104
|
export * from "./RenderTexture";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core-common.js","sourceRoot":"","sources":["../../src/core-common.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,qCAAqC,CAAC;AACpD,cAAc,oCAAoC,CAAC;AACnD,cAAc,wBAAwB,CAAC;AACvC,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kCAAkC,CAAC;AACjD,cAAc,+B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;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\nexport * from \"./AmbientOcclusion\";\nexport * from \"./AnalysisStyle\";\nexport * from \"./annotation/TextAnnotation\";\nexport * from \"./annotation/TextBlock\";\nexport * from \"./annotation/TextBlockGeometryProps\";\nexport * from \"./annotation/TextBlockLayoutResult\";\nexport * from \"./annotation/TextStyle\";\nexport * from \"./Atmosphere\";\nexport * from \"./AuthorizationClient\";\nexport * from \"./BackgroundMapProvider\";\nexport * from \"./BackgroundMapSettings\";\nexport * from \"./Base64EncodedString\";\nexport * from \"./BriefcaseTypes\";\nexport * from \"./Camera\";\nexport * from \"./ChangedElements\";\nexport * from \"./ChangedEntities\";\nexport * from \"./ChangesetProps\";\nexport * from \"./ClipStyle\";\nexport * from \"./Code\";\nexport * from \"./ColorByName\";\nexport * from \"./ColorDef\";\nexport * from \"./CommonLoggerCategory\";\nexport * from \"./ContextRealityModel\";\nexport * from \"./DisplayStyleSettings\";\nexport * from \"./domains/FunctionalElementProps\";\nexport * from \"./domains/GenericElementProps\";\nexport * from \"./ECSqlTypes\";\nexport * from \"./ECSchemaProps\";\nexport * from \"./ElementMesh\";\nexport * from \"./ElementProps\";\nexport * from \"./EmphasizeElementsProps\";\nexport * from \"./EntityProps\";\nexport * from \"./EntityReference\";\nexport * from \"./Environment\";\nexport * from \"./FeatureIndex\";\nexport * from \"./FeatureSymbology\";\nexport * from \"./FeatureTable\";\nexport * from \"./Fonts\";\nexport * from \"./Frustum\";\nexport * from \"./GenericInstanceFilter\";\nexport * from \"./GeoCoordinateServices\";\nexport * from \"./geometry/AdditionalTransform\";\nexport * from \"./geometry/AreaPattern\";\nexport * from \"./geometry/BoundingSphere\";\nexport * from \"./geometry/Cartographic\";\nexport * from \"./geometry/CoordinateReferenceSystem\";\nexport * from \"./geometry/ElementGeometry\";\nexport * from \"./geometry/FrustumPlanes\";\nexport * from \"./geometry/GeodeticDatum\";\nexport * from \"./geometry/GeodeticEllipsoid\";\nexport * from \"./geometry/GeometryStream\";\nexport * from \"./geometry/ImageGraphic\";\nexport * from \"./geometry/LineStyle\";\nexport * from \"./geometry/Placement\";\nexport * from \"./geometry/Projection\";\nexport * from \"./geometry/TextString\";\nexport * from \"./GeometryContainment\";\nexport * from \"./GeometryParams\";\nexport * from \"./GeometrySummary\";\nexport * from \"./Gradient\";\nexport * from \"./GraphicParams\";\nexport * from \"./GroundPlane\";\nexport * from \"./HiddenLine\";\nexport * from \"./Hilite\";\nexport * from \"./HSLColor\";\nexport * from \"./HSVColor\";\nexport * from \"./Image\";\nexport * from \"./IModel\";\nexport * from \"./IModelError\";\nexport * from \"./IModelVersion\";\nexport * from \"./ITwinError\";\nexport * from \"./ipc/IpcSocket\";\nexport * from \"./ipc/IpcWebSocket\";\nexport * from \"./ipc/IpcWebSocketTransport\";\nexport * from \"./ipc/IpcSession\";\nexport * from \"./IpcAppProps\";\nexport * from \"./LightSettings\";\nexport * from \"./LinePixels\";\nexport * from \"./Localization\";\nexport * from \"./MapImagerySettings\";\nexport * from \"./MapLayerSettings\";\nexport * from \"./MassProperties\";\nexport * from \"./MaterialProps\";\nexport * from \"./ModelClipGroup\";\nexport * from \"./ModelProps\";\nexport * from \"./NativeAppProps\";\nexport * from \"./OctEncodedNormal\";\nexport * from \"./ConcurrentQuery\";\nexport * from \"./ECSqlReader\";\nexport * from \"./PlanarClipMask\";\nexport * from \"./ModelGeometryChanges\";\nexport * from \"./PlanProjectionSettings\";\nexport * from \"./BackendTypes\";\nexport * from \"./QPoint\";\nexport * from \"./RealityDataAccessProps\";\nexport * from \"./RealityModelDisplaySettings\";\nexport * from \"./Render\";\nexport * from \"./RenderMaterial\";\nexport * from \"./RenderSchedule\";\nexport * from \"./RenderTexture\";\nexport * from \"./RgbColor\";\nexport * from \"./RpcManager\";\nexport * from \"./SessionProps\";\nexport * from \"./SkyBox\";\nexport * from \"./SolarCalculate\";\nexport * from \"./SolarShadows\";\nexport * from \"./SpatialClassification\";\nexport * from \"./SubCategoryAppearance\";\nexport * from \"./SubCategoryOverride\";\nexport * from \"./TerrainSettings\";\nexport * from \"./TextureMapping\";\nexport * from \"./TextureProps\";\nexport * from \"./ThematicDisplay\";\nexport * from \"./ContourDisplay\";\nexport * from \"./Thumbnail\";\nexport * from \"./TileProps\";\nexport * from \"./Tween\";\nexport * from \"./TxnAction\";\nexport * from \"./ViewDetails\";\nexport * from \"./ViewFlags\";\nexport * from \"./ViewProps\";\nexport * from \"./rpc/core/RpcConstants\";\nexport * from \"./rpc/core/RpcControl\";\nexport * from \"./rpc/core/RpcInvocation\";\nexport * from \"./rpc/core/RpcSessionInvocation\";\nexport * from \"./rpc/core/RpcMarshaling\";\nexport * from \"./rpc/core/RpcOperation\";\nexport * from \"./rpc/core/RpcPendingQueue\";\nexport * from \"./rpc/core/RpcProtocol\";\nexport * from \"./rpc/core/RpcRegistry\";\nexport * from \"./rpc/core/RpcRequest\";\nexport * from \"./rpc/core/RpcRequestContext\";\nexport * from \"./rpc/core/RpcRoutingToken\";\nexport * from \"./rpc/core/RpcPush\";\nexport * from \"./rpc/core/RpcConfiguration\";\nexport * from \"./rpc/DevToolsRpcInterface\";\nexport * from \"./rpc/IModelReadRpcInterface\";\nexport * from \"./rpc/IModelTileRpcInterface\";\nexport * from \"./rpc/SnapshotIModelRpcInterface\";\nexport * from \"./rpc/TestRpcManager\";\nexport * from \"./RpcInterface\";\nexport * from \"./rpc/web/BentleyCloudRpcManager\";\nexport * from \"./rpc/web/BentleyCloudRpcProtocol\";\nexport * from \"./rpc/web/OpenAPI\";\nexport * from \"./rpc/web/RpcMultipart\";\nexport * from \"./rpc/web/WebAppRpcProtocol\";\nexport * from \"./rpc/web/WebAppRpcRequest\";\nexport * from \"./rpc/web/WebAppRpcLogging\";\nexport * from \"./tile/B3dmTileIO\";\nexport * from \"./tile/CompositeTileIO\";\nexport * from \"./tile/ElementGraphics\";\nexport * from \"./tile/GltfTileIO\";\nexport * from \"./tile/I3dmTileIO\";\nexport * from \"./tile/IModelTileIO\";\nexport * from \"./tile/PntsTileIO\";\nexport * from \"./tile/TileIO\";\nexport * from \"./tile/TileMetadata\";\nexport * from \"./tile/Tileset3dSchema\";\nexport * from \"./WhiteOnWhiteReversalSettings\";\n\nexport * from \"./internal/cross-package\";\n\n/** @docs-package-description\n * The core-common package contains classes for working with iModels that can be used in both [frontend]($docs/learning/frontend/index.md) and [backend]($docs/learning/backend/index.md).\n */\n/**\n * @docs-group-description Entities\n * Definitions of the \"props\" interfaces and types that define the [wire format]($docs/learning/wireformat.md) for communication between the frontend and backend about entities (models, elements, etc) contained in an iModel.\n */\n/**\n * @docs-group-description Codes\n * Types for working with [Codes]($docs/bis/guide/fundamentals/codes.md).\n */\n/**\n * @docs-group-description Geometry\n * Types for working with geometry.\n */\n/**\n * @docs-group-description Serialization\n * Types for serializing geometry\n */\n/**\n * @docs-group-description Views\n * Types for defining graphical views of the contents of an iModel.\n */\n/**\n * @docs-group-description DisplayStyles\n * Types for describing how the contents of Views should be rendered.\n */\n/**\n * @docs-group-description Rendering\n * Types describing geometry, views, and symbology for consumption by a display system.\n */\n/**\n * @docs-group-description Symbology\n * Types that define the appearance of geometry.\n */\n/**\n * @docs-group-description iModels\n * Types for working with [iModels]($docs/learning/IModels.md) in both the frontend and backend.\n */\n/**\n * @docs-group-description RpcInterface\n * Types for working with [RpcInterfaces]($docs/learning/RpcInterface.md).\n */\n/**\n * @docs-group-description IpcSocket\n * Types for working with [IpcInterfaces]($docs/learning/IpcInterface.md).\n */\n/**\n * @docs-group-description ECSQL\n * Types for working with [ECSQL]($docs/learning/ECSQL.md), [Spatial Queries]($docs/learning/SpatialQueries.md), and [ECSQL Geometry Functions]($docs/learning/GeometrySqlFuncs.md).\n */\n/**\n * @docs-group-description Logging\n * Logger categories used by this package.\n */\n/**\n * @docs-group-description CloudStorage\n * Types for working with Cloud Storage.\n */\n/**\n * @docs-group-description Tween\n * Tweening library adapted from tween.js.\n */\n/**\n * @docs-group-description Tile\n * Types for working with 3d tile formats.\n */\n/**\n * @docs-group-description Utils\n * Miscellaneous utility classes.\n */\n/**\n * @docs-group-description NativeApp\n * [Native applications]($docs/learning/NativeApps.md)\n */\n/**\n * @docs-group-description Localization\n * Classes for internationalization and localization of your app.\n */\n/**\n * @docs-group-description Authorization\n * Classes for managing AccessToken used for all requests in other classes.\n */\n/**\n * @docs-group-description RealityData\n * Types for working with the RealityData API.\n */\n/**\n * @docs-group-description MapLayers\n * Types for working with the MapLayers API.\n */\n/**\n * @docs-group-description Annotation\n * APIs for producing and manipulating annotations like text, dimensions, and labels.\n */\n"]}
|
|
1
|
+
{"version":3,"file":"core-common.js","sourceRoot":"","sources":["../../src/core-common.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,qCAAqC,CAAC;AACpD,cAAc,oCAAoC,CAAC;AACnD,cAAc,wBAAwB,CAAC;AACvC,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CA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G;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\nexport * from \"./AmbientOcclusion\";\nexport * from \"./AnalysisStyle\";\nexport * from \"./annotation/TextAnnotation\";\nexport * from \"./annotation/TextBlock\";\nexport * from \"./annotation/TextBlockGeometryProps\";\nexport * from \"./annotation/TextBlockLayoutResult\";\nexport * from \"./annotation/TextStyle\";\nexport * from \"./Atmosphere\";\nexport * from \"./AuthorizationClient\";\nexport * from \"./BackgroundMapProvider\";\nexport * from \"./BackgroundMapSettings\";\nexport * from \"./Base64EncodedString\";\nexport * from \"./BriefcaseTypes\";\nexport * from \"./Camera\";\nexport * from \"./ChangedElements\";\nexport * from \"./ChangedEntities\";\nexport * from \"./ChangesetProps\";\nexport * from \"./ClipStyle\";\nexport * from \"./Code\";\nexport * from \"./ColorByName\";\nexport * from \"./ColorDef\";\nexport * from \"./CommonLoggerCategory\";\nexport * from \"./ContextRealityModel\";\nexport * from \"./DisplayStyleSettings\";\nexport * from \"./domains/FunctionalElementProps\";\nexport * from \"./domains/GenericElementProps\";\nexport * from \"./ECSqlTypes\";\nexport * from \"./ECSchemaProps\";\nexport * from \"./ElementMesh\";\nexport * from \"./ElementProps\";\nexport * from \"./EmphasizeElementsProps\";\nexport * from \"./EntityProps\";\nexport * from \"./EntityReference\";\nexport * from \"./Environment\";\nexport * from \"./FeatureIndex\";\nexport * from \"./FeatureSymbology\";\nexport * from \"./FeatureTable\";\nexport * from \"./Fonts\";\nexport * from \"./Frustum\";\nexport * from \"./GenericInstanceFilter\";\nexport * from \"./GeoCoordinateServices\";\nexport * from \"./geometry/AdditionalTransform\";\nexport * from \"./geometry/AreaPattern\";\nexport * from \"./geometry/BoundingSphere\";\nexport * from \"./geometry/Cartographic\";\nexport * from \"./geometry/CoordinateReferenceSystem\";\nexport * from \"./geometry/ElementGeometry\";\nexport * from \"./geometry/FrustumPlanes\";\nexport * from \"./geometry/GeodeticDatum\";\nexport * from \"./geometry/GeodeticEllipsoid\";\nexport * from \"./geometry/GeometryStream\";\nexport * from \"./geometry/ImageGraphic\";\nexport * from \"./geometry/LineStyle\";\nexport * from \"./geometry/Placement\";\nexport * from \"./geometry/Projection\";\nexport * from \"./geometry/TextString\";\nexport * from \"./GeometryContainment\";\nexport * from \"./GeometryParams\";\nexport * from \"./GeometrySummary\";\nexport * from \"./Gradient\";\nexport * from \"./GraphicParams\";\nexport * from \"./GroundPlane\";\nexport * from \"./HiddenLine\";\nexport * from \"./Hilite\";\nexport * from \"./HSLColor\";\nexport * from \"./HSVColor\";\nexport * from \"./Image\";\nexport * from \"./IModel\";\nexport * from \"./IModelError\";\nexport * from \"./IModelVersion\";\nexport * from \"./ITwinError\";\nexport * from \"./ipc/IpcSocket\";\nexport * from \"./ipc/IpcWebSocket\";\nexport * from \"./ipc/IpcWebSocketTransport\";\nexport * from \"./ipc/IpcSession\";\nexport * from \"./IpcAppProps\";\nexport * from \"./LightSettings\";\nexport * from \"./LinePixels\";\nexport * from \"./Localization\";\nexport * from \"./MapImagerySettings\";\nexport * from \"./MapLayerSettings\";\nexport * from \"./MassProperties\";\nexport * from \"./MaterialProps\";\nexport * from \"./ModelClipGroup\";\nexport * from \"./ModelProps\";\nexport * from \"./NativeAppProps\";\nexport * from \"./OctEncodedNormal\";\nexport * from \"./ConcurrentQuery\";\nexport * from \"./ECSqlReader\";\nexport * from \"./PlanarClipMask\";\nexport * from \"./ModelGeometryChanges\";\nexport * from \"./PlanProjectionSettings\";\nexport * from \"./BackendTypes\";\nexport * from \"./QPoint\";\nexport * from \"./RealityDataAccessProps\";\nexport * from \"./RealityModelDisplaySettings\";\nexport * from \"./RenderPolyline\";\nexport * from \"./RenderMaterial\";\nexport * from \"./RenderSchedule\";\nexport * from \"./RenderTexture\";\nexport * from \"./RgbColor\";\nexport * from \"./RpcManager\";\nexport * from \"./SessionProps\";\nexport * from \"./SkyBox\";\nexport * from \"./SolarCalculate\";\nexport * from \"./SolarShadows\";\nexport * from \"./SpatialClassification\";\nexport * from \"./SubCategoryAppearance\";\nexport * from \"./SubCategoryOverride\";\nexport * from \"./TerrainSettings\";\nexport * from \"./TextureMapping\";\nexport * from \"./TextureProps\";\nexport * from \"./ThematicDisplay\";\nexport * from \"./ContourDisplay\";\nexport * from \"./Thumbnail\";\nexport * from \"./TileProps\";\nexport * from \"./Tween\";\nexport * from \"./TxnAction\";\nexport * from \"./ViewDetails\";\nexport * from \"./ViewFlags\";\nexport * from \"./ViewProps\";\nexport * from \"./rpc/core/RpcConstants\";\nexport * from \"./rpc/core/RpcControl\";\nexport * from \"./rpc/core/RpcInvocation\";\nexport * from \"./rpc/core/RpcSessionInvocation\";\nexport * from \"./rpc/core/RpcMarshaling\";\nexport * from \"./rpc/core/RpcOperation\";\nexport * from \"./rpc/core/RpcPendingQueue\";\nexport * from \"./rpc/core/RpcProtocol\";\nexport * from \"./rpc/core/RpcRegistry\";\nexport * from \"./rpc/core/RpcRequest\";\nexport * from \"./rpc/core/RpcRequestContext\";\nexport * from \"./rpc/core/RpcRoutingToken\";\nexport * from \"./rpc/core/RpcPush\";\nexport * from \"./rpc/core/RpcConfiguration\";\nexport * from \"./rpc/DevToolsRpcInterface\";\nexport * from \"./rpc/IModelReadRpcInterface\";\nexport * from \"./rpc/IModelTileRpcInterface\";\nexport * from \"./rpc/SnapshotIModelRpcInterface\";\nexport * from \"./rpc/TestRpcManager\";\nexport * from \"./RpcInterface\";\nexport * from \"./rpc/web/BentleyCloudRpcManager\";\nexport * from \"./rpc/web/BentleyCloudRpcProtocol\";\nexport * from \"./rpc/web/OpenAPI\";\nexport * from \"./rpc/web/RpcMultipart\";\nexport * from \"./rpc/web/WebAppRpcProtocol\";\nexport * from \"./rpc/web/WebAppRpcRequest\";\nexport * from \"./rpc/web/WebAppRpcLogging\";\nexport * from \"./tile/B3dmTileIO\";\nexport * from \"./tile/CompositeTileIO\";\nexport * from \"./tile/ElementGraphics\";\nexport * from \"./tile/GltfTileIO\";\nexport * from \"./tile/I3dmTileIO\";\nexport * from \"./tile/IModelTileIO\";\nexport * from \"./tile/PntsTileIO\";\nexport * from \"./tile/TileIO\";\nexport * from \"./tile/TileMetadata\";\nexport * from \"./tile/Tileset3dSchema\";\nexport * from \"./WhiteOnWhiteReversalSettings\";\n\nexport * from \"./internal/cross-package\";\n\n/** @docs-package-description\n * The core-common package contains classes for working with iModels that can be used in both [frontend]($docs/learning/frontend/index.md) and [backend]($docs/learning/backend/index.md).\n */\n/**\n * @docs-group-description Entities\n * Definitions of the \"props\" interfaces and types that define the [wire format]($docs/learning/wireformat.md) for communication between the frontend and backend about entities (models, elements, etc) contained in an iModel.\n */\n/**\n * @docs-group-description Codes\n * Types for working with [Codes]($docs/bis/guide/fundamentals/codes.md).\n */\n/**\n * @docs-group-description Geometry\n * Types for working with geometry.\n */\n/**\n * @docs-group-description Serialization\n * Types for serializing geometry\n */\n/**\n * @docs-group-description Views\n * Types for defining graphical views of the contents of an iModel.\n */\n/**\n * @docs-group-description DisplayStyles\n * Types for describing how the contents of Views should be rendered.\n */\n/**\n * @docs-group-description Rendering\n * Types describing geometry, views, and symbology for consumption by a display system.\n */\n/**\n * @docs-group-description Symbology\n * Types that define the appearance of geometry.\n */\n/**\n * @docs-group-description iModels\n * Types for working with [iModels]($docs/learning/IModels.md) in both the frontend and backend.\n */\n/**\n * @docs-group-description RpcInterface\n * Types for working with [RpcInterfaces]($docs/learning/RpcInterface.md).\n */\n/**\n * @docs-group-description IpcSocket\n * Types for working with [IpcInterfaces]($docs/learning/IpcInterface.md).\n */\n/**\n * @docs-group-description ECSQL\n * Types for working with [ECSQL]($docs/learning/ECSQL.md), [Spatial Queries]($docs/learning/SpatialQueries.md), and [ECSQL Geometry Functions]($docs/learning/GeometrySqlFuncs.md).\n */\n/**\n * @docs-group-description Logging\n * Logger categories used by this package.\n */\n/**\n * @docs-group-description CloudStorage\n * Types for working with Cloud Storage.\n */\n/**\n * @docs-group-description Tween\n * Tweening library adapted from tween.js.\n */\n/**\n * @docs-group-description Tile\n * Types for working with 3d tile formats.\n */\n/**\n * @docs-group-description Utils\n * Miscellaneous utility classes.\n */\n/**\n * @docs-group-description NativeApp\n * [Native applications]($docs/learning/NativeApps.md)\n */\n/**\n * @docs-group-description Localization\n * Classes for internationalization and localization of your app.\n */\n/**\n * @docs-group-description Authorization\n * Classes for managing AccessToken used for all requests in other classes.\n */\n/**\n * @docs-group-description RealityData\n * Types for working with the RealityData API.\n */\n/**\n * @docs-group-description MapLayers\n * Types for working with the MapLayers API.\n */\n/**\n * @docs-group-description Annotation\n * APIs for producing and manipulating annotations like text, dimensions, and labels.\n */\n"]}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/** @packageDocumentation
|
|
2
|
+
* @module Rendering
|
|
3
|
+
*/
|
|
4
|
+
import { Id64, Id64String, UintArray } from "@itwin/core-bentley";
|
|
5
|
+
import { BatchType, ComputeNodeId, FeatureTable, ModelFeature, PackedFeature, PackedFeatureWithIndex, RenderFeatureTable } from "../FeatureTable";
|
|
6
|
+
/**
|
|
7
|
+
* An immutable, packed representation of a [[FeatureTable]]. The features are packed into a single array of 32-bit integer values,
|
|
8
|
+
* wherein each feature occupies 3 32-bit integers.
|
|
9
|
+
* @internal
|
|
10
|
+
*/
|
|
11
|
+
export declare class PackedFeatureTable implements RenderFeatureTable {
|
|
12
|
+
readonly data: Uint32Array;
|
|
13
|
+
readonly batchModelId: Id64String;
|
|
14
|
+
readonly batchModelIdPair: Id64.Uint32Pair;
|
|
15
|
+
readonly numFeatures: number;
|
|
16
|
+
readonly anyDefined: boolean;
|
|
17
|
+
readonly type: BatchType;
|
|
18
|
+
animationNodeIds?: UintArray;
|
|
19
|
+
get byteLength(): number;
|
|
20
|
+
/** Construct a PackedFeatureTable from the packed binary data.
|
|
21
|
+
* This is used internally when deserializing Tiles in iMdl format.
|
|
22
|
+
* @internal
|
|
23
|
+
*/
|
|
24
|
+
constructor(data: Uint32Array, modelId: Id64String, numFeatures: number, type: BatchType, animationNodeIds?: UintArray);
|
|
25
|
+
/** Create a packed feature table from a [[FeatureTable]]. */
|
|
26
|
+
static pack(featureTable: FeatureTable): PackedFeatureTable;
|
|
27
|
+
/** Retrieve the Feature associated with the specified index. */
|
|
28
|
+
getFeature(featureIndex: number, result: ModelFeature): ModelFeature;
|
|
29
|
+
/** Returns the Feature associated with the specified index, or undefined if the index is out of range. */
|
|
30
|
+
findFeature(featureIndex: number, result: ModelFeature): ModelFeature | undefined;
|
|
31
|
+
/** @internal */
|
|
32
|
+
getElementIdPair(featureIndex: number, out?: Id64.Uint32Pair): Id64.Uint32Pair;
|
|
33
|
+
/** @internal */
|
|
34
|
+
getSubCategoryIdPair(featureIndex: number): Id64.Uint32Pair;
|
|
35
|
+
/** @internal */
|
|
36
|
+
getAnimationNodeId(featureIndex: number): number;
|
|
37
|
+
/** @internal */
|
|
38
|
+
getPackedFeature(featureIndex: number, result: PackedFeature): PackedFeature;
|
|
39
|
+
getModelIdPair(_featureIndex: number, out: Id64.Uint32Pair): Id64.Uint32Pair;
|
|
40
|
+
/** Returns the element ID of the Feature associated with the specified index, or undefined if the index is out of range. */
|
|
41
|
+
findElementId(featureIndex: number): Id64String | undefined;
|
|
42
|
+
/** Return true if this table contains exactly 1 feature. */
|
|
43
|
+
get isUniform(): boolean;
|
|
44
|
+
/** If this table contains exactly 1 feature, return it. */
|
|
45
|
+
getUniform(result: ModelFeature): ModelFeature | undefined;
|
|
46
|
+
get isVolumeClassifier(): boolean;
|
|
47
|
+
get isPlanarClassifier(): boolean;
|
|
48
|
+
get isClassifier(): boolean;
|
|
49
|
+
/** Unpack the features into a [[FeatureTable]]. */
|
|
50
|
+
unpack(): FeatureTable;
|
|
51
|
+
populateAnimationNodeIds(computeNodeId: ComputeNodeId, maxNodeId: number): void;
|
|
52
|
+
iterator(output: PackedFeatureWithIndex): Iterator<PackedFeatureWithIndex>;
|
|
53
|
+
iterable(output: PackedFeatureWithIndex): Iterable<PackedFeatureWithIndex>;
|
|
54
|
+
private get _subCategoriesOffset();
|
|
55
|
+
private readId;
|
|
56
|
+
}
|
|
57
|
+
interface PackedFeatureModelEntry {
|
|
58
|
+
lastFeatureIndex: number;
|
|
59
|
+
idLower: number;
|
|
60
|
+
idUpper: number;
|
|
61
|
+
}
|
|
62
|
+
/** A table of model Ids associated with a [[MultiModelPackedFeatureTable]].
|
|
63
|
+
* The feature indices in the packed feature table are grouped together by model, such that the first N features belong to model 1, the next M features to model 2, and so on.
|
|
64
|
+
* The model table itself consists of one entry per model, where each entry looks like:
|
|
65
|
+
* indexOfLastFeatureInModel: u32
|
|
66
|
+
* modelId: u64
|
|
67
|
+
* The modelId associated with a feature can therefore be derived by finding the entry in the model table with the highest indexOfLastFeatureInModel no greater than the feature index.
|
|
68
|
+
* This lookup can be optimized using binary search.
|
|
69
|
+
* Moreover, while iterating the feature table in sequence, the model table can be iterated in parallel so that no per-feature lookup of model Id is required.
|
|
70
|
+
* @internal
|
|
71
|
+
*/
|
|
72
|
+
export declare class PackedFeatureModelTable {
|
|
73
|
+
private readonly _data;
|
|
74
|
+
constructor(data: Uint32Array);
|
|
75
|
+
/** The number of models in the table. */
|
|
76
|
+
get length(): number;
|
|
77
|
+
get byteLength(): number;
|
|
78
|
+
private getLastFeatureIndex;
|
|
79
|
+
getEntry(modelIndex: number, result: PackedFeatureModelEntry): PackedFeatureModelEntry;
|
|
80
|
+
/** Get the Id of the model associated with the specified feature, or an invalid Id if the feature is not associated with any model. */
|
|
81
|
+
getModelIdPair(featureIndex: number, result?: Id64.Uint32Pair): Id64.Uint32Pair;
|
|
82
|
+
}
|
|
83
|
+
/** A PackedFeatureTable with a PackedFeatureModelTable appended to it, capable of storing features belonging to more than one model.
|
|
84
|
+
* @internal
|
|
85
|
+
*/
|
|
86
|
+
export declare class MultiModelPackedFeatureTable implements RenderFeatureTable {
|
|
87
|
+
private readonly _features;
|
|
88
|
+
private readonly _models;
|
|
89
|
+
constructor(features: PackedFeatureTable, models: PackedFeatureModelTable);
|
|
90
|
+
static create(data: Uint32Array, batchModelId: Id64String, numFeatures: number, type: BatchType, numSubCategories: number): MultiModelPackedFeatureTable;
|
|
91
|
+
get batchModelId(): string;
|
|
92
|
+
get batchModelIdPair(): Id64.Uint32Pair;
|
|
93
|
+
get numFeatures(): number;
|
|
94
|
+
get type(): BatchType;
|
|
95
|
+
get animationNodeIds(): UintArray | undefined;
|
|
96
|
+
set animationNodeIds(ids: UintArray | undefined);
|
|
97
|
+
get byteLength(): number;
|
|
98
|
+
getPackedFeature(featureIndex: number, result: PackedFeature): PackedFeature;
|
|
99
|
+
getFeature(featureIndex: number, result: ModelFeature): ModelFeature;
|
|
100
|
+
findFeature(featureIndex: number, result: ModelFeature): ModelFeature | undefined;
|
|
101
|
+
getElementIdPair(featureIndex: number, out: Id64.Uint32Pair): Id64.Uint32Pair;
|
|
102
|
+
getModelIdPair(featureIndex: number, out: Id64.Uint32Pair): Id64.Uint32Pair;
|
|
103
|
+
findElementId(featureIndex: number): Id64String | undefined;
|
|
104
|
+
iterator(output: PackedFeatureWithIndex): Iterator<PackedFeatureWithIndex>;
|
|
105
|
+
iterable(output: PackedFeatureWithIndex): Iterable<PackedFeatureWithIndex>;
|
|
106
|
+
getAnimationNodeId(featureIndex: number): number;
|
|
107
|
+
populateAnimationNodeIds(computeNodeId: ComputeNodeId, maxNodeId: number): void;
|
|
108
|
+
}
|
|
109
|
+
export declare function createPackedFeature(): PackedFeature;
|
|
110
|
+
export {};
|
|
111
|
+
//# sourceMappingURL=PackedFeatureTable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PackedFeatureTable.d.ts","sourceRoot":"","sources":["../../../src/internal/PackedFeatureTable.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EACG,IAAI,EAAE,UAAU,EAAE,SAAS,EACpC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,SAAS,EAAE,aAAa,EAAW,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAG3J;;;;GAIG;AACH,qBAAa,kBAAmB,YAAW,kBAAkB;IAC3D,SAAgB,IAAI,EAAE,WAAW,CAAC;IAClC,SAAgB,YAAY,EAAE,UAAU,CAAC;IACzC,SAAgB,gBAAgB,EAAE,IAAI,CAAC,UAAU,CAAC;IAClD,SAAgB,WAAW,EAAE,MAAM,CAAC;IACpC,SAAgB,UAAU,EAAE,OAAO,CAAC;IACpC,SAAgB,IAAI,EAAE,SAAS,CAAC;IACzB,gBAAgB,CAAC,EAAE,SAAS,CAAC;IAEpC,IAAW,UAAU,IAAI,MAAM,CAAiC;IAEhE;;;OAGG;gBACgB,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,gBAAgB,CAAC,EAAE,SAAS;IAwB7H,6DAA6D;WAC/C,IAAI,CAAC,YAAY,EAAE,YAAY,GAAG,kBAAkB;IAuClE,gEAAgE;IACzD,UAAU,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,GAAG,YAAY;IAK3E,0GAA0G;IACnG,WAAW,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,GAAG,YAAY,GAAG,SAAS;IAIxF,gBAAgB;IACT,gBAAgB,CAAC,YAAY,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,IAAI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AC,UAAU,GAAG,IAAI,CAAC,UAAU;IAI7E,cAAc,CAAC,YAAY,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU;IAK3E,aAAa,CAAC,YAAY,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS;IAIzD,QAAQ,CAAC,MAAM,EAAE,sBAAsB,GAAG,QAAQ,CAAC,sBAAsB,CAAC;IAiB5E,QAAQ,CAAC,MAAM,EAAE,sBAAsB,GAAG,QAAQ,CAAC,sBAAsB,CAAC;IAM1E,kBAAkB,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM;IAIhD,wBAAwB,CAAC,aAAa,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI;CAGvF;AAED,wBAAgB,mBAAmB,IAAI,aAAa,CASnD"}
|
|
@@ -0,0 +1,342 @@
|
|
|
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 Rendering
|
|
7
|
+
*/
|
|
8
|
+
import { assert, Id64, } from "@itwin/core-bentley";
|
|
9
|
+
import { BatchType, Feature, FeatureTable, ModelFeature, PackedFeature } from "../FeatureTable";
|
|
10
|
+
import { GeometryClass } from "../GeometryParams";
|
|
11
|
+
/**
|
|
12
|
+
* An immutable, packed representation of a [[FeatureTable]]. The features are packed into a single array of 32-bit integer values,
|
|
13
|
+
* wherein each feature occupies 3 32-bit integers.
|
|
14
|
+
* @internal
|
|
15
|
+
*/
|
|
16
|
+
export class PackedFeatureTable {
|
|
17
|
+
get byteLength() { return this.data.byteLength; }
|
|
18
|
+
/** Construct a PackedFeatureTable from the packed binary data.
|
|
19
|
+
* This is used internally when deserializing Tiles in iMdl format.
|
|
20
|
+
* @internal
|
|
21
|
+
*/
|
|
22
|
+
constructor(data, modelId, numFeatures, type, animationNodeIds) {
|
|
23
|
+
this.data = data;
|
|
24
|
+
this.batchModelId = modelId;
|
|
25
|
+
this.batchModelIdPair = Id64.getUint32Pair(modelId);
|
|
26
|
+
this.numFeatures = numFeatures;
|
|
27
|
+
this.type = type;
|
|
28
|
+
this.animationNodeIds = animationNodeIds;
|
|
29
|
+
switch (this.numFeatures) {
|
|
30
|
+
case 0:
|
|
31
|
+
this.anyDefined = false;
|
|
32
|
+
break;
|
|
33
|
+
case 1:
|
|
34
|
+
this.anyDefined = ModelFeature.isDefined(this.getFeature(0, ModelFeature.create()));
|
|
35
|
+
break;
|
|
36
|
+
default:
|
|
37
|
+
this.anyDefined = true;
|
|
38
|
+
break;
|
|
39
|
+
}
|
|
40
|
+
assert(this.data.length >= this._subCategoriesOffset);
|
|
41
|
+
assert(undefined === this.animationNodeIds || this.animationNodeIds.length === this.numFeatures);
|
|
42
|
+
}
|
|
43
|
+
/** Create a packed feature table from a [[FeatureTable]]. */
|
|
44
|
+
static pack(featureTable) {
|
|
45
|
+
// We must determine how many subcategories we have ahead of time to compute the size of the Uint32Array, as
|
|
46
|
+
// the array cannot be resized after it is created.
|
|
47
|
+
// We are not too worried about this as FeatureTables created on the front-end will contain few if any features; those obtained from the
|
|
48
|
+
// back-end arrive within tiles already in the packed format.
|
|
49
|
+
const subcategories = new Map();
|
|
50
|
+
for (const iv of featureTable.getArray()) {
|
|
51
|
+
const found = subcategories.get(iv.value.subCategoryId.toString());
|
|
52
|
+
if (undefined === found)
|
|
53
|
+
subcategories.set(iv.value.subCategoryId, subcategories.size);
|
|
54
|
+
}
|
|
55
|
+
// We need 3 32-bit integers per feature, plus 2 32-bit integers per subcategory.
|
|
56
|
+
const subCategoriesOffset = 3 * featureTable.length;
|
|
57
|
+
const nUint32s = subCategoriesOffset + 2 * subcategories.size;
|
|
58
|
+
const uint32s = new Uint32Array(nUint32s);
|
|
59
|
+
for (const iv of featureTable.getArray()) {
|
|
60
|
+
const feature = iv.value;
|
|
61
|
+
const index = iv.index * 3;
|
|
62
|
+
let subCategoryIndex = subcategories.get(feature.subCategoryId);
|
|
63
|
+
assert(undefined !== subCategoryIndex); // we inserted it above...
|
|
64
|
+
subCategoryIndex |= (feature.geometryClass << 24);
|
|
65
|
+
uint32s[index + 0] = Id64.getLowerUint32(feature.elementId);
|
|
66
|
+
uint32s[index + 1] = Id64.getUpperUint32(feature.elementId);
|
|
67
|
+
uint32s[index + 2] = subCategoryIndex;
|
|
68
|
+
}
|
|
69
|
+
subcategories.forEach((index, id, _map) => {
|
|
70
|
+
const index32 = subCategoriesOffset + 2 * index;
|
|
71
|
+
uint32s[index32 + 0] = Id64.getLowerUint32(id);
|
|
72
|
+
uint32s[index32 + 1] = Id64.getUpperUint32(id);
|
|
73
|
+
});
|
|
74
|
+
return new PackedFeatureTable(uint32s, featureTable.modelId, featureTable.length, featureTable.type);
|
|
75
|
+
}
|
|
76
|
+
/** Retrieve the Feature associated with the specified index. */
|
|
77
|
+
getFeature(featureIndex, result) {
|
|
78
|
+
const packed = this.getPackedFeature(featureIndex, scratchPackedFeature);
|
|
79
|
+
return ModelFeature.unpack(packed, result, this.batchModelId);
|
|
80
|
+
}
|
|
81
|
+
/** Returns the Feature associated with the specified index, or undefined if the index is out of range. */
|
|
82
|
+
findFeature(featureIndex, result) {
|
|
83
|
+
return featureIndex < this.numFeatures ? this.getFeature(featureIndex, result) : undefined;
|
|
84
|
+
}
|
|
85
|
+
/** @internal */
|
|
86
|
+
getElementIdPair(featureIndex, out) {
|
|
87
|
+
out = out ?? { lower: 0, upper: 0 };
|
|
88
|
+
assert(featureIndex < this.numFeatures);
|
|
89
|
+
const offset = 3 * featureIndex;
|
|
90
|
+
out.lower = this.data[offset];
|
|
91
|
+
out.upper = this.data[offset + 1];
|
|
92
|
+
return out;
|
|
93
|
+
}
|
|
94
|
+
/** @internal */
|
|
95
|
+
getSubCategoryIdPair(featureIndex) {
|
|
96
|
+
const index = 3 * featureIndex;
|
|
97
|
+
let subCatIndex = this.data[index + 2];
|
|
98
|
+
subCatIndex = (subCatIndex & 0x00ffffff) >>> 0;
|
|
99
|
+
subCatIndex = subCatIndex * 2 + this._subCategoriesOffset;
|
|
100
|
+
return { lower: this.data[subCatIndex], upper: this.data[subCatIndex + 1] };
|
|
101
|
+
}
|
|
102
|
+
/** @internal */
|
|
103
|
+
getAnimationNodeId(featureIndex) {
|
|
104
|
+
return undefined !== this.animationNodeIds && featureIndex < this.numFeatures ? this.animationNodeIds[featureIndex] : 0;
|
|
105
|
+
}
|
|
106
|
+
/** @internal */
|
|
107
|
+
getPackedFeature(featureIndex, result) {
|
|
108
|
+
assert(featureIndex < this.numFeatures);
|
|
109
|
+
const index32 = 3 * featureIndex;
|
|
110
|
+
result.elementId.lower = this.data[index32];
|
|
111
|
+
result.elementId.upper = this.data[index32 + 1];
|
|
112
|
+
const subCatIndexAndClass = this.data[index32 + 2];
|
|
113
|
+
result.geometryClass = (subCatIndexAndClass >>> 24) & 0xff;
|
|
114
|
+
let subCatIndex = (subCatIndexAndClass & 0x00ffffff) >>> 0;
|
|
115
|
+
subCatIndex = subCatIndex * 2 + this._subCategoriesOffset;
|
|
116
|
+
result.subCategoryId.lower = this.data[subCatIndex];
|
|
117
|
+
result.subCategoryId.upper = this.data[subCatIndex + 1];
|
|
118
|
+
result.animationNodeId = this.getAnimationNodeId(featureIndex);
|
|
119
|
+
result.modelId.lower = this.batchModelIdPair.lower;
|
|
120
|
+
result.modelId.upper = this.batchModelIdPair.upper;
|
|
121
|
+
return result;
|
|
122
|
+
}
|
|
123
|
+
getModelIdPair(_featureIndex, out) {
|
|
124
|
+
out.lower = this.batchModelIdPair.lower;
|
|
125
|
+
out.upper = this.batchModelIdPair.upper;
|
|
126
|
+
return out;
|
|
127
|
+
}
|
|
128
|
+
/** Returns the element ID of the Feature associated with the specified index, or undefined if the index is out of range. */
|
|
129
|
+
findElementId(featureIndex) {
|
|
130
|
+
if (featureIndex >= this.numFeatures)
|
|
131
|
+
return undefined;
|
|
132
|
+
else
|
|
133
|
+
return this.readId(3 * featureIndex);
|
|
134
|
+
}
|
|
135
|
+
/** Return true if this table contains exactly 1 feature. */
|
|
136
|
+
get isUniform() { return 1 === this.numFeatures; }
|
|
137
|
+
/** If this table contains exactly 1 feature, return it. */
|
|
138
|
+
getUniform(result) {
|
|
139
|
+
return this.isUniform ? this.getFeature(0, result) : undefined;
|
|
140
|
+
}
|
|
141
|
+
get isVolumeClassifier() { return BatchType.VolumeClassifier === this.type; }
|
|
142
|
+
get isPlanarClassifier() { return BatchType.VolumeClassifier === this.type; }
|
|
143
|
+
get isClassifier() { return this.isVolumeClassifier || this.isPlanarClassifier; }
|
|
144
|
+
/** Unpack the features into a [[FeatureTable]]. */
|
|
145
|
+
unpack() {
|
|
146
|
+
const table = new FeatureTable(this.numFeatures, this.batchModelId);
|
|
147
|
+
const feature = ModelFeature.create();
|
|
148
|
+
for (let i = 0; i < this.numFeatures; i++) {
|
|
149
|
+
this.getFeature(i, feature);
|
|
150
|
+
table.insertWithIndex(new Feature(feature.elementId, feature.subCategoryId, feature.geometryClass), i);
|
|
151
|
+
}
|
|
152
|
+
return table;
|
|
153
|
+
}
|
|
154
|
+
populateAnimationNodeIds(computeNodeId, maxNodeId) {
|
|
155
|
+
assert(undefined === this.animationNodeIds);
|
|
156
|
+
this.animationNodeIds = populateAnimationNodeIds(this, computeNodeId, maxNodeId);
|
|
157
|
+
}
|
|
158
|
+
*iterator(output) {
|
|
159
|
+
for (let i = 0; i < this.numFeatures; i++) {
|
|
160
|
+
this.getPackedFeature(i, output);
|
|
161
|
+
output.index = i;
|
|
162
|
+
yield output;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
iterable(output) {
|
|
166
|
+
return {
|
|
167
|
+
[Symbol.iterator]: () => this.iterator(output),
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
get _subCategoriesOffset() { return this.numFeatures * 3; }
|
|
171
|
+
readId(offset32) {
|
|
172
|
+
return Id64.fromUint32Pair(this.data[offset32], this.data[offset32 + 1]);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
const scratchPackedFeatureModelEntry = { lastFeatureIndex: -1, idLower: -1, idUpper: -1 };
|
|
176
|
+
/** A table of model Ids associated with a [[MultiModelPackedFeatureTable]].
|
|
177
|
+
* The feature indices in the packed feature table are grouped together by model, such that the first N features belong to model 1, the next M features to model 2, and so on.
|
|
178
|
+
* The model table itself consists of one entry per model, where each entry looks like:
|
|
179
|
+
* indexOfLastFeatureInModel: u32
|
|
180
|
+
* modelId: u64
|
|
181
|
+
* The modelId associated with a feature can therefore be derived by finding the entry in the model table with the highest indexOfLastFeatureInModel no greater than the feature index.
|
|
182
|
+
* This lookup can be optimized using binary search.
|
|
183
|
+
* Moreover, while iterating the feature table in sequence, the model table can be iterated in parallel so that no per-feature lookup of model Id is required.
|
|
184
|
+
* @internal
|
|
185
|
+
*/
|
|
186
|
+
export class PackedFeatureModelTable {
|
|
187
|
+
constructor(data) {
|
|
188
|
+
this._data = data;
|
|
189
|
+
assert(this._data.length % 3 === 0);
|
|
190
|
+
}
|
|
191
|
+
/** The number of models in the table. */
|
|
192
|
+
get length() {
|
|
193
|
+
return this._data.length / 3;
|
|
194
|
+
}
|
|
195
|
+
get byteLength() {
|
|
196
|
+
return this._data.byteLength;
|
|
197
|
+
}
|
|
198
|
+
getLastFeatureIndex(modelIndex) {
|
|
199
|
+
return this._data[modelIndex * 3];
|
|
200
|
+
}
|
|
201
|
+
getEntry(modelIndex, result) {
|
|
202
|
+
if (modelIndex >= this.length) {
|
|
203
|
+
result.idLower = result.idUpper = 0;
|
|
204
|
+
result.lastFeatureIndex = Number.MAX_SAFE_INTEGER;
|
|
205
|
+
return result;
|
|
206
|
+
}
|
|
207
|
+
const index = modelIndex * 3;
|
|
208
|
+
result.lastFeatureIndex = this._data[index + 0];
|
|
209
|
+
result.idLower = this._data[index + 1];
|
|
210
|
+
result.idUpper = this._data[index + 2];
|
|
211
|
+
return result;
|
|
212
|
+
}
|
|
213
|
+
/** Get the Id of the model associated with the specified feature, or an invalid Id if the feature is not associated with any model. */
|
|
214
|
+
getModelIdPair(featureIndex, result) {
|
|
215
|
+
if (!result)
|
|
216
|
+
result = { lower: 0, upper: 0 };
|
|
217
|
+
else
|
|
218
|
+
result.lower = result.upper = 0;
|
|
219
|
+
let first = 0;
|
|
220
|
+
const last = this.length;
|
|
221
|
+
let count = last;
|
|
222
|
+
while (count > 0) {
|
|
223
|
+
const step = Math.floor(count / 2);
|
|
224
|
+
const mid = first + step;
|
|
225
|
+
const lastFeatureIndex = this.getLastFeatureIndex(mid);
|
|
226
|
+
if (featureIndex > lastFeatureIndex) {
|
|
227
|
+
first = mid + 1;
|
|
228
|
+
count -= step + 1;
|
|
229
|
+
}
|
|
230
|
+
else {
|
|
231
|
+
count = step;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
if (first < last) {
|
|
235
|
+
result.lower = this._data[first * 3 + 1];
|
|
236
|
+
result.upper = this._data[first * 3 + 2];
|
|
237
|
+
}
|
|
238
|
+
return result;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
/** A PackedFeatureTable with a PackedFeatureModelTable appended to it, capable of storing features belonging to more than one model.
|
|
242
|
+
* @internal
|
|
243
|
+
*/
|
|
244
|
+
export class MultiModelPackedFeatureTable {
|
|
245
|
+
constructor(features, models) {
|
|
246
|
+
this._features = features;
|
|
247
|
+
this._models = models;
|
|
248
|
+
}
|
|
249
|
+
static create(data, batchModelId, numFeatures, type, numSubCategories) {
|
|
250
|
+
const modelTableOffset = 3 * numFeatures + 2 * numSubCategories;
|
|
251
|
+
const featureData = data.subarray(0, modelTableOffset);
|
|
252
|
+
const features = new PackedFeatureTable(featureData, batchModelId, numFeatures, type);
|
|
253
|
+
const modelData = data.subarray(modelTableOffset);
|
|
254
|
+
const models = new PackedFeatureModelTable(modelData);
|
|
255
|
+
return new MultiModelPackedFeatureTable(features, models);
|
|
256
|
+
}
|
|
257
|
+
get batchModelId() { return this._features.batchModelId; }
|
|
258
|
+
get batchModelIdPair() { return this._features.batchModelIdPair; }
|
|
259
|
+
get numFeatures() { return this._features.numFeatures; }
|
|
260
|
+
get type() { return this._features.type; }
|
|
261
|
+
get animationNodeIds() { return this._features.animationNodeIds; }
|
|
262
|
+
set animationNodeIds(ids) { this._features.animationNodeIds = ids; }
|
|
263
|
+
get byteLength() {
|
|
264
|
+
return this._features.byteLength + this._models.byteLength;
|
|
265
|
+
}
|
|
266
|
+
getPackedFeature(featureIndex, result) {
|
|
267
|
+
this._features.getPackedFeature(featureIndex, result);
|
|
268
|
+
this._models.getModelIdPair(featureIndex, result.modelId);
|
|
269
|
+
return result;
|
|
270
|
+
}
|
|
271
|
+
getFeature(featureIndex, result) {
|
|
272
|
+
const packed = this.getPackedFeature(featureIndex, scratchPackedFeature);
|
|
273
|
+
return ModelFeature.unpack(packed, result);
|
|
274
|
+
}
|
|
275
|
+
findFeature(featureIndex, result) {
|
|
276
|
+
return featureIndex < this.numFeatures ? this.getFeature(featureIndex, result) : undefined;
|
|
277
|
+
}
|
|
278
|
+
getElementIdPair(featureIndex, out) {
|
|
279
|
+
return this._features.getElementIdPair(featureIndex, out);
|
|
280
|
+
}
|
|
281
|
+
getModelIdPair(featureIndex, out) {
|
|
282
|
+
this._models.getModelIdPair(featureIndex, out);
|
|
283
|
+
return out;
|
|
284
|
+
}
|
|
285
|
+
findElementId(featureIndex) {
|
|
286
|
+
return this._features.findElementId(featureIndex);
|
|
287
|
+
}
|
|
288
|
+
*iterator(output) {
|
|
289
|
+
// Rather than perform a binary search on the model table to find each feature's model Id, traverse the model table in parallel with the feature table.
|
|
290
|
+
let modelIndex = 0;
|
|
291
|
+
const modelEntry = this._models.getEntry(modelIndex, scratchPackedFeatureModelEntry);
|
|
292
|
+
for (let featureIndex = 0; featureIndex < this.numFeatures; featureIndex++) {
|
|
293
|
+
if (featureIndex > modelEntry.lastFeatureIndex)
|
|
294
|
+
this._models.getEntry(++modelIndex, modelEntry);
|
|
295
|
+
this._features.getPackedFeature(featureIndex, output);
|
|
296
|
+
output.modelId.lower = modelEntry.idLower;
|
|
297
|
+
output.modelId.upper = modelEntry.idUpper;
|
|
298
|
+
output.index = featureIndex;
|
|
299
|
+
yield output;
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
iterable(output) {
|
|
303
|
+
return {
|
|
304
|
+
[Symbol.iterator]: () => this.iterator(output),
|
|
305
|
+
};
|
|
306
|
+
}
|
|
307
|
+
getAnimationNodeId(featureIndex) {
|
|
308
|
+
return this._features.getAnimationNodeId(featureIndex);
|
|
309
|
+
}
|
|
310
|
+
populateAnimationNodeIds(computeNodeId, maxNodeId) {
|
|
311
|
+
this._features.animationNodeIds = populateAnimationNodeIds(this, computeNodeId, maxNodeId);
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
export function createPackedFeature() {
|
|
315
|
+
const pair = { upper: 0, lower: 0 };
|
|
316
|
+
return {
|
|
317
|
+
modelId: { ...pair },
|
|
318
|
+
elementId: { ...pair },
|
|
319
|
+
subCategoryId: { ...pair },
|
|
320
|
+
geometryClass: GeometryClass.Primary,
|
|
321
|
+
animationNodeId: 0,
|
|
322
|
+
};
|
|
323
|
+
}
|
|
324
|
+
const scratchPackedFeature = createPackedFeature();
|
|
325
|
+
function populateAnimationNodeIds(table, computeNodeId, maxNodeId) {
|
|
326
|
+
assert(maxNodeId > 0);
|
|
327
|
+
let nodeIds;
|
|
328
|
+
const outputFeature = PackedFeature.createWithIndex();
|
|
329
|
+
for (const feature of table.iterable(outputFeature)) {
|
|
330
|
+
const nodeId = computeNodeId(feature);
|
|
331
|
+
assert(nodeId <= maxNodeId);
|
|
332
|
+
if (0 !== nodeId) {
|
|
333
|
+
if (!nodeIds) {
|
|
334
|
+
const size = table.numFeatures;
|
|
335
|
+
nodeIds = maxNodeId < 0x100 ? new Uint8Array(size) : (maxNodeId < 0x10000 ? new Uint16Array(size) : new Uint32Array(size));
|
|
336
|
+
}
|
|
337
|
+
nodeIds[feature.index] = nodeId;
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
return nodeIds;
|
|
341
|
+
}
|
|
342
|
+
//# sourceMappingURL=PackedFeatureTable.js.map
|