@hpcc-js/map 2.78.2 → 3.1.0

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.
Files changed (298) hide show
  1. package/dist/index.js +888 -31380
  2. package/dist/index.js.map +7 -1
  3. package/package.json +41 -40
  4. package/src/CanvasPinLayer.ts +2 -2
  5. package/src/CanvasPins.ts +12 -11
  6. package/src/Choropleth.ts +13 -5
  7. package/src/ChoroplethContinents.ts +1 -1
  8. package/src/ChoroplethCounties.ts +9 -7
  9. package/src/ChoroplethCountries.ts +2 -2
  10. package/src/ChoroplethStates.ts +1 -2
  11. package/src/ChoroplethStatesHeat.ts +1 -1
  12. package/src/GMap.ts +4 -3
  13. package/src/GMapCounties.ts +2 -2
  14. package/src/GMapGraph.ts +1 -1
  15. package/src/GMapHeat.ts +1 -1
  16. package/src/GMapLayered.ts +2 -2
  17. package/src/GMapPin.ts +2 -2
  18. package/src/GMapPinLine.ts +38 -25
  19. package/src/GeoHash.ts +31 -17
  20. package/src/Graph.ts +1 -1
  21. package/src/Graticule.ts +14 -7
  22. package/src/Heat.ts +13 -8
  23. package/src/Layer.ts +28 -19
  24. package/src/Layered.ts +1 -1
  25. package/src/Lines.ts +6 -3
  26. package/src/OpenStreet.ts +7 -4
  27. package/src/Pins.ts +75 -44
  28. package/src/Projection.ts +1 -1
  29. package/src/TestHeatMap.ts +1 -1
  30. package/src/TopoJSONChoropleth.ts +106 -95
  31. package/src/__package__.ts +2 -2
  32. package/src/index.ts +29 -30
  33. package/src/leaflet/AlbersPR.ts +3 -3
  34. package/src/leaflet/Blank.ts +1 -1
  35. package/src/leaflet/Circles.ts +2 -2
  36. package/src/leaflet/ClusterCircles.ts +2 -2
  37. package/src/leaflet/Countries.ts +2 -2
  38. package/src/leaflet/DrawLayer.ts +2 -2
  39. package/src/leaflet/FeatureLayer.ts +3 -3
  40. package/src/leaflet/GMap.ts +3 -3
  41. package/src/leaflet/HeatLayer.ts +2 -2
  42. package/src/leaflet/Icons.ts +2 -2
  43. package/src/leaflet/Leaflet.ts +10 -9
  44. package/src/leaflet/MapBox.ts +2 -2
  45. package/src/leaflet/Markers.ts +2 -2
  46. package/src/leaflet/OpenStreet.ts +2 -2
  47. package/src/leaflet/Path.ts +3 -3
  48. package/src/leaflet/Pins.ts +2 -2
  49. package/src/leaflet/Polygons.ts +2 -2
  50. package/src/leaflet/Region.ts +2 -2
  51. package/src/leaflet/Text.ts +2 -2
  52. package/src/leaflet/TileLayer.ts +1 -1
  53. package/src/leaflet/TopoJSON.ts +3 -3
  54. package/src/leaflet/US.ts +2 -2
  55. package/src/leaflet/USCounties.ts +2 -2
  56. package/src/leaflet/USStates.ts +2 -2
  57. package/src/leaflet/World.ts +8 -7
  58. package/src/leaflet/index.ts +18 -18
  59. package/src/leaflet/leaflet-shim.ts +19 -0
  60. package/src/leaflet/plugins/BeautifyIcon.css +44 -0
  61. package/src/leaflet/plugins/BeautifyIcon.ts +190 -0
  62. package/src/leaflet/plugins/BeutifyIcon.licence +21 -0
  63. package/src/leaflet/plugins/D3SvgOverlay.css +3 -0
  64. package/src/leaflet/plugins/D3SvgOverlay.licence +21 -0
  65. package/src/leaflet/plugins/D3SvgOverlay.ts +175 -0
  66. package/src/leaflet/plugins/HeatLayer.license +22 -0
  67. package/src/leaflet/plugins/HeatLayer.ts +224 -0
  68. package/src/leaflet/plugins/Leaflet.GoogleMutant.ts +425 -0
  69. package/src/leaflet/plugins/lru_map.ts +352 -0
  70. package/types/CanvasPinLayer.d.ts +1 -2
  71. package/types/CanvasPins.d.ts +10 -12
  72. package/types/Choropleth.d.ts +6 -6
  73. package/types/ChoroplethContinents.d.ts +1 -2
  74. package/types/ChoroplethCounties.d.ts +6 -8
  75. package/types/ChoroplethCountries.d.ts +1 -3
  76. package/types/ChoroplethStates.d.ts +1 -3
  77. package/types/ChoroplethStatesHeat.d.ts +1 -2
  78. package/types/GMap.d.ts +3 -4
  79. package/types/GMapCounties.d.ts +2 -3
  80. package/types/GMapGraph.d.ts +1 -2
  81. package/types/GMapHeat.d.ts +1 -2
  82. package/types/GMapLayered.d.ts +1 -2
  83. package/types/GMapPin.d.ts +1 -2
  84. package/types/GMapPinLine.d.ts +35 -56
  85. package/types/GeoHash.d.ts +23 -34
  86. package/types/Graph.d.ts +1 -2
  87. package/types/Graticule.d.ts +12 -17
  88. package/types/Heat.d.ts +12 -17
  89. package/types/IChoropleth.d.ts +0 -1
  90. package/types/Layer.d.ts +26 -40
  91. package/types/Layered.d.ts +0 -1
  92. package/types/Lines.d.ts +5 -6
  93. package/types/OpenStreet.d.ts +6 -7
  94. package/types/Pins.d.ts +64 -103
  95. package/types/Projection.d.ts +0 -1
  96. package/types/TopoJSONChoropleth.d.ts +15 -4
  97. package/types/Utility.d.ts +0 -1
  98. package/types/__package__.d.ts +2 -3
  99. package/types/index.d.ts +29 -31
  100. package/types/leaflet/AlbersPR.d.ts +2 -3
  101. package/types/leaflet/Blank.d.ts +1 -2
  102. package/types/leaflet/Circles.d.ts +2 -3
  103. package/types/leaflet/ClusterCircles.d.ts +2 -3
  104. package/types/leaflet/Countries.d.ts +1 -2
  105. package/types/leaflet/DrawLayer.d.ts +2 -3
  106. package/types/leaflet/FeatureLayer.d.ts +3 -4
  107. package/types/leaflet/GMap.d.ts +2 -3
  108. package/types/leaflet/HeatLayer.d.ts +2 -3
  109. package/types/leaflet/Icons.d.ts +2 -3
  110. package/types/leaflet/Leaflet.d.ts +9 -9
  111. package/types/leaflet/MapBox.d.ts +2 -3
  112. package/types/leaflet/Markers.d.ts +2 -3
  113. package/types/leaflet/OpenStreet.d.ts +2 -3
  114. package/types/leaflet/Path.d.ts +2 -3
  115. package/types/leaflet/Pins.d.ts +2 -3
  116. package/types/leaflet/Polygons.d.ts +2 -3
  117. package/types/leaflet/Region.d.ts +1 -2
  118. package/types/leaflet/Text.d.ts +2 -3
  119. package/types/leaflet/TileLayer.d.ts +1 -2
  120. package/types/leaflet/TopoJSON.d.ts +2 -3
  121. package/types/leaflet/US.d.ts +2 -3
  122. package/types/leaflet/USCounties.d.ts +1 -2
  123. package/types/leaflet/USStates.d.ts +1 -2
  124. package/types/leaflet/World.d.ts +5 -8
  125. package/types/leaflet/index.d.ts +18 -19
  126. package/types/leaflet/leaflet-shim.d.ts +14 -0
  127. package/types/leaflet/plugins/BeautifyIcon.d.ts +2 -0
  128. package/types/leaflet/plugins/D3SvgOverlay.d.ts +36 -0
  129. package/types/leaflet/plugins/HeatLayer.d.ts +23 -0
  130. package/types/leaflet/plugins/Leaflet.GoogleMutant.d.ts +1 -0
  131. package/types/leaflet/plugins/lru_map.d.ts +33 -0
  132. package/TopoJSON/AT.json +0 -1
  133. package/TopoJSON/BE.json +0 -1
  134. package/TopoJSON/BG.json +0 -1
  135. package/TopoJSON/BR.json +0 -123
  136. package/TopoJSON/CHLI.json +0 -1
  137. package/TopoJSON/CY.json +0 -1
  138. package/TopoJSON/CZ.json +0 -1
  139. package/TopoJSON/DE.json +0 -1
  140. package/TopoJSON/DK.json +0 -1
  141. package/TopoJSON/EE.json +0 -1
  142. package/TopoJSON/ES.json +0 -1
  143. package/TopoJSON/FI.json +0 -1
  144. package/TopoJSON/FR.json +0 -1
  145. package/TopoJSON/GB.json +0 -1
  146. package/TopoJSON/GB_idx.json +0 -1
  147. package/TopoJSON/GE.json +0 -1
  148. package/TopoJSON/GR.json +0 -1
  149. package/TopoJSON/HR.json +0 -1
  150. package/TopoJSON/HU.json +0 -1
  151. package/TopoJSON/IE.json +0 -1
  152. package/TopoJSON/IE_idx.json +0 -1
  153. package/TopoJSON/IS.json +0 -1
  154. package/TopoJSON/IT.json +0 -1
  155. package/TopoJSON/KS.json +0 -1
  156. package/TopoJSON/LT.json +0 -1
  157. package/TopoJSON/LU.json +0 -1
  158. package/TopoJSON/LV.json +0 -1
  159. package/TopoJSON/MD.json +0 -1
  160. package/TopoJSON/MK.json +0 -1
  161. package/TopoJSON/MT.json +0 -1
  162. package/TopoJSON/ND.json +0 -1
  163. package/TopoJSON/ND_idx.json +0 -1
  164. package/TopoJSON/NL.json +0 -1
  165. package/TopoJSON/NO.json +0 -1
  166. package/TopoJSON/PL.json +0 -1
  167. package/TopoJSON/PT.json +0 -1
  168. package/TopoJSON/RO.json +0 -1
  169. package/TopoJSON/RS.json +0 -1
  170. package/TopoJSON/SE.json +0 -1
  171. package/TopoJSON/SI.json +0 -1
  172. package/TopoJSON/SK.json +0 -1
  173. package/TopoJSON/UA.json +0 -1
  174. package/TopoJSON/countries.json +0 -257
  175. package/TopoJSON/us-counties.json +0 -16550
  176. package/TopoJSON/us-states.json +0 -458
  177. package/dist/index.es6.js +0 -31436
  178. package/dist/index.es6.js.map +0 -1
  179. package/dist/index.min.js +0 -7
  180. package/dist/index.min.js.map +0 -1
  181. package/types/CanvasPinLayer.d.ts.map +0 -1
  182. package/types/CanvasPins.d.ts.map +0 -1
  183. package/types/Choropleth.d.ts.map +0 -1
  184. package/types/ChoroplethContinents.d.ts.map +0 -1
  185. package/types/ChoroplethCounties.d.ts.map +0 -1
  186. package/types/ChoroplethCountries.d.ts.map +0 -1
  187. package/types/ChoroplethStates.d.ts.map +0 -1
  188. package/types/ChoroplethStatesHeat.d.ts.map +0 -1
  189. package/types/GMap.d.ts.map +0 -1
  190. package/types/GMapCounties.d.ts.map +0 -1
  191. package/types/GMapGraph.d.ts.map +0 -1
  192. package/types/GMapHeat.d.ts.map +0 -1
  193. package/types/GMapLayered.d.ts.map +0 -1
  194. package/types/GMapPin.d.ts.map +0 -1
  195. package/types/GMapPinLine.d.ts.map +0 -1
  196. package/types/GeoHash.d.ts.map +0 -1
  197. package/types/Graph.d.ts.map +0 -1
  198. package/types/Graticule.d.ts.map +0 -1
  199. package/types/Heat.d.ts.map +0 -1
  200. package/types/IChoropleth.d.ts.map +0 -1
  201. package/types/Layer.d.ts.map +0 -1
  202. package/types/Layered.d.ts.map +0 -1
  203. package/types/Lines.d.ts.map +0 -1
  204. package/types/OpenStreet.d.ts.map +0 -1
  205. package/types/Pins.d.ts.map +0 -1
  206. package/types/Projection.d.ts.map +0 -1
  207. package/types/TestHeatMap.d.ts +0 -5
  208. package/types/TestHeatMap.d.ts.map +0 -1
  209. package/types/TopoJSONChoropleth.d.ts.map +0 -1
  210. package/types/Utility.d.ts.map +0 -1
  211. package/types/__package__.d.ts.map +0 -1
  212. package/types/index.d.ts.map +0 -1
  213. package/types/leaflet/AlbersPR.d.ts.map +0 -1
  214. package/types/leaflet/Blank.d.ts.map +0 -1
  215. package/types/leaflet/Circles.d.ts.map +0 -1
  216. package/types/leaflet/ClusterCircles.d.ts.map +0 -1
  217. package/types/leaflet/Countries.d.ts.map +0 -1
  218. package/types/leaflet/DrawLayer.d.ts.map +0 -1
  219. package/types/leaflet/FeatureLayer.d.ts.map +0 -1
  220. package/types/leaflet/GMap.d.ts.map +0 -1
  221. package/types/leaflet/HeatLayer.d.ts.map +0 -1
  222. package/types/leaflet/Icons.d.ts.map +0 -1
  223. package/types/leaflet/Leaflet.d.ts.map +0 -1
  224. package/types/leaflet/MapBox.d.ts.map +0 -1
  225. package/types/leaflet/Markers.d.ts.map +0 -1
  226. package/types/leaflet/OpenStreet.d.ts.map +0 -1
  227. package/types/leaflet/Path.d.ts.map +0 -1
  228. package/types/leaflet/Pins.d.ts.map +0 -1
  229. package/types/leaflet/Polygons.d.ts.map +0 -1
  230. package/types/leaflet/Region.d.ts.map +0 -1
  231. package/types/leaflet/Text.d.ts.map +0 -1
  232. package/types/leaflet/TileLayer.d.ts.map +0 -1
  233. package/types/leaflet/TopoJSON.d.ts.map +0 -1
  234. package/types/leaflet/US.d.ts.map +0 -1
  235. package/types/leaflet/USCounties.d.ts.map +0 -1
  236. package/types/leaflet/USStates.d.ts.map +0 -1
  237. package/types/leaflet/World.d.ts.map +0 -1
  238. package/types/leaflet/index.d.ts.map +0 -1
  239. package/types/test.d.ts +0 -24
  240. package/types/test.d.ts.map +0 -1
  241. package/types-3.4/CanvasPinLayer.d.ts +0 -23
  242. package/types-3.4/CanvasPins.d.ts +0 -72
  243. package/types-3.4/Choropleth.d.ts +0 -59
  244. package/types-3.4/ChoroplethContinents.d.ts +0 -6
  245. package/types-3.4/ChoroplethCounties.d.ts +0 -17
  246. package/types-3.4/ChoroplethCountries.d.ts +0 -12
  247. package/types-3.4/ChoroplethStates.d.ts +0 -12
  248. package/types-3.4/ChoroplethStatesHeat.d.ts +0 -5
  249. package/types-3.4/GMap.d.ts +0 -137
  250. package/types-3.4/GMapCounties.d.ts +0 -23
  251. package/types-3.4/GMapGraph.d.ts +0 -6
  252. package/types-3.4/GMapHeat.d.ts +0 -6
  253. package/types-3.4/GMapLayered.d.ts +0 -20
  254. package/types-3.4/GMapPin.d.ts +0 -33
  255. package/types-3.4/GMapPinLine.d.ts +0 -72
  256. package/types-3.4/GeoHash.d.ts +0 -48
  257. package/types-3.4/Graph.d.ts +0 -14
  258. package/types-3.4/Graticule.d.ts +0 -30
  259. package/types-3.4/Heat.d.ts +0 -28
  260. package/types-3.4/IChoropleth.d.ts +0 -2
  261. package/types-3.4/Layer.d.ts +0 -58
  262. package/types-3.4/Layered.d.ts +0 -47
  263. package/types-3.4/Lines.d.ts +0 -17
  264. package/types-3.4/OpenStreet.d.ts +0 -22
  265. package/types-3.4/Pins.d.ts +0 -122
  266. package/types-3.4/Projection.d.ts +0 -6
  267. package/types-3.4/TestHeatMap.d.ts +0 -5
  268. package/types-3.4/TopoJSONChoropleth.d.ts +0 -5
  269. package/types-3.4/Utility.d.ts +0 -80
  270. package/types-3.4/__package__.d.ts +0 -4
  271. package/types-3.4/index.d.ts +0 -32
  272. package/types-3.4/leaflet/AlbersPR.d.ts +0 -16
  273. package/types-3.4/leaflet/Blank.d.ts +0 -5
  274. package/types-3.4/leaflet/Circles.d.ts +0 -56
  275. package/types-3.4/leaflet/ClusterCircles.d.ts +0 -30
  276. package/types-3.4/leaflet/Countries.d.ts +0 -7
  277. package/types-3.4/leaflet/DrawLayer.d.ts +0 -40
  278. package/types-3.4/leaflet/FeatureLayer.d.ts +0 -40
  279. package/types-3.4/leaflet/GMap.d.ts +0 -14
  280. package/types-3.4/leaflet/HeatLayer.d.ts +0 -32
  281. package/types-3.4/leaflet/Icons.d.ts +0 -26
  282. package/types-3.4/leaflet/Leaflet.d.ts +0 -53
  283. package/types-3.4/leaflet/MapBox.d.ts +0 -9
  284. package/types-3.4/leaflet/Markers.d.ts +0 -38
  285. package/types-3.4/leaflet/OpenStreet.d.ts +0 -9
  286. package/types-3.4/leaflet/Path.d.ts +0 -43
  287. package/types-3.4/leaflet/Pins.d.ts +0 -32
  288. package/types-3.4/leaflet/Polygons.d.ts +0 -36
  289. package/types-3.4/leaflet/Region.d.ts +0 -15
  290. package/types-3.4/leaflet/Text.d.ts +0 -41
  291. package/types-3.4/leaflet/TileLayer.d.ts +0 -33
  292. package/types-3.4/leaflet/TopoJSON.d.ts +0 -14
  293. package/types-3.4/leaflet/US.d.ts +0 -7
  294. package/types-3.4/leaflet/USCounties.d.ts +0 -6
  295. package/types-3.4/leaflet/USStates.d.ts +0 -6
  296. package/types-3.4/leaflet/World.d.ts +0 -59
  297. package/types-3.4/leaflet/index.d.ts +0 -19
  298. package/types-3.4/test.d.ts +0 -24
