Socket
Socket
Sign inDemoInstall

@here/harp-mapview

Package Overview
Dependencies
21
Maintainers
3
Versions
38
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.27.1 to 0.28.0

4

lib/geometry/SolidLineMesh.js
"use strict";
/*
* Copyright (C) 2020 HERE Europe B.V.
* Copyright (C) 2020-2021 HERE Europe B.V.
* Licensed under Apache 2.0, see full license in LICENSE

@@ -211,3 +211,3 @@ * SPDX-License-Identifier: Apache-2.0

const position = attributes.position;
const bitangent = attributes.bitangent;
const bitangent = attributes.biTangent;
const indices = geometry.index.array;

@@ -214,0 +214,0 @@ tmpSphere.copy(bSphere);

@@ -108,3 +108,3 @@ "use strict";

if (rawShaderMaterial.name === "SolidLineMaterial") {
return rawShaderMaterial.uniforms.diffuse.value;
return rawShaderMaterial.uniforms.diffuseColor.value;
}

@@ -111,0 +111,0 @@ logger.warn("BufferedGeometryAccessor#color: unknown shader material name", rawShaderMaterial.name);

@@ -596,3 +596,2 @@ import { Env, FlatTheme, FontCatalogConfig, PostEffects, TextStyleDefinition, Theme, Value } from "@here/harp-datasource-protocol";

private m_firstFrameComplete;
private m_initialTextPlacementDone;
private readonly handleRequestAnimationFrame;

@@ -1305,3 +1304,6 @@ private readonly m_pickHandler;

* Returns `true` if the current frame will immediately be followed by another frame.
*/
* @deprecated This should only be used for the internal handling of the render loop,
* if you use your own RenderLoop use {@link MapView::renderSync} in combination with
* {@link MapViewEventNames.FrameComplete}
**/
get isDynamicFrame(): boolean;

