@abi-software/flatmap-viewer 2.7.2 → 2.7.3-a.1

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 (121) hide show
  1. package/dist/flatmapviewer.es.js +80577 -0
  2. package/dist/flatmapviewer.umd.js +1687 -0
  3. package/dist/lib/index.d.ts +4 -0
  4. package/dist/style.css +1 -0
  5. package/package.json +10 -8
  6. package/lib/index.ts +0 -10
  7. package/src/contextmenu.js +0 -97
  8. package/src/controls/annotation.js +0 -302
  9. package/src/controls/controls.js +0 -645
  10. package/src/controls/flightpaths.js +0 -95
  11. package/src/controls/info.js +0 -291
  12. package/src/controls/minimap.js +0 -442
  13. package/src/controls/paths.js +0 -143
  14. package/src/controls/search.js +0 -113
  15. package/src/controls/systems.js +0 -75
  16. package/src/controls/taxons.js +0 -73
  17. package/src/flatmap-viewer.js +0 -1789
  18. package/src/images.js +0 -66
  19. package/src/interactions.js +0 -1569
  20. package/src/layers/cluster.js +0 -177
  21. package/src/layers/filter.js +0 -310
  22. package/src/layers/flightpaths.js +0 -383
  23. package/src/layers/index.js +0 -478
  24. package/src/layers/styling.js +0 -1077
  25. package/src/main.js +0 -272
  26. package/src/mapserver.js +0 -64
  27. package/src/mathjax.js +0 -100
  28. package/src/pathways.js +0 -427
  29. package/src/search.js +0 -137
  30. package/src/systems.js +0 -146
  31. package/src/utils.js +0 -152
  32. package/static/css/flatmap-viewer.css +0 -238
  33. package/static/icons/favicon.ico +0 -0
  34. package/static/images/active.png +0 -0
  35. package/static/images/inactive.png +0 -0
  36. package/static/images/reset-map-active.png +0 -0
  37. package/static/images/reset-map-button.png +0 -0
  38. package/static/images/rounded-background.png +0 -0
  39. package/static/images/zoom-in-active.png +0 -0
  40. package/static/images/zoom-in-button.png +0 -0
  41. package/static/images/zoom-out-active.png +0 -0
  42. package/static/images/zoom-out-button.png +0 -0
  43. package/thirdParty/maplibre-gl-svg/CHANGELOG.md +0 -13
  44. package/thirdParty/maplibre-gl-svg/LICENSE +0 -21
  45. package/thirdParty/maplibre-gl-svg/LICENSE.md +0 -21
  46. package/thirdParty/maplibre-gl-svg/README.md +0 -24
  47. package/thirdParty/maplibre-gl-svg/assets/Add custom SVG template to template manager.jpg +0 -0
  48. package/thirdParty/maplibre-gl-svg/assets/All built-in SVG templates as HTML markers.jpg +0 -0
  49. package/thirdParty/maplibre-gl-svg/assets/All built-in SVG templates as symbols.jpg +0 -0
  50. package/thirdParty/maplibre-gl-svg/assets/Fill polygon with built-in SVG template.jpg +0 -0
  51. package/thirdParty/maplibre-gl-svg/assets/HTML Marker with Custom SVG Template.jpg +0 -0
  52. package/thirdParty/maplibre-gl-svg/assets/HTML Marker with built-in SVG template.jpg +0 -0
  53. package/thirdParty/maplibre-gl-svg/assets/Line layer with built-in SVG template.jpg +0 -0
  54. package/thirdParty/maplibre-gl-svg/assets/Load SVG from URL.jpg +0 -0
  55. package/thirdParty/maplibre-gl-svg/assets/SVG template options.jpg +0 -0
  56. package/thirdParty/maplibre-gl-svg/assets/Smiley_face_changed.svg +0 -37
  57. package/thirdParty/maplibre-gl-svg/assets/Symbol layer with built-in SVG template.jpg +0 -0
  58. package/thirdParty/maplibre-gl-svg/assets/image-templates/arrow-up-thin.png +0 -0
  59. package/thirdParty/maplibre-gl-svg/assets/image-templates/arrow-up.png +0 -0
  60. package/thirdParty/maplibre-gl-svg/assets/image-templates/car.png +0 -0
  61. package/thirdParty/maplibre-gl-svg/assets/image-templates/checker-rotated.png +0 -0
  62. package/thirdParty/maplibre-gl-svg/assets/image-templates/checker.png +0 -0
  63. package/thirdParty/maplibre-gl-svg/assets/image-templates/circles-spaced.png +0 -0
  64. package/thirdParty/maplibre-gl-svg/assets/image-templates/circles.png +0 -0
  65. package/thirdParty/maplibre-gl-svg/assets/image-templates/diagonal-lines-down.png +0 -0
  66. package/thirdParty/maplibre-gl-svg/assets/image-templates/diagonal-lines-up.png +0 -0
  67. package/thirdParty/maplibre-gl-svg/assets/image-templates/diagonal-stripes-down.png +0 -0
  68. package/thirdParty/maplibre-gl-svg/assets/image-templates/diagonal-stripes-up.png +0 -0
  69. package/thirdParty/maplibre-gl-svg/assets/image-templates/dots.png +0 -0
  70. package/thirdParty/maplibre-gl-svg/assets/image-templates/flag-triangle.png +0 -0
  71. package/thirdParty/maplibre-gl-svg/assets/image-templates/flag.png +0 -0
  72. package/thirdParty/maplibre-gl-svg/assets/image-templates/grid-lines.png +0 -0
  73. package/thirdParty/maplibre-gl-svg/assets/image-templates/hexagon-rounded-thick.png +0 -0
  74. package/thirdParty/maplibre-gl-svg/assets/image-templates/hexagon-rounded.png +0 -0
  75. package/thirdParty/maplibre-gl-svg/assets/image-templates/hexagon-thick.png +0 -0
  76. package/thirdParty/maplibre-gl-svg/assets/image-templates/hexagon.png +0 -0
  77. package/thirdParty/maplibre-gl-svg/assets/image-templates/marker-arrow.png +0 -0
  78. package/thirdParty/maplibre-gl-svg/assets/image-templates/marker-ball-pin.png +0 -0
  79. package/thirdParty/maplibre-gl-svg/assets/image-templates/marker-circle.png +0 -0
  80. package/thirdParty/maplibre-gl-svg/assets/image-templates/marker-flat.png +0 -0
  81. package/thirdParty/maplibre-gl-svg/assets/image-templates/marker-square-cluster.png +0 -0
  82. package/thirdParty/maplibre-gl-svg/assets/image-templates/marker-square-rounded-cluster.png +0 -0
  83. package/thirdParty/maplibre-gl-svg/assets/image-templates/marker-square-rounded.png +0 -0
  84. package/thirdParty/maplibre-gl-svg/assets/image-templates/marker-square.png +0 -0
  85. package/thirdParty/maplibre-gl-svg/assets/image-templates/marker-thick.png +0 -0
  86. package/thirdParty/maplibre-gl-svg/assets/image-templates/marker.png +0 -0
  87. package/thirdParty/maplibre-gl-svg/assets/image-templates/pin-round.png +0 -0
  88. package/thirdParty/maplibre-gl-svg/assets/image-templates/pin.png +0 -0
  89. package/thirdParty/maplibre-gl-svg/assets/image-templates/rotated-grid-lines.png +0 -0
  90. package/thirdParty/maplibre-gl-svg/assets/image-templates/rotated-grid-stripes.png +0 -0
  91. package/thirdParty/maplibre-gl-svg/assets/image-templates/rounded-square-thick.png +0 -0
  92. package/thirdParty/maplibre-gl-svg/assets/image-templates/rounded-square.png +0 -0
  93. package/thirdParty/maplibre-gl-svg/assets/image-templates/triangle-arrow-left.png +0 -0
  94. package/thirdParty/maplibre-gl-svg/assets/image-templates/triangle-arrow-up.png +0 -0
  95. package/thirdParty/maplibre-gl-svg/assets/image-templates/triangle-thick.png +0 -0
  96. package/thirdParty/maplibre-gl-svg/assets/image-templates/triangle.png +0 -0
  97. package/thirdParty/maplibre-gl-svg/assets/image-templates/x-fill.png +0 -0
  98. package/thirdParty/maplibre-gl-svg/assets/image-templates/zig-zag-vertical.png +0 -0
  99. package/thirdParty/maplibre-gl-svg/assets/image-templates/zig-zag.png +0 -0
  100. package/thirdParty/maplibre-gl-svg/build/build.js +0 -210
  101. package/thirdParty/maplibre-gl-svg/dist/maplibre-gl-svg.js +0 -339
  102. package/thirdParty/maplibre-gl-svg/dist/maplibre-gl-svg.min.js +0 -4
  103. package/thirdParty/maplibre-gl-svg/docs/docs.md +0 -375
  104. package/thirdParty/maplibre-gl-svg/examples/Add custom SVG template to template manager.html +0 -101
  105. package/thirdParty/maplibre-gl-svg/examples/All built-in SVG templates as HTML markers.html +0 -82
  106. package/thirdParty/maplibre-gl-svg/examples/All built-in SVG templates as symbols.html +0 -124
  107. package/thirdParty/maplibre-gl-svg/examples/Fill polygon with built-in SVG template.html +0 -94
  108. package/thirdParty/maplibre-gl-svg/examples/HTML Marker with Custom SVG Template.html +0 -86
  109. package/thirdParty/maplibre-gl-svg/examples/HTML Marker with built-in SVG template.html +0 -83
  110. package/thirdParty/maplibre-gl-svg/examples/Line layer with built-in SVG template.html +0 -129
  111. package/thirdParty/maplibre-gl-svg/examples/Load SVG from URL.html +0 -96
  112. package/thirdParty/maplibre-gl-svg/examples/SVG template options.html +0 -264
  113. package/thirdParty/maplibre-gl-svg/examples/Symbol layer with built-in SVG template.html +0 -93
  114. package/thirdParty/maplibre-gl-svg/index.html +0 -151
  115. package/thirdParty/maplibre-gl-svg/package-lock.json +0 -5882
  116. package/thirdParty/maplibre-gl-svg/package.json +0 -49
  117. package/thirdParty/maplibre-gl-svg/src/SvgManager.ts +0 -186
  118. package/thirdParty/maplibre-gl-svg/src/SvgTemplateManager.ts +0 -144
  119. package/thirdParty/maplibre-gl-svg/src/index.ts +0 -4
  120. package/thirdParty/maplibre-gl-svg/tsconfig.json +0 -31
  121. package/thirdParty/maplibre-gl-svg/typings/index.d.ts +0 -111
