mapshaper 0.7.61 → 0.7.63

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mapshaper",
3
- "version": "0.7.61",
3
+ "version": "0.7.63",
4
4
  "description": "A tool for editing geospatial data for mapping and GIS.",
5
5
  "keywords": [
6
6
  "shapefile",
@@ -61,6 +61,7 @@
61
61
  "fflate": "0.8.2",
62
62
  "flatbush": "^4.6.0",
63
63
  "flatgeobuf": "^4.3.4",
64
+ "fontkit": "^2.0.4",
64
65
  "geographiclib-geodesic": "^2.2.0",
65
66
  "geotiff": "^3.0.5",
66
67
  "geotiff-geokeys-to-proj4": "^2024.4.13",
package/www/index.html CHANGED
@@ -32,6 +32,12 @@
32
32
  </g>
33
33
  </svg>
34
34
 
35
+ <svg version="1.1" id="frame-tool-icon" xmlns="http://www.w3.org/2000/svg"
36
+ width="16px" height="19px" viewBox="0 0 16 16">
37
+ <path d="M2 2h12v12H2zM5 5v6h6V5z" fill-rule="evenodd"/>
38
+ <path d="M0 0h4v1H1v3H0zm12 0h4v4h-1V1h-3zM0 12h1v3h3v1H0zm15 0h1v4h-4v-1h3z"/>
39
+ </svg>
40
+
35
41
  <svg version="1.1" id="zoom-in-icon" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px"
36
42
  y="0px" width="14px" height="21px" viewBox="0 0 14 14">
37
43
  <g>
@@ -47,12 +53,18 @@
47
53
  </g>
48
54
  </svg>
49
55
 
50
- <svg id="text-tool-icon" xmlns="http://www.w3.org/2000/svg" width="15" height="22" viewBox="0 0 15 22">
56
+ <svg id="text-tool-icon" xmlns="http://www.w3.org/2000/svg" width="15" height="22" viewBox="0 2.8 15 22">
51
57
  <path d="M13.4125,6.1758c-.0735,0-.1704.0087-.3023.0225-.35.0418-1.1581.0841-1.6018.0841H3.4416c-.4199,0-1.2035-.0418-1.5848-.0845-.1272-.0133-.2242-.022-.2977-.022-.5733,0-.5733.5104-.5733.678v3.8421h.9614c.8167,0,1.1245-.4428,1.2361-.7083.43-1.0372.9151-1.2196,1.775-1.2196h.6348v9.7486c0,.3918-.0528.4281-.463.7111l-.0919.0634c-.4874.3427-.6362.5765-.6362,1.0014v1.1346h6.1463v-1.1346c0-.4222-.1617-.6753-.6992-1.0441-.435-.3023-.4708-.3266-.4708-.7318v-9.7486h.6353c.8439,0,1.3253.1833,1.7754,1.2205.1851.4428.6307.7074,1.1925.7074h1.0042v-3.8421c0-.1677,0-.678-.5733-.678Z"/>
52
58
  </svg>
53
59
 
60
+ <!-- a "T" over a curve: the path-aligned label tool. -->
61
+ <svg id="curved-text-icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="-1.5 -2.325 27 27">
62
+ <path d="M6.5,2 H17.5 V4.6 H13.4 V12 H10.6 V4.6 H6.5 Z"/>
63
+ <path d="M2,20.4 C7,14.6 17,14.6 22,20.4 L22,22.6 C17,17.2 7,17.2 2,22.6 Z"/>
64
+ </svg>
65
+
54
66
  <!-- adjusted height -->
55
- <svg id="pointer-icon" version="1.1" xmlns="http://www.w3.org/2000/svg" width="15" height="22" viewBox="0 0 15 20"><rect x="7.4126" y="11.0354" width="3.9102" height="7.9841" transform="translate(-5.8889 6.0377) rotate(-27.5536)" fill="#30d4ef"/><polygon points="2.57 2.086 2.718 16.056 13.944 10.198 2.57 2.086" fill="#30d4ef"/></svg>
67
+ <svg id="pointer-icon" version="1.1" xmlns="http://www.w3.org/2000/svg" width="15" height="22" viewBox="0 0 15 20"><rect x="7.4126" y="11.0354" width="3.9102" height="10" transform="translate(-5.8889 6.0377) rotate(-27.5536)" fill="#30d4ef"/><polygon points="2.57 2.086 2.718 16.056 13.944 10.198 2.57 2.086" fill="#30d4ef"/></svg>
56
68
 
57
69
  <!-- adjusted height -->
58
70
  <svg id="ribbon-icon" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" width="15" height="25" viewBox="0 1 15 20">
@@ -72,7 +84,7 @@
72
84
  <div class="page-header">
73
85
  <div class="mapshaper-logo">map<span class="logo-highlight">shaper</span></div>
74
86
 
75
- <div class="layer-control-btn"><span class="active-layer-label btn" role="button" tabindex="0" aria-label="Open layers panel"></span></div>
87
+ <div class="layer-control-btn"><span class="active-layer-label btn" role="button" aria-label="Open layers panel"></span></div>
76
88
 
77
89
  <div class="simplify-control-wrapper"><div class="simplify-control"><div class="header-btn btn simplify-settings-btn">Settings</div>
78
90
  <div class="slider">
@@ -84,7 +96,7 @@
84
96
  </div></div>
85
97
  <div id="mode-buttons" class="page-header-buttons">
86
98
  <!-- <span class="project-btn header-btn btn">Project</span><span class="separator"> -->
87
- <span class="messages-btn header-btn btn" role="button" aria-label="Messages" aria-haspopup="true" aria-expanded="false" title="Messages"><svg viewBox="0 0 16 16" aria-hidden="true" width="16" height="14"><path d="M2 3 h12 a1 1 0 0 1 1 1 v7 a1 1 0 0 1 -1 1 H8 l-5 4 v-4 H2 a1 1 0 0 1 -1 -1 V4 a1 1 0 0 1 1 -1 z"/></svg><span class="messages-badge hidden" aria-hidden="true">0</span></span><span class="display-btn header-btn btn">Display</span><span class="separator"></span><span class="history-btn header-btn btn" role="button" aria-haspopup="true" aria-expanded="false" tabindex="0">History</span><span class="separator"></span><span class="simplify-btn header-btn btn">Simplify</span><span class="separator"></span><span class="export-btn header-btn btn">Export</span><span class="separator"></span><span id="header-menu-btn" class="header-btn btn" role="button" aria-label="More links" aria-haspopup="true" aria-expanded="false" tabindex="0"><svg viewBox="0 0 16 16" aria-hidden="true" width="16" height="14"><rect x="1" y="3" width="14" height="2"/><rect x="1" y="7" width="14" height="2"/><rect x="1" y="11" width="14" height="2"/></svg></span>
99
+ <span class="messages-btn header-btn btn" role="button" aria-label="Messages" aria-haspopup="true" aria-expanded="false" title="Messages"><svg viewBox="0 0 16 16" aria-hidden="true" width="16" height="14"><path d="M2 3 h12 a1 1 0 0 1 1 1 v7 a1 1 0 0 1 -1 1 H8 l-5 4 v-4 H2 a1 1 0 0 1 -1 -1 V4 a1 1 0 0 1 1 -1 z"/></svg><span class="messages-badge hidden" aria-hidden="true">0</span></span><span class="display-btn header-btn btn">Display</span><span class="separator"></span><span class="history-btn header-btn btn" role="button" aria-haspopup="true" aria-expanded="false">History</span><span class="separator"></span><span class="simplify-btn header-btn btn">Simplify</span><span class="separator"></span><span class="export-btn header-btn btn">Export</span><span class="separator"></span><span id="header-menu-btn" class="header-btn btn" role="button" aria-label="More links" aria-haspopup="true" aria-expanded="false"><svg viewBox="0 0 16 16" aria-hidden="true" width="16" height="14"><rect x="1" y="3" width="14" height="2"/><rect x="1" y="7" width="14" height="2"/><rect x="1" y="11" width="14" height="2"/></svg></span>
88
100
  <div id="header-menu-dropdown" class="hidden" role="menu" aria-labelledby="header-menu-btn">
89
101
  <a class="header-menu-item" href="/docs/" target="_blank" rel="noopener" role="menuitem">Docs</a>
90
102
  <a class="header-menu-item" href="https://github.com/mbloch/mapshaper" target="_blank" rel="noopener" role="menuitem">GitHub</a>
@@ -153,6 +165,7 @@
153
165
  <h4 class="menu-title">Layers</h4>
154
166
  <div class="export-layer-list option-menu"></div>
155
167
  </div>
168
+ <div class="export-frame-info"></div>
156
169
  <div class="export-zip-option option-menu">
157
170
 
158
171
  <div style="height:6px"></div>
@@ -354,7 +367,7 @@ encoding=big5</span>. Click to see all options.</div></div></div>
354
367
  <div class="info-box-scrolled">
355
368
  <div class="layer-menu">
356
369
  <div class="layer-add-links">
357
- <span id="add-file-btn" class="layer-menu-link">Add files</span><span class="layer-menu-link-separator">&nbsp;&nbsp;·&nbsp;&nbsp;</span><span id="add-empty-btn" class="layer-menu-link">Add empty layer</span>
370
+ <span id="add-file-btn" class="layer-menu-link">Add files</span><span class="layer-menu-link-separator">&nbsp;&nbsp;·&nbsp;&nbsp;</span><span class="new-layer-label">Draw:&nbsp;</span><span class="new-layer-links"></span>
358
371
  </div>
359
372
  <div class="layer-item">
360
373
  <h3>Layers</h3>
@@ -364,6 +377,11 @@ encoding=big5</span>. Click to see all options.</div></div></div>
364
377
  </div>
365
378
  </div>
366
379
  <div class="layer-list"></div>
380
+ <div class="map-frame-section hidden">
381
+ <div class="map-frame-heading"><h3>Map frame</h3></div>
382
+ <div class="map-frame-list"></div>
383
+ <div class="map-frame-empty colored-text" role="button" tabindex="0">add map frame</div>
384
+ </div>
367
385
  <div class="no-layer-note">No data has been added</div>
368
386
  </div>
369
387
  </div>
@@ -376,8 +394,8 @@ encoding=big5</span>. Click to see all options.</div></div></div>
376
394
  </div>
377
395
  <div class="sidebar-resize-handle" role="separator" aria-orientation="vertical" aria-label="Resize sidebar"></div>
378
396
  <div class="sidebar-tabs">
379
- <div class="sidebar-tab layer-tab" role="button" tabindex="0" aria-label="Toggle layers panel" aria-expanded="false">Layers</div>
380
- <div class="sidebar-tab console-tab console-btn" role="button" tabindex="0" aria-label="Toggle console" aria-expanded="false">Console</div>
397
+ <div class="sidebar-tab layer-tab" role="button" aria-label="Toggle layers panel" aria-expanded="false">Layers</div>
398
+ <div class="sidebar-tab console-tab console-btn" role="button" aria-label="Toggle console" aria-expanded="false">Console</div>
381
399
  </div>
382
400
  <div class="mshp-main-map main-area map-area">
383
401
  <div class="intersection-display">