@itwin/core-backend 5.10.0-dev.11 → 5.10.0-dev.12

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 (101) hide show
  1. package/lib/cjs/Category.d.ts +4 -4
  2. package/lib/cjs/Category.js.map +1 -1
  3. package/lib/cjs/ChangesetECAdaptor.d.ts +6 -6
  4. package/lib/cjs/ChangesetECAdaptor.js +4 -4
  5. package/lib/cjs/ChangesetECAdaptor.js.map +1 -1
  6. package/lib/cjs/CodeSpecs.d.ts +3 -3
  7. package/lib/cjs/CodeSpecs.js.map +1 -1
  8. package/lib/cjs/DisplayStyle.d.ts +2 -2
  9. package/lib/cjs/DisplayStyle.js.map +1 -1
  10. package/lib/cjs/Element.d.ts +10 -10
  11. package/lib/cjs/Element.js +2 -2
  12. package/lib/cjs/Element.js.map +1 -1
  13. package/lib/cjs/ElementAspect.d.ts +1 -1
  14. package/lib/cjs/ElementAspect.js.map +1 -1
  15. package/lib/cjs/ElementTreeWalker.d.ts +5 -5
  16. package/lib/cjs/ElementTreeWalker.js.map +1 -1
  17. package/lib/cjs/ExternalSource.d.ts +2 -2
  18. package/lib/cjs/ExternalSource.js.map +1 -1
  19. package/lib/cjs/IModelDb.d.ts +33 -23
  20. package/lib/cjs/IModelDb.d.ts.map +1 -1
  21. package/lib/cjs/IModelDb.js +32 -20
  22. package/lib/cjs/IModelDb.js.map +1 -1
  23. package/lib/cjs/LineStyle.d.ts +6 -6
  24. package/lib/cjs/LineStyle.js.map +1 -1
  25. package/lib/cjs/Material.d.ts +1 -1
  26. package/lib/cjs/Material.js.map +1 -1
  27. package/lib/cjs/Model.d.ts +6 -6
  28. package/lib/cjs/Model.js.map +1 -1
  29. package/lib/cjs/Relationship.d.ts +10 -10
  30. package/lib/cjs/Relationship.js +6 -6
  31. package/lib/cjs/Relationship.js.map +1 -1
  32. package/lib/cjs/SheetIndex.d.ts +4 -4
  33. package/lib/cjs/SheetIndex.js.map +1 -1
  34. package/lib/cjs/Texture.d.ts +1 -1
  35. package/lib/cjs/Texture.js.map +1 -1
  36. package/lib/cjs/ViewDefinition.d.ts +6 -6
  37. package/lib/cjs/ViewDefinition.js.map +1 -1
  38. package/lib/cjs/annotations/ElementDrivesTextAnnotation.d.ts +1 -1
  39. package/lib/cjs/annotations/ElementDrivesTextAnnotation.js.map +1 -1
  40. package/lib/cjs/annotations/FrameGeometry.d.ts.map +1 -1
  41. package/lib/cjs/annotations/FrameGeometry.js +2 -3
  42. package/lib/cjs/annotations/FrameGeometry.js.map +1 -1
  43. package/lib/cjs/domains/FunctionalElements.d.ts +1 -1
  44. package/lib/cjs/domains/FunctionalElements.js.map +1 -1
  45. package/lib/cjs/domains/GenericElements.d.ts +2 -2
  46. package/lib/cjs/domains/GenericElements.js.map +1 -1
  47. package/lib/cjs/internal/ChannelAdmin.d.ts +2 -2
  48. package/lib/cjs/internal/ChannelAdmin.js.map +1 -1
  49. package/lib/esm/Category.d.ts +4 -4
  50. package/lib/esm/Category.js.map +1 -1
  51. package/lib/esm/ChangesetECAdaptor.d.ts +6 -6
  52. package/lib/esm/ChangesetECAdaptor.js +4 -4
  53. package/lib/esm/ChangesetECAdaptor.js.map +1 -1
  54. package/lib/esm/CodeSpecs.d.ts +3 -3
  55. package/lib/esm/CodeSpecs.js.map +1 -1
  56. package/lib/esm/DisplayStyle.d.ts +2 -2
  57. package/lib/esm/DisplayStyle.js.map +1 -1
  58. package/lib/esm/Element.d.ts +10 -10
  59. package/lib/esm/Element.js +2 -2
  60. package/lib/esm/Element.js.map +1 -1
  61. package/lib/esm/ElementAspect.d.ts +1 -1
  62. package/lib/esm/ElementAspect.js.map +1 -1
  63. package/lib/esm/ElementTreeWalker.d.ts +5 -5
  64. package/lib/esm/ElementTreeWalker.js.map +1 -1
  65. package/lib/esm/ExternalSource.d.ts +2 -2
  66. package/lib/esm/ExternalSource.js.map +1 -1
  67. package/lib/esm/IModelDb.d.ts +33 -23
  68. package/lib/esm/IModelDb.d.ts.map +1 -1
  69. package/lib/esm/IModelDb.js +32 -20
  70. package/lib/esm/IModelDb.js.map +1 -1
  71. package/lib/esm/LineStyle.d.ts +6 -6
  72. package/lib/esm/LineStyle.js.map +1 -1
  73. package/lib/esm/Material.d.ts +1 -1
  74. package/lib/esm/Material.js.map +1 -1
  75. package/lib/esm/Model.d.ts +6 -6
  76. package/lib/esm/Model.js.map +1 -1
  77. package/lib/esm/Relationship.d.ts +10 -10
  78. package/lib/esm/Relationship.js +6 -6
  79. package/lib/esm/Relationship.js.map +1 -1
  80. package/lib/esm/SheetIndex.d.ts +4 -4
  81. package/lib/esm/SheetIndex.js.map +1 -1
  82. package/lib/esm/Texture.d.ts +1 -1
  83. package/lib/esm/Texture.js.map +1 -1
  84. package/lib/esm/ViewDefinition.d.ts +6 -6
  85. package/lib/esm/ViewDefinition.js.map +1 -1
  86. package/lib/esm/annotations/ElementDrivesTextAnnotation.d.ts +1 -1
  87. package/lib/esm/annotations/ElementDrivesTextAnnotation.js.map +1 -1
  88. package/lib/esm/annotations/FrameGeometry.d.ts.map +1 -1
  89. package/lib/esm/annotations/FrameGeometry.js +2 -3
  90. package/lib/esm/annotations/FrameGeometry.js.map +1 -1
  91. package/lib/esm/domains/FunctionalElements.d.ts +1 -1
  92. package/lib/esm/domains/FunctionalElements.js.map +1 -1
  93. package/lib/esm/domains/GenericElements.d.ts +2 -2
  94. package/lib/esm/domains/GenericElements.js.map +1 -1
  95. package/lib/esm/internal/ChannelAdmin.d.ts +2 -2
  96. package/lib/esm/internal/ChannelAdmin.js.map +1 -1
  97. package/lib/esm/test/annotations/FrameGeometry.test.js +2 -1
  98. package/lib/esm/test/annotations/FrameGeometry.test.js.map +1 -1
  99. package/lib/esm/test/standalone/DeleteElements.test.js +45 -0
  100. package/lib/esm/test/standalone/DeleteElements.test.js.map +1 -1
  101. package/package.json +13 -13
@@ -1 +1 @@
1
- {"version":3,"file":"DisplayStyle.js","sourceRoot":"","sources":["../../src/DisplayStyle.ts"],"names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,IAAI,SAAS,EAAE,CAAC,MAAM,EAAE,CAAC;QAE5D,MAAM,eAAe,GAAG,OAAO,CAAC,eAAe,YAAY,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,eAAe,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,eAAe,CAAC;QAEjI,MAAM,QAAQ,GAAgC;YAC5C,GAAG,OAAO;YACV,SAAS;YACT,eAAe;SAChB,CAAC;QAEF,MAAM,iBAAiB,GAAwB;YAC7C,aAAa,EAAE,IAAI,CAAC,aAAa;YACjC,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,iBAAiB,EAAE,IAAI,CAAC;YACxD,KAAK,EAAE,iBAAiB;YACxB,cAAc,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE;YACpC,SAAS,EAAE,KAAK;SAEjB,CAAC;QAEF,OAAO,IAAI,cAAc,CAAC,iBAAiB,EAAE,QAAQ,CAAC,CAAC;IACzD,CAAC;IAiBM,MAAM,CAAC,MAAM,CAAC,OAA2B,EAAE,iBAA6B,EAAE,IAAY,EAAE,OAAqC;QAClI,MAAM,GAAG,GAAG,OAAO,YAAY,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;QACzE,MAAM,YAAY,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,iBAAiB,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAC/E,OAAO,YAAY,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IAClC,CAAC;CACF","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module ViewDefinitions\r\n */\r\n\r\nimport { CompressedId64Set, Id64, Id64Array, Id64String, OrderedId64Iterable } from \"@itwin/core-bentley\";\r\nimport {\r\n BisCodeSpec, Code, CodeScopeProps, CodeSpec, ColorDef, DisplayStyle3dProps, DisplayStyle3dSettings, DisplayStyle3dSettingsProps,\r\n DisplayStyleProps, DisplayStyleSettings, DisplayStyleSubCategoryProps, EntityReferenceSet, PlanProjectionSettingsProps, RenderSchedule, SkyBoxImageProps, ViewFlags,\r\n} from \"@itwin/core-common\";\r\nimport { DefinitionElement, RenderTimeline } from \"./Element\";\r\nimport { EditTxn } from \"./EditTxn\";\r\nimport { IModelDb } from \"./IModelDb\";\r\nimport { IModelElementCloneContext } from \"./IModelElementCloneContext\";\r\nimport { DeserializeEntityArgs, ECSqlRow } from \"./Entity\";\r\nimport { _implicitTxn } from \"./internal/Symbols\";\r\n\r\n/** A DisplayStyle defines the parameters for 'styling' the contents of a view.\r\n * Internally a DisplayStyle consists of a dictionary of several named 'styles' describing specific aspects of the display style as a whole.\r\n * Many ViewDefinitions may share the same DisplayStyle.\r\n * @public @preview\r\n */\r\nexport abstract class DisplayStyle extends DefinitionElement {\r\n public static override get className(): string { return \"DisplayStyle\"; }\r\n public abstract get settings(): DisplayStyleSettings;\r\n\r\n protected constructor(props: DisplayStyleProps, iModel: IModelDb) {\r\n super(props, iModel);\r\n }\r\n\r\n /** @beta */\r\n public static override deserialize(props: DeserializeEntityArgs): DisplayStyleProps {\r\n const elProps = super.deserialize(props);\r\n const displayOptions = props.options?.element?.displayStyle;\r\n // Uncompress excludedElements if they are compressed\r\n if (!displayOptions?.compressExcludedElementIds && elProps.jsonProperties?.styles?.excludedElements) {\r\n const excludedElements = elProps.jsonProperties.styles.excludedElements;\r\n if (typeof excludedElements === \"string\" && excludedElements.startsWith(\"+\")) {\r\n const ids: string[] = [];\r\n CompressedId64Set.decompressSet(excludedElements).forEach((id: string) => {\r\n ids.push(id);\r\n });\r\n elProps.jsonProperties.styles.excludedElements = ids;\r\n }\r\n }\r\n // Omit Schedule Script Element Ids if the option is set\r\n if (displayOptions?.omitScheduleScriptElementIds && elProps.jsonProperties?.styles?.scheduleScript) {\r\n const scheduleScript: RenderSchedule.ScriptProps = elProps.jsonProperties.styles.scheduleScript;\r\n elProps.jsonProperties.styles.scheduleScript = RenderSchedule.Script.removeScheduleScriptElementIds(scheduleScript);\r\n }\r\n return elProps;\r\n }\r\n\r\n /** @beta */\r\n public static override serialize(props: DisplayStyleProps, iModel: IModelDb): ECSqlRow {\r\n const inst = super.serialize(props, iModel);\r\n return inst;\r\n }\r\n\r\n /** Create a Code for a DisplayStyle given a name that is meant to be unique within the scope of the specified DefinitionModel.\r\n * @param iModel The IModelDb\r\n * @param scopeModelId The Id of the DefinitionModel that contains the DisplayStyle and provides the scope for its name.\r\n * @param codeValue The DisplayStyle name\r\n */\r\n public static createCode(iModel: IModelDb, scopeModelId: CodeScopeProps, codeValue: string): Code {\r\n const codeSpec: CodeSpec = iModel.codeSpecs.getByName(BisCodeSpec.displayStyle);\r\n return new Code({ spec: codeSpec.id, scope: scopeModelId, value: codeValue });\r\n }\r\n\r\n protected override collectReferenceIds(referenceIds: EntityReferenceSet): void {\r\n super.collectReferenceIds(referenceIds);\r\n for (const [id] of this.settings.subCategoryOverrides) {\r\n referenceIds.addElement(id);\r\n }\r\n\r\n for (const excludedElementId of this.settings.excludedElementIds)\r\n referenceIds.addElement(excludedElementId);\r\n\r\n if (this.settings.renderTimeline) {\r\n referenceIds.addElement(this.settings.renderTimeline);\r\n } else {\r\n const script = this.loadScheduleScript();\r\n if (script)\r\n script.script.discloseIds(referenceIds);\r\n }\r\n }\r\n\r\n /** @alpha */\r\n protected static override async onCloned(context: IModelElementCloneContext, sourceElementProps: DisplayStyleProps, targetElementProps: DisplayStyleProps): Promise<void> {\r\n await super.onCloned(context, sourceElementProps, targetElementProps);\r\n\r\n if (!context.isBetweenIModels || !targetElementProps.jsonProperties?.styles)\r\n return;\r\n\r\n const settings = targetElementProps.jsonProperties.styles;\r\n if (settings.subCategoryOvr) {\r\n const targetOverrides: DisplayStyleSubCategoryProps[] = [];\r\n for (const ovr of settings.subCategoryOvr) {\r\n ovr.subCategory;\r\n const targetSubCategoryId = context.findTargetElementId(Id64.fromJSON(ovr.subCategory));\r\n if (Id64.isValid(targetSubCategoryId))\r\n targetOverrides.push({ ...ovr, subCategory: targetSubCategoryId });\r\n }\r\n settings.subCategoryOvr = targetOverrides;\r\n }\r\n\r\n if (settings.excludedElements) {\r\n const excluded: Id64Array = \"string\" === typeof settings.excludedElements ? CompressedId64Set.decompressArray(settings.excludedElements) : settings.excludedElements;\r\n const excludedTargetElements: Id64Array = [];\r\n for (const excludedElement of excluded) {\r\n const remapped = context.findTargetElementId(excludedElement);\r\n if (Id64.isValid(remapped))\r\n excludedTargetElements.push(remapped);\r\n }\r\n\r\n if (0 === excludedTargetElements.length)\r\n delete settings.excludedElements;\r\n else\r\n settings.excludedElements = CompressedId64Set.compressIds(OrderedId64Iterable.sortArray(excludedTargetElements));\r\n }\r\n\r\n if (settings.renderTimeline) {\r\n const renderTimeline = context.findTargetElementId(settings.renderTimeline);\r\n if (Id64.isValid(renderTimeline))\r\n settings.renderTimeline = renderTimeline;\r\n else\r\n delete settings.renderTimeline;\r\n } else if (settings.scheduleScript) {\r\n const scheduleScript = RenderTimeline.remapScript(context, settings.scheduleScript);\r\n if (scheduleScript.length > 0)\r\n settings.scheduleScript = scheduleScript;\r\n else\r\n delete settings.scheduleScript;\r\n }\r\n }\r\n\r\n public loadScheduleScript(): RenderSchedule.ScriptReference | undefined {\r\n let script;\r\n let sourceId;\r\n if (this.settings.renderTimeline) {\r\n const timeline = this.iModel.elements.tryGetElement<RenderTimeline>(this.settings.renderTimeline);\r\n if (timeline) {\r\n script = RenderSchedule.Script.fromJSON(timeline.scriptProps);\r\n sourceId = timeline.id;\r\n }\r\n } else if (this.settings.scheduleScriptProps) {\r\n script = RenderSchedule.Script.fromJSON(this.settings.scheduleScriptProps);\r\n sourceId = this.id;\r\n }\r\n\r\n return undefined !== sourceId && undefined !== script ? new RenderSchedule.ScriptReference(sourceId, script) : undefined;\r\n }\r\n}\r\n\r\n/** A DisplayStyle for 2d views.\r\n * @public @preview\r\n */\r\nexport class DisplayStyle2d extends DisplayStyle {\r\n public static override get className(): string { return \"DisplayStyle2d\"; }\r\n private readonly _settings: DisplayStyleSettings;\r\n\r\n public get settings(): DisplayStyleSettings { return this._settings; }\r\n\r\n protected constructor(props: DisplayStyleProps, iModel: IModelDb) {\r\n super(props, iModel);\r\n this._settings = new DisplayStyleSettings(this.jsonProperties);\r\n }\r\n /** Create a DisplayStyle2d for use by a ViewDefinition.\r\n * @param iModelDb The iModel\r\n * @param definitionModelId The [[DefinitionModel]]\r\n * @param name The name/CodeValue of the DisplayStyle2d\r\n * @returns The newly constructed DisplayStyle2d element.\r\n * @throws [[IModelError]] if unable to create the element.\r\n */\r\n public static create(iModelDb: IModelDb, definitionModelId: Id64String, name: string): DisplayStyle2d {\r\n const displayStyleProps: DisplayStyleProps = {\r\n classFullName: this.classFullName,\r\n code: this.createCode(iModelDb, definitionModelId, name),\r\n model: definitionModelId,\r\n isPrivate: false,\r\n jsonProperties: {\r\n styles: {\r\n backgroundColor: 0,\r\n monochromeColor: ColorDef.white.toJSON(),\r\n viewflags: ViewFlags.defaults,\r\n },\r\n },\r\n };\r\n return new DisplayStyle2d(displayStyleProps, iModelDb);\r\n }\r\n /**\r\n * Insert a DisplayStyle2d for use by a ViewDefinition.\r\n * @param txn The EditTxn to use\r\n * @param definitionModelId Insert the new DisplayStyle2d into this DefinitionModel\r\n * @param name The name of the DisplayStyle2d\r\n * @returns The Id of the newly inserted DisplayStyle2d element.\r\n * @throws [[IModelError]] if unable to insert the element.\r\n * @beta\r\n */\r\n public static insert(txn: EditTxn, definitionModelId: Id64String, name: string): Id64String;\r\n /**\r\n * Insert a DisplayStyle2d for use by a ViewDefinition.\r\n * @deprecated in 5.1.9 - will not be removed until after 2026-08-04. Use DisplayStyle2d.insert(txn, ...) instead.\r\n */\r\n public static insert(iModelDb: IModelDb, definitionModelId: Id64String, name: string): Id64String;\r\n public static insert(txnOrDb: EditTxn | IModelDb, definitionModelId: Id64String, name: string): Id64String {\r\n const txn = txnOrDb instanceof EditTxn ? txnOrDb : txnOrDb[_implicitTxn];\r\n const displayStyle = this.create(txn.iModel, definitionModelId, name);\r\n return displayStyle.insert(txn);\r\n }\r\n}\r\n\r\n/** Describes initial settings for a new [[DisplayStyle3d]].\r\n * Most properties are inherited from [DisplayStyle3dSettingsProps]($common), but for backwards compatibility reasons, this interface is slightly awkward:\r\n * - It adds a `viewFlags` member that differs only in case and type from [DisplayStyleSettingsProps.viewflags]($common); and\r\n * - It extends the type of [DisplayStyleSettingsProps.backgroundColor]($common) to include [ColorDef]($common).\r\n * These idiosyncrasies will be addressed in a future version of core-backend.\r\n * @see [[DisplayStyle3d.create]].\r\n * @public @preview\r\n */\r\nexport interface DisplayStyleCreationOptions extends Omit<DisplayStyle3dSettingsProps, \"backgroundColor\" | \"scheduleScript\"> {\r\n /** If supplied, the [ViewFlags]($common) applied by the display style.\r\n * If undefined, [DisplayStyle3dSettingsProps.viewflags]($common) will be used if present (note the difference in case); otherwise, default-constructed [ViewFlags]($common) will be used.\r\n */\r\n viewFlags?: ViewFlags;\r\n backgroundColor?: ColorDef | number;\r\n}\r\n\r\n/** A DisplayStyle for 3d views.\r\n * See [how to create a DisplayStyle3d]($docs/learning/backend/CreateElements.md#DisplayStyle3d).\r\n * @public @preview\r\n */\r\nexport class DisplayStyle3d extends DisplayStyle {\r\n public static override get className(): string { return \"DisplayStyle3d\"; }\r\n private readonly _settings: DisplayStyle3dSettings;\r\n\r\n public get settings(): DisplayStyle3dSettings { return this._settings; }\r\n\r\n protected constructor(props: DisplayStyle3dProps, iModel: IModelDb) {\r\n super(props, iModel);\r\n this._settings = new DisplayStyle3dSettings(this.jsonProperties);\r\n }\r\n\r\n protected override collectReferenceIds(referenceIds: EntityReferenceSet): void {\r\n super.collectReferenceIds(referenceIds);\r\n for (const textureId of this.settings.environment.sky.textureIds)\r\n referenceIds.addElement(textureId);\r\n\r\n if (this.settings.planProjectionSettings)\r\n for (const planProjectionSetting of this.settings.planProjectionSettings)\r\n referenceIds.addElement(planProjectionSetting[0]);\r\n\r\n const groups = this.settings.contours.groups;\r\n for (const group of groups) {\r\n const subCategories = group.subCategories;\r\n for (const subCategoryId of subCategories) {\r\n referenceIds.addElement(subCategoryId);\r\n }\r\n }\r\n }\r\n\r\n /** @alpha */\r\n protected static override async onCloned(context: IModelElementCloneContext, sourceElementProps: DisplayStyle3dProps, targetElementProps: DisplayStyle3dProps): Promise<void> {\r\n await super.onCloned(context, sourceElementProps, targetElementProps);\r\n if (context.isBetweenIModels) {\r\n const convertTexture = (id: string) => Id64.isValidId64(id) ? context.findTargetElementId(id) : id;\r\n\r\n const skyBoxImageProps: SkyBoxImageProps | undefined = targetElementProps?.jsonProperties?.styles?.environment?.sky?.image;\r\n if (skyBoxImageProps?.texture && Id64.isValidId64(skyBoxImageProps.texture))\r\n skyBoxImageProps.texture = convertTexture(skyBoxImageProps.texture);\r\n\r\n if (skyBoxImageProps?.textures) {\r\n skyBoxImageProps.textures.front = convertTexture(skyBoxImageProps.textures.front);\r\n skyBoxImageProps.textures.back = convertTexture(skyBoxImageProps.textures.back);\r\n skyBoxImageProps.textures.left = convertTexture(skyBoxImageProps.textures.left);\r\n skyBoxImageProps.textures.right = convertTexture(skyBoxImageProps.textures.right);\r\n skyBoxImageProps.textures.top = convertTexture(skyBoxImageProps.textures.top);\r\n skyBoxImageProps.textures.bottom = convertTexture(skyBoxImageProps.textures.bottom);\r\n }\r\n\r\n if (targetElementProps?.jsonProperties?.styles?.planProjections) {\r\n const remappedPlanProjections: { [modelId: string]: PlanProjectionSettingsProps } = {};\r\n for (const entry of Object.entries(targetElementProps.jsonProperties.styles.planProjections)) {\r\n const remappedModelId: Id64String = context.findTargetElementId(entry[0]);\r\n if (Id64.isValidId64(remappedModelId)) {\r\n remappedPlanProjections[remappedModelId] = entry[1];\r\n }\r\n }\r\n targetElementProps.jsonProperties.styles.planProjections = remappedPlanProjections;\r\n }\r\n\r\n const groups = targetElementProps?.jsonProperties?.styles?.contours?.groups;\r\n if (groups) {\r\n for (const group of groups) {\r\n if (group.subCategories) {\r\n const subCategories = CompressedId64Set.decompressArray(group.subCategories);\r\n const remappedSubCategories: Id64String[] = [];\r\n for (const subCategoryId of subCategories) {\r\n const remappedSubCategoryId: Id64String = context.findTargetElementId(subCategoryId);\r\n if (Id64.isValidId64(remappedSubCategoryId)) {\r\n remappedSubCategories.push(remappedSubCategoryId);\r\n }\r\n }\r\n group.subCategories = CompressedId64Set.sortAndCompress(remappedSubCategories);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n /** Create a DisplayStyle3d for use by a ViewDefinition.\r\n * @param iModelDb The iModel\r\n * @param definitionModelId The [[DefinitionModel]]\r\n * @param name The name/CodeValue of the DisplayStyle3d\r\n * @returns The newly constructed DisplayStyle3d element.\r\n * @throws [[IModelError]] if unable to create the element.\r\n */\r\n public static create(iModelDb: IModelDb, definitionModelId: Id64String, name: string, options?: DisplayStyleCreationOptions): DisplayStyle3d {\r\n options = options ?? {};\r\n let viewflags = options.viewFlags?.toJSON();\r\n if (!viewflags)\r\n viewflags = options.viewflags ?? new ViewFlags().toJSON();\r\n\r\n const backgroundColor = options.backgroundColor instanceof ColorDef ? options.backgroundColor.toJSON() : options.backgroundColor;\r\n\r\n const settings: DisplayStyle3dSettingsProps = {\r\n ...options,\r\n viewflags,\r\n backgroundColor,\r\n };\r\n\r\n const displayStyleProps: DisplayStyle3dProps = {\r\n classFullName: this.classFullName,\r\n code: this.createCode(iModelDb, definitionModelId, name),\r\n model: definitionModelId,\r\n jsonProperties: { styles: settings },\r\n isPrivate: false,\r\n\r\n };\r\n\r\n return new DisplayStyle3d(displayStyleProps, iModelDb);\r\n }\r\n /**\r\n * Insert a DisplayStyle3d for use by a ViewDefinition.\r\n * @param txn The EditTxn to use\r\n * @param definitionModelId Insert the new DisplayStyle3d into this [[DefinitionModel]]\r\n * @param name The name of the DisplayStyle3d\r\n * @param options Creation options\r\n * @returns The Id of the newly inserted DisplayStyle3d element.\r\n * @throws [[IModelError]] if unable to insert the element.\r\n * @beta\r\n */\r\n public static insert(txn: EditTxn, definitionModelId: Id64String, name: string, options?: DisplayStyleCreationOptions): Id64String;\r\n /**\r\n * Insert a DisplayStyle3d for use by a ViewDefinition.\r\n * @deprecated in 5.1.9 - will not be removed until after 2026-08-04. Use DisplayStyle3d.insert(txn, ...) instead.\r\n */\r\n public static insert(iModelDb: IModelDb, definitionModelId: Id64String, name: string, options?: DisplayStyleCreationOptions): Id64String;\r\n public static insert(txnOrDb: EditTxn | IModelDb, definitionModelId: Id64String, name: string, options?: DisplayStyleCreationOptions): Id64String {\r\n const txn = txnOrDb instanceof EditTxn ? txnOrDb : txnOrDb[_implicitTxn];\r\n const displayStyle = this.create(txn.iModel, definitionModelId, name, options);\r\n return displayStyle.insert(txn);\r\n }\r\n}\r\n\r\n\r\n\r\n"]}
1
+ {"version":3,"file":"DisplayStyle.js","sourceRoot":"","sources":["../../src/DisplayStyle.ts"],"names":[],"mappings":"AAAA;;;+FAG+F;AAC/F;;GAEG;AAEH,OAAO,EAAE,iBAAiB,EAAE,IAAI,EAAyB,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC1G,OAAO,EACL,WAAW,EAAE,IAAI,EAA4B,QAAQ,EAAuB,sBAAsB,EAC/E,oBAAoB,EAAiF,cAAc,EAAoB,SAAS,GACpK,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD;;;;GAIG;AACH,MAAM,OAAgB,YAAa,SAAQ,iBAAiB;IACnD,MAAM,KAAc,SAAS,KAAa,OAAO,cAAc,CAAC,CAAC,CAAC;IAGzE,YAAsB,KAAwB,EAAE,MAAgB;QAC9D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E,QAAQ,CAAC,CAAC;IACzD,CAAC;IAiBM,MAAM,CAAC,MAAM,CAAC,OAA2B,EAAE,iBAA6B,EAAE,IAAY,EAAE,OAAqC;QAClI,MAAM,GAAG,GAAG,OAAO,YAAY,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;QACzE,MAAM,YAAY,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,iBAAiB,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAC/E,OAAO,YAAY,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IAClC,CAAC;CACF","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module ViewDefinitions\r\n */\r\n\r\nimport { CompressedId64Set, Id64, Id64Array, Id64String, OrderedId64Iterable } from \"@itwin/core-bentley\";\r\nimport {\r\n BisCodeSpec, Code, CodeScopeProps, CodeSpec, ColorDef, DisplayStyle3dProps, DisplayStyle3dSettings, DisplayStyle3dSettingsProps,\r\n DisplayStyleProps, DisplayStyleSettings, DisplayStyleSubCategoryProps, EntityReferenceSet, PlanProjectionSettingsProps, RenderSchedule, SkyBoxImageProps, ViewFlags,\r\n} from \"@itwin/core-common\";\r\nimport { DefinitionElement, RenderTimeline } from \"./Element\";\r\nimport { EditTxn } from \"./EditTxn\";\r\nimport { IModelDb } from \"./IModelDb\";\r\nimport { IModelElementCloneContext } from \"./IModelElementCloneContext\";\r\nimport { DeserializeEntityArgs, ECSqlRow } from \"./Entity\";\r\nimport { _implicitTxn } from \"./internal/Symbols\";\r\n\r\n/** A DisplayStyle defines the parameters for 'styling' the contents of a view.\r\n * Internally a DisplayStyle consists of a dictionary of several named 'styles' describing specific aspects of the display style as a whole.\r\n * Many ViewDefinitions may share the same DisplayStyle.\r\n * @public @preview\r\n */\r\nexport abstract class DisplayStyle extends DefinitionElement {\r\n public static override get className(): string { return \"DisplayStyle\"; }\r\n public abstract get settings(): DisplayStyleSettings;\r\n\r\n protected constructor(props: DisplayStyleProps, iModel: IModelDb) {\r\n super(props, iModel);\r\n }\r\n\r\n /** @beta */\r\n public static override deserialize(props: DeserializeEntityArgs): DisplayStyleProps {\r\n const elProps = super.deserialize(props);\r\n const displayOptions = props.options?.element?.displayStyle;\r\n // Uncompress excludedElements if they are compressed\r\n if (!displayOptions?.compressExcludedElementIds && elProps.jsonProperties?.styles?.excludedElements) {\r\n const excludedElements = elProps.jsonProperties.styles.excludedElements;\r\n if (typeof excludedElements === \"string\" && excludedElements.startsWith(\"+\")) {\r\n const ids: string[] = [];\r\n CompressedId64Set.decompressSet(excludedElements).forEach((id: string) => {\r\n ids.push(id);\r\n });\r\n elProps.jsonProperties.styles.excludedElements = ids;\r\n }\r\n }\r\n // Omit Schedule Script Element Ids if the option is set\r\n if (displayOptions?.omitScheduleScriptElementIds && elProps.jsonProperties?.styles?.scheduleScript) {\r\n const scheduleScript: RenderSchedule.ScriptProps = elProps.jsonProperties.styles.scheduleScript;\r\n elProps.jsonProperties.styles.scheduleScript = RenderSchedule.Script.removeScheduleScriptElementIds(scheduleScript);\r\n }\r\n return elProps;\r\n }\r\n\r\n /** @beta */\r\n public static override serialize(props: DisplayStyleProps, iModel: IModelDb): ECSqlRow {\r\n const inst = super.serialize(props, iModel);\r\n return inst;\r\n }\r\n\r\n /** Create a Code for a DisplayStyle given a name that is meant to be unique within the scope of the specified DefinitionModel.\r\n * @param iModel The IModelDb\r\n * @param scopeModelId The Id of the DefinitionModel that contains the DisplayStyle and provides the scope for its name.\r\n * @param codeValue The DisplayStyle name\r\n */\r\n public static createCode(iModel: IModelDb, scopeModelId: CodeScopeProps, codeValue: string): Code {\r\n const codeSpec: CodeSpec = iModel.codeSpecs.getByName(BisCodeSpec.displayStyle);\r\n return new Code({ spec: codeSpec.id, scope: scopeModelId, value: codeValue });\r\n }\r\n\r\n protected override collectReferenceIds(referenceIds: EntityReferenceSet): void {\r\n super.collectReferenceIds(referenceIds);\r\n for (const [id] of this.settings.subCategoryOverrides) {\r\n referenceIds.addElement(id);\r\n }\r\n\r\n for (const excludedElementId of this.settings.excludedElementIds)\r\n referenceIds.addElement(excludedElementId);\r\n\r\n if (this.settings.renderTimeline) {\r\n referenceIds.addElement(this.settings.renderTimeline);\r\n } else {\r\n const script = this.loadScheduleScript();\r\n if (script)\r\n script.script.discloseIds(referenceIds);\r\n }\r\n }\r\n\r\n /** @alpha */\r\n protected static override async onCloned(context: IModelElementCloneContext, sourceElementProps: DisplayStyleProps, targetElementProps: DisplayStyleProps): Promise<void> {\r\n await super.onCloned(context, sourceElementProps, targetElementProps);\r\n\r\n if (!context.isBetweenIModels || !targetElementProps.jsonProperties?.styles)\r\n return;\r\n\r\n const settings = targetElementProps.jsonProperties.styles;\r\n if (settings.subCategoryOvr) {\r\n const targetOverrides: DisplayStyleSubCategoryProps[] = [];\r\n for (const ovr of settings.subCategoryOvr) {\r\n ovr.subCategory;\r\n const targetSubCategoryId = context.findTargetElementId(Id64.fromJSON(ovr.subCategory));\r\n if (Id64.isValid(targetSubCategoryId))\r\n targetOverrides.push({ ...ovr, subCategory: targetSubCategoryId });\r\n }\r\n settings.subCategoryOvr = targetOverrides;\r\n }\r\n\r\n if (settings.excludedElements) {\r\n const excluded: Id64Array = \"string\" === typeof settings.excludedElements ? CompressedId64Set.decompressArray(settings.excludedElements) : settings.excludedElements;\r\n const excludedTargetElements: Id64Array = [];\r\n for (const excludedElement of excluded) {\r\n const remapped = context.findTargetElementId(excludedElement);\r\n if (Id64.isValid(remapped))\r\n excludedTargetElements.push(remapped);\r\n }\r\n\r\n if (0 === excludedTargetElements.length)\r\n delete settings.excludedElements;\r\n else\r\n settings.excludedElements = CompressedId64Set.compressIds(OrderedId64Iterable.sortArray(excludedTargetElements));\r\n }\r\n\r\n if (settings.renderTimeline) {\r\n const renderTimeline = context.findTargetElementId(settings.renderTimeline);\r\n if (Id64.isValid(renderTimeline))\r\n settings.renderTimeline = renderTimeline;\r\n else\r\n delete settings.renderTimeline;\r\n } else if (settings.scheduleScript) {\r\n const scheduleScript = RenderTimeline.remapScript(context, settings.scheduleScript);\r\n if (scheduleScript.length > 0)\r\n settings.scheduleScript = scheduleScript;\r\n else\r\n delete settings.scheduleScript;\r\n }\r\n }\r\n\r\n public loadScheduleScript(): RenderSchedule.ScriptReference | undefined {\r\n let script;\r\n let sourceId;\r\n if (this.settings.renderTimeline) {\r\n const timeline = this.iModel.elements.tryGetElement<RenderTimeline>(this.settings.renderTimeline);\r\n if (timeline) {\r\n script = RenderSchedule.Script.fromJSON(timeline.scriptProps);\r\n sourceId = timeline.id;\r\n }\r\n } else if (this.settings.scheduleScriptProps) {\r\n script = RenderSchedule.Script.fromJSON(this.settings.scheduleScriptProps);\r\n sourceId = this.id;\r\n }\r\n\r\n return undefined !== sourceId && undefined !== script ? new RenderSchedule.ScriptReference(sourceId, script) : undefined;\r\n }\r\n}\r\n\r\n/** A DisplayStyle for 2d views.\r\n * @public @preview\r\n */\r\nexport class DisplayStyle2d extends DisplayStyle {\r\n public static override get className(): string { return \"DisplayStyle2d\"; }\r\n private readonly _settings: DisplayStyleSettings;\r\n\r\n public get settings(): DisplayStyleSettings { return this._settings; }\r\n\r\n protected constructor(props: DisplayStyleProps, iModel: IModelDb) {\r\n super(props, iModel);\r\n this._settings = new DisplayStyleSettings(this.jsonProperties);\r\n }\r\n /** Create a DisplayStyle2d for use by a ViewDefinition.\r\n * @param iModelDb The iModel\r\n * @param definitionModelId The [[DefinitionModel]]\r\n * @param name The name/CodeValue of the DisplayStyle2d\r\n * @returns The newly constructed DisplayStyle2d element.\r\n * @throws [[IModelError]] if unable to create the element.\r\n */\r\n public static create(iModelDb: IModelDb, definitionModelId: Id64String, name: string): DisplayStyle2d {\r\n const displayStyleProps: DisplayStyleProps = {\r\n classFullName: this.classFullName,\r\n code: this.createCode(iModelDb, definitionModelId, name),\r\n model: definitionModelId,\r\n isPrivate: false,\r\n jsonProperties: {\r\n styles: {\r\n backgroundColor: 0,\r\n monochromeColor: ColorDef.white.toJSON(),\r\n viewflags: ViewFlags.defaults,\r\n },\r\n },\r\n };\r\n return new DisplayStyle2d(displayStyleProps, iModelDb);\r\n }\r\n /**\r\n * Insert a DisplayStyle2d for use by a ViewDefinition.\r\n * @param txn The EditTxn to use\r\n * @param definitionModelId Insert the new DisplayStyle2d into this DefinitionModel\r\n * @param name The name of the DisplayStyle2d\r\n * @returns The Id of the newly inserted DisplayStyle2d element.\r\n * @throws [[IModelError]] if unable to insert the element.\r\n * @beta\r\n */\r\n public static insert(txn: EditTxn, definitionModelId: Id64String, name: string): Id64String;\r\n /**\r\n * Insert a DisplayStyle2d for use by a ViewDefinition.\r\n * @deprecated in 5.9.0 - will not be removed until after 2026-08-04. Use DisplayStyle2d.insert(txn, ...) instead.\r\n */\r\n public static insert(iModelDb: IModelDb, definitionModelId: Id64String, name: string): Id64String;\r\n public static insert(txnOrDb: EditTxn | IModelDb, definitionModelId: Id64String, name: string): Id64String {\r\n const txn = txnOrDb instanceof EditTxn ? txnOrDb : txnOrDb[_implicitTxn];\r\n const displayStyle = this.create(txn.iModel, definitionModelId, name);\r\n return displayStyle.insert(txn);\r\n }\r\n}\r\n\r\n/** Describes initial settings for a new [[DisplayStyle3d]].\r\n * Most properties are inherited from [DisplayStyle3dSettingsProps]($common), but for backwards compatibility reasons, this interface is slightly awkward:\r\n * - It adds a `viewFlags` member that differs only in case and type from [DisplayStyleSettingsProps.viewflags]($common); and\r\n * - It extends the type of [DisplayStyleSettingsProps.backgroundColor]($common) to include [ColorDef]($common).\r\n * These idiosyncrasies will be addressed in a future version of core-backend.\r\n * @see [[DisplayStyle3d.create]].\r\n * @public @preview\r\n */\r\nexport interface DisplayStyleCreationOptions extends Omit<DisplayStyle3dSettingsProps, \"backgroundColor\" | \"scheduleScript\"> {\r\n /** If supplied, the [ViewFlags]($common) applied by the display style.\r\n * If undefined, [DisplayStyle3dSettingsProps.viewflags]($common) will be used if present (note the difference in case); otherwise, default-constructed [ViewFlags]($common) will be used.\r\n */\r\n viewFlags?: ViewFlags;\r\n backgroundColor?: ColorDef | number;\r\n}\r\n\r\n/** A DisplayStyle for 3d views.\r\n * See [how to create a DisplayStyle3d]($docs/learning/backend/CreateElements.md#DisplayStyle3d).\r\n * @public @preview\r\n */\r\nexport class DisplayStyle3d extends DisplayStyle {\r\n public static override get className(): string { return \"DisplayStyle3d\"; }\r\n private readonly _settings: DisplayStyle3dSettings;\r\n\r\n public get settings(): DisplayStyle3dSettings { return this._settings; }\r\n\r\n protected constructor(props: DisplayStyle3dProps, iModel: IModelDb) {\r\n super(props, iModel);\r\n this._settings = new DisplayStyle3dSettings(this.jsonProperties);\r\n }\r\n\r\n protected override collectReferenceIds(referenceIds: EntityReferenceSet): void {\r\n super.collectReferenceIds(referenceIds);\r\n for (const textureId of this.settings.environment.sky.textureIds)\r\n referenceIds.addElement(textureId);\r\n\r\n if (this.settings.planProjectionSettings)\r\n for (const planProjectionSetting of this.settings.planProjectionSettings)\r\n referenceIds.addElement(planProjectionSetting[0]);\r\n\r\n const groups = this.settings.contours.groups;\r\n for (const group of groups) {\r\n const subCategories = group.subCategories;\r\n for (const subCategoryId of subCategories) {\r\n referenceIds.addElement(subCategoryId);\r\n }\r\n }\r\n }\r\n\r\n /** @alpha */\r\n protected static override async onCloned(context: IModelElementCloneContext, sourceElementProps: DisplayStyle3dProps, targetElementProps: DisplayStyle3dProps): Promise<void> {\r\n await super.onCloned(context, sourceElementProps, targetElementProps);\r\n if (context.isBetweenIModels) {\r\n const convertTexture = (id: string) => Id64.isValidId64(id) ? context.findTargetElementId(id) : id;\r\n\r\n const skyBoxImageProps: SkyBoxImageProps | undefined = targetElementProps?.jsonProperties?.styles?.environment?.sky?.image;\r\n if (skyBoxImageProps?.texture && Id64.isValidId64(skyBoxImageProps.texture))\r\n skyBoxImageProps.texture = convertTexture(skyBoxImageProps.texture);\r\n\r\n if (skyBoxImageProps?.textures) {\r\n skyBoxImageProps.textures.front = convertTexture(skyBoxImageProps.textures.front);\r\n skyBoxImageProps.textures.back = convertTexture(skyBoxImageProps.textures.back);\r\n skyBoxImageProps.textures.left = convertTexture(skyBoxImageProps.textures.left);\r\n skyBoxImageProps.textures.right = convertTexture(skyBoxImageProps.textures.right);\r\n skyBoxImageProps.textures.top = convertTexture(skyBoxImageProps.textures.top);\r\n skyBoxImageProps.textures.bottom = convertTexture(skyBoxImageProps.textures.bottom);\r\n }\r\n\r\n if (targetElementProps?.jsonProperties?.styles?.planProjections) {\r\n const remappedPlanProjections: { [modelId: string]: PlanProjectionSettingsProps } = {};\r\n for (const entry of Object.entries(targetElementProps.jsonProperties.styles.planProjections)) {\r\n const remappedModelId: Id64String = context.findTargetElementId(entry[0]);\r\n if (Id64.isValidId64(remappedModelId)) {\r\n remappedPlanProjections[remappedModelId] = entry[1];\r\n }\r\n }\r\n targetElementProps.jsonProperties.styles.planProjections = remappedPlanProjections;\r\n }\r\n\r\n const groups = targetElementProps?.jsonProperties?.styles?.contours?.groups;\r\n if (groups) {\r\n for (const group of groups) {\r\n if (group.subCategories) {\r\n const subCategories = CompressedId64Set.decompressArray(group.subCategories);\r\n const remappedSubCategories: Id64String[] = [];\r\n for (const subCategoryId of subCategories) {\r\n const remappedSubCategoryId: Id64String = context.findTargetElementId(subCategoryId);\r\n if (Id64.isValidId64(remappedSubCategoryId)) {\r\n remappedSubCategories.push(remappedSubCategoryId);\r\n }\r\n }\r\n group.subCategories = CompressedId64Set.sortAndCompress(remappedSubCategories);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n /** Create a DisplayStyle3d for use by a ViewDefinition.\r\n * @param iModelDb The iModel\r\n * @param definitionModelId The [[DefinitionModel]]\r\n * @param name The name/CodeValue of the DisplayStyle3d\r\n * @returns The newly constructed DisplayStyle3d element.\r\n * @throws [[IModelError]] if unable to create the element.\r\n */\r\n public static create(iModelDb: IModelDb, definitionModelId: Id64String, name: string, options?: DisplayStyleCreationOptions): DisplayStyle3d {\r\n options = options ?? {};\r\n let viewflags = options.viewFlags?.toJSON();\r\n if (!viewflags)\r\n viewflags = options.viewflags ?? new ViewFlags().toJSON();\r\n\r\n const backgroundColor = options.backgroundColor instanceof ColorDef ? options.backgroundColor.toJSON() : options.backgroundColor;\r\n\r\n const settings: DisplayStyle3dSettingsProps = {\r\n ...options,\r\n viewflags,\r\n backgroundColor,\r\n };\r\n\r\n const displayStyleProps: DisplayStyle3dProps = {\r\n classFullName: this.classFullName,\r\n code: this.createCode(iModelDb, definitionModelId, name),\r\n model: definitionModelId,\r\n jsonProperties: { styles: settings },\r\n isPrivate: false,\r\n\r\n };\r\n\r\n return new DisplayStyle3d(displayStyleProps, iModelDb);\r\n }\r\n /**\r\n * Insert a DisplayStyle3d for use by a ViewDefinition.\r\n * @param txn The EditTxn to use\r\n * @param definitionModelId Insert the new DisplayStyle3d into this [[DefinitionModel]]\r\n * @param name The name of the DisplayStyle3d\r\n * @param options Creation options\r\n * @returns The Id of the newly inserted DisplayStyle3d element.\r\n * @throws [[IModelError]] if unable to insert the element.\r\n * @beta\r\n */\r\n public static insert(txn: EditTxn, definitionModelId: Id64String, name: string, options?: DisplayStyleCreationOptions): Id64String;\r\n /**\r\n * Insert a DisplayStyle3d for use by a ViewDefinition.\r\n * @deprecated in 5.9.0 - will not be removed until after 2026-08-04. Use DisplayStyle3d.insert(txn, ...) instead.\r\n */\r\n public static insert(iModelDb: IModelDb, definitionModelId: Id64String, name: string, options?: DisplayStyleCreationOptions): Id64String;\r\n public static insert(txnOrDb: EditTxn | IModelDb, definitionModelId: Id64String, name: string, options?: DisplayStyleCreationOptions): Id64String {\r\n const txn = txnOrDb instanceof EditTxn ? txnOrDb : txnOrDb[_implicitTxn];\r\n const displayStyle = this.create(txn.iModel, definitionModelId, name, options);\r\n return displayStyle.insert(txn);\r\n }\r\n}\r\n\r\n\r\n\r\n"]}
@@ -353,7 +353,7 @@ export declare class Element extends Entity {
353
353
  * * none of the element's outputs have been processed.
354
354
  * @see [[ElementDrivesElement]] for more on element dependency graphs.
355
355
  * @beta
356
- * @deprecated in 5.1.9 - will not be removed until after 2026-08-04. Use onBeforeOutputsHandledArg instead.
356
+ * @deprecated in 5.9.0 - will not be removed until after 2026-08-04. Use onBeforeOutputsHandledArg instead.
357
357
  */
358
358
  protected static onBeforeOutputsHandled(_id: Id64String, _iModel: IModelDb): void;
359
359
  /** Called on an element in a graph after all of its inputs have been processed and before its outputs are processed.
@@ -376,7 +376,7 @@ export declare class Element extends Entity {
376
376
  * This method is not called if none of the element's inputs were changed.
377
377
  * @see [[ElementDrivesElement]] for more on element dependency graphs.
378
378
  * @beta
379
- * @deprecated in 5.1.9 - will not be removed until after 2026-08-04. Use onAllInputsHandledArg instead.
379
+ * @deprecated in 5.9.0 - will not be removed until after 2026-08-04. Use onAllInputsHandledArg instead.
380
380
  */
381
381
  protected static onAllInputsHandled(_id: Id64String, _iModel: IModelDb): void;
382
382
  toJSON(): ElementProps;
@@ -436,7 +436,7 @@ export declare class Element extends Entity {
436
436
  insert(txn: EditTxn): Id64String;
437
437
  /**
438
438
  * Insert this Element into the iModel.
439
- * @deprecated in 5.1.9 - will not be removed until after 2026-08-04. Use Element.insert(txn) instead.
439
+ * @deprecated in 5.9.0 - will not be removed until after 2026-08-04. Use Element.insert(txn) instead.
440
440
  */
441
441
  insert(): Id64String;
442
442
  /**
@@ -446,7 +446,7 @@ export declare class Element extends Entity {
446
446
  update(txn: EditTxn): void;
447
447
  /**
448
448
  * Update this Element in the iModel.
449
- * @deprecated in 5.1.9 - will not be removed until after 2026-08-04. Use Element.update(txn) instead.
449
+ * @deprecated in 5.9.0 - will not be removed until after 2026-08-04. Use Element.update(txn) instead.
450
450
  */
451
451
  update(): void;
452
452
  /**
@@ -456,7 +456,7 @@ export declare class Element extends Entity {
456
456
  delete(txn: EditTxn): void;
457
457
  /**
458
458
  * Delete this Element from the iModel.
459
- * @deprecated in 5.1.9 - will not be removed until after 2026-08-04. Use Element.delete(txn) instead.
459
+ * @deprecated in 5.9.0 - will not be removed until after 2026-08-04. Use Element.delete(txn) instead.
460
460
  */
461
461
  delete(): void;
462
462
  }
@@ -698,7 +698,7 @@ export declare class Subject extends InformationReferenceElement {
698
698
  */
699
699
  static insert(txn: EditTxn, parentSubjectId: Id64String, name: string, description?: string): Id64String;
700
700
  /** Insert a Subject
701
- * @deprecated in 5.1.9 - will not be removed until after 2026-08-04. Use Subject.insert(txn, ...) instead.
701
+ * @deprecated in 5.9.0 - will not be removed until after 2026-08-04. Use Subject.insert(txn, ...) instead.
702
702
  */
703
703
  static insert(iModelDb: IModelDb, parentSubjectId: Id64String, name: string, description?: string): Id64String;
704
704
  }
@@ -748,7 +748,7 @@ export declare class Drawing extends Document {
748
748
  * @beta
749
749
  */
750
750
  static insert(txn: EditTxn, documentListModelId: Id64String, name: string, scaleFactor?: number): Id64String;
751
- /** @deprecated in 5.1.9 - will not be removed until after 2026-08-04. Use Drawing.insert(txn, ...) instead. */
751
+ /** @deprecated in 5.9.0 - will not be removed until after 2026-08-04. Use Drawing.insert(txn, ...) instead. */
752
752
  static insert(iModelDb: IModelDb, documentListModelId: Id64String, name: string, scaleFactor?: number): Id64String;
753
753
  }
754
754
  /** A document that represents a section drawing, that is, a graphical documentation derived from a planar
@@ -885,7 +885,7 @@ export declare class DefinitionContainer extends DefinitionSet {
885
885
  * @beta
886
886
  */
887
887
  static insert(txn: EditTxn, definitionModelId: Id64String, code: Code, isPrivate?: boolean): Id64String;
888
- /** @deprecated in 5.1.9 - will not be removed until after 2026-08-04. Use DefinitionContainer.insert(txn, ...) instead. */
888
+ /** @deprecated in 5.9.0 - will not be removed until after 2026-08-04. Use DefinitionContainer.insert(txn, ...) instead. */
889
889
  static insert(iModelDb: IModelDb, definitionModelId: Id64String, code: Code, isPrivate?: boolean): Id64String;
890
890
  }
