@itwin/core-common 5.1.0-dev.9 → 5.2.0-dev.2

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.
Files changed (240) hide show
  1. package/CHANGELOG.md +91 -1
  2. package/lib/cjs/BackgroundMapSettings.d.ts +2 -2
  3. package/lib/cjs/BackgroundMapSettings.js.map +1 -1
  4. package/lib/cjs/ChangesetProps.d.ts +28 -0
  5. package/lib/cjs/ChangesetProps.d.ts.map +1 -1
  6. package/lib/cjs/ChangesetProps.js.map +1 -1
  7. package/lib/cjs/ClipStyle.d.ts +1 -1
  8. package/lib/cjs/ClipStyle.d.ts.map +1 -1
  9. package/lib/cjs/ClipStyle.js.map +1 -1
  10. package/lib/cjs/CommonLoggerCategory.d.ts +2 -0
  11. package/lib/cjs/CommonLoggerCategory.d.ts.map +1 -1
  12. package/lib/cjs/CommonLoggerCategory.js +2 -0
  13. package/lib/cjs/CommonLoggerCategory.js.map +1 -1
  14. package/lib/cjs/ConcurrentQuery.d.ts +8 -23
  15. package/lib/cjs/ConcurrentQuery.d.ts.map +1 -1
  16. package/lib/cjs/ConcurrentQuery.js +1 -11
  17. package/lib/cjs/ConcurrentQuery.js.map +1 -1
  18. package/lib/cjs/ContextRealityModel.d.ts +8 -8
  19. package/lib/cjs/ContextRealityModel.js +8 -8
  20. package/lib/cjs/ContextRealityModel.js.map +1 -1
  21. package/lib/cjs/ElementProps.d.ts +64 -54
  22. package/lib/cjs/ElementProps.d.ts.map +1 -1
  23. package/lib/cjs/ElementProps.js +6 -6
  24. package/lib/cjs/ElementProps.js.map +1 -1
  25. package/lib/cjs/EntityProps.d.ts +10 -10
  26. package/lib/cjs/EntityProps.d.ts.map +1 -1
  27. package/lib/cjs/EntityProps.js +4 -2
  28. package/lib/cjs/EntityProps.js.map +1 -1
  29. package/lib/cjs/Fonts.d.ts +2 -2
  30. package/lib/cjs/Fonts.js +1 -1
  31. package/lib/cjs/Fonts.js.map +1 -1
  32. package/lib/cjs/GeoCoordinateServices.d.ts +1 -1
  33. package/lib/cjs/GeoCoordinateServices.js +1 -1
  34. package/lib/cjs/GeoCoordinateServices.js.map +1 -1
  35. package/lib/cjs/GeometryParams.d.ts +3 -1
  36. package/lib/cjs/GeometryParams.d.ts.map +1 -1
  37. package/lib/cjs/GeometryParams.js +3 -1
  38. package/lib/cjs/GeometryParams.js.map +1 -1
  39. package/lib/cjs/GraphicParams.d.ts +1 -0
  40. package/lib/cjs/GraphicParams.d.ts.map +1 -1
  41. package/lib/cjs/GraphicParams.js +1 -0
  42. package/lib/cjs/GraphicParams.js.map +1 -1
  43. package/lib/cjs/IModel.d.ts +3 -3
  44. package/lib/cjs/IModel.js.map +1 -1
  45. package/lib/cjs/ITwinCoreErrors.d.ts +1 -1
  46. package/lib/cjs/ITwinCoreErrors.d.ts.map +1 -1
  47. package/lib/cjs/ITwinCoreErrors.js.map +1 -1
  48. package/lib/cjs/MassProperties.d.ts +2 -2
  49. package/lib/cjs/MassProperties.js.map +1 -1
  50. package/lib/cjs/MaterialProps.d.ts +6 -3
  51. package/lib/cjs/MaterialProps.d.ts.map +1 -1
  52. package/lib/cjs/MaterialProps.js.map +1 -1
  53. package/lib/cjs/RenderSchedule.d.ts +14 -0
  54. package/lib/cjs/RenderSchedule.d.ts.map +1 -1
  55. package/lib/cjs/RenderSchedule.js +4 -0
  56. package/lib/cjs/RenderSchedule.js.map +1 -1
  57. package/lib/cjs/RenderTexture.d.ts +1 -1
  58. package/lib/cjs/RenderTexture.d.ts.map +1 -1
  59. package/lib/cjs/RenderTexture.js.map +1 -1
  60. package/lib/cjs/TerrainSettings.d.ts +1 -1
  61. package/lib/cjs/TerrainSettings.d.ts.map +1 -1
  62. package/lib/cjs/TerrainSettings.js.map +1 -1
  63. package/lib/cjs/annotation/TextAnnotation.d.ts +78 -2
  64. package/lib/cjs/annotation/TextAnnotation.d.ts.map +1 -1
  65. package/lib/cjs/annotation/TextAnnotation.js +63 -10
  66. package/lib/cjs/annotation/TextAnnotation.js.map +1 -1
  67. package/lib/cjs/annotation/TextBlock.d.ts +179 -44
  68. package/lib/cjs/annotation/TextBlock.d.ts.map +1 -1
  69. package/lib/cjs/annotation/TextBlock.js +210 -57
  70. package/lib/cjs/annotation/TextBlock.js.map +1 -1
  71. package/lib/cjs/annotation/TextBlockGeometryProps.d.ts +1 -1
  72. package/lib/cjs/annotation/TextBlockGeometryProps.js.map +1 -1
  73. package/lib/cjs/annotation/TextBlockLayoutResult.d.ts +1 -1
  74. package/lib/cjs/annotation/TextBlockLayoutResult.d.ts.map +1 -1
  75. package/lib/cjs/annotation/TextBlockLayoutResult.js.map +1 -1
  76. package/lib/cjs/annotation/TextStyle.d.ts +115 -34
  77. package/lib/cjs/annotation/TextStyle.d.ts.map +1 -1
  78. package/lib/cjs/annotation/TextStyle.js +118 -37
  79. package/lib/cjs/annotation/TextStyle.js.map +1 -1
  80. package/lib/cjs/geometry/AdditionalTransform.d.ts +4 -0
  81. package/lib/cjs/geometry/AdditionalTransform.d.ts.map +1 -1
  82. package/lib/cjs/geometry/AdditionalTransform.js +9 -0
  83. package/lib/cjs/geometry/AdditionalTransform.js.map +1 -1
  84. package/lib/cjs/geometry/ElementGeometry.d.ts +1 -1
  85. package/lib/cjs/geometry/ElementGeometry.d.ts.map +1 -1
  86. package/lib/cjs/geometry/ElementGeometry.js +2 -2
  87. package/lib/cjs/geometry/ElementGeometry.js.map +1 -1
  88. package/lib/cjs/internal/BackendTypes.d.ts +3 -3
  89. package/lib/cjs/internal/BackendTypes.d.ts.map +1 -1
  90. package/lib/cjs/internal/BackendTypes.js.map +1 -1
  91. package/lib/cjs/internal/RenderMesh.d.ts +19 -5
  92. package/lib/cjs/internal/RenderMesh.d.ts.map +1 -1
  93. package/lib/cjs/internal/RenderMesh.js +11 -8
  94. package/lib/cjs/internal/RenderMesh.js.map +1 -1
  95. package/lib/cjs/internal/cross-package.d.ts +1 -1
  96. package/lib/cjs/internal/cross-package.d.ts.map +1 -1
  97. package/lib/cjs/internal/cross-package.js.map +1 -1
  98. package/lib/cjs/rpc/IModelReadRpcInterface.d.ts +1 -1
  99. package/lib/cjs/rpc/IModelReadRpcInterface.d.ts.map +1 -1
  100. package/lib/cjs/rpc/IModelReadRpcInterface.js +1 -1
  101. package/lib/cjs/rpc/IModelReadRpcInterface.js.map +1 -1
  102. package/lib/cjs/rpc/SnapshotIModelRpcInterface.d.ts +4 -4
  103. package/lib/cjs/rpc/SnapshotIModelRpcInterface.js +4 -4
  104. package/lib/cjs/rpc/SnapshotIModelRpcInterface.js.map +1 -1
  105. package/lib/cjs/rpc/core/RpcConstants.d.ts +6 -6
  106. package/lib/cjs/rpc/core/RpcConstants.d.ts.map +1 -1
  107. package/lib/cjs/rpc/core/RpcConstants.js +6 -6
  108. package/lib/cjs/rpc/core/RpcConstants.js.map +1 -1
  109. package/lib/cjs/rpc/web/OpenAPI.d.ts +1 -1
  110. package/lib/cjs/rpc/web/OpenAPI.js.map +1 -1
  111. package/lib/cjs/rpc/web/WebAppRpcLogging.js.map +1 -1
  112. package/lib/cjs/rpc/web/WebAppRpcProtocol.d.ts +2 -2
  113. package/lib/cjs/rpc/web/WebAppRpcProtocol.js.map +1 -1
  114. package/lib/cjs/tile/IModelTileIO.d.ts +2 -2
  115. package/lib/cjs/tile/IModelTileIO.js +2 -2
  116. package/lib/cjs/tile/IModelTileIO.js.map +1 -1
  117. package/lib/cjs/tile/TileMetadata.d.ts +6 -2
  118. package/lib/cjs/tile/TileMetadata.d.ts.map +1 -1
  119. package/lib/cjs/tile/TileMetadata.js +10 -4
  120. package/lib/cjs/tile/TileMetadata.js.map +1 -1
  121. package/lib/esm/BackgroundMapSettings.d.ts +2 -2
  122. package/lib/esm/BackgroundMapSettings.js.map +1 -1
  123. package/lib/esm/ChangesetProps.d.ts +28 -0
  124. package/lib/esm/ChangesetProps.d.ts.map +1 -1
  125. package/lib/esm/ChangesetProps.js.map +1 -1
  126. package/lib/esm/ClipStyle.d.ts +1 -1
  127. package/lib/esm/ClipStyle.d.ts.map +1 -1
  128. package/lib/esm/ClipStyle.js.map +1 -1
  129. package/lib/esm/CommonLoggerCategory.d.ts +2 -0
  130. package/lib/esm/CommonLoggerCategory.d.ts.map +1 -1
  131. package/lib/esm/CommonLoggerCategory.js +2 -0
  132. package/lib/esm/CommonLoggerCategory.js.map +1 -1
  133. package/lib/esm/ConcurrentQuery.d.ts +8 -23
  134. package/lib/esm/ConcurrentQuery.d.ts.map +1 -1
  135. package/lib/esm/ConcurrentQuery.js +1 -11
  136. package/lib/esm/ConcurrentQuery.js.map +1 -1
  137. package/lib/esm/ContextRealityModel.d.ts +8 -8
  138. package/lib/esm/ContextRealityModel.js +8 -8
  139. package/lib/esm/ContextRealityModel.js.map +1 -1
  140. package/lib/esm/ElementProps.d.ts +64 -54
  141. package/lib/esm/ElementProps.d.ts.map +1 -1
  142. package/lib/esm/ElementProps.js +6 -6
  143. package/lib/esm/ElementProps.js.map +1 -1
  144. package/lib/esm/EntityProps.d.ts +10 -10
  145. package/lib/esm/EntityProps.d.ts.map +1 -1
  146. package/lib/esm/EntityProps.js +4 -2
  147. package/lib/esm/EntityProps.js.map +1 -1
  148. package/lib/esm/Fonts.d.ts +2 -2
  149. package/lib/esm/Fonts.js +1 -1
  150. package/lib/esm/Fonts.js.map +1 -1
  151. package/lib/esm/GeoCoordinateServices.d.ts +1 -1
  152. package/lib/esm/GeoCoordinateServices.js +1 -1
  153. package/lib/esm/GeoCoordinateServices.js.map +1 -1
  154. package/lib/esm/GeometryParams.d.ts +3 -1
  155. package/lib/esm/GeometryParams.d.ts.map +1 -1
  156. package/lib/esm/GeometryParams.js +3 -1
  157. package/lib/esm/GeometryParams.js.map +1 -1
  158. package/lib/esm/GraphicParams.d.ts +1 -0
  159. package/lib/esm/GraphicParams.d.ts.map +1 -1
  160. package/lib/esm/GraphicParams.js +1 -0
  161. package/lib/esm/GraphicParams.js.map +1 -1
  162. package/lib/esm/IModel.d.ts +3 -3
  163. package/lib/esm/IModel.js.map +1 -1
  164. package/lib/esm/ITwinCoreErrors.d.ts +1 -1
  165. package/lib/esm/ITwinCoreErrors.d.ts.map +1 -1
  166. package/lib/esm/ITwinCoreErrors.js.map +1 -1
  167. package/lib/esm/MassProperties.d.ts +2 -2
  168. package/lib/esm/MassProperties.js.map +1 -1
  169. package/lib/esm/MaterialProps.d.ts +6 -3
  170. package/lib/esm/MaterialProps.d.ts.map +1 -1
  171. package/lib/esm/MaterialProps.js.map +1 -1
  172. package/lib/esm/RenderSchedule.d.ts +14 -0
  173. package/lib/esm/RenderSchedule.d.ts.map +1 -1
  174. package/lib/esm/RenderSchedule.js +4 -0
  175. package/lib/esm/RenderSchedule.js.map +1 -1
  176. package/lib/esm/RenderTexture.d.ts +1 -1
  177. package/lib/esm/RenderTexture.d.ts.map +1 -1
  178. package/lib/esm/RenderTexture.js.map +1 -1
  179. package/lib/esm/TerrainSettings.d.ts +1 -1
  180. package/lib/esm/TerrainSettings.d.ts.map +1 -1
  181. package/lib/esm/TerrainSettings.js.map +1 -1
  182. package/lib/esm/annotation/TextAnnotation.d.ts +78 -2
  183. package/lib/esm/annotation/TextAnnotation.d.ts.map +1 -1
  184. package/lib/esm/annotation/TextAnnotation.js +63 -10
  185. package/lib/esm/annotation/TextAnnotation.js.map +1 -1
  186. package/lib/esm/annotation/TextBlock.d.ts +179 -44
  187. package/lib/esm/annotation/TextBlock.d.ts.map +1 -1
  188. package/lib/esm/annotation/TextBlock.js +207 -56
  189. package/lib/esm/annotation/TextBlock.js.map +1 -1
  190. package/lib/esm/annotation/TextBlockGeometryProps.d.ts +1 -1
  191. package/lib/esm/annotation/TextBlockGeometryProps.js.map +1 -1
  192. package/lib/esm/annotation/TextBlockLayoutResult.d.ts +1 -1
  193. package/lib/esm/annotation/TextBlockLayoutResult.d.ts.map +1 -1
  194. package/lib/esm/annotation/TextBlockLayoutResult.js.map +1 -1
  195. package/lib/esm/annotation/TextStyle.d.ts +115 -34
  196. package/lib/esm/annotation/TextStyle.d.ts.map +1 -1
  197. package/lib/esm/annotation/TextStyle.js +116 -34
  198. package/lib/esm/annotation/TextStyle.js.map +1 -1
  199. package/lib/esm/geometry/AdditionalTransform.d.ts +4 -0
  200. package/lib/esm/geometry/AdditionalTransform.d.ts.map +1 -1
  201. package/lib/esm/geometry/AdditionalTransform.js +10 -1
  202. package/lib/esm/geometry/AdditionalTransform.js.map +1 -1
  203. package/lib/esm/geometry/ElementGeometry.d.ts +1 -1
  204. package/lib/esm/geometry/ElementGeometry.d.ts.map +1 -1
  205. package/lib/esm/geometry/ElementGeometry.js +2 -2
  206. package/lib/esm/geometry/ElementGeometry.js.map +1 -1
  207. package/lib/esm/internal/BackendTypes.d.ts +3 -3
  208. package/lib/esm/internal/BackendTypes.d.ts.map +1 -1
  209. package/lib/esm/internal/BackendTypes.js.map +1 -1
  210. package/lib/esm/internal/RenderMesh.d.ts +19 -5
  211. package/lib/esm/internal/RenderMesh.d.ts.map +1 -1
  212. package/lib/esm/internal/RenderMesh.js +11 -8
  213. package/lib/esm/internal/RenderMesh.js.map +1 -1
  214. package/lib/esm/internal/cross-package.d.ts +1 -1
  215. package/lib/esm/internal/cross-package.d.ts.map +1 -1
  216. package/lib/esm/internal/cross-package.js.map +1 -1
  217. package/lib/esm/rpc/IModelReadRpcInterface.d.ts +1 -1
  218. package/lib/esm/rpc/IModelReadRpcInterface.d.ts.map +1 -1
  219. package/lib/esm/rpc/IModelReadRpcInterface.js +1 -1
  220. package/lib/esm/rpc/IModelReadRpcInterface.js.map +1 -1
  221. package/lib/esm/rpc/SnapshotIModelRpcInterface.d.ts +4 -4
  222. package/lib/esm/rpc/SnapshotIModelRpcInterface.js +4 -4
  223. package/lib/esm/rpc/SnapshotIModelRpcInterface.js.map +1 -1
  224. package/lib/esm/rpc/core/RpcConstants.d.ts +6 -6
  225. package/lib/esm/rpc/core/RpcConstants.d.ts.map +1 -1
  226. package/lib/esm/rpc/core/RpcConstants.js +6 -6
  227. package/lib/esm/rpc/core/RpcConstants.js.map +1 -1
  228. package/lib/esm/rpc/web/OpenAPI.d.ts +1 -1
  229. package/lib/esm/rpc/web/OpenAPI.js.map +1 -1
  230. package/lib/esm/rpc/web/WebAppRpcLogging.js.map +1 -1
  231. package/lib/esm/rpc/web/WebAppRpcProtocol.d.ts +2 -2
  232. package/lib/esm/rpc/web/WebAppRpcProtocol.js.map +1 -1
  233. package/lib/esm/tile/IModelTileIO.d.ts +2 -2
  234. package/lib/esm/tile/IModelTileIO.js +2 -2
  235. package/lib/esm/tile/IModelTileIO.js.map +1 -1
  236. package/lib/esm/tile/TileMetadata.d.ts +6 -2
  237. package/lib/esm/tile/TileMetadata.d.ts.map +1 -1
  238. package/lib/esm/tile/TileMetadata.js +10 -4
  239. package/lib/esm/tile/TileMetadata.js.map +1 -1
  240. package/package.json +9 -8