package/package.json CHANGED
@@ -1,54 +1,52 @@
1
1
  {
2
2
  "name": "@hpcc-js/map",
3
- "version": "2.78.2",
3
+ "version": "3.1.0",
4
4
  "description": "hpcc-js - Viz Map",
5
- "main": "dist/index.js",
6
- "module": "dist/index.es6",
7
- "unpkg": "dist/index.min.js",
8
- "jsdelivr": "dist/index.min.js",
9
- "types": "types/index.d.ts",
10
- "typesVersions": {
11
- "<3.8": {
12
- "*": [
13
- "types-3.4/index.d.ts"
14
- ]
15
- }
5
+ "type": "module",
6
+ "exports": {
7
+ ".": {
8
+ "types": "./types/index.d.ts",
9
+ "default": "./dist/index.js"
10
+ },
11
+ "./dist/*": "./dist/*"
16
12
  },
13
+ "module": "./dist/index.js",
14
+ "browser": "./dist/index.js",
15
+ "types": "./types/index.d.ts",
17
16
  "files": [
18
17
  "dist/*",
19
- "types/*",
20
- "types-3.4/*",
21
- "TopoJSON/*",
22
- "src/*"
18
+ "src/*",
19
+ "types/*"
23
20
  ],
24
21
  "scripts": {
25
- "clean": "rimraf --glob lib* types dist *.tsbuildinfo",
26
- "compile-es6": "tsc --module es6 --outDir ./lib-es6",
27
- "compile-es6-watch": "npm run compile-es6 -- -w",
28
- "compile-umd": "tsc --module umd --outDir ./lib-umd",
29
- "compile-umd-watch": "npm run compile-umd -- -w",
30
- "bundle": "rollup -c",
31
- "bundle-watch": "npm run bundle -- -w",
32
- "minimize": "terser dist/index.js -c -m --source-map \"content='dist/index.js.map',url='index.min.js.map'\" -o dist/index.min.js",
33
- "gen-legacy-types": "downlevel-dts ./types ./types-3.4",
34
- "build": "npm run compile-es6 && npm run bundle",
35
- "watch": "npm-run-all compile-es6 -p compile-es6-watch bundle-watch",
36
- "stamp": "node ../../node_modules/@hpcc-js/bundle/src/stamp.js",
22
+ "clean": "rimraf --glob lib* types dist *.tsbuildinfo .turbo",
23
+ "bundle": "node esbuild.js",
24
+ "bundle-watch": "npm run bundle -- --development --watch",
25
+ "gen-types": "tsc --project tsconfig.json",
26
+ "gen-types-watch": "npm run gen-types -- --watch",
27
+ "build": "run-p gen-types bundle",
37
28
  "lint": "eslint ./src",
29
+ "lint-fix": "eslint --fix src/**/*.ts",
38
30
  "docs": "typedoc --options tdoptions.json .",
39
- "update": "npx --yes npm-check-updates -u -t minor"
31
+ "test-browser": "vitest run --project browser",
32
+ "test": "vitest run",
33
+ "coverage": "vitest run --coverage",
34
+ "update": "npx --yes npm-check-updates -u -t minor",
35
+ "update-major": "npx --yes npm-check-updates -u"
40
36
  },
41
37
  "dependencies": {
42
- "@hpcc-js/api": "^2.13.0",
43
- "@hpcc-js/common": "^2.72.0",
44
- "@hpcc-js/graph": "^2.86.0",
45
- "@hpcc-js/layout": "^2.50.2",
46
- "@hpcc-js/leaflet-shim": "^2.4.0",
47
- "@hpcc-js/other": "^2.16.2",
48
- "@hpcc-js/util": "^2.52.0"
38
+ "@hpcc-js/api": "^3.2.0",
39
+ "@hpcc-js/common": "^3.2.0",
40
+ "@hpcc-js/graph": "^3.1.0",
41
+ "@hpcc-js/layout": "^3.1.0",
42
+ "@hpcc-js/other": "^3.1.0",
43
+ "@hpcc-js/util": "^3.2.0"
49
44
  },
50
45
  "devDependencies": {
51
- "@hpcc-js/bundle": "^2.12.0",
46
+ "@hpcc-js/esbuild-plugins": "^1.3.0",
47
+ "@types/leaflet-draw": "1.0.11",
48
+ "@types/leaflet.heat": "0.2.4",
49
+ "@types/leaflet.markercluster": "1.5.4",
52
50
  "d3-collection": "^1",
53
51
  "d3-color": "3.1.0",
54
52
  "d3-format": "^1",
@@ -58,8 +56,11 @@
58
56
  "d3-selection": "^1",
59
57
  "d3-tile": "^1",
60
58
  "google-maps": "3.3.0",
61
- "topojson-client": "3.1.0",
62
- "tslib": "2.6.3"
59
+ "leaflet-draw": "1.0.4",
60
+ "leaflet.heat": "0.2.0",
61
+ "leaflet.markercluster": "1.5.3",
62
+ "simpleheat": "0.4.0",
63
+ "topojson-client": "3.1.0"
63
64
  },
64
65
  "repository": {
65
66
  "type": "git",
@@ -72,5 +73,5 @@
72
73
  "url": "https://github.com/hpcc-systems/Visualization/issues"
73
74
  },
74
75
  "homepage": "https://github.com/hpcc-systems/Visualization",
75
- "gitHead": "9e1dd990858b6fb5dd0e46425def23c9609c147a"
76
+ "gitHead": "658c50fd965a7744ba8db675ba6878607c44d5e2"
76
77
  }
@@ -1,5 +1,5 @@
1
- import { CanvasPins } from "./CanvasPins";
2
- import { Layer } from "./Layer";
1
+ import { CanvasPins } from "./CanvasPins.ts";
2
+ import { Layer } from "./Layer.ts";
3
3
 
4
4
  export class CanvasPinLayer extends Layer {
5
5
  _pinsTransform;
package/src/CanvasPins.ts CHANGED
@@ -64,7 +64,6 @@ class Quadtree {
64
64
  }
65
65
 
66
66
  export class CanvasPins extends CanvasWidget {
67
- _ctx;
68
67
  _quadtree_rect_arr;
69
68
  _drawData;
70
69
  _overlap_count = 0;
@@ -328,6 +327,9 @@ CanvasPins.prototype._class += " map_CanvasPins";
328
327
  export interface CanvasPins {
329
328
  clusterMode(): any;
330
329
  clusterMode(_: any): CanvasPins;
330
+ gridCellSize(): number;
331
+ gridCellSize(_: number): CanvasPins;
332
+
331
333
  allCircles(): boolean;
332
334
  allCircles(_: boolean): CanvasPins;
333
335
  showQuadtree(): boolean;
@@ -344,20 +346,19 @@ export interface CanvasPins {
344
346
  enableClustering(_: boolean): CanvasPins;
345
347
  searchRectMult(): number;
346
348
  searchRectMult(_: number): CanvasPins;
347
- gridCellSize(): number;
348
- gridCellSize(_: number): CanvasPins;
349
- arrowHeight(): number;
350
- arrowHeight(_: number): CanvasPins;
351
- arrowWidth(): number;
352
- arrowWidth(_: number): CanvasPins;
353
349
  bottomRightX(): number;
354
350
  bottomRightX(_: number): CanvasPins;
351
+ bottomRightX_exists(): boolean;
355
352
  bottomRightY(): number;
356
353
  bottomRightY(_: number): CanvasPins;
354
+ bottomRightY_exists(): boolean;
357
355
  topLeftX(): number;
358
356
  topLeftX(_: number): CanvasPins;
357
+ topLeftX_exists(): boolean;
359
358
  topLeftY(): number;
360
359
  topLeftY(_: number): CanvasPins;
360
+ topLeftY_exists(): boolean;
361
+
361
362
  pinHeight(): number;
362
363
  pinHeight(_: number): CanvasPins;
363
364
  pinWidth(): number;
@@ -366,10 +367,10 @@ export interface CanvasPins {
366
367
  pinFontFamily(_: string): CanvasPins;
367
368
  pinFontSize(): number;
368
369
  pinFontSize(_: number): CanvasPins;
369
- bottomRightX_exists(): boolean;
370
- bottomRightY_exists(): boolean;
371
- topLeftX_exists(): boolean;
372
- topLeftY_exists(): boolean;
370
+ arrowHeight(): number;
371
+ arrowHeight(_: number): CanvasPins;
372
+ arrowWidth(): number;
373
+ arrowWidth(_: number): CanvasPins;
373
374
  }
374
375
 
375
376
  CanvasPins.prototype.publish("clusterMode", "default", "set", "clusterMode", ["defualt", "grid"], { tags: ["Basic"], optional: true });
package/src/Choropleth.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Palette, Utility } from "@hpcc-js/common";
2
2
  import { select as d3Select } from "d3-selection";
3
3
  import * as topojson from "topojson-client";
4
- import { Layer } from "./Layer";
4
+ import { Layer } from "./Layer.ts";
5
5
 
6
6
  import "../src/Choropleth.css";
7
7
 
@@ -18,7 +18,7 @@ export function topoJsonFolder(_?: string): string {
18
18
  export class Choropleth extends Layer {
19
19
  _dataMap = {};
20
20
  _path: any = d3Select(null);
21
- _palette;
21
+
22
22
  _dataMinWeight;
23
23
  _dataMaxWeight;
24
24
  _choroplethData;
@@ -157,18 +157,23 @@ Choropleth.prototype.mixin(Utility.SimpleSelectionMixin);
157
157
  Choropleth.prototype._palette = Palette.rainbow("default");
158
158
 
159
159
  export interface Choropleth {
160
- autoScaleMode(): string;
161
- autoScaleMode(_: string): this;
162
- autoScaleMode_exists(): boolean;
160
+ _palette;
161
+
162
+ // SimpleSelectionMixin ---
163
+ _selection;
164
+
165
+ // Properties ---
163
166
  paletteID(): string;
164
167
  paletteID(_: string): this;
165
168
  paletteID_exists(): boolean;
166
169
  useClonedPalette(): boolean;
167
170
  useClonedPalette(_: boolean): this;
168
171
  useClonedPalette_exists(): boolean;
172
+
169
173
  opacity(): number;
170
174
  opacity(_: number): this;
171
175
  opacity_exists(): boolean;
176
+
172
177
  meshVisible(): boolean;
173
178
  meshVisible(_: boolean): this;
174
179
  meshVisible_exists(): boolean;
@@ -181,6 +186,9 @@ export interface Choropleth {
181
186
  internalOnly(): boolean;
182
187
  internalOnly(_: boolean): this;
183
188
  internalOnly_exists(): boolean;
189
+ autoScaleMode(): string;
190
+ autoScaleMode(_: string): this;
191
+ autoScaleMode_exists(): boolean;
184
192
  }
185
193
 
186
194
  Choropleth.prototype.publish("paletteID", "YlOrRd", "set", "Color palette for this widget", Choropleth.prototype._palette.switch(), { tags: ["Basic", "Shared"] });
@@ -1,4 +1,4 @@
1
- import { ChoroplethCountries } from "./ChoroplethCountries";
1
+ import { ChoroplethCountries } from "./ChoroplethCountries.ts";
2
2
 
3
3
  export class ChoroplethContinents extends ChoroplethCountries {
4
4
  constructor() {
@@ -2,7 +2,7 @@ import { InputField } from "@hpcc-js/common";
2
2
  import { json as d3Json } from "d3-request";
3
3
  import { select as d3Select } from "d3-selection";
4
4
  import * as topojson from "topojson-client";
5
- import { Choropleth, topoJsonFolder } from "./Choropleth";
5
+ import { Choropleth, topoJsonFolder } from "./Choropleth.ts";
6
6
 
7
7
  let usCounties = null;
8
8
  let features = null;
@@ -17,7 +17,6 @@ export class ChoroplethCounties extends Choropleth {
17
17
  type: "number"
18
18
  }];
19
19
 
20
- _selection;
21
20
  choroPaths;
22
21
 
23
22
  constructor() {
@@ -65,9 +64,9 @@ export class ChoroplethCounties extends Choropleth {
65
64
  .on("mousemove.tooltip", this.tooltip.show)
66
65
  .merge(this.choroPaths)
67
66
  .attr("d", function (d) {
68
- const retVal = base._d3GeoPath(rFeatures[d[0]]);
67
+ const retVal = base._d3GeoPath(rFeatures[d.county]);
69
68
  if (!retVal) {
70
- console.warn("Unknown US County: " + d[0]);
69
+ console.warn("Unknown US County: " + d.county, d);
71
70
  }
72
71
  return retVal;
73
72
  })
@@ -100,10 +99,13 @@ export class ChoroplethCounties extends Choropleth {
100
99
  }
101
100
  return this._topoJsonPromise;
102
101
  }
103
-
104
- onClickFormatFIPS: { (): boolean; (_: boolean): ChoroplethCounties };
105
- onClickFormatFIPS_exists: () => boolean;
106
102
  }
107
103
  ChoroplethCounties.prototype._class += " map_ChoroplethCounties";
108
104
 
105
+ export interface ChoroplethCounties {
106
+ onClickFormatFIPS(): boolean;
107
+ onClickFormatFIPS(_: boolean): this;
108
+ onClickFormatFIPS_exists(): boolean;
109
+ }
110
+
109
111
  ChoroplethCounties.prototype.publish("onClickFormatFIPS", false, "boolean", "format FIPS code as a String on Click");
@@ -1,7 +1,7 @@
1
1
  import { json as d3Json } from "d3-request";
2
2
  import { select as d3Select } from "d3-selection";
3
3
  import * as topojson from "topojson-client";
4
- import { Choropleth, topoJsonFolder } from "./Choropleth";
4
+ import { Choropleth, topoJsonFolder } from "./Choropleth.ts";
5
5
 
6
6
  let countries = null;
7
7
  let features = null;
@@ -10,7 +10,6 @@ let rFeatures = null;
10
10
  export class ChoroplethCountries extends Choropleth {
11
11
  _choroTopologyObjectsCountries;
12
12
  _choroTopologyObjectsLand;
13
- _selection;
14
13
  choroPaths;
15
14
 
16
15
  constructor() {
@@ -98,3 +97,4 @@ export class ChoroplethCountries extends Choropleth {
98
97
  }
99
98
  }
100
99
  ChoroplethCountries.prototype._class += " map_ChoroplethCountries";
100
+
@@ -2,7 +2,7 @@ import { InputField } from "@hpcc-js/common";
2
2
  import { json as d3Json } from "d3-request";
3
3
  import { select as d3Select } from "d3-selection";
4
4
  import * as topojson from "topojson-client";
5
- import { Choropleth, topoJsonFolder } from "./Choropleth";
5
+ import { Choropleth, topoJsonFolder } from "./Choropleth.ts";
6
6
 
7
7
  let usStates = null;
8
8
  let features = null;
@@ -17,7 +17,6 @@ export class ChoroplethStates extends Choropleth {
17
17
  type: "number"
18
18
  }];
19
19
 
20
- _selection;
21
20
  choroPaths;
22
21
 
23
22
  constructor() {
@@ -1,4 +1,4 @@
1
- import { Layered } from "./Layered";
1
+ import { Layered } from "./Layered.ts";
2
2
 
3
3
  export class ChoroplethStatesHeat extends Layered {
4
4
  constructor() {
package/src/GMap.ts CHANGED
@@ -845,15 +845,16 @@ export interface GMap {
845
845
  drawingState(): string;
846
846
  drawingState(_: string): this;
847
847
  drawingState_exists(): boolean;
848
- googleMapStyles(): object;
849
- googleMapStyles(_: object): this;
850
- googleMapStyles_exists(): boolean;
851
848
  useComputedHeading(): boolean;
852
849
  useComputedHeading(_: boolean): this;
853
850
  showStreetViewMarker(): boolean;
854
851
  showStreetViewMarker(_: boolean): this;
855
852
  outdoorStreetViewOnly(): boolean;
856
853
  outdoorStreetViewOnly(_: boolean): this;
854
+
855
+ googleMapStyles(): object;
856
+ googleMapStyles(_: object): this;
857
+ googleMapStyles_exists(): boolean;
857
858
  }
858
859
 
859
860
  GMap.prototype.publish("outdoorStreetViewOnly", false, "boolean", "If true, streetView will only display outdoor locations");
@@ -1,6 +1,6 @@
1
1
  import { Widget } from "@hpcc-js/common";
2
- import { ChoroplethCounties } from "./ChoroplethCounties";
3
- import { GMapLayered } from "./GMapLayered";
2
+ import { ChoroplethCounties } from "./ChoroplethCounties.ts";
3
+ import { GMapLayered } from "./GMapLayered.ts";
4
4
 
5
5
  export class GMapCounties extends GMapLayered {
6
6
  _counties: ChoroplethCounties;
package/src/GMapGraph.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Shape } from "@hpcc-js/common";
2
2
  import { Edge, Graph } from "@hpcc-js/graph";
3
- import { GMap } from "./GMap";
3
+ import { GMap } from "./GMap.ts";
4
4
 
5
5
  export class GMapGraph extends GMap {
6
6
  constructor() {
package/src/GMapHeat.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { HeatMap } from "@hpcc-js/other";
2
- import { GMap } from "./GMap";
2
+ import { GMap } from "./GMap.ts";
3
3
 
4
4
  export class GMapHeat extends GMap {
5
5
  constructor() {
@@ -1,7 +1,7 @@
1
1
  import { Widget } from "@hpcc-js/common";
2
2
  import { AbsoluteSurface } from "@hpcc-js/layout";
3
- import { GMap, google } from "./GMap";
4
- import { Layered } from "./Layered";
3
+ import { GMap, google } from "./GMap.ts";
4
+ import { Layered } from "./Layered.ts";
5
5
 
6
6
  const zoomFactor = 1 / (1 << 4);
7
7
 
package/src/GMapPin.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { GMapLayered } from "./GMapLayered";
2
- import { Pins } from "./Pins";
1
+ import { GMapLayered } from "./GMapLayered.ts";
2
+ import { Pins } from "./Pins.ts";
3
3
 
4
4
  export class GMapPin extends GMapLayered {
5
5
  _pins;
@@ -1,6 +1,6 @@
1
- import { GMapLayered } from "./GMapLayered";
2
- import { Lines } from "./Lines";
3
- import { Pins } from "./Pins";
1
+ import { GMapLayered } from "./GMapLayered.ts";
2
+ import { Lines } from "./Lines.ts";
3
+ import { Pins } from "./Pins.ts";
4
4
 
5
5
  export class GMapPinLine extends GMapLayered {
6
6
  _lines;
@@ -85,31 +85,44 @@ export class GMapPinLine extends GMapLayered {
85
85
 
86
86
  dblclick(row, column, selected) {
87
87
  }
88
+ }
89
+ GMapPinLine.prototype._class += " map_GMapPinLine";
88
90
 
89
- autoScale: { (): boolean; (_: boolean): GMapPinLine };
90
- fromPinColor: { (): string; (_: string): GMapPinLine };
91
- fromPinColor_exists: () => boolean;
92
- fromLatitudeColumn: { (): string; (_: string): GMapPinLine };
93
- fromLatitudeColumn_exists: () => boolean;
94
- fromLongitudeColumn: { (): string; (_: string): GMapPinLine };
95
- fromLongitudeColumn_exists: () => boolean;
96
- fromColorColumn: { (): string; (_: string): GMapPinLine };
97
- fromColorColumn_exists: () => boolean;
98
- fromTooltipColumn: { (): string; (_: string): GMapPinLine };
99
- fromTooltipColumn_exists: () => boolean;
100
- toPinColor: { (): string; (_: string): GMapPinLine };
101
- toPinColor_exists: () => boolean;
102
- toLatitudeColumn: { (): string; (_: string): GMapPinLine };
103
- toLatitudeColumn_exists: () => boolean;
104
- toLongitudeColumn: { (): string; (_: string): GMapPinLine };
105
- toLongitudeColumn_exists: () => boolean;
106
- toColorColumn: { (): string; (_: string): GMapPinLine };
107
- toColorColumn_exists: () => boolean;
108
- toTooltipColumn: { (): string; (_: string): GMapPinLine };
109
- toTooltipColumn_exists: () => boolean;
91
+ export interface GMapPinLine {
92
+ autoScale(): boolean;
93
+ autoScale(_: boolean): GMapPinLine;
94
+ fromPinColor(): string;
95
+ fromPinColor(_: string): GMapPinLine;
96
+ fromPinColor_exists(): boolean;
97
+ fromLatitudeColumn(): string;
98
+ fromLatitudeColumn(_: string): GMapPinLine;
99
+ fromLatitudeColumn_exists(): boolean;
100
+ fromLongitudeColumn(): string;
101
+ fromLongitudeColumn(_: string): GMapPinLine;
102
+ fromLongitudeColumn_exists(): boolean;
103
+ fromColorColumn(): string;
104
+ fromColorColumn(_: string): GMapPinLine;
105
+ fromColorColumn_exists(): boolean;
106
+ fromTooltipColumn(): string;
107
+ fromTooltipColumn(_: string): GMapPinLine;
108
+ fromTooltipColumn_exists(): boolean;
110
109
 
110
+ toPinColor(): string;
111
+ toPinColor(_: string): GMapPinLine;
112
+ toPinColor_exists(): boolean;
113
+ toLatitudeColumn(): string;
114
+ toLatitudeColumn(_: string): GMapPinLine;
115
+ toLatitudeColumn_exists(): boolean;
116
+ toLongitudeColumn(): string;
117
+ toLongitudeColumn(_: string): GMapPinLine;
118
+ toLongitudeColumn_exists(): boolean;
119
+ toColorColumn(): string;
120
+ toColorColumn(_: string): GMapPinLine;
121
+ toColorColumn_exists(): boolean;
122
+ toTooltipColumn(): string;
123
+ toTooltipColumn(_: string): GMapPinLine;
124
+ toTooltipColumn_exists(): boolean;
111
125
  }
112
- GMapPinLine.prototype._class += " map_GMapPinLine";
113
126
 
114
127
  GMapPinLine.prototype.publish("autoScale", false, "boolean", "Auto scale to data");
115
128
  GMapPinLine.prototype.publish("fromPinColor", "green", "html-color", "From Pin Color");
package/src/GeoHash.ts CHANGED
@@ -1,17 +1,15 @@
1
1
  import { Palette, Utility as CommonUtility } from "@hpcc-js/common";
2
2
  import { select as d3Select } from "d3-selection";
3
- import { Layer } from "./Layer";
4
- import * as Utility from "./Utility";
3
+ import { Layer } from "./Layer.ts";
4
+ import * as Utility from "./Utility.ts";
5
5
 
6
6
  import "../src/GeoHash.css";
7
7
 
8
8
  export class GeoHash extends Layer {
9
- _palette;
10
9
  _dataMinWeight;
11
10
  _dataMaxWeight;
12
11
  geohash;
13
12
  _geoHashTransform;
14
- _selection;
15
13
  geoHashPaths;
16
14
 
17
15
  constructor() {
@@ -97,24 +95,40 @@ export class GeoHash extends Layer {
97
95
 
98
96
  dblclick(row, column, selected) {
99
97
  }
100
-
101
- paletteID: { (): string; (_: string): GeoHash };
102
- paletteID_exists: () => boolean;
103
- useClonedPalette: { (): boolean; (_: boolean): GeoHash };
104
- useClonedPalette_exists: () => boolean;
105
- opacity: { (): number; (_: number): GeoHash };
106
- opacity_exists: () => boolean;
107
- meshVisible: { (): boolean; (_: boolean): GeoHash };
108
- meshVisible_exists: () => boolean;
109
- meshColor: { (): string; (_: string): GeoHash };
110
- meshColor_exists: () => boolean;
111
- meshStrokeWidth: { (): number; (_: number): GeoHash };
112
- meshStrokeWidth_exists: () => boolean;
113
98
  }
114
99
  GeoHash.prototype._class += " map_GeoHash";
115
100
 
116
101
  GeoHash.prototype._palette = Palette.rainbow("default");
117
102
 
103
+ export interface GeoHash {
104
+ _palette;
105
+
106
+ // Simple Selection ---
107
+ _selection;
108
+
109
+ // Properties ---
110
+ paletteID(): string;
111
+ paletteID(_: string): this;
112
+ paletteID_exists(): boolean;
113
+ useClonedPalette(): boolean;
114
+ useClonedPalette(_: boolean): this;
115
+ useClonedPalette_exists(): boolean;
116
+
117
+ opacity(): number;
118
+ opacity(_: number): this;
119
+ opacity_exists(): boolean;
120
+
121
+ meshVisible(): boolean;
122
+ meshVisible(_: boolean): this;
123
+ meshVisible_exists(): boolean;
124
+ meshColor(): string;
125
+ meshColor(_: string): this;
126
+ meshColor_exists(): boolean;
127
+ meshStrokeWidth(): number;
128
+ meshStrokeWidth(_: number): this;
129
+ meshStrokeWidth_exists(): boolean;
130
+ }
131
+
118
132
  GeoHash.prototype.publish("paletteID", "YlOrRd", "set", "Color palette for this widget", GeoHash.prototype._palette.switch(), { tags: ["Basic", "Shared"] });
119
133
  GeoHash.prototype.publish("useClonedPalette", false, "boolean", "Enable or disable using a cloned palette", null, { tags: ["Intermediate", "Shared"] });
120
134
 
package/src/Graph.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Pins } from "./Pins";
1
+ import { Pins } from "./Pins.ts";
2
2
 
3
3
  import "../src/Graph.css";
4
4
 
package/src/Graticule.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { geoGraticule as d3GeoGraticule } from "d3-geo";
2
2
  import { select as d3Select } from "d3-selection";
3
- import { Layer } from "./Layer";
3
+ import { Layer } from "./Layer.ts";
4
4
 
5
5
  import "../src/Graticule.css";
6
6
 
@@ -75,15 +75,22 @@ export class Graticule extends Layer {
75
75
  ;
76
76
  }
77
77
  */
78
- opacity: { (): number; (_: number): Graticule };
79
- opacity_exists: () => boolean;
80
- meshColor: { (): string; (_: string): Graticule };
81
- meshColor_exists: () => boolean;
82
- meshStrokeWidth: { (): number; (_: number): Graticule };
83
- meshStrokeWidth_exists: () => boolean;
84
78
  }
85
79
  Graticule.prototype._class += " map_Graticule";
86
80
 
81
+ export interface Graticule {
82
+ opacity(): number;
83
+ opacity(_: number): this;
84
+ opacity_exists(): boolean;
85
+
86
+ meshColor(): string;
87
+ meshColor(_: string): this;
88
+ meshColor_exists(): boolean;
89
+ meshStrokeWidth(): number;
90
+ meshStrokeWidth(_: number): this;
91
+ meshStrokeWidth_exists(): boolean;
92
+ }
93
+
87
94
  Graticule.prototype.publish("opacity", 1.0, "number", "Opacity", null, { tags: ["Advanced"] });
88
95
 
89
96
  Graticule.prototype.publish("meshColor", null, "html-color", "Stroke Color", null, { optional: true });
package/src/Heat.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { HeatMap } from "@hpcc-js/other";
2
- import { Layer } from "./Layer";
2
+ import { Layer } from "./Layer.ts";
3
3
 
4
4
  import "../src/Heat.css";
5
5
 
@@ -64,16 +64,21 @@ export class Heat extends Layer {
64
64
  .render()
65
65
  ;
66
66
  }
67
-
68
- latColumn: { (): string; (_: string): Heat };
69
- latColumn_exists: () => boolean;
70
- longColumn: { (): string; (_: string): Heat };
71
- longColumn_exists: () => boolean;
72
- opacity: { (): number; (_: number): Heat };
73
- opacity_exists: () => boolean;
74
67
  }
75
68
  Heat.prototype._class += " map_Heat";
76
69
 
70
+ export interface Heat {
71
+ latColumn(): string;
72
+ latColumn(_: string): this;
73
+ latColumn_exists(): boolean;
74
+ longColumn(): string;
75
+ longColumn(_: string): this;
76
+ longColumn_exists(): boolean;
77
+ opacity(): number;
78
+ opacity(_: number): this;
79
+ opacity_exists(): boolean;
80
+ }
81
+
77
82
  Heat.prototype.publish("latColumn", null, "set", "Latitude column", function () { return this.columns(); }, { optional: true });
78
83
  Heat.prototype.publish("longColumn", null, "set", "Longitude column", function () { return this.columns(); }, { optional: true });
79
84
  Heat.prototype.publish("opacity", 1.0, "number", "Opacity", null, { tags: ["Advanced"] });