@lgv/heatmap 0.0.6 → 0.0.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.
@@ -0,0 +1,19 @@
1
+ /* @preserve
2
+ * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
3
+ * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
4
+ */
5
+
6
+ /*!
7
+ * Copyright (c) Microsoft Corporation.
8
+ * Licensed under the MIT License.
9
+ */
10
+
11
+ /*! Hammer.JS - v2.0.7 - 2016-04-22
12
+ * http://hammerjs.github.io/
13
+ *
14
+ * Copyright (c) 2016 Jorik Tangelder;
15
+ * Licensed under the MIT license */
16
+
17
+ //! moment.js
18
+
19
+ //! moment.js locale configuration
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lgv/heatmap",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "type": "module",
5
5
  "description": "ES6 heatmap visualization for leaflet using vega/d3.js.",
6
6
  "main": "src/index.js",
@@ -46,7 +46,7 @@
46
46
  "dependencies": {
47
47
  "@deck.gl/core": "9.0.34",
48
48
  "@deck.gl/layers": "9.0.34",
49
- "@lgv/visualization-map": "^1.0.4",
49
+ "@lgv/visualization-map": "^1.2.1",
50
50
  "@luma.gl/core": "9.0.27",
51
51
  "@msrvida/vega-deck.gl": "^3.3.6",
52
52
  "d3-scale": "^4.0.2",
@@ -14,6 +14,7 @@ import { configuration, configurationColor, configurationLayout } from "../confi
14
14
 
15
15
  /**
16
16
  * Heatmap is a map abstraction for a heatmap visualization.
17
+ * @param {array} center - [x,y] centroid of map
17
18
  * @param {object} data - usually array; occasionally object
18
19
  * @param {node} dom - HTML dom node
19
20
  * @param {string} label - identifer for chart brand
@@ -24,10 +25,10 @@ import { configuration, configurationColor, configurationLayout } from "../confi
24
25
  */
25
26
  class Heatmap extends VisualizationMap {
26
27
 
27
- constructor(dom=null, data, width=configurationLayout.width, height=configurationLayout.height, HeatLayout=null, tileServerUrl=configurationLayout.tileserver, color=configurationColor, label=configuration.branding, name=configuration.name) {
28
+ constructor(dom=null, data, width=configurationLayout.width, height=configurationLayout.height, HeatLayout=null, center=null, tileServerUrl=configurationLayout.tileserver, color=configurationColor, label=configuration.branding, name=configuration.name) {
28
29
 
29
30
  // initialize inheritance
30
- super(dom, data, width, height, HeatLayout ? HeatLayout : new HL(data), tileServerUrl, label, name);
31
+ super(dom, data, width, height, HeatLayout ? HeatLayout : new HL(data), center, tileServerUrl, label, name);
31
32
 
32
33
  // initialize vega
33
34
  VegaDeckGl.use(vega, deck, layers, luma);
package/.gitlab-ci.yml DELETED
@@ -1,40 +0,0 @@
1
- stages:
2
- - test
3
- - version
4
- - publish
5
-
6
- include:
7
- ###################################### GITLAB TEMPLATES ######################################
8
- - template: Security/SAST.gitlab-ci.yml
9
-
10
- - project: "lgensinger/cicd-templates"
11
- file: "node/module/nodejs-scan-sast.yml"
12
-
13
- - project: "lgensinger/cicd-templates"
14
- file: "node/module/semgrep-sast.yml"
15
-
16
- ###################################### TESTING ######################################
17
-
18
- # unit test
19
- - project: "lgensinger/cicd-templates"
20
- file: "node/module/test.yml"
21
-
22
- # coverage
23
- - project: "lgensinger/cicd-templates"
24
- file: "node/module/coverage.yml"
25
-
26
- ###################################### VERSIONING ######################################
27
-
28
- # module
29
- - project: "lgensinger/cicd-templates"
30
- file: "node/module/version.yml"
31
-
32
- ###################################### PUBLISHING ######################################
33
-
34
- # npm
35
- - project: "lgensinger/cicd-templates"
36
- file: "node/module/publish.yml"
37
-
38
- # allow failure until webpack css fixed for tests
39
- unit test:
40
- allow_failure: true
@@ -1,3 +0,0 @@
1
- import browserEnv from "browser-env";
2
-
3
- browserEnv(["document"]);
@@ -1,10 +0,0 @@
1
- import test from "ava";
2
-
3
- import { configuration } from "../src/configuration.js";
4
-
5
- test("init", t => {
6
-
7
- // INIT TEST //
8
- t.true(typeof(configuration) === "object");
9
-
10
- });
package/webpack.dev.js DELETED
@@ -1,19 +0,0 @@
1
- import { commonConfig } from "./webpack.common.js";
2
-
3
- import HtmlWebpackPlugin from "html-webpack-plugin";
4
- import { merge } from "webpack-merge";
5
-
6
- const webpackConfig = merge(commonConfig, {
7
-
8
- mode: "development",
9
-
10
- plugins: [
11
- new HtmlWebpackPlugin({
12
- title: "Development",
13
- })
14
- ]
15
-
16
- });
17
-
18
- export { webpackConfig };
19
- export default webpackConfig;