@@ -1,28 +1,23 @@
1
1
  /** @packageDocumentation
2
2
  * @module Annotation
3
3
  */
4
+ import { Id64String } from "@itwin/core-bentley";
4
5
  import { TextStyleSettingsProps } from "./TextStyle";
5
- /** Options supplied to [[TextBlockComponent.applyStyle]] to control how the style is applied to the component and its child components.
6
+ /** Options supplied to [[TextBlockComponent.clearStyleOverrides]] to control how the style overrides are cleared on the component and its child components.
6
7
  * @beta
7
8
  */
8
- export interface ApplyTextStyleOptions {
9
- /** Controls whether any deviations from the style's settings stored in [[TextBlockComponent.styleOverrides]] are retained.
9
+ export interface ClearTextStyleOptions {
10
+ /** Controls whether the styleOverrides of any child components are retained.
10
11
  * By default, all overrides are cleared.
11
12
  */
12
- preserveOverrides?: boolean;
13
- /** Controls whether the style should be recursively applied to the [[Paragraph]]s belonging to a [[TextBlock]] and the [[Run]]s belonging to a [[Paragraph]].
14
- * By default, the style change propagates to child components.
15
- */
16
- preventPropagation?: boolean;
13
+ preserveChildrenOverrides?: boolean;
17
14
  }
