@lgv/heatmap 0.0.5 → 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.
- package/dist/heatmap.bundle.js +2 -0
- package/dist/heatmap.bundle.js.LICENSE.txt +19 -0
- package/package.json +5 -5
- package/src/visualization/index.js +3 -2
- package/.gitlab-ci.yml +0 -40
- package/tests/_setup-browser-env.js +0 -3
- package/tests/init_test.js +0 -10
- package/webpack.dev.js +0 -19
|
@@ -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.
|
|
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",
|
|
@@ -44,10 +44,10 @@
|
|
|
44
44
|
"webpack-dev-server": "^5.0.4"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@deck.gl/core": "
|
|
48
|
-
"@deck.gl/layers": "
|
|
49
|
-
"@lgv/visualization-map": "^1.
|
|
50
|
-
"@luma.gl/core": "
|
|
47
|
+
"@deck.gl/core": "9.0.34",
|
|
48
|
+
"@deck.gl/layers": "9.0.34",
|
|
49
|
+
"@lgv/visualization-map": "^1.2.1",
|
|
50
|
+
"@luma.gl/core": "9.0.27",
|
|
51
51
|
"@msrvida/vega-deck.gl": "^3.3.6",
|
|
52
52
|
"d3-scale": "^4.0.2",
|
|
53
53
|
"leaflet": "^1.9.4",
|
|
@@ -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
|
package/tests/init_test.js
DELETED
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;
|