@itwin/core-common 4.5.0-dev.4 → 4.5.0-dev.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/lib/cjs/GenericInstanceFilter.d.ts +151 -0
  2. package/lib/cjs/GenericInstanceFilter.d.ts.map +1 -0
  3. package/lib/cjs/GenericInstanceFilter.js +42 -0
  4. package/lib/cjs/GenericInstanceFilter.js.map +1 -0
  5. package/lib/cjs/MaterialProps.d.ts +9 -5
  6. package/lib/cjs/MaterialProps.d.ts.map +1 -1
  7. package/lib/cjs/MaterialProps.js.map +1 -1
  8. package/lib/cjs/TerrainSettings.d.ts +31 -0
  9. package/lib/cjs/TerrainSettings.d.ts.map +1 -1
  10. package/lib/cjs/TerrainSettings.js +47 -14
  11. package/lib/cjs/TerrainSettings.js.map +1 -1
  12. package/lib/cjs/core-common.d.ts +1 -0
  13. package/lib/cjs/core-common.d.ts.map +1 -1
  14. package/lib/cjs/core-common.js +1 -0
  15. package/lib/cjs/core-common.js.map +1 -1
  16. package/lib/cjs/rpc/core/RpcConstants.d.ts +6 -6
  17. package/lib/cjs/rpc/core/RpcConstants.d.ts.map +1 -1
  18. package/lib/cjs/rpc/core/RpcConstants.js +6 -6
  19. package/lib/cjs/rpc/core/RpcConstants.js.map +1 -1
  20. package/lib/cjs/rpc/web/OpenAPI.d.ts +1 -1
  21. package/lib/cjs/rpc/web/OpenAPI.js.map +1 -1
  22. package/lib/cjs/rpc/web/WebAppRpcProtocol.d.ts +2 -2
  23. package/lib/cjs/rpc/web/WebAppRpcProtocol.js.map +1 -1
  24. package/lib/esm/GenericInstanceFilter.d.ts +151 -0
  25. package/lib/esm/GenericInstanceFilter.d.ts.map +1 -0
  26. package/lib/esm/GenericInstanceFilter.js +39 -0
  27. package/lib/esm/GenericInstanceFilter.js.map +1 -0
  28. package/lib/esm/MaterialProps.d.ts +9 -5
  29. package/lib/esm/MaterialProps.d.ts.map +1 -1
  30. package/lib/esm/MaterialProps.js.map +1 -1
  31. package/lib/esm/TerrainSettings.d.ts +31 -0
  32. package/lib/esm/TerrainSettings.d.ts.map +1 -1
  33. package/lib/esm/TerrainSettings.js +46 -13
  34. package/lib/esm/TerrainSettings.js.map +1 -1
  35. package/lib/esm/core-common.d.ts +1 -0
  36. package/lib/esm/core-common.d.ts.map +1 -1
  37. package/lib/esm/core-common.js +1 -0
  38. package/lib/esm/core-common.js.map +1 -1
  39. package/lib/esm/rpc/core/RpcConstants.d.ts +6 -6
  40. package/lib/esm/rpc/core/RpcConstants.d.ts.map +1 -1
  41. package/lib/esm/rpc/core/RpcConstants.js +6 -6
  42. package/lib/esm/rpc/core/RpcConstants.js.map +1 -1
  43. package/lib/esm/rpc/web/OpenAPI.d.ts +1 -1
  44. package/lib/esm/rpc/web/OpenAPI.js.map +1 -1
  45. package/lib/esm/rpc/web/WebAppRpcProtocol.d.ts +2 -2
  46. package/lib/esm/rpc/web/WebAppRpcProtocol.js.map +1 -1
  47. package/package.json +6 -6