18
15
  /** The JSON representation of a [[TextBlockComponent]].
19
16
  * @beta
20
17
  */
21
18
  export interface TextBlockComponentProps {
22
- /** The name of a [[TextStyle]] stored in a [Workspace]($backend) from which the base [[TextStyleSettings]] applied to the component originates. */
23
- styleName: string;
24
- /** Deviations from the base [[TextStyleSettings]] defined by the [[TextStyle]] applied to this component.
25
- * This permits you to, e.g., create a [[TextRun]] using "Arial" font and override it to use "Comic Sans" instead.
19
+ /** Deviations from the base [[TextStyleSettings]] defined by the [AnnotationTextStyle]($backend) applied to this component.
20
+ * This permits you to, e.g., create a [[TextBlock]] using "Arial" font and override one of its [[TextRun]]s to use "Comic Sans" instead.
26
21
  */
27
22
  styleOverrides?: TextStyleSettingsProps;
28
23
  }
@@ -42,52 +37,52 @@ export interface TextBlockStringifyOptions {
42
37
  * Default: "/"
43
38
  */
44
39
  fractionSeparator?: string;
40
+ /** The number of spaces to use for tabs. If not provided, tabs will be represented by a tab character: "\t".
41
+ * Default: "undefined" - use "\t".
42
+ */
43
+ tabsAsSpaces?: number;
45
44
  }
