Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

HARP-14495: Updates three to version 0.126.0 #2146

Merged
merged 1 commit into from
Mar 11, 2021
Merged

HARP-14495: Updates three to version 0.126.0 #2146

merged 1 commit into from
Mar 11, 2021

Conversation

germanz
Copy link
Contributor

@germanz germanz commented Mar 10, 2021

  • Updates three.js to version 0.126.0

@codecov
Copy link

codecov bot commented Mar 10, 2021

Codecov Report

Merging #2146 (57f540f) into master (5529fb2) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2146   +/-   ##
=======================================
  Coverage   67.70%   67.70%           
=======================================
  Files         298      298           
  Lines       26377    26376    -1     
  Branches     5970     5970           
=======================================
  Hits        17858    17858           
+ Misses       8519     8518    -1     
Impacted Files Coverage Δ
...e/harp-datasource-protocol/lib/ThreeBufferUtils.ts 80.00% <ø> (ø)
@here/harp-materials/lib/MapMeshMaterials.ts 55.71% <ø> (+0.16%) ⬆️
@here/harp-mapview/lib/DecodedTileHelpers.ts 56.85% <100.00%> (ø)
@here/harp-mapview/lib/TileObjectsRenderer.ts 45.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5529fb2...ee8a918. Read the comment docs.

@here/harp-mapview/lib/DecodedTileHelpers.ts Outdated Show resolved Hide resolved
@@ -157,7 +156,9 @@ export class TileObjectRenderer {
return stableSort(a, b);
};

this.m_renderer.setOpaqueSort(painterSortStable);
// Temporary workaround due to incorrect comparator type definition:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please create a bug on https://github.com/three-types/three-ts-types and mention it here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -19,6 +18,17 @@ import {
InterleavedBufferAttribute
} from "./DecodedTile";

type TypedArray =
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is necessary, yes, but we could consider to deprecate this type and instead use ArrayLike, because that is the type in the three-ts-types, see: https://github.com/three-types/three-ts-types/blob/master/types/three/src/core/BufferAttribute.d.ts

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about ArrayBufferView?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Internally it uses ArrayLike in the three-ts-types, but I guess that works also.

@@ -835,10 +835,21 @@ function getBaseColorPropName(technique: Technique): string | undefined {
return getTechniqueDescriptor(technique)?.attrTransparencyColor;
}

type TypedArray =
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is necessary, see below.

Signed-off-by: German Zargaryan <2526045+germanz@users.noreply.github.com>
@germanz germanz merged commit 95ad327 into master Mar 11, 2021
@germanz germanz deleted the HARP-14495 branch March 11, 2021 13:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants