@itwin/core-backend 3.3.0-dev.9 → 3.4.0-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +26 -1
- package/lib/cjs/BackendHubAccess.d.ts +32 -15
- package/lib/cjs/BackendHubAccess.d.ts.map +1 -1
- package/lib/cjs/BackendHubAccess.js.map +1 -1
- package/lib/cjs/BisCoreSchema.d.ts +1 -1
- package/lib/cjs/BisCoreSchema.js +1 -1
- package/lib/cjs/BisCoreSchema.js.map +1 -1
- package/lib/cjs/BriefcaseManager.d.ts +10 -11
- package/lib/cjs/BriefcaseManager.d.ts.map +1 -1
- package/lib/cjs/BriefcaseManager.js +10 -11
- package/lib/cjs/BriefcaseManager.js.map +1 -1
- package/lib/cjs/CheckpointManager.d.ts +28 -6
- package/lib/cjs/CheckpointManager.d.ts.map +1 -1
- package/lib/cjs/CheckpointManager.js +117 -22
- package/lib/cjs/CheckpointManager.js.map +1 -1
- package/lib/cjs/ClassRegistry.js +6 -6
- package/lib/cjs/ClassRegistry.js.map +1 -1
- package/lib/cjs/CodeSpecs.d.ts +1 -1
- package/lib/cjs/CodeSpecs.js +1 -1
- package/lib/cjs/CodeSpecs.js.map +1 -1
- package/lib/cjs/DisplayStyle.d.ts +2 -2
- package/lib/cjs/DisplayStyle.d.ts.map +1 -1
- package/lib/cjs/DisplayStyle.js +14 -17
- package/lib/cjs/DisplayStyle.js.map +1 -1
- package/lib/cjs/Element.d.ts +36 -25
- package/lib/cjs/Element.d.ts.map +1 -1
- package/lib/cjs/Element.js +54 -39
- package/lib/cjs/Element.js.map +1 -1
- package/lib/cjs/GeoCoordConfig.d.ts +14 -0
- package/lib/cjs/GeoCoordConfig.d.ts.map +1 -0
- package/lib/cjs/GeoCoordConfig.js +74 -0
- package/lib/cjs/GeoCoordConfig.js.map +1 -0
- package/lib/cjs/HubMock.d.ts +94 -0
- package/lib/cjs/HubMock.d.ts.map +1 -0
- package/lib/cjs/HubMock.js +191 -0
- package/lib/cjs/HubMock.js.map +1 -0
- package/lib/cjs/IModelDb.d.ts +26 -15
- package/lib/cjs/IModelDb.d.ts.map +1 -1
- package/lib/cjs/IModelDb.js +44 -35
- package/lib/cjs/IModelDb.js.map +1 -1
- package/lib/cjs/IModelHost.d.ts +75 -33
- package/lib/cjs/IModelHost.d.ts.map +1 -1
- package/lib/cjs/IModelHost.js +66 -80
- package/lib/cjs/IModelHost.js.map +1 -1
- package/lib/cjs/IpcHost.d.ts +2 -2
- package/lib/cjs/IpcHost.d.ts.map +1 -1
- package/lib/cjs/IpcHost.js +1 -1
- package/lib/cjs/IpcHost.js.map +1 -1
- package/lib/cjs/LocalHub.d.ts +163 -0
- package/lib/cjs/LocalHub.d.ts.map +1 -0
- package/lib/cjs/LocalHub.js +588 -0
- package/lib/cjs/LocalHub.js.map +1 -0
- package/lib/cjs/LocalhostIpcHost.d.ts +2 -2
- package/lib/cjs/LocalhostIpcHost.d.ts.map +1 -1
- package/lib/cjs/LocalhostIpcHost.js +16 -0
- package/lib/cjs/LocalhostIpcHost.js.map +1 -1
- package/lib/cjs/RpcBackend.d.ts +3 -1
- package/lib/cjs/RpcBackend.d.ts.map +1 -1
- package/lib/cjs/RpcBackend.js +27 -3
- package/lib/cjs/RpcBackend.js.map +1 -1
- package/lib/cjs/SQLiteDb.d.ts +138 -30
- package/lib/cjs/SQLiteDb.d.ts.map +1 -1
- package/lib/cjs/SQLiteDb.js +110 -38
- package/lib/cjs/SQLiteDb.js.map +1 -1
- package/lib/cjs/SqliteStatement.d.ts +8 -0
- package/lib/cjs/SqliteStatement.d.ts.map +1 -1
- package/lib/cjs/SqliteStatement.js +10 -0
- package/lib/cjs/SqliteStatement.js.map +1 -1
- package/lib/cjs/ViewDefinition.d.ts +6 -6
- package/lib/cjs/ViewDefinition.d.ts.map +1 -1
- package/lib/cjs/ViewDefinition.js +20 -20
- package/lib/cjs/ViewDefinition.js.map +1 -1
- package/lib/cjs/assets/Settings/Schemas/Cloud.Schema.json +68 -0
- package/lib/cjs/assets/Settings/Schemas/Gcs.schema.json +22 -0
- package/lib/cjs/assets/Settings/Schemas/Workspace.Schema.json +53 -0
- package/lib/cjs/assets/Settings/backend.setting.json5 +139 -0
- package/lib/cjs/core-backend.d.ts +9 -7
- package/lib/cjs/core-backend.d.ts.map +1 -1
- package/lib/cjs/core-backend.js +9 -7
- package/lib/cjs/core-backend.js.map +1 -1
- package/lib/cjs/rpc-impl/RpcBriefcaseUtility.d.ts +1 -1
- package/lib/cjs/rpc-impl/RpcBriefcaseUtility.d.ts.map +1 -1
- package/lib/cjs/rpc-impl/RpcBriefcaseUtility.js +8 -12
- package/lib/cjs/rpc-impl/RpcBriefcaseUtility.js.map +1 -1
- package/lib/cjs/workspace/Settings.d.ts +8 -3
- package/lib/cjs/workspace/Settings.d.ts.map +1 -1
- package/lib/cjs/workspace/Settings.js +9 -0
- package/lib/cjs/workspace/Settings.js.map +1 -1
- package/lib/cjs/workspace/SettingsSchemas.d.ts +76 -0
- package/lib/cjs/workspace/SettingsSchemas.d.ts.map +1 -0
- package/lib/cjs/workspace/SettingsSchemas.js +192 -0
- package/lib/cjs/workspace/SettingsSchemas.js.map +1 -0
- package/lib/cjs/workspace/Workspace.d.ts +240 -144
- package/lib/cjs/workspace/Workspace.d.ts.map +1 -1
- package/lib/cjs/workspace/Workspace.js +258 -95
- package/lib/cjs/workspace/Workspace.js.map +1 -1
- package/package.json +26 -21
- package/lib/cjs/assets/Settings.schema.json +0 -25
- package/lib/cjs/workspace/SettingsSpecRegistry.d.ts +0 -68
- package/lib/cjs/workspace/SettingsSpecRegistry.d.ts.map +0 -1
- package/lib/cjs/workspace/SettingsSpecRegistry.js +0 -122
- package/lib/cjs/workspace/SettingsSpecRegistry.js.map +0 -1
package/lib/cjs/DisplayStyle.js
CHANGED
|
@@ -33,20 +33,20 @@ class DisplayStyle extends Element_1.DefinitionElement {
|
|
|
33
33
|
return new core_common_1.Code({ spec: codeSpec.id, scope: scopeModelId, value: codeValue });
|
|
34
34
|
}
|
|
35
35
|
/** @alpha */
|
|
36
|
-
|
|
37
|
-
super.
|
|
36
|
+
collectReferenceIds(referenceIds) {
|
|
37
|
+
super.collectReferenceIds(referenceIds);
|
|
38
38
|
for (const [id] of this.settings.subCategoryOverrides) {
|
|
39
|
-
|
|
39
|
+
referenceIds.add(id);
|
|
40
40
|
}
|
|
41
41
|
for (const excludedElementId of this.settings.excludedElementIds)
|
|
42
|
-
|
|
42
|
+
referenceIds.add(excludedElementId);
|
|
43
43
|
if (this.settings.renderTimeline) {
|
|
44
|
-
|
|
44
|
+
referenceIds.add(this.settings.renderTimeline);
|
|
45
45
|
}
|
|
46
46
|
else {
|
|
47
47
|
const script = this.loadScheduleScript();
|
|
48
48
|
if (script)
|
|
49
|
-
script.script.discloseIds(
|
|
49
|
+
script.script.discloseIds(referenceIds);
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
/** @alpha */
|
|
@@ -80,7 +80,6 @@ class DisplayStyle extends Element_1.DefinitionElement {
|
|
|
80
80
|
else
|
|
81
81
|
settings.excludedElements = core_bentley_1.CompressedId64Set.compressIds(core_bentley_1.OrderedId64Iterable.sortArray(excluded));
|
|
82
82
|
}
|
|
83
|
-
// eslint-disable-next-line deprecation/deprecation
|
|
84
83
|
if (settings.renderTimeline) {
|
|
85
84
|
const renderTimeline = context.findTargetElementId(settings.renderTimeline);
|
|
86
85
|
if (core_bentley_1.Id64.isValid(renderTimeline))
|
|
@@ -88,13 +87,12 @@ class DisplayStyle extends Element_1.DefinitionElement {
|
|
|
88
87
|
else
|
|
89
88
|
delete settings.renderTimeline;
|
|
90
89
|
}
|
|
91
|
-
else if (settings.scheduleScript) {
|
|
92
|
-
// eslint-disable-next-line deprecation/deprecation
|
|
90
|
+
else if (settings.scheduleScript) {
|
|
93
91
|
const scheduleScript = Element_1.RenderTimeline.remapScript(context, settings.scheduleScript);
|
|
94
92
|
if (scheduleScript.length > 0)
|
|
95
|
-
settings.scheduleScript = scheduleScript;
|
|
93
|
+
settings.scheduleScript = scheduleScript;
|
|
96
94
|
else
|
|
97
|
-
delete settings.scheduleScript;
|
|
95
|
+
delete settings.scheduleScript;
|
|
98
96
|
}
|
|
99
97
|
}
|
|
100
98
|
loadScheduleScript() {
|
|
@@ -107,8 +105,7 @@ class DisplayStyle extends Element_1.DefinitionElement {
|
|
|
107
105
|
sourceId = timeline.id;
|
|
108
106
|
}
|
|
109
107
|
}
|
|
110
|
-
else if (this.settings.scheduleScriptProps) {
|
|
111
|
-
// eslint-disable-next-line deprecation/deprecation
|
|
108
|
+
else if (this.settings.scheduleScriptProps) {
|
|
112
109
|
script = core_common_1.RenderSchedule.Script.fromJSON(this.settings.scheduleScriptProps);
|
|
113
110
|
sourceId = this.id;
|
|
114
111
|
}
|
|
@@ -178,13 +175,13 @@ class DisplayStyle3d extends DisplayStyle {
|
|
|
178
175
|
static get className() { return "DisplayStyle3d"; }
|
|
179
176
|
get settings() { return this._settings; }
|
|
180
177
|
/** @alpha */
|
|
181
|
-
|
|
182
|
-
super.
|
|
178
|
+
collectReferenceIds(referenceIds) {
|
|
179
|
+
super.collectReferenceIds(referenceIds);
|
|
183
180
|
for (const textureId of this.settings.environment.sky.textureIds)
|
|
184
|
-
|
|
181
|
+
referenceIds.add(textureId);
|
|
185
182
|
if (this.settings.planProjectionSettings)
|
|
186
183
|
for (const planProjectionSetting of this.settings.planProjectionSettings)
|
|
187
|
-
|
|
184
|
+
referenceIds.add(planProjectionSetting[0]);
|
|
188
185
|
}
|
|
189
186
|
/** @alpha */
|
|
190
187
|
static onCloned(context, sourceElementProps, targetElementProps) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DisplayStyle.js","sourceRoot":"","sources":["../../src/DisplayStyle.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,sDAAmH;AACnH,oDAG4B;AAC5B,uCAA8D;AAI9D;;;;GAIG;AACH,MAAsB,YAAa,SAA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,eAAe,GAAG,OAAO,CAAC,eAAe,YAAY,sBAAQ,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;IACD;;;;;;;OAOG;IACI,MAAM,CAAC,MAAM,CAAC,QAAkB,EAAE,iBAA6B,EAAE,IAAY,EAAE,OAAqC;QACzH,MAAM,YAAY,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,iBAAiB,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAC7E,OAAO,QAAQ,CAAC,QAAQ,CAAC,aAAa,CAAC,YAAY,CAAC,MAAM,EAAE,CAAC,CAAC;IAChE,CAAC;CACF;AApGD,wCAoGC","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, Id64Set, Id64String, OrderedId64Iterable } from \"@itwin/core-bentley\";\r\nimport {\r\n BisCodeSpec, Code, CodeScopeProps, CodeSpec, ColorDef, DisplayStyle3dProps, DisplayStyle3dSettings, DisplayStyle3dSettingsProps,\r\n DisplayStyleProps, DisplayStyleSettings, PlanProjectionSettingsProps, RenderSchedule, SkyBoxImageProps, ViewFlags,\r\n} from \"@itwin/core-common\";\r\nimport { DefinitionElement, RenderTimeline } from \"./Element\";\r\nimport { IModelCloneContext } from \"./IModelCloneContext\";\r\nimport { IModelDb } from \"./IModelDb\";\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\r\n */\r\nexport abstract class DisplayStyle extends DefinitionElement {\r\n /** @internal */\r\n public static override get className(): string { return \"DisplayStyle\"; }\r\n public abstract get settings(): DisplayStyleSettings;\r\n\r\n /** @internal */\r\n protected constructor(props: DisplayStyleProps, iModel: IModelDb) {\r\n super(props, iModel);\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 /** @alpha */\r\n protected override collectPredecessorIds(predecessorIds: Id64Set): void {\r\n super.collectPredecessorIds(predecessorIds);\r\n for (const [id] of this.settings.subCategoryOverrides) {\r\n predecessorIds.add(id);\r\n }\r\n\r\n for (const excludedElementId of this.settings.excludedElementIds)\r\n predecessorIds.add(excludedElementId);\r\n\r\n if (this.settings.renderTimeline) {\r\n predecessorIds.add(this.settings.renderTimeline);\r\n } else {\r\n const script = this.loadScheduleScript();\r\n if (script)\r\n script.script.discloseIds(predecessorIds);\r\n }\r\n }\r\n\r\n /** @alpha */\r\n protected static override onCloned(context: IModelCloneContext, sourceElementProps: DisplayStyleProps, targetElementProps: DisplayStyleProps): void {\r\n 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 for (let i = 0; i < settings.subCategoryOvr.length; /* */) {\r\n const ovr = settings.subCategoryOvr[i];\r\n ovr.subCategory = context.findTargetElementId(Id64.fromJSON(ovr.subCategory));\r\n if (Id64.invalid === ovr.subCategory)\r\n settings.subCategoryOvr.splice(i, 1);\r\n else\r\n i++;\r\n }\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 for (let i = 0; i < excluded.length; /* */) {\r\n const remapped = context.findTargetElementId(excluded[i]);\r\n if (Id64.invalid === remapped)\r\n excluded.splice(i, 1);\r\n else\r\n excluded[i++] = remapped;\r\n }\r\n\r\n if (0 === excluded.length)\r\n delete settings.excludedElements;\r\n else\r\n settings.excludedElements = CompressedId64Set.compressIds(OrderedId64Iterable.sortArray(excluded));\r\n }\r\n\r\n // eslint-disable-next-line deprecation/deprecation\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) { // eslint-disable-line deprecation/deprecation\r\n // eslint-disable-next-line deprecation/deprecation\r\n const scheduleScript = RenderTimeline.remapScript(context, settings.scheduleScript);\r\n if (scheduleScript.length > 0)\r\n settings.scheduleScript = scheduleScript; // eslint-disable-line deprecation/deprecation\r\n else\r\n delete settings.scheduleScript; // eslint-disable-line deprecation/deprecation\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) { // eslint-disable-line deprecation/deprecation\r\n // eslint-disable-next-line deprecation/deprecation\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\r\n */\r\nexport class DisplayStyle2d extends DisplayStyle {\r\n /** @internal */\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 /** @internal */\r\n public 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 /** Insert a DisplayStyle2d for use by a ViewDefinition.\r\n * @param iModelDb Insert into this iModel\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 */\r\n public static insert(iModelDb: IModelDb, definitionModelId: Id64String, name: string): Id64String {\r\n const displayStyle = this.create(iModelDb, definitionModelId, name);\r\n return iModelDb.elements.insertElement(displayStyle.toJSON());\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\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\r\n */\r\nexport class DisplayStyle3d extends DisplayStyle {\r\n /** @internal */\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 /** @internal */\r\n public constructor(props: DisplayStyle3dProps, iModel: IModelDb) {\r\n super(props, iModel);\r\n this._settings = new DisplayStyle3dSettings(this.jsonProperties);\r\n }\r\n\r\n /** @alpha */\r\n protected override collectPredecessorIds(predecessorIds: Id64Set): void {\r\n super.collectPredecessorIds(predecessorIds);\r\n for (const textureId of this.settings.environment.sky.textureIds)\r\n predecessorIds.add(textureId);\r\n\r\n if (this.settings.planProjectionSettings)\r\n for (const planProjectionSetting of this.settings.planProjectionSettings)\r\n predecessorIds.add(planProjectionSetting[0]);\r\n }\r\n\r\n /** @alpha */\r\n protected static override onCloned(context: IModelCloneContext, sourceElementProps: DisplayStyle3dProps, targetElementProps: DisplayStyle3dProps): void {\r\n 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 }\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 iModelDb Insert into this iModel\r\n * @param definitionModelId Insert the new DisplayStyle3d into this [[DefinitionModel]]\r\n * @param name The name of the DisplayStyle3d\r\n * @returns The Id of the newly inserted DisplayStyle3d element.\r\n * @throws [[IModelError]] if unable to insert the element.\r\n */\r\n public static insert(iModelDb: IModelDb, definitionModelId: Id64String, name: string, options?: DisplayStyleCreationOptions): Id64String {\r\n const displayStyle = this.create(iModelDb, definitionModelId, name, options);\r\n return iModelDb.elements.insertElement(displayStyle.toJSON());\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;;;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,CAAC,eAAe,YAAY,sBAAQ,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;IACD;;;;;;;OAOG;IACI,MAAM,CAAC,MAAM,CAAC,QAAkB,EAAE,iBAA6B,EAAE,IAAY,EAAE,OAAqC;QACzH,MAAM,YAAY,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,iBAAiB,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAC7E,OAAO,QAAQ,CAAC,QAAQ,CAAC,aAAa,CAAC,YAAY,CAAC,MAAM,EAAE,CAAC,CAAC;IAChE,CAAC;CACF;AApGD,wCAoGC","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, Id64Set, Id64String, OrderedId64Iterable } from \"@itwin/core-bentley\";\r\nimport {\r\n BisCodeSpec, Code, CodeScopeProps, CodeSpec, ColorDef, DisplayStyle3dProps, DisplayStyle3dSettings, DisplayStyle3dSettingsProps,\r\n DisplayStyleProps, DisplayStyleSettings, PlanProjectionSettingsProps, RenderSchedule, SkyBoxImageProps, ViewFlags,\r\n} from \"@itwin/core-common\";\r\nimport { DefinitionElement, RenderTimeline } from \"./Element\";\r\nimport { IModelCloneContext } from \"./IModelCloneContext\";\r\nimport { IModelDb } from \"./IModelDb\";\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\r\n */\r\nexport abstract class DisplayStyle extends DefinitionElement {\r\n /** @internal */\r\n public static override get className(): string { return \"DisplayStyle\"; }\r\n public abstract get settings(): DisplayStyleSettings;\r\n\r\n /** @internal */\r\n protected constructor(props: DisplayStyleProps, iModel: IModelDb) {\r\n super(props, iModel);\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 /** @alpha */\r\n protected override collectReferenceIds(referenceIds: Id64Set): void {\r\n super.collectReferenceIds(referenceIds);\r\n for (const [id] of this.settings.subCategoryOverrides) {\r\n referenceIds.add(id);\r\n }\r\n\r\n for (const excludedElementId of this.settings.excludedElementIds)\r\n referenceIds.add(excludedElementId);\r\n\r\n if (this.settings.renderTimeline) {\r\n referenceIds.add(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 onCloned(context: IModelCloneContext, sourceElementProps: DisplayStyleProps, targetElementProps: DisplayStyleProps): void {\r\n 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 for (let i = 0; i < settings.subCategoryOvr.length; /* */) {\r\n const ovr = settings.subCategoryOvr[i];\r\n ovr.subCategory = context.findTargetElementId(Id64.fromJSON(ovr.subCategory));\r\n if (Id64.invalid === ovr.subCategory)\r\n settings.subCategoryOvr.splice(i, 1);\r\n else\r\n i++;\r\n }\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 for (let i = 0; i < excluded.length; /* */) {\r\n const remapped = context.findTargetElementId(excluded[i]);\r\n if (Id64.invalid === remapped)\r\n excluded.splice(i, 1);\r\n else\r\n excluded[i++] = remapped;\r\n }\r\n\r\n if (0 === excluded.length)\r\n delete settings.excludedElements;\r\n else\r\n settings.excludedElements = CompressedId64Set.compressIds(OrderedId64Iterable.sortArray(excluded));\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\r\n */\r\nexport class DisplayStyle2d extends DisplayStyle {\r\n /** @internal */\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 /** @internal */\r\n public 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 /** Insert a DisplayStyle2d for use by a ViewDefinition.\r\n * @param iModelDb Insert into this iModel\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 */\r\n public static insert(iModelDb: IModelDb, definitionModelId: Id64String, name: string): Id64String {\r\n const displayStyle = this.create(iModelDb, definitionModelId, name);\r\n return iModelDb.elements.insertElement(displayStyle.toJSON());\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\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\r\n */\r\nexport class DisplayStyle3d extends DisplayStyle {\r\n /** @internal */\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 /** @internal */\r\n public constructor(props: DisplayStyle3dProps, iModel: IModelDb) {\r\n super(props, iModel);\r\n this._settings = new DisplayStyle3dSettings(this.jsonProperties);\r\n }\r\n\r\n /** @alpha */\r\n protected override collectReferenceIds(referenceIds: Id64Set): void {\r\n super.collectReferenceIds(referenceIds);\r\n for (const textureId of this.settings.environment.sky.textureIds)\r\n referenceIds.add(textureId);\r\n\r\n if (this.settings.planProjectionSettings)\r\n for (const planProjectionSetting of this.settings.planProjectionSettings)\r\n referenceIds.add(planProjectionSetting[0]);\r\n }\r\n\r\n /** @alpha */\r\n protected static override onCloned(context: IModelCloneContext, sourceElementProps: DisplayStyle3dProps, targetElementProps: DisplayStyle3dProps): void {\r\n 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 }\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 iModelDb Insert into this iModel\r\n * @param definitionModelId Insert the new DisplayStyle3d into this [[DefinitionModel]]\r\n * @param name The name of the DisplayStyle3d\r\n * @returns The Id of the newly inserted DisplayStyle3d element.\r\n * @throws [[IModelError]] if unable to insert the element.\r\n */\r\n public static insert(iModelDb: IModelDb, definitionModelId: Id64String, name: string, options?: DisplayStyleCreationOptions): Id64String {\r\n const displayStyle = this.create(iModelDb, definitionModelId, name, options);\r\n return iModelDb.elements.insertElement(displayStyle.toJSON());\r\n }\r\n}\r\n"]}
|
package/lib/cjs/Element.d.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* @module Elements
|
|
3
3
|
*/
|
|
4
4
|
import { GuidString, Id64Set, Id64String } from "@itwin/core-bentley";
|
|
5
|
-
import { ClipVector, Transform } from "@itwin/core-geometry";
|
|
6
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
7
|
import { Entity } from "./Entity";
|
|
8
8
|
import { IModelCloneContext } from "./IModelCloneContext";
|
|
9
9
|
import { IModelDb } from "./IModelDb";
|
|
@@ -76,7 +76,7 @@ export interface OnSubModelIdArg extends OnElementArg {
|
|
|
76
76
|
* uniqueness of id, code, and federationGuid.
|
|
77
77
|
*
|
|
78
78
|
* See:
|
|
79
|
-
* * [Element Fundamentals]($docs/bis/
|
|
79
|
+
* * [Element Fundamentals]($docs/bis/guide/fundamentals/element-fundamentals.md)
|
|
80
80
|
* * [Working with schemas and elements in TypeScript]($docs/learning/backend/SchemasAndElementsInTypeScript.md)
|
|
81
81
|
* * [Creating elements]($docs/learning/backend/CreateElements.md)
|
|
82
82
|
* @public
|
|
@@ -86,17 +86,17 @@ export declare class Element extends Entity {
|
|
|
86
86
|
static get className(): string;
|
|
87
87
|
/** @internal */
|
|
88
88
|
static get protectedOperations(): string[];
|
|
89
|
-
/** The ModelId of the [Model]($docs/bis/
|
|
89
|
+
/** The ModelId of the [Model]($docs/bis/guide/fundamentals/model-fundamentals.md) containing this element */
|
|
90
90
|
readonly model: Id64String;
|
|
91
|
-
/** The [Code]($docs/bis/
|
|
91
|
+
/** The [Code]($docs/bis/guide/fundamentals/codes.md) for this element */
|
|
92
92
|
code: Code;
|
|
93
93
|
/** The parent element, if present, of this element. */
|
|
94
94
|
parent?: RelatedElement;
|
|
95
|
-
/** A [FederationGuid]($docs/bis/
|
|
95
|
+
/** A [FederationGuid]($docs/bis/guide/fundamentals/element-fundamentals.md#federationguid) assigned to this element by some other federated database */
|
|
96
96
|
federationGuid?: GuidString;
|
|
97
|
-
/** A [user-assigned label]($docs/bis/
|
|
97
|
+
/** A [user-assigned label]($docs/bis/guide/fundamentals/element-fundamentals.md#userlabel) for this element. */
|
|
98
98
|
userLabel?: string;
|
|
99
|
-
/** Optional [json properties]($docs/bis/
|
|
99
|
+
/** Optional [json properties]($docs/bis/guide/fundamentals/element-fundamentals.md#jsonproperties) of this element. */
|
|
100
100
|
readonly jsonProperties: {
|
|
101
101
|
[key: string]: any;
|
|
102
102
|
};
|
|
@@ -256,26 +256,37 @@ export declare class Element extends Entity {
|
|
|
256
256
|
* @internal
|
|
257
257
|
*/
|
|
258
258
|
toJSON(): ElementProps;
|
|
259
|
-
/** Collect the Ids of this element's *
|
|
260
|
-
*
|
|
261
|
-
* This is important for cloning operations but can be useful in other situations as well.
|
|
262
|
-
* @param predecessorIds The Id64Set to populate with predecessor Ids.
|
|
263
|
-
* @note In order to clone/transform an element, all predecessor elements must have been previously cloned and remapped within the [IModelCloneContext]($backend).
|
|
264
|
-
* @note This should be overridden (with `super` called) at each level the class hierarchy that introduces predecessors.
|
|
265
|
-
* @see getPredecessorIds
|
|
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
|
|
266
261
|
* @beta
|
|
267
262
|
*/
|
|
268
263
|
protected collectPredecessorIds(predecessorIds: Id64Set): void;
|
|
269
|
-
/**
|
|
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
|
|
270
275
|
* This is important for cloning operations but can be useful in other situations as well.
|
|
271
|
-
* @see collectPredecessorIds
|
|
272
276
|
* @beta
|
|
277
|
+
* @deprecated use [[getReferenceIds]] instead, the use of the term *predecessors* was confusing and became inaccurate when the transformer could handle cycles
|
|
273
278
|
*/
|
|
274
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;
|
|
275
286
|
/** A *required reference* is an element that had to be inserted before this element could have been inserted.
|
|
276
287
|
* This is the list of property keys on this element that store references to those elements
|
|
277
288
|
* @note This should be overridden (with `super` called) at each level the class hierarchy that introduces required references.
|
|
278
|
-
* @note any property listed here must be added to the
|
|
289
|
+
* @note any property listed here must be added to the reference ids in [[collectReferenceIds]]
|
|
279
290
|
* @beta
|
|
280
291
|
*/
|
|
281
292
|
static readonly requiredReferenceKeys: ReadonlyArray<string>;
|
|
@@ -332,7 +343,7 @@ export declare abstract class GeometricElement extends Element {
|
|
|
332
343
|
/** Obtain the JSON representation of this element. */
|
|
333
344
|
toJSON(): GeometricElementProps;
|
|
334
345
|
/** @internal */
|
|
335
|
-
protected
|
|
346
|
+
protected collectReferenceIds(referenceIds: Id64Set): void;
|
|
336
347
|
/** @beta */
|
|
337
348
|
static readonly requiredReferenceKeys: ReadonlyArray<string>;
|
|
338
349
|
}
|
|
@@ -350,7 +361,7 @@ export declare abstract class GeometricElement3d extends GeometricElement {
|
|
|
350
361
|
/** @internal */
|
|
351
362
|
toJSON(): GeometricElement3dProps;
|
|
352
363
|
/** @internal */
|
|
353
|
-
protected
|
|
364
|
+
protected collectReferenceIds(referenceIds: Id64Set): void;
|
|
354
365
|
}
|
|
355
366
|
/** A 3d Graphical Element
|
|
356
367
|
* @public
|
|
@@ -374,7 +385,7 @@ export declare abstract class GeometricElement2d extends GeometricElement {
|
|
|
374
385
|
/** @internal */
|
|
375
386
|
toJSON(): GeometricElement2dProps;
|
|
376
387
|
/** @internal */
|
|
377
|
-
protected
|
|
388
|
+
protected collectReferenceIds(referenceIds: Id64Set): void;
|
|
378
389
|
}
|
|
379
390
|
/** An abstract base class for 2d Geometric Elements that are used to convey information within graphical presentations (like drawings).
|
|
380
391
|
* @public
|
|
@@ -629,7 +640,7 @@ export declare class SheetTemplate extends Document {
|
|
|
629
640
|
/** @internal */
|
|
630
641
|
constructor(props: SheetTemplateProps, iModel: IModelDb);
|
|
631
642
|
/** @internal */
|
|
632
|
-
protected
|
|
643
|
+
protected collectReferenceIds(referenceIds: Id64Set): void;
|
|
633
644
|
}
|
|
634
645
|
/** A digital representation of a *sheet of paper*. Modeled by a [[SheetModel]].
|
|
635
646
|
* @public
|
|
@@ -644,7 +655,7 @@ export declare class Sheet extends Document {
|
|
|
644
655
|
/** @internal */
|
|
645
656
|
constructor(props: SheetProps, iModel: IModelDb);
|
|
646
657
|
/** @internal */
|
|
647
|
-
protected
|
|
658
|
+
protected collectReferenceIds(referenceIds: Id64Set): void;
|
|
648
659
|
/** Create a Code for a Sheet given a name that is meant to be unique within the scope of the specified DocumentListModel.
|
|
649
660
|
* @param iModel The IModelDb
|
|
650
661
|
* @param scopeModelId The Id of the DocumentListModel that contains the Sheet and provides the scope for its name.
|
|
@@ -739,7 +750,7 @@ export declare abstract class TypeDefinitionElement extends DefinitionElement {
|
|
|
739
750
|
/** @internal */
|
|
740
751
|
constructor(props: TypeDefinitionElementProps, iModel: IModelDb);
|
|
741
752
|
/** @internal */
|
|
742
|
-
protected
|
|
753
|
+
protected collectReferenceIds(referenceIds: Id64Set): void;
|
|
743
754
|
}
|
|
744
755
|
/** Defines a recipe for generating instances from a definition.
|
|
745
756
|
* @beta
|
|
@@ -865,7 +876,7 @@ export declare class TemplateRecipe2d extends RecipeDefinitionElement {
|
|
|
865
876
|
}
|
|
866
877
|
/** An abstract base class for elements that establishes a particular modeling perspective for its parent Subject.
|
|
867
878
|
* Instances are always sub-modeled by a specialization of Model of the appropriate modeling perspective.
|
|
868
|
-
* @see [iModel Information Hierarchy]($docs/bis/
|
|
879
|
+
* @see [iModel Information Hierarchy]($docs/bis/guide/data-organization/top-of-the-world), [[Subject]], [[Model]]
|
|
869
880
|
* @public
|
|
870
881
|
*/
|
|
871
882
|
export declare abstract class InformationPartitionElement extends InformationContentElement {
|
|
@@ -1088,7 +1099,7 @@ export declare class RenderTimeline extends InformationRecordElement {
|
|
|
1088
1099
|
toJSON(): RenderTimelineProps;
|
|
1089
1100
|
private static parseScriptProps;
|
|
1090
1101
|
/** @alpha */
|
|
1091
|
-
protected
|
|
1102
|
+
protected collectReferenceIds(ids: Id64Set): void;
|
|
1092
1103
|
/** @alpha */
|
|
1093
1104
|
protected static onCloned(context: IModelCloneContext, sourceProps: RenderTimelineProps, targetProps: RenderTimelineProps): void;
|
|
1094
1105
|
/** Remap Ids when cloning a RenderSchedule.Script between iModels on a DisplayStyle or RenderTimeline.
|
package/lib/cjs/Element.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Element.d.ts","sourceRoot":"","sources":["../../src/Element.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAqB,UAAU,EAAQ,OAAO,EAAE,UAAU,EAA+B,MAAM,qBAAqB,CAAC;AAC5H,OAAO,EAAE,UAAU,EAAW,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACtE,OAAO,EACL,gBAAgB,EAAe,IAAI,EAAE,cAAc,EAAY,sBAAsB,EAAE,mBAA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mBAAmB;IAS7C,OAAO,CAAC,MAAM,CAAC,gBAAgB;IAQ/B,aAAa;cACM,mBAAmB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI;IAM1D,aAAa;qBACa,QAAQ,CAAC,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,mBAAmB,EAAE,WAAW,EAAE,mBAAmB,GAAG,IAAI;IAMzI;;OAEG;WACW,WAAW,CAAC,OAAO,EAAE,kBAAkB,EAAE,KAAK,EAAE,cAAc,CAAC,WAAW,GAAG,cAAc,CAAC,WAAW;CA2BtH"}
|
package/lib/cjs/Element.js
CHANGED
|
@@ -11,8 +11,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
11
11
|
exports.FolderLink = exports.UrlLink = exports.LinkElement = exports.GroupInformationElement = exports.SpatialLocationPartition = exports.PhysicalPartition = exports.LinkPartition = exports.InformationRecordPartition = exports.GraphicalPartition3d = exports.GroupInformationPartition = exports.DocumentPartition = exports.DefinitionPartition = exports.InformationPartitionElement = exports.TemplateRecipe2d = exports.GraphicalType2d = exports.TemplateRecipe3d = exports.SpatialLocationType = exports.PhysicalType = exports.RecipeDefinitionElement = exports.TypeDefinitionElement = exports.DefinitionGroup = exports.DefinitionContainer = exports.DefinitionSet = exports.DefinitionElement = exports.InformationRecordElement = exports.Sheet = exports.SheetTemplate = exports.SheetBorderTemplate = exports.SectionDrawing = exports.Drawing = exports.Document = exports.Subject = exports.InformationReferenceElement = exports.DriverBundleElement = exports.InformationContentElement = exports.SectionDrawingLocation = exports.VolumeElement = exports.SpatialLocationElement = exports.PhysicalElement = exports.SpatialElement = exports.TextAnnotation3d = exports.TextAnnotation2d = exports.DrawingGraphic = exports.AnnotationElement2d = exports.GraphicalElement2d = exports.GeometricElement2d = exports.GraphicalElement3d = exports.GeometricElement3d = exports.GeometricElement = exports.Element = void 0;
|
|
12
12
|
exports.RenderTimeline = exports.LineStyle = exports.GeometryPart = exports.RoleElement = exports.EmbeddedFileLink = exports.RepositoryLink = void 0;
|
|
13
13
|
const core_bentley_1 = require("@itwin/core-bentley");
|
|
14
|
-
const core_geometry_1 = require("@itwin/core-geometry");
|
|
15
14
|
const core_common_1 = require("@itwin/core-common");
|
|
15
|
+
const core_geometry_1 = require("@itwin/core-geometry");
|
|
16
16
|
const Entity_1 = require("./Entity");
|
|
17
17
|
const Model_1 = require("./Model");
|
|
18
18
|
const NavigationRelationship_1 = require("./NavigationRelationship");
|
|
@@ -28,7 +28,7 @@ const NavigationRelationship_1 = require("./NavigationRelationship");
|
|
|
28
28
|
* uniqueness of id, code, and federationGuid.
|
|
29
29
|
*
|
|
30
30
|
* See:
|
|
31
|
-
* * [Element Fundamentals]($docs/bis/
|
|
31
|
+
* * [Element Fundamentals]($docs/bis/guide/fundamentals/element-fundamentals.md)
|
|
32
32
|
* * [Working with schemas and elements in TypeScript]($docs/learning/backend/SchemasAndElementsInTypeScript.md)
|
|
33
33
|
* * [Creating elements]($docs/learning/backend/CreateElements.md)
|
|
34
34
|
* @public
|
|
@@ -225,31 +225,46 @@ class Element extends Entity_1.Entity {
|
|
|
225
225
|
val.jsonProperties = this.jsonProperties;
|
|
226
226
|
return val;
|
|
227
227
|
}
|
|
228
|
-
/** Collect the Ids of this element's *
|
|
229
|
-
*
|
|
230
|
-
* This is important for cloning operations but can be useful in other situations as well.
|
|
231
|
-
* @param predecessorIds The Id64Set to populate with predecessor Ids.
|
|
232
|
-
* @note In order to clone/transform an element, all predecessor elements must have been previously cloned and remapped within the [IModelCloneContext]($backend).
|
|
233
|
-
* @note This should be overridden (with `super` called) at each level the class hierarchy that introduces predecessors.
|
|
234
|
-
* @see getPredecessorIds
|
|
228
|
+
/** Collect the Ids of this element's *references* at this level of the class hierarchy.
|
|
229
|
+
* @deprecated use [[collectReferenceIds]] instead, the use of the term *predecessors* was confusing and became inaccurate when the transformer could handle cycles
|
|
235
230
|
* @beta
|
|
236
231
|
*/
|
|
237
232
|
collectPredecessorIds(predecessorIds) {
|
|
238
|
-
|
|
233
|
+
return this.collectReferenceIds(predecessorIds);
|
|
234
|
+
}
|
|
235
|
+
/** Collect the Ids of this entity's *references* at this level of the class hierarchy.
|
|
236
|
+
* A *reference* is any entity referenced by this entity's EC Data
|
|
237
|
+
* This is important for cloning operations but can be useful in other situations as well.
|
|
238
|
+
* @param referenceIds The Id64Set to populate with reference Ids.
|
|
239
|
+
* @note In order to clone/transform an entity, all referenced elements must have been previously cloned and remapped within the [IModelCloneContext]($backend).
|
|
240
|
+
* @note This should be overridden (with `super` called) at each level the class hierarchy that introduces references.
|
|
241
|
+
* @see getReferenceIds
|
|
242
|
+
* @beta
|
|
243
|
+
*/
|
|
244
|
+
collectReferenceIds(referenceIds) {
|
|
245
|
+
referenceIds.add(this.model); // The modeledElement is a reference
|
|
239
246
|
if (this.code.scope && core_bentley_1.Id64.isValidId64(this.code.scope))
|
|
240
|
-
|
|
247
|
+
referenceIds.add(this.code.scope); // The element that scopes the code is a reference
|
|
241
248
|
if (this.parent)
|
|
242
|
-
|
|
249
|
+
referenceIds.add(this.parent.id); // A parent element is a reference
|
|
243
250
|
}
|
|
244
|
-
/** Get the Ids of this element's *
|
|
251
|
+
/** Get the Ids of this element's *references*. A *reference* is any element whose id is stored in the EC data of this element
|
|
245
252
|
* This is important for cloning operations but can be useful in other situations as well.
|
|
246
|
-
* @see collectPredecessorIds
|
|
247
253
|
* @beta
|
|
254
|
+
* @deprecated use [[getReferenceIds]] instead, the use of the term *predecessors* was confusing and became inaccurate when the transformer could handle cycles
|
|
248
255
|
*/
|
|
249
256
|
getPredecessorIds() {
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
257
|
+
return this.getReferenceIds();
|
|
258
|
+
}
|
|
259
|
+
/** Get the Ids of this element's *references*. A *reference* is an element that this element references.
|
|
260
|
+
* This is important for cloning operations but can be useful in other situations as well.
|
|
261
|
+
* @see collectReferenceIds
|
|
262
|
+
* @beta
|
|
263
|
+
*/
|
|
264
|
+
getReferenceIds() {
|
|
265
|
+
const referenceIds = new Set();
|
|
266
|
+
this.collectReferenceIds(referenceIds);
|
|
267
|
+
return referenceIds;
|
|
253
268
|
}
|
|
254
269
|
/** Get the class metadata for this element. */
|
|
255
270
|
getClassMetaData() { return this.iModel.classMetaDataRegistry.find(this.classFullName); }
|
|
@@ -290,7 +305,7 @@ exports.Element = Element;
|
|
|
290
305
|
/** A *required reference* is an element that had to be inserted before this element could have been inserted.
|
|
291
306
|
* This is the list of property keys on this element that store references to those elements
|
|
292
307
|
* @note This should be overridden (with `super` called) at each level the class hierarchy that introduces required references.
|
|
293
|
-
* @note any property listed here must be added to the
|
|
308
|
+
* @note any property listed here must be added to the reference ids in [[collectReferenceIds]]
|
|
294
309
|
* @beta
|
|
295
310
|
*/
|
|
296
311
|
Element.requiredReferenceKeys = ["parent", "model"];
|
|
@@ -322,9 +337,9 @@ class GeometricElement extends (_b = Element) {
|
|
|
322
337
|
return val;
|
|
323
338
|
}
|
|
324
339
|
/** @internal */
|
|
325
|
-
|
|
326
|
-
super.
|
|
327
|
-
|
|
340
|
+
collectReferenceIds(referenceIds) {
|
|
341
|
+
super.collectReferenceIds(referenceIds);
|
|
342
|
+
referenceIds.add(this.category);
|
|
328
343
|
// TODO: GeometryPartIds?
|
|
329
344
|
}
|
|
330
345
|
}
|
|
@@ -356,10 +371,10 @@ class GeometricElement3d extends GeometricElement {
|
|
|
356
371
|
return val;
|
|
357
372
|
}
|
|
358
373
|
/** @internal */
|
|
359
|
-
|
|
360
|
-
super.
|
|
374
|
+
collectReferenceIds(referenceIds) {
|
|
375
|
+
super.collectReferenceIds(referenceIds);
|
|
361
376
|
if (undefined !== this.typeDefinition) {
|
|
362
|
-
|
|
377
|
+
referenceIds.add(this.typeDefinition.id);
|
|
363
378
|
}
|
|
364
379
|
}
|
|
365
380
|
}
|
|
@@ -397,10 +412,10 @@ class GeometricElement2d extends GeometricElement {
|
|
|
397
412
|
return val;
|
|
398
413
|
}
|
|
399
414
|
/** @internal */
|
|
400
|
-
|
|
401
|
-
super.
|
|
415
|
+
collectReferenceIds(referenceIds) {
|
|
416
|
+
super.collectReferenceIds(referenceIds);
|
|
402
417
|
if (undefined !== this.typeDefinition) {
|
|
403
|
-
|
|
418
|
+
referenceIds.add(this.typeDefinition.id);
|
|
404
419
|
}
|
|
405
420
|
}
|
|
406
421
|
}
|
|
@@ -729,10 +744,10 @@ class SheetTemplate extends Document {
|
|
|
729
744
|
/** @internal */
|
|
730
745
|
static get className() { return "SheetTemplate"; }
|
|
731
746
|
/** @internal */
|
|
732
|
-
|
|
733
|
-
super.
|
|
747
|
+
collectReferenceIds(referenceIds) {
|
|
748
|
+
super.collectReferenceIds(referenceIds);
|
|
734
749
|
if (undefined !== this.border) {
|
|
735
|
-
|
|
750
|
+
referenceIds.add(this.border);
|
|
736
751
|
}
|
|
737
752
|
}
|
|
738
753
|
}
|
|
@@ -752,10 +767,10 @@ class Sheet extends Document {
|
|
|
752
767
|
/** @internal */
|
|
753
768
|
static get className() { return "Sheet"; }
|
|
754
769
|
/** @internal */
|
|
755
|
-
|
|
756
|
-
super.
|
|
770
|
+
collectReferenceIds(referenceIds) {
|
|
771
|
+
super.collectReferenceIds(referenceIds);
|
|
757
772
|
if (undefined !== this.sheetTemplate) {
|
|
758
|
-
|
|
773
|
+
referenceIds.add(this.sheetTemplate);
|
|
759
774
|
}
|
|
760
775
|
}
|
|
761
776
|
/** Create a Code for a Sheet given a name that is meant to be unique within the scope of the specified DocumentListModel.
|
|
@@ -888,10 +903,10 @@ class TypeDefinitionElement extends DefinitionElement {
|
|
|
888
903
|
/** @internal */
|
|
889
904
|
static get className() { return "TypeDefinitionElement"; }
|
|
890
905
|
/** @internal */
|
|
891
|
-
|
|
892
|
-
super.
|
|
906
|
+
collectReferenceIds(referenceIds) {
|
|
907
|
+
super.collectReferenceIds(referenceIds);
|
|
893
908
|
if (undefined !== this.recipe) {
|
|
894
|
-
|
|
909
|
+
referenceIds.add(this.recipe.id);
|
|
895
910
|
}
|
|
896
911
|
}
|
|
897
912
|
}
|
|
@@ -1081,7 +1096,7 @@ class TemplateRecipe2d extends RecipeDefinitionElement {
|
|
|
1081
1096
|
exports.TemplateRecipe2d = TemplateRecipe2d;
|
|
1082
1097
|
/** An abstract base class for elements that establishes a particular modeling perspective for its parent Subject.
|
|
1083
1098
|
* Instances are always sub-modeled by a specialization of Model of the appropriate modeling perspective.
|
|
1084
|
-
* @see [iModel Information Hierarchy]($docs/bis/
|
|
1099
|
+
* @see [iModel Information Hierarchy]($docs/bis/guide/data-organization/top-of-the-world), [[Subject]], [[Model]]
|
|
1085
1100
|
* @public
|
|
1086
1101
|
*/
|
|
1087
1102
|
class InformationPartitionElement extends InformationContentElement {
|
|
@@ -1361,8 +1376,8 @@ class RenderTimeline extends InformationRecordElement {
|
|
|
1361
1376
|
}
|
|
1362
1377
|
}
|
|
1363
1378
|
/** @alpha */
|
|
1364
|
-
|
|
1365
|
-
super.
|
|
1379
|
+
collectReferenceIds(ids) {
|
|
1380
|
+
super.collectReferenceIds(ids);
|
|
1366
1381
|
const script = core_common_1.RenderSchedule.Script.fromJSON(this.scriptProps);
|
|
1367
1382
|
script === null || script === void 0 ? void 0 : script.discloseIds(ids);
|
|
1368
1383
|
}
|