@itwin/core-common 5.2.0-dev.30 → 5.2.0-dev.32
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/lib/cjs/AmbientOcclusion.js.map +1 -1
- package/lib/cjs/AnalysisStyle.js.map +1 -1
- package/lib/cjs/Atmosphere.js.map +1 -1
- package/lib/cjs/AuthorizationClient.js.map +1 -1
- package/lib/cjs/BackgroundMapProvider.js.map +1 -1
- package/lib/cjs/BackgroundMapSettings.js.map +1 -1
- package/lib/cjs/Base64EncodedString.js.map +1 -1
- package/lib/cjs/BlobReader.js.map +1 -1
- package/lib/cjs/BriefcaseTypes.d.ts +2 -0
- package/lib/cjs/BriefcaseTypes.d.ts.map +1 -1
- package/lib/cjs/BriefcaseTypes.js.map +1 -1
- package/lib/cjs/Camera.js.map +1 -1
- package/lib/cjs/CatalogIModel.js.map +1 -1
- package/lib/cjs/CesiumIonAssets.js.map +1 -1
- package/lib/cjs/ChangedElements.js.map +1 -1
- package/lib/cjs/ChangedEntities.js.map +1 -1
- package/lib/cjs/ChangesetProps.js.map +1 -1
- package/lib/cjs/ClipStyle.js.map +1 -1
- package/lib/cjs/Code.js.map +1 -1
- package/lib/cjs/ColorByName.js.map +1 -1
- package/lib/cjs/ColorDef.js.map +1 -1
- package/lib/cjs/CommonLoggerCategory.js.map +1 -1
- package/lib/cjs/ConcurrentQuery.js.map +1 -1
- package/lib/cjs/ContextRealityModel.js.map +1 -1
- package/lib/cjs/ContourDisplay.js.map +1 -1
- package/lib/cjs/DisplayStyleSettings.js.map +1 -1
- package/lib/cjs/ECSchemaProps.js.map +1 -1
- package/lib/cjs/ECSqlReader.js.map +1 -1
- package/lib/cjs/ECSqlTypes.js.map +1 -1
- package/lib/cjs/ElementMesh.js.map +1 -1
- package/lib/cjs/ElementProps.js.map +1 -1
- package/lib/cjs/EmphasizeElementsProps.js.map +1 -1
- package/lib/cjs/EntityProps.js.map +1 -1
- package/lib/cjs/EntityReference.js.map +1 -1
- package/lib/cjs/Environment.js.map +1 -1
- package/lib/cjs/FeatureIndex.js.map +1 -1
- package/lib/cjs/FeatureSymbology.js.map +1 -1
- package/lib/cjs/FeatureTable.js.map +1 -1
- package/lib/cjs/Fonts.js.map +1 -1
- package/lib/cjs/Frustum.js.map +1 -1
- package/lib/cjs/GenericInstanceFilter.js.map +1 -1
- package/lib/cjs/GeoCoordinateServices.js.map +1 -1
- package/lib/cjs/GeometryContainment.js.map +1 -1
- package/lib/cjs/GeometryParams.js.map +1 -1
- package/lib/cjs/GeometrySummary.js.map +1 -1
- package/lib/cjs/Gradient.js.map +1 -1
- package/lib/cjs/GraphicParams.js.map +1 -1
- package/lib/cjs/GroundPlane.js.map +1 -1
- package/lib/cjs/HSLColor.js.map +1 -1
- package/lib/cjs/HSVColor.js.map +1 -1
- package/lib/cjs/HiddenLine.js.map +1 -1
- package/lib/cjs/Hilite.js.map +1 -1
- package/lib/cjs/IModel.js.map +1 -1
- package/lib/cjs/IModelError.js.map +1 -1
- package/lib/cjs/IModelVersion.js.map +1 -1
- package/lib/cjs/ITwinCoreErrors.js.map +1 -1
- package/lib/cjs/Image.js.map +1 -1
- package/lib/cjs/IpcAppProps.js.map +1 -1
- package/lib/cjs/LightSettings.js.map +1 -1
- package/lib/cjs/LinePixels.js.map +1 -1
- package/lib/cjs/Localization.js.map +1 -1
- package/lib/cjs/MapImagerySettings.js.map +1 -1
- package/lib/cjs/MapLayerSettings.js.map +1 -1
- package/lib/cjs/MassProperties.js.map +1 -1
- package/lib/cjs/MaterialProps.js.map +1 -1
- package/lib/cjs/ModelClipGroup.js.map +1 -1
- package/lib/cjs/ModelGeometryChanges.js.map +1 -1
- package/lib/cjs/ModelProps.js.map +1 -1
- package/lib/cjs/NativeAppProps.js.map +1 -1
- package/lib/cjs/OctEncodedNormal.js.map +1 -1
- package/lib/cjs/PlanProjectionSettings.js.map +1 -1
- package/lib/cjs/PlanarClipMask.js.map +1 -1
- package/lib/cjs/QPoint.js.map +1 -1
- package/lib/cjs/RealityDataAccessProps.js.map +1 -1
- package/lib/cjs/RealityModelDisplaySettings.js.map +1 -1
- package/lib/cjs/RenderMaterial.js.map +1 -1
- package/lib/cjs/RenderPolyline.js.map +1 -1
- package/lib/cjs/RenderTexture.js.map +1 -1
- package/lib/cjs/RgbColor.js.map +1 -1
- package/lib/cjs/RpcInterface.js.map +1 -1
- package/lib/cjs/RpcManager.js.map +1 -1
- package/lib/cjs/SessionProps.js.map +1 -1
- package/lib/cjs/SkyBox.js.map +1 -1
- package/lib/cjs/SolarCalculate.js.map +1 -1
- package/lib/cjs/SolarShadows.js.map +1 -1
- package/lib/cjs/SpatialClassification.js.map +1 -1
- package/lib/cjs/SubCategoryAppearance.js.map +1 -1
- package/lib/cjs/SubCategoryOverride.js.map +1 -1
- package/lib/cjs/TerrainSettings.js.map +1 -1
- package/lib/cjs/TextureMapping.js.map +1 -1
- package/lib/cjs/TextureProps.js.map +1 -1
- package/lib/cjs/ThematicDisplay.js.map +1 -1
- package/lib/cjs/Thumbnail.js.map +1 -1
- package/lib/cjs/TileProps.js.map +1 -1
- package/lib/cjs/Tween.js.map +1 -1
- package/lib/cjs/TxnAction.js.map +1 -1
- package/lib/cjs/ViewDetails.js.map +1 -1
- package/lib/cjs/ViewFlags.js.map +1 -1
- package/lib/cjs/ViewProps.js.map +1 -1
- package/lib/cjs/WhiteOnWhiteReversalSettings.js.map +1 -1
- package/lib/cjs/annotation/TextAnnotation.js.map +1 -1
- package/lib/cjs/annotation/TextBlock.d.ts +113 -94
- package/lib/cjs/annotation/TextBlock.d.ts.map +1 -1
- package/lib/cjs/annotation/TextBlock.js +227 -94
- package/lib/cjs/annotation/TextBlock.js.map +1 -1
- package/lib/cjs/annotation/TextBlockGeometryProps.js.map +1 -1
- package/lib/cjs/annotation/TextBlockLayoutResult.d.ts +3 -5
- package/lib/cjs/annotation/TextBlockLayoutResult.d.ts.map +1 -1
- package/lib/cjs/annotation/TextBlockLayoutResult.js.map +1 -1
- package/lib/cjs/annotation/TextField.d.ts +86 -0
- package/lib/cjs/annotation/TextField.d.ts.map +1 -0
- package/lib/cjs/annotation/TextField.js +10 -0
- package/lib/cjs/annotation/TextField.js.map +1 -0
- package/lib/cjs/annotation/TextStyle.d.ts +63 -1
- package/lib/cjs/annotation/TextStyle.d.ts.map +1 -1
- package/lib/cjs/annotation/TextStyle.js +44 -4
- package/lib/cjs/annotation/TextStyle.js.map +1 -1
- package/lib/cjs/core-common.d.ts +1 -0
- package/lib/cjs/core-common.d.ts.map +1 -1
- package/lib/cjs/core-common.js +1 -0
- package/lib/cjs/core-common.js.map +1 -1
- package/lib/cjs/domains/FunctionalElementProps.js.map +1 -1
- package/lib/cjs/domains/GenericElementProps.js.map +1 -1
- package/lib/cjs/geometry/AdditionalTransform.js.map +1 -1
- package/lib/cjs/geometry/AreaPattern.js.map +1 -1
- package/lib/cjs/geometry/BoundingSphere.js.map +1 -1
- package/lib/cjs/geometry/Cartographic.js.map +1 -1
- package/lib/cjs/geometry/CoordinateReferenceSystem.js.map +1 -1
- package/lib/cjs/geometry/ElementGeometry.js.map +1 -1
- package/lib/cjs/geometry/ElementGeometryFB.js.map +1 -1
- package/lib/cjs/geometry/FrustumPlanes.js.map +1 -1
- package/lib/cjs/geometry/GeodeticDatum.js.map +1 -1
- package/lib/cjs/geometry/GeodeticEllipsoid.js.map +1 -1
- package/lib/cjs/geometry/GeometryStream.js.map +1 -1
- package/lib/cjs/geometry/ImageGraphic.js.map +1 -1
- package/lib/cjs/geometry/LineStyle.js.map +1 -1
- package/lib/cjs/geometry/Placement.js.map +1 -1
- package/lib/cjs/geometry/Projection.js.map +1 -1
- package/lib/cjs/geometry/TextString.js.map +1 -1
- package/lib/cjs/internal/BackendTypes.js.map +1 -1
- package/lib/cjs/internal/PackedFeatureTable.js.map +1 -1
- package/lib/cjs/internal/RenderMaterialParams.js.map +1 -1
- package/lib/cjs/internal/RenderMesh.js.map +1 -1
- package/lib/cjs/internal/RenderTextureParams.js.map +1 -1
- package/lib/cjs/internal/Snapping.js.map +1 -1
- package/lib/cjs/internal/annotations/FieldFormatter.d.ts +18 -0
- package/lib/cjs/internal/annotations/FieldFormatter.d.ts.map +1 -0
- package/lib/cjs/internal/annotations/FieldFormatter.js +66 -0
- package/lib/cjs/internal/annotations/FieldFormatter.js.map +1 -0
- package/lib/cjs/internal/cross-package.d.ts +1 -0
- package/lib/cjs/internal/cross-package.d.ts.map +1 -1
- package/lib/cjs/internal/cross-package.js +4 -1
- package/lib/cjs/internal/cross-package.js.map +1 -1
- package/lib/cjs/ipc/IpcSession.js.map +1 -1
- package/lib/cjs/ipc/IpcSocket.js.map +1 -1
- package/lib/cjs/ipc/IpcWebSocket.js.map +1 -1
- package/lib/cjs/ipc/IpcWebSocketTransport.js.map +1 -1
- package/lib/cjs/rpc/DevToolsRpcInterface.js.map +1 -1
- package/lib/cjs/rpc/IModelReadRpcInterface.js.map +1 -1
- package/lib/cjs/rpc/IModelTileRpcInterface.js.map +1 -1
- package/lib/cjs/rpc/SnapshotIModelRpcInterface.js.map +1 -1
- package/lib/cjs/rpc/TestRpcManager.js.map +1 -1
- package/lib/cjs/rpc/core/RpcConfiguration.js.map +1 -1
- package/lib/cjs/rpc/core/RpcConstants.js.map +1 -1
- package/lib/cjs/rpc/core/RpcControl.js.map +1 -1
- package/lib/cjs/rpc/core/RpcInvocation.js.map +1 -1
- package/lib/cjs/rpc/core/RpcMarshaling.js.map +1 -1
- package/lib/cjs/rpc/core/RpcOperation.js.map +1 -1
- package/lib/cjs/rpc/core/RpcPendingQueue.js.map +1 -1
- package/lib/cjs/rpc/core/RpcProtocol.js.map +1 -1
- package/lib/cjs/rpc/core/RpcPush.js.map +1 -1
- package/lib/cjs/rpc/core/RpcRegistry.js.map +1 -1
- package/lib/cjs/rpc/core/RpcRequest.js.map +1 -1
- package/lib/cjs/rpc/core/RpcRequestContext.js.map +1 -1
- package/lib/cjs/rpc/core/RpcRoutingToken.js.map +1 -1
- package/lib/cjs/rpc/core/RpcSessionInvocation.js.map +1 -1
- package/lib/cjs/rpc/web/BentleyCloudRpcManager.js.map +1 -1
- package/lib/cjs/rpc/web/BentleyCloudRpcProtocol.js.map +1 -1
- package/lib/cjs/rpc/web/OpenAPI.js.map +1 -1
- package/lib/cjs/rpc/web/RpcMultipart.js.map +1 -1
- package/lib/cjs/rpc/web/WebAppRpcLogging.js.map +1 -1
- package/lib/cjs/rpc/web/WebAppRpcProtocol.js.map +1 -1
- package/lib/cjs/rpc/web/WebAppRpcRequest.js.map +1 -1
- package/lib/cjs/rpc/web/multipart/RpcMultipartParser.js.map +1 -1
- package/lib/cjs/tile/B3dmTileIO.js.map +1 -1
- package/lib/cjs/tile/CompositeTileIO.js.map +1 -1
- package/lib/cjs/tile/ElementGraphics.js.map +1 -1
- package/lib/cjs/tile/GltfTileIO.js.map +1 -1
- package/lib/cjs/tile/I3dmTileIO.js.map +1 -1
- package/lib/cjs/tile/IModelTileIO.js.map +1 -1
- package/lib/cjs/tile/PntsTileIO.js.map +1 -1
- package/lib/cjs/tile/TileIO.js.map +1 -1
- package/lib/cjs/tile/TileMetadata.js.map +1 -1
- package/lib/cjs/tile/Tileset3dSchema.js.map +1 -1
- package/lib/esm/AmbientOcclusion.js.map +1 -1
- package/lib/esm/AnalysisStyle.js.map +1 -1
- package/lib/esm/Atmosphere.js.map +1 -1
- package/lib/esm/AuthorizationClient.js.map +1 -1
- package/lib/esm/BackgroundMapProvider.js.map +1 -1
- package/lib/esm/BackgroundMapSettings.js.map +1 -1
- package/lib/esm/Base64EncodedString.js.map +1 -1
- package/lib/esm/BlobReader.js.map +1 -1
- package/lib/esm/BriefcaseTypes.d.ts +2 -0
- package/lib/esm/BriefcaseTypes.d.ts.map +1 -1
- package/lib/esm/BriefcaseTypes.js.map +1 -1
- package/lib/esm/Camera.js.map +1 -1
- package/lib/esm/CatalogIModel.js.map +1 -1
- package/lib/esm/CesiumIonAssets.js.map +1 -1
- package/lib/esm/ChangedElements.js.map +1 -1
- package/lib/esm/ChangedEntities.js.map +1 -1
- package/lib/esm/ChangesetProps.js.map +1 -1
- package/lib/esm/ClipStyle.js.map +1 -1
- package/lib/esm/Code.js.map +1 -1
- package/lib/esm/ColorByName.js.map +1 -1
- package/lib/esm/ColorDef.js.map +1 -1
- package/lib/esm/CommonLoggerCategory.js.map +1 -1
- package/lib/esm/ConcurrentQuery.js.map +1 -1
- package/lib/esm/ContextRealityModel.js.map +1 -1
- package/lib/esm/ContourDisplay.js.map +1 -1
- package/lib/esm/DisplayStyleSettings.js.map +1 -1
- package/lib/esm/ECSchemaProps.js.map +1 -1
- package/lib/esm/ECSqlReader.js.map +1 -1
- package/lib/esm/ECSqlTypes.js.map +1 -1
- package/lib/esm/ElementMesh.js.map +1 -1
- package/lib/esm/ElementProps.js.map +1 -1
- package/lib/esm/EmphasizeElementsProps.js.map +1 -1
- package/lib/esm/EntityProps.js.map +1 -1
- package/lib/esm/EntityReference.js.map +1 -1
- package/lib/esm/Environment.js.map +1 -1
- package/lib/esm/FeatureIndex.js.map +1 -1
- package/lib/esm/FeatureSymbology.js.map +1 -1
- package/lib/esm/FeatureTable.js.map +1 -1
- package/lib/esm/Fonts.js.map +1 -1
- package/lib/esm/Frustum.js.map +1 -1
- package/lib/esm/GenericInstanceFilter.js.map +1 -1
- package/lib/esm/GeoCoordinateServices.js.map +1 -1
- package/lib/esm/GeometryContainment.js.map +1 -1
- package/lib/esm/GeometryParams.js.map +1 -1
- package/lib/esm/GeometrySummary.js.map +1 -1
- package/lib/esm/Gradient.js.map +1 -1
- package/lib/esm/GraphicParams.js.map +1 -1
- package/lib/esm/GroundPlane.js.map +1 -1
- package/lib/esm/HSLColor.js.map +1 -1
- package/lib/esm/HSVColor.js.map +1 -1
- package/lib/esm/HiddenLine.js.map +1 -1
- package/lib/esm/Hilite.js.map +1 -1
- package/lib/esm/IModel.js.map +1 -1
- package/lib/esm/IModelError.js.map +1 -1
- package/lib/esm/IModelVersion.js.map +1 -1
- package/lib/esm/ITwinCoreErrors.js.map +1 -1
- package/lib/esm/Image.js.map +1 -1
- package/lib/esm/IpcAppProps.js.map +1 -1
- package/lib/esm/LightSettings.js.map +1 -1
- package/lib/esm/LinePixels.js.map +1 -1
- package/lib/esm/Localization.js.map +1 -1
- package/lib/esm/MapImagerySettings.js.map +1 -1
- package/lib/esm/MapLayerSettings.js.map +1 -1
- package/lib/esm/MassProperties.js.map +1 -1
- package/lib/esm/MaterialProps.js.map +1 -1
- package/lib/esm/ModelClipGroup.js.map +1 -1
- package/lib/esm/ModelGeometryChanges.js.map +1 -1
- package/lib/esm/ModelProps.js.map +1 -1
- package/lib/esm/NativeAppProps.js.map +1 -1
- package/lib/esm/OctEncodedNormal.js.map +1 -1
- package/lib/esm/PlanProjectionSettings.js.map +1 -1
- package/lib/esm/PlanarClipMask.js.map +1 -1
- package/lib/esm/QPoint.js.map +1 -1
- package/lib/esm/RealityDataAccessProps.js.map +1 -1
- package/lib/esm/RealityModelDisplaySettings.js.map +1 -1
- package/lib/esm/RenderMaterial.js.map +1 -1
- package/lib/esm/RenderPolyline.js.map +1 -1
- package/lib/esm/RenderTexture.js.map +1 -1
- package/lib/esm/RgbColor.js.map +1 -1
- package/lib/esm/RpcInterface.js.map +1 -1
- package/lib/esm/RpcManager.js.map +1 -1
- package/lib/esm/SessionProps.js.map +1 -1
- package/lib/esm/SkyBox.js.map +1 -1
- package/lib/esm/SolarCalculate.js.map +1 -1
- package/lib/esm/SolarShadows.js.map +1 -1
- package/lib/esm/SpatialClassification.js.map +1 -1
- package/lib/esm/SubCategoryAppearance.js.map +1 -1
- package/lib/esm/SubCategoryOverride.js.map +1 -1
- package/lib/esm/TerrainSettings.js.map +1 -1
- package/lib/esm/TextureMapping.js.map +1 -1
- package/lib/esm/TextureProps.js.map +1 -1
- package/lib/esm/ThematicDisplay.js.map +1 -1
- package/lib/esm/Thumbnail.js.map +1 -1
- package/lib/esm/TileProps.js.map +1 -1
- package/lib/esm/Tween.js.map +1 -1
- package/lib/esm/TxnAction.js.map +1 -1
- package/lib/esm/ViewDetails.js.map +1 -1
- package/lib/esm/ViewFlags.js.map +1 -1
- package/lib/esm/ViewProps.js.map +1 -1
- package/lib/esm/WhiteOnWhiteReversalSettings.js.map +1 -1
- package/lib/esm/annotation/TextAnnotation.js.map +1 -1
- package/lib/esm/annotation/TextBlock.d.ts +113 -94
- package/lib/esm/annotation/TextBlock.d.ts.map +1 -1
- package/lib/esm/annotation/TextBlock.js +223 -93
- package/lib/esm/annotation/TextBlock.js.map +1 -1
- package/lib/esm/annotation/TextBlockGeometryProps.js.map +1 -1
- package/lib/esm/annotation/TextBlockLayoutResult.d.ts +3 -5
- package/lib/esm/annotation/TextBlockLayoutResult.d.ts.map +1 -1
- package/lib/esm/annotation/TextBlockLayoutResult.js.map +1 -1
- package/lib/esm/annotation/TextField.d.ts +86 -0
- package/lib/esm/annotation/TextField.d.ts.map +1 -0
- package/lib/esm/annotation/TextField.js +9 -0
- package/lib/esm/annotation/TextField.js.map +1 -0
- package/lib/esm/annotation/TextStyle.d.ts +63 -1
- package/lib/esm/annotation/TextStyle.d.ts.map +1 -1
- package/lib/esm/annotation/TextStyle.js +43 -3
- package/lib/esm/annotation/TextStyle.js.map +1 -1
- package/lib/esm/core-common.d.ts +1 -0
- package/lib/esm/core-common.d.ts.map +1 -1
- package/lib/esm/core-common.js +1 -0
- package/lib/esm/core-common.js.map +1 -1
- package/lib/esm/domains/FunctionalElementProps.js.map +1 -1
- package/lib/esm/domains/GenericElementProps.js.map +1 -1
- package/lib/esm/geometry/AdditionalTransform.js.map +1 -1
- package/lib/esm/geometry/AreaPattern.js.map +1 -1
- package/lib/esm/geometry/BoundingSphere.js.map +1 -1
- package/lib/esm/geometry/Cartographic.js.map +1 -1
- package/lib/esm/geometry/CoordinateReferenceSystem.js.map +1 -1
- package/lib/esm/geometry/ElementGeometry.js.map +1 -1
- package/lib/esm/geometry/ElementGeometryFB.js.map +1 -1
- package/lib/esm/geometry/FrustumPlanes.js.map +1 -1
- package/lib/esm/geometry/GeodeticDatum.js.map +1 -1
- package/lib/esm/geometry/GeodeticEllipsoid.js.map +1 -1
- package/lib/esm/geometry/GeometryStream.js.map +1 -1
- package/lib/esm/geometry/ImageGraphic.js.map +1 -1
- package/lib/esm/geometry/LineStyle.js.map +1 -1
- package/lib/esm/geometry/Placement.js.map +1 -1
- package/lib/esm/geometry/Projection.js.map +1 -1
- package/lib/esm/geometry/TextString.js.map +1 -1
- package/lib/esm/internal/BackendTypes.js.map +1 -1
- package/lib/esm/internal/PackedFeatureTable.js.map +1 -1
- package/lib/esm/internal/RenderMaterialParams.js.map +1 -1
- package/lib/esm/internal/RenderMesh.js.map +1 -1
- package/lib/esm/internal/RenderTextureParams.js.map +1 -1
- package/lib/esm/internal/Snapping.js.map +1 -1
- package/lib/esm/internal/annotations/FieldFormatter.d.ts +18 -0
- package/lib/esm/internal/annotations/FieldFormatter.d.ts.map +1 -0
- package/lib/esm/internal/annotations/FieldFormatter.js +62 -0
- package/lib/esm/internal/annotations/FieldFormatter.js.map +1 -0
- package/lib/esm/internal/cross-package.d.ts +1 -0
- package/lib/esm/internal/cross-package.d.ts.map +1 -1
- package/lib/esm/internal/cross-package.js +1 -0
- package/lib/esm/internal/cross-package.js.map +1 -1
- package/lib/esm/ipc/IpcSession.js.map +1 -1
- package/lib/esm/ipc/IpcSocket.js.map +1 -1
- package/lib/esm/ipc/IpcWebSocket.js.map +1 -1
- package/lib/esm/ipc/IpcWebSocketTransport.js.map +1 -1
- package/lib/esm/rpc/DevToolsRpcInterface.js.map +1 -1
- package/lib/esm/rpc/IModelReadRpcInterface.js.map +1 -1
- package/lib/esm/rpc/IModelTileRpcInterface.js.map +1 -1
- package/lib/esm/rpc/SnapshotIModelRpcInterface.js.map +1 -1
- package/lib/esm/rpc/TestRpcManager.js.map +1 -1
- package/lib/esm/rpc/core/RpcConfiguration.js.map +1 -1
- package/lib/esm/rpc/core/RpcConstants.js.map +1 -1
- package/lib/esm/rpc/core/RpcControl.js.map +1 -1
- package/lib/esm/rpc/core/RpcInvocation.js.map +1 -1
- package/lib/esm/rpc/core/RpcMarshaling.js.map +1 -1
- package/lib/esm/rpc/core/RpcOperation.js.map +1 -1
- package/lib/esm/rpc/core/RpcPendingQueue.js.map +1 -1
- package/lib/esm/rpc/core/RpcProtocol.js.map +1 -1
- package/lib/esm/rpc/core/RpcPush.js.map +1 -1
- package/lib/esm/rpc/core/RpcRegistry.js.map +1 -1
- package/lib/esm/rpc/core/RpcRequest.js.map +1 -1
- package/lib/esm/rpc/core/RpcRequestContext.js.map +1 -1
- package/lib/esm/rpc/core/RpcRoutingToken.js.map +1 -1
- package/lib/esm/rpc/core/RpcSessionInvocation.js.map +1 -1
- package/lib/esm/rpc/web/BentleyCloudRpcManager.js.map +1 -1
- package/lib/esm/rpc/web/BentleyCloudRpcProtocol.js.map +1 -1
- package/lib/esm/rpc/web/OpenAPI.js.map +1 -1
- package/lib/esm/rpc/web/RpcMultipart.js.map +1 -1
- package/lib/esm/rpc/web/WebAppRpcLogging.js.map +1 -1
- package/lib/esm/rpc/web/WebAppRpcProtocol.js.map +1 -1
- package/lib/esm/rpc/web/WebAppRpcRequest.js.map +1 -1
- package/lib/esm/rpc/web/multipart/RpcMultipartParser.js.map +1 -1
- package/lib/esm/tile/B3dmTileIO.js.map +1 -1
- package/lib/esm/tile/CompositeTileIO.js.map +1 -1
- package/lib/esm/tile/ElementGraphics.js.map +1 -1
- package/lib/esm/tile/GltfTileIO.js.map +1 -1
- package/lib/esm/tile/I3dmTileIO.js.map +1 -1
- package/lib/esm/tile/IModelTileIO.js.map +1 -1
- package/lib/esm/tile/PntsTileIO.js.map +1 -1
- package/lib/esm/tile/TileIO.js.map +1 -1
- package/lib/esm/tile/TileMetadata.js.map +1 -1
- package/lib/esm/tile/Tileset3dSchema.js.map +1 -1
- package/package.json +6 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextBlock.d.ts","sourceRoot":"","sources":["../../../src/annotation/TextBlock.ts"],"names":[],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AAED;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CA0BrE"}
|
|
@@ -5,9 +5,19 @@
|
|
|
5
5
|
/** @packageDocumentation
|
|
6
6
|
* @module Annotation
|
|
7
7
|
*/
|
|
8
|
-
import { TextStyleSettings } from "./TextStyle";
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
import { ListMarkerEnumerator, TextStyleSettings } from "./TextStyle";
|
|
9
|
+
function clearStyleOverrides(component, options) {
|
|
10
|
+
component.styleOverrides = {};
|
|
11
|
+
if (!options?.preserveChildrenOverrides) {
|
|
12
|
+
for (const child of component.children) {
|
|
13
|
+
child.clearStyleOverrides(options);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Abstract representation of any of the building blocks that make up a [[TextBlock]] document - namely [[Run]]s and [[StructuralTextBlockComponent]]s.
|
|
19
|
+
* The [[TextBlock]] can specify an [AnnotationTextStyle]($backend) that formats its contents.
|
|
20
|
+
* Each component can specify an optional [[styleOverrides]] to customize that formatting.
|
|
11
21
|
* @beta
|
|
12
22
|
*/
|
|
13
23
|
export class TextBlockComponent {
|
|
@@ -72,15 +82,15 @@ export class TextBlockComponent {
|
|
|
72
82
|
export var Run;
|
|
73
83
|
(function (Run) {
|
|
74
84
|
/** Create a run from its JSON representation.
|
|
75
|
-
* @see [[TextRun.create]], [[FractionRun.create]], and [[LineBreakRun.create]] to create a run directly.
|
|
85
|
+
* @see [[TextRun.create]], [[FractionRun.create]], [[FieldRun.create]], [[TabRun.create]], and [[LineBreakRun.create]] to create a run directly.
|
|
76
86
|
*/
|
|
77
87
|
function fromJSON(props) {
|
|
78
88
|
switch (props.type) {
|
|
79
|
-
case "
|
|
89
|
+
case "field": return FieldRun.create(props);
|
|
80
90
|
case "fraction": return FractionRun.create(props);
|
|
81
|
-
case "tab": return TabRun.create(props);
|
|
82
91
|
case "linebreak": return LineBreakRun.create(props);
|
|
83
|
-
case "
|
|
92
|
+
case "tab": return TabRun.create(props);
|
|
93
|
+
case "text": return TextRun.create(props);
|
|
84
94
|
}
|
|
85
95
|
}
|
|
86
96
|
Run.fromJSON = fromJSON;
|
|
@@ -112,7 +122,10 @@ export class TextRun extends TextBlockComponent {
|
|
|
112
122
|
};
|
|
113
123
|
}
|
|
114
124
|
static create(props) {
|
|
115
|
-
return new TextRun(props);
|
|
125
|
+
return new TextRun({ ...props, type: "text" });
|
|
126
|
+
}
|
|
127
|
+
get isEmpty() {
|
|
128
|
+
return this.stringify().length === 0;
|
|
116
129
|
}
|
|
117
130
|
/** Simply returns [[content]]. */
|
|
118
131
|
stringify() {
|
|
@@ -150,7 +163,10 @@ export class FractionRun extends TextBlockComponent {
|
|
|
150
163
|
return new FractionRun(this.toJSON());
|
|
151
164
|
}
|
|
152
165
|
static create(props) {
|
|
153
|
-
return new FractionRun(props);
|
|
166
|
+
return new FractionRun({ ...props, type: "fraction" });
|
|
167
|
+
}
|
|
168
|
+
get isEmpty() {
|
|
169
|
+
return this.stringify().length === 0;
|
|
154
170
|
}
|
|
155
171
|
/** Formats the fraction as a string with the [[numerator]] and [[denominator]] separated by [[TextBlockStringifyOptions.fractionSeparator]]. */
|
|
156
172
|
stringify(options) {
|
|
@@ -177,11 +193,14 @@ export class LineBreakRun extends TextBlockComponent {
|
|
|
177
193
|
};
|
|
178
194
|
}
|
|
179
195
|
static create(props) {
|
|
180
|
-
return new LineBreakRun(props);
|
|
196
|
+
return new LineBreakRun({ ...props, type: "linebreak" });
|
|
181
197
|
}
|
|
182
198
|
clone() {
|
|
183
199
|
return new LineBreakRun(this.toJSON());
|
|
184
200
|
}
|
|
201
|
+
get isEmpty() {
|
|
202
|
+
return this.stringify().length === 0;
|
|
203
|
+
}
|
|
185
204
|
/** Simply returns [[TextBlockStringifyOptions.lineBreak]]. */
|
|
186
205
|
stringify(options) {
|
|
187
206
|
return options?.lineBreak ?? " ";
|
|
@@ -209,6 +228,9 @@ export class TabRun extends TextBlockComponent {
|
|
|
209
228
|
static create(props) {
|
|
210
229
|
return new TabRun(props);
|
|
211
230
|
}
|
|
231
|
+
get isEmpty() {
|
|
232
|
+
return this.stringify().length === 0;
|
|
233
|
+
}
|
|
212
234
|
/**
|
|
213
235
|
* Converts a [[TabRun]] to its string representation.
|
|
214
236
|
* If the `tabsAsSpaces` option is provided, returns a string of spaces of the specified length.
|
|
@@ -227,7 +249,8 @@ export class TabRun extends TextBlockComponent {
|
|
|
227
249
|
/** A [[Run]] that displays the formatted value of a property of some [Element]($backend).
|
|
228
250
|
* When a [[TextBlock]] containing a [[FieldRun]] is written into the iModel as an [ITextAnnotation]($backend) element,
|
|
229
251
|
* a dependency is established between the two elements via the [ElementDrivesTextAnnotation]($backend) relationship such that
|
|
230
|
-
* whenever the source element specified by [[propertyHost]] is modified
|
|
252
|
+
* whenever the source element specified by [[propertyHost]] is modified or the `ITextAnnotation` element is inserted or updated in the iModel,
|
|
253
|
+
* the field(s) in the `ITextAnnotation` element are automatically
|
|
231
254
|
* recalculated, causing their [[cachedContent]] to update. If the field's display string cannot be evaluated (for example, because the specified element or
|
|
232
255
|
* property does not exist), then its cached content is set to [[FieldRun.invalidContentIndicator]].
|
|
233
256
|
* A [[FieldRun]] displays its [[cachedContent]] in the same way that [[TextRun]]s display their `content`, including word wrapping where appropriate.
|
|
@@ -242,8 +265,10 @@ export class FieldRun extends TextBlockComponent {
|
|
|
242
265
|
propertyHost;
|
|
243
266
|
/** Describes how to obtain the property value from [[propertyHost]]. */
|
|
244
267
|
propertyPath;
|
|
245
|
-
/** Specifies how to format the property value obtained from [[propertyPath]] into a string to be stored in [[cachedContent]].
|
|
246
|
-
|
|
268
|
+
/** Specifies how to format the property value obtained from [[propertyPath]] into a string to be stored in [[cachedContent]].
|
|
269
|
+
* The specific options used depend upon the [[FieldPropertyType]].
|
|
270
|
+
*/
|
|
271
|
+
formatOptions;
|
|
247
272
|
_cachedContent;
|
|
248
273
|
/** The field's most recently evaluated display string. */
|
|
249
274
|
get cachedContent() {
|
|
@@ -258,7 +283,7 @@ export class FieldRun extends TextBlockComponent {
|
|
|
258
283
|
this._cachedContent = props.cachedContent ?? FieldRun.invalidContentIndicator;
|
|
259
284
|
this.propertyHost = props.propertyHost;
|
|
260
285
|
this.propertyPath = props.propertyPath;
|
|
261
|
-
this.
|
|
286
|
+
this.formatOptions = props.formatOptions;
|
|
262
287
|
}
|
|
263
288
|
/** Create a FieldRun from its JSON representation. */
|
|
264
289
|
static create(props) {
|
|
@@ -266,7 +291,8 @@ export class FieldRun extends TextBlockComponent {
|
|
|
266
291
|
...props,
|
|
267
292
|
propertyHost: { ...props.propertyHost },
|
|
268
293
|
propertyPath: structuredClone(props.propertyPath),
|
|
269
|
-
|
|
294
|
+
formatOptions: structuredClone(props.formatOptions),
|
|
295
|
+
type: "field",
|
|
270
296
|
});
|
|
271
297
|
}
|
|
272
298
|
/** Convert the FieldRun to its JSON representation. */
|
|
@@ -280,8 +306,8 @@ export class FieldRun extends TextBlockComponent {
|
|
|
280
306
|
if (this.cachedContent !== FieldRun.invalidContentIndicator) {
|
|
281
307
|
json.cachedContent = this.cachedContent;
|
|
282
308
|
}
|
|
283
|
-
if (this.
|
|
284
|
-
json.
|
|
309
|
+
if (this.formatOptions) {
|
|
310
|
+
json.formatOptions = structuredClone(this.formatOptions);
|
|
285
311
|
}
|
|
286
312
|
return json;
|
|
287
313
|
}
|
|
@@ -289,6 +315,9 @@ export class FieldRun extends TextBlockComponent {
|
|
|
289
315
|
clone() {
|
|
290
316
|
return new FieldRun(this.toJSON());
|
|
291
317
|
}
|
|
318
|
+
get isEmpty() {
|
|
319
|
+
return this.stringify().length === 0;
|
|
320
|
+
}
|
|
292
321
|
/** Convert this FieldRun to a simple string representation. */
|
|
293
322
|
stringify() {
|
|
294
323
|
return this.cachedContent;
|
|
@@ -308,86 +337,116 @@ export class FieldRun extends TextBlockComponent {
|
|
|
308
337
|
}
|
|
309
338
|
const thisAccessors = this.propertyPath.accessors ?? [];
|
|
310
339
|
const otherAccessors = other.propertyPath.accessors ?? [];
|
|
311
|
-
|
|
312
|
-
const otherJsonAccessors = other.propertyPath.jsonAccessors ?? [];
|
|
313
|
-
if (thisAccessors.length !== otherAccessors.length || thisJsonAccessors.length !== otherJsonAccessors.length) {
|
|
340
|
+
if (thisAccessors.length !== otherAccessors.length) {
|
|
314
341
|
return false;
|
|
315
342
|
}
|
|
316
343
|
if (!thisAccessors.every((value, index) => value === otherAccessors[index])) {
|
|
317
344
|
return false;
|
|
318
345
|
}
|
|
319
|
-
if (
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
// ###TODO better comparison of formatter objects.
|
|
324
|
-
if (JSON.stringify(this.formatter) !== JSON.stringify(other.formatter)) {
|
|
346
|
+
if (this.formatOptions && other.formatOptions) {
|
|
347
|
+
// We anticipate new formatting options being added in the future.
|
|
348
|
+
// So to account for properties we don't know about, just compare the string representations.
|
|
349
|
+
if (JSON.stringify(this.formatOptions) !== JSON.stringify(other.formatOptions)) {
|
|
325
350
|
return false;
|
|
326
351
|
}
|
|
327
352
|
}
|
|
328
|
-
else if (this.
|
|
353
|
+
else if (this.formatOptions || other.formatOptions) {
|
|
329
354
|
return false;
|
|
330
355
|
}
|
|
331
356
|
return true;
|
|
332
357
|
}
|
|
333
358
|
}
|
|
334
|
-
/** A collection of [[Run]]s
|
|
359
|
+
/** A collection of [[Run]]s and [[List]]s. Paragraphs can be appended to [[List]]s and [[TextBlock]]s.
|
|
360
|
+
* Each paragraph is laid out on a separate line. If included in a [[List]], the paragraph will be treated as a list item.
|
|
335
361
|
* @beta
|
|
336
362
|
*/
|
|
337
363
|
export class Paragraph extends TextBlockComponent {
|
|
338
|
-
|
|
339
|
-
|
|
364
|
+
type = "paragraph";
|
|
365
|
+
children;
|
|
340
366
|
constructor(props) {
|
|
341
367
|
super(props);
|
|
342
|
-
this.
|
|
368
|
+
this.children = props?.children?.map((child) => child.type === "list" ? List.create(child) : Run.fromJSON(child)) ?? [];
|
|
369
|
+
}
|
|
370
|
+
/** Create a paragraph from its JSON representation. */
|
|
371
|
+
static create(props) {
|
|
372
|
+
return new Paragraph(props);
|
|
373
|
+
}
|
|
374
|
+
clearStyleOverrides(options) {
|
|
375
|
+
clearStyleOverrides(this, options);
|
|
376
|
+
}
|
|
377
|
+
get isEmpty() {
|
|
378
|
+
return this.children.length === 0;
|
|
379
|
+
}
|
|
380
|
+
clone() {
|
|
381
|
+
return new Paragraph(this.toJSON());
|
|
343
382
|
}
|
|
344
383
|
toJSON() {
|
|
345
384
|
return {
|
|
346
385
|
...super.toJSON(),
|
|
347
|
-
|
|
386
|
+
children: this.children.map((child) => child.toJSON()),
|
|
348
387
|
};
|
|
349
388
|
}
|
|
350
|
-
/**
|
|
389
|
+
/** Compute a string representation of this paragraph by concatenating the string representations of all of its children. */
|
|
390
|
+
stringify(options, context) {
|
|
391
|
+
return this.children.map((x, index) => (index > 0 && x.type === "list") ? `${options?.paragraphBreak ?? " "}${x.stringify(options, context)}` : x.stringify(options, context)).join("") ?? "";
|
|
392
|
+
}
|
|
393
|
+
equals(other) {
|
|
394
|
+
return (other instanceof Paragraph) && super.equals(other);
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
/** A collection of list items ([[Paragraph]]s). Lists can be appended to [[Paragraph]]s.
|
|
398
|
+
* Lists will be laid out on a new line. Each item in a list is laid out on a separate line.
|
|
399
|
+
* @beta
|
|
400
|
+
*/
|
|
401
|
+
export class List extends TextBlockComponent {
|
|
402
|
+
type = "list";
|
|
403
|
+
children;
|
|
404
|
+
constructor(props) {
|
|
405
|
+
super(props);
|
|
406
|
+
this.children = props?.children?.map((child) => Paragraph.create(child)) ?? [];
|
|
407
|
+
}
|
|
408
|
+
/** Create a list from its JSON representation. */
|
|
351
409
|
static create(props) {
|
|
352
|
-
return new
|
|
410
|
+
return new List({ ...props, type: "list" });
|
|
411
|
+
}
|
|
412
|
+
clearStyleOverrides(options) {
|
|
413
|
+
clearStyleOverrides(this, options);
|
|
414
|
+
}
|
|
415
|
+
get isEmpty() {
|
|
416
|
+
return this.children.length === 0;
|
|
353
417
|
}
|
|
354
418
|
clone() {
|
|
355
|
-
return new
|
|
419
|
+
return new List(this.toJSON());
|
|
356
420
|
}
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
if (options?.preserveChildrenOverrides)
|
|
364
|
-
return;
|
|
365
|
-
for (const run of this.runs) {
|
|
366
|
-
run.clearStyleOverrides();
|
|
367
|
-
}
|
|
421
|
+
toJSON() {
|
|
422
|
+
return {
|
|
423
|
+
...super.toJSON(),
|
|
424
|
+
type: "list",
|
|
425
|
+
children: this.children.map((run) => run.toJSON()),
|
|
426
|
+
};
|
|
368
427
|
}
|
|
369
|
-
/** Compute a string representation of this
|
|
370
|
-
stringify(options) {
|
|
371
|
-
|
|
428
|
+
/** Compute a string representation of this list by concatenating the string representations of all of its [[children]]. */
|
|
429
|
+
stringify(options, context) {
|
|
430
|
+
const children = this.children.map((x, index) => {
|
|
431
|
+
const depth = context?.depth ?? 0;
|
|
432
|
+
const marker = getMarkerText(this.styleOverrides.listMarker ?? TextStyleSettings.defaultProps.listMarker, index + 1);
|
|
433
|
+
const tab = (options?.tabsAsSpaces ? " ".repeat(options.tabsAsSpaces) : "\t").repeat(depth);
|
|
434
|
+
return `${tab}${marker}${options?.listMarkerBreak ?? " "}${x.stringify(options, { depth: depth + 1 })}`;
|
|
435
|
+
});
|
|
436
|
+
return children.join(options?.paragraphBreak ?? " ") ?? "";
|
|
372
437
|
}
|
|
373
438
|
equals(other) {
|
|
374
|
-
|
|
375
|
-
return false;
|
|
376
|
-
}
|
|
377
|
-
if (this.runs.length !== other.runs.length || !super.equals(other)) {
|
|
378
|
-
return false;
|
|
379
|
-
}
|
|
380
|
-
return this.runs.every((run, index) => run.equals(other.runs[index]));
|
|
439
|
+
return (other instanceof List) && super.equals(other);
|
|
381
440
|
}
|
|
382
441
|
}
|
|
383
442
|
;
|
|
384
|
-
/** Represents a formatted text document consisting of a series of [[Paragraph]]s, each laid out on a separate line and containing their own content
|
|
385
|
-
* You can change the content of the document by directly modifying the contents of its [[paragraphs]], or via [[appendParagraph]] and [[appendRun]].
|
|
443
|
+
/** Represents a formatted text document consisting of a series of [[Paragraph]]s, each laid out on a separate line and containing their own content.
|
|
386
444
|
* No word-wrapping is applied to the document unless a [[width]] greater than zero is specified.
|
|
387
445
|
* @see [[TextAnnotation]] to position a text block as an annotation in 2d or 3d space.
|
|
388
446
|
* @beta
|
|
389
447
|
*/
|
|
390
448
|
export class TextBlock extends TextBlockComponent {
|
|
449
|
+
children;
|
|
391
450
|
/** The width of the document in meters. Lines that would exceed this width are instead wrapped around to the next line if possible.
|
|
392
451
|
* A value less than or equal to zero indicates no wrapping is to be applied.
|
|
393
452
|
* Default: 0
|
|
@@ -397,8 +456,6 @@ export class TextBlock extends TextBlockComponent {
|
|
|
397
456
|
justification;
|
|
398
457
|
/** The margins of the document. */
|
|
399
458
|
margins;
|
|
400
|
-
/** The ordered list of paragraphs within the document. */
|
|
401
|
-
paragraphs;
|
|
402
459
|
constructor(props) {
|
|
403
460
|
super(props);
|
|
404
461
|
this.width = props.width ?? 0;
|
|
@@ -410,7 +467,10 @@ export class TextBlock extends TextBlockComponent {
|
|
|
410
467
|
top: props.margins?.top ?? 0,
|
|
411
468
|
bottom: props.margins?.bottom ?? 0,
|
|
412
469
|
};
|
|
413
|
-
this.
|
|
470
|
+
this.children = props?.children?.map((para) => Paragraph.create(para)) ?? [];
|
|
471
|
+
}
|
|
472
|
+
clearStyleOverrides(options) {
|
|
473
|
+
clearStyleOverrides(this, options);
|
|
414
474
|
}
|
|
415
475
|
toJSON() {
|
|
416
476
|
return {
|
|
@@ -418,7 +478,7 @@ export class TextBlock extends TextBlockComponent {
|
|
|
418
478
|
width: this.width,
|
|
419
479
|
justification: this.justification,
|
|
420
480
|
margins: this.margins,
|
|
421
|
-
|
|
481
|
+
children: this.children.map((x) => x.toJSON()),
|
|
422
482
|
};
|
|
423
483
|
}
|
|
424
484
|
/** Create a text block from its JSON representation. */
|
|
@@ -427,61 +487,131 @@ export class TextBlock extends TextBlockComponent {
|
|
|
427
487
|
}
|
|
428
488
|
/** Returns true if every paragraph in this text block is empty. */
|
|
429
489
|
get isEmpty() {
|
|
430
|
-
return this.
|
|
490
|
+
return !this.children || this.children.every((child) => child.isEmpty);
|
|
431
491
|
}
|
|
432
492
|
clone() {
|
|
433
493
|
return new TextBlock(this.toJSON());
|
|
434
494
|
}
|
|
435
|
-
/**
|
|
436
|
-
* Clears any [[styleOverrides]] applied to this TextBlock.
|
|
437
|
-
* Will also clear [[styleOverrides]] from all child components unless [[ClearTextStyleOptions.preserveChildrenOverrides]] is `true`.
|
|
438
|
-
*/
|
|
439
|
-
clearStyleOverrides(options) {
|
|
440
|
-
super.clearStyleOverrides();
|
|
441
|
-
if (options?.preserveChildrenOverrides)
|
|
442
|
-
return;
|
|
443
|
-
for (const paragraph of this.paragraphs) {
|
|
444
|
-
paragraph.clearStyleOverrides();
|
|
445
|
-
}
|
|
446
|
-
}
|
|
447
|
-
/** Compute a string representation of the document's contents by concatenating the string representations of each of its [[paragraphs]], separated by [[TextBlockStringifyOptions.paragraphBreak]]. */
|
|
495
|
+
/** Compute a string representation of the document's contents by concatenating the string representations of each of its [[children]], separated by [[TextBlockStringifyOptions.paragraphBreak]]. */
|
|
448
496
|
stringify(options) {
|
|
449
|
-
return this.
|
|
497
|
+
return this.children.map((x) => x.stringify(options)).join(options?.paragraphBreak ?? " ") || "";
|
|
450
498
|
}
|
|
451
499
|
/** Add and return a new paragraph.
|
|
452
500
|
* By default, the paragraph will be created with no [[styleOverrides]], so that it inherits the style of this block.
|
|
453
|
-
* @param seedFromLast If true and [[
|
|
501
|
+
* @param seedFromLast If true and [[children]] is not empty, the new paragraph will inherit the style overrides of the last child in this block.
|
|
502
|
+
* @note Be sure you pass in [[ParagraphProps]] and not [[Paragraph]] or style overrides will be ignored.
|
|
454
503
|
*/
|
|
455
|
-
appendParagraph(seedFromLast = false) {
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
}
|
|
461
|
-
const paragraph = Paragraph.create({
|
|
462
|
-
styleOverrides
|
|
463
|
-
});
|
|
464
|
-
this.paragraphs.push(paragraph);
|
|
504
|
+
appendParagraph(props, seedFromLast = false) {
|
|
505
|
+
const seed = seedFromLast ? this.children[this.children.length - 1] : undefined;
|
|
506
|
+
const styleOverrides = { ...seed?.styleOverrides, ...props?.styleOverrides };
|
|
507
|
+
const paragraph = Paragraph.create({ ...props, styleOverrides });
|
|
508
|
+
this.children.push(paragraph);
|
|
465
509
|
return paragraph;
|
|
466
510
|
}
|
|
467
511
|
/** Append a run to the last [[Paragraph]] in this block.
|
|
468
|
-
* If the block contains no [[
|
|
512
|
+
* If the block contains no [[children]], a new [[Paragraph]] will first be created using [[appendParagraph]].
|
|
469
513
|
*/
|
|
470
514
|
appendRun(run) {
|
|
471
|
-
const paragraph = this.
|
|
472
|
-
paragraph.
|
|
515
|
+
const paragraph = this.children[this.children.length - 1] ?? this.appendParagraph();
|
|
516
|
+
paragraph.children.push(run);
|
|
473
517
|
}
|
|
474
518
|
equals(other) {
|
|
475
519
|
if (!(other instanceof TextBlock)) {
|
|
476
520
|
return false;
|
|
477
521
|
}
|
|
478
|
-
if (
|
|
522
|
+
if (!super.equals(other)) {
|
|
523
|
+
return false;
|
|
524
|
+
}
|
|
525
|
+
if (this.width !== other.width || this.justification !== other.justification) {
|
|
479
526
|
return false;
|
|
480
527
|
}
|
|
481
528
|
const marginsAreEqual = Object.entries(this.margins).every(([key, value]) => value === other.margins[key]);
|
|
482
529
|
if (!marginsAreEqual)
|
|
483
530
|
return false;
|
|
484
|
-
|
|
531
|
+
if (this.children && other.children) {
|
|
532
|
+
if (this.children.length !== other.children.length) {
|
|
533
|
+
return false;
|
|
534
|
+
}
|
|
535
|
+
return this.children.every((child, index) => other.children && child.equals(other.children[index]));
|
|
536
|
+
}
|
|
537
|
+
return true;
|
|
485
538
|
}
|
|
486
539
|
}
|
|
540
|
+
/**
|
|
541
|
+
* Recursively traverses a [[StructuralTextBlockComponent]] tree, yielding each child component along with its parent container.
|
|
542
|
+
* This generator enables depth-first iteration over all components in a text block structure, including paragraphs, lists, and runs.
|
|
543
|
+
*
|
|
544
|
+
* @param parent The root container whose children should be traversed.
|
|
545
|
+
* @returns An IterableIterator yielding objects with the child component and its parent container.
|
|
546
|
+
* @beta
|
|
547
|
+
*/
|
|
548
|
+
export function* traverseTextBlockComponent(parent) {
|
|
549
|
+
for (const child of parent.children) {
|
|
550
|
+
yield { parent, child };
|
|
551
|
+
if (child.type === "list" || child.type === "paragraph") {
|
|
552
|
+
yield* traverseTextBlockComponent(child);
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
/**
|
|
557
|
+
* Returns the formatted marker text for a list item based on the marker type and item number.
|
|
558
|
+
* Supports ordered and unordered list markers, including alphabetic, Roman numeral, and numeric formats.
|
|
559
|
+
* @param marker The type of list marker to use.
|
|
560
|
+
* @param num The item number in the list.
|
|
561
|
+
* @returns The formatted marker string for the list item.
|
|
562
|
+
* @beta
|
|
563
|
+
*/
|
|
564
|
+
export function getMarkerText(marker, num) {
|
|
565
|
+
let markerString = "";
|
|
566
|
+
switch (marker.enumerator) {
|
|
567
|
+
case undefined:
|
|
568
|
+
case ListMarkerEnumerator.Number:
|
|
569
|
+
markerString = `${num}`;
|
|
570
|
+
break;
|
|
571
|
+
case ListMarkerEnumerator.Letter:
|
|
572
|
+
markerString = integerToAlpha(num);
|
|
573
|
+
break;
|
|
574
|
+
case ListMarkerEnumerator.RomanNumeral:
|
|
575
|
+
markerString = integerToRoman(num);
|
|
576
|
+
break;
|
|
577
|
+
default:
|
|
578
|
+
markerString = marker.enumerator;
|
|
579
|
+
break;
|
|
580
|
+
}
|
|
581
|
+
if (marker.case) {
|
|
582
|
+
markerString = marker.case === "upper" ? markerString.toUpperCase() : markerString.toLowerCase();
|
|
583
|
+
}
|
|
584
|
+
const terminator = marker.terminator === "period" ? "." : marker.terminator === "parenthesis" ? ")" : "";
|
|
585
|
+
return `${markerString}${terminator}`;
|
|
586
|
+
}
|
|
587
|
+
/**
|
|
588
|
+
* Converts an integer to its Roman numeral representation.
|
|
589
|
+
* Supports numbers from 1 and above.
|
|
590
|
+
* @param num The integer to convert.
|
|
591
|
+
* @returns The Roman numeral string.
|
|
592
|
+
*/
|
|
593
|
+
function integerToRoman(num) {
|
|
594
|
+
const values = [1000, 900, 500, 400, 100, 90, 50, 40, 10, 9, 5, 4, 1];
|
|
595
|
+
const symbols = ['M', 'CM', 'D', 'CD', 'C', 'XC', 'L', 'XL', 'X', 'IX', 'V', 'IV', 'I'];
|
|
596
|
+
let roman = '';
|
|
597
|
+
for (let i = 0; i < values.length; i++) {
|
|
598
|
+
while (num >= values[i]) {
|
|
599
|
+
roman += symbols[i];
|
|
600
|
+
num -= values[i];
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
return roman;
|
|
604
|
+
}
|
|
605
|
+
/**
|
|
606
|
+
* Converts an integer to its alphabetic representation (A-Z, AA-ZZ, etc.).
|
|
607
|
+
* Used for ordered list markers with alphabetic styles.
|
|
608
|
+
* @param num The integer to convert (1-based).
|
|
609
|
+
* @returns The alphabetic string for the given number.
|
|
610
|
+
*/
|
|
611
|
+
function integerToAlpha(num) {
|
|
612
|
+
const letterOffset = (num - 1) % 26;
|
|
613
|
+
const letter = String.fromCharCode(65 + letterOffset);
|
|
614
|
+
const depth = Math.ceil(num / 26);
|
|
615
|
+
return letter.repeat(depth);
|
|
616
|
+
}
|
|
487
617
|
//# sourceMappingURL=TextBlock.js.map
|