891
891
  /** A non-exclusive set of DefinitionElements grouped using the DefinitionGroupGroupsDefinitions relationship.
@@ -980,7 +980,7 @@ export declare class TemplateRecipe3d extends RecipeDefinitionElement {
980
980
  * @throws [[IModelError]] if there is a problem inserting the TemplateRecipe3d or its sub-model.
981
981
  */
982
982
  static insert(txn: EditTxn, definitionModelId: Id64String, name: string, isPrivate?: boolean): Id64String;
983
- /** @deprecated in 5.1.9 - will not be removed until after 2027-05-04. Use TemplateRecipe3d.insert(txn, ...) instead. */
983
+ /** @deprecated in 5.9.0 - will not be removed until after 2027-05-04. Use TemplateRecipe3d.insert(txn, ...) instead. */
984
984
  static insert(iModelDb: IModelDb, definitionModelId: Id64String, name: string, isPrivate?: boolean): Id64String;
985
985
  }
986
986
  /** Defines a set of properties (the *type*) that can be associated with a 2D Graphical Element.
@@ -1024,7 +1024,7 @@ export declare class TemplateRecipe2d extends RecipeDefinitionElement {
1024
1024
  * @throws [[IModelError]] if there is a problem inserting the TemplateRecipe2d or its sub-model.
1025
1025
  */
1026
1026
  static insert(txn: EditTxn, definitionModelId: Id64String, name: string, isPrivate?: boolean): Id64String;
1027
- /** @deprecated in 5.1.9 - will not be removed until after 2027-05-04. Use TemplateRecipe2d.insert(txn, ...) instead. */
1027
+ /** @deprecated in 5.9.0 - will not be removed until after 2027-05-04. Use TemplateRecipe2d.insert(txn, ...) instead. */
1028
1028
  static insert(iModelDb: IModelDb, definitionModelId: Id64String, name: string, isPrivate?: boolean): Id64String;
1029
1029
  }
1030
1030
  /** An abstract base class for elements that establishes a particular modeling perspective for its parent Subject.
@@ -337,7 +337,7 @@ export class Element extends Entity {
337
337
  * * none of the element's outputs have been processed.
338
338
  * @see [[ElementDrivesElement]] for more on element dependency graphs.
339
339
  * @beta
340
- * @deprecated in 5.1.9 - will not be removed until after 2026-08-04. Use onBeforeOutputsHandledArg instead.
340
+ * @deprecated in 5.9.0 - will not be removed until after 2026-08-04. Use onBeforeOutputsHandledArg instead.
341
341
  */
342
342
  static onBeforeOutputsHandled(_id, _iModel) { }
343
343
  /** Called on an element in a graph after all of its inputs have been processed and before its outputs are processed.
@@ -363,7 +363,7 @@ export class Element extends Entity {
363
363
  * This method is not called if none of the element's inputs were changed.
364
364
  * @see [[ElementDrivesElement]] for more on element dependency graphs.
365
365
  * @beta
366
- * @deprecated in 5.1.9 - will not be removed until after 2026-08-04. Use onAllInputsHandledArg instead.
366
+ * @deprecated in 5.9.0 - will not be removed until after 2026-08-04. Use onAllInputsHandledArg instead.
367
367
  */
368
368
  static onAllInputsHandled(_id, _iModel) { }
369
369
  toJSON() {