46
45
  /** Abstract representation of any of the building blocks that make up a [[TextBlock]] document - namely [[Run]]s, [[Paragraph]]s, and [[TextBlock]] itself.
47
- * Each component can specify a [[TextStyle]] that formats its contents and optional [[styleOverrides]] to customize that formatting.
46
+ * The [[TextBlock]] can specify an [AnnotationTextStyle]($backend) that formats its contents. Each component can specify an optional [[styleOverrides]] to customize that formatting.
48
47
  * @beta
49
48
  */
50
49
  export declare abstract class TextBlockComponent {
51
- private _styleName;
52
50
  private _styleOverrides;
53
51
  /** @internal */
54
- protected constructor(props: TextBlockComponentProps);
55
- /** The name of the [[TextStyle]] that provides the base formatting for the contents of this component.
56
- * @note Assigning to this property is equivalent to calling [[applyStyle]] with default [[ApplyTextStyleOptions]], which propagates the style change to all of
57
- * the components sub-components and clears any [[styleOverrides]].
58
- */
59
- get styleName(): string;
60
- set styleName(styleName: string);
61
- /** Deviations in individual properties of the [[TextStyle]] specified by [[styleName]].
52
+ protected constructor(props?: TextBlockComponentProps);
53
+ /** Deviations in individual properties of the [[TextStyleSettings]] in the [AnnotationTextStyle]($backend) specified by `styleId` on the [[TextBlock]].
62
54
  * For example, if the style uses the "Arial" font, you can override that by settings `styleOverrides.fontName` to "Comic Sans".
63
55
  * @see [[clearStyleOverrides]] to reset this to an empty object.
64
56
  */
65
57
  get styleOverrides(): TextStyleSettingsProps;
66
58
  set styleOverrides(overrides: TextStyleSettingsProps);
67
- /** Reset any [[styleOverrides]] applied to this component's [[TextStyle]]. */
68
- clearStyleOverrides(): void;
69
- /** Apply the [[TextStyle]] specified by `styleName` to this component, optionally preserving [[styleOverrides]] and/or preventing propagation to sub-components. */
70
- applyStyle(styleName: string, options?: ApplyTextStyleOptions): void;
71
- /** Returns true if [[styleOverrides]] specifies any deviations from this component's base [[TextStyle]]. */
59
+ /** Reset any [[styleOverrides]] applied to this component. */
60
+ clearStyleOverrides(_options?: ClearTextStyleOptions): void;
61
+ /** Returns true if [[styleOverrides]] specifies any deviations from the [[TextBlock]]'s [AnnotationTextStyle]($backend). */
72
62
  get overridesStyle(): boolean;
73
63
  /** Create a deep copy of this component. */
74
64
  abstract clone(): TextBlockComponent;
75
65
  /** Compute a string representation of the contents of this component and all of its sub-components. */
76
66
  abstract stringify(options?: TextBlockStringifyOptions): string;
67
+ /**
68
+ * Returns true if the string representation of this component consists only of whitespace characters.
69
+ * Useful for checking if the component is visually empty (producing no graphics) or contains only spaces, tabs, or line breaks.
70
+ */
71
+ get isWhitespace(): boolean;
77
72
  /** Convert this component to its JSON representation. */
78
73
  toJSON(): TextBlockComponentProps;
79
74
  /** Returns true if `this` is equivalent to `other`. */
80
75
  equals(other: TextBlockComponent): boolean;
81
76
  }
