@itwin/core-backend 3.4.0-dev.43 → 3.4.0-dev.44

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 (219) hide show
  1. package/lib/cjs/AliCloudStorageService.d.ts +17 -17
  2. package/lib/cjs/AliCloudStorageService.js +68 -68
  3. package/lib/cjs/AliCloudStorageService.js.map +1 -1
  4. package/lib/cjs/BackendHubAccess.d.ts +224 -224
  5. package/lib/cjs/BackendHubAccess.js +41 -41
  6. package/lib/cjs/BackendHubAccess.js.map +1 -1
  7. package/lib/cjs/BackendLoggerCategory.d.ts +82 -82
  8. package/lib/cjs/BackendLoggerCategory.js +90 -90
  9. package/lib/cjs/BackendLoggerCategory.js.map +1 -1
  10. package/lib/cjs/BisCoreSchema.d.ts +21 -21
  11. package/lib/cjs/BisCoreSchema.js +60 -60
  12. package/lib/cjs/BisCoreSchema.js.map +1 -1
  13. package/lib/cjs/BriefcaseManager.d.ts +165 -165
  14. package/lib/cjs/BriefcaseManager.js +405 -405
  15. package/lib/cjs/BriefcaseManager.js.map +1 -1
  16. package/lib/cjs/Category.d.ts +153 -153
  17. package/lib/cjs/Category.js +243 -243
  18. package/lib/cjs/Category.js.map +1 -1
  19. package/lib/cjs/ChangeSummaryManager.d.ts +187 -187
  20. package/lib/cjs/ChangeSummaryManager.js +445 -445
  21. package/lib/cjs/ChangeSummaryManager.js.map +1 -1
  22. package/lib/cjs/ChangedElementsDb.d.ts +99 -99
  23. package/lib/cjs/ChangedElementsDb.js +165 -165
  24. package/lib/cjs/ChangedElementsDb.js.map +1 -1
  25. package/lib/cjs/ChangedElementsManager.d.ts +39 -39
  26. package/lib/cjs/ChangedElementsManager.js +88 -88
  27. package/lib/cjs/ChangedElementsManager.js.map +1 -1
  28. package/lib/cjs/CheckpointManager.d.ts +122 -122
  29. package/lib/cjs/CheckpointManager.js +354 -354
  30. package/lib/cjs/CheckpointManager.js.map +1 -1
  31. package/lib/cjs/ClassRegistry.d.ts +71 -71
  32. package/lib/cjs/ClassRegistry.js +213 -213
  33. package/lib/cjs/ClassRegistry.js.map +1 -1
  34. package/lib/cjs/CloudSqlite.d.ts +328 -328
  35. package/lib/cjs/CloudSqlite.js +135 -135
  36. package/lib/cjs/CloudSqlite.js.map +1 -1
  37. package/lib/cjs/CloudStorageBackend.d.ts +46 -46
  38. package/lib/cjs/CloudStorageBackend.js +164 -164
  39. package/lib/cjs/CloudStorageBackend.js.map +1 -1
  40. package/lib/cjs/CodeService.d.ts +391 -391
  41. package/lib/cjs/CodeService.js +61 -61
  42. package/lib/cjs/CodeService.js.map +1 -1
  43. package/lib/cjs/CodeSpecs.d.ts +50 -50
  44. package/lib/cjs/CodeSpecs.js +112 -112
  45. package/lib/cjs/CodeSpecs.js.map +1 -1
  46. package/lib/cjs/ConcurrentQuery.d.ts +11 -11
  47. package/lib/cjs/ConcurrentQuery.js +30 -30
  48. package/lib/cjs/ConcurrentQuery.js.map +1 -1
  49. package/lib/cjs/CustomViewState3dCreator.d.ts +32 -32
  50. package/lib/cjs/CustomViewState3dCreator.js +99 -99
  51. package/lib/cjs/CustomViewState3dCreator.js.map +1 -1
  52. package/lib/cjs/DevTools.d.ts +71 -71
  53. package/lib/cjs/DevTools.js +154 -154
  54. package/lib/cjs/DevTools.js.map +1 -1
  55. package/lib/cjs/DisplayStyle.d.ts +106 -106
  56. package/lib/cjs/DisplayStyle.js +256 -256
  57. package/lib/cjs/DisplayStyle.js.map +1 -1
  58. package/lib/cjs/ECDb.d.ts +191 -191
  59. package/lib/cjs/ECDb.js +350 -350
  60. package/lib/cjs/ECDb.js.map +1 -1
  61. package/lib/cjs/ECSchemaXmlContext.d.ts +18 -18
  62. package/lib/cjs/ECSchemaXmlContext.js +41 -41
  63. package/lib/cjs/ECSchemaXmlContext.js.map +1 -1
  64. package/lib/cjs/ECSqlStatement.d.ts +466 -466
  65. package/lib/cjs/ECSqlStatement.js +791 -791
  66. package/lib/cjs/ECSqlStatement.js.map +1 -1
  67. package/lib/cjs/Element.d.ts +1109 -1109
  68. package/lib/cjs/Element.js +1421 -1421
  69. package/lib/cjs/Element.js.map +1 -1
  70. package/lib/cjs/ElementAspect.d.ts +156 -156
  71. package/lib/cjs/ElementAspect.js +178 -178
  72. package/lib/cjs/ElementAspect.js.map +1 -1
  73. package/lib/cjs/ElementGraphics.d.ts +9 -9
  74. package/lib/cjs/ElementGraphics.js +41 -41
  75. package/lib/cjs/ElementGraphics.js.map +1 -1
  76. package/lib/cjs/ElementTreeWalker.d.ts +162 -162
  77. package/lib/cjs/ElementTreeWalker.js +409 -409
  78. package/lib/cjs/ElementTreeWalker.js.map +1 -1
  79. package/lib/cjs/Entity.d.ts +76 -76
  80. package/lib/cjs/Entity.js +82 -82
  81. package/lib/cjs/Entity.js.map +1 -1
  82. package/lib/cjs/ExportGraphics.d.ts +317 -317
  83. package/lib/cjs/ExportGraphics.js +208 -208
  84. package/lib/cjs/ExportGraphics.js.map +1 -1
  85. package/lib/cjs/ExternalSource.d.ts +94 -94
  86. package/lib/cjs/ExternalSource.js +125 -125
  87. package/lib/cjs/ExternalSource.js.map +1 -1
  88. package/lib/cjs/GeoCoordConfig.d.ts +19 -19
  89. package/lib/cjs/GeoCoordConfig.js +82 -82
  90. package/lib/cjs/GeoCoordConfig.js.map +1 -1
  91. package/lib/cjs/GeometrySummary.d.ts +4 -4
  92. package/lib/cjs/GeometrySummary.js +380 -380
  93. package/lib/cjs/GeometrySummary.js.map +1 -1
  94. package/lib/cjs/HubMock.d.ts +93 -93
  95. package/lib/cjs/HubMock.js +190 -190
  96. package/lib/cjs/HubMock.js.map +1 -1
  97. package/lib/cjs/IModelCloneContext.d.ts +85 -85
  98. package/lib/cjs/IModelCloneContext.js +150 -150
  99. package/lib/cjs/IModelCloneContext.js.map +1 -1
  100. package/lib/cjs/IModelDb.d.ts +1164 -1164
  101. package/lib/cjs/IModelDb.js +2321 -2321
  102. package/lib/cjs/IModelDb.js.map +1 -1
  103. package/lib/cjs/IModelHost.d.ts +347 -347
  104. package/lib/cjs/IModelHost.js +457 -457
  105. package/lib/cjs/IModelHost.js.map +1 -1
  106. package/lib/cjs/IModelJsFs.d.ts +62 -62
  107. package/lib/cjs/IModelJsFs.js +140 -140
  108. package/lib/cjs/IModelJsFs.js.map +1 -1
  109. package/lib/cjs/IpcHost.d.ts +98 -98
  110. package/lib/cjs/IpcHost.js +234 -234
  111. package/lib/cjs/IpcHost.js.map +1 -1
  112. package/lib/cjs/LineStyle.d.ts +311 -311
  113. package/lib/cjs/LineStyle.js +295 -295
  114. package/lib/cjs/LineStyle.js.map +1 -1
  115. package/lib/cjs/LocalHub.d.ts +162 -162
  116. package/lib/cjs/LocalHub.js +587 -587
  117. package/lib/cjs/LocalHub.js.map +1 -1
  118. package/lib/cjs/LocalhostIpcHost.d.ts +20 -20
  119. package/lib/cjs/LocalhostIpcHost.js +81 -81
  120. package/lib/cjs/LocalhostIpcHost.js.map +1 -1
  121. package/lib/cjs/Material.d.ts +103 -103
  122. package/lib/cjs/Material.js +147 -147
  123. package/lib/cjs/Material.js.map +1 -1
  124. package/lib/cjs/Model.d.ts +386 -386
  125. package/lib/cjs/Model.js +468 -468
  126. package/lib/cjs/Model.js.map +1 -1
  127. package/lib/cjs/NativeAppStorage.d.ts +51 -51
  128. package/lib/cjs/NativeAppStorage.js +202 -202
  129. package/lib/cjs/NativeAppStorage.js.map +1 -1
  130. package/lib/cjs/NativeHost.d.ts +52 -52
  131. package/lib/cjs/NativeHost.js +168 -168
  132. package/lib/cjs/NativeHost.js.map +1 -1
  133. package/lib/cjs/NavigationRelationship.d.ts +156 -156
  134. package/lib/cjs/NavigationRelationship.js +225 -225
  135. package/lib/cjs/NavigationRelationship.js.map +1 -1
  136. package/lib/cjs/PromiseMemoizer.d.ts +51 -51
  137. package/lib/cjs/PromiseMemoizer.js +95 -95
  138. package/lib/cjs/PromiseMemoizer.js.map +1 -1
  139. package/lib/cjs/PropertyStore.d.ts +132 -132
  140. package/lib/cjs/PropertyStore.js +11 -11
  141. package/lib/cjs/PropertyStore.js.map +1 -1
  142. package/lib/cjs/Relationship.d.ts +400 -400
  143. package/lib/cjs/Relationship.js +465 -465
  144. package/lib/cjs/Relationship.js.map +1 -1
  145. package/lib/cjs/RpcBackend.d.ts +28 -28
  146. package/lib/cjs/RpcBackend.js +126 -126
  147. package/lib/cjs/RpcBackend.js.map +1 -1
  148. package/lib/cjs/SQLiteDb.d.ts +219 -219
  149. package/lib/cjs/SQLiteDb.js +214 -214
  150. package/lib/cjs/SQLiteDb.js.map +1 -1
  151. package/lib/cjs/Schema.d.ts +55 -55
  152. package/lib/cjs/Schema.js +83 -83
  153. package/lib/cjs/Schema.js.map +1 -1
  154. package/lib/cjs/ServerBasedLocks.d.ts +57 -57
  155. package/lib/cjs/ServerBasedLocks.js +168 -168
  156. package/lib/cjs/ServerBasedLocks.js.map +1 -1
  157. package/lib/cjs/SqliteStatement.d.ts +283 -283
  158. package/lib/cjs/SqliteStatement.js +448 -448
  159. package/lib/cjs/SqliteStatement.js.map +1 -1
  160. package/lib/cjs/Texture.d.ts +58 -58
  161. package/lib/cjs/Texture.js +82 -82
  162. package/lib/cjs/Texture.js.map +1 -1
  163. package/lib/cjs/TxnManager.d.ts +202 -202
  164. package/lib/cjs/TxnManager.js +353 -353
  165. package/lib/cjs/TxnManager.js.map +1 -1
  166. package/lib/cjs/ViewDefinition.d.ts +435 -435
  167. package/lib/cjs/ViewDefinition.js +629 -629
  168. package/lib/cjs/ViewDefinition.js.map +1 -1
  169. package/lib/cjs/ViewStateHydrator.d.ts +13 -13
  170. package/lib/cjs/ViewStateHydrator.js +103 -103
  171. package/lib/cjs/ViewStateHydrator.js.map +1 -1
  172. package/lib/cjs/assets/IModelChange.02.00.00.ecschema.xml +90 -90
  173. package/lib/cjs/assets/Settings/Schemas/Cloud.Schema.json +67 -67
  174. package/lib/cjs/assets/Settings/Schemas/Gcs.schema.json +31 -31
  175. package/lib/cjs/assets/Settings/Schemas/Workspace.Schema.json +52 -52
  176. package/lib/cjs/assets/Settings/backend.setting.json5 +138 -138
  177. package/lib/cjs/core-backend.d.ts +178 -178
  178. package/lib/cjs/core-backend.js +198 -198
  179. package/lib/cjs/core-backend.js.map +1 -1
  180. package/lib/cjs/domains/FunctionalElements.d.ts +101 -101
  181. package/lib/cjs/domains/FunctionalElements.js +145 -145
  182. package/lib/cjs/domains/FunctionalElements.js.map +1 -1
  183. package/lib/cjs/domains/FunctionalSchema.d.ts +13 -13
  184. package/lib/cjs/domains/FunctionalSchema.js +40 -40
  185. package/lib/cjs/domains/FunctionalSchema.js.map +1 -1
  186. package/lib/cjs/domains/GenericElements.d.ts +177 -177
  187. package/lib/cjs/domains/GenericElements.js +263 -263
  188. package/lib/cjs/domains/GenericElements.js.map +1 -1
  189. package/lib/cjs/domains/GenericSchema.d.ts +10 -10
  190. package/lib/cjs/domains/GenericSchema.js +28 -28
  191. package/lib/cjs/domains/GenericSchema.js.map +1 -1
  192. package/lib/cjs/rpc-impl/DevToolsRpcImpl.d.ts +15 -15
  193. package/lib/cjs/rpc-impl/DevToolsRpcImpl.js +32 -32
  194. package/lib/cjs/rpc-impl/DevToolsRpcImpl.js.map +1 -1
  195. package/lib/cjs/rpc-impl/IModelReadRpcImpl.d.ts +45 -45
  196. package/lib/cjs/rpc-impl/IModelReadRpcImpl.js +262 -262
  197. package/lib/cjs/rpc-impl/IModelReadRpcImpl.js.map +1 -1
  198. package/lib/cjs/rpc-impl/IModelTileRpcImpl.d.ts +20 -20
  199. package/lib/cjs/rpc-impl/IModelTileRpcImpl.js +195 -195
  200. package/lib/cjs/rpc-impl/IModelTileRpcImpl.js.map +1 -1
  201. package/lib/cjs/rpc-impl/RpcBriefcaseUtility.d.ts +36 -36
  202. package/lib/cjs/rpc-impl/RpcBriefcaseUtility.js +165 -165
  203. package/lib/cjs/rpc-impl/RpcBriefcaseUtility.js.map +1 -1
  204. package/lib/cjs/rpc-impl/SnapshotIModelRpcImpl.d.ts +16 -16
  205. package/lib/cjs/rpc-impl/SnapshotIModelRpcImpl.js +43 -43
  206. package/lib/cjs/rpc-impl/SnapshotIModelRpcImpl.js.map +1 -1
  207. package/lib/cjs/rpc-impl/WipRpcImpl.d.ts +15 -15
  208. package/lib/cjs/rpc-impl/WipRpcImpl.js +37 -37
  209. package/lib/cjs/rpc-impl/WipRpcImpl.js.map +1 -1
  210. package/lib/cjs/workspace/Settings.d.ts +186 -186
  211. package/lib/cjs/workspace/Settings.js +152 -152
  212. package/lib/cjs/workspace/Settings.js.map +1 -1
  213. package/lib/cjs/workspace/SettingsSchemas.d.ts +75 -75
  214. package/lib/cjs/workspace/SettingsSchemas.js +191 -191
  215. package/lib/cjs/workspace/SettingsSchemas.js.map +1 -1
  216. package/lib/cjs/workspace/Workspace.d.ts +405 -405
  217. package/lib/cjs/workspace/Workspace.js +539 -539
  218. package/lib/cjs/workspace/Workspace.js.map +1 -1
  219. package/package.json +12 -12