@@ -0,0 +1,151 @@
1
+ /** @packageDocumentation
2
+ * @module Utils
3
+ */
4
+ /**
5
+ * Generic instance filter that has all the necessary information to build filtering query.
6
+ * @beta
7
+ */
8
+ export interface GenericInstanceFilter {
9
+ /** Single filter rule or multiple rules joined by logical operator. */
10
+ rules: GenericInstanceFilterRule | GenericInstanceFilterRuleGroup;
11
+ /**
12
+ * Information about related instances that has access to the properties used in filter.
13
+ * These can be used to create `JOIN` clause when building `ECSQL` query. Each related property
14
+ * used in rule will have [[GenericInstanceFilterRule.sourceAlias]] that matches [[GenericInstanceFilterRelatedInstanceDescription.alias]].
15
+ * If more than one property of the same related instance is used, they will share the same alias.
16
+ */
17
+ relatedInstances: GenericInstanceFilterRelatedInstanceDescription[];
18
+ /**
19
+ * List of class names whose properties are used in rules. Might be used to find common base class when building
20
+ * filter for instances of different classes.
21
+ */
22
+ propertyClassNames: string[];
23
+ /**
24
+ * List of class names which will be used for additionally only querying instances of specific classes.
25
+ */
26
+ filteredClassNames?: string[];
27
+ }
28
+ /**
29
+ * Type definition that describes operators supported by [[GenericInstanceFilterRule]].
30
+ * @beta
31
+ */
32
+ export type GenericInstanceFilterRuleOperator = "is-equal" | "is-not-equal" | "is-null" | "is-not-null" | "is-true" | "is-false" | "less" | "less-or-equal" | "greater" | "greater-or-equal" | "like";
33
+ /**
34
+ * Type definition that describes value of [[GenericInstanceFilterRule]].
35
+ * @beta
36
+ */
37
+ export interface GenericInstanceFilterRuleValue {
38
+ displayValue: string;
39
+ rawValue: GenericInstanceFilterRuleValue.Values;
40
+ }
41
+ /** @beta */
42
+ export declare namespace GenericInstanceFilterRuleValue {
43
+ interface Point2d {
44
+ x: number;
45
+ y: number;
46
+ }
47
+ interface Point3d {
48
+ x: number;
49
+ y: number;
50
+ z: number;
51
+ }
52
+ interface InstanceKey {
53
+ id: string;
54
+ className: string;
55
+ }
56
+ /** Checks if supplied value is [[GenericInstanceFilterRuleValue.Point2d]] like. Returns `true` for `Point2d` and [[GenericInstanceFilterRuleValue.Point3d]]. */
57
+ function isPoint2d(value: GenericInstanceFilterRuleValue.Values): value is GenericInstanceFilterRuleValue.Point2d;
58
+ /** Checks if supplied value is [[GenericInstanceFilterRuleValue.Point3d]] like. */
59
+ function isPoint3d(value: GenericInstanceFilterRuleValue.Values): value is GenericInstanceFilterRuleValue.Point3d;
60
+ /** Checks if supplied value is [[GenericInstanceFilterRuleValue.InstanceKey]] like. */
61
+ function isInstanceKey(value: GenericInstanceFilterRuleValue.Values): value is GenericInstanceFilterRuleValue.InstanceKey;
62
+ type Values = string | number | boolean | Date | GenericInstanceFilterRuleValue.Point2d | GenericInstanceFilterRuleValue.Point3d | GenericInstanceFilterRuleValue.InstanceKey;
63
+ }
64
+ /**
65
+ * Defines single filter rule.
66
+ * @beta
67
+ */
68
+ export interface GenericInstanceFilterRule {
69
+ /**
70
+ * Alias of the source to access this property. For related properties `sourceAlias` should match
71
+ * [[GenericInstanceFilterRelatedInstanceDescription.alias]] of one [[GenericInstanceFilter.relatedInstances]].
72
+ */
73
+ sourceAlias: string;
74
+ /**
75
+ * Property name for accessing property value.
76
+ */
77
+ propertyName: string;
78
+ /**
79
+ * Comparison operator that should be used to compare property value.
80
+ */
81
+ operator: GenericInstanceFilterRuleOperator;
82
+ /**
83
+ * Value to which property values is compared to. For unary operators value is `undefined`.
84
+ */
85
+ value?: GenericInstanceFilterRuleValue;
86
+ /**
87
+ * Type name of the property.
88
+ */
89
+ propertyTypeName: string;
90
+ }
91
+ /**
92
+ * Type definition that describes operators supported by [[GenericInstanceFilterRuleGroup]].
93
+ * @beta
94
+ */
95
+ export type GenericInstanceFilterRuleGroupOperator = "and" | "or";
96
+ /**
97
+ * Group of filter rules joined by logical operator.
98
+ * @beta
99
+ */
100
+ export interface GenericInstanceFilterRuleGroup {
101
+ /**
102
+ * Operator that should be used to join rules.
103
+ */
104
+ operator: GenericInstanceFilterRuleGroupOperator;
105
+ /**
106
+ * List of rules or rule groups that should be joined by `operator`.
107
+ */
108
+ rules: Array<GenericInstanceFilterRule | GenericInstanceFilterRuleGroup>;
109
+ }
110
+ /**
111
+ * Describes related instance whose property was used in the filter.
112
+ * @beta
113
+ */
114
+ export interface GenericInstanceFilterRelatedInstanceDescription {
115
+ /**
116
+ * Describes path that should be used to reach related instance from the source.
117
+ */
118
+ path: GenericInstanceFilterRelationshipStep[];
119
+ /**
120
+ * Related instance alias. This alias match [[GenericInstanceFilterRule.sourceAlias]] in all filter rules where
121
+ * properties of this related instance is used.
122
+ */
123
+ alias: string;
124
+ }
125
+ /**
126
+ * Describes single step between source class and target class.
127
+ * @beta
128
+ */
129
+ export interface GenericInstanceFilterRelationshipStep {
130
+ /** Full class name of the source class, e.g. `BisCore:Element`. */
131
+ sourceClassName: string;
132
+ /** Full class name of the target class, e.g. `BisCore:Element`. */
133
+ targetClassName: string;
134
+ /** Full class name of the relationship class that should be used to move from source to target, e.g. `BisCore:ElementOwnsChildElements`. */
135
+ relationshipClassName: string;
136
+ /**
137
+ * A flag that describes if this step follows relationship class in forward or backward direction.
138
+ * If the step follows relationship in forward direction then `sourceClassName` matches relationship's source class and `targetClassName` matches relationship's target class.
139
+ * Otherwise, `sourceClassName` matches relationship's target class and `targetClassName` matches relationship's source class.
140
+ */
141
+ isForwardRelationship: boolean;
142
+ }
143
+ /** @beta */
144
+ export declare namespace GenericInstanceFilter {
145
+ /**
146
+ * Function that checks if supplied object is [[GenericInstanceFilterRuleGroup]].
147
+ * @beta
148
+ */
149
+ function isFilterRuleGroup(obj: GenericInstanceFilterRule | GenericInstanceFilterRuleGroup): obj is GenericInstanceFilterRuleGroup;
150
+ }
151
+ //# sourceMappingURL=GenericInstanceFilter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GenericInstanceFilter.d.ts","sourceRoot":"","sources":["../../src/GenericInstanceFilter.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IACpC,uEAAuE;IACvE,KAAK,EAAE,yBAAyB,GAAG,8BAA8B,CAAC;IAClE;;;;;OAKG;IACH,gBAAgB,EAAE,+CAA+C,EAAE,CAAC;IACpE;;;OAGG;IACH,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;CAC/B;AAED;;;GAGG;AACH,MAAM,MAAM,iCAAiC,GACzC,UAAU,GACV,cAAc,GACd,SAAS,GACT,aAAa,GACb,SAAS,GACT,UAAU,GACV,MAAM,GACN,eAAe,GACf,SAAS,GACT,kBAAkB,GAClB,MAAM,CAAC;AAEX;;;GAGG;AACH,MAAM,WAAW,8BAA8B;IAC7C,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,8BAA8B,CAAC,MAAM,CAAC;CACjD;AAED,YAAY;AACZ,yBAAiB,8BAA8B,CAAC;IAC9C,UAAiB,OAAO;QACtB,CAAC,EAAE,MAAM,CAAC;QACV,CAAC,EAAE,MAAM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G;AACH,MAAM,WAAW,+CAA+C;IAC9D;;OAEG;IACH,IAAI,EAAE,qCAAqC,EAAE,CAAC;IAC9C;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AACH,MAAM,WAAW,qCAAqC;IACpD,mEAAmE;IACnE,eAAe,EAAE,MAAM,CAAC;IACxB,mEAAmE;IACnE,eAAe,EAAE,MAAM,CAAC;IACxB,4IAA4I;IAC5I,qBAAqB,EAAE,MAAM,CAAC;IAC9B;;;;OAIG;IACH,qBAAqB,EAAE,OAAO,CAAC;CAChC;AAED,YAAY;AACZ,yBAAiB,qBAAqB,CAAC;IACrC;;;OAGG;IACH,SAAgB,iBAAiB,CAAC,GAAG,EAAE,yBAAyB,GAAG,8BAA8B,GAAG,GAAG,IAAI,8BAA8B,CAExI;CACF"}
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ /*---------------------------------------------------------------------------------------------
3
+ * Copyright (c) Bentley Systems, Incorporated. All rights reserved.
4
+ * See LICENSE.md in the project root for license terms and full copyright notice.
5
+ *--------------------------------------------------------------------------------------------*/
6
+ /** @packageDocumentation
7
+ * @module Utils
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.GenericInstanceFilter = exports.GenericInstanceFilterRuleValue = void 0;
11
+ /** @beta */
12
+ var GenericInstanceFilterRuleValue;
13
+ (function (GenericInstanceFilterRuleValue) {
14
+ /** Checks if supplied value is [[GenericInstanceFilterRuleValue.Point2d]] like. Returns `true` for `Point2d` and [[GenericInstanceFilterRuleValue.Point3d]]. */
15
+ function isPoint2d(value) {
16
+ return value.x !== undefined && value.y !== undefined;
17
+ }
18
+ GenericInstanceFilterRuleValue.isPoint2d = isPoint2d;
19
+ /** Checks if supplied value is [[GenericInstanceFilterRuleValue.Point3d]] like. */
20
+ function isPoint3d(value) {
21
+ return isPoint2d(value) && value.z !== undefined;
22
+ }
23
+ GenericInstanceFilterRuleValue.isPoint3d = isPoint3d;
24
+ /** Checks if supplied value is [[GenericInstanceFilterRuleValue.InstanceKey]] like. */
25
+ function isInstanceKey(value) {
26
+ return value !== undefined && value.className !== undefined;
27
+ }
28
+ GenericInstanceFilterRuleValue.isInstanceKey = isInstanceKey;
29
+ })(GenericInstanceFilterRuleValue = exports.GenericInstanceFilterRuleValue || (exports.GenericInstanceFilterRuleValue = {}));
30
+ /** @beta */
31
+ var GenericInstanceFilter;
32
+ (function (GenericInstanceFilter) {
33
+ /**
34
+ * Function that checks if supplied object is [[GenericInstanceFilterRuleGroup]].
35
+ * @beta
36
+ */
37
+ function isFilterRuleGroup(obj) {
38
+ return obj.rules !== undefined;
39
+ }
40
+ GenericInstanceFilter.isFilterRuleGroup = isFilterRuleGroup;
41
+ })(GenericInstanceFilter = exports.GenericInstanceFilter || (exports.GenericInstanceFilter = {}));
42
+ //# sourceMappingURL=GenericInstanceFilter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GenericInstanceFilter.js","sourceRoot":"","sources":["../../src/GenericInstanceFilter.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAqDH,YAAY;AACZ,IAAiB,8BAA8B,CAkC9C;AAlCD,WAAiB,8BAA8B;IAc7C,gKAAgK;IAChK,SAAgB,SAAS,CAAC,KAA4C;QACpE,OAAQ,KAAgD,CAAC,CAAC,KAAK,SAAS,IAAK,KAAgD,CAAC,CAAC,KAAK,SAAS,CAAC;IAChJ,CAAC;IAFe,wCAAS,YAExB,CAAA;IACD,mFAAmF;IACnF,SAAgB,SAAS,CAAC,KAA4C;QACpE,OAAO,SAAS,CAAC,KAAK,CAAC,IAAK,KAAgD,CAAC,CAAC,KAAK,SAAS,CAAC;IAC/F,CAAC;IAFe,wCAAS,YAExB,CAAA;IACD,uFAAuF;IACvF,SAAgB,aAAa,CAAC,KAA4C;QACxE,OAAQ,KAAoD,KAAK,SAAS,IAAK,KAAoD,CAAC,SAAS,KAAK,SAAS,CAAC;IAC9J,CAAC;IAFe,4CAAa,gBAE5B,CAAA;AASH,CAAC,EAlCgB,8BAA8B,GAA9B,sCAA8B,KAA9B,sCAA8B,QAkC9C;AAsFD,YAAY;AACZ,IAAiB,qBAAqB,CAQrC;AARD,WAAiB,qBAAqB;IACpC;;;OAGG;IACH,SAAgB,iBAAiB,CAAC,GAA+D;QAC/F,OAAQ,GAAsC,CAAC,KAAK,KAAK,SAAS,CAAC;IACrE,CAAC;IAFe,uCAAiB,oBAEhC,CAAA;AACH,CAAC,EARgB,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAQrC","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 Utils\r\n */\r\n\r\n/**\r\n * Generic instance filter that has all the necessary information to build filtering query.\r\n * @beta\r\n */\r\nexport interface GenericInstanceFilter {\r\n /** Single filter rule or multiple rules joined by logical operator. */\r\n rules: GenericInstanceFilterRule | GenericInstanceFilterRuleGroup;\r\n /**\r\n * Information about related instances that has access to the properties used in filter.\r\n * These can be used to create `JOIN` clause when building `ECSQL` query. Each related property\r\n * used in rule will have [[GenericInstanceFilterRule.sourceAlias]] that matches [[GenericInstanceFilterRelatedInstanceDescription.alias]].\r\n * If more than one property of the same related instance is used, they will share the same alias.\r\n */\r\n relatedInstances: GenericInstanceFilterRelatedInstanceDescription[];\r\n /**\r\n * List of class names whose properties are used in rules. Might be used to find common base class when building\r\n * filter for instances of different classes.\r\n */\r\n propertyClassNames: string[];\r\n /**\r\n * List of class names which will be used for additionally only querying instances of specific classes.\r\n */\r\n filteredClassNames?: string[];\r\n}\r\n\r\n/**\r\n * Type definition that describes operators supported by [[GenericInstanceFilterRule]].\r\n * @beta\r\n */\r\nexport type GenericInstanceFilterRuleOperator =\r\n | \"is-equal\"\r\n | \"is-not-equal\"\r\n | \"is-null\"\r\n | \"is-not-null\"\r\n | \"is-true\"\r\n | \"is-false\"\r\n | \"less\"\r\n | \"less-or-equal\"\r\n | \"greater\"\r\n | \"greater-or-equal\"\r\n | \"like\";\r\n\r\n/**\r\n * Type definition that describes value of [[GenericInstanceFilterRule]].\r\n * @beta\r\n */\r\nexport interface GenericInstanceFilterRuleValue {\r\n displayValue: string;\r\n rawValue: GenericInstanceFilterRuleValue.Values;\r\n}\r\n\r\n/** @beta */\r\nexport namespace GenericInstanceFilterRuleValue {\r\n export interface Point2d {\r\n x: number;\r\n y: number;\r\n }\r\n export interface Point3d {\r\n x: number;\r\n y: number;\r\n z: number;\r\n }\r\n export interface InstanceKey {\r\n id: string;\r\n className: string;\r\n }\r\n /** Checks if supplied value is [[GenericInstanceFilterRuleValue.Point2d]] like. Returns `true` for `Point2d` and [[GenericInstanceFilterRuleValue.Point3d]]. */\r\n export function isPoint2d(value: GenericInstanceFilterRuleValue.Values): value is GenericInstanceFilterRuleValue.Point2d {\r\n return (value as GenericInstanceFilterRuleValue.Point2d).x !== undefined && (value as GenericInstanceFilterRuleValue.Point2d).y !== undefined;\r\n }\r\n /** Checks if supplied value is [[GenericInstanceFilterRuleValue.Point3d]] like. */\r\n export function isPoint3d(value: GenericInstanceFilterRuleValue.Values): value is GenericInstanceFilterRuleValue.Point3d {\r\n return isPoint2d(value) && (value as GenericInstanceFilterRuleValue.Point3d).z !== undefined;\r\n }\r\n /** Checks if supplied value is [[GenericInstanceFilterRuleValue.InstanceKey]] like. */\r\n export function isInstanceKey(value: GenericInstanceFilterRuleValue.Values): value is GenericInstanceFilterRuleValue.InstanceKey {\r\n return (value as GenericInstanceFilterRuleValue.InstanceKey) !== undefined && (value as GenericInstanceFilterRuleValue.InstanceKey).className !== undefined;\r\n }\r\n export type Values =\r\n | string\r\n | number\r\n | boolean\r\n | Date\r\n | GenericInstanceFilterRuleValue.Point2d\r\n | GenericInstanceFilterRuleValue.Point3d\r\n | GenericInstanceFilterRuleValue.InstanceKey;\r\n}\r\n\r\n/**\r\n * Defines single filter rule.\r\n * @beta\r\n */\r\nexport interface GenericInstanceFilterRule {\r\n /**\r\n * Alias of the source to access this property. For related properties `sourceAlias` should match\r\n * [[GenericInstanceFilterRelatedInstanceDescription.alias]] of one [[GenericInstanceFilter.relatedInstances]].\r\n */\r\n sourceAlias: string;\r\n /**\r\n * Property name for accessing property value.\r\n */\r\n propertyName: string;\r\n /**\r\n * Comparison operator that should be used to compare property value.\r\n */\r\n operator: GenericInstanceFilterRuleOperator;\r\n /**\r\n * Value to which property values is compared to. For unary operators value is `undefined`.\r\n */\r\n value?: GenericInstanceFilterRuleValue;\r\n /**\r\n * Type name of the property.\r\n */\r\n propertyTypeName: string;\r\n}\r\n\r\n/**\r\n * Type definition that describes operators supported by [[GenericInstanceFilterRuleGroup]].\r\n * @beta\r\n */\r\nexport type GenericInstanceFilterRuleGroupOperator = \"and\" | \"or\";\r\n\r\n/**\r\n * Group of filter rules joined by logical operator.\r\n * @beta\r\n */\r\nexport interface GenericInstanceFilterRuleGroup {\r\n /**\r\n * Operator that should be used to join rules.\r\n */\r\n operator: GenericInstanceFilterRuleGroupOperator;\r\n /**\r\n * List of rules or rule groups that should be joined by `operator`.\r\n */\r\n rules: Array<GenericInstanceFilterRule | GenericInstanceFilterRuleGroup>;\r\n}\r\n\r\n/**\r\n * Describes related instance whose property was used in the filter.\r\n * @beta\r\n */\r\nexport interface GenericInstanceFilterRelatedInstanceDescription {\r\n /**\r\n * Describes path that should be used to reach related instance from the source.\r\n */\r\n path: GenericInstanceFilterRelationshipStep[];\r\n /**\r\n * Related instance alias. This alias match [[GenericInstanceFilterRule.sourceAlias]] in all filter rules where\r\n * properties of this related instance is used.\r\n */\r\n alias: string;\r\n}\r\n\r\n/**\r\n * Describes single step between source class and target class.\r\n * @beta\r\n */\r\nexport interface GenericInstanceFilterRelationshipStep {\r\n /** Full class name of the source class, e.g. `BisCore:Element`. */\r\n sourceClassName: string;\r\n /** Full class name of the target class, e.g. `BisCore:Element`. */\r\n targetClassName: string;\r\n /** Full class name of the relationship class that should be used to move from source to target, e.g. `BisCore:ElementOwnsChildElements`. */\r\n relationshipClassName: string;\r\n /**\r\n * A flag that describes if this step follows relationship class in forward or backward direction.\r\n * If the step follows relationship in forward direction then `sourceClassName` matches relationship's source class and `targetClassName` matches relationship's target class.\r\n * Otherwise, `sourceClassName` matches relationship's target class and `targetClassName` matches relationship's source class.\r\n */\r\n isForwardRelationship: boolean;\r\n}\r\n\r\n/** @beta */\r\nexport namespace GenericInstanceFilter {\r\n /**\r\n * Function that checks if supplied object is [[GenericInstanceFilterRuleGroup]].\r\n * @beta\r\n */\r\n export function isFilterRuleGroup(obj: GenericInstanceFilterRule | GenericInstanceFilterRuleGroup): obj is GenericInstanceFilterRuleGroup {\r\n return (obj as GenericInstanceFilterRuleGroup).rules !== undefined;\r\n }\r\n}\r\n"]}
@@ -51,15 +51,19 @@ export interface TextureMapProps {
51
51
  pattern_mapping?: TextureMapping.Mode;
52
52
  /** Weight at which to combine diffuse image and color; if undefined, defaults to 1.0 */
53
53
  pattern_weight?: number;
54
- /** If true, override the mapping mode with constant LOD mapping for the normal map, defaults to false. */
54
+ /** If true, override the mapping mode with constant LOD mapping for the normal map, defaults to false.
55
+ * @deprecated in 4.4. It never functioned properly - use [[pattern_useconstantlod]] instead.
56
+ */
55
57
  pattern_useConstantLod?: boolean;
56
- /** The number of times the texture is repeated if pattern_useConstantLod is true. Increasing this will make the texture pattern appear smaller, decreasing it will make it larger. Defaults to 1.*/
58
+ /** If true, override the mapping mode with constant LOD mapping for the normal map, defaults to false. */
59
+ pattern_useconstantlod?: boolean;
60
+ /** The number of times the texture is repeated if pattern_useconstantlod is true. Increasing this will make the texture pattern appear smaller, decreasing it will make it larger. Defaults to 1.*/
57
61
  pattern_constantlod_repetitions?: number;
58
- /** An offset in world units used to shift the texture when pattern_useConstantLod is true. Defaults to (0, 0). */
62
+ /** An offset in world units used to shift the texture when pattern_useconstantlod is true. Defaults to (0, 0). */
59
63
  pattern_constantlod_offset?: Point2dProps;
60
- /** The minimum distance (from the eye to the surface) at which to clamp the texture size when pattern_useConstantLod is true. Defaults to 1. */
64
+ /** The minimum distance (from the eye to the surface) at which to clamp the texture size when pattern_useconstantlod is true. Defaults to 1. */
61
65
  pattern_constantlod_mindistanceclamp?: number;
62
- /** The maximum distance (from the eye to the surface) at which to clamp the texture size when pattern_useConstantLod is true. Defaults to 2^32. */
66
+ /** The maximum distance (from the eye to the surface) at which to clamp the texture size when pattern_useconstantlod is true. Defaults to 2^32. */
63
67
  pattern_constantlod_maxdistanceclamp?: number;
64
68
  /** The Id of the persistent [Texture]($backend) element defining the texture image. */
65
69
  TextureId: Id64String;
@@ -1 +1 @@
1
- {"version":3,"file":"MaterialProps.d.ts","sourceRoot":"","sources":["../../src/MaterialProps.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GAAG,MAAM,EAAE,CAAC;AAEtC;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,EAAE,CAAC;AAEpC;;;GAGG;AACH,oBAAY,eAAe;IACzB,wCAAwC;IACxC,QAAQ,IAAI;IACZ,MAAM,IAAI;IACV,WAAW,IAAI;IACf,IAAI,IAAI;IACR,MAAM,IAAI;CACX;AAID;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC9B,qFAAqF;IACrF,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,0EAA0E;IAC1E,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,0EAA0E;IAC1E,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,6GAA6G;IAC7G,aAAa,CAAC,EAAE,YAAY,CAAC;IAC7B,+EAA+E;IAC/E,cAAc,CAAC,EAAE,YAAY,CAAC;IAC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.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAqBH;;;GAGG;AACH,IAAY,eAOX;AAPD,WAAY,eAAe;IACzB,wCAAwC;IACxC,6DAAY,CAAA;IACZ,yDAAU,CAAA;IACV,mEAAe,CAAA;IACf,qDAAQ,CAAA;IACR,yDAAU,CAAA;AACZ,CAAC,EAPW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAO1B;AAwCD;;GAEG;AACH,IAAY,cASX;AATD,WAAY,cAAc;IACxB,wBAAwB;IACxB,mDAAQ,CAAA;IACR;;OAEG;IACH,yDAAgB,CAAA;IAChB,uFAAuF;IACvF,uEAAuB,CAAA;AACzB,CAAC,EATW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QASzB","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 Rendering\r\n */\r\n\r\nimport { Id64String } from \"@itwin/core-bentley\";\r\nimport { DefinitionElementProps } from \"./ElementProps\";\r\nimport { TextureMapping } from \"./TextureMapping\";\r\n\r\n/** Describes a color as an array of three numbers ranging from 0 to 1 where the first entry corresponds to the color's red component,\r\n * the second to green, and the third to blue.\r\n * @see usage in [[RenderMaterialAssetProps]].\r\n * @public\r\n * @extensions\r\n */\r\nexport type RgbFactorProps = number[];\r\n\r\n/** A 2d point specified as an array of 2 numbers [x, y].\r\n * @see usage in [[TextureMapProps]].\r\n * @public\r\n * @extensions\r\n */\r\nexport type Point2dProps = number[];\r\n\r\n/** Describes the units in which a [[TextureMapProps]]' scale is expressed.\r\n * @public\r\n * @extensions\r\n */\r\nexport enum TextureMapUnits {\r\n /** Indicates the scale has no units. */\r\n Relative = 0,\r\n Meters = 3,\r\n Millimeters = 4,\r\n Feet = 5,\r\n Inches = 6,\r\n}\r\n\r\n/* eslint-disable @typescript-eslint/naming-convention */\r\n\r\n/** As part of a [[RenderMaterialAssetProps]], describes how to map a [[RenderTexture]]'s image to the triangles of a mesh to which the material is applied.\r\n * @see [[RenderMaterialAssetMapsProps]] for the supported types of texture mappings.\r\n * @public\r\n * @extensions\r\n */\r\nexport interface TextureMapProps {\r\n /** Angle in degrees to rotate texture when applying; defaults to 0.0 if undefined */\r\n pattern_angle?: number;\r\n /** If true, flip the pattern map in U; if undefined, defaults to false */\r\n pattern_u_flip?: boolean;\r\n /** If true, flip the pattern map in V; if undefined, defaults to false */\r\n pattern_flip?: boolean;\r\n /** X, Y scale to apply to the pattern map; if undefined, defaults to {0,0}, which is almost never useful. */\r\n pattern_scale?: Point2dProps;\r\n /** X, Y offset to apply to the pattern map; if undefined, defaults to {0,0} */\r\n pattern_offset?: Point2dProps;\r\n /** Units to use when applying the scaling; if undefined, defaults to [[TextureMapUnits.Relative]] */\r\n pattern_scalemode?: TextureMapUnits;\r\n /** Mapping mode to use for the texture application; if undefined, defaults to [[TextureMapping.Mode.Parametric]] */\r\n pattern_mapping?: TextureMapping.Mode;\r\n /** Weight at which to combine diffuse image and color; if undefined, defaults to 1.0 */\r\n pattern_weight?: number;\r\n /** If true, override the mapping mode with constant LOD mapping for the normal map, defaults to false. */\r\n pattern_useConstantLod?: boolean;\r\n /** The number of times the texture is repeated if pattern_useConstantLod is true. Increasing this will make the texture pattern appear smaller, decreasing it will make it larger. Defaults to 1.*/\r\n pattern_constantlod_repetitions?: number;\r\n /** An offset in world units used to shift the texture when pattern_useConstantLod is true. Defaults to (0, 0). */\r\n pattern_constantlod_offset?: Point2dProps;\r\n /** The minimum distance (from the eye to the surface) at which to clamp the texture size when pattern_useConstantLod is true. Defaults to 1. */\r\n pattern_constantlod_mindistanceclamp?: number;\r\n /** The maximum distance (from the eye to the surface) at which to clamp the texture size when pattern_useConstantLod is true. Defaults to 2^32. */\r\n pattern_constantlod_maxdistanceclamp?: number;\r\n /** The Id of the persistent [Texture]($backend) element defining the texture image. */\r\n TextureId: Id64String;\r\n}\r\n\r\n/** Flags applied to a [[NormalMapProps]]. The enum values can be combined using bitwise operators.\r\n * @public\r\n */\r\nexport enum NormalMapFlags {\r\n /** No special flags. */\r\n None = 0,\r\n /** Indicates that the Y component of each vector - stored in the texture's green channel - points upward along the positive Y axis and should\r\n * be negated. By default it points downward.\r\n */\r\n GreenUp = 1 << 0,\r\n /** If true, override the mapping mode with constant LOD mapping for the normal map. */\r\n UseConstantLod = 1 << 1,\r\n}\r\n\r\n/** Describes how to apply [normal mapping](https://en.wikipedia.org/wiki/Normal_mapping) to a surface material.\r\n * @see [[RenderMaterialAssetMapsProps.Normal]] to define a normal map for a [[RenderMaterialAssetProps]].\r\n * @public\r\n */\r\nexport interface NormalMapProps extends TextureMapProps {\r\n /** Flags controlling how the normal map is applied. Default: [[NormalMapFlags.None]]. */\r\n NormalFlags?: NormalMapFlags;\r\n}\r\n\r\n/** Describes different types of textures to be applied to a surface material to alter its appearance.\r\n * @note While technically both [[Pattern]] and [[Normal]] can define their own mapping parameters (`pattern_angle`, `pattern_mapping`, etc), in practice\r\n * if both maps are present they are expected to have identical mapping parameters, with the exception of `TextureId`.\r\n * @see [[RenderMaterialAssetProps.Map]] to define the texture maps for a material asset.\r\n * @public\r\n */\r\nexport interface RenderMaterialAssetMapsProps {\r\n /** Maps an image describing the diffuse color of the surface, replacing or mixing with the surface's own color. */\r\n Pattern?: TextureMapProps;\r\n /** Maps a [normal map](https://en.wikipedia.org/wiki/Normal_mapping) to the surface, simulating more complex surface details than are\r\n * present in the surface's geometry.\r\n */\r\n Normal?: NormalMapProps;\r\n /** Maps an image describing detailed minor height variation of the surface geometry. */\r\n Bump?: TextureMapProps;\r\n /** Maps an image describing the diffuse color of the surface, replacing or mixing with the surface's own color. */\r\n Diffuse?: TextureMapProps;\r\n /** Maps an image describing the glossiness of the surface's finish */\r\n Finish?: TextureMapProps;\r\n /** Maps an image describing glowing parts of the surface */\r\n GlowColor?: TextureMapProps;\r\n /** Maps an image describing the reflectiveness of the surface */\r\n Reflect?: TextureMapProps;\r\n /** Maps an image describing the specular component of the surface */\r\n Specular?: TextureMapProps;\r\n /** Maps an image describing the translucency of the surface, how much light comes out the back of the surface */\r\n TranslucencyColor?: TextureMapProps;\r\n /** Maps an image describing the transparency of the surface, how visible objects behind this object are */\r\n TransparentColor?: TextureMapProps;\r\n /** Maps an image describing the displacement of the surface geometry */\r\n Displacement?: TextureMapProps;\r\n}\r\n\r\n/** Describes the graphical properties of a [RenderMaterialElement]($backend) as part of a [[RenderMaterialProps]].\r\n * This representation is used to persist the material properties into the [IModelDb]($backend), but is unwieldy and verbose.\r\n * @see [RenderMaterialElementParams]($backend) for a somewhat more ergonomic representation.\r\n * @public\r\n * @extensions\r\n */\r\nexport interface RenderMaterialAssetProps {\r\n /** If true, this material has a fill/diffuse color; if undefined, defaults to false */\r\n HasBaseColor?: boolean;\r\n /** Surface color used for fill or diffuse illumination; if undefined, defaults to black */\r\n color?: RgbFactorProps;\r\n /** If true, this material has a specular color; if undefined, defaults to false */\r\n HasSpecularColor?: boolean;\r\n /** Surface color used for specular illumination; if undefined, defaults to black */\r\n specular_color?: RgbFactorProps;\r\n /** If true, this material has a specular exponent; if undefined, defaults to false */\r\n HasFinish?: boolean;\r\n /** Specular exponent (surface shininess); range is 0 to 128; if undefined, defaults to 13.5 */\r\n finish?: number;\r\n /** If true, this material has surface transparency; if undefined, defaults to false */\r\n HasTransmit?: boolean;\r\n /** Surface transparency; if undefined, defaults to 0.0 */\r\n transmit?: number;\r\n /** If true, this material has a value for diffuse reflectivity; if undefined, defaults to false */\r\n HasDiffuse?: boolean;\r\n /** Surface diffuse reflectivity; if undefined, defaults to 0.6 */\r\n diffuse?: number;\r\n /** If true, this material has a value for specular reflectivity; if undefined, defaults to false. If false, specular value is actually set to 0.0 */\r\n HasSpecular?: boolean;\r\n /** Surface specular reflectivity; if undefined, defaults to 0.4 */\r\n specular?: number;\r\n /** If true, this material has a value for environmental reflectivity; if undefined, defaults to false */\r\n HasReflect?: boolean;\r\n /** Surface environmental reflectivity; stored as fraction of specular in V8 material settings; if undefined defaults to 0.0 */\r\n reflect?: number;\r\n /** If true, this material has a surface reflectance color; if undefined, defaults to false. If false, reflectance color is actually set to specular color */\r\n HasReflectColor?: boolean;\r\n /** Surface reflectance color; if undefined, defaults to black */\r\n reflect_color?: RgbFactorProps;\r\n /** A scale by which to multiply the components of the normals read from [[Map.Normal]], if a normal map is defined.\r\n * Default: 1.0\r\n */\r\n pbr_normal?: number;\r\n /** An optional set of texture maps associated with this material. */\r\n Map?: RenderMaterialAssetMapsProps;\r\n}\r\n\r\n/** Properties that define a [RenderMaterialElement]($backend).\r\n * @see [[RenderMaterial]] for the representation used by the display system.\r\n * @public\r\n * @extensions\r\n */\r\nexport interface RenderMaterialProps extends DefinitionElementProps {\r\n /** The name of a palette that can be used to categorize multiple materials. */\r\n paletteName: string;\r\n /** An optional description of the material. */\r\n description?: string;\r\n jsonProperties?: {\r\n /** A container for various \"assets\" describing aspects of the material. */\r\n materialAssets?: {\r\n /** Properties of the material describing how it is displayed. */\r\n renderMaterial?: RenderMaterialAssetProps;\r\n };\r\n };\r\n}\r\n"]}
1
+ {"version":3,"file":"MaterialProps.js","sourceRoot":"","sources":["../../src/MaterialProps.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAqBH;;;GAGG;AACH,IAAY,eAOX;AAPD,WAAY,eAAe;IACzB,wCAAwC;IACxC,6DAAY,CAAA;IACZ,yDAAU,CAAA;IACV,mEAAe,CAAA;IACf,qDAAQ,CAAA;IACR,yDAAU,CAAA;AACZ,CAAC,EAPW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAO1B;AA4CD;;GAEG;AACH,IAAY,cASX;AATD,WAAY,cAAc;IACxB,wBAAwB;IACxB,mDAAQ,CAAA;IACR;;OAEG;IACH,yDAAgB,CAAA;IAChB,uFAAuF;IACvF,uEAAuB,CAAA;AACzB,CAAC,EATW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QASzB","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 Rendering\r\n */\r\n\r\nimport { Id64String } from \"@itwin/core-bentley\";\r\nimport { DefinitionElementProps } from \"./ElementProps\";\r\nimport { TextureMapping } from \"./TextureMapping\";\r\n\r\n/** Describes a color as an array of three numbers ranging from 0 to 1 where the first entry corresponds to the color's red component,\r\n * the second to green, and the third to blue.\r\n * @see usage in [[RenderMaterialAssetProps]].\r\n * @public\r\n * @extensions\r\n */\r\nexport type RgbFactorProps = number[];\r\n\r\n/** A 2d point specified as an array of 2 numbers [x, y].\r\n * @see usage in [[TextureMapProps]].\r\n * @public\r\n * @extensions\r\n */\r\nexport type Point2dProps = number[];\r\n\r\n/** Describes the units in which a [[TextureMapProps]]' scale is expressed.\r\n * @public\r\n * @extensions\r\n */\r\nexport enum TextureMapUnits {\r\n /** Indicates the scale has no units. */\r\n Relative = 0,\r\n Meters = 3,\r\n Millimeters = 4,\r\n Feet = 5,\r\n Inches = 6,\r\n}\r\n\r\n/* eslint-disable @typescript-eslint/naming-convention */\r\n\r\n/** As part of a [[RenderMaterialAssetProps]], describes how to map a [[RenderTexture]]'s image to the triangles of a mesh to which the material is applied.\r\n * @see [[RenderMaterialAssetMapsProps]] for the supported types of texture mappings.\r\n * @public\r\n * @extensions\r\n */\r\nexport interface TextureMapProps {\r\n /** Angle in degrees to rotate texture when applying; defaults to 0.0 if undefined */\r\n pattern_angle?: number;\r\n /** If true, flip the pattern map in U; if undefined, defaults to false */\r\n pattern_u_flip?: boolean;\r\n /** If true, flip the pattern map in V; if undefined, defaults to false */\r\n pattern_flip?: boolean;\r\n /** X, Y scale to apply to the pattern map; if undefined, defaults to {0,0}, which is almost never useful. */\r\n pattern_scale?: Point2dProps;\r\n /** X, Y offset to apply to the pattern map; if undefined, defaults to {0,0} */\r\n pattern_offset?: Point2dProps;\r\n /** Units to use when applying the scaling; if undefined, defaults to [[TextureMapUnits.Relative]] */\r\n pattern_scalemode?: TextureMapUnits;\r\n /** Mapping mode to use for the texture application; if undefined, defaults to [[TextureMapping.Mode.Parametric]] */\r\n pattern_mapping?: TextureMapping.Mode;\r\n /** Weight at which to combine diffuse image and color; if undefined, defaults to 1.0 */\r\n pattern_weight?: number;\r\n /** If true, override the mapping mode with constant LOD mapping for the normal map, defaults to false.\r\n * @deprecated in 4.4. It never functioned properly - use [[pattern_useconstantlod]] instead.\r\n */\r\n pattern_useConstantLod?: boolean;\r\n /** If true, override the mapping mode with constant LOD mapping for the normal map, defaults to false. */\r\n pattern_useconstantlod?: boolean;\r\n /** The number of times the texture is repeated if pattern_useconstantlod is true. Increasing this will make the texture pattern appear smaller, decreasing it will make it larger. Defaults to 1.*/\r\n pattern_constantlod_repetitions?: number;\r\n /** An offset in world units used to shift the texture when pattern_useconstantlod is true. Defaults to (0, 0). */\r\n pattern_constantlod_offset?: Point2dProps;\r\n /** The minimum distance (from the eye to the surface) at which to clamp the texture size when pattern_useconstantlod is true. Defaults to 1. */\r\n pattern_constantlod_mindistanceclamp?: number;\r\n /** The maximum distance (from the eye to the surface) at which to clamp the texture size when pattern_useconstantlod is true. Defaults to 2^32. */\r\n pattern_constantlod_maxdistanceclamp?: number;\r\n /** The Id of the persistent [Texture]($backend) element defining the texture image. */\r\n TextureId: Id64String;\r\n}\r\n\r\n/** Flags applied to a [[NormalMapProps]]. The enum values can be combined using bitwise operators.\r\n * @public\r\n */\r\nexport enum NormalMapFlags {\r\n /** No special flags. */\r\n None = 0,\r\n /** Indicates that the Y component of each vector - stored in the texture's green channel - points upward along the positive Y axis and should\r\n * be negated. By default it points downward.\r\n */\r\n GreenUp = 1 << 0,\r\n /** If true, override the mapping mode with constant LOD mapping for the normal map. */\r\n UseConstantLod = 1 << 1,\r\n}\r\n\r\n/** Describes how to apply [normal mapping](https://en.wikipedia.org/wiki/Normal_mapping) to a surface material.\r\n * @see [[RenderMaterialAssetMapsProps.Normal]] to define a normal map for a [[RenderMaterialAssetProps]].\r\n * @public\r\n */\r\nexport interface NormalMapProps extends TextureMapProps {\r\n /** Flags controlling how the normal map is applied. Default: [[NormalMapFlags.None]]. */\r\n NormalFlags?: NormalMapFlags;\r\n}\r\n\r\n/** Describes different types of textures to be applied to a surface material to alter its appearance.\r\n * @note While technically both [[Pattern]] and [[Normal]] can define their own mapping parameters (`pattern_angle`, `pattern_mapping`, etc), in practice\r\n * if both maps are present they are expected to have identical mapping parameters, with the exception of `TextureId`.\r\n * @see [[RenderMaterialAssetProps.Map]] to define the texture maps for a material asset.\r\n * @public\r\n */\r\nexport interface RenderMaterialAssetMapsProps {\r\n /** Maps an image describing the diffuse color of the surface, replacing or mixing with the surface's own color. */\r\n Pattern?: TextureMapProps;\r\n /** Maps a [normal map](https://en.wikipedia.org/wiki/Normal_mapping) to the surface, simulating more complex surface details than are\r\n * present in the surface's geometry.\r\n */\r\n Normal?: NormalMapProps;\r\n /** Maps an image describing detailed minor height variation of the surface geometry. */\r\n Bump?: TextureMapProps;\r\n /** Maps an image describing the diffuse color of the surface, replacing or mixing with the surface's own color. */\r\n Diffuse?: TextureMapProps;\r\n /** Maps an image describing the glossiness of the surface's finish */\r\n Finish?: TextureMapProps;\r\n /** Maps an image describing glowing parts of the surface */\r\n GlowColor?: TextureMapProps;\r\n /** Maps an image describing the reflectiveness of the surface */\r\n Reflect?: TextureMapProps;\r\n /** Maps an image describing the specular component of the surface */\r\n Specular?: TextureMapProps;\r\n /** Maps an image describing the translucency of the surface, how much light comes out the back of the surface */\r\n TranslucencyColor?: TextureMapProps;\r\n /** Maps an image describing the transparency of the surface, how visible objects behind this object are */\r\n TransparentColor?: TextureMapProps;\r\n /** Maps an image describing the displacement of the surface geometry */\r\n Displacement?: TextureMapProps;\r\n}\r\n\r\n/** Describes the graphical properties of a [RenderMaterialElement]($backend) as part of a [[RenderMaterialProps]].\r\n * This representation is used to persist the material properties into the [IModelDb]($backend), but is unwieldy and verbose.\r\n * @see [RenderMaterialElementParams]($backend) for a somewhat more ergonomic representation.\r\n * @public\r\n * @extensions\r\n */\r\nexport interface RenderMaterialAssetProps {\r\n /** If true, this material has a fill/diffuse color; if undefined, defaults to false */\r\n HasBaseColor?: boolean;\r\n /** Surface color used for fill or diffuse illumination; if undefined, defaults to black */\r\n color?: RgbFactorProps;\r\n /** If true, this material has a specular color; if undefined, defaults to false */\r\n HasSpecularColor?: boolean;\r\n /** Surface color used for specular illumination; if undefined, defaults to black */\r\n specular_color?: RgbFactorProps;\r\n /** If true, this material has a specular exponent; if undefined, defaults to false */\r\n HasFinish?: boolean;\r\n /** Specular exponent (surface shininess); range is 0 to 128; if undefined, defaults to 13.5 */\r\n finish?: number;\r\n /** If true, this material has surface transparency; if undefined, defaults to false */\r\n HasTransmit?: boolean;\r\n /** Surface transparency; if undefined, defaults to 0.0 */\r\n transmit?: number;\r\n /** If true, this material has a value for diffuse reflectivity; if undefined, defaults to false */\r\n HasDiffuse?: boolean;\r\n /** Surface diffuse reflectivity; if undefined, defaults to 0.6 */\r\n diffuse?: number;\r\n /** If true, this material has a value for specular reflectivity; if undefined, defaults to false. If false, specular value is actually set to 0.0 */\r\n HasSpecular?: boolean;\r\n /** Surface specular reflectivity; if undefined, defaults to 0.4 */\r\n specular?: number;\r\n /** If true, this material has a value for environmental reflectivity; if undefined, defaults to false */\r\n HasReflect?: boolean;\r\n /** Surface environmental reflectivity; stored as fraction of specular in V8 material settings; if undefined defaults to 0.0 */\r\n reflect?: number;\r\n /** If true, this material has a surface reflectance color; if undefined, defaults to false. If false, reflectance color is actually set to specular color */\r\n HasReflectColor?: boolean;\r\n /** Surface reflectance color; if undefined, defaults to black */\r\n reflect_color?: RgbFactorProps;\r\n /** A scale by which to multiply the components of the normals read from [[Map.Normal]], if a normal map is defined.\r\n * Default: 1.0\r\n */\r\n pbr_normal?: number;\r\n /** An optional set of texture maps associated with this material. */\r\n Map?: RenderMaterialAssetMapsProps;\r\n}\r\n\r\n/** Properties that define a [RenderMaterialElement]($backend).\r\n * @see [[RenderMaterial]] for the representation used by the display system.\r\n * @public\r\n * @extensions\r\n */\r\nexport interface RenderMaterialProps extends DefinitionElementProps {\r\n /** The name of a palette that can be used to categorize multiple materials. */\r\n paletteName: string;\r\n /** An optional description of the material. */\r\n description?: string;\r\n jsonProperties?: {\r\n /** A container for various \"assets\" describing aspects of the material. */\r\n materialAssets?: {\r\n /** Properties of the material describing how it is displayed. */\r\n renderMaterial?: RenderMaterialAssetProps;\r\n };\r\n };\r\n}\r\n"]}
@@ -9,6 +9,18 @@ import { BackgroundMapProps } from "./BackgroundMapSettings";
9
9
  * @deprecated in 3.x. Use string instead.
10
10
  */
11
11
  export type TerrainProviderName = string;
12
+ /** Ids of [Cesium ION assets](https://cesium.com/platform/cesium-ion/content/) providing global terrain data.
13
+ * These values are appropriate to use with [[TerrainSettings.dataSource]] when [[TerrainSettings.providerName]] is set to "CesiumWorldTerrain".
14
+ * You may alternatively use the Id of any ION asset to which you have access.
15
+ * @see [[TerrainSettings.fromCesiumIonAsset]] to create TerrainSettings that obtain terrain from a specified ION asset.
16
+ * @public
17
+ */
18
+ export declare enum CesiumTerrainAssetId {
19
+ /** Default [global 3d terrain](https://cesium.com/platform/cesium-ion/content/cesium-world-terrain/). */
20
+ Default = "1",
21
+ /** Global 3d terrain that includes [bathymetry](https://cesium.com/platform/cesium-ion/content/cesium-world-bathymetry/) (seafloor) terrain. */
22
+ Bathymetry = "2426648"
23
+ }
12
24
  /** JSON representation of the settings of the terrain applied to background map display by a [[DisplayStyle]].
13
25
  * @see [[DisplayStyleSettingsProps]]
14
26
  * @see [[BackgroundMapProps]]
@@ -20,6 +32,12 @@ export interface TerrainProps {
20
32
  * If omitted, it defaults to "CesiumWorldTerrain".
21
33
  */
22
34
  providerName?: string;
35
+ /** Identifies the specific terrain data source to be supplied by the [TerrainProvider]($frontend) identified by [[providerName]],
36
+ * for those providers that support multiple data sources.
37
+ * For example, the "CesiumWorldTerrain" provider uses this field to store a [[CesiumTerrainAssetId]].
38
+ * Default value: an empty string.
39
+ */
40
+ dataSource?: string;
23
41
  /** A value greater than one will cause terrain height to be exaggerated/scaled.false (or 1.0) indicate no exaggeration. Default value: 1.0 */
24
42
  exaggeration?: number;
25
43
  /** Applying lighting can help to visualize subtle terrain variation. Default value: true */
@@ -55,6 +73,12 @@ export declare class TerrainSettings {
55
73
  * Defaults to "CesiumWorldTerrain".
56
74
  */
57
75
  readonly providerName: string;
76
+ /** Identifies the specific terrain data source to be supplied by the [TerrainProvider]($frontend) identified by [[providerName]],
77
+ * for those providers that support multiple data sources.
78
+ * For example, the "CesiumWorldTerrain" provider uses this field to store a [[CesiumTerrainAssetId]].
79
+ * Default value: an empty string.
80
+ */
81
+ readonly dataSource: string;
58
82
  /** A value greater than one will cause terrain height to be exaggerated/scaled. 1.0 indicates no exaggeration. Default value: 1.0 */
59
83
  readonly exaggeration: number;
60
84
  /** Applying lighting can help to visualize subtle terrain variations. Default value: false */
@@ -68,8 +92,15 @@ export declare class TerrainSettings {
68
92
  * @internal
69
93
  */
70
94
  get nonLocatable(): true | undefined;
95
+ /** @deprecated in 4.5.x. Use the overload that takes [[TerrainProps]]. */
71
96
  constructor(providerName?: string, exaggeration?: number, applyLighting?: boolean, heightOrigin?: number, heightOriginMode?: TerrainHeightOriginMode);
97
+ constructor(props?: TerrainProps);
72
98
  static fromJSON(json?: TerrainProps): TerrainSettings;
99
+ /** Create settings that obtain terrain from a [Cesium ION asset](https://cesium.com/platform/cesium-ion/content/) such as
100
+ * one of those defined by [[CesiumTerrainAssetId]].
101
+ * @note You must ensure your Cesium ION account has access to the specified asset.
102
+ */
103
+ static fromCesiumIonAsset(assetId?: string, options?: Omit<TerrainProps, "providerName" | "dataSource">): TerrainSettings;
73
104
  toJSON(): TerrainProps;
74
105
  equals(other: TerrainSettings): boolean;
75
106
  /** Returns true if these settings are equivalent to the supplied JSON settings.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;IACrC;;;;OAIG;IACH,SAAgB,UAAU,EAAE,MAAM,CAAC;IACnC,qIAAqI;IACrI,SAAgB,YAAY,EAAE,MAAM,CAAC;IACrC,+FAA+F;IAC/F,SAAgB,aAAa,EAAE,OAAO,CAAC;IACvC,yHAAyH;IACzH,SAAgB,YAAY,EAAE,MAAM,CAAC;IACrC,mGAAmG;IACnG,SAAgB,gBAAgB,EAAE,uBAAuB,CAAC;IAC1D;;;OAGG;IACH,IAAW,YAAY,IAAI,IAAI,GAAG,SAAS,CAE1C;IAED,0EAA0E;gBAC9D,YAAY,CAAC,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,OAAO,EAAE,YAAY,CAAC,EAAE,MAAM,EAAE,gBAAgB,CAAC,EAAE,uBAAuB;gBAExI,KAAK,CAAC,EAAE,YAAY;WAiClB,QAAQ,CAAC,IAAI,CAAC,EAAE,YAAY;IAI1C;;;OAGG;WACW,kBAAkB,CAAC,OAAO,GAAE,MAAqC,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,YAAY,EAAE,cAAc,GAAG,YAAY,CAAC,GAAG,eAAe;IAOvJ,MAAM,IAAI,YAAY;IAkBtB,MAAM,CAAC,KAAK,EAAE,eAAe,GAAG,OAAO;IAK9C,mFAAmF;IAC5E,UAAU,CAAC,IAAI,CAAC,EAAE,kBAAkB,GAAG,OAAO;IAIrD;;;OAGG;IACI,KAAK,CAAC,YAAY,CAAC,EAAE,YAAY,GAAG,eAAe;CAgB3D"}
@@ -7,7 +7,20 @@
7
7
  * @module DisplayStyles
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.TerrainSettings = exports.TerrainHeightOriginMode = void 0;
10
+ exports.TerrainSettings = exports.TerrainHeightOriginMode = exports.CesiumTerrainAssetId = void 0;
11
+ /** Ids of [Cesium ION assets](https://cesium.com/platform/cesium-ion/content/) providing global terrain data.
12
+ * These values are appropriate to use with [[TerrainSettings.dataSource]] when [[TerrainSettings.providerName]] is set to "CesiumWorldTerrain".
13
+ * You may alternatively use the Id of any ION asset to which you have access.
14
+ * @see [[TerrainSettings.fromCesiumIonAsset]] to create TerrainSettings that obtain terrain from a specified ION asset.
15
+ * @public
16
+ */
17
+ var CesiumTerrainAssetId;
18
+ (function (CesiumTerrainAssetId) {
19
+ /** Default [global 3d terrain](https://cesium.com/platform/cesium-ion/content/cesium-world-terrain/). */
20
+ CesiumTerrainAssetId["Default"] = "1";
21
+ /** Global 3d terrain that includes [bathymetry](https://cesium.com/platform/cesium-ion/content/cesium-world-bathymetry/) (seafloor) terrain. */
22
+ CesiumTerrainAssetId["Bathymetry"] = "2426648";
23
+ })(CesiumTerrainAssetId = exports.CesiumTerrainAssetId || (exports.CesiumTerrainAssetId = {}));
11
24
  /** Correction modes for terrain height
12
25
  * @see [[TerrainProps]]
13
26
  * @public
@@ -33,11 +46,24 @@ class TerrainSettings {
33
46
  get nonLocatable() {
34
47
  return this._nonLocatable;
35
48
  }
36
- constructor(providerName = "CesiumWorldTerrain", exaggeration = 1.0, applyLighting = false, heightOrigin = 0.0, heightOriginMode = TerrainHeightOriginMode.Geodetic) {
37
- this.providerName = providerName;
38
- this.exaggeration = Math.min(100, Math.max(0.1, exaggeration));
39
- this.applyLighting = applyLighting;
40
- this.heightOrigin = heightOrigin;
49
+ /** @internal */
50
+ constructor(providerNameOrProps, exaggeration, applyLighting, heightOrigin, heightOriginMode) {
51
+ let providerName;
52
+ let dataSource;
53
+ let nonLocatable;
54
+ if (typeof providerNameOrProps === "string") {
55
+ providerName = providerNameOrProps;
56
+ }
57
+ else if (providerNameOrProps) {
58
+ ({ providerName, dataSource, exaggeration, applyLighting, heightOrigin, heightOriginMode, nonLocatable } = providerNameOrProps);
59
+ }
60
+ this.providerName = providerName ?? "CesiumWorldTerrain";
61
+ this.dataSource = dataSource ?? "";
62
+ this.exaggeration = Math.min(100, Math.max(0.1, exaggeration ?? 1.0));
63
+ this.applyLighting = applyLighting ?? false;
64
+ this.heightOrigin = heightOrigin ?? 0.0;
65
+ if (true === nonLocatable)
66
+ this._nonLocatable = true;
41
67
  switch (heightOriginMode) {
42
68
  case TerrainHeightOriginMode.Ground:
43
69
  case TerrainHeightOriginMode.Geoid:
@@ -49,18 +75,24 @@ class TerrainSettings {
49
75
  }
50
76
  }
51
77
  static fromJSON(json) {
52
- if (undefined === json)
53
- return new TerrainSettings();
54
- const providerName = json?.providerName ?? "CesiumWorldTerrain";
55
- const settings = new TerrainSettings(providerName, json.exaggeration, json.applyLighting, json.heightOrigin, json.heightOriginMode);
56
- if (true === json.nonLocatable)
57
- settings._nonLocatable = true;
58
- return settings;
78
+ return new TerrainSettings(json);
79
+ }
80
+ /** Create settings that obtain terrain from a [Cesium ION asset](https://cesium.com/platform/cesium-ion/content/) such as
81
+ * one of those defined by [[CesiumTerrainAssetId]].
82
+ * @note You must ensure your Cesium ION account has access to the specified asset.
83
+ */
84
+ static fromCesiumIonAsset(assetId = CesiumTerrainAssetId.Default, options) {
85
+ return TerrainSettings.fromJSON({
86
+ ...options,
87
+ dataSource: assetId,
88
+ });
59
89
  }
60
90
  toJSON() {
61
91
  const props = { heightOriginMode: this.heightOriginMode };
62
92
  if ("CesiumWorldTerrain" !== this.providerName)
63
93
  props.providerName = this.providerName;
94
+ if (this.dataSource)
95
+ props.dataSource = this.dataSource;
64
96
  if (1 !== this.exaggeration)
65
97
  props.exaggeration = this.exaggeration;
66
98
  if (this.nonLocatable)
@@ -72,7 +104,7 @@ class TerrainSettings {
72
104
  return props;
73
105
  }
74
106
  equals(other) {
75
- return this.providerName === other.providerName && this.exaggeration === other.exaggeration && this.applyLighting === other.applyLighting
107
+ return this.providerName === other.providerName && this.dataSource === other.dataSource && this.exaggeration === other.exaggeration && this.applyLighting === other.applyLighting
76
108
  && this.heightOrigin === other.heightOrigin && this.heightOriginMode === other.heightOriginMode && this.nonLocatable === other.nonLocatable;
77
109
  }
78
110
  /** Returns true if these settings are equivalent to the supplied JSON settings. */
@@ -88,6 +120,7 @@ class TerrainSettings {
88
120
  return this;
89
121
  const props = {
90
122
  providerName: changedProps.providerName ?? this.providerName,
123
+ dataSource: changedProps.dataSource ?? this.dataSource,
91
124
  exaggeration: changedProps.exaggeration ?? this.exaggeration,
92
125
  nonLocatable: changedProps.nonLocatable ?? this.nonLocatable,
93
126
  applyLighting: changedProps.applyLighting ?? this.applyLighting,
@@ -1 +1 @@
1
- {"version":3,"file":"TerrainSettings.js","sourceRoot":"","sources":["../../src/TerrainSettings.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAqCH;;;;GAIG;AACH,IAAY,uBAOX;AAPD,WAAY,uBAAuB;IACjC,sHAAsH;IACtH,6EAAY,CAAA;IACZ,0GAA0G;IAC1G,uEAAS,CAAA;IACT,yGAAyG;IACzG,yEAAU,CAAA;AACZ,CAAC,EAPW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAOlC;AAED;;GAEG;AACH,MAAa,eAAe;IAc1B;;;OAGG;IACH,IAAW,YAAY;QACrB,OAAO,IAAI,CAAC,aAAa,CAAC;IAC5B,CAAC;IAED,YAAY,eAAuB,oBAAoB,EAAE,eAAuB,GAAG,EAAE,aAAa,GAAG,KAAK,EAAE,YAAY,GAAG,GAAG,EAAE,gBAAgB,GAAG,uBAAuB,CAAC,QAAQ;QACjL,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,YAAY,CAAC,CAAC,CAAC;QAC/D,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,QAAQ,gBAAgB,EAAE;YACxB,KAAK,uBAAuB,CAAC,MAAM,CAAC;YACpC,KAAK,uBAAuB,CAAC,KAAK;gBAChC,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;gB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KAAK,CAAC,YAAY,IAAI,IAAI,CAAC,aAAa,KAAK,KAAK,CAAC,aAAa;eACpI,IAAI,CAAC,YAAY,KAAK,KAAK,CAAC,YAAY,IAAI,IAAI,CAAC,gBAAgB,KAAK,KAAK,CAAC,gBAAgB,IAAI,IAAI,CAAC,YAAY,KAAK,KAAK,CAAC,YAAY,CAAC;IAChJ,CAAC;IAED,mFAAmF;IAC5E,UAAU,CAAC,IAAyB;QACzC,OAAO,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;IACrD,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,YAA2B;QACtC,IAAI,SAAS,KAAK,YAAY;YAC5B,OAAO,IAAI,CAAC;QAEd,MAAM,KAAK,GAAG;YACZ,YAAY,EAAE,YAAY,CAAC,YAAY,IAAI,IAAI,CAAC,YAAY;YAC5D,YAAY,EAAE,YAAY,CAAC,YAAY,IAAI,IAAI,CAAC,YAAY;YAC5D,YAAY,EAAE,YAAY,CAAC,YAAY,IAAI,IAAI,CAAC,YAAY;YAC5D,aAAa,EAAE,YAAY,CAAC,aAAa,IAAI,IAAI,CAAC,aAAa;YAC/D,YAAY,EAAE,YAAY,CAAC,YAAY,IAAI,IAAI,CAAC,YAAY;YAC5D,gBAAgB,EAAE,YAAY,CAAC,gBAAgB,IAAI,IAAI,CAAC,gBAAgB;SACzE,CAAC;QAEF,OAAO,eAAe,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACzC,CAAC;CACF;AA/FD,0CA+FC","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 DisplayStyles\r\n */\r\n\r\nimport { BackgroundMapProps } from \"./BackgroundMapSettings\";\r\n\r\n/** Identifies a [TerrainProvider]($frontend).\r\n * @see [[TerrainSettings.providerName]] and [[TerrainProps.providerName]].\r\n * @public\r\n * @extensions\r\n * @deprecated in 3.x. Use string instead.\r\n */\r\nexport type TerrainProviderName = string;\r\n\r\n/** JSON representation of the settings of the terrain applied to background map display by a [[DisplayStyle]].\r\n * @see [[DisplayStyleSettingsProps]]\r\n * @see [[BackgroundMapProps]]\r\n * @public\r\n * @extensions\r\n */\r\nexport interface TerrainProps {\r\n /** Identifies the [TerrainProvider]($frontend) that will supply terrain meshes.\r\n * If omitted, it defaults to \"CesiumWorldTerrain\".\r\n */\r\n providerName?: string;\r\n /** A value greater than one will cause terrain height to be exaggerated/scaled.false (or 1.0) indicate no exaggeration. Default value: 1.0 */\r\n exaggeration?: number;\r\n /** Applying lighting can help to visualize subtle terrain variation. Default value: true */\r\n applyLighting?: boolean;\r\n /** Origin value - height of the IModel origin at the project center as defined by heightOriginMode. Default value: 0.0 */\r\n heightOrigin?: number;\r\n /** Determines how/if the heightOrigin is applied to the terrain height. Default value: Geodetic */\r\n heightOriginMode?: TerrainHeightOriginMode;\r\n /** If true, the terrain will not be locatable. Otherwise, [[BackgroundMapProps.nonLocatable]] will determine whether terrain is locatable.\r\n * @internal use [[BackgroundMapProps.nonLocatable]]. Retained for backwards compatibility only.\r\n */\r\n nonLocatable?: boolean;\r\n}\r\n\r\n/** Correction modes for terrain height\r\n * @see [[TerrainProps]]\r\n * @public\r\n * @extensions\r\n */\r\nexport enum TerrainHeightOriginMode {\r\n /** Height value indicates the geodetic height of the IModel origin (also referred to as ellipsoidal or GPS height) */\r\n Geodetic = 0,\r\n /** Height value indicates the geoidal height of the IModel origin (commonly referred to as sea level). */\r\n Geoid = 1,\r\n /** Height value indicates the height of the IModel origin relative to ground level at project center. */\r\n Ground = 2,\r\n}\r\n\r\n/** Normalized version of [[TerrainProps]] for which provider has been validated and default values of all members are used.\r\n * @public\r\n */\r\nexport class TerrainSettings {\r\n private _nonLocatable: true | undefined;\r\n /** Identifies the [TerrainProvider]($frontend) that will supply terrain meshes.\r\n * Defaults to \"CesiumWorldTerrain\".\r\n */\r\n public readonly providerName: string;\r\n /** A value greater than one will cause terrain height to be exaggerated/scaled. 1.0 indicates no exaggeration. Default value: 1.0 */\r\n public readonly exaggeration: number;\r\n /** Applying lighting can help to visualize subtle terrain variations. Default value: false */\r\n public readonly applyLighting: boolean;\r\n /** Origin value - height of the IModel origin at the project center as defined by heightOriginMode. Default value 0.0 */\r\n public readonly heightOrigin: number;\r\n /** Determines how/if the heightOrigin is applied to the terrain height. Default value: Geodetic */\r\n public readonly heightOriginMode: TerrainHeightOriginMode;\r\n /** Optionally overrides [[BackgroundMapSettings.locatable]]. For backwards compatibility only.\r\n * @see [[TerrainProps.nonLocatable]].\r\n * @internal\r\n */\r\n public get nonLocatable(): true | undefined {\r\n return this._nonLocatable;\r\n }\r\n\r\n constructor(providerName: string = \"CesiumWorldTerrain\", exaggeration: number = 1.0, applyLighting = false, heightOrigin = 0.0, heightOriginMode = TerrainHeightOriginMode.Geodetic) {\r\n this.providerName = providerName;\r\n this.exaggeration = Math.min(100, Math.max(0.1, exaggeration));\r\n this.applyLighting = applyLighting;\r\n this.heightOrigin = heightOrigin;\r\n switch (heightOriginMode) {\r\n case TerrainHeightOriginMode.Ground:\r\n case TerrainHeightOriginMode.Geoid:\r\n this.heightOriginMode = heightOriginMode;\r\n break;\r\n default:\r\n this.heightOriginMode = TerrainHeightOriginMode.Geodetic;\r\n break;\r\n }\r\n }\r\n\r\n public static fromJSON(json?: TerrainProps) {\r\n if (undefined === json)\r\n return new TerrainSettings();\r\n\r\n const providerName = json?.providerName ?? \"CesiumWorldTerrain\";\r\n const settings = new TerrainSettings(providerName, json.exaggeration, json.applyLighting, json.heightOrigin, json.heightOriginMode);\r\n if (true === json.nonLocatable)\r\n settings._nonLocatable = true;\r\n\r\n return settings;\r\n }\r\n\r\n public toJSON(): TerrainProps {\r\n const props: TerrainProps = { heightOriginMode: this.heightOriginMode };\r\n if (\"CesiumWorldTerrain\" !== this.providerName)\r\n props.providerName = this.providerName;\r\n if (1 !== this.exaggeration)\r\n props.exaggeration = this.exaggeration;\r\n if (this.nonLocatable)\r\n props.nonLocatable = true;\r\n if (this.applyLighting)\r\n props.applyLighting = true;\r\n if (0 !== this.heightOrigin)\r\n props.heightOrigin = this.heightOrigin;\r\n\r\n return props;\r\n }\r\n\r\n public equals(other: TerrainSettings): boolean {\r\n return this.providerName === other.providerName && this.exaggeration === other.exaggeration && this.applyLighting === other.applyLighting\r\n && this.heightOrigin === other.heightOrigin && this.heightOriginMode === other.heightOriginMode && this.nonLocatable === other.nonLocatable;\r\n }\r\n\r\n /** Returns true if these settings are equivalent to the supplied JSON settings. */\r\n public equalsJSON(json?: BackgroundMapProps): boolean {\r\n return this.equals(TerrainSettings.fromJSON(json));\r\n }\r\n\r\n /** Create a copy of this TerrainSettings, optionally modifying some of its properties.\r\n * @param changedProps JSON representation of the properties to change.\r\n * @returns A TerrainSettings with all of its properties set to match those of`this`, except those explicitly defined in `changedProps`.\r\n */\r\n public clone(changedProps?: TerrainProps): TerrainSettings {\r\n if (undefined === changedProps)\r\n return this;\r\n\r\n const props = {\r\n providerName: changedProps.providerName ?? this.providerName,\r\n exaggeration: changedProps.exaggeration ?? this.exaggeration,\r\n nonLocatable: changedProps.nonLocatable ?? this.nonLocatable,\r\n applyLighting: changedProps.applyLighting ?? this.applyLighting,\r\n heightOrigin: changedProps.heightOrigin ?? this.heightOrigin,\r\n heightOriginMode: changedProps.heightOriginMode ?? this.heightOriginMode,\r\n };\r\n\r\n return TerrainSettings.fromJSON(props);\r\n }\r\n}\r\n"]}
1
+ {"version":3,"file":"TerrainSettings.js","sourceRoot":"","sources":["../../src/TerrainSettings.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAYH;;;;;GAKG;AACH,IAAY,oBAKX;AALD,WAAY,oBAAoB;IAC9B,yGAAyG;IACzG,qCAAa,CAAA;IACb,gJAAgJ;IAChJ,8CAAsB,CAAA;AACxB,CAAC,EALW,oBAA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,KAAK,KAAK,CAAC,YAAY,IAAI,IAAI,CAAC,UAAU,KAAK,KAAK,CAAC,UAAU,IAAI,IAAI,CAAC,YAAY,KAAK,KAAK,CAAC,YAAY,IAAI,IAAI,CAAC,aAAa,KAAK,KAAK,CAAC,aAAa;eAC5K,IAAI,CAAC,YAAY,KAAK,KAAK,CAAC,YAAY,IAAI,IAAI,CAAC,gBAAgB,KAAK,KAAK,CAAC,gBAAgB,IAAI,IAAI,CAAC,YAAY,KAAK,KAAK,CAAC,YAAY,CAAC;IAChJ,CAAC;IAED,mFAAmF;IAC5E,UAAU,CAAC,IAAyB;QACzC,OAAO,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;IACrD,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,YAA2B;QACtC,IAAI,SAAS,KAAK,YAAY;YAC5B,OAAO,IAAI,CAAC;QAEd,MAAM,KAAK,GAAG;YACZ,YAAY,EAAE,YAAY,CAAC,YAAY,IAAI,IAAI,CAAC,YAAY;YAC5D,UAAU,EAAE,YAAY,CAAC,UAAU,IAAI,IAAI,CAAC,UAAU;YACtD,YAAY,EAAE,YAAY,CAAC,YAAY,IAAI,IAAI,CAAC,YAAY;YAC5D,YAAY,EAAE,YAAY,CAAC,YAAY,IAAI,IAAI,CAAC,YAAY;YAC5D,aAAa,EAAE,YAAY,CAAC,aAAa,IAAI,IAAI,CAAC,aAAa;YAC/D,YAAY,EAAE,YAAY,CAAC,YAAY,IAAI,IAAI,CAAC,YAAY;YAC5D,gBAAgB,EAAE,YAAY,CAAC,gBAAgB,IAAI,IAAI,CAAC,gBAAgB;SACzE,CAAC;QAEF,OAAO,eAAe,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACzC,CAAC;CACF;AA/HD,0CA+HC","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 DisplayStyles\r\n */\r\n\r\nimport { BackgroundMapProps } from \"./BackgroundMapSettings\";\r\n\r\n/** Identifies a [TerrainProvider]($frontend).\r\n * @see [[TerrainSettings.providerName]] and [[TerrainProps.providerName]].\r\n * @public\r\n * @extensions\r\n * @deprecated in 3.x. Use string instead.\r\n */\r\nexport type TerrainProviderName = string;\r\n\r\n/** Ids of [Cesium ION assets](https://cesium.com/platform/cesium-ion/content/) providing global terrain data.\r\n * These values are appropriate to use with [[TerrainSettings.dataSource]] when [[TerrainSettings.providerName]] is set to \"CesiumWorldTerrain\".\r\n * You may alternatively use the Id of any ION asset to which you have access.\r\n * @see [[TerrainSettings.fromCesiumIonAsset]] to create TerrainSettings that obtain terrain from a specified ION asset.\r\n * @public\r\n */\r\nexport enum CesiumTerrainAssetId {\r\n /** Default [global 3d terrain](https://cesium.com/platform/cesium-ion/content/cesium-world-terrain/). */\r\n Default = \"1\",\r\n /** Global 3d terrain that includes [bathymetry](https://cesium.com/platform/cesium-ion/content/cesium-world-bathymetry/) (seafloor) terrain. */\r\n Bathymetry = \"2426648\",\r\n}\r\n\r\n/** JSON representation of the settings of the terrain applied to background map display by a [[DisplayStyle]].\r\n * @see [[DisplayStyleSettingsProps]]\r\n * @see [[BackgroundMapProps]]\r\n * @public\r\n * @extensions\r\n */\r\nexport interface TerrainProps {\r\n /** Identifies the [TerrainProvider]($frontend) that will supply terrain meshes.\r\n * If omitted, it defaults to \"CesiumWorldTerrain\".\r\n */\r\n providerName?: string;\r\n /** Identifies the specific terrain data source to be supplied by the [TerrainProvider]($frontend) identified by [[providerName]],\r\n * for those providers that support multiple data sources.\r\n * For example, the \"CesiumWorldTerrain\" provider uses this field to store a [[CesiumTerrainAssetId]].\r\n * Default value: an empty string.\r\n */\r\n dataSource?: string;\r\n /** A value greater than one will cause terrain height to be exaggerated/scaled.false (or 1.0) indicate no exaggeration. Default value: 1.0 */\r\n exaggeration?: number;\r\n /** Applying lighting can help to visualize subtle terrain variation. Default value: true */\r\n applyLighting?: boolean;\r\n /** Origin value - height of the IModel origin at the project center as defined by heightOriginMode. Default value: 0.0 */\r\n heightOrigin?: number;\r\n /** Determines how/if the heightOrigin is applied to the terrain height. Default value: Geodetic */\r\n heightOriginMode?: TerrainHeightOriginMode;\r\n /** If true, the terrain will not be locatable. Otherwise, [[BackgroundMapProps.nonLocatable]] will determine whether terrain is locatable.\r\n * @internal use [[BackgroundMapProps.nonLocatable]]. Retained for backwards compatibility only.\r\n */\r\n nonLocatable?: boolean;\r\n}\r\n\r\n/** Correction modes for terrain height\r\n * @see [[TerrainProps]]\r\n * @public\r\n * @extensions\r\n */\r\nexport enum TerrainHeightOriginMode {\r\n /** Height value indicates the geodetic height of the IModel origin (also referred to as ellipsoidal or GPS height) */\r\n Geodetic = 0,\r\n /** Height value indicates the geoidal height of the IModel origin (commonly referred to as sea level). */\r\n Geoid = 1,\r\n /** Height value indicates the height of the IModel origin relative to ground level at project center. */\r\n Ground = 2,\r\n}\r\n\r\n/** Normalized version of [[TerrainProps]] for which provider has been validated and default values of all members are used.\r\n * @public\r\n */\r\nexport class TerrainSettings {\r\n private _nonLocatable: true | undefined;\r\n /** Identifies the [TerrainProvider]($frontend) that will supply terrain meshes.\r\n * Defaults to \"CesiumWorldTerrain\".\r\n */\r\n public readonly providerName: string;\r\n /** Identifies the specific terrain data source to be supplied by the [TerrainProvider]($frontend) identified by [[providerName]],\r\n * for those providers that support multiple data sources.\r\n * For example, the \"CesiumWorldTerrain\" provider uses this field to store a [[CesiumTerrainAssetId]].\r\n * Default value: an empty string.\r\n */\r\n public readonly dataSource: string;\r\n /** A value greater than one will cause terrain height to be exaggerated/scaled. 1.0 indicates no exaggeration. Default value: 1.0 */\r\n public readonly exaggeration: number;\r\n /** Applying lighting can help to visualize subtle terrain variations. Default value: false */\r\n public readonly applyLighting: boolean;\r\n /** Origin value - height of the IModel origin at the project center as defined by heightOriginMode. Default value 0.0 */\r\n public readonly heightOrigin: number;\r\n /** Determines how/if the heightOrigin is applied to the terrain height. Default value: Geodetic */\r\n public readonly heightOriginMode: TerrainHeightOriginMode;\r\n /** Optionally overrides [[BackgroundMapSettings.locatable]]. For backwards compatibility only.\r\n * @see [[TerrainProps.nonLocatable]].\r\n * @internal\r\n */\r\n public get nonLocatable(): true | undefined {\r\n return this._nonLocatable;\r\n }\r\n\r\n /** @deprecated in 4.5.x. Use the overload that takes [[TerrainProps]]. */\r\n constructor(providerName?: string, exaggeration?: number, applyLighting?: boolean, heightOrigin?: number, heightOriginMode?: TerrainHeightOriginMode);\r\n\r\n constructor(props?: TerrainProps);\r\n\r\n /** @internal */\r\n constructor(providerNameOrProps: string | TerrainProps | undefined, exaggeration?: number, applyLighting?: boolean, heightOrigin?: number, heightOriginMode?: TerrainHeightOriginMode) {\r\n let providerName;\r\n let dataSource;\r\n let nonLocatable;\r\n if (typeof providerNameOrProps === \"string\") {\r\n providerName = providerNameOrProps;\r\n } else if (providerNameOrProps) {\r\n ({ providerName, dataSource, exaggeration, applyLighting, heightOrigin, heightOriginMode, nonLocatable } = providerNameOrProps);\r\n }\r\n\r\n this.providerName = providerName ?? \"CesiumWorldTerrain\";\r\n this.dataSource = dataSource ?? \"\";\r\n this.exaggeration = Math.min(100, Math.max(0.1, exaggeration ?? 1.0));\r\n this.applyLighting = applyLighting ?? false;\r\n this.heightOrigin = heightOrigin ?? 0.0;\r\n\r\n if (true === nonLocatable)\r\n this._nonLocatable = true;\r\n\r\n switch (heightOriginMode) {\r\n case TerrainHeightOriginMode.Ground:\r\n case TerrainHeightOriginMode.Geoid:\r\n this.heightOriginMode = heightOriginMode;\r\n break;\r\n default:\r\n this.heightOriginMode = TerrainHeightOriginMode.Geodetic;\r\n break;\r\n }\r\n }\r\n\r\n public static fromJSON(json?: TerrainProps) {\r\n return new TerrainSettings(json);\r\n }\r\n\r\n /** Create settings that obtain terrain from a [Cesium ION asset](https://cesium.com/platform/cesium-ion/content/) such as\r\n * one of those defined by [[CesiumTerrainAssetId]].\r\n * @note You must ensure your Cesium ION account has access to the specified asset.\r\n */\r\n public static fromCesiumIonAsset(assetId: string = CesiumTerrainAssetId.Default, options?: Omit<TerrainProps, \"providerName\" | \"dataSource\">): TerrainSettings {\r\n return TerrainSettings.fromJSON({\r\n ...options,\r\n dataSource: assetId,\r\n });\r\n }\r\n\r\n public toJSON(): TerrainProps {\r\n const props: TerrainProps = { heightOriginMode: this.heightOriginMode };\r\n if (\"CesiumWorldTerrain\" !== this.providerName)\r\n props.providerName = this.providerName;\r\n if (this.dataSource)\r\n props.dataSource = this.dataSource;\r\n if (1 !== this.exaggeration)\r\n props.exaggeration = this.exaggeration;\r\n if (this.nonLocatable)\r\n props.nonLocatable = true;\r\n if (this.applyLighting)\r\n props.applyLighting = true;\r\n if (0 !== this.heightOrigin)\r\n props.heightOrigin = this.heightOrigin;\r\n\r\n return props;\r\n }\r\n\r\n public equals(other: TerrainSettings): boolean {\r\n return this.providerName === other.providerName && this.dataSource === other.dataSource && this.exaggeration === other.exaggeration && this.applyLighting === other.applyLighting\r\n && this.heightOrigin === other.heightOrigin && this.heightOriginMode === other.heightOriginMode && this.nonLocatable === other.nonLocatable;\r\n }\r\n\r\n /** Returns true if these settings are equivalent to the supplied JSON settings. */\r\n public equalsJSON(json?: BackgroundMapProps): boolean {\r\n return this.equals(TerrainSettings.fromJSON(json));\r\n }\r\n\r\n /** Create a copy of this TerrainSettings, optionally modifying some of its properties.\r\n * @param changedProps JSON representation of the properties to change.\r\n * @returns A TerrainSettings with all of its properties set to match those of`this`, except those explicitly defined in `changedProps`.\r\n */\r\n public clone(changedProps?: TerrainProps): TerrainSettings {\r\n if (undefined === changedProps)\r\n return this;\r\n\r\n const props = {\r\n providerName: changedProps.providerName ?? this.providerName,\r\n dataSource: changedProps.dataSource ?? this.dataSource,\r\n exaggeration: changedProps.exaggeration ?? this.exaggeration,\r\n nonLocatable: changedProps.nonLocatable ?? this.nonLocatable,\r\n applyLighting: changedProps.applyLighting ?? this.applyLighting,\r\n heightOrigin: changedProps.heightOrigin ?? this.heightOrigin,\r\n heightOriginMode: changedProps.heightOriginMode ?? this.heightOriginMode,\r\n };\r\n\r\n return TerrainSettings.fromJSON(props);\r\n }\r\n}\r\n"]}
@@ -32,6 +32,7 @@ export * from "./FeatureSymbology";
32
32
  export * from "./FeatureTable";
33
33
  export * from "./Fonts";
34
34
  export * from "./Frustum";
35
+ export * from "./GenericInstanceFilter";
35
36
  export * from "./GeoCoordinateServices";
36
37
  export * from "./geometry/AdditionalTransform";
37
38
  export * from "./geometry/AreaPattern";
@@ -1 +1 @@
1
- {"version":3,"file":"core-common.d.ts","sourceRoot":"","sources":["../../src/core-common.ts"],"names":[],"mappings":"AAIA,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kCAAkC,CAAC;AACjD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAA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B,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oBAAoB,CAAC;AACnC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kCAAkC,CAAC;AACjD,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kCAAkC,CAAC;AACjD,cAAc,mCAAmC,CAAC;AAClD,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,gCAAgC,CAAC;AAE/C;;GAEG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG"}
1
+ {"version":3,"file":"core-common.d.ts","sourceRoot":"","sources":["../../src/core-common.ts"],"names":[],"mappings":"AAIA,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,c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C3C,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,gCAAgC,CAAC;AAE/C;;GAEG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG;AACH;;;GAGG"}
@@ -52,6 +52,7 @@ __exportStar(require("./FeatureSymbology"), exports);
52
52
  __exportStar(require("./FeatureTable"), exports);
53
53
  __exportStar(require("./Fonts"), exports);
54
54
  __exportStar(require("./Frustum"), exports);
55
+ __exportStar(require("./GenericInstanceFilter"), exports);
55
56
  __exportStar(require("./GeoCoordinateServices"), exports);
56
57
  __exportStar(require("./geometry/AdditionalTransform"), exports);
57
58
  __exportStar(require("./geometry/AreaPattern"), exports);