82
- /**
77
+ /** [[TextBlockComponent]]s contained within a [[Paragraph]].
83
78
  * @beta
84
79
  */
85
- export type Run = TextRun | FractionRun | LineBreakRun;
80
+ export type Run = TextRun | FractionRun | TabRun | LineBreakRun | FieldRun;
86
81
  /** The JSON representation of a [[Run]].
87
82
  * Use the `type` field to discriminate between the different kinds of runs.
88
83
  * @beta
89
84
  */
90
- export type RunProps = TextRunProps | FractionRunProps | LineBreakRunProps;
85
+ export type RunProps = TextRunProps | FractionRunProps | TabRunProps | LineBreakRunProps | FieldRunProps;
91
86
  /** A sequence of characters within a [[Paragraph]] that share a single style. Runs are the leaf nodes of a [[TextBlock]] document. When laid out for display, a single run may span
92
87
  * multiple lines, but it will never contain different styling.
93
88
  * Use the `type` field to discriminate between the different kinds of runs.
@@ -133,7 +128,7 @@ export declare class TextRun extends TextBlockComponent {
133
128
  private constructor();
134
129
  clone(): TextRun;
135
130
  toJSON(): TextRunProps;
136
- static create(props: Omit<TextRunProps, "type">): TextRun;
131
+ static create(props?: Omit<TextRunProps, "type">): TextRun;
137
132
  /** Simply returns [[content]]. */
138
133
  stringify(): string;
139
134
  equals(other: TextBlockComponent): boolean;