@@ -1308,0 +1310,0 @@ /**

@@ -535,2 +535,3 @@ "use strict";

if (!imageItem) {
poiInfo.imageItem = null;
return;

@@ -537,0 +538,0 @@ }

@@ -98,5 +98,5 @@ import { GeometryKind, GeometryKindSet, ImageTexture, LineMarkerTechnique, PoiStackMode, PoiTechnique } from "@here/harp-datasource-protocol";

* @hidden
* Direct access to {@link ImageItem} once it is resolved.
* Direct access to {@link ImageItem} once it is resolved or `null` if not resolvable.
*/
imageItem?: ImageItem;
imageItem?: ImageItem | null;
/**

@@ -103,0 +103,0 @@ * @hidden

@@ -25,3 +25,2 @@ import { FontCatalogConfig, TextStyleDefinition } from "@here/harp-datasource-protocol";

export declare const DEFAULT_TEXT_DISTANCE_SCALE = 0.5;
export declare type ViewUpdateCallback = () => void;
/**

@@ -33,3 +32,2 @@ *

private readonly m_viewState;
private readonly m_viewUpdateCallback;
private readonly m_screenProjector;

@@ -51,4 +49,4 @@ private readonly m_poiManager;

private m_cacheInvalidated;
private m_addNewLabels;
private m_forceNewLabelsPass;
private m_addNewLabels;
private readonly m_textElementStateCache;

@@ -62,2 +60,6 @@ private readonly m_camera;

/**
* indicates if the TextElementsRenderer is still updating, includes fading, elevations etc
*/
private m_isUpdatePending;
/**
* Create the `TextElementsRenderer` which selects which labels should be placed on screen as

@@ -68,3 +70,2 @@ * a preprocessing step, which is not done every frame, and also renders the placed

* @param m_viewState - State of the view for which this renderer will draw text.
* @param m_viewUpdateCallback - To be called whenever the view needs to be updated.
* @param m_screenProjector - Projects 3D coordinates into screen space.

@@ -80,3 +81,3 @@ * @param m_poiManager - To prepare pois for rendering.

*/
constructor(m_viewState: ViewState, m_viewUpdateCallback: ViewUpdateCallback, m_screenProjector: ScreenProjector, m_poiManager: PoiManager, m_renderer: THREE.WebGLRenderer, m_imageCaches: MapViewImageCache[], options: TextElementsRendererOptions, textCanvasFactory?: TextCanvasFactory, poiRenderer?: PoiRenderer, screenCollisions?: ScreenCollisions);
constructor(m_viewState: ViewState, m_screenProjector: ScreenProjector, m_poiManager: PoiManager, m_renderer: THREE.WebGLRenderer, m_imageCaches: MapViewImageCache[], options: TextElementsRendererOptions, textCanvasFactory?: TextCanvasFactory, poiRenderer?: PoiRenderer, screenCollisions?: ScreenCollisions);
/**

@@ -170,2 +171,7 @@ * Disable all fading animations (for debugging and performance measurement). Defaults to

/**
* `true` if TextElements are not placed finally but are still updating, including fading or
* waiting for elevation.
*/
get isUpdatePending(): boolean;
/**
* Waits till all pending resources from any `FontCatalog` are loaded.

@@ -172,0 +178,0 @@ */

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ThemeLoader = exports.DEFAULT_MAX_THEME_INTHERITANCE_DEPTH = void 0;
/*

@@ -7,4 +9,2 @@ * Copyright (C) 2019-2021 HERE Europe B.V.

*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.ThemeLoader = exports.DEFAULT_MAX_THEME_INTHERITANCE_DEPTH = void 0;
require("@here/harp-fetch");

@@ -58,3 +58,3 @@ const harp_datasource_protocol_1 = require("@here/harp-datasource-protocol");

theme = (await response.json());
theme.url = harp_utils_1.resolveReferenceUri(harp_utils_1.getAppBaseUrl(), themeUrl);
theme.url = themeUrl;
theme = this.resolveUrls(theme, options);

@@ -266,3 +266,3 @@ }

}
return def.value;
return Theme_1.getDefinitionValue(def);
}

@@ -269,0 +269,0 @@ else if (Array.isArray(node)) {

{
"name": "@here/harp-mapview",
"version": "0.27.1",
"version": "0.28.0",
"description": "Functionality needed to render a map.",

@@ -35,16 +35,16 @@ "keywords": [

"dependencies": {
"@here/harp-datasource-protocol": "^0.27.1",
"@here/harp-fetch": "^0.27.1",
"@here/harp-geometry": "^0.27.1",
"@here/harp-geoutils": "^0.27.1",
"@here/harp-lines": "^0.27.1",
"@here/harp-lrucache": "^0.27.1",
"@here/harp-materials": "^0.27.1",
"@here/harp-text-canvas": "^0.27.1",
"@here/harp-transfer-manager": "^0.27.1",
"@here/harp-utils": "^0.27.1",
"@here/harp-datasource-protocol": "^0.28.0",
"@here/harp-fetch": "^0.28.0",
"@here/harp-geometry": "^0.28.0",
"@here/harp-geoutils": "^0.28.0",
"@here/harp-lines": "^0.28.0",
"@here/harp-lrucache": "^0.28.0",
"@here/harp-materials": "^0.28.0",
"@here/harp-text-canvas": "^0.28.0",
"@here/harp-transfer-manager": "^0.28.0",
"@here/harp-utils": "^0.28.0",
"rbush": "^3.0.1"
},
"devDependencies": {
"@here/harp-test-utils": "^0.27.1",
"@here/harp-test-utils": "^0.28.0",
"@types/chai": "^4.2.14",

@@ -72,3 +72,3 @@ "@types/chai-as-promised": "^7.1.2",

},
"gitHead": "6c17056d057918bdbf3599bac350b8298a95ff1f"
"gitHead": "e55351c399672d382cdaefdd8a3c20cce29c024b"
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc