@itwin/core-common 5.0.0-dev.40 → 5.0.0-dev.49
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 +11 -1
- package/lib/cjs/AnalysisStyle.d.ts +0 -3
- package/lib/cjs/AnalysisStyle.d.ts.map +1 -1
- package/lib/cjs/AnalysisStyle.js +0 -3
- package/lib/cjs/AnalysisStyle.js.map +1 -1
- package/lib/cjs/FeatureSymbology.d.ts +25 -46
- package/lib/cjs/FeatureSymbology.d.ts.map +1 -1
- package/lib/cjs/FeatureSymbology.js +14 -29
- package/lib/cjs/FeatureSymbology.js.map +1 -1
- package/lib/cjs/FeatureTable.d.ts +6 -108
- package/lib/cjs/FeatureTable.d.ts.map +1 -1
- package/lib/cjs/FeatureTable.js +8 -329
- package/lib/cjs/FeatureTable.js.map +1 -1
- package/lib/cjs/Gradient.d.ts +3 -4
- package/lib/cjs/Gradient.d.ts.map +1 -1
- package/lib/cjs/Gradient.js +3 -4
- package/lib/cjs/Gradient.js.map +1 -1
- package/lib/cjs/HiddenLine.d.ts +17 -18
- package/lib/cjs/HiddenLine.d.ts.map +1 -1
- package/lib/cjs/HiddenLine.js +0 -1
- package/lib/cjs/HiddenLine.js.map +1 -1
- package/lib/cjs/Image.d.ts +7 -8
- package/lib/cjs/Image.d.ts.map +1 -1
- package/lib/cjs/Image.js +3 -4
- package/lib/cjs/Image.js.map +1 -1
- package/lib/cjs/PlanProjectionSettings.d.ts +1 -2
- package/lib/cjs/PlanProjectionSettings.d.ts.map +1 -1
- package/lib/cjs/PlanProjectionSettings.js +0 -1
- package/lib/cjs/PlanProjectionSettings.js.map +1 -1
- package/lib/cjs/PlanarClipMask.d.ts +0 -12
- package/lib/cjs/PlanarClipMask.d.ts.map +1 -1
- package/lib/cjs/PlanarClipMask.js.map +1 -1
- package/lib/cjs/QPoint.d.ts +5 -5
- package/lib/cjs/QPoint.d.ts.map +1 -1
- package/lib/cjs/QPoint.js +5 -5
- package/lib/cjs/QPoint.js.map +1 -1
- package/lib/cjs/RenderPolyline.d.ts +36 -0
- package/lib/cjs/RenderPolyline.d.ts.map +1 -0
- package/lib/cjs/RenderPolyline.js +26 -0
- package/lib/cjs/RenderPolyline.js.map +1 -0
- package/lib/cjs/RenderTexture.d.ts +4 -2
- package/lib/cjs/RenderTexture.d.ts.map +1 -1
- package/lib/cjs/RenderTexture.js +8 -0
- package/lib/cjs/RenderTexture.js.map +1 -1
- package/lib/cjs/TextureMapping.d.ts +17 -14
- package/lib/cjs/TextureMapping.d.ts.map +1 -1
- package/lib/cjs/TextureMapping.js +22 -17
- package/lib/cjs/TextureMapping.js.map +1 -1
- package/lib/cjs/ViewFlags.d.ts +1 -3
- package/lib/cjs/ViewFlags.d.ts.map +1 -1
- package/lib/cjs/ViewFlags.js +1 -3
- package/lib/cjs/ViewFlags.js.map +1 -1
- package/lib/cjs/core-common.d.ts +1 -1
- package/lib/cjs/core-common.d.ts.map +1 -1
- package/lib/cjs/core-common.js +1 -1
- package/lib/cjs/core-common.js.map +1 -1
- package/lib/cjs/internal/PackedFeatureTable.d.ts +111 -0
- package/lib/cjs/internal/PackedFeatureTable.d.ts.map +1 -0
- package/lib/cjs/internal/PackedFeatureTable.js +349 -0
- package/lib/cjs/internal/PackedFeatureTable.js.map +1 -0
- package/lib/cjs/internal/RenderMesh.d.ts +52 -0
- package/lib/cjs/internal/RenderMesh.d.ts.map +1 -0
- package/lib/cjs/{Render.js → internal/RenderMesh.js} +3 -25
- package/lib/cjs/internal/RenderMesh.js.map +1 -0
- package/lib/cjs/internal/cross-package.d.ts +2 -0
- package/lib/cjs/internal/cross-package.d.ts.map +1 -1
- package/lib/cjs/internal/cross-package.js +12 -0
- package/lib/cjs/internal/cross-package.js.map +1 -1
- package/lib/cjs/rpc/core/RpcRequest.d.ts +1 -1
- package/lib/cjs/rpc/core/RpcRequest.d.ts.map +1 -1
- package/lib/cjs/rpc/core/RpcRequest.js +4 -4
- package/lib/cjs/rpc/core/RpcRequest.js.map +1 -1
- package/lib/esm/AnalysisStyle.d.ts +0 -3
- package/lib/esm/AnalysisStyle.d.ts.map +1 -1
- package/lib/esm/AnalysisStyle.js +0 -3
- package/lib/esm/AnalysisStyle.js.map +1 -1
- package/lib/esm/FeatureSymbology.d.ts +25 -46
- package/lib/esm/FeatureSymbology.d.ts.map +1 -1
- package/lib/esm/FeatureSymbology.js +14 -29
- package/lib/esm/FeatureSymbology.js.map +1 -1
- package/lib/esm/FeatureTable.d.ts +6 -108
- package/lib/esm/FeatureTable.d.ts.map +1 -1
- package/lib/esm/FeatureTable.js +6 -324
- package/lib/esm/FeatureTable.js.map +1 -1
- package/lib/esm/Gradient.d.ts +3 -4
- package/lib/esm/Gradient.d.ts.map +1 -1
- package/lib/esm/Gradient.js +3 -4
- package/lib/esm/Gradient.js.map +1 -1
- package/lib/esm/HiddenLine.d.ts +17 -18
- package/lib/esm/HiddenLine.d.ts.map +1 -1
- package/lib/esm/HiddenLine.js +0 -1
- package/lib/esm/HiddenLine.js.map +1 -1
- package/lib/esm/Image.d.ts +7 -8
- package/lib/esm/Image.d.ts.map +1 -1
- package/lib/esm/Image.js +3 -4
- package/lib/esm/Image.js.map +1 -1
- package/lib/esm/PlanProjectionSettings.d.ts +1 -2
- package/lib/esm/PlanProjectionSettings.d.ts.map +1 -1
- package/lib/esm/PlanProjectionSettings.js +0 -1
- package/lib/esm/PlanProjectionSettings.js.map +1 -1
- package/lib/esm/PlanarClipMask.d.ts +0 -12
- package/lib/esm/PlanarClipMask.d.ts.map +1 -1
- package/lib/esm/PlanarClipMask.js.map +1 -1
- package/lib/esm/QPoint.d.ts +5 -5
- package/lib/esm/QPoint.d.ts.map +1 -1
- package/lib/esm/QPoint.js +5 -5
- package/lib/esm/QPoint.js.map +1 -1
- package/lib/esm/RenderPolyline.d.ts +36 -0
- package/lib/esm/RenderPolyline.d.ts.map +1 -0
- package/lib/esm/RenderPolyline.js +23 -0
- package/lib/esm/RenderPolyline.js.map +1 -0
- package/lib/esm/RenderTexture.d.ts +4 -2
- package/lib/esm/RenderTexture.d.ts.map +1 -1
- package/lib/esm/RenderTexture.js +8 -0
- package/lib/esm/RenderTexture.js.map +1 -1
- package/lib/esm/TextureMapping.d.ts +17 -14
- package/lib/esm/TextureMapping.d.ts.map +1 -1
- package/lib/esm/TextureMapping.js +22 -17
- package/lib/esm/TextureMapping.js.map +1 -1
- package/lib/esm/ViewFlags.d.ts +1 -3
- package/lib/esm/ViewFlags.d.ts.map +1 -1
- package/lib/esm/ViewFlags.js +1 -3
- package/lib/esm/ViewFlags.js.map +1 -1
- package/lib/esm/core-common.d.ts +1 -1
- package/lib/esm/core-common.d.ts.map +1 -1
- package/lib/esm/core-common.js +1 -1
- package/lib/esm/core-common.js.map +1 -1
- package/lib/esm/internal/PackedFeatureTable.d.ts +111 -0
- package/lib/esm/internal/PackedFeatureTable.d.ts.map +1 -0
- package/lib/esm/internal/PackedFeatureTable.js +342 -0
- package/lib/esm/internal/PackedFeatureTable.js.map +1 -0
- package/lib/esm/internal/RenderMesh.d.ts +52 -0
- package/lib/esm/internal/RenderMesh.d.ts.map +1 -0
- package/lib/esm/{Render.js → internal/RenderMesh.js} +2 -23
- package/lib/esm/internal/RenderMesh.js.map +1 -0
- package/lib/esm/internal/cross-package.d.ts +2 -0
- package/lib/esm/internal/cross-package.d.ts.map +1 -1
- package/lib/esm/internal/cross-package.js +2 -1
- package/lib/esm/internal/cross-package.js.map +1 -1
- package/lib/esm/rpc/core/RpcRequest.d.ts +1 -1
- package/lib/esm/rpc/core/RpcRequest.d.ts.map +1 -1
- package/lib/esm/rpc/core/RpcRequest.js +4 -4
- package/lib/esm/rpc/core/RpcRequest.js.map +1 -1
- package/package.json +7 -7
- package/lib/cjs/Render.d.ts +0 -85
- package/lib/cjs/Render.d.ts.map +0 -1
- package/lib/cjs/Render.js.map +0 -1
- package/lib/esm/Render.d.ts +0 -85
- package/lib/esm/Render.d.ts.map +0 -1
- package/lib/esm/Render.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
# Change Log - @itwin/core-common
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Fri, 24 Jan 2025 08:05:17 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
## 4.10.6
|
|
6
|
+
Fri, 24 Jan 2025 08:02:40 GMT
|
|
7
|
+
|
|
8
|
+
_Version update only_
|
|
9
|
+
|
|
10
|
+
## 4.10.5
|
|
11
|
+
Tue, 21 Jan 2025 21:56:45 GMT
|
|
12
|
+
|
|
13
|
+
_Version update only_
|
|
4
14
|
|
|
5
15
|
## 4.10.4
|
|
6
16
|
Mon, 13 Jan 2025 14:06:43 GMT
|
|
@@ -28,7 +28,6 @@ export declare class AnalysisStyleDisplacement {
|
|
|
28
28
|
* Default value: 1.
|
|
29
29
|
*/
|
|
30
30
|
readonly scale: number;
|
|
31
|
-
/** @internal */
|
|
32
31
|
private constructor();
|
|
33
32
|
/** Create from JSON representation. */
|
|
34
33
|
static fromJSON(props: AnalysisStyleDisplacementProps): AnalysisStyleDisplacement;
|
|
@@ -68,7 +67,6 @@ export declare class AnalysisStyleThematic {
|
|
|
68
67
|
/** Settings used to produce the [[Gradient]] image. */
|
|
69
68
|
readonly thematicSettings: ThematicGradientSettings;
|
|
70
69
|
private _gradient?;
|
|
71
|
-
/** @internal */
|
|
72
70
|
private constructor();
|
|
73
71
|
/** Create from JSON representation. */
|
|
74
72
|
static fromJSON(props: AnalysisStyleThematicProps): AnalysisStyleThematic;
|
|
@@ -122,7 +120,6 @@ export declare class AnalysisStyle {
|
|
|
122
120
|
* @note AnalysisStyle is an immutable type - use [[clone]] to produce a modified copy.
|
|
123
121
|
*/
|
|
124
122
|
static fromJSON(props?: AnalysisStyleProps): AnalysisStyle;
|
|
125
|
-
/** @internal */
|
|
126
123
|
private constructor();
|
|
127
124
|
/** Convert this style to its JSON representation. */
|
|
128
125
|
toJSON(): AnalysisStyleProps;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnalysisStyle.d.ts","sourceRoot":"","sources":["../../src/AnalysisStyle.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,wBAAwB,EAAE,6BAA6B,EAAE,MAAM,mBAAmB,CAAC;AAC5F,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC;;;;GAIG;AACH,MAAM,WAAW,8BAA8B;IAC7C,qDAAqD;IACrD,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;GAGG;AACH,qBAAa,yBAAyB;IACpC,8GAA8G;IAC9G,SAAgB,WAAW,EAAE,MAAM,CAAC;IACpC;;OAEG;IACH,SAAgB,KAAK,EAAE,MAAM,CAAC;IAE9B,
|
|
1
|
+
{"version":3,"file":"AnalysisStyle.d.ts","sourceRoot":"","sources":["../../src/AnalysisStyle.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,wBAAwB,EAAE,6BAA6B,EAAE,MAAM,mBAAmB,CAAC;AAC5F,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC;;;;GAIG;AACH,MAAM,WAAW,8BAA8B;IAC7C,qDAAqD;IACrD,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;GAGG;AACH,qBAAa,yBAAyB;IACpC,8GAA8G;IAC9G,SAAgB,WAAW,EAAE,MAAM,CAAC;IACpC;;OAEG;IACH,SAAgB,KAAK,EAAE,MAAM,CAAC;IAE9B,OAAO;IAKP,uCAAuC;WACzB,QAAQ,CAAC,KAAK,EAAE,8BAA8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AM,CAAC;IAC3B,WAAW,CAAC,EAAE,YAAY,CAAC;IAC3B,sBAAsB,CAAC,EAAE,6BAA6B,CAAC;CACxD;AAgCD;;;;;;GAMG;AACH,qBAAa,aAAa;IACxB,SAAgB,YAAY,CAAC,EAAE,yBAAyB,CAAC;IACzD,SAAgB,QAAQ,CAAC,EAAE,qBAAqB,CAAC;IACjD,qHAAqH;IACrH,SAAgB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3C;;OAEG;WACW,QAAQ,CAAC,KAAK,CAAC,EAAE,kBAAkB,GAAG,aAAa;IAWjE,OAAO;IASP,qDAAqD;IAC9C,MAAM,IAAI,kBAAkB;IAiBnC,2GAA2G;IACpG,KAAK,CAAC,YAAY,EAAE,kBAAkB,GAAG,aAAa;IAO7D,0DAA0D;IACnD,MAAM,CAAC,KAAK,EAAE,aAAa,GAAG,OAAO;IAe5C,gBAAuB,QAAQ,gBAAyB;CACzD"}
|
package/lib/cjs/AnalysisStyle.js
CHANGED
|
@@ -16,7 +16,6 @@ const Gradient_1 = require("./Gradient");
|
|
|
16
16
|
* @public
|
|
17
17
|
*/
|
|
18
18
|
class AnalysisStyleDisplacement {
|
|
19
|
-
/** @internal */
|
|
20
19
|
constructor(channelName, scale = 1) {
|
|
21
20
|
this.channelName = channelName;
|
|
22
21
|
this.scale = scale;
|
|
@@ -45,7 +44,6 @@ exports.AnalysisStyleDisplacement = AnalysisStyleDisplacement;
|
|
|
45
44
|
* @public
|
|
46
45
|
*/
|
|
47
46
|
class AnalysisStyleThematic {
|
|
48
|
-
/** @internal */
|
|
49
47
|
constructor(props) {
|
|
50
48
|
this.channelName = props.channelName;
|
|
51
49
|
this.range = core_geometry_1.Range1d.fromJSON(props.range);
|
|
@@ -120,7 +118,6 @@ class AnalysisStyle {
|
|
|
120
118
|
return this.defaults;
|
|
121
119
|
return new AnalysisStyle(props);
|
|
122
120
|
}
|
|
123
|
-
/** @internal */
|
|
124
121
|
constructor(props) {
|
|
125
122
|
this.normalChannelName = props.normalChannelName;
|
|
126
123
|
if (props.displacement)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnalysisStyle.js","sourceRoot":"","sources":["../../src/AnalysisStyle.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,wDAA6D;AAC7D,uDAA4F;AAC5F,yCAAsC;AAgBtC;;;GAGG;AACH,MAAa,yBAAyB;IAQpC,gBAAgB;IAChB,YAAoB,WAAmB,EAAE,KAAK,GAAG,CAAC;QAChD,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;IAED,uCAAuC;IAChC,MAAM,CAAC,QAAQ,CAAC,KAAqC;QAC1D,OAAO,IAAI,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IAClD,CAAC;IAED,sCAAsC;IAC/B,MAAM;QACX,MAAM,KAAK,GAAmC,EAAE,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE,CAAC;QAChF,IAAI,IAAI,CAAC,KAAK,KAAK,CAAC;YAClB,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QAE3B,OAAO,KAAK,CAAC;IACf,CAAC;IAED,sDAAsD;IAC/C,MAAM,CAAC,KAAgC;QAC5C,OAAO,IAAI,CAAC,WAAW,KAAK,KAAK,CAAC,WAAW,IAAI,IAAI,CAAC,KAAK,KAAK,KAAK,CAAC,KAAK,CAAC;IAC9E,CAAC;CACF;AAhCD,8DAgCC;AAkBD;;;;;GAKG;AACH,MAAa,qBAAqB;IAWhC,gBAAgB;IAChB,YAAoB,KAAiC;QACnD,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC;QACrC,IAAI,CAAC,KAAK,GAAG,uBAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAC3C,IAAI,CAAC,gBAAgB,GAAG,0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QAAQ,CAAC;YAClE,OAAO,KAAK,CAAC;QAEf,OAAO,SAAS,KAAK,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,QAAS,CAAC,CAAC;IAC9E,CAAC;aAEsB,aAAQ,GAAG,IAAI,aAAa,CAAC,EAAE,CAAC,CAAC;;AAxE1D,sCAyEC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module DisplayStyles\n */\n\nimport { Range1d, Range1dProps } from \"@itwin/core-geometry\";\nimport { ThematicGradientSettings, ThematicGradientSettingsProps } from \"./ThematicDisplay\";\nimport { Gradient } from \"./Gradient\";\n\n/** JSON representation of an [[AnalysisStyleDisplacement]].\n * @see [[AnalysisStyleProps.displacement]].\n * @public\n * @extensions\n */\nexport interface AnalysisStyleDisplacementProps {\n /** See [[AnalysisStyleDisplacement.channelName]]. */\n channelName: string;\n /** See [[AnalysisStyleDisplacement.scale]].\n * Default value: 1.\n */\n scale?: number;\n}\n\n/** Describes how an [[AnalysisStyle]] deforms a [Polyface]($core-geometry) by applying translation to its vertices.\n * @see [[AnalysisStyle.displacement]].\n * @public\n */\nexport class AnalysisStyleDisplacement {\n /** The name of the [AuxChannel]($core-geometry) supplying the displacements to be applied to the vertices. */\n public readonly channelName: string;\n /** A scale applied to the displacements to adjust the magnitude of the effect.\n * Default value: 1.\n */\n public readonly scale: number;\n\n /** @internal */\n private constructor(channelName: string, scale = 1) {\n this.channelName = channelName;\n this.scale = scale;\n }\n\n /** Create from JSON representation. */\n public static fromJSON(props: AnalysisStyleDisplacementProps): AnalysisStyleDisplacement {\n return new this(props.channelName, props.scale);\n }\n\n /** Convert to JSON representation. */\n public toJSON(): AnalysisStyleDisplacementProps {\n const props: AnalysisStyleDisplacementProps = { channelName: this.channelName };\n if (this.scale !== 1)\n props.scale = this.scale;\n\n return props;\n }\n\n /** Return true if `this` is equivalent to `other`. */\n public equals(other: AnalysisStyleDisplacement): boolean {\n return this.channelName === other.channelName && this.scale === other.scale;\n }\n}\n\n/** JSON representation of an [[AnalysisStyleThematic]].\n * @see [[AnalysisStyleProps.scalar]].\n * @public\n * @extensions\n */\nexport interface AnalysisStyleThematicProps {\n /** See [[AnalysisStyleThematic.channelName]]. */\n channelName: string;\n /** See [[AnalysisStyleThematic.range]]. */\n range: Range1dProps;\n /** See [[AnalysisStyleThematic.thematicSettings]].\n * Default value: [[ThematicGradientSettings.defaults]].\n */\n thematicSettings?: ThematicGradientSettingsProps;\n}\n\n/** Describes how an [[AnalysisStyle]] recolors [Polyface]($core-geometry) vertices by mapping values of type\n * [AuxChannelDataType.Scalar]($core-geometry) or [AuxChannelDataType.Distance]($core-geometry) supplied\n * by an [AuxChannel]($core-geometry) to colors supplied by a [[Gradient]] image.\n * @see [[AnalysisStyle.thematic]].\n * @public\n */\nexport class AnalysisStyleThematic {\n /** The name of the [AuxChannel]($core-geometry) supplying the values from which the vertex colors are computed. */\n public readonly channelName: string;\n /** The minimum and maximum values that map to colors in the [[Gradient]] image. Vertices with values outside of\n * this range are displayed with the gradient's margin color.\n */\n public readonly range: Readonly<Range1d>;\n /** Settings used to produce the [[Gradient]] image. */\n public readonly thematicSettings: ThematicGradientSettings;\n private _gradient?: Gradient.Symb;\n\n /** @internal */\n private constructor(props: AnalysisStyleThematicProps) {\n this.channelName = props.channelName;\n this.range = Range1d.fromJSON(props.range);\n this.thematicSettings = ThematicGradientSettings.fromJSON(props.thematicSettings);\n }\n\n /** Create from JSON representation. */\n public static fromJSON(props: AnalysisStyleThematicProps): AnalysisStyleThematic {\n return new this(props);\n }\n\n /** Convert to JSON representation. */\n public toJSON(): AnalysisStyleThematicProps {\n const props: AnalysisStyleThematicProps = {\n channelName: this.channelName,\n range: this.range.toJSON(),\n };\n\n if (!this.thematicSettings.equals(ThematicGradientSettings.defaults))\n props.thematicSettings = this.thematicSettings.toJSON();\n\n return props;\n }\n\n /** The gradient computed from [[thematicSettings]]. */\n public get gradient(): Gradient.Symb {\n if (!this._gradient)\n this._gradient = Gradient.Symb.createThematic(this.thematicSettings);\n\n return this._gradient;\n }\n\n /** Return true if `this` is equivalent to `other`. */\n public equals(other: AnalysisStyleThematic): boolean {\n return this.channelName === other.channelName && this.range.isAlmostEqual(other.range) && this.thematicSettings.equals(other.thematicSettings);\n }\n}\n\n/** JSON representation of an [[AnalysisStyle]].\n * @public\n * @extensions\n */\nexport interface AnalysisStyleProps {\n /** See [[AnalysisStyle.displacement]]. */\n displacement?: AnalysisStyleDisplacementProps;\n /** JSON representation of [[AnalysisStyle.thematic]].\n * @note The name \"scalar\" is used instead of \"thematic\" for backwards compatibility.\n */\n scalar?: AnalysisStyleThematicProps;\n /** See [[AnalysisStyle.normalChannelName]]. */\n normalChannelName?: string;\n}\n\n/** At time of writing, the only iModel in existence that uses AnalysisStyle is the one created by the analysis-importer test app.\n * To avoid breaking existing saved views of that iModel, AnalysisStyle.fromJSON() continues to accept the old JSON representation -\n * but that representation is not part of the public API.\n * @internal exported strictly for tests.\n */\nexport interface LegacyAnalysisStyleProps {\n displacementChannelName?: string;\n scalarChannelName?: string;\n normalChannelName?: string;\n displacementScale?: number;\n scalarRange?: Range1dProps;\n scalarThematicSettings?: ThematicGradientSettingsProps;\n}\n\nfunction tryConvertLegacyProps(input: AnalysisStyleProps): AnalysisStyleProps {\n if (input.displacement || input.scalar)\n return input;\n\n const legacy = input as LegacyAnalysisStyleProps;\n if (undefined === legacy.displacementChannelName && undefined === legacy.scalarChannelName)\n return input;\n\n const output: AnalysisStyleProps = {\n normalChannelName: input.normalChannelName,\n };\n\n if (undefined !== legacy.displacementChannelName) {\n output.displacement = {\n channelName: legacy.displacementChannelName,\n scale: legacy.displacementScale,\n };\n }\n\n if (undefined !== legacy.scalarChannelName && undefined !== legacy.scalarRange) {\n output.scalar = {\n channelName: legacy.scalarChannelName,\n range: legacy.scalarRange,\n thematicSettings: legacy.scalarThematicSettings,\n };\n }\n\n return output;\n}\n\n/** As part of a [[DisplayStyleSettings]], describes how to animate meshes in the view that have been augmented with\n * [PolyfaceAuxData]($core-geometry). The style specifies which channels to use, and can deform the meshes by\n * translating vertices and/or recolor vertices using [[ThematicDisplay]].\n * @see [[DisplayStyleSettings.analysisStyle]] to define the analysis style for a [DisplayStyle]($backend).\n * @see [[DisplayStyleSettings.analysisFraction]] to control playback of the animation.\n * @public\n */\nexport class AnalysisStyle {\n public readonly displacement?: AnalysisStyleDisplacement;\n public readonly thematic?: AnalysisStyleThematic;\n /** If defined, the name of the [AuxChannel]($core-geometry) from which to obtain normal vectors for the vertices. */\n public readonly normalChannelName?: string;\n\n /** Create an analysis style from its JSON representation.\n * @note AnalysisStyle is an immutable type - use [[clone]] to produce a modified copy.\n */\n public static fromJSON(props?: AnalysisStyleProps): AnalysisStyle {\n if (!props)\n return this.defaults;\n\n props = tryConvertLegacyProps(props);\n if (!props.displacement && !props.scalar && undefined === props.normalChannelName)\n return this.defaults;\n\n return new AnalysisStyle(props);\n }\n\n /** @internal */\n private constructor(props: AnalysisStyleProps) {\n this.normalChannelName = props.normalChannelName;\n if (props.displacement)\n this.displacement = AnalysisStyleDisplacement.fromJSON(props.displacement);\n\n if (props.scalar)\n this.thematic = AnalysisStyleThematic.fromJSON(props.scalar);\n }\n\n /** Convert this style to its JSON representation. */\n public toJSON(): AnalysisStyleProps {\n const props: AnalysisStyleProps = {};\n if (this === AnalysisStyle.defaults)\n return props;\n\n if (this.displacement)\n props.displacement = this.displacement.toJSON();\n\n if (this.thematic)\n props.scalar = this.thematic.toJSON();\n\n if (undefined !== this.normalChannelName)\n props.normalChannelName = this.normalChannelName;\n\n return props;\n }\n\n /** Produce a copy of this style identical except for properties explicitly specified by `changedProps`. */\n public clone(changedProps: AnalysisStyleProps): AnalysisStyle {\n return AnalysisStyle.fromJSON({\n ...this.toJSON(),\n ...changedProps,\n });\n }\n\n /** Return true if this style is equivalent to `other`. */\n public equals(other: AnalysisStyle): boolean {\n if (this.normalChannelName !== other.normalChannelName)\n return false;\n\n if ((undefined === this.displacement) !== (undefined === other.displacement))\n return false;\n else if (this.displacement && !this.displacement.equals(other.displacement!))\n return false;\n\n if ((undefined === this.thematic) !== (undefined === other.thematic))\n return false;\n\n return undefined === this.thematic || this.thematic.equals(other.thematic!);\n }\n\n public static readonly defaults = new AnalysisStyle({});\n}\n"]}
|
|
1
|
+
{"version":3,"file":"AnalysisStyle.js","sourceRoot":"","sources":["../../src/AnalysisStyle.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,wDAA6D;AAC7D,uDAA4F;AAC5F,yCAAsC;AAgBtC;;;GAGG;AACH,MAAa,yBAAyB;IAQpC,YAAoB,WAAmB,EAAE,KAAK,GAAG,CAAC;QAChD,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;IAED,uCAAuC;IAChC,MAAM,CAAC,QAAQ,CAAC,KAAqC;QAC1D,OAAO,IAAI,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IAClD,CAAC;IAED,sCAAsC;IAC/B,MAAM;QACX,MAAM,KAAK,GAAmC,EAAE,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE,CAAC;QAChF,IAAI,IAAI,CAAC,KAAK,KAAK,CAAC;YAClB,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QAE3B,OAAO,KAAK,CAAC;IACf,CAAC;IAED,sDAAsD;IAC/C,MAAM,CAAC,KAAgC;QAC5C,OAAO,IAAI,CAAC,WAAW,KAAK,KAAK,CAAC,WAAW,IAAI,IAAI,CAAC,KAAK,KAAK,KAAK,CAAC,KAAK,CAAC;IAC9E,CAAC;CACF;AA/BD,8DA+BC;AAkBD;;;;;GAKG;AACH,MAAa,qBAAqB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,CAAC,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,KAAK,CAAC,YAAa,CAAC;YAC1E,OAAO,KAAK,CAAC;QAEf,IAAI,CAAC,SAAS,KAAK,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,SAAS,KAAK,KAAK,CAAC,QAAQ,CAAC;YAClE,OAAO,KAAK,CAAC;QAEf,OAAO,SAAS,KAAK,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,QAAS,CAAC,CAAC;IAC9E,CAAC;aAEsB,aAAQ,GAAG,IAAI,aAAa,CAAC,EAAE,CAAC,CAAC;;AAvE1D,sCAwEC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module DisplayStyles\n */\n\nimport { Range1d, Range1dProps } from \"@itwin/core-geometry\";\nimport { ThematicGradientSettings, ThematicGradientSettingsProps } from \"./ThematicDisplay\";\nimport { Gradient } from \"./Gradient\";\n\n/** JSON representation of an [[AnalysisStyleDisplacement]].\n * @see [[AnalysisStyleProps.displacement]].\n * @public\n * @extensions\n */\nexport interface AnalysisStyleDisplacementProps {\n /** See [[AnalysisStyleDisplacement.channelName]]. */\n channelName: string;\n /** See [[AnalysisStyleDisplacement.scale]].\n * Default value: 1.\n */\n scale?: number;\n}\n\n/** Describes how an [[AnalysisStyle]] deforms a [Polyface]($core-geometry) by applying translation to its vertices.\n * @see [[AnalysisStyle.displacement]].\n * @public\n */\nexport class AnalysisStyleDisplacement {\n /** The name of the [AuxChannel]($core-geometry) supplying the displacements to be applied to the vertices. */\n public readonly channelName: string;\n /** A scale applied to the displacements to adjust the magnitude of the effect.\n * Default value: 1.\n */\n public readonly scale: number;\n\n private constructor(channelName: string, scale = 1) {\n this.channelName = channelName;\n this.scale = scale;\n }\n\n /** Create from JSON representation. */\n public static fromJSON(props: AnalysisStyleDisplacementProps): AnalysisStyleDisplacement {\n return new this(props.channelName, props.scale);\n }\n\n /** Convert to JSON representation. */\n public toJSON(): AnalysisStyleDisplacementProps {\n const props: AnalysisStyleDisplacementProps = { channelName: this.channelName };\n if (this.scale !== 1)\n props.scale = this.scale;\n\n return props;\n }\n\n /** Return true if `this` is equivalent to `other`. */\n public equals(other: AnalysisStyleDisplacement): boolean {\n return this.channelName === other.channelName && this.scale === other.scale;\n }\n}\n\n/** JSON representation of an [[AnalysisStyleThematic]].\n * @see [[AnalysisStyleProps.scalar]].\n * @public\n * @extensions\n */\nexport interface AnalysisStyleThematicProps {\n /** See [[AnalysisStyleThematic.channelName]]. */\n channelName: string;\n /** See [[AnalysisStyleThematic.range]]. */\n range: Range1dProps;\n /** See [[AnalysisStyleThematic.thematicSettings]].\n * Default value: [[ThematicGradientSettings.defaults]].\n */\n thematicSettings?: ThematicGradientSettingsProps;\n}\n\n/** Describes how an [[AnalysisStyle]] recolors [Polyface]($core-geometry) vertices by mapping values of type\n * [AuxChannelDataType.Scalar]($core-geometry) or [AuxChannelDataType.Distance]($core-geometry) supplied\n * by an [AuxChannel]($core-geometry) to colors supplied by a [[Gradient]] image.\n * @see [[AnalysisStyle.thematic]].\n * @public\n */\nexport class AnalysisStyleThematic {\n /** The name of the [AuxChannel]($core-geometry) supplying the values from which the vertex colors are computed. */\n public readonly channelName: string;\n /** The minimum and maximum values that map to colors in the [[Gradient]] image. Vertices with values outside of\n * this range are displayed with the gradient's margin color.\n */\n public readonly range: Readonly<Range1d>;\n /** Settings used to produce the [[Gradient]] image. */\n public readonly thematicSettings: ThematicGradientSettings;\n private _gradient?: Gradient.Symb;\n\n private constructor(props: AnalysisStyleThematicProps) {\n this.channelName = props.channelName;\n this.range = Range1d.fromJSON(props.range);\n this.thematicSettings = ThematicGradientSettings.fromJSON(props.thematicSettings);\n }\n\n /** Create from JSON representation. */\n public static fromJSON(props: AnalysisStyleThematicProps): AnalysisStyleThematic {\n return new this(props);\n }\n\n /** Convert to JSON representation. */\n public toJSON(): AnalysisStyleThematicProps {\n const props: AnalysisStyleThematicProps = {\n channelName: this.channelName,\n range: this.range.toJSON(),\n };\n\n if (!this.thematicSettings.equals(ThematicGradientSettings.defaults))\n props.thematicSettings = this.thematicSettings.toJSON();\n\n return props;\n }\n\n /** The gradient computed from [[thematicSettings]]. */\n public get gradient(): Gradient.Symb {\n if (!this._gradient)\n this._gradient = Gradient.Symb.createThematic(this.thematicSettings);\n\n return this._gradient;\n }\n\n /** Return true if `this` is equivalent to `other`. */\n public equals(other: AnalysisStyleThematic): boolean {\n return this.channelName === other.channelName && this.range.isAlmostEqual(other.range) && this.thematicSettings.equals(other.thematicSettings);\n }\n}\n\n/** JSON representation of an [[AnalysisStyle]].\n * @public\n * @extensions\n */\nexport interface AnalysisStyleProps {\n /** See [[AnalysisStyle.displacement]]. */\n displacement?: AnalysisStyleDisplacementProps;\n /** JSON representation of [[AnalysisStyle.thematic]].\n * @note The name \"scalar\" is used instead of \"thematic\" for backwards compatibility.\n */\n scalar?: AnalysisStyleThematicProps;\n /** See [[AnalysisStyle.normalChannelName]]. */\n normalChannelName?: string;\n}\n\n/** At time of writing, the only iModel in existence that uses AnalysisStyle is the one created by the analysis-importer test app.\n * To avoid breaking existing saved views of that iModel, AnalysisStyle.fromJSON() continues to accept the old JSON representation -\n * but that representation is not part of the public API.\n * @internal exported strictly for tests.\n */\nexport interface LegacyAnalysisStyleProps {\n displacementChannelName?: string;\n scalarChannelName?: string;\n normalChannelName?: string;\n displacementScale?: number;\n scalarRange?: Range1dProps;\n scalarThematicSettings?: ThematicGradientSettingsProps;\n}\n\nfunction tryConvertLegacyProps(input: AnalysisStyleProps): AnalysisStyleProps {\n if (input.displacement || input.scalar)\n return input;\n\n const legacy = input as LegacyAnalysisStyleProps;\n if (undefined === legacy.displacementChannelName && undefined === legacy.scalarChannelName)\n return input;\n\n const output: AnalysisStyleProps = {\n normalChannelName: input.normalChannelName,\n };\n\n if (undefined !== legacy.displacementChannelName) {\n output.displacement = {\n channelName: legacy.displacementChannelName,\n scale: legacy.displacementScale,\n };\n }\n\n if (undefined !== legacy.scalarChannelName && undefined !== legacy.scalarRange) {\n output.scalar = {\n channelName: legacy.scalarChannelName,\n range: legacy.scalarRange,\n thematicSettings: legacy.scalarThematicSettings,\n };\n }\n\n return output;\n}\n\n/** As part of a [[DisplayStyleSettings]], describes how to animate meshes in the view that have been augmented with\n * [PolyfaceAuxData]($core-geometry). The style specifies which channels to use, and can deform the meshes by\n * translating vertices and/or recolor vertices using [[ThematicDisplay]].\n * @see [[DisplayStyleSettings.analysisStyle]] to define the analysis style for a [DisplayStyle]($backend).\n * @see [[DisplayStyleSettings.analysisFraction]] to control playback of the animation.\n * @public\n */\nexport class AnalysisStyle {\n public readonly displacement?: AnalysisStyleDisplacement;\n public readonly thematic?: AnalysisStyleThematic;\n /** If defined, the name of the [AuxChannel]($core-geometry) from which to obtain normal vectors for the vertices. */\n public readonly normalChannelName?: string;\n\n /** Create an analysis style from its JSON representation.\n * @note AnalysisStyle is an immutable type - use [[clone]] to produce a modified copy.\n */\n public static fromJSON(props?: AnalysisStyleProps): AnalysisStyle {\n if (!props)\n return this.defaults;\n\n props = tryConvertLegacyProps(props);\n if (!props.displacement && !props.scalar && undefined === props.normalChannelName)\n return this.defaults;\n\n return new AnalysisStyle(props);\n }\n\n private constructor(props: AnalysisStyleProps) {\n this.normalChannelName = props.normalChannelName;\n if (props.displacement)\n this.displacement = AnalysisStyleDisplacement.fromJSON(props.displacement);\n\n if (props.scalar)\n this.thematic = AnalysisStyleThematic.fromJSON(props.scalar);\n }\n\n /** Convert this style to its JSON representation. */\n public toJSON(): AnalysisStyleProps {\n const props: AnalysisStyleProps = {};\n if (this === AnalysisStyle.defaults)\n return props;\n\n if (this.displacement)\n props.displacement = this.displacement.toJSON();\n\n if (this.thematic)\n props.scalar = this.thematic.toJSON();\n\n if (undefined !== this.normalChannelName)\n props.normalChannelName = this.normalChannelName;\n\n return props;\n }\n\n /** Produce a copy of this style identical except for properties explicitly specified by `changedProps`. */\n public clone(changedProps: AnalysisStyleProps): AnalysisStyle {\n return AnalysisStyle.fromJSON({\n ...this.toJSON(),\n ...changedProps,\n });\n }\n\n /** Return true if this style is equivalent to `other`. */\n public equals(other: AnalysisStyle): boolean {\n if (this.normalChannelName !== other.normalChannelName)\n return false;\n\n if ((undefined === this.displacement) !== (undefined === other.displacement))\n return false;\n else if (this.displacement && !this.displacement.equals(other.displacement!))\n return false;\n\n if ((undefined === this.thematic) !== (undefined === other.thematic))\n return false;\n\n return undefined === this.thematic || this.thematic.equals(other.thematic!);\n }\n\n public static readonly defaults = new AnalysisStyle({});\n}\n"]}
|
|
@@ -189,9 +189,7 @@ export interface OverrideFeatureAppearanceOptions {
|
|
|
189
189
|
export interface OverrideModelAppearanceOptions extends OverrideFeatureAppearanceOptions {
|
|
190
190
|
/** The Id of the model whose appearance is to be overridden. */
|
|
191
191
|
modelId: Id64String;
|
|
192
|
-
/** @internal */
|
|
193
192
|
elementId?: never;
|
|
194
|
-
/** @internal */
|
|
195
193
|
subCategoryId?: never;
|
|
196
194
|
}
|
|
197
195
|
/** Options for using [[FeatureOverrides.override]] to override the appearance of a [GeometricElement]($backend).
|
|
@@ -200,9 +198,7 @@ export interface OverrideModelAppearanceOptions extends OverrideFeatureAppearanc
|
|
|
200
198
|
export interface OverrideElementAppearanceOptions extends OverrideFeatureAppearanceOptions {
|
|
201
199
|
/** The Id of the element whose appearance is to be overridden. */
|
|
202
200
|
elementId: Id64String;
|
|
203
|
-
/** @internal */
|
|
204
201
|
modelId?: never;
|
|
205
|
-
/** @internal */
|
|
206
202
|
subCategoryId?: never;
|
|
207
203
|
}
|
|
208
204
|
/** Options for using [[FeatureOverrides.override]] to override the appearance of a [SubCategory]($backend).
|
|
@@ -211,9 +207,7 @@ export interface OverrideElementAppearanceOptions extends OverrideFeatureAppeara
|
|
|
211
207
|
export interface OverrideSubCategoryAppearanceOptions extends OverrideFeatureAppearanceOptions {
|
|
212
208
|
/** The Id of the subcategory whose appearance is to be overridden. */
|
|
213
209
|
subCategoryId: Id64String;
|
|
214
|
-
/** @internal */
|
|
215
210
|
modelId?: never;
|
|
216
|
-
/** @internal */
|
|
217
211
|
elementId?: never;
|
|
218
212
|
}
|
|
219
213
|
/** Arguments supplied to [[FeatureOverrides.override]].
|
|
@@ -265,11 +259,11 @@ export type IgnoreAnimationOverrides = (args: IgnoreAnimationOverridesArgs) => b
|
|
|
265
259
|
*/
|
|
266
260
|
export declare class FeatureOverrides implements FeatureAppearanceSource {
|
|
267
261
|
/** @internal */
|
|
268
|
-
|
|
262
|
+
private readonly _ignoreAnimationOverrides;
|
|
269
263
|
/** Ids of elements that should never be drawn. This takes precedence over [[alwaysDrawn]]. @internal */
|
|
270
|
-
|
|
264
|
+
private readonly _neverDrawn;
|
|
271
265
|
/** Ids of elements that should always be drawn. [[neverDrawn]] takes precedence over this set. @internal */
|
|
272
|
-
|
|
266
|
+
private readonly _alwaysDrawn;
|
|
273
267
|
/** If true, no elements *except* those defined in the "always drawn" set will be drawn.
|
|
274
268
|
* @see [[setAlwaysDrawn]]
|
|
275
269
|
*/
|
|
@@ -279,37 +273,33 @@ export declare class FeatureOverrides implements FeatureAppearanceSource {
|
|
|
279
273
|
*/
|
|
280
274
|
alwaysDrawnIgnoresSubCategory: boolean;
|
|
281
275
|
/** If true, all subcategories are considered visible. This is used for drawing sheets via section callouts in the absence of an actual sheet view.
|
|
282
|
-
* @internal
|
|
283
276
|
*/
|
|
284
277
|
ignoreSubCategory: boolean;
|
|
285
278
|
/** Overrides applied to any feature not explicitly overridden. @internal */
|
|
286
|
-
|
|
287
|
-
/** Whether construction geometry should be drawn.
|
|
279
|
+
private _defaultOverrides;
|
|
280
|
+
/** Whether construction geometry should be drawn. */
|
|
288
281
|
protected _constructions: boolean;
|
|
289
|
-
/** Whether dimensions should be drawn.
|
|
282
|
+
/** Whether dimensions should be drawn. */
|
|
290
283
|
protected _dimensions: boolean;
|
|
291
|
-
/** Whether area patterns should be drawn.
|
|
284
|
+
/** Whether area patterns should be drawn. */
|
|
292
285
|
protected _patterns: boolean;
|
|
293
|
-
/** Whether line weights should be applied. If false, all lines are rendered 1-pixel wide.
|
|
286
|
+
/** Whether line weights should be applied. If false, all lines are rendered 1-pixel wide. */
|
|
294
287
|
protected _lineWeights: boolean;
|
|
295
288
|
/** Overrides applied to all elements belonging to each model. @internal */
|
|
296
|
-
|
|
297
|
-
/** Overrides applied to specific elements.
|
|
289
|
+
private readonly _modelOverrides;
|
|
290
|
+
/** Overrides applied to specific elements. */
|
|
298
291
|
protected readonly _elementOverrides: Id64.Uint32Map<FeatureAppearance>;
|
|
299
|
-
/** Overrides applied to geometry belonging to each subcategory.
|
|
292
|
+
/** Overrides applied to geometry belonging to each subcategory. */
|
|
300
293
|
protected readonly _subCategoryOverrides: Id64.Uint32Map<FeatureAppearance>;
|
|
301
|
-
/** The set of displayed subcategories. Geometry belonging to subcategories not included in this set will not be drawn.
|
|
294
|
+
/** The set of displayed subcategories. Geometry belonging to subcategories not included in this set will not be drawn. */
|
|
302
295
|
protected readonly _visibleSubCategories: Id64.Uint32Set;
|
|
303
|
-
/** Display priorities assigned to subcategories, possibly overridden by display style. Only applicable for plan projection models.
|
|
296
|
+
/** Display priorities assigned to subcategories, possibly overridden by display style. Only applicable for plan projection models. */
|
|
304
297
|
protected readonly _subCategoryPriorities: Id64.Uint32Map<number>;
|
|
305
298
|
/** Per-model, a set of subcategories whose visibility should be inverted for elements within that model.
|
|
306
299
|
* Populated by Viewport.
|
|
307
|
-
* @internal
|
|
308
300
|
*/
|
|
309
301
|
protected readonly _modelSubCategoryOverrides: Id64.Uint32Map<Id64.Uint32Set>;
|
|
310
|
-
/** Ids of animation nodes that should never be drawn.
|
|
311
|
-
* @internal
|
|
312
|
-
*/
|
|
302
|
+
/** Ids of animation nodes that should never be drawn. */
|
|
313
303
|
readonly neverDrawnAnimationNodes: Set<number>;
|
|
314
304
|
/** Mapping of animation node Ids to overrides applied to the corresponding animation nodes.
|
|
315
305
|
* @internal
|
|
@@ -337,21 +327,16 @@ export declare class FeatureOverrides implements FeatureAppearanceSource {
|
|
|
337
327
|
* @note If an element is present in both `alwaysDrawn` and [[neverDrawn]], it will not be displayed - `neverDrawn` takes precedence.
|
|
338
328
|
*/
|
|
339
329
|
get alwaysDrawn(): Id64.Uint32Set;
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
/**
|
|
343
|
-
protected isAlwaysDrawn(idLo: number, idHi: number): boolean;
|
|
344
|
-
/** Returns true if the [SubCategory]($backend) specified by Id is in the set of visible subcategories. @internal */
|
|
330
|
+
private isNeverDrawn;
|
|
331
|
+
private isAlwaysDrawn;
|
|
332
|
+
/** Returns true if the [SubCategory]($backend) specified by Id is in the set of visible subcategories. */
|
|
345
333
|
isSubCategoryVisible(idLo: number, idHi: number): boolean;
|
|
346
|
-
/**
|
|
334
|
+
/** Returns true if the [SubCategory]($backend) specified by Id is in the set of visible subcategories in the context of the specified model. */
|
|
347
335
|
isSubCategoryVisibleInModel(subcatLo: number, subcatHi: number, modelLo: number, modelHi: number): boolean;
|
|
348
|
-
|
|
349
|
-
protected getModelOverrides(idLo: number, idHi: number): FeatureAppearance | undefined;
|
|
336
|
+
private getModelOverrides;
|
|
350
337
|
private getElementAnimationOverrides;
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
/** @internal */
|
|
354
|
-
protected getSubCategoryOverrides(idLo: number, idHi: number): FeatureAppearance | undefined;
|
|
338
|
+
private getElementOverrides;
|
|
339
|
+
private getSubCategoryOverrides;
|
|
355
340
|
/** Add a [SubCategory]($backend) to the set of visible subcategories. */
|
|
356
341
|
setVisibleSubCategory(id: Id64String): void;
|
|
357
342
|
/** Specify the Id of an element that should never be drawn. */
|
|
@@ -372,10 +357,8 @@ export declare class FeatureOverrides implements FeatureAppearanceSource {
|
|
|
372
357
|
* @see [[getFeatureAppearance]] for an equivalent function that accepts [Id64String]($core-bentley)s instead of integer pairs.
|
|
373
358
|
*/
|
|
374
359
|
getAppearance(elemLo: number, elemHi: number, subcatLo: number, subcatHi: number, geomClass: GeometryClass, modelLo: number, modelHi: number, type: BatchType, animationNodeId: number): FeatureAppearance | undefined;
|
|
375
|
-
/** Classifiers behave totally differently...in particular they are never invisible unless fully-transparent.
|
|
376
|
-
|
|
377
|
-
*/
|
|
378
|
-
protected getClassifierAppearance(elemLo: number, elemHi: number, subcatLo: number, subcatHi: number, modelLo: number, modelHi: number, animationNodeId: number): FeatureAppearance | undefined;
|
|
360
|
+
/** Classifiers behave totally differently...in particular they are never invisible unless fully-transparent. */
|
|
361
|
+
private getClassifierAppearance;
|
|
379
362
|
/** Return whether geometry of the specified class should be drawn.
|
|
380
363
|
* @see [[ViewFlags.constructions]], [[ViewFlags.dimensions]], and [[ViewFlags.patterns]].
|
|
381
364
|
*/
|
|
@@ -420,13 +403,9 @@ export declare class FeatureOverrides implements FeatureAppearanceSource {
|
|
|
420
403
|
* @param replaceExisting Specifies whether to replace the current default overrides if they are already defined.
|
|
421
404
|
*/
|
|
422
405
|
setDefaultOverrides(appearance: FeatureAppearance, replaceExisting?: boolean): void;
|
|
423
|
-
/** Get the display priority of a subcategory. This is only relevant when using [[PlanProjectionSettings]].
|
|
424
|
-
* @internal
|
|
425
|
-
*/
|
|
406
|
+
/** Get the display priority of a subcategory. This is only relevant when using [[PlanProjectionSettings]]. */
|
|
426
407
|
getSubCategoryPriority(idLo: number, idHi: number): number;
|
|
427
|
-
/** Adds all fully transparent elements to the _neverDrawn set. This is used for BatchedModels planar masks.
|
|
428
|
-
* @internal
|
|
429
|
-
*/
|
|
408
|
+
/** Adds all fully transparent elements to the _neverDrawn set. This is used for BatchedModels planar masks. */
|
|
430
409
|
addInvisibleElementOverridesToNeverDrawn(): void;
|
|
431
410
|
/** Construct a new Overrides that overrides nothing.
|
|
432
411
|
* @see [FeatureSymbology.Overrides]($frontend) to construct overrides based on a [ViewState]($frontend) or [Viewport]($frontend).
|
|
@@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B,UAAU,CAAC,oBAAoB,EAAE,CAAC,UAAU,EAAE,iBAAiB,KAAK,iBAAiB,GAAG,yBAAyB,CAOhI;IAED;;;OAGG;IACH,SAAgB,KAAK,CAAC,KAAK,EAAE,yBAAyB,EAAE,MAAM,EAAE,yBAAyB,GAAG,yBAAyB,CASpH;CACF"}
|
|
@@ -347,18 +347,16 @@ class FeatureOverrides {
|
|
|
347
347
|
* @note If an element is present in both `alwaysDrawn` and [[neverDrawn]], it will not be displayed - `neverDrawn` takes precedence.
|
|
348
348
|
*/
|
|
349
349
|
get alwaysDrawn() { return this._alwaysDrawn; }
|
|
350
|
-
/** @internal */
|
|
351
350
|
isNeverDrawn(elemIdLo, elemIdHi, animationNodeId) {
|
|
352
351
|
if (this._neverDrawn.has(elemIdLo, elemIdHi))
|
|
353
352
|
return true;
|
|
354
353
|
else
|
|
355
354
|
return this.neverDrawnAnimationNodes.has(animationNodeId);
|
|
356
355
|
}
|
|
357
|
-
/** @internal */
|
|
358
356
|
isAlwaysDrawn(idLo, idHi) { return this._alwaysDrawn.has(idLo, idHi); }
|
|
359
|
-
/** Returns true if the [SubCategory]($backend) specified by Id is in the set of visible subcategories.
|
|
357
|
+
/** Returns true if the [SubCategory]($backend) specified by Id is in the set of visible subcategories. */
|
|
360
358
|
isSubCategoryVisible(idLo, idHi) { return this._visibleSubCategories.has(idLo, idHi); }
|
|
361
|
-
/**
|
|
359
|
+
/** Returns true if the [SubCategory]($backend) specified by Id is in the set of visible subcategories in the context of the specified model. */
|
|
362
360
|
isSubCategoryVisibleInModel(subcatLo, subcatHi, modelLo, modelHi) {
|
|
363
361
|
if (this.ignoreSubCategory)
|
|
364
362
|
return true;
|
|
@@ -368,7 +366,6 @@ class FeatureOverrides {
|
|
|
368
366
|
vis = !vis;
|
|
369
367
|
return vis;
|
|
370
368
|
}
|
|
371
|
-
/** @internal */
|
|
372
369
|
getModelOverrides(idLo, idHi) {
|
|
373
370
|
return this._modelOverrides.get(idLo, idHi);
|
|
374
371
|
}
|
|
@@ -386,7 +383,6 @@ class FeatureOverrides {
|
|
|
386
383
|
args.animationNodeId = animationNodeId;
|
|
387
384
|
return this._ignoreAnimationOverrides.some((ignore) => ignore(args)) ? undefined : app;
|
|
388
385
|
}
|
|
389
|
-
/** @internal */
|
|
390
386
|
getElementOverrides(idLo, idHi, animationNodeId) {
|
|
391
387
|
const elemApp = this._elementOverrides.get(idLo, idHi);
|
|
392
388
|
const nodeApp = this.getElementAnimationOverrides(idLo, idHi, animationNodeId);
|
|
@@ -394,7 +390,6 @@ class FeatureOverrides {
|
|
|
394
390
|
return nodeApp ? nodeApp.extendAppearance(elemApp) : elemApp;
|
|
395
391
|
return nodeApp;
|
|
396
392
|
}
|
|
397
|
-
/** @internal */
|
|
398
393
|
getSubCategoryOverrides(idLo, idHi) { return this._subCategoryOverrides.get(idLo, idHi); }
|
|
399
394
|
/** Add a [SubCategory]($backend) to the set of visible subcategories. */
|
|
400
395
|
setVisibleSubCategory(id) { this._visibleSubCategories.addId(id); }
|
|
@@ -457,9 +452,7 @@ class FeatureOverrides {
|
|
|
457
452
|
visible = false; // don't bother rendering something with full transparency...
|
|
458
453
|
return visible ? app : undefined;
|
|
459
454
|
}
|
|
460
|
-
/** Classifiers behave totally differently...in particular they are never invisible unless fully-transparent.
|
|
461
|
-
* @internal
|
|
462
|
-
*/
|
|
455
|
+
/** Classifiers behave totally differently...in particular they are never invisible unless fully-transparent. */
|
|
463
456
|
getClassifierAppearance(elemLo, elemHi, subcatLo, subcatHi, modelLo, modelHi, animationNodeId) {
|
|
464
457
|
let app = FeatureAppearance.defaults;
|
|
465
458
|
const modelApp = this.getModelOverrides(modelLo, modelHi);
|
|
@@ -576,15 +569,11 @@ class FeatureOverrides {
|
|
|
576
569
|
if (replaceExisting || !appearance.overridesSymbology)
|
|
577
570
|
this._defaultOverrides = appearance;
|
|
578
571
|
}
|
|
579
|
-
/** Get the display priority of a subcategory. This is only relevant when using [[PlanProjectionSettings]].
|
|
580
|
-
* @internal
|
|
581
|
-
*/
|
|
572
|
+
/** Get the display priority of a subcategory. This is only relevant when using [[PlanProjectionSettings]]. */
|
|
582
573
|
getSubCategoryPriority(idLo, idHi) {
|
|
583
574
|
return this._subCategoryPriorities.get(idLo, idHi) ?? 0;
|
|
584
575
|
}
|
|
585
|
-
/** Adds all fully transparent elements to the _neverDrawn set. This is used for BatchedModels planar masks.
|
|
586
|
-
* @internal
|
|
587
|
-
*/
|
|
576
|
+
/** Adds all fully transparent elements to the _neverDrawn set. This is used for BatchedModels planar masks. */
|
|
588
577
|
addInvisibleElementOverridesToNeverDrawn() {
|
|
589
578
|
this._elementOverrides.forEach((lo, hi) => {
|
|
590
579
|
const app = this.getElementOverrides(lo, hi, 0);
|
|
@@ -611,37 +600,33 @@ class FeatureOverrides {
|
|
|
611
600
|
*/
|
|
612
601
|
this.alwaysDrawnIgnoresSubCategory = true;
|
|
613
602
|
/** If true, all subcategories are considered visible. This is used for drawing sheets via section callouts in the absence of an actual sheet view.
|
|
614
|
-
* @internal
|
|
615
603
|
*/
|
|
616
604
|
this.ignoreSubCategory = false;
|
|
617
605
|
/** Overrides applied to any feature not explicitly overridden. @internal */
|
|
618
606
|
this._defaultOverrides = FeatureAppearance.defaults;
|
|
619
|
-
/** Whether construction geometry should be drawn.
|
|
607
|
+
/** Whether construction geometry should be drawn. */
|
|
620
608
|
this._constructions = false;
|
|
621
|
-
/** Whether dimensions should be drawn.
|
|
609
|
+
/** Whether dimensions should be drawn. */
|
|
622
610
|
this._dimensions = false;
|
|
623
|
-
/** Whether area patterns should be drawn.
|
|
611
|
+
/** Whether area patterns should be drawn. */
|
|
624
612
|
this._patterns = false;
|
|
625
|
-
/** Whether line weights should be applied. If false, all lines are rendered 1-pixel wide.
|
|
613
|
+
/** Whether line weights should be applied. If false, all lines are rendered 1-pixel wide. */
|
|
626
614
|
this._lineWeights = true;
|
|
627
615
|
/** Overrides applied to all elements belonging to each model. @internal */
|
|
628
616
|
this._modelOverrides = new core_bentley_1.Id64.Uint32Map();
|
|
629
|
-
/** Overrides applied to specific elements.
|
|
617
|
+
/** Overrides applied to specific elements. */
|
|
630
618
|
this._elementOverrides = new core_bentley_1.Id64.Uint32Map();
|
|
631
|
-
/** Overrides applied to geometry belonging to each subcategory.
|
|
619
|
+
/** Overrides applied to geometry belonging to each subcategory. */
|
|
632
620
|
this._subCategoryOverrides = new core_bentley_1.Id64.Uint32Map();
|
|
633
|
-
/** The set of displayed subcategories. Geometry belonging to subcategories not included in this set will not be drawn.
|
|
621
|
+
/** The set of displayed subcategories. Geometry belonging to subcategories not included in this set will not be drawn. */
|
|
634
622
|
this._visibleSubCategories = new core_bentley_1.Id64.Uint32Set();
|
|
635
|
-
/** Display priorities assigned to subcategories, possibly overridden by display style. Only applicable for plan projection models.
|
|
623
|
+
/** Display priorities assigned to subcategories, possibly overridden by display style. Only applicable for plan projection models. */
|
|
636
624
|
this._subCategoryPriorities = new core_bentley_1.Id64.Uint32Map();
|
|
637
625
|
/** Per-model, a set of subcategories whose visibility should be inverted for elements within that model.
|
|
638
626
|
* Populated by Viewport.
|
|
639
|
-
* @internal
|
|
640
627
|
*/
|
|
641
628
|
this._modelSubCategoryOverrides = new core_bentley_1.Id64.Uint32Map();
|
|
642
|
-
/** Ids of animation nodes that should never be drawn.
|
|
643
|
-
* @internal
|
|
644
|
-
*/
|
|
629
|
+
/** Ids of animation nodes that should never be drawn. */
|
|
645
630
|
this.neverDrawnAnimationNodes = new Set();
|
|
646
631
|
/** Mapping of animation node Ids to overrides applied to the corresponding animation nodes.
|
|
647
632
|
* @internal
|