@itwin/core-frontend 3.5.0-dev.5 → 3.5.0-dev.8

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.
@@ -12,6 +12,59 @@ export interface RenderMaterialSource {
12
12
  iModel: IModelConnection;
13
13
  id: Id64String;
14
14
  }
15
+ /** Describes the [diffuse](https://en.wikipedia.org/wiki/Diffuse_reflection) properties of a [RenderMaterial]($common).
16
+ * @see [[CreateRenderMaterialArgs.diffuse]].
17
+ * @public
18
+ */
19
+ export interface MaterialDiffuseProps {
20
+ /** The diffuse color. If defined, this overrides the color of any surface to which the material is applied. */
21
+ color?: ColorDef | RgbColorProps;
22
+ /** A multiplier in [0..1] specifying how strongly the diffuse color reflects light.
23
+ * Default: 0.6
24
+ */
25
+ weight?: number;
26
+ }
27
+ /** Describes the [specular](https://en.wikipedia.org/wiki/Specular_highlight) properties of a material.
28
+ * @see [[CreateRenderMaterialArgs.specular]].
29
+ * @public
30
+ */
31
+ export interface MaterialSpecularProps {
32
+ /** The color of the specular reflections.
33
+ * Default: white.
34
+ */
35
+ color?: ColorDef | RgbColorProps;
36
+ /** A multiplier in [0..1] specifying the strength of the specular reflections.
37
+ * Default: 0.4
38
+ */
39
+ weight?: number;
40
+ /** An exponent in [0..infinity] describing the shininess of the surface.
41
+ * Default: 13.5
42
+ */
43
+ exponent?: number;
44
+ }
45
+ /** Describes how to map a [RenderTexture]($common)'s image to the surfaces to which a [RenderMaterial]($common) is applied.
46
+ * @see [[CreateRenderMaterialArgs.textureMapping]].
47
+ * @public
48
+ */
49
+ export interface MaterialTextureMappingProps {
50
+ /** The texture from which the image is obtained. */
51
+ texture: RenderTexture;
52
+ /** The mode controlling how the image is mapped onto the surface.
53
+ * Default: [TextureMapping.Mode.Parametric]($common).
54
+ */
55
+ mode?: TextureMapping.Mode;
56
+ /** A 2x3 matrix for computing the UV coordinates.
57
+ * Default: [TextureMapping.Trans2x3.identity]($common).
58
+ */
59
+ transform?: TextureMapping.Trans2x3;
60
+ /** The ratio by which the color sampled from the texture image is mixed with the surface's or material's diffuse color.
61
+ * A ratio of 1 selects only the texture sample; a ratio of 0 selects only the diffuse color; a ratio of 0.5 mixes them evenly.
62
+ * Default: 1.
63
+ */
64
+ weight?: number;
65
+ /** @internal */
66
+ worldMapping?: boolean;
67
+ }
15
68
  /** Arguments supplied to [[RenderSystem.createRenderMaterial]].
16
69
  * @public
17
70
  */