@@ -144,9 +139,9 @@ export declare class TextRun extends TextBlockComponent {
144
139
  export interface FractionRunProps extends TextBlockComponentProps {
145
140
  /** Discriminator field for the [[RunProps]] union. */
146
141
  readonly type: "fraction";
147
- /** The text displayed before or above the fraction separator, depending on [[TextStyle.stackedFractionType]]. Default: an empty string. */
142
+ /** The text displayed before or above the fraction separator, depending on [[TextStyleSettings.stackedFractionType]]. Default: an empty string. */
148
143
  numerator?: string;
149
- /** The text displayed after or below the fraction separator, depending on [[TextStyle.stackedFractionType]]. Default: an empty string. */
144
+ /** The text displayed after or below the fraction separator, depending on [[TextStyleSettings.stackedFractionType]]. Default: an empty string. */
150
145
  denominator?: string;
151
146
  }
152
147
  /** A [[Run]] containing a numeric ratio to be displayed as a numerator and denominator separated by a horizontal or diagonal bar.
@@ -163,7 +158,7 @@ export declare class FractionRun extends TextBlockComponent {
163
158
  private constructor();
164
159
  toJSON(): FractionRunProps;
165
160
  clone(): FractionRun;
166
- static create(props: Omit<FractionRunProps, "type">): FractionRun;
161
+ static create(props?: Omit<FractionRunProps, "type">): FractionRun;
167
162
  /** Formats the fraction as a string with the [[numerator]] and [[denominator]] separated by [[TextBlockStringifyOptions.fractionSeparator]]. */
168
163
  stringify(options?: TextBlockStringifyOptions): string;
169
164
  equals(other: TextBlockComponent): boolean;
@@ -183,12 +178,139 @@ export declare class LineBreakRun extends TextBlockComponent {
183
178
  readonly type = "linebreak";
184
179
  private constructor();
185
180
  toJSON(): LineBreakRunProps;
186
- static create(props: TextBlockComponentProps): LineBreakRun;
181
+ static create(props?: TextBlockComponentProps): LineBreakRun;
187
182
  clone(): LineBreakRun;
188
183
  /** Simply returns [[TextBlockStringifyOptions.lineBreak]]. */
189
184
  stringify(options?: TextBlockStringifyOptions): string;
190
185
  equals(other: TextBlockComponent): boolean;
191
186
  }
187
+ /** JSON representation of a [[TabRun]].
188
+ * @beta
189
+ */
190
+ export interface TabRunProps extends TextBlockComponentProps {
191
+ /** Discriminator field for the [[RunProps]] union. */
192
+ readonly type: "tab";
193
+ }
194
+ /** A [[TabRun]] is used to shift the next tab stop.
195
+ * @note Only left-justified tabs are supported at this tab.
196
+ * @beta
197
+ */
198
+ export declare class TabRun extends TextBlockComponent {
199
+ /** Discriminator field for the [[Run]] union. */
200
+ readonly type = "tab";
201
+ toJSON(): TabRunProps;
202
+ clone(): TabRun;
203
+ static create(props?: Omit<TabRunProps, "type">): TabRun;
204
+ /**
205
+ * Converts a [[TabRun]] to its string representation.
206
+ * If the `tabsAsSpaces` option is provided, returns a string of spaces of the specified length.
207
+ * Otherwise, returns a tab character ("\t").
208
+ */
209
+ stringify(options?: TextBlockStringifyOptions): string;
210
+ equals(other: TextBlockComponent): boolean;
211
+ }
212
+ /** A chain of property accesses that resolves to a primitive value that forms the basis of the displayed content
213
+ * of a [[FieldRun]].
214
+ * The simplest property paths consist of a [[propertyName]] and nothing else, where `propertyName` identifies
215
+ * a primitive property.
216
+ * If `propertyName` identifies a struct or array property, then additional [[accessors]] are required to identify the specific value.
217
+ * If `propertyName` (including any [[accessors]]) resolves to a JSON property, then additional [[jsonAccessors]] are required to identify a specific value within the JSON.
218
+ * Some examples:
219
+ * ```
220
+ * | Access String | propertyName | accessors | jsonAccessors |
221
+ * | ------------- | ------------ | --------- | ------------- |
222
+ * | name | "name" | undefined | undefined |
223
+ * | spouse.name | "spouse" | [name] | undefined |
224
+ * | colors[2] | "colors" | [2] | undefined |
225
+ * | spouse.favoriteRestaurants[1].address | "spouse" | ["favoriteRestaurants", 1, "address"] | undefined |
226
+ * | jsonProperties.contactInfo.email | "jsonProperties" | undefined | ["contactInfo", "email"] |
227
+ * | spouse.jsonProperties.contactInfo.phoneNumbers[0].areaCode | "spouse" | ["jsonProperties"] | ["contactInfo", "phoneNumbers", 0, "areaCode"] |
228
+ * ```
229
+ * @beta
230
+ */
231
+ export interface FieldPropertyPath {
232
+ /** The name of the BIS property of the [[FieldPropertyHost]] that serves as the root of the path. */
233
+ propertyName: string;
234
+ /** Property names and/or array indices describing the path from [[propertyName]] to the ultimate BIS property. */
235
+ accessors?: Array<string | number>;
236
+ /** If [[propertyName]] and [[accessors]] (if defined) resolve to a BIS property of extended type `Json`, property names and/or
237
+ * array indices for selecting a primitive value within the JSON.
238
+ */
239
+ jsonAccessors?: Array<string | number>;
240
+ }
241
+ /** Describes the source of the property value against which a [[FieldPropertyPath]] is evaluated.
242
+ * A field property is always hosted by an [Element]($backend). It may be a property of the element's BIS class itself,
243
+ * or that of one of its [ElementAspect]($backend)s.
244
+ * The [[schemaName]] and [[className]] should always identify the exact class that contains [[FieldPropertyPath.propertyName]] - not a subclass thereof.
245
+ * @beta
246
+ */
247
+ export interface FieldPropertyHost {
248
+ /** The Id of the [Element]($backend) that hosts the property. */
249
+ elementId: Id64String;
250
+ /** The name of the schema containing the class identified by [[className]]. */
251
+ schemaName: string;
252
+ /** The name of the exact class (not a subclass) containing the property identified by [[FieldPropertyPath.propertyName]]. */
253
+ className: string;
254
+ }
255
+ /** Placeholder type for a description of how to format the raw property value resolved by a [[FieldPropertyPath]] into a [[FieldRun]]'s display string.
256
+ * *** COMING SOON ***
257
+ * @beta
258
+ */
259
+ export interface FieldFormatter {
260
+ [k: string]: any;
261
+ }
262
+ /** JSON representation of a [[FieldRun]].
263
+ * @beta
264
+ */
265
+ export interface FieldRunProps extends TextBlockComponentProps {
266
+ /** Discriminator field for the [[RunProps]] union. */
267
+ readonly type: "field";
268
+ /** The element and BIS class containing the property described by [[propertyPath]]. */
269
+ propertyHost: FieldPropertyHost;
270
+ /** Describes how to obtain the property value from [[propertyHost]]. */
271
+ propertyPath: FieldPropertyPath;
272
+ /** Specifies how to format the property value obtained from [[propertyPath]] into a string to be stored in [[cachedContent]]. */
273
+ formatter?: FieldFormatter;
274
+ /** The field's most recently evaluated display string. */
275
+ cachedContent?: string;
276
+ }
277
+ /** A [[Run]] that displays the formatted value of a property of some [Element]($backend).
278
+ * When a [[TextBlock]] containing a [[FieldRun]] is written into the iModel as an [ITextAnnotation]($backend) element,
279
+ * a dependency is established between the two elements via the [ElementDrivesTextAnnotation]($backend) relationship such that
280
+ * whenever the source element specified by [[propertyHost]] is modified, the field(s) in the `ITextAnnotation` element are automatically
281
+ * recalculated, causing their [[cachedContent]] to update. If the field's display string cannot be evaluated (for example, because the specified element or
282
+ * property does not exist), then its cached content is set to [[FieldRun.invalidContentIndicator]].
283
+ * A [[FieldRun]] displays its [[cachedContent]] in the same way that [[TextRun]]s display their `content`, including word wrapping where appropriate.
284
+ * @beta
285
+ */
286
+ export declare class FieldRun extends TextBlockComponent {
287
+ /** Display string used to signal an error in computing the field's value. */
288
+ static invalidContentIndicator: string;
289
+ /** Discriminator field for the [[Run]] union. */
290
+ readonly type = "field";
291
+ /** The element and BIS class containing the property described by [[propertyPath]]. */
292
+ readonly propertyHost: Readonly<FieldPropertyHost>;
293
+ /** Describes how to obtain the property value from [[propertyHost]]. */
294
+ readonly propertyPath: Readonly<FieldPropertyPath>;
295
+ /** Specifies how to format the property value obtained from [[propertyPath]] into a string to be stored in [[cachedContent]]. */
296
+ readonly formatter?: FieldFormatter;
297
+ private _cachedContent;
298
+ /** The field's most recently evaluated display string. */
299
+ get cachedContent(): string;
300
+ /** @internal Used by core-backend when re-evaluating field content. */
301
+ setCachedContent(content: string | undefined): void;
302
+ private constructor();
303
+ /** Create a FieldRun from its JSON representation. */
304
+ static create(props: Omit<FieldRunProps, "type">): FieldRun;
305
+ /** Convert the FieldRun to its JSON representation. */
306
+ toJSON(): FieldRunProps;
307
+ /** Create a deep copy of this FieldRun. */
308
+ clone(): FieldRun;
309
+ /** Convert this FieldRun to a simple string representation. */
310
+ stringify(): string;
311
+ /** Returns true if `this` is equivalent to `other`. */
312
+ equals(other: TextBlockComponent): boolean;
313
+ }
192
314
  /** JSON representation of a [[Paragraph]].
193
315
  * @beta
194
316
  */
@@ -207,10 +329,13 @@ export declare class Paragraph extends TextBlockComponent {
207
329
  private constructor();
208
330
  toJSON(): ParagraphProps;
209
331
  /** Create a paragraph from its JSON representation. */
210
- static create(props: ParagraphProps): Paragraph;
332
+ static create(props?: ParagraphProps): Paragraph;
211
333
  clone(): Paragraph;
212
- /** Apply the specified style to this [[Paragraph]], and - unless [[ApplyTextStyleOptions.preventPropagation]] is `true` - to all of its [[runs]]. */
213
- applyStyle(styleName: string, options?: ApplyTextStyleOptions): void;
334
+ /**
335
+ * Clears any [[styleOverrides]] applied to this Paragraph.
336
+ * Will also clear [[styleOverrides]] from all child components unless [[ClearTextStyleOptions.preserveChildrenOverrides]] is `true`.
337
+ */
338
+ clearStyleOverrides(options?: ClearTextStyleOptions): void;
214
339
  /** Compute a string representation of this paragraph by concatenating the string representations of all of its [[runs]]. */
215
340
  stringify(options?: TextBlockStringifyOptions): string;
216
341
  equals(other: TextBlockComponent): boolean;
@@ -236,6 +361,8 @@ export interface TextBlockMargins {
236
361
  * @beta
237
362
  */
238
363
  export interface TextBlockProps extends TextBlockComponentProps {
364
+ /** The ID of an [AnnotationTextStyle]($backend) stored in the iModel from which the base [[TextStyleSettings]] applied to the [[TextBlock]] originates. */
365
+ styleId: Id64String;
239
366
  /** The width of the document in meters. Lines that would exceed this width are instead wrapped around to the next line if possible.
240
367
  * A value less than or equal to zero indicates no wrapping is to be applied.
241
368
  * Default: 0
@@ -255,6 +382,11 @@ export interface TextBlockProps extends TextBlockComponentProps {
255
382
  * @beta
256
383
  */
257
384
  export declare class TextBlock extends TextBlockComponent {
385
+ /** The ID of the [AnnotationTextStyle]($backend) that provides the base formatting for the contents of this TextBlock.
386
+ * @note Assigning to this property retains all style overrides on the TextBlock and its child components.
387
+ * Call [[clearStyleOverrides]] to clear the TextBlock's and optionally all children's style overrides.
388
+ */
389
+ styleId: Id64String;
258
390
  /** The width of the document in meters. Lines that would exceed this width are instead wrapped around to the next line if possible.
259
391
  * A value less than or equal to zero indicates no wrapping is to be applied.
260
392
  * Default: 0
@@ -270,20 +402,23 @@ export declare class TextBlock extends TextBlockComponent {
270
402
  toJSON(): TextBlockProps;
271
403
  /** Create a text block from its JSON representation. */
272
404
  static create(props: TextBlockProps): TextBlock;
273
- /** Create an empty text block containing no [[paragraphs]] and an empty [[styleName]]. */
405
+ /** Create an empty text block containing no [[paragraphs]] and an empty [[styleId]]. */
274
406
  static createEmpty(): TextBlock;
275
407
  /** Returns true if every paragraph in this text block is empty. */
276
408
  get isEmpty(): boolean;
277
409
  clone(): TextBlock;
278
- /** Apply the specified style to this block and - unless [[ApplyTextStyleOptions.preventPropagation]] is `true` - to all of its [[paragraphs]]. */
279
- applyStyle(styleName: string, options?: ApplyTextStyleOptions): void;
410
+ /**
411
+ * Clears any [[styleOverrides]] applied to this TextBlock.
412
+ * Will also clear [[styleOverrides]] from all child components unless [[ClearTextStyleOptions.preserveChildrenOverrides]] is `true`.
413
+ */
414
+ clearStyleOverrides(options?: ClearTextStyleOptions): void;
280
415
  /** Compute a string representation of the document's contents by concatenating the string representations of each of its [[paragraphs]], separated by [[TextBlockStringifyOptions.paragraphBreak]]. */
281
416
  stringify(options?: TextBlockStringifyOptions): string;
282
417
  /** Add and return a new paragraph.
283
- * If [[paragraphs]] is not empty, the style and overrides of the last [[Paragraph]] in the block will be applied to the new paragraph; otherwise,
284
- * the paragraph will inherit this block's style with no overrides.
418
+ * By default, the paragraph will be created with no [[styleOverrides]], so that it inherits the style of this block.
419
+ * @param seedFromLast If true and [[paragraphs]] is not empty, the new paragraph will inherit the style overrides of the last [[Paragraph]] in this block.
285
420
  */
286
- appendParagraph(): Paragraph;
421
+ appendParagraph(seedFromLast?: boolean): Paragraph;
287
422
  /** Append a run to the last [[Paragraph]] in this block.
288
423
  * If the block contains no [[paragraphs]], a new one will first be created using [[appendParagraph]].
289
424
  */
@@ -1 +1 @@
1
- {"version":3,"file":"TextBlock.d.ts","sourceRoot":"","sources":["../../../src/annotation/TextBlock.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAErD;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;OAEG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,mJAAmJ;IACnJ,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,cAAc,CAAC,EAAE,sBAAsB,CAAC;CACzC;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED;;;GAGG;AACH,8BAAsB,kBAAkB;IACtC,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,eAAe,CAAyB;IAEhD,gBAAgB;IAChB,SAAS,aAAa,KAAK,EAAE,uBAAuB;IAKpD;;;OAGG;IACH,IAAW,SAAS,IAAI,MAAM,CAE7B;IAED,IAAW,SAAS,CAAC,SAAS,EAAE,MAAM,EAErC;IAED;;;OAGG;IACH,IAAW,cAAc,IAAI,sBAAsB,CAElD;IAED,IAAW,cAAc,CAAC,SAAS,EAAE,sBAAsB,EAE1D;IAED,8EAA8E;I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