@@ -1,75 +0,0 @@
1
- /******************************************************************************
2
-
3
- Flatmap viewer and annotation tool
4
-
5
- Copyright (c) 2019 - 2023 David Brooks
6
-
7
- Licensed under the Apache License, Version 2.0 (the "License");
8
- you may not use this file except in compliance with the License.
9
- You may obtain a copy of the License at
10
-
11
- http://www.apache.org/licenses/LICENSE-2.0
12
-
13
- Unless required by applicable law or agreed to in writing, software
14
- distributed under the License is distributed on an "AS IS" BASIS,
15
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- See the License for the specific language governing permissions and
17
- limitations under the License.
18
-
19
- **/
20
- //==============================================================================
21
-
22
- import { Control } from './controls';
23
-
24
- //==============================================================================
25
-
26
- export class SystemsControl extends Control
27
- {
28
- constructor(flatmap, systems)
29
- {
30
- super(flatmap, 'system', 'systems');
31
- this.__systems = systems;
32
- }
33
-
34
- _addControlDetails()
35
- //==================
36
- {
37
- let lines = 0;
38
- let enabled = 0;
39
- for (const system of this.__systems) {
40
- const input = this._addControlLine(`${this.__prefix}${system.id}`, system.name, `background: ${system.colour};`);
41
- if (system.enabled) {
42
- input.checked = true;
43
- enabled += 1;
44
- }
45
- lines += 1;
46
- }
47
- return {
48
- enabled: enabled,
49
- total: lines
50
- };
51
- }
52
-
53
- _enableAll(enable)
54
- //================
55
- {
56
- for (const system of this.__systems) {
57
- const checkbox = document.getElementById(`${this.__prefix}${system.id}`);
58
- if (checkbox) {
59
- checkbox.checked = enable;
60
- this.__flatmap.enableSystem(system.id, enable);
61
- }
62
- }
63
- }
64
-
65
- __enableControl(id, enable)
66
- //=========================
67
- {
68
- for (const system of this.__systems) {
69
- if (id === system.id) {
70
- this.__flatmap.enableSystem(system.id, enable);
71
- }
72
- }
73
- }
74
-
75
- }
@@ -1,73 +0,0 @@
1
- /******************************************************************************
2
-
3
- Flatmap viewer and annotation tool
4
-
5
- Copyright (c) 2019 - 2023 David Brooks
6
-
7
- Licensed under the Apache License, Version 2.0 (the "License");
8
- you may not use this file except in compliance with the License.
9
- You may obtain a copy of the License at
10
-
11
- http://www.apache.org/licenses/LICENSE-2.0
12
-
13
- Unless required by applicable law or agreed to in writing, software
14
- distributed under the License is distributed on an "AS IS" BASIS,
15
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- See the License for the specific language governing permissions and
17
- limitations under the License.
18
-
19
- **/
20
- //==============================================================================
21
-
22
- import { Control } from './controls';
23
-
24
- //==============================================================================
25
-
26
- export class TaxonsControl extends Control
27
- {
28
- constructor(flatmap)
29
- {
30
- super(flatmap, 'taxon', 'taxons');
31
- this.__taxonIds = flatmap.taxonIdentifiers.sort();
32
- }
33
-
34
- _addControlDetails()
35
- //==================
36
- {
37
- let lines = 0;
38
- let enabled = 0;
39
- for (const taxonId of this.__taxonIds) {
40
- const input = this._addControlLine(`${this.__prefix}${taxonId}`, taxonId);
41
- input.checked = true;
42
- enabled += 1;
43
- lines += 1;
44
- }
45
- return {
46
- enabled: enabled,
47
- total: lines
48
- };
49
- }
50
-
51
- _enableAll(enable)
52
- //================
53
- {
54
- for (const taxonId of this.__taxonIds) {
55
- const checkbox = document.getElementById(`${this.__prefix}${taxonId}`);
56
- if (checkbox) {
57
- checkbox.checked = enable;
58
- this.__flatmap.enableConnectivityByTaxonIds(taxonId, enable);
59
- }
60
- }
61
- }
62
-
63
- __enableControl(id, enable)
64
- //=========================
65
- {
66
- for (const taxonId of this.__taxonIds) {
67
- if (id === taxonId) {
68
- this.__flatmap.enableConnectivityByTaxonIds(taxonId, enable);
69
- }
70
- }
71
- }
72
-
73
- }