@@ -25,37 +78,11 @@ export interface CreateRenderMaterialArgs {
25
78
  * transparency of the material's [[textureMapping]] when sampling the texture.
26
79
  */
27
80
  alpha?: number;
28
- /** The diffuse properties of the material. */
29
- diffuse?: {
30
- /** The diffuse color. If defined, this overrides the color of any surface to which the material is applied. */
31
- color?: ColorDef | RgbColorProps;
32
- /** A multiplier in [0..1] specifying how strongly the diffuse color reflects light. */
33
- weight?: number;
34
- };
81
+ /** The [diffuse](https://en.wikipedia.org/wiki/Diffuse_reflection) properties of the material. */
82
+ diffuse?: MaterialDiffuseProps;
35
83
  /** The [specular](https://en.wikipedia.org/wiki/Specular_highlight) properties of the material. */
36
- specular?: {
37
- /** The color of the specular reflections. Default: white. */
38
- color?: ColorDef | RgbColorProps;
39
- /** A multiplier in [0..1] specifying the strength of the specular reflections. */
40
- weight?: number;
41
- /** An exponent in [0..infinity] describing the shininess of the surface. */
42
- exponent?: number;
43
- };
84
+ specular?: MaterialSpecularProps;
44
85
  /** Maps a [RenderTexture]($common) image to the surfaces to which the material is applied. */
45
- textureMapping?: {
46
- /** The texture from which the image is obtained. */
47
- texture: RenderTexture;
48
- /** Describes how the texture image is mapped to the surface. Default: [TextureMapping.Mode.Parametric]($common). */
49
- mode?: TextureMapping.Mode;
50
- /** A 2x3 matrix for computing the UV coordinates. Default: [TextureMapping.Trans2x3.identity]($common). */
51
- transform?: TextureMapping.Trans2x3;
52
- /** The ratio by which the color sampled from the texture image is mixed with the surface's or material's diffuse color.
53
- * A ratio of 1 selects only the texture sample; a ratio of 0 selects only the diffuse color; a ratio of 0.5 mixes them evenly.
54
- * Default: 1.
55
- */
56
- weight?: number;
57
- /** @internal */
58
- worldMapping?: boolean;
59
- };
86
+ textureMapping?: MaterialTextureMappingProps;
60
87
  }
61
88
  //# sourceMappingURL=RenderMaterial.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RenderMaterial.d.ts","sourceRoot":"","sources":["../../../src/render/RenderMaterial.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAC5F,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,gBAAgB,CAAC;IACzB,EAAE,EAAE,UAAU,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAE9B;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,8CAA8C;IAC9C,OAAO,CAAC,EAAE;QACR,+GAA+G;QAC/G,KAAK,CAAC,EAAE,QAAQ,GAAG,aAAa,CAAC;QAEjC,uFAAuF;QACvF,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;IAEF,mGAAmG;IACnG,QAAQ,CAAC,EAAE;QACT,6DAA6D;QAC7D,KAAK,CAAC,EAAE,QAAQ,GAAG,aAAa,CAAC;QAEjC,kFAAkF;QAClF,MAAM,CAAC,EAAE,MAAM,CAAC;QAEhB,4EAA4E;QAC5E,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,CAAC;IAEF,8FAA8F;IAC9F,cAAc,CAAC,EAAE;QACf,oDAAoD;QACpD,OAAO,EAAE,aAAa,CAAC;QAEvB,oHAAoH;QACpH,IAAI,CAAC,EAAE,cAA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AEhB,gBAAgB;IAChB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAE9B;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,kGAAkG;IAClG,OAAO,CAAC,EAAE,oBAAoB,CAAC;IAE/B,mGAAmG;IACnG,QAAQ,CAAC,EAAE,qBAAqB,CAAC;IAEjC,8FAA8F;IAC9F,cAAc,CAAC,EAAE,2BAA2B,CAAC;CAC9C"}