@@ -1,1110 +1,1110 @@
1
- /** @packageDocumentation
2
- * @module Elements
3
- */
4
- import { GuidString, Id64Set, Id64String } from "@itwin/core-bentley";
5
- import { AxisAlignedBox3d, Code, CodeScopeProps, DefinitionElementProps, ElementAlignedBox3d, ElementGeometryBuilderParams, ElementGeometryBuilderParamsForPart, ElementProps, EntityMetaData, GeometricElement2dProps, GeometricElement3dProps, GeometricElementProps, GeometryPartProps, GeometryStreamProps, InformationPartitionElementProps, LineStyleProps, ModelProps, PhysicalElementProps, PhysicalTypeProps, Placement2d, Placement3d, RelatedElement, RenderSchedule, RenderTimelineProps, RepositoryLinkProps, SectionDrawingLocationProps, SectionDrawingProps, SectionType, SheetBorderTemplateProps, SheetProps, SheetTemplateProps, SubjectProps, TypeDefinition, TypeDefinitionElementProps, UrlLinkProps } from "@itwin/core-common";
6
- import { ClipVector, Transform } from "@itwin/core-geometry";
7
- import { Entity } from "./Entity";
8
- import { IModelCloneContext } from "./IModelCloneContext";
9
- import { IModelDb } from "./IModelDb";
10
- /** Argument for the `Element.onXxx` static methods
11
- * @beta
12
- */
13
- export interface OnElementArg {
14
- /** The iModel for the Element affected by this method. */
15
- iModel: IModelDb;
16
- }
17
- /** Argument for `Element.onInsert` and `Element.onUpdate` static methods.
18
- * @beta
19
- */
20
- export interface OnElementPropsArg extends OnElementArg {
21
- /** The properties of the Element affected by this method.
22
- * @note the properties may be modified. If so the modified values will be inserted/updated.
23
- */
24
- props: ElementProps;
25
- }
26
- /** Argument for the `Element.onXxx` static methods that only supply the Id of the affected Element.
27
- * @beta
28
- */
29
- export interface OnElementIdArg extends OnElementArg {
30
- /** The Id of the Element affected by this method */
31
- id: Id64String;
32
- }
33
- /** Argument for the `Element.onChildXxx` static methods
34
- * @beta
35
- */
36
- export interface OnChildElementArg extends OnElementArg {
37
- parentId: Id64String;
38
- }
39
- /** Argument for the `Element.onChildXxx` static methods that supply the properties of the child Element to be inserted or updated.
40
- * @beta
41
- */
42
- export interface OnChildElementPropsArg extends OnChildElementArg {
43
- /** The new properties of the child Element for this method. */
44
- childProps: Readonly<ElementProps>;
45
- }
46
- /** Argument for the `Element.onChildXxx` static methods that only supply the Id of the child Element.
47
- * @beta
48
- */
49
- export interface OnChildElementIdArg extends OnChildElementArg {
50
- /** The Id of the child element for this method */
51
- childId: Id64String;
52
- }
53
- /** Argument for the `Element.onSubModelInsert` static method
54
- * @beta
55
- */
56
- export interface OnSubModelPropsArg extends OnElementArg {
57
- /** The properties of the prospective sub-model */
58
- subModelProps: ModelProps;
59
- }
60
- /** Argument for several `Element.onSubModelXxx` static methods
61
- * @beta
62
- */
63
- export interface OnSubModelIdArg extends OnElementArg {
64
- /** The modelId of the sub Model */
65
- subModelId: Id64String;
66
- }
67
- /** Elements are the smallest individually identifiable building blocks for modeling the real world in an iModel.
68
- * Each element represents an entity in the real world. Sets of Elements (contained in [[Model]]s) are used to model
69
- * other Elements that represent larger scale real world entities. Using this recursive modeling strategy,
70
- * Elements can represent entities at any scale. Elements can represent physical things or abstract concepts
71
- * or simply be information records.
72
- *
73
- * Every Element has a 64-bit id (inherited from Entity) that uniquely identifies it within an iModel. Every Element also
74
- * has a "code" that identifies its meaning in the real world. Additionally, Elements may have a "federationGuid"
75
- * to hold a GUID, if the element was assigned that GUID by some other federated database. The iModel database enforces
76
- * uniqueness of id, code, and federationGuid.
77
- *
78
- * See:
79
- * * [Element Fundamentals]($docs/bis/guide/fundamentals/element-fundamentals.md)
80
- * * [Working with schemas and elements in TypeScript]($docs/learning/backend/SchemasAndElementsInTypeScript.md)
81
- * * [Creating elements]($docs/learning/backend/CreateElements.md)
82
- * @public
83
- */
84
- export declare class Element extends Entity {
85
- /** @internal */
86
- static get className(): string;
87
- /** @internal */
88
- static get protectedOperations(): string[];
89
- /** The ModelId of the [Model]($docs/bis/guide/fundamentals/model-fundamentals.md) containing this element */
90
- readonly model: Id64String;
91
- /** The [Code]($docs/bis/guide/fundamentals/codes.md) for this element */
92
- code: Code;
93
- /** The parent element, if present, of this element. */
94
- parent?: RelatedElement;
95
- /** A [FederationGuid]($docs/bis/guide/fundamentals/element-fundamentals.md#federationguid) assigned to this element by some other federated database */
96
- federationGuid?: GuidString;
97
- /** A [user-assigned label]($docs/bis/guide/fundamentals/element-fundamentals.md#userlabel) for this element. */
98
- userLabel?: string;
99
- /** Optional [json properties]($docs/bis/guide/fundamentals/element-fundamentals.md#jsonproperties) of this element. */
100
- readonly jsonProperties: {
101
- [key: string]: any;
102
- };
103
- /** constructor for Element.
104
- * @internal
105
- */
106
- constructor(props: ElementProps, iModel: IModelDb);
107
- /** Called before a new Element is inserted.
108
- * @note throw an exception to disallow the insert
109
- * @note If you override this method, you must call super.
110
- * @note `this` is the class of the Element to be inserted
111
- * @beta
112
- */
113
- protected static onInsert(arg: OnElementPropsArg): void;
114
- /** Called after a new Element was inserted.
115
- * @note If you override this method, you must call super.
116
- * @note `this` is the class of the Element that was inserted
117
- * @beta
118
- */
119
- protected static onInserted(arg: OnElementIdArg): void;
120
- /** Called before an Element is updated.
121
- * @note throw an exception to disallow the update
122
- * @note If you override this method, you must call super.
123
- * @note `this` is the class of the Element to be updated
124
- * @beta
125
- */
126
- protected static onUpdate(arg: OnElementPropsArg): void;
127
- /** Called after an Element was updated.
128
- * @note If you override this method, you must call super.
129
- * @note `this` is the class of the Element that was updated
130
- * @beta
131
- */
132
- protected static onUpdated(_arg: OnElementIdArg): void;
133
- /** Called before an Element is deleted.
134
- * @note throw an exception to disallow the delete
135
- * @note If you override this method, you must call super.
136
- * @note `this` is the class of the Element to be deleted
137
- * @beta
138
- */
139
- protected static onDelete(arg: OnElementIdArg): void;
140
- /** Called after an Element was deleted.
141
- * @note If you override this method, you must call super.
142
- * @note `this` is the class of the Element that was deleted
143
- * @beta
144
- */
145
- protected static onDeleted(_arg: OnElementIdArg): void;
146
- /** Called when an element with an instance of this class as its parent is about to be deleted.
147
- * @note throw an exception if the element should not be deleted
148
- * @note implementers should not presume that the element was deleted if this method does not throw,
149
- * since the delete may fail for other reasons. Instead, rely on [[onChildDeleted]] for that purpose.
150
- * @note `this` is the class of the parent Element whose child will be deleted
151
- * @beta
152
- */
153
- protected static onChildDelete(_arg: OnChildElementIdArg): void;
154
- /** Called after an element with an instance of this class as its parent was successfully deleted.
155
- * @note `this` is the class of the parent Element whose child was deleted
156
- * @beta
157
- */
158
- protected static onChildDeleted(_arg: OnChildElementIdArg): void;
159
- /** Called when a *new element* with an instance of this class as its parent is about to be inserted.
160
- * @note throw an exception if the element should not be inserted
161
- * @note `this` is the class of the prospective parent Element.
162
- * @beta
163
- */
164
- protected static onChildInsert(_arg: OnChildElementPropsArg): void;
165
- /** Called after a *new element* with an instance of this class as its parent was inserted.
166
- * @note `this` is the class of the parent Element.
167
- * @beta
168
- */
169
- protected static onChildInserted(_arg: OnChildElementIdArg): void;
170
- /** Called when an element with an instance of this class as its parent is about to be updated.
171
- * @note throw an exception if the element should not be updated
172
- * @note `this` is the class of the parent Element.
173
- * @beta
174
- */
175
- protected static onChildUpdate(_arg: OnChildElementPropsArg): void;
176
- /** Called after an element with an instance of this the class as its parent was updated.
177
- * @note `this` is the class of the parent Element.
178
- * @beta
179
- */
180
- protected static onChildUpdated(_arg: OnChildElementIdArg): void;
181
- /** Called when an *existing element* is about to be updated so that an instance of this class will become its new parent.
182
- * @note throw an exception if the element should not be added
183
- * @note `this` is the class of the prospective parent Element.
184
- * @beta
185
- */
186
- protected static onChildAdd(_arg: OnChildElementPropsArg): void;
187
- /** Called after an *existing element* has been updated so that an instance of this class is its new parent.
188
- * @note `this` is the class of the new parent Element.
189
- * @beta
190
- */
191
- protected static onChildAdded(_arg: OnChildElementIdArg): void;
192
- /** Called when an element with an instance of this class as its parent is about to be updated change to a different parent.
193
- * @note throw an exception if the element should not be dropped
194
- * @note `this` is the class of the parent Element.
195
- * @beta
196
- */
197
- protected static onChildDrop(_arg: OnChildElementIdArg): void;
198
- /** Called after an element with an instance of this class as its previous parent was updated to have a new parent.
199
- * @note `this` is the class of the previous parent Element.
200
- * @beta
201
- */
202
- protected static onChildDropped(_arg: OnChildElementIdArg): void;
203
- /** Called when an instance of this class is being *sub-modeled* by a new Model.
204
- * @note throw an exception if model should not be inserted
205
- * @note `this` is the class of Element to be sub-modeled.
206
- * @beta
207
- */
208
- protected static onSubModelInsert(_arg: OnSubModelPropsArg): void;
209
- /** Called after an instance of this class was *sub-modeled* by a new Model.
210
- * @note `this` is the class of Element that is now sub-modeled.
211
- * @beta
212
- */
213
- protected static onSubModelInserted(_arg: OnSubModelIdArg): void;
214
- /** Called when a sub-model of an instance of this class is being deleted.
215
- * @note throw an exception if model should not be deleted
216
- * @note `this` is the class of Element that is sub-modeled.
217
- * @beta
218
- */
219
- protected static onSubModelDelete(_arg: OnSubModelIdArg): void;
220
- /** Called after a sub-model of an instance of this class was deleted.
221
- * @note `this` is the class of Element that was sub-modeled.
222
- * @beta
223
- */
224
- protected static onSubModelDeleted(_arg: OnSubModelIdArg): void;
225
- /** Called during the iModel transformation process after an Element from the source iModel was *cloned* for the target iModel.
226
- * The transformation process automatically handles remapping BisCore properties and those that are properly described in ECSchema.
227
- * This callback is only meant to be overridden if there are other Ids in non-standard locations that need to be remapped or other data that needs to be fixed up after the clone.
228
- * @param _context The context that persists any remapping between the source iModel and target iModel.
229
- * @param _sourceProps The ElementProps for the source Element that was cloned.
230
- * @param _targetProps The ElementProps that are a result of the clone. These can be further modified.
231
- * @note If you override this method, you must call super.
232
- * @beta
233
- */
234
- protected static onCloned(_context: IModelCloneContext, _sourceProps: ElementProps, _targetProps: ElementProps): void;
235
- /** Called when a *root* element in a subgraph is changed and before its outputs are processed.
236
- * This special callback is made when:
237
- * * the element is part of an [[ElementDrivesElement]] graph, and
238
- * * the element has no inputs, and
239
- * * none of the element's outputs have been processed.
240
- * @see [[ElementDrivesElement]] for more on element dependency graphs.
241
- * @beta
242
- */
243
- protected static onBeforeOutputsHandled(_id: Id64String, _iModel: IModelDb): void;
244
- /** Called on an element in a graph after all of its inputs have been processed and before its outputs are processed.
245
- * This callback is made when:
246
- * * the specified element is part of an [[ElementDrivesElement]] graph, and
247
- * * there was a direct change to some element upstream in the dependency graph.
248
- * * all upstream elements in the graph have been processed.
249
- * * none of the downstream elements have been processed.
250
- * This method is not called if none of the element's inputs were changed.
251
- * @see [[ElementDrivesElement]] for more on element dependency graphs.
252
- * @beta
253
- */
254
- protected static onAllInputsHandled(_id: Id64String, _iModel: IModelDb): void;
255
- /** Save this Element's properties to an object for serializing to JSON.
256
- * @internal
257
- */
258
- toJSON(): ElementProps;
259
- /** Collect the Ids of this element's *references* at this level of the class hierarchy.
260
- * @deprecated use [[collectReferenceIds]] instead, the use of the term *predecessors* was confusing and became inaccurate when the transformer could handle cycles
261
- * @beta
262
- */
263
- protected collectPredecessorIds(predecessorIds: Id64Set): void;
264
- /** Collect the Ids of this entity's *references* at this level of the class hierarchy.
265
- * A *reference* is any entity referenced by this entity's EC Data
266
- * This is important for cloning operations but can be useful in other situations as well.
267
- * @param referenceIds The Id64Set to populate with reference Ids.
268
- * @note In order to clone/transform an entity, all referenced elements must have been previously cloned and remapped within the [IModelCloneContext]($backend).
269
- * @note This should be overridden (with `super` called) at each level the class hierarchy that introduces references.
270
- * @see getReferenceIds
271
- * @beta
272
- */
273
- protected collectReferenceIds(referenceIds: Id64Set): void;
274
- /** Get the Ids of this element's *references*. A *reference* is any element whose id is stored in the EC data of this element
275
- * This is important for cloning operations but can be useful in other situations as well.
276
- * @beta
277
- * @deprecated use [[getReferenceIds]] instead, the use of the term *predecessors* was confusing and became inaccurate when the transformer could handle cycles
278
- */
279
- getPredecessorIds(): Id64Set;
280
- /** Get the Ids of this element's *references*. A *reference* is an element that this element references.
281
- * This is important for cloning operations but can be useful in other situations as well.
282
- * @see collectReferenceIds
283
- * @beta
284
- */
285
- getReferenceIds(): Id64Set;
286
- /** A *required reference* is an element that had to be inserted before this element could have been inserted.
287
- * This is the list of property keys on this element that store references to those elements
288
- * @note This should be overridden (with `super` called) at each level the class hierarchy that introduces required references.
289
- * @note any property listed here must be added to the reference ids in [[collectReferenceIds]]
290
- * @beta
291
- */
292
- static readonly requiredReferenceKeys: ReadonlyArray<string>;
293
- /** Get the class metadata for this element. */
294
- getClassMetaData(): EntityMetaData | undefined;
295
- private getAllUserProperties;
296
- /** Get a set of JSON user properties by namespace */
297
- getUserProperties(namespace: string): any;
298
- /** Change a set of user JSON properties of this Element by namespace. */
299
- setUserProperties(nameSpace: string, value: any): void;
300
- /** Remove a set of JSON user properties, specified by namespace, from this Element */
301
- removeUserProperties(nameSpace: string): void;
302
- /** Get a JSON property of this element, by namespace */
303
- getJsonProperty(nameSpace: string): any;
304
- setJsonProperty(nameSpace: string, value: any): void;
305
- /** Get a display label for this Element. By default returns userLabel if present, otherwise code value. */
306
- getDisplayLabel(): string;
307
- /** Get a list of HTML strings that describe this Element for the tooltip. Strings will be listed on separate lines in the tooltip.
308
- * Any instances of the pattern `%{tag}` will be replaced by the localized value of tag.
309
- */
310
- getToolTipMessage(): string[];
311
- /** Insert this Element into the iModel. */
312
- insert(): string;
313
- /** Update this Element in the iModel. */
314
- update(): void;
315
- /** Delete this Element from the iModel. */
316
- delete(): void;
317
- }
318
- /** An abstract base class to model real world entities that intrinsically have geometry.
319
- * @public
320
- */
321
- export declare abstract class GeometricElement extends Element {
322
- /** @internal */
323
- static get className(): string;
324
- /** The Id of the [[Category]] for this GeometricElement. */
325
- category: Id64String;
326
- /** The GeometryStream for this GeometricElement. */
327
- geom?: GeometryStreamProps;
328
- /** How to build the element's GeometryStream. This is used for insert and update only. It is not a persistent property. It will be undefined in the properties returned by functions that read a persistent element. It may be specified as an alternative to `geom` when inserting or updating an element.
329
- * @alpha
330
- */
331
- elementGeometryBuilderParams?: ElementGeometryBuilderParams;
332
- /** The origin, orientation, and bounding box of this GeometricElement. */
333
- abstract get placement(): Placement2d | Placement3d;
334
- /** @internal */
335
- constructor(props: GeometricElementProps, iModel: IModelDb);
336
- /** Type guard for instanceof [[GeometricElement3d]] */
337
- is3d(): this is GeometricElement3d;
338
- /** Type guard for instanceof [[GeometricElement2d]] */
339
- is2d(): this is GeometricElement2d;
340
- /** Get the [Transform]($geometry) from the Placement of this GeometricElement */
341
- getPlacementTransform(): Transform;
342
- calculateRange3d(): AxisAlignedBox3d;
343
- /** Obtain the JSON representation of this element. */
344
- toJSON(): GeometricElementProps;
345
- /** @internal */
346
- protected collectReferenceIds(referenceIds: Id64Set): void;
347
- /** @beta */
348
- static readonly requiredReferenceKeys: ReadonlyArray<string>;
349
- }
350
- /** An abstract base class to model real world entities that intrinsically have 3d geometry.
351
- * See [how to create a GeometricElement3d]($docs/learning/backend/CreateElements.md#GeometricElement3d).
352
- * @public
353
- */
354
- export declare abstract class GeometricElement3d extends GeometricElement {
355
- /** @internal */
356
- static get className(): string;
357
- placement: Placement3d;
358
- typeDefinition?: TypeDefinition;
359
- /** @internal */
360
- constructor(props: GeometricElement3dProps, iModel: IModelDb);
361
- /** @internal */
362
- toJSON(): GeometricElement3dProps;
363
- /** @internal */
364
- protected collectReferenceIds(referenceIds: Id64Set): void;
365
- }
366
- /** A 3d Graphical Element
367
- * @public
368
- */
369
- export declare abstract class GraphicalElement3d extends GeometricElement3d {
370
- /** @internal */
371
- static get className(): string;
372
- /** @internal */
373
- constructor(props: GeometricElement3dProps, iModel: IModelDb);
374
- }
375
- /** An abstract base class to model information entities that intrinsically have 2d geometry.
376
- * @public
377
- */
378
- export declare abstract class GeometricElement2d extends GeometricElement {
379
- /** @internal */
380
- static get className(): string;
381
- placement: Placement2d;
382
- typeDefinition?: TypeDefinition;
383
- /** @internal */
384
- constructor(props: GeometricElement2dProps, iModel: IModelDb);
385
- /** @internal */
386
- toJSON(): GeometricElement2dProps;
387
- /** @internal */
388
- protected collectReferenceIds(referenceIds: Id64Set): void;
389
- }
390
- /** An abstract base class for 2d Geometric Elements that are used to convey information within graphical presentations (like drawings).
391
- * @public
392
- */
393
- export declare abstract class GraphicalElement2d extends GeometricElement2d {
394
- /** @internal */
395
- static get className(): string;
396
- /** @internal */
397
- constructor(props: GeometricElement2dProps, iModel: IModelDb);
398
- }
399
- /** 2d element used to annotate drawings and sheets.
400
- * @public
401
- */
402
- export declare class AnnotationElement2d extends GraphicalElement2d {
403
- /** @internal */
404
- static get className(): string;
405
- /** @internal */
406
- constructor(props: GeometricElement2dProps, iModel: IModelDb);
407
- }
408
- /** 2d element used to persist graphics for use in drawings.
409
- * @public
410
- */
411
- export declare class DrawingGraphic extends GraphicalElement2d {
412
- /** @internal */
413
- static get className(): string;
414
- /** @internal */
415
- constructor(props: GeometricElement2dProps, iModel: IModelDb);
416
- }
417
- /** 2D Text Annotation
418
- * @public
419
- */
420
- export declare class TextAnnotation2d extends AnnotationElement2d {
421
- /** @internal */
422
- static get className(): string;
423
- /** @internal */
424
- constructor(props: GeometricElement2dProps, iModel: IModelDb);
425
- }
426
- /** 3D Text Annotation
427
- * @public
428
- */
429
- export declare class TextAnnotation3d extends GraphicalElement3d {
430
- /** @internal */
431
- static get className(): string;
432
- /** @internal */
433
- constructor(props: GeometricElement3dProps, iModel: IModelDb);
434
- }
435
- /** An Element that occupies real world space. Its coordinates are in the project space of its iModel.
436
- * @public
437
- */
438
- export declare abstract class SpatialElement extends GeometricElement3d {
439
- /** @internal */
440
- static get className(): string;
441
- /** @internal */
442
- constructor(props: GeometricElement3dProps, iModel: IModelDb);
443
- }
444
- /** An Element that is spatially located, has mass, and can be *touched*.
445
- * @public
446
- */
447
- export declare abstract class PhysicalElement extends SpatialElement {
448
- /** @internal */
449
- static get className(): string;
450
- /** If defined, the [[PhysicalMaterial]] that makes up this PhysicalElement. */
451
- physicalMaterial?: RelatedElement;
452
- /** @internal */
453
- constructor(props: PhysicalElementProps, iModel: IModelDb);
454
- /** @internal */
455
- toJSON(): PhysicalElementProps;
456
- }
457
- /** Identifies a *tracked* real world location but has no mass and cannot be *touched*.
458
- * @public
459
- */
460
- export declare abstract class SpatialLocationElement extends SpatialElement {
461
- /** @internal */
462
- static get className(): string;
463
- /** @internal */
464
- constructor(props: GeometricElement3dProps, iModel: IModelDb);
465
- }
466
- /** A Volume Element is a Spatial Location Element that is restricted to defining a volume.
467
- * @public
468
- */
469
- export declare class VolumeElement extends SpatialLocationElement {
470
- /** @internal */
471
- static get className(): string;
472
- /** @internal */
473
- constructor(props: GeometricElement3dProps, iModel: IModelDb);
474
- }
475
- /** A SectionDrawingLocation element identifies the location of a [[SectionDrawing]] in the context of a [[SpatialModel]],
476
- * enabling [HyperModeling]($hypermodeling).
477
- * @note The associated ECClass was added to the BisCore schema in version 1.0.11.
478
- * @public
479
- */
480
- export declare class SectionDrawingLocation extends SpatialLocationElement {
481
- /** The Id of the [[ViewDefinition]] to which this location refers. */
482
- sectionView: RelatedElement;
483
- /** @internal */
484
- static get className(): string;
485
- constructor(props: SectionDrawingLocationProps, iModel: IModelDb);
486
- /** @internal */
487
- toJSON(): SectionDrawingLocationProps;
488
- }
489
- /** Information Content Element is an abstract base class for modeling pure information entities. Only the
490
- * core framework should directly subclass from Information Content Element. Domain and application developers
491
- * should start with the most appropriate subclass of Information Content Element.
492
- * @public
493
- */
494
- export declare abstract class InformationContentElement extends Element {
495
- /** @internal */
496
- static get className(): string;
497
- /** @internal */
498
- constructor(props: ElementProps, iModel: IModelDb);
499
- }
500
- /** Element used in conjunction with bis:ElementDrivesElement relationships to bundle multiple inputs before
501
- * driving the output element.
502
- * @beta
503
- */
504
- export declare abstract class DriverBundleElement extends InformationContentElement {
505
- /** @internal */
506
- static get className(): string;
507
- /** @internal */
508
- constructor(props: ElementProps, iModel: IModelDb);
509
- }
510
- /** Information Reference is an abstract base class for modeling entities whose main purpose is to reference something else.
511
- * @public
512
- */
513
- export declare abstract class InformationReferenceElement extends InformationContentElement {
514
- /** @internal */
515
- static get className(): string;
516
- /** @internal */
517
- constructor(props: ElementProps, iModel: IModelDb);
518
- }
519
- /** A Subject is an information element that describes what this repository (or part thereof) is about.
520
- * See [how to create a Subject element]$(docs/learning/backend/CreateElements.md#Subject).
521
- * @public
522
- */
523
- export declare class Subject extends InformationReferenceElement {
524
- /** @internal */
525
- static get className(): string;
526
- description?: string;
527
- /** @internal */
528
- constructor(props: SubjectProps, iModel: IModelDb);
529
- /** @internal */
530
- toJSON(): SubjectProps;
531
- /** Create a Code for a Subject given a name that is meant to be unique within the scope of its parent Subject.
532
- * @param iModelDb The IModelDb
533
- * @param parentSubjectId The Id of the parent Subject that provides the scope for names of its child Subjects.
534
- * @param codeValue The child Subject name
535
- */
536
- static createCode(iModelDb: IModelDb, parentSubjectId: CodeScopeProps, codeValue: string): Code;
537
- /** Create a Subject
538
- * @param iModelDb The IModelDb
539
- * @param parentSubjectId The new Subject will be a child of this Subject
540
- * @param name The name (codeValue) of the Subject
541
- * @param description The optional description of the Subject
542
- * @returns The newly constructed Subject
543
- * @throws [[IModelError]] if there is a problem creating the Subject
544
- */
545
- static create(iModelDb: IModelDb, parentSubjectId: Id64String, name: string, description?: string): Subject;
546
- /** Insert a Subject
547
- * @param iModelDb Insert into this IModelDb
548
- * @param parentSubjectId The new Subject will be inserted as a child of this Subject
549
- * @param name The name (codeValue) of the Subject
550
- * @param description The optional description of the Subject
551
- * @returns The Id of the newly inserted Subject
552
- * @throws [[IModelError]] if there is a problem inserting the Subject
553
- */
554
- static insert(iModelDb: IModelDb, parentSubjectId: Id64String, name: string, description?: string): Id64String;
555
- }
556
- /** An InformationContentElement that identifies the content of a document.
557
- * The realized form of a document is called a DocumentCarrier (different class than Document).
558
- * For example, a will is a legal document. The will published into a PDF file is an ElectronicDocumentCopy.
559
- * The will printed onto paper is a PrintedDocumentCopy.
560
- * In this example, the Document only identifies, names, and tracks the content of the will.
561
- * @public
562
- */
563
- export declare abstract class Document extends InformationContentElement {
564
- /** @internal */
565
- static get className(): string;
566
- /** @internal */
567
- constructor(props: ElementProps, iModel: IModelDb);
568
- }
569
- /** A document that represents a drawing, that is, a two-dimensional graphical representation of engineering data. A Drawing element is usually modelled by a [[DrawingModel]].
570
- * @public
571
- */
572
- export declare class Drawing extends Document {
573
- /** @internal */
574
- static get className(): string;
575
- /** @internal */
576
- constructor(props: ElementProps, iModel: IModelDb);
577
- /** Create a Code for a Drawing given a name that is meant to be unique within the scope of the specified DocumentListModel.
578
- * @param iModel The IModelDb
579
- * @param scopeModelId The Id of the DocumentListModel that contains the Drawing and provides the scope for its name.
580
- * @param codeValue The Drawing name
581
- */
582
- static createCode(iModel: IModelDb, scopeModelId: CodeScopeProps, codeValue: string): Code;
583
- /** Insert a Drawing element and a DrawingModel that breaks it down.
584
- * @param iModelDb Insert into this iModel
585
- * @param documentListModelId Insert the new Drawing into this DocumentListModel
586
- * @param name The name of the Drawing.
587
- * @returns The Id of the newly inserted Drawing element and the DrawingModel that breaks it down (same value).
588
- * @throws [[IModelError]] if unable to insert the element.
589
- */
590
- static insert(iModelDb: IModelDb, documentListModelId: Id64String, name: string): Id64String;
591
- }
592
- /** A document that represents a section drawing, that is, a graphical documentation derived from a planar
593
- * section of a spatial view. A SectionDrawing element is modelled by a [[SectionDrawingModel]] or a [[GraphicalModel3d]].
594
- * A [[SectionDrawingLocation]] can associate the drawing with a spatial location, enabling [HyperModeling]($hypermodeling).
595
- * @public
596
- */
597
- export declare class SectionDrawing extends Drawing {
598
- /** The type of section used to generate the drawing. */
599
- sectionType: SectionType;
600
- /** The spatial view from which the section was generated. */
601
- spatialView: RelatedElement;
602
- /** A transform from the section drawing model's coordinates to spatial coordinates. */
603
- drawingToSpatialTransform?: Transform;
604
- /** If the section drawing is placed onto a [[Sheet]] via a [[ViewAttachment]], a transform from the sheet's coordinates to spatial coordinates. */
605
- sheetToSpatialTransform?: Transform;
606
- /** If the section drawing is placed onto a [[Sheet]] via a [[ViewAttachment]], the clip to apply to the sheet graphics when drawn in the context
607
- * of the spatial view.
608
- * @note The ClipVector is defined in spatial coordinates.
609
- */
610
- drawingBoundaryClip?: ClipVector;
611
- /** If true, when displaying the section drawing as a [DrawingViewState]($frontend), the [[spatialView]] will also be displayed. */
612
- displaySpatialView: boolean;
613
- /** @internal */
614
- static get className(): string;
615
- /** @internal */
616
- constructor(props: SectionDrawingProps, iModel: IModelDb);
617
- /** Convert to JSON representation. */
618
- toJSON(): SectionDrawingProps;
619
- }
620
- /** The template for a SheetBorder
621
- * @public
622
- */
623
- export declare class SheetBorderTemplate extends Document {
624
- /** @internal */
625
- static get className(): string;
626
- height?: number;
627
- width?: number;
628
- /** @internal */
629
- constructor(props: SheetBorderTemplateProps, iModel: IModelDb);
630
- }
631
- /** The template for a [[Sheet]]
632
- * @public
633
- */
634
- export declare class SheetTemplate extends Document {
635
- /** @internal */
636
- static get className(): string;
637
- height?: number;
638
- width?: number;
639
- border?: Id64String;
640
- /** @internal */
641
- constructor(props: SheetTemplateProps, iModel: IModelDb);
642
- /** @internal */
643
- protected collectReferenceIds(referenceIds: Id64Set): void;
644
- }
645
- /** A digital representation of a *sheet of paper*. Modeled by a [[SheetModel]].
646
- * @public
647
- */
648
- export declare class Sheet extends Document {
649
- /** @internal */
650
- static get className(): string;
651
- height: number;
652
- width: number;
653
- scale?: number;
654
- sheetTemplate?: Id64String;
655
- /** @internal */
656
- constructor(props: SheetProps, iModel: IModelDb);
657
- /** @internal */
658
- protected collectReferenceIds(referenceIds: Id64Set): void;
659
- /** Create a Code for a Sheet given a name that is meant to be unique within the scope of the specified DocumentListModel.
660
- * @param iModel The IModelDb
661
- * @param scopeModelId The Id of the DocumentListModel that contains the Sheet and provides the scope for its name.
662
- * @param codeValue The Sheet name
663
- */
664
- static createCode(iModel: IModelDb, scopeModelId: CodeScopeProps, codeValue: string): Code;
665
- }
666
- /** Information Record Element is an abstract base class for modeling information records. Information Record
667
- * Element is the default choice if no other subclass of Information Content Element makes sense.
668
- * @public
669
- */
670
- export declare abstract class InformationRecordElement extends InformationContentElement {
671
- /** @internal */
672
- static get className(): string;
673
- /** @internal */
674
- constructor(props: ElementProps, iModel: IModelDb);
675
- }
676
- /** A Definition Element holds configuration-related information that is meant to be referenced / shared.
677
- * @public
678
- */
679
- export declare abstract class DefinitionElement extends InformationContentElement {
680
- /** @internal */
681
- static get className(): string;
682
- /** If true, don't show this DefinitionElement in user interface lists. */
683
- isPrivate: boolean;
684
- /** @internal */
685
- constructor(props: DefinitionElementProps, iModel: IModelDb);
686
- /** @internal */
687
- toJSON(): DefinitionElementProps;
688
- }
689
- /** This abstract class unifies DefinitionGroup and DefinitionContainer for relationship endpoint purposes.
690
- * @note The associated ECClass was added to the BisCore schema in version 1.0.10
691
- * @public
692
- */
693
- export declare abstract class DefinitionSet extends DefinitionElement {
694
- /** @internal */
695
- static get className(): string;
696
- }
697
- /** A DefinitionContainer exclusively owns a set of DefinitionElements contained within its sub-model (of type DefinitionModel).
698
- * @note The associated ECClass was added to the BisCore schema in version 1.0.10
699
- * @public
700
- */
701
- export declare class DefinitionContainer extends DefinitionSet {
702
- /** @internal */
703
- static get className(): string;
704
- /** Create a DefinitionContainer
705
- * @param iModelDb The IModelDb
706
- * @param definitionModelId The Id of the [DefinitionModel]($backend) that will contain this DefinitionContainer element.
707
- * @param code The Code for this DefinitionContainer.
708
- * @param isPrivate The optional hint, that if `true` means it should not be displayed in the UI.
709
- * @returns The newly constructed DefinitionContainer
710
- * @note There is not a predefined CodeSpec for DefinitionContainer elements, so it is the responsibility of the domain or application to create one.
711
- * @throws [[IModelError]] if there is a problem creating the DefinitionContainer
712
- */
713
- static create(iModelDb: IModelDb, definitionModelId: Id64String, code: Code, isPrivate?: boolean): DefinitionContainer;
714
- /** Insert a DefinitionContainer and its sub-model.
715
- * @param iModelDb Insert into this IModelDb
716
- * @param definitionModelId The Id of the [DefinitionModel]($backend) that will contain this DefinitionContainer element.
717
- * @param code The Code for this DefinitionContainer.
718
- * @param isPrivate The optional hint, that if `true` means it should not be displayed in the UI.
719
- * @returns The Id of the newly inserted DefinitionContainer and its newly inserted sub-model (of type DefinitionModel).
720
- * @note There is not a predefined CodeSpec for DefinitionContainer elements, so it is the responsibility of the domain or application to create one.
721
- * @throws [[IModelError]] if there is a problem inserting the DefinitionContainer
722
- */
723
- static insert(iModelDb: IModelDb, definitionModelId: Id64String, code: Code, isPrivate?: boolean): Id64String;
724
- }
725
- /** A non-exclusive set of DefinitionElements grouped using the DefinitionGroupGroupsDefinitions relationship.
726
- * @note The associated ECClass was added to the BisCore schema in version 1.0.10
727
- * @public
728
- */
729
- export declare class DefinitionGroup extends DefinitionSet {
730
- /** @internal */
731
- static get className(): string;
732
- /** Create a DefinitionGroup
733
- * @param iModelDb The IModelDb
734
- * @param definitionModelId The Id of the [DefinitionModel]($backend) that will contain this DefinitionGroup element.
735
- * @param code The Code for this DefinitionGroup
736
- * @param isPrivate The optional hint, that if `true` means it should not be displayed in the UI.
737
- * @returns The newly constructed DefinitionGroup
738
- * @note There is not a predefined CodeSpec for DefinitionGroup elements, so it is the responsibility of the domain or application to create one.
739
- * @throws [[IModelError]] if there is a problem creating the DefinitionGroup
740
- */
741
- static create(iModelDb: IModelDb, definitionModelId: Id64String, code: Code, isPrivate?: boolean): DefinitionGroup;
742
- }
743
- /** Defines a set of properties (the *type*) that may be associated with an element.
744
- * @public
745
- */
746
- export declare abstract class TypeDefinitionElement extends DefinitionElement {
747
- /** @internal */
748
- static get className(): string;
749
- recipe?: RelatedElement;
750
- /** @internal */
751
- constructor(props: TypeDefinitionElementProps, iModel: IModelDb);
752
- /** @internal */
753
- protected collectReferenceIds(referenceIds: Id64Set): void;
754
- }
755
- /** Defines a recipe for generating instances from a definition.
756
- * @beta
757
- */
758
- export declare abstract class RecipeDefinitionElement extends DefinitionElement {
759
- /** @internal */
760
- static get className(): string;
761
- /** @internal */
762
- constructor(props: ElementProps, iModel: IModelDb);
763
- }
764
- /** Defines a set of properties (the *type*) that can be associated with a Physical Element. A Physical
765
- * Type has a strong correlation with something that can be ordered from a catalog since all instances
766
- * share a common set of properties.
767
- * @public
768
- */
769
- export declare abstract class PhysicalType extends TypeDefinitionElement {
770
- /** @internal */
771
- static get className(): string;
772
- /** If defined, the [[PhysicalMaterial]] that makes up this PhysicalType. */
773
- physicalMaterial?: RelatedElement;
774
- /** @internal */
775
- constructor(props: PhysicalTypeProps, iModel: IModelDb);
776
- /** @internal */
777
- toJSON(): PhysicalTypeProps;
778
- /** Create a Code for a PhysicalType element given a name that is meant to be unique within the scope of the specified DefinitionModel.
779
- * @param iModel The IModelDb
780
- * @param scopeModelId The Id of the DefinitionModel that contains the PhysicalType element and provides the scope for its name.
781
- * @param codeValue The PhysicalType name
782
- */
783
- static createCode(iModel: IModelDb, scopeModelId: CodeScopeProps, codeValue: string): Code;
784
- }
785
- /** Defines a set of properties (the *type*) that can be associated with a spatial location.
786
- * @public
787
- */
788
- export declare abstract class SpatialLocationType extends TypeDefinitionElement {
789
- /** @internal */
790
- static get className(): string;
791
- /** @internal */
792
- constructor(props: TypeDefinitionElementProps, iModel: IModelDb);
793
- /** Create a Code for a SpatialLocationType element given a name that is meant to be unique within the scope of the specified DefinitionModel.
794
- * @param iModel The IModelDb
795
- * @param scopeModelId The Id of the DefinitionModel that contains the SpatialLocationType element and provides the scope for its name.
796
- * @param codeValue The SpatialLocationType name
797
- */
798
- static createCode(iModel: IModelDb, scopeModelId: CodeScopeProps, codeValue: string): Code;
799
- }
800
- /** A TemplateRecipe3d is a DefinitionElement that has a sub-model that contains the 3d template elements.
801
- * @beta
802
- */
803
- export declare class TemplateRecipe3d extends RecipeDefinitionElement {
804
- /** @internal */
805
- static get className(): string;
806
- /** @internal */
807
- constructor(props: ElementProps, iModel: IModelDb);
808
- /** Create a Code for a TemplateRecipe3d given a name that is meant to be unique within the scope of its Model.
809
- * @param iModelDb The IModelDb
810
- * @param definitionModelId The Id of the [DefinitionModel]($backend) that contains this TemplateRecipe3d element.
811
- * @param codeValue The name of the TemplateRecipe3d element.
812
- */
813
- static createCode(iModelDb: IModelDb, definitionModelId: CodeScopeProps, codeValue: string): Code;
814
- /** Create a TemplateRecipe3d
815
- * @param iModelDb The IModelDb
816
- * @param definitionModelId The Id of the [DefinitionModel]($backend) that contains this TemplateRecipe3d element.
817
- * @param name The name (Code.value) of the TemplateRecipe3d
818
- * @returns The newly constructed TemplateRecipe3d
819
- * @throws [[IModelError]] if there is a problem creating the TemplateRecipe3d
820
- */
821
- static create(iModelDb: IModelDb, definitionModelId: Id64String, name: string, isPrivate?: boolean): TemplateRecipe3d;
822
- /** Insert a TemplateRecipe3d and a PhysicalModel (sub-model) that will contain the 3d template elements.
823
- * @param iModelDb The IModelDb
824
- * @param definitionModelId The Id of the [DefinitionModel]($backend) that contains this TemplateRecipe3d element.
825
- * @param name The name (Code.value) of the TemplateRecipe3d
826
- * @returns The Id of the newly inserted TemplateRecipe3d and the PhysicalModel that sub-models it.
827
- * @throws [[IModelError]] if there is a problem inserting the TemplateRecipe3d or its sub-model.
828
- */
829
- static insert(iModelDb: IModelDb, definitionModelId: Id64String, name: string, isPrivate?: boolean): Id64String;
830
- }
831
- /** Defines a set of properties (the *type*) that can be associated with a 2D Graphical Element.
832
- * @public
833
- */
834
- export declare abstract class GraphicalType2d extends TypeDefinitionElement {
835
- /** @internal */
836
- static get className(): string;
837
- /** @internal */
838
- constructor(props: TypeDefinitionElementProps, iModel: IModelDb);
839
- /** Create a Code for a GraphicalType2d element given a name that is meant to be unique within the scope of the specified DefinitionModel.
840
- * @param iModel The IModelDb
841
- * @param scopeModelId The Id of the DefinitionModel that contains the GraphicalType2d element and provides the scope for its name.
842
- * @param codeValue The GraphicalType2d name
843
- */
844
- static createCode(iModel: IModelDb, scopeModelId: CodeScopeProps, codeValue: string): Code;
845
- }
846
- /** A recipe that uses a 2D template for creating new instances.
847
- * @beta
848
- */
849
- export declare class TemplateRecipe2d extends RecipeDefinitionElement {
850
- /** @internal */
851
- static get className(): string;
852
- /** @internal */
853
- constructor(props: ElementProps, iModel: IModelDb);
854
- /** Create a Code for a TemplateRecipe2d given a name that is meant to be unique within the scope of its Model.
855
- * @param iModelDb The IModelDb
856
- * @param definitionModelId The Id of the [DefinitionModel]($backend) that contains this TemplateRecipe2d element.
857
- * @param codeValue The name of the TemplateRecipe2d element.
858
- */
859
- static createCode(iModelDb: IModelDb, definitionModelId: CodeScopeProps, codeValue: string): Code;
860
- /** Create a TemplateRecipe2d
861
- * @param iModelDb The IModelDb
862
- * @param definitionModelId The Id of the [DefinitionModel]($backend) that contains this TemplateRecipe2d element.
863
- * @param name The name (Code.value) of the TemplateRecipe2d
864
- * @returns The newly constructed TemplateRecipe2d
865
- * @throws [[IModelError]] if there is a problem creating the TemplateRecipe2d
866
- */
867
- static create(iModelDb: IModelDb, definitionModelId: Id64String, name: string, isPrivate?: boolean): TemplateRecipe2d;
868
- /** Insert a TemplateRecipe2d and a DrawingModel (sub-model) that will contain the 2d template elements.
869
- * @param iModelDb The IModelDb
870
- * @param definitionModelId The Id of the [DefinitionModel]($backend) that contains this TemplateRecipe2d element.
871
- * @param name The name (Code.value) of the TemplateRecipe2d
872
- * @returns The Id of the newly inserted TemplateRecipe2d and the PhysicalModel that sub-models it.
873
- * @throws [[IModelError]] if there is a problem inserting the TemplateRecipe2d or its sub-model.
874
- */
875
- static insert(iModelDb: IModelDb, definitionModelId: Id64String, name: string, isPrivate?: boolean): Id64String;
876
- }
877
- /** An abstract base class for elements that establishes a particular modeling perspective for its parent Subject.
878
- * Instances are always sub-modeled by a specialization of Model of the appropriate modeling perspective.
879
- * @see [iModel Information Hierarchy]($docs/bis/guide/data-organization/top-of-the-world), [[Subject]], [[Model]]
880
- * @public
881
- */
882
- export declare abstract class InformationPartitionElement extends InformationContentElement {
883
- /** @internal */
884
- static get className(): string;
885
- /** A human-readable string describing the intent of the partition. */
886
- description?: string;
887
- /** @internal */
888
- constructor(props: InformationPartitionElementProps, iModel: IModelDb);
889
- /** @internal */
890
- toJSON(): InformationPartitionElementProps;
891
- /** Create a code that can be used for any subclass of InformationPartitionElement.
892
- * @param iModelDb The IModelDb
893
- * @param parentSubjectId The Id of the parent Subject that provides the scope for names of its child InformationPartitionElements.
894
- * @param codeValue The InformationPartitionElement name
895
- */
896
- static createCode(iModel: IModelDb, parentSubjectId: CodeScopeProps, codeValue: string): Code;
897
- }
898
- /** A DefinitionPartition element establishes a *Definition* modeling perspective for its parent Subject.
899
- * A DefinitionPartition is always sub-modeled by a DefinitionModel.
900
- * @see [[DefinitionModel]]
901
- * @public
902
- */
903
- export declare class DefinitionPartition extends InformationPartitionElement {
904
- /** @internal */
905
- static get className(): string;
906
- }
907
- /** A DocumentPartition element establishes a *Document* modeling perspective for its parent Subject.
908
- * A DocumentPartition is always sub-modeled by a DocumentListModel.
909
- * @see [[DocumentListModel]]
910
- * @public
911
- */
912
- export declare class DocumentPartition extends InformationPartitionElement {
913
- /** @internal */
914
- static get className(): string;
915
- }
916
- /** A GroupInformationPartition element establishes a *Group Information* modeling perspective for its parent Subject.
917
- * A GroupInformationPartition is always sub-modeled by a GroupInformationModel.
918
- * @see [[GroupInformationModel]]
919
- * @public
920
- */
921
- export declare class GroupInformationPartition extends InformationPartitionElement {
922
- /** @internal */
923
- static get className(): string;
924
- }
925
- /** A GraphicalPartition3d element establishes a *3D Graphical* modeling perspective for its parent Subject.
926
- * A GraphicalPartition3d is always sub-modeled by a GraphicalModel3d.
927
- * @note The associated ECClass was added to the BisCore schema in version 1.0.8
928
- * @see [[GraphicalModel3d]]
929
- * @public
930
- */
931
- export declare class GraphicalPartition3d extends InformationPartitionElement {
932
- /** @internal */
933
- static get className(): string;
934
- }
935
- /** An InformationRecordPartition element establishes a *Information Record* modeling perspective for its parent Subject.
936
- * A InformationRecordPartition is always sub-modeled by an InformationRecordModel.
937
- * @see [[InformationRecordModel]]
938
- * @public
939
- */
940
- export declare class InformationRecordPartition extends InformationPartitionElement {
941
- /** @internal */
942
- static get className(): string;
943
- }
944
- /** A LinkPartition element establishes a *Link* modeling perspective for its parent Subject. A LinkPartition is always sub-modeled by a LinkModel.
945
- * @see [[LinkModel]]
946
- * @public
947
- */
948
- export declare class LinkPartition extends InformationPartitionElement {
949
- /** @internal */
950
- static get className(): string;
951
- }
952
- /** A PhysicalPartition element establishes a *Physical* modeling perspective for its parent Subject. A PhysicalPartition is always sub-modeled by a PhysicalModel.
953
- * @see [[PhysicalModel]]
954
- * @public
955
- */
956
- export declare class PhysicalPartition extends InformationPartitionElement {
957
- /** @internal */
958
- static get className(): string;
959
- }
960
- /** A SpatialLocationPartition element establishes a *SpatialLocation* modeling perspective for its parent Subject.
961
- * A SpatialLocationPartition is always sub-modeled by a SpatialLocationModel.
962
- * @see [[SpatialLocationModel]]
963
- * @public
964
- */
965
- export declare class SpatialLocationPartition extends InformationPartitionElement {
966
- /** @internal */
967
- static get className(): string;
968
- }
969
- /** Group Information is an abstract base class for modeling entities whose main purpose is to reference a group of related elements.
970
- * @public
971
- */
972
- export declare abstract class GroupInformationElement extends InformationReferenceElement {
973
- /** @internal */
974
- static get className(): string;
975
- }
976
- /** An information element that specifies a link.
977
- * @public
978
- */
979
- export declare abstract class LinkElement extends InformationReferenceElement {
980
- /** @internal */
981
- static get className(): string;
982
- /** Create a Code for a LinkElement given a name that is meant to be unique within the scope of the specified Model.
983
- * @param iModel The IModelDb
984
- * @param scopeModelId The Id of the Model that contains the LinkElement and provides the scope for its name.
985
- * @param codeValue The LinkElement name
986
- */
987
- static createCode(iModel: IModelDb, scopeModelId: CodeScopeProps, codeValue: string): Code;
988
- }
989
- /** An information element that specifies a URL link.
990
- * @public
991
- */
992
- export declare class UrlLink extends LinkElement {
993
- /** @internal */
994
- static get className(): string;
995
- description?: string;
996
- url?: string;
997
- /** @internal */
998
- constructor(props: UrlLinkProps, iModel: IModelDb);
999
- /** @internal */
1000
- toJSON(): UrlLinkProps;
1001
- }
1002
- /** Represents a folder-like structure that organizes repositories (typically files) in an external system.
1003
- * @note The associated ECClass was added to the BisCore schema in version 1.0.13
1004
- * @alpha
1005
- */
1006
- export declare class FolderLink extends UrlLink {
1007
- /** @internal */
1008
- static get className(): string;
1009
- }
1010
- /** An information element that links to a repository.
1011
- * @public
1012
- */
1013
- export declare class RepositoryLink extends UrlLink {
1014
- /** @internal */
1015
- static get className(): string;
1016
- repositoryGuid?: GuidString;
1017
- /** @note This property was added to the BisCore schema in version 1.0.13 */
1018
- format?: string;
1019
- /** @internal */
1020
- constructor(props: RepositoryLinkProps, iModel: IModelDb);
1021
- /** @internal */
1022
- toJSON(): RepositoryLinkProps;
1023
- }
1024
- /** An information element that links to an embedded file.
1025
- * @public
1026
- */
1027
- export declare class EmbeddedFileLink extends LinkElement {
1028
- /** @internal */
1029
- static get className(): string;
1030
- }
1031
- /** A real world entity is modeled as a Role Element when a set of external circumstances define an important
1032
- * role (one that is worth tracking) that is not intrinsic to the entity playing the role. For example,
1033
- * a person can play the role of a teacher or a rock can play the role of a boundary marker.
1034
- * @public
1035
- */
1036
- export declare abstract class RoleElement extends Element {
1037
- /** @internal */
1038
- static get className(): string;
1039
- }
1040
- /** A Definition Element that specifies a collection of geometry that is meant to be reused across Geometric
1041
- * Element instances. Leveraging Geometry Parts can help reduce file size and improve display performance.
1042
- * @public
1043
- */
1044
- export declare class GeometryPart extends DefinitionElement {
1045
- /** @internal */
1046
- static get className(): string;
1047
- geom?: GeometryStreamProps;
1048
- /** How to build the part's GeometryStream. This is used for insert and update only. It is not a persistent property. It will be undefined in the properties returned by functions that read a persistent element. It may be specified as an alternative to `geom` when inserting or updating an element.
1049
- * @alpha
1050
- */
1051
- elementGeometryBuilderParams?: ElementGeometryBuilderParamsForPart;
1052
- bbox: ElementAlignedBox3d;
1053
- /** @internal */
1054
- constructor(props: GeometryPartProps, iModel: IModelDb);
1055
- /** @internal */
1056
- toJSON(): GeometryPartProps;
1057
- /** Create a Code for a GeometryPart element given a name that is meant to be unique within the scope of the specified DefinitionModel.
1058
- * @param iModel The IModelDb
1059
- * @param scopeModelId The Id of the DefinitionModel that contains the GeometryPart element and provides the scope for its name.
1060
- * @param codeValue The GeometryPart name
1061
- * @note GeometryPart elements are not required to be named (have a non-empty Code).
1062
- */
1063
- static createCode(iModel: IModelDb, scopeModelId: CodeScopeProps, codeValue: string): Code;
1064
- }
1065
- /** The definition element for a line style
1066
- * @public
1067
- */
1068
- export declare class LineStyle extends DefinitionElement {
1069
- /** @internal */
1070
- static get className(): string;
1071
- description?: string;
1072
- data: string;
1073
- /** @internal */
1074
- constructor(props: LineStyleProps, iModel: IModelDb);
1075
- /** Create a Code for a LineStyle definition given a name that is meant to be unique within the scope of the specified model.
1076
- * @param iModel The IModel
1077
- * @param scopeModelId The Id of the DefinitionModel that contains the LineStyle and provides the scope for its name.
1078
- * @param codeValue The name of the LineStyle
1079
- * @returns A LineStyle Code
1080
- */
1081
- static createCode(iModel: IModelDb, scopeModelId: CodeScopeProps, codeValue: string): Code;
1082
- }
1083
- /** Describes how to animate a view of a [[GeometricModel]] to show change over time using a [RenderSchedule.Script]($common).
1084
- * @note This class was introduced in version 01.00.13 of the BisCore ECSchema. It should only be used with [[IModelDb]]s containing that version or newer.
1085
- * @public
1086
- */
1087
- export declare class RenderTimeline extends InformationRecordElement {
1088
- /** @internal */
1089
- static get className(): string;
1090
- /** A human-readable description of the timeline, which may be an empty string. */
1091
- description: string;
1092
- /** The JSON representation of the instructions for visualizing change over time.
1093
- * @see [RenderSchedule.Script]($common) for the API for working with the script.
1094
- */
1095
- scriptProps: RenderSchedule.ScriptProps;
1096
- /** @internal */
1097
- protected constructor(props: RenderTimelineProps, iModel: IModelDb);
1098
- static fromJSON(props: RenderTimelineProps, iModel: IModelDb): RenderTimeline;
1099
- toJSON(): RenderTimelineProps;
1100
- private static parseScriptProps;
1101
- /** @alpha */
1102
- protected collectReferenceIds(ids: Id64Set): void;
1103
- /** @alpha */
1104
- protected static onCloned(context: IModelCloneContext, sourceProps: RenderTimelineProps, targetProps: RenderTimelineProps): void;
1105
- /** Remap Ids when cloning a RenderSchedule.Script between iModels on a DisplayStyle or RenderTimeline.
1106
- * @internal
1107
- */
1108
- static remapScript(context: IModelCloneContext, input: RenderSchedule.ScriptProps): RenderSchedule.ScriptProps;
1109
- }
1
+ /** @packageDocumentation
2
+ * @module Elements
3
+ */
4
+ import { GuidString, Id64Set, Id64String } from "@itwin/core-bentley";
5
+ import { AxisAlignedBox3d, Code, CodeScopeProps, DefinitionElementProps, ElementAlignedBox3d, ElementGeometryBuilderParams, ElementGeometryBuilderParamsForPart, ElementProps, EntityMetaData, GeometricElement2dProps, GeometricElement3dProps, GeometricElementProps, GeometryPartProps, GeometryStreamProps, InformationPartitionElementProps, LineStyleProps, ModelProps, PhysicalElementProps, PhysicalTypeProps, Placement2d, Placement3d, RelatedElement, RenderSchedule, RenderTimelineProps, RepositoryLinkProps, SectionDrawingLocationProps, SectionDrawingProps, SectionType, SheetBorderTemplateProps, SheetProps, SheetTemplateProps, SubjectProps, TypeDefinition, TypeDefinitionElementProps, UrlLinkProps } from "@itwin/core-common";
6
+ import { ClipVector, Transform } from "@itwin/core-geometry";
7
+ import { Entity } from "./Entity";
8
+ import { IModelCloneContext } from "./IModelCloneContext";
9
+ import { IModelDb } from "./IModelDb";
10
+ /** Argument for the `Element.onXxx` static methods
11
+ * @beta
12
+ */
13
+ export interface OnElementArg {
14
+ /** The iModel for the Element affected by this method. */
15
+ iModel: IModelDb;
16
+ }
17
+ /** Argument for `Element.onInsert` and `Element.onUpdate` static methods.
18
+ * @beta
19
+ */
20
+ export interface OnElementPropsArg extends OnElementArg {
21
+ /** The properties of the Element affected by this method.
22
+ * @note the properties may be modified. If so the modified values will be inserted/updated.
23
+ */
24
+ props: ElementProps;
25
+ }
26
+ /** Argument for the `Element.onXxx` static methods that only supply the Id of the affected Element.
27
+ * @beta
28
+ */
29
+ export interface OnElementIdArg extends OnElementArg {
30
+ /** The Id of the Element affected by this method */
31
+ id: Id64String;
32
+ }
33
+ /** Argument for the `Element.onChildXxx` static methods
34
+ * @beta
35
+ */
36
+ export interface OnChildElementArg extends OnElementArg {
37
+ parentId: Id64String;
38
+ }
39
+ /** Argument for the `Element.onChildXxx` static methods that supply the properties of the child Element to be inserted or updated.
40
+ * @beta
41
+ */
42
+ export interface OnChildElementPropsArg extends OnChildElementArg {
43
+ /** The new properties of the child Element for this method. */
44
+ childProps: Readonly<ElementProps>;
45
+ }
46
+ /** Argument for the `Element.onChildXxx` static methods that only supply the Id of the child Element.
47
+ * @beta
48
+ */
49
+ export interface OnChildElementIdArg extends OnChildElementArg {
50
+ /** The Id of the child element for this method */
51
+ childId: Id64String;
52
+ }
53
+ /** Argument for the `Element.onSubModelInsert` static method
54
+ * @beta
55
+ */
56
+ export interface OnSubModelPropsArg extends OnElementArg {
57
+ /** The properties of the prospective sub-model */
58
+ subModelProps: ModelProps;
59
+ }
60
+ /** Argument for several `Element.onSubModelXxx` static methods
61
+ * @beta
62
+ */
63
+ export interface OnSubModelIdArg extends OnElementArg {
64
+ /** The modelId of the sub Model */
65
+ subModelId: Id64String;
66
+ }
67
+ /** Elements are the smallest individually identifiable building blocks for modeling the real world in an iModel.
68
+ * Each element represents an entity in the real world. Sets of Elements (contained in [[Model]]s) are used to model
69
+ * other Elements that represent larger scale real world entities. Using this recursive modeling strategy,
70
+ * Elements can represent entities at any scale. Elements can represent physical things or abstract concepts
71
+ * or simply be information records.
72
+ *
73
+ * Every Element has a 64-bit id (inherited from Entity) that uniquely identifies it within an iModel. Every Element also
74
+ * has a "code" that identifies its meaning in the real world. Additionally, Elements may have a "federationGuid"
75
+ * to hold a GUID, if the element was assigned that GUID by some other federated database. The iModel database enforces
76
+ * uniqueness of id, code, and federationGuid.
77
+ *
78
+ * See:
79
+ * * [Element Fundamentals]($docs/bis/guide/fundamentals/element-fundamentals.md)
80
+ * * [Working with schemas and elements in TypeScript]($docs/learning/backend/SchemasAndElementsInTypeScript.md)
81
+ * * [Creating elements]($docs/learning/backend/CreateElements.md)
82
+ * @public
83
+ */
84
+ export declare class Element extends Entity {
85
+ /** @internal */
86
+ static get className(): string;
87
+ /** @internal */
88
+ static get protectedOperations(): string[];
89
+ /** The ModelId of the [Model]($docs/bis/guide/fundamentals/model-fundamentals.md) containing this element */
90
+ readonly model: Id64String;
91
+ /** The [Code]($docs/bis/guide/fundamentals/codes.md) for this element */
92
+ code: Code;
93
+ /** The parent element, if present, of this element. */
94
+ parent?: RelatedElement;
95
+ /** A [FederationGuid]($docs/bis/guide/fundamentals/element-fundamentals.md#federationguid) assigned to this element by some other federated database */
96
+ federationGuid?: GuidString;
97
+ /** A [user-assigned label]($docs/bis/guide/fundamentals/element-fundamentals.md#userlabel) for this element. */
98
+ userLabel?: string;
99
+ /** Optional [json properties]($docs/bis/guide/fundamentals/element-fundamentals.md#jsonproperties) of this element. */
100
+ readonly jsonProperties: {
101
+ [key: string]: any;
102
+ };
103
+ /** constructor for Element.
104
+ * @internal
105
+ */
106
+ constructor(props: ElementProps, iModel: IModelDb);
107
+ /** Called before a new Element is inserted.
108
+ * @note throw an exception to disallow the insert
109
+ * @note If you override this method, you must call super.
110
+ * @note `this` is the class of the Element to be inserted
111
+ * @beta
112
+ */
113
+ protected static onInsert(arg: OnElementPropsArg): void;
114
+ /** Called after a new Element was inserted.
115
+ * @note If you override this method, you must call super.
116
+ * @note `this` is the class of the Element that was inserted
117
+ * @beta
118
+ */
119
+ protected static onInserted(arg: OnElementIdArg): void;
120
+ /** Called before an Element is updated.
121
+ * @note throw an exception to disallow the update
122
+ * @note If you override this method, you must call super.
123
+ * @note `this` is the class of the Element to be updated
124
+ * @beta
125
+ */
126
+ protected static onUpdate(arg: OnElementPropsArg): void;
127
+ /** Called after an Element was updated.
128
+ * @note If you override this method, you must call super.
129
+ * @note `this` is the class of the Element that was updated
130
+ * @beta
131
+ */
132
+ protected static onUpdated(_arg: OnElementIdArg): void;
133
+ /** Called before an Element is deleted.
134
+ * @note throw an exception to disallow the delete
135
+ * @note If you override this method, you must call super.
136
+ * @note `this` is the class of the Element to be deleted
137
+ * @beta
138
+ */
139
+ protected static onDelete(arg: OnElementIdArg): void;
140
+ /** Called after an Element was deleted.
141
+ * @note If you override this method, you must call super.
142
+ * @note `this` is the class of the Element that was deleted
143
+ * @beta
144
+ */
145
+ protected static onDeleted(_arg: OnElementIdArg): void;
146
+ /** Called when an element with an instance of this class as its parent is about to be deleted.
147
+ * @note throw an exception if the element should not be deleted
148
+ * @note implementers should not presume that the element was deleted if this method does not throw,
149
+ * since the delete may fail for other reasons. Instead, rely on [[onChildDeleted]] for that purpose.
150
+ * @note `this` is the class of the parent Element whose child will be deleted
151
+ * @beta
152
+ */
153
+ protected static onChildDelete(_arg: OnChildElementIdArg): void;
154
+ /** Called after an element with an instance of this class as its parent was successfully deleted.
155
+ * @note `this` is the class of the parent Element whose child was deleted
156
+ * @beta
157
+ */
158
+ protected static onChildDeleted(_arg: OnChildElementIdArg): void;
159
+ /** Called when a *new element* with an instance of this class as its parent is about to be inserted.
160
+ * @note throw an exception if the element should not be inserted
161
+ * @note `this` is the class of the prospective parent Element.
162
+ * @beta
163
+ */
164
+ protected static onChildInsert(_arg: OnChildElementPropsArg): void;
165
+ /** Called after a *new element* with an instance of this class as its parent was inserted.
166
+ * @note `this` is the class of the parent Element.
167
+ * @beta
168
+ */
169
+ protected static onChildInserted(_arg: OnChildElementIdArg): void;
170
+ /** Called when an element with an instance of this class as its parent is about to be updated.
171
+ * @note throw an exception if the element should not be updated
172
+ * @note `this` is the class of the parent Element.
173
+ * @beta
174
+ */
175
+ protected static onChildUpdate(_arg: OnChildElementPropsArg): void;
176
+ /** Called after an element with an instance of this the class as its parent was updated.
177
+ * @note `this` is the class of the parent Element.
178
+ * @beta
179
+ */
180
+ protected static onChildUpdated(_arg: OnChildElementIdArg): void;
181
+ /** Called when an *existing element* is about to be updated so that an instance of this class will become its new parent.
182
+ * @note throw an exception if the element should not be added
183
+ * @note `this` is the class of the prospective parent Element.
184
+ * @beta
185
+ */
186
+ protected static onChildAdd(_arg: OnChildElementPropsArg): void;
187
+ /** Called after an *existing element* has been updated so that an instance of this class is its new parent.
188
+ * @note `this` is the class of the new parent Element.
189
+ * @beta
190
+ */
191
+ protected static onChildAdded(_arg: OnChildElementIdArg): void;
192
+ /** Called when an element with an instance of this class as its parent is about to be updated change to a different parent.
193
+ * @note throw an exception if the element should not be dropped
194
+ * @note `this` is the class of the parent Element.
195
+ * @beta
196
+ */
197
+ protected static onChildDrop(_arg: OnChildElementIdArg): void;
198
+ /** Called after an element with an instance of this class as its previous parent was updated to have a new parent.
199
+ * @note `this` is the class of the previous parent Element.
200
+ * @beta
201
+ */
202
+ protected static onChildDropped(_arg: OnChildElementIdArg): void;
203
+ /** Called when an instance of this class is being *sub-modeled* by a new Model.
204
+ * @note throw an exception if model should not be inserted
205
+ * @note `this` is the class of Element to be sub-modeled.
206
+ * @beta
207
+ */
208
+ protected static onSubModelInsert(_arg: OnSubModelPropsArg): void;
209
+ /** Called after an instance of this class was *sub-modeled* by a new Model.
210
+ * @note `this` is the class of Element that is now sub-modeled.
211
+ * @beta
212
+ */
213
+ protected static onSubModelInserted(_arg: OnSubModelIdArg): void;
214
+ /** Called when a sub-model of an instance of this class is being deleted.
215
+ * @note throw an exception if model should not be deleted
216
+ * @note `this` is the class of Element that is sub-modeled.
217
+ * @beta
218
+ */
219
+ protected static onSubModelDelete(_arg: OnSubModelIdArg): void;
220
+ /** Called after a sub-model of an instance of this class was deleted.
221
+ * @note `this` is the class of Element that was sub-modeled.
222
+ * @beta
223
+ */
224
+ protected static onSubModelDeleted(_arg: OnSubModelIdArg): void;
225
+ /** Called during the iModel transformation process after an Element from the source iModel was *cloned* for the target iModel.
226
+ * The transformation process automatically handles remapping BisCore properties and those that are properly described in ECSchema.
227
+ * This callback is only meant to be overridden if there are other Ids in non-standard locations that need to be remapped or other data that needs to be fixed up after the clone.
228
+ * @param _context The context that persists any remapping between the source iModel and target iModel.
229
+ * @param _sourceProps The ElementProps for the source Element that was cloned.
230
+ * @param _targetProps The ElementProps that are a result of the clone. These can be further modified.
231
+ * @note If you override this method, you must call super.
232
+ * @beta
233
+ */
234
+ protected static onCloned(_context: IModelCloneContext, _sourceProps: ElementProps, _targetProps: ElementProps): void;
235
+ /** Called when a *root* element in a subgraph is changed and before its outputs are processed.
236
+ * This special callback is made when:
237
+ * * the element is part of an [[ElementDrivesElement]] graph, and
238
+ * * the element has no inputs, and
239
+ * * none of the element's outputs have been processed.
240
+ * @see [[ElementDrivesElement]] for more on element dependency graphs.
241
+ * @beta
242
+ */
243
+ protected static onBeforeOutputsHandled(_id: Id64String, _iModel: IModelDb): void;
244
+ /** Called on an element in a graph after all of its inputs have been processed and before its outputs are processed.
245
+ * This callback is made when:
246
+ * * the specified element is part of an [[ElementDrivesElement]] graph, and
247
+ * * there was a direct change to some element upstream in the dependency graph.
248
+ * * all upstream elements in the graph have been processed.
249
+ * * none of the downstream elements have been processed.
250
+ * This method is not called if none of the element's inputs were changed.
251
+ * @see [[ElementDrivesElement]] for more on element dependency graphs.
252
+ * @beta
253
+ */
254
+ protected static onAllInputsHandled(_id: Id64String, _iModel: IModelDb): void;
255
+ /** Save this Element's properties to an object for serializing to JSON.
256
+ * @internal
257
+ */
258
+ toJSON(): ElementProps;
259
+ /** Collect the Ids of this element's *references* at this level of the class hierarchy.
260
+ * @deprecated use [[collectReferenceIds]] instead, the use of the term *predecessors* was confusing and became inaccurate when the transformer could handle cycles
261
+ * @beta
262
+ */
263
+ protected collectPredecessorIds(predecessorIds: Id64Set): void;
264
+ /** Collect the Ids of this entity's *references* at this level of the class hierarchy.
265
+ * A *reference* is any entity referenced by this entity's EC Data
266
+ * This is important for cloning operations but can be useful in other situations as well.
267
+ * @param referenceIds The Id64Set to populate with reference Ids.
268
+ * @note In order to clone/transform an entity, all referenced elements must have been previously cloned and remapped within the [IModelCloneContext]($backend).
269
+ * @note This should be overridden (with `super` called) at each level the class hierarchy that introduces references.
270
+ * @see getReferenceIds
271
+ * @beta
272
+ */
273
+ protected collectReferenceIds(referenceIds: Id64Set): void;
274
+ /** Get the Ids of this element's *references*. A *reference* is any element whose id is stored in the EC data of this element
275
+ * This is important for cloning operations but can be useful in other situations as well.
276
+ * @beta
277
+ * @deprecated use [[getReferenceIds]] instead, the use of the term *predecessors* was confusing and became inaccurate when the transformer could handle cycles
278
+ */
279
+ getPredecessorIds(): Id64Set;
280
+ /** Get the Ids of this element's *references*. A *reference* is an element that this element references.
281
+ * This is important for cloning operations but can be useful in other situations as well.
282
+ * @see collectReferenceIds
283
+ * @beta
284
+ */
285
+ getReferenceIds(): Id64Set;
286
+ /** A *required reference* is an element that had to be inserted before this element could have been inserted.
287
+ * This is the list of property keys on this element that store references to those elements
288
+ * @note This should be overridden (with `super` called) at each level the class hierarchy that introduces required references.
289
+ * @note any property listed here must be added to the reference ids in [[collectReferenceIds]]
290
+ * @beta
291
+ */
292
+ static readonly requiredReferenceKeys: ReadonlyArray<string>;
293
+ /** Get the class metadata for this element. */
294
+ getClassMetaData(): EntityMetaData | undefined;
295
+ private getAllUserProperties;
296
+ /** Get a set of JSON user properties by namespace */
297
+ getUserProperties(namespace: string): any;
298
+ /** Change a set of user JSON properties of this Element by namespace. */
299
+ setUserProperties(nameSpace: string, value: any): void;
300
+ /** Remove a set of JSON user properties, specified by namespace, from this Element */
301
+ removeUserProperties(nameSpace: string): void;
302
+ /** Get a JSON property of this element, by namespace */
303
+ getJsonProperty(nameSpace: string): any;
304
+ setJsonProperty(nameSpace: string, value: any): void;
305
+ /** Get a display label for this Element. By default returns userLabel if present, otherwise code value. */
306
+ getDisplayLabel(): string;
307
+ /** Get a list of HTML strings that describe this Element for the tooltip. Strings will be listed on separate lines in the tooltip.
308
+ * Any instances of the pattern `%{tag}` will be replaced by the localized value of tag.
309
+ */
310
+ getToolTipMessage(): string[];
311
+ /** Insert this Element into the iModel. */
312
+ insert(): string;
313
+ /** Update this Element in the iModel. */
314
+ update(): void;
315
+ /** Delete this Element from the iModel. */
316
+ delete(): void;
317
+ }
318
+ /** An abstract base class to model real world entities that intrinsically have geometry.
319
+ * @public
320
+ */
321
+ export declare abstract class GeometricElement extends Element {
322
+ /** @internal */
323
+ static get className(): string;
324
+ /** The Id of the [[Category]] for this GeometricElement. */
325
+ category: Id64String;
326
+ /** The GeometryStream for this GeometricElement. */
327
+ geom?: GeometryStreamProps;
328
+ /** How to build the element's GeometryStream. This is used for insert and update only. It is not a persistent property. It will be undefined in the properties returned by functions that read a persistent element. It may be specified as an alternative to `geom` when inserting or updating an element.
329
+ * @alpha
330
+ */
331
+ elementGeometryBuilderParams?: ElementGeometryBuilderParams;
332
+ /** The origin, orientation, and bounding box of this GeometricElement. */
333
+ abstract get placement(): Placement2d | Placement3d;
334
+ /** @internal */
335
+ constructor(props: GeometricElementProps, iModel: IModelDb);
336
+ /** Type guard for instanceof [[GeometricElement3d]] */
337
+ is3d(): this is GeometricElement3d;
338
+ /** Type guard for instanceof [[GeometricElement2d]] */
339
+ is2d(): this is GeometricElement2d;
340
+ /** Get the [Transform]($geometry) from the Placement of this GeometricElement */
341
+ getPlacementTransform(): Transform;
342
+ calculateRange3d(): AxisAlignedBox3d;
343
+ /** Obtain the JSON representation of this element. */
344
+ toJSON(): GeometricElementProps;
345
+ /** @internal */
346
+ protected collectReferenceIds(referenceIds: Id64Set): void;
347
+ /** @beta */
348
+ static readonly requiredReferenceKeys: ReadonlyArray<string>;
349
+ }
350
+ /** An abstract base class to model real world entities that intrinsically have 3d geometry.
351
+ * See [how to create a GeometricElement3d]($docs/learning/backend/CreateElements.md#GeometricElement3d).
352
+ * @public
353
+ */
354
+ export declare abstract class GeometricElement3d extends GeometricElement {
355
+ /** @internal */
356
+ static get className(): string;
357
+ placement: Placement3d;
358
+ typeDefinition?: TypeDefinition;
359
+ /** @internal */
360
+ constructor(props: GeometricElement3dProps, iModel: IModelDb);
361
+ /** @internal */
362
+ toJSON(): GeometricElement3dProps;
363
+ /** @internal */
364
+ protected collectReferenceIds(referenceIds: Id64Set): void;
365
+ }
366
+ /** A 3d Graphical Element
367
+ * @public
368
+ */
369
+ export declare abstract class GraphicalElement3d extends GeometricElement3d {
370
+ /** @internal */
371
+ static get className(): string;
372
+ /** @internal */
373
+ constructor(props: GeometricElement3dProps, iModel: IModelDb);
374
+ }
375
+ /** An abstract base class to model information entities that intrinsically have 2d geometry.
376
+ * @public
377
+ */
378
+ export declare abstract class GeometricElement2d extends GeometricElement {
379
+ /** @internal */
380
+ static get className(): string;
381
+ placement: Placement2d;
382
+ typeDefinition?: TypeDefinition;
383
+ /** @internal */
384
+ constructor(props: GeometricElement2dProps, iModel: IModelDb);
385
+ /** @internal */
386
+ toJSON(): GeometricElement2dProps;
387
+ /** @internal */
388
+ protected collectReferenceIds(referenceIds: Id64Set): void;
389
+ }
390
+ /** An abstract base class for 2d Geometric Elements that are used to convey information within graphical presentations (like drawings).
391
+ * @public
392
+ */
393
+ export declare abstract class GraphicalElement2d extends GeometricElement2d {
394
+ /** @internal */
395
+ static get className(): string;
396
+ /** @internal */
397
+ constructor(props: GeometricElement2dProps, iModel: IModelDb);
398
+ }
399
+ /** 2d element used to annotate drawings and sheets.
400
+ * @public
401
+ */
402
+ export declare class AnnotationElement2d extends GraphicalElement2d {
403
+ /** @internal */
404
+ static get className(): string;
405
+ /** @internal */
406
+ constructor(props: GeometricElement2dProps, iModel: IModelDb);
407
+ }
408
+ /** 2d element used to persist graphics for use in drawings.
409
+ * @public
410
+ */
411
+ export declare class DrawingGraphic extends GraphicalElement2d {
412
+ /** @internal */
413
+ static get className(): string;
414
+ /** @internal */
415
+ constructor(props: GeometricElement2dProps, iModel: IModelDb);
416
+ }
417
+ /** 2D Text Annotation
418
+ * @public
419
+ */
420
+ export declare class TextAnnotation2d extends AnnotationElement2d {
421
+ /** @internal */
422
+ static get className(): string;
423
+ /** @internal */
424
+ constructor(props: GeometricElement2dProps, iModel: IModelDb);
425
+ }
426
+ /** 3D Text Annotation
427
+ * @public
428
+ */
429
+ export declare class TextAnnotation3d extends GraphicalElement3d {
430
+ /** @internal */
431
+ static get className(): string;
432
+ /** @internal */
433
+ constructor(props: GeometricElement3dProps, iModel: IModelDb);
434
+ }
435
+ /** An Element that occupies real world space. Its coordinates are in the project space of its iModel.
436
+ * @public
437
+ */
438
+ export declare abstract class SpatialElement extends GeometricElement3d {
439
+ /** @internal */
440
+ static get className(): string;
441
+ /** @internal */
442
+ constructor(props: GeometricElement3dProps, iModel: IModelDb);
443
+ }
444
+ /** An Element that is spatially located, has mass, and can be *touched*.
445
+ * @public
446
+ */
447
+ export declare abstract class PhysicalElement extends SpatialElement {
448
+ /** @internal */
449
+ static get className(): string;
450
+ /** If defined, the [[PhysicalMaterial]] that makes up this PhysicalElement. */
451
+ physicalMaterial?: RelatedElement;
452
+ /** @internal */
453
+ constructor(props: PhysicalElementProps, iModel: IModelDb);
454
+ /** @internal */
455
+ toJSON(): PhysicalElementProps;
456
+ }
457
+ /** Identifies a *tracked* real world location but has no mass and cannot be *touched*.
458
+ * @public
459
+ */
460
+ export declare abstract class SpatialLocationElement extends SpatialElement {
461
+ /** @internal */
462
+ static get className(): string;
463
+ /** @internal */
464
+ constructor(props: GeometricElement3dProps, iModel: IModelDb);
465
+ }
466
+ /** A Volume Element is a Spatial Location Element that is restricted to defining a volume.
467
+ * @public
468
+ */
469
+ export declare class VolumeElement extends SpatialLocationElement {
470
+ /** @internal */
471
+ static get className(): string;
472
+ /** @internal */
473
+ constructor(props: GeometricElement3dProps, iModel: IModelDb);
474
+ }
475
+ /** A SectionDrawingLocation element identifies the location of a [[SectionDrawing]] in the context of a [[SpatialModel]],
476
+ * enabling [HyperModeling]($hypermodeling).
477
+ * @note The associated ECClass was added to the BisCore schema in version 1.0.11.
478
+ * @public
479
+ */
480
+ export declare class SectionDrawingLocation extends SpatialLocationElement {
481
+ /** The Id of the [[ViewDefinition]] to which this location refers. */
482
+ sectionView: RelatedElement;
483
+ /** @internal */
484
+ static get className(): string;
485
+ constructor(props: SectionDrawingLocationProps, iModel: IModelDb);
486
+ /** @internal */
487
+ toJSON(): SectionDrawingLocationProps;
488
+ }
489
+ /** Information Content Element is an abstract base class for modeling pure information entities. Only the
490
+ * core framework should directly subclass from Information Content Element. Domain and application developers
491
+ * should start with the most appropriate subclass of Information Content Element.
492
+ * @public
493
+ */
494
+ export declare abstract class InformationContentElement extends Element {
495
+ /** @internal */
496
+ static get className(): string;
497
+ /** @internal */
498
+ constructor(props: ElementProps, iModel: IModelDb);
499
+ }
500
+ /** Element used in conjunction with bis:ElementDrivesElement relationships to bundle multiple inputs before
501
+ * driving the output element.
502
+ * @beta
503
+ */
504
+ export declare abstract class DriverBundleElement extends InformationContentElement {
505
+ /** @internal */
506
+ static get className(): string;
507
+ /** @internal */
508
+ constructor(props: ElementProps, iModel: IModelDb);
509
+ }
510
+ /** Information Reference is an abstract base class for modeling entities whose main purpose is to reference something else.
511
+ * @public
512
+ */
513
+ export declare abstract class InformationReferenceElement extends InformationContentElement {
514
+ /** @internal */
515
+ static get className(): string;
516
+ /** @internal */
517
+ constructor(props: ElementProps, iModel: IModelDb);
518
+ }
519
+ /** A Subject is an information element that describes what this repository (or part thereof) is about.
520
+ * See [how to create a Subject element]$(docs/learning/backend/CreateElements.md#Subject).
521
+ * @public
522
+ */
523
+ export declare class Subject extends InformationReferenceElement {
524
+ /** @internal */
525
+ static get className(): string;
526
+ description?: string;
527
+ /** @internal */
528
+ constructor(props: SubjectProps, iModel: IModelDb);
529
+ /** @internal */
530
+ toJSON(): SubjectProps;
531
+ /** Create a Code for a Subject given a name that is meant to be unique within the scope of its parent Subject.
532
+ * @param iModelDb The IModelDb
533
+ * @param parentSubjectId The Id of the parent Subject that provides the scope for names of its child Subjects.
534
+ * @param codeValue The child Subject name
535
+ */
536
+ static createCode(iModelDb: IModelDb, parentSubjectId: CodeScopeProps, codeValue: string): Code;
537
+ /** Create a Subject
538
+ * @param iModelDb The IModelDb
539
+ * @param parentSubjectId The new Subject will be a child of this Subject
540
+ * @param name The name (codeValue) of the Subject
541
+ * @param description The optional description of the Subject
542
+ * @returns The newly constructed Subject
543
+ * @throws [[IModelError]] if there is a problem creating the Subject
544
+ */
545
+ static create(iModelDb: IModelDb, parentSubjectId: Id64String, name: string, description?: string): Subject;
546
+ /** Insert a Subject
547
+ * @param iModelDb Insert into this IModelDb
548
+ * @param parentSubjectId The new Subject will be inserted as a child of this Subject
549
+ * @param name The name (codeValue) of the Subject
550
+ * @param description The optional description of the Subject
551
+ * @returns The Id of the newly inserted Subject
552
+ * @throws [[IModelError]] if there is a problem inserting the Subject
553
+ */
554
+ static insert(iModelDb: IModelDb, parentSubjectId: Id64String, name: string, description?: string): Id64String;
555
+ }
556
+ /** An InformationContentElement that identifies the content of a document.
557
+ * The realized form of a document is called a DocumentCarrier (different class than Document).
558
+ * For example, a will is a legal document. The will published into a PDF file is an ElectronicDocumentCopy.
559
+ * The will printed onto paper is a PrintedDocumentCopy.
560
+ * In this example, the Document only identifies, names, and tracks the content of the will.
561
+ * @public
562
+ */
563
+ export declare abstract class Document extends InformationContentElement {
564
+ /** @internal */
565
+ static get className(): string;
566
+ /** @internal */
567
+ constructor(props: ElementProps, iModel: IModelDb);
568
+ }
569
+ /** A document that represents a drawing, that is, a two-dimensional graphical representation of engineering data. A Drawing element is usually modelled by a [[DrawingModel]].
570
+ * @public
571
+ */
572
+ export declare class Drawing extends Document {
573
+ /** @internal */
574
+ static get className(): string;
575
+ /** @internal */
576
+ constructor(props: ElementProps, iModel: IModelDb);
577
+ /** Create a Code for a Drawing given a name that is meant to be unique within the scope of the specified DocumentListModel.
578
+ * @param iModel The IModelDb
579
+ * @param scopeModelId The Id of the DocumentListModel that contains the Drawing and provides the scope for its name.
580
+ * @param codeValue The Drawing name
581
+ */
582
+ static createCode(iModel: IModelDb, scopeModelId: CodeScopeProps, codeValue: string): Code;
583
+ /** Insert a Drawing element and a DrawingModel that breaks it down.
584
+ * @param iModelDb Insert into this iModel
585
+ * @param documentListModelId Insert the new Drawing into this DocumentListModel
586
+ * @param name The name of the Drawing.
587
+ * @returns The Id of the newly inserted Drawing element and the DrawingModel that breaks it down (same value).
588
+ * @throws [[IModelError]] if unable to insert the element.
589
+ */
590
+ static insert(iModelDb: IModelDb, documentListModelId: Id64String, name: string): Id64String;
591
+ }
592
+ /** A document that represents a section drawing, that is, a graphical documentation derived from a planar
593
+ * section of a spatial view. A SectionDrawing element is modelled by a [[SectionDrawingModel]] or a [[GraphicalModel3d]].
594
+ * A [[SectionDrawingLocation]] can associate the drawing with a spatial location, enabling [HyperModeling]($hypermodeling).
595
+ * @public
596
+ */
597
+ export declare class SectionDrawing extends Drawing {
598
+ /** The type of section used to generate the drawing. */
599
+ sectionType: SectionType;
600
+ /** The spatial view from which the section was generated. */
601
+ spatialView: RelatedElement;
602
+ /** A transform from the section drawing model's coordinates to spatial coordinates. */
603
+ drawingToSpatialTransform?: Transform;
604
+ /** If the section drawing is placed onto a [[Sheet]] via a [[ViewAttachment]], a transform from the sheet's coordinates to spatial coordinates. */
605
+ sheetToSpatialTransform?: Transform;
606
+ /** If the section drawing is placed onto a [[Sheet]] via a [[ViewAttachment]], the clip to apply to the sheet graphics when drawn in the context
607
+ * of the spatial view.
608
+ * @note The ClipVector is defined in spatial coordinates.
609
+ */
610
+ drawingBoundaryClip?: ClipVector;
611
+ /** If true, when displaying the section drawing as a [DrawingViewState]($frontend), the [[spatialView]] will also be displayed. */
612
+ displaySpatialView: boolean;
613
+ /** @internal */
614
+ static get className(): string;
615
+ /** @internal */
616
+ constructor(props: SectionDrawingProps, iModel: IModelDb);
617
+ /** Convert to JSON representation. */
618
+ toJSON(): SectionDrawingProps;
619
+ }
620
+ /** The template for a SheetBorder
621
+ * @public
622
+ */
623
+ export declare class SheetBorderTemplate extends Document {
624
+ /** @internal */
625
+ static get className(): string;
626
+ height?: number;
627
+ width?: number;
628
+ /** @internal */
629
+ constructor(props: SheetBorderTemplateProps, iModel: IModelDb);
630
+ }
631
+ /** The template for a [[Sheet]]
632
+ * @public
633
+ */
634
+ export declare class SheetTemplate extends Document {
635
+ /** @internal */
636
+ static get className(): string;
637
+ height?: number;
638
+ width?: number;
639
+ border?: Id64String;
640
+ /** @internal */
641
+ constructor(props: SheetTemplateProps, iModel: IModelDb);
642
+ /** @internal */
643
+ protected collectReferenceIds(referenceIds: Id64Set): void;
644
+ }
645
+ /** A digital representation of a *sheet of paper*. Modeled by a [[SheetModel]].
646
+ * @public
647
+ */
648
+ export declare class Sheet extends Document {
649
+ /** @internal */
650
+ static get className(): string;
651
+ height: number;
652
+ width: number;
653
+ scale?: number;
654
+ sheetTemplate?: Id64String;
655
+ /** @internal */
656
+ constructor(props: SheetProps, iModel: IModelDb);
657
+ /** @internal */
658
+ protected collectReferenceIds(referenceIds: Id64Set): void;
659
+ /** Create a Code for a Sheet given a name that is meant to be unique within the scope of the specified DocumentListModel.
660
+ * @param iModel The IModelDb
661
+ * @param scopeModelId The Id of the DocumentListModel that contains the Sheet and provides the scope for its name.
662
+ * @param codeValue The Sheet name
663
+ */
664
+ static createCode(iModel: IModelDb, scopeModelId: CodeScopeProps, codeValue: string): Code;
665
+ }
666
+ /** Information Record Element is an abstract base class for modeling information records. Information Record
667
+ * Element is the default choice if no other subclass of Information Content Element makes sense.
668
+ * @public
669
+ */
670
+ export declare abstract class InformationRecordElement extends InformationContentElement {
671
+ /** @internal */
672
+ static get className(): string;
673
+ /** @internal */
674
+ constructor(props: ElementProps, iModel: IModelDb);
675
+ }
676
+ /** A Definition Element holds configuration-related information that is meant to be referenced / shared.
677
+ * @public
678
+ */
679
+ export declare abstract class DefinitionElement extends InformationContentElement {
680
+ /** @internal */
681
+ static get className(): string;
682
+ /** If true, don't show this DefinitionElement in user interface lists. */
683
+ isPrivate: boolean;
684
+ /** @internal */
685
+ constructor(props: DefinitionElementProps, iModel: IModelDb);
686
+ /** @internal */
687
+ toJSON(): DefinitionElementProps;
688
+ }
689
+ /** This abstract class unifies DefinitionGroup and DefinitionContainer for relationship endpoint purposes.
690
+ * @note The associated ECClass was added to the BisCore schema in version 1.0.10
691
+ * @public
692
+ */
693
+ export declare abstract class DefinitionSet extends DefinitionElement {
694
+ /** @internal */
695
+ static get className(): string;
696
+ }
697
+ /** A DefinitionContainer exclusively owns a set of DefinitionElements contained within its sub-model (of type DefinitionModel).
698
+ * @note The associated ECClass was added to the BisCore schema in version 1.0.10
699
+ * @public
700
+ */
701
+ export declare class DefinitionContainer extends DefinitionSet {
702
+ /** @internal */
703
+ static get className(): string;
704
+ /** Create a DefinitionContainer
705
+ * @param iModelDb The IModelDb
706
+ * @param definitionModelId The Id of the [DefinitionModel]($backend) that will contain this DefinitionContainer element.
707
+ * @param code The Code for this DefinitionContainer.
708
+ * @param isPrivate The optional hint, that if `true` means it should not be displayed in the UI.
709
+ * @returns The newly constructed DefinitionContainer
710
+ * @note There is not a predefined CodeSpec for DefinitionContainer elements, so it is the responsibility of the domain or application to create one.
711
+ * @throws [[IModelError]] if there is a problem creating the DefinitionContainer
712
+ */
713
+ static create(iModelDb: IModelDb, definitionModelId: Id64String, code: Code, isPrivate?: boolean): DefinitionContainer;
714
+ /** Insert a DefinitionContainer and its sub-model.
715
+ * @param iModelDb Insert into this IModelDb
716
+ * @param definitionModelId The Id of the [DefinitionModel]($backend) that will contain this DefinitionContainer element.
717
+ * @param code The Code for this DefinitionContainer.
718
+ * @param isPrivate The optional hint, that if `true` means it should not be displayed in the UI.
719
+ * @returns The Id of the newly inserted DefinitionContainer and its newly inserted sub-model (of type DefinitionModel).
720
+ * @note There is not a predefined CodeSpec for DefinitionContainer elements, so it is the responsibility of the domain or application to create one.
721
+ * @throws [[IModelError]] if there is a problem inserting the DefinitionContainer
722
+ */
723
+ static insert(iModelDb: IModelDb, definitionModelId: Id64String, code: Code, isPrivate?: boolean): Id64String;
724
+ }
725
+ /** A non-exclusive set of DefinitionElements grouped using the DefinitionGroupGroupsDefinitions relationship.
726
+ * @note The associated ECClass was added to the BisCore schema in version 1.0.10
727
+ * @public
728
+ */
729
+ export declare class DefinitionGroup extends DefinitionSet {
730
+ /** @internal */
731
+ static get className(): string;
732
+ /** Create a DefinitionGroup
733
+ * @param iModelDb The IModelDb
734
+ * @param definitionModelId The Id of the [DefinitionModel]($backend) that will contain this DefinitionGroup element.
735
+ * @param code The Code for this DefinitionGroup
736
+ * @param isPrivate The optional hint, that if `true` means it should not be displayed in the UI.
737
+ * @returns The newly constructed DefinitionGroup
738
+ * @note There is not a predefined CodeSpec for DefinitionGroup elements, so it is the responsibility of the domain or application to create one.
739
+ * @throws [[IModelError]] if there is a problem creating the DefinitionGroup
740
+ */
741
+ static create(iModelDb: IModelDb, definitionModelId: Id64String, code: Code, isPrivate?: boolean): DefinitionGroup;
742
+ }
743
+ /** Defines a set of properties (the *type*) that may be associated with an element.
744
+ * @public
745
+ */
746
+ export declare abstract class TypeDefinitionElement extends DefinitionElement {
747
+ /** @internal */
748
+ static get className(): string;
749
+ recipe?: RelatedElement;
750
+ /** @internal */
751
+ constructor(props: TypeDefinitionElementProps, iModel: IModelDb);
752
+ /** @internal */
753
+ protected collectReferenceIds(referenceIds: Id64Set): void;
754
+ }
755
+ /** Defines a recipe for generating instances from a definition.
756
+ * @beta
757
+ */
758
+ export declare abstract class RecipeDefinitionElement extends DefinitionElement {
759
+ /** @internal */
760
+ static get className(): string;
761
+ /** @internal */
762
+ constructor(props: ElementProps, iModel: IModelDb);
763
+ }
764
+ /** Defines a set of properties (the *type*) that can be associated with a Physical Element. A Physical
765
+ * Type has a strong correlation with something that can be ordered from a catalog since all instances
766
+ * share a common set of properties.
767
+ * @public
768
+ */
769
+ export declare abstract class PhysicalType extends TypeDefinitionElement {
770
+ /** @internal */
771
+ static get className(): string;
772
+ /** If defined, the [[PhysicalMaterial]] that makes up this PhysicalType. */
773
+ physicalMaterial?: RelatedElement;
774
+ /** @internal */
775
+ constructor(props: PhysicalTypeProps, iModel: IModelDb);
776
+ /** @internal */
777
+ toJSON(): PhysicalTypeProps;
778
+ /** Create a Code for a PhysicalType element given a name that is meant to be unique within the scope of the specified DefinitionModel.
779
+ * @param iModel The IModelDb
780
+ * @param scopeModelId The Id of the DefinitionModel that contains the PhysicalType element and provides the scope for its name.
781
+ * @param codeValue The PhysicalType name
782
+ */
783
+ static createCode(iModel: IModelDb, scopeModelId: CodeScopeProps, codeValue: string): Code;
784
+ }
785
+ /** Defines a set of properties (the *type*) that can be associated with a spatial location.
786
+ * @public
787
+ */
788
+ export declare abstract class SpatialLocationType extends TypeDefinitionElement {
789
+ /** @internal */
790
+ static get className(): string;
791
+ /** @internal */
792
+ constructor(props: TypeDefinitionElementProps, iModel: IModelDb);
793
+ /** Create a Code for a SpatialLocationType element given a name that is meant to be unique within the scope of the specified DefinitionModel.
794
+ * @param iModel The IModelDb
795
+ * @param scopeModelId The Id of the DefinitionModel that contains the SpatialLocationType element and provides the scope for its name.
796
+ * @param codeValue The SpatialLocationType name
797
+ */
798
+ static createCode(iModel: IModelDb, scopeModelId: CodeScopeProps, codeValue: string): Code;
799
+ }
800
+ /** A TemplateRecipe3d is a DefinitionElement that has a sub-model that contains the 3d template elements.
801
+ * @beta
802
+ */
803
+ export declare class TemplateRecipe3d extends RecipeDefinitionElement {
804
+ /** @internal */
805
+ static get className(): string;
806
+ /** @internal */
807
+ constructor(props: ElementProps, iModel: IModelDb);
808
+ /** Create a Code for a TemplateRecipe3d given a name that is meant to be unique within the scope of its Model.
809
+ * @param iModelDb The IModelDb
810
+ * @param definitionModelId The Id of the [DefinitionModel]($backend) that contains this TemplateRecipe3d element.
811
+ * @param codeValue The name of the TemplateRecipe3d element.
812
+ */
813
+ static createCode(iModelDb: IModelDb, definitionModelId: CodeScopeProps, codeValue: string): Code;
814
+ /** Create a TemplateRecipe3d
815
+ * @param iModelDb The IModelDb
816
+ * @param definitionModelId The Id of the [DefinitionModel]($backend) that contains this TemplateRecipe3d element.
817
+ * @param name The name (Code.value) of the TemplateRecipe3d
818
+ * @returns The newly constructed TemplateRecipe3d
819
+ * @throws [[IModelError]] if there is a problem creating the TemplateRecipe3d
820
+ */
821
+ static create(iModelDb: IModelDb, definitionModelId: Id64String, name: string, isPrivate?: boolean): TemplateRecipe3d;
822
+ /** Insert a TemplateRecipe3d and a PhysicalModel (sub-model) that will contain the 3d template elements.
823
+ * @param iModelDb The IModelDb
824
+ * @param definitionModelId The Id of the [DefinitionModel]($backend) that contains this TemplateRecipe3d element.
825
+ * @param name The name (Code.value) of the TemplateRecipe3d
826
+ * @returns The Id of the newly inserted TemplateRecipe3d and the PhysicalModel that sub-models it.
827
+ * @throws [[IModelError]] if there is a problem inserting the TemplateRecipe3d or its sub-model.
828
+ */
829
+ static insert(iModelDb: IModelDb, definitionModelId: Id64String, name: string, isPrivate?: boolean): Id64String;
830
+ }
831
+ /** Defines a set of properties (the *type*) that can be associated with a 2D Graphical Element.
832
+ * @public
833
+ */
834
+ export declare abstract class GraphicalType2d extends TypeDefinitionElement {
835
+ /** @internal */
836
+ static get className(): string;
837
+ /** @internal */
838
+ constructor(props: TypeDefinitionElementProps, iModel: IModelDb);
839
+ /** Create a Code for a GraphicalType2d element given a name that is meant to be unique within the scope of the specified DefinitionModel.
840
+ * @param iModel The IModelDb
841
+ * @param scopeModelId The Id of the DefinitionModel that contains the GraphicalType2d element and provides the scope for its name.
842
+ * @param codeValue The GraphicalType2d name
843
+ */
844
+ static createCode(iModel: IModelDb, scopeModelId: CodeScopeProps, codeValue: string): Code;
845
+ }
846
+ /** A recipe that uses a 2D template for creating new instances.
847
+ * @beta
848
+ */
849
+ export declare class TemplateRecipe2d extends RecipeDefinitionElement {
850
+ /** @internal */
851
+ static get className(): string;
852
+ /** @internal */
853
+ constructor(props: ElementProps, iModel: IModelDb);
854
+ /** Create a Code for a TemplateRecipe2d given a name that is meant to be unique within the scope of its Model.
855
+ * @param iModelDb The IModelDb
856
+ * @param definitionModelId The Id of the [DefinitionModel]($backend) that contains this TemplateRecipe2d element.
857
+ * @param codeValue The name of the TemplateRecipe2d element.
858
+ */
859
+ static createCode(iModelDb: IModelDb, definitionModelId: CodeScopeProps, codeValue: string): Code;
860
+ /** Create a TemplateRecipe2d
861
+ * @param iModelDb The IModelDb
862
+ * @param definitionModelId The Id of the [DefinitionModel]($backend) that contains this TemplateRecipe2d element.
863
+ * @param name The name (Code.value) of the TemplateRecipe2d
864
+ * @returns The newly constructed TemplateRecipe2d
865
+ * @throws [[IModelError]] if there is a problem creating the TemplateRecipe2d
866
+ */
867
+ static create(iModelDb: IModelDb, definitionModelId: Id64String, name: string, isPrivate?: boolean): TemplateRecipe2d;
868
+ /** Insert a TemplateRecipe2d and a DrawingModel (sub-model) that will contain the 2d template elements.
869
+ * @param iModelDb The IModelDb
870
+ * @param definitionModelId The Id of the [DefinitionModel]($backend) that contains this TemplateRecipe2d element.
871
+ * @param name The name (Code.value) of the TemplateRecipe2d
872
+ * @returns The Id of the newly inserted TemplateRecipe2d and the PhysicalModel that sub-models it.
873
+ * @throws [[IModelError]] if there is a problem inserting the TemplateRecipe2d or its sub-model.
874
+ */
875
+ static insert(iModelDb: IModelDb, definitionModelId: Id64String, name: string, isPrivate?: boolean): Id64String;
876
+ }
877
+ /** An abstract base class for elements that establishes a particular modeling perspective for its parent Subject.
878
+ * Instances are always sub-modeled by a specialization of Model of the appropriate modeling perspective.
879
+ * @see [iModel Information Hierarchy]($docs/bis/guide/data-organization/top-of-the-world), [[Subject]], [[Model]]
880
+ * @public
881
+ */
882
+ export declare abstract class InformationPartitionElement extends InformationContentElement {
883
+ /** @internal */
884
+ static get className(): string;
885
+ /** A human-readable string describing the intent of the partition. */
886
+ description?: string;
887
+ /** @internal */
888
+ constructor(props: InformationPartitionElementProps, iModel: IModelDb);
889
+ /** @internal */
890
+ toJSON(): InformationPartitionElementProps;
891
+ /** Create a code that can be used for any subclass of InformationPartitionElement.
892
+ * @param iModelDb The IModelDb
893
+ * @param parentSubjectId The Id of the parent Subject that provides the scope for names of its child InformationPartitionElements.
894
+ * @param codeValue The InformationPartitionElement name
895
+ */
896
+ static createCode(iModel: IModelDb, parentSubjectId: CodeScopeProps, codeValue: string): Code;
897
+ }
898
+ /** A DefinitionPartition element establishes a *Definition* modeling perspective for its parent Subject.
899
+ * A DefinitionPartition is always sub-modeled by a DefinitionModel.
900
+ * @see [[DefinitionModel]]
901
+ * @public
902
+ */
903
+ export declare class DefinitionPartition extends InformationPartitionElement {
904
+ /** @internal */
905
+ static get className(): string;
906
+ }
907
+ /** A DocumentPartition element establishes a *Document* modeling perspective for its parent Subject.
908
+ * A DocumentPartition is always sub-modeled by a DocumentListModel.
909
+ * @see [[DocumentListModel]]
910
+ * @public
911
+ */
912
+ export declare class DocumentPartition extends InformationPartitionElement {
913
+ /** @internal */
914
+ static get className(): string;
915
+ }
916
+ /** A GroupInformationPartition element establishes a *Group Information* modeling perspective for its parent Subject.
917
+ * A GroupInformationPartition is always sub-modeled by a GroupInformationModel.
918
+ * @see [[GroupInformationModel]]
919
+ * @public
920
+ */
921
+ export declare class GroupInformationPartition extends InformationPartitionElement {
922
+ /** @internal */
923
+ static get className(): string;
924
+ }
925
+ /** A GraphicalPartition3d element establishes a *3D Graphical* modeling perspective for its parent Subject.
926
+ * A GraphicalPartition3d is always sub-modeled by a GraphicalModel3d.
927
+ * @note The associated ECClass was added to the BisCore schema in version 1.0.8
928
+ * @see [[GraphicalModel3d]]
929
+ * @public
930
+ */
931
+ export declare class GraphicalPartition3d extends InformationPartitionElement {
932
+ /** @internal */
933
+ static get className(): string;
934
+ }
935
+ /** An InformationRecordPartition element establishes a *Information Record* modeling perspective for its parent Subject.
936
+ * A InformationRecordPartition is always sub-modeled by an InformationRecordModel.
937
+ * @see [[InformationRecordModel]]
938
+ * @public
939
+ */
940
+ export declare class InformationRecordPartition extends InformationPartitionElement {
941
+ /** @internal */
942
+ static get className(): string;
943
+ }
944
+ /** A LinkPartition element establishes a *Link* modeling perspective for its parent Subject. A LinkPartition is always sub-modeled by a LinkModel.
945
+ * @see [[LinkModel]]
946
+ * @public
947
+ */
948
+ export declare class LinkPartition extends InformationPartitionElement {
949
+ /** @internal */
950
+ static get className(): string;
951
+ }
952
+ /** A PhysicalPartition element establishes a *Physical* modeling perspective for its parent Subject. A PhysicalPartition is always sub-modeled by a PhysicalModel.
953
+ * @see [[PhysicalModel]]
954
+ * @public
955
+ */
956
+ export declare class PhysicalPartition extends InformationPartitionElement {
957
+ /** @internal */
958
+ static get className(): string;
959
+ }
960
+ /** A SpatialLocationPartition element establishes a *SpatialLocation* modeling perspective for its parent Subject.
961
+ * A SpatialLocationPartition is always sub-modeled by a SpatialLocationModel.
962
+ * @see [[SpatialLocationModel]]
963
+ * @public
964
+ */
965
+ export declare class SpatialLocationPartition extends InformationPartitionElement {
966
+ /** @internal */
967
+ static get className(): string;
968
+ }
969
+ /** Group Information is an abstract base class for modeling entities whose main purpose is to reference a group of related elements.
970
+ * @public
971
+ */
972
+ export declare abstract class GroupInformationElement extends InformationReferenceElement {
973
+ /** @internal */
974
+ static get className(): string;
975
+ }
976
+ /** An information element that specifies a link.
977
+ * @public
978
+ */
979
+ export declare abstract class LinkElement extends InformationReferenceElement {
980
+ /** @internal */
981
+ static get className(): string;
982
+ /** Create a Code for a LinkElement given a name that is meant to be unique within the scope of the specified Model.
983
+ * @param iModel The IModelDb
984
+ * @param scopeModelId The Id of the Model that contains the LinkElement and provides the scope for its name.
985
+ * @param codeValue The LinkElement name
986
+ */
987
+ static createCode(iModel: IModelDb, scopeModelId: CodeScopeProps, codeValue: string): Code;
988
+ }
989
+ /** An information element that specifies a URL link.
990
+ * @public
991
+ */
992
+ export declare class UrlLink extends LinkElement {
993
+ /** @internal */
994
+ static get className(): string;
995
+ description?: string;
996
+ url?: string;
997
+ /** @internal */
998
+ constructor(props: UrlLinkProps, iModel: IModelDb);
999
+ /** @internal */
1000
+ toJSON(): UrlLinkProps;
1001
+ }
1002
+ /** Represents a folder-like structure that organizes repositories (typically files) in an external system.
1003
+ * @note The associated ECClass was added to the BisCore schema in version 1.0.13
1004
+ * @alpha
1005
+ */
1006
+ export declare class FolderLink extends UrlLink {
1007
+ /** @internal */
1008
+ static get className(): string;
1009
+ }
1010
+ /** An information element that links to a repository.
1011
+ * @public
1012
+ */
1013
+ export declare class RepositoryLink extends UrlLink {
1014
+ /** @internal */
1015
+ static get className(): string;
1016
+ repositoryGuid?: GuidString;
1017
+ /** @note This property was added to the BisCore schema in version 1.0.13 */
1018
+ format?: string;
1019
+ /** @internal */
1020
+ constructor(props: RepositoryLinkProps, iModel: IModelDb);
1021
+ /** @internal */
1022
+ toJSON(): RepositoryLinkProps;
1023
+ }
1024
+ /** An information element that links to an embedded file.
1025
+ * @public
1026
+ */
1027
+ export declare class EmbeddedFileLink extends LinkElement {
1028
+ /** @internal */
1029
+ static get className(): string;
1030
+ }
1031
+ /** A real world entity is modeled as a Role Element when a set of external circumstances define an important
1032
+ * role (one that is worth tracking) that is not intrinsic to the entity playing the role. For example,
1033
+ * a person can play the role of a teacher or a rock can play the role of a boundary marker.
1034
+ * @public
1035
+ */
1036
+ export declare abstract class RoleElement extends Element {
1037
+ /** @internal */
1038
+ static get className(): string;
1039
+ }
1040
+ /** A Definition Element that specifies a collection of geometry that is meant to be reused across Geometric
1041
+ * Element instances. Leveraging Geometry Parts can help reduce file size and improve display performance.
1042
+ * @public
1043
+ */
1044
+ export declare class GeometryPart extends DefinitionElement {
1045
+ /** @internal */
1046
+ static get className(): string;
1047
+ geom?: GeometryStreamProps;
1048
+ /** How to build the part's GeometryStream. This is used for insert and update only. It is not a persistent property. It will be undefined in the properties returned by functions that read a persistent element. It may be specified as an alternative to `geom` when inserting or updating an element.
1049
+ * @alpha
1050
+ */
1051
+ elementGeometryBuilderParams?: ElementGeometryBuilderParamsForPart;
1052
+ bbox: ElementAlignedBox3d;
1053
+ /** @internal */
1054
+ constructor(props: GeometryPartProps, iModel: IModelDb);
1055
+ /** @internal */
1056
+ toJSON(): GeometryPartProps;
1057
+ /** Create a Code for a GeometryPart element given a name that is meant to be unique within the scope of the specified DefinitionModel.
1058
+ * @param iModel The IModelDb
1059
+ * @param scopeModelId The Id of the DefinitionModel that contains the GeometryPart element and provides the scope for its name.
1060
+ * @param codeValue The GeometryPart name
1061
+ * @note GeometryPart elements are not required to be named (have a non-empty Code).
1062
+ */
1063
+ static createCode(iModel: IModelDb, scopeModelId: CodeScopeProps, codeValue: string): Code;
1064
+ }
1065
+ /** The definition element for a line style
1066
+ * @public
1067
+ */
1068
+ export declare class LineStyle extends DefinitionElement {
1069
+ /** @internal */
1070
+ static get className(): string;
1071
+ description?: string;
1072
+ data: string;
1073
+ /** @internal */
1074
+ constructor(props: LineStyleProps, iModel: IModelDb);
1075
+ /** Create a Code for a LineStyle definition given a name that is meant to be unique within the scope of the specified model.
1076
+ * @param iModel The IModel
1077
+ * @param scopeModelId The Id of the DefinitionModel that contains the LineStyle and provides the scope for its name.
1078
+ * @param codeValue The name of the LineStyle
1079
+ * @returns A LineStyle Code
1080
+ */
1081
+ static createCode(iModel: IModelDb, scopeModelId: CodeScopeProps, codeValue: string): Code;
1082
+ }
1083
+ /** Describes how to animate a view of a [[GeometricModel]] to show change over time using a [RenderSchedule.Script]($common).
1084
+ * @note This class was introduced in version 01.00.13 of the BisCore ECSchema. It should only be used with [[IModelDb]]s containing that version or newer.
1085
+ * @public
1086
+ */
1087
+ export declare class RenderTimeline extends InformationRecordElement {
1088
+ /** @internal */
1089
+ static get className(): string;
1090
+ /** A human-readable description of the timeline, which may be an empty string. */
1091
+ description: string;
1092
+ /** The JSON representation of the instructions for visualizing change over time.
1093
+ * @see [RenderSchedule.Script]($common) for the API for working with the script.
1094
+ */
1095
+ scriptProps: RenderSchedule.ScriptProps;
1096
+ /** @internal */
1097
+ protected constructor(props: RenderTimelineProps, iModel: IModelDb);
1098
+ static fromJSON(props: RenderTimelineProps, iModel: IModelDb): RenderTimeline;
1099
+ toJSON(): RenderTimelineProps;
1100
+ private static parseScriptProps;
1101
+ /** @alpha */
1102
+ protected collectReferenceIds(ids: Id64Set): void;
1103
+ /** @alpha */
1104
+ protected static onCloned(context: IModelCloneContext, sourceProps: RenderTimelineProps, targetProps: RenderTimelineProps): void;
1105
+ /** Remap Ids when cloning a RenderSchedule.Script between iModels on a DisplayStyle or RenderTimeline.
1106
+ * @internal
1107
+ */
1108
+ static remapScript(context: IModelCloneContext, input: RenderSchedule.ScriptProps): RenderSchedule.ScriptProps;
1109
+ }
1110
1110
  //# sourceMappingURL=Element.d.ts.map