@@ -1 +1 @@
1
- {"version":3,"file":"RenderMaterial.js","sourceRoot":"","sources":["../../../src/render/RenderMaterial.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG","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 { ColorDef, RenderTexture, RgbColorProps, TextureMapping } from \"@itwin/core-common\";\r\nimport { IModelConnection } from \"../IModelConnection\";\r\n\r\n/** Specifies the provenance of a [RenderMaterial]($common) created for a persistent material element.\r\n * @see [[CreateRenderMaterialArgs.source]].\r\n * @internal\r\n */\r\nexport interface RenderMaterialSource {\r\n iModel: IModelConnection;\r\n id: Id64String;\r\n}\r\n\r\n/** Arguments supplied to [[RenderSystem.createRenderMaterial]].\r\n * @public\r\n */\r\nexport interface CreateRenderMaterialArgs {\r\n /** If supplied, the material will be cached on the iModel by its element Id for subsequent reuse.\r\n * @internal\r\n */\r\n source?: RenderMaterialSource;\r\n\r\n /** Specifies the transparency of the material from 0.0 (fully transparent) to 1.0 (fully opaque).\r\n * If defined, this overrides the transparency of any surface to which the material is applied, and is multiplied with the\r\n * transparency of the material's [[textureMapping]] when sampling the texture.\r\n */\r\n alpha?: number;\r\n\r\n /** The diffuse properties of the material. */\r\n diffuse?: {\r\n /** The diffuse color. If defined, this overrides the color of any surface to which the material is applied. */\r\n color?: ColorDef | RgbColorProps;\r\n\r\n /** A multiplier in [0..1] specifying how strongly the diffuse color reflects light. */\r\n weight?: number;\r\n };\r\n\r\n /** The [specular](https://en.wikipedia.org/wiki/Specular_highlight) properties of the material. */\r\n specular?: {\r\n /** The color of the specular reflections. Default: white. */\r\n color?: ColorDef | RgbColorProps;\r\n\r\n /** A multiplier in [0..1] specifying the strength of the specular reflections. */\r\n weight?: number;\r\n\r\n /** An exponent in [0..infinity] describing the shininess of the surface. */\r\n exponent?: number;\r\n };\r\n\r\n /** Maps a [RenderTexture]($common) image to the surfaces to which the material is applied. */\r\n textureMapping?: {\r\n /** The texture from which the image is obtained. */\r\n texture: RenderTexture;\r\n\r\n /** Describes how the texture image is mapped to the surface. Default: [TextureMapping.Mode.Parametric]($common). */\r\n mode?: TextureMapping.Mode;\r\n\r\n /** A 2x3 matrix for computing the UV coordinates. Default: [TextureMapping.Trans2x3.identity]($common). */\r\n transform?: TextureMapping.Trans2x3;\r\n\r\n /** The ratio by which the color sampled from the texture image is mixed with the surface's or material's diffuse color.\r\n * A ratio of 1 selects only the texture sample; a ratio of 0 selects only the diffuse color; a ratio of 0.5 mixes them evenly.\r\n * Default: 1.\r\n */\r\n weight?: number;\r\n\r\n /** @internal */\r\n worldMapping?: boolean;\r\n };\r\n}\r\n"]}
1
+ {"version":3,"file":"RenderMaterial.js","sourceRoot":"","sources":["../../../src/render/RenderMaterial.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG","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 { ColorDef, RenderTexture, RgbColorProps, TextureMapping } from \"@itwin/core-common\";\r\nimport { IModelConnection } from \"../IModelConnection\";\r\n\r\n/** Specifies the provenance of a [RenderMaterial]($common) created for a persistent material element.\r\n * @see [[CreateRenderMaterialArgs.source]].\r\n * @internal\r\n */\r\nexport interface RenderMaterialSource {\r\n iModel: IModelConnection;\r\n id: Id64String;\r\n}\r\n\r\n/** Describes the [diffuse](https://en.wikipedia.org/wiki/Diffuse_reflection) properties of a [RenderMaterial]($common).\r\n * @see [[CreateRenderMaterialArgs.diffuse]].\r\n * @public\r\n */\r\nexport interface MaterialDiffuseProps {\r\n /** The diffuse color. If defined, this overrides the color of any surface to which the material is applied. */\r\n color?: ColorDef | RgbColorProps;\r\n\r\n /** A multiplier in [0..1] specifying how strongly the diffuse color reflects light.\r\n * Default: 0.6\r\n */\r\n weight?: number;\r\n}\r\n\r\n/** Describes the [specular](https://en.wikipedia.org/wiki/Specular_highlight) properties of a material.\r\n * @see [[CreateRenderMaterialArgs.specular]].\r\n * @public\r\n */\r\nexport interface MaterialSpecularProps {\r\n /** The color of the specular reflections.\r\n * Default: white.\r\n */\r\n color?: ColorDef | RgbColorProps;\r\n\r\n /** A multiplier in [0..1] specifying the strength of the specular reflections.\r\n * Default: 0.4\r\n */\r\n weight?: number;\r\n\r\n /** An exponent in [0..infinity] describing the shininess of the surface.\r\n * Default: 13.5\r\n */\r\n exponent?: number;\r\n}\r\n\r\n/** Describes how to map a [RenderTexture]($common)'s image to the surfaces to which a [RenderMaterial]($common) is applied.\r\n * @see [[CreateRenderMaterialArgs.textureMapping]].\r\n * @public\r\n */\r\nexport interface MaterialTextureMappingProps {\r\n /** The texture from which the image is obtained. */\r\n texture: RenderTexture;\r\n\r\n /** The mode controlling how the image is mapped onto the surface.\r\n * Default: [TextureMapping.Mode.Parametric]($common).\r\n */\r\n mode?: TextureMapping.Mode;\r\n\r\n /** A 2x3 matrix for computing the UV coordinates.\r\n * Default: [TextureMapping.Trans2x3.identity]($common).\r\n */\r\n transform?: TextureMapping.Trans2x3;\r\n\r\n /** The ratio by which the color sampled from the texture image is mixed with the surface's or material's diffuse color.\r\n * A ratio of 1 selects only the texture sample; a ratio of 0 selects only the diffuse color; a ratio of 0.5 mixes them evenly.\r\n * Default: 1.\r\n */\r\n weight?: number;\r\n\r\n /** @internal */\r\n worldMapping?: boolean;\r\n}\r\n\r\n/** Arguments supplied to [[RenderSystem.createRenderMaterial]].\r\n * @public\r\n */\r\nexport interface CreateRenderMaterialArgs {\r\n /** If supplied, the material will be cached on the iModel by its element Id for subsequent reuse.\r\n * @internal\r\n */\r\n source?: RenderMaterialSource;\r\n\r\n /** Specifies the transparency of the material from 0.0 (fully transparent) to 1.0 (fully opaque).\r\n * If defined, this overrides the transparency of any surface to which the material is applied, and is multiplied with the\r\n * transparency of the material's [[textureMapping]] when sampling the texture.\r\n */\r\n alpha?: number;\r\n\r\n /** The [diffuse](https://en.wikipedia.org/wiki/Diffuse_reflection) properties of the material. */\r\n diffuse?: MaterialDiffuseProps;\r\n\r\n /** The [specular](https://en.wikipedia.org/wiki/Specular_highlight) properties of the material. */\r\n specular?: MaterialSpecularProps;\r\n\r\n /** Maps a [RenderTexture]($common) image to the surfaces to which the material is applied. */\r\n textureMapping?: MaterialTextureMappingProps;\r\n}\r\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"MapTileTree.d.ts","sourceRoot":"","sources":["../../../../src/tile/map/MapTileTree.ts"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,EAAqI,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACpL,OAAO,EACL,qBAAqB,EAAE,iBAAiB,EAAgB,QAAQ,EAAqC,SAAS,EAAE,gBAAgB,EACjI,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACwB,SAAS,EAAE,cAAc,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAC9G,MAAM,s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(layerSettings) {
559
+ var _a;
559
560
  this._layerSettings = layerSettings;
560
561
  const baseLayerIndex = this._baseImageryLayerIncluded ? 1 : 0;
561
562
  this._layerTrees.length = Math.min(layerSettings.length + baseLayerIndex, this._layerTrees.length); // Truncate if number of layers reduced.
562
563
  for (let i = 0; i < layerSettings.length; i++) {
563
564
  const treeIndex = i + baseLayerIndex;
564
- if (treeIndex >= this._layerTrees.length || !this._layerTrees[treeIndex].layerSettings.displayMatches(layerSettings[i]))
565
+ if (treeIndex >= this._layerTrees.length || !((_a = this._layerTrees[treeIndex]) === null || _a === void 0 ? void 0 : _a.layerSettings.displayMatches(layerSettings[i])))
565
566
  this._layerTrees[treeIndex] = (0, internal_1.createMapLayerTreeReference)(layerSettings[i], treeIndex, this._iModel);
566
567
  }
567
568
  this.clearLayers();
@@ -577,7 +578,7 @@ class MapTileTreeReference extends internal_1.TileTreeReference {
577
578
  get _isLoadingComplete() {
578
579
  // Wait until drape tree is fully loaded too.
579
580
  for (const drapeTree of this._layerTrees)
580
- if (!drapeTree.isLoadingComplete)
581
+ if (drapeTree && !drapeTree.isLoadingComplete)
581
582
  return false;
582
583
  return super._isLoadingComplete;
583
584
  }
@@ -637,12 +638,12 @@ class MapTileTreeReference extends internal_1.TileTreeReference {
637
638
  // Start displaying at the highest completely opaque layer...
638
639
  for (; treeIndex >= 1; treeIndex--) {
639
640
  const layerTreeRef = this._layerTrees[treeIndex];
640
- if (layerTreeRef.isOpaque)
641
+ if (layerTreeRef === null || layerTreeRef === void 0 ? void 0 : layerTreeRef.isOpaque)
641
642
  break; // This layer is completely opaque and will obscure all others so ignore lower ones.
642
643
  }
643
644
  for (; treeIndex < this._layerTrees.length; treeIndex++) {
644
645
  const layerTreeRef = this._layerTrees[treeIndex];
645
- if (internal_1.TileTreeLoadStatus.NotFound !== layerTreeRef.treeOwner.loadStatus && layerTreeRef.layerSettings.visible && !layerTreeRef.layerSettings.allSubLayersInvisible) {
646
+ if (layerTreeRef && internal_1.TileTreeLoadStatus.NotFound !== layerTreeRef.treeOwner.loadStatus && layerTreeRef.layerSettings.visible && !layerTreeRef.layerSettings.allSubLayersInvisible) {
646
647
  const layerTree = layerTreeRef.treeOwner.load();
647
648
  if (undefined === layerTree)
648
649
  return false; // Not loaded yet.
@@ -693,7 +694,9 @@ class MapTileTreeReference extends internal_1.TileTreeReference {
693
694
  }
694
695
  discloseTileTrees(trees) {
695
696
  super.discloseTileTrees(trees);
696
- this._layerTrees.forEach((imageryTree) => trees.disclose(imageryTree));
697
+ for (const imageryTree of this._layerTrees)
698
+ if (imageryTree)
699
+ trees.disclose(imageryTree);
697
700
  if (this._planarClipMask)
698
701
  this._planarClipMask.discloseTileTrees(trees);
699
702
  }
@@ -702,7 +705,7 @@ class MapTileTreeReference extends internal_1.TileTreeReference {
702
705
  if (undefined === tree || tree.modelId !== mapTreeModelId)
703
706
  return undefined;
704
707
  for (const imageryTree of this._layerTrees)
705
- if (imageryTree.treeOwner.tileTree && imageryTree.treeOwner.tileTree.modelId === layerTreeModelId)
708
+ if (imageryTree && imageryTree.treeOwner.tileTree && imageryTree.treeOwner.tileTree.modelId === layerTreeModelId)
706
709
  return imageryTree;
707
710
  return undefined;
708
711
  }
@@ -811,7 +814,7 @@ class MapTileTreeReference extends internal_1.TileTreeReference {
811
814
  if (tree) {
812
815
  tree.mapLoader.terrainProvider.addLogoCards(cards, vp);
813
816
  for (const imageryTreeRef of this._layerTrees) {
814
- if (imageryTreeRef.layerSettings.visible) {
817
+ if (imageryTreeRef === null || imageryTreeRef === void 0 ? void 0 : imageryTreeRef.layerSettings.visible) {
815
818
  const imageryTree = imageryTreeRef.treeOwner.tileTree;
816
819
  if (imageryTree instanceof internal_1.ImageryMapTileTree)
817
820
  imageryTree.addLogoCards(cards, vp);