mapshaper 0.7.3 → 0.7.5

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/www/index.html CHANGED
@@ -6,11 +6,27 @@
6
6
  <meta charset="UTF-8">
7
7
  <meta name="viewport" content="width=device-width, initial-scale=1">
8
8
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
9
+ <script>
10
+ // If the page is opened with preloaded data (?files= or ?catalog= in the
11
+ // URL), tag <html> so CSS hides the splash-screen header links right away.
12
+ // Without this they flash into view for ~a second before the editor mounts
13
+ // and hides them. Done as the first script in <head> so the class is set
14
+ // before any layout. bin/mapshaper-gui adds the same class server-side
15
+ // when files are passed on the command line.
16
+ (function() {
17
+ try {
18
+ var s = location.search || '';
19
+ if (s.indexOf('files=') !== -1 || s.indexOf('catalog=') !== -1) {
20
+ document.documentElement.className += ' mapshaper-preload';
21
+ }
22
+ } catch (e) {}
23
+ })();
24
+ </script>
9
25
  <link rel="stylesheet" href="page.css">
10
26
  <link rel="stylesheet" href="elements.css">
11
27
  <link rel="icon" type="image/png" href="images/icon.png">
12
28
  </head>
13
- <body>
29
+ <body class="mapshaper-preload">
14
30
  <div class="hidden">
15
31
  <svg version="1.1" id="home-icon" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px"
16
32
  y="0px" width="14px" height="19px" viewBox="0 0 14 16">
@@ -68,10 +84,11 @@
68
84
  </div></div>
69
85
  <div id="mode-buttons" class="page-header-buttons">
70
86
  <!-- <span class="project-btn header-btn btn">Project</span><span class="separator"> -->
71
- <span class="console-btn header-btn btn">Console</span><span class="display-btn header-btn btn">Display</span><span class="separator"></span><span class="separator"></span></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>
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="console-btn header-btn btn">Console</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>
72
88
  <div id="header-menu-dropdown" class="hidden" role="menu" aria-labelledby="header-menu-btn">
73
89
  <a class="header-menu-item" href="/docs/" target="_blank" rel="noopener" role="menuitem">Docs</a>
74
90
  <a class="header-menu-item" href="https://github.com/mbloch/mapshaper" target="_blank" rel="noopener" role="menuitem">GitHub</a>
91
+ <a class="header-menu-item" href="https://github.com/mbloch/mapshaper/issues/new" target="_blank" rel="noopener" role="menuitem">Report an issue</a>
75
92
  <a class="header-menu-item survey-en-link" href="https://tally.so/r/44Njok" target="_blank" rel="noopener" role="menuitem">1-minute survey</a>
76
93
  <a class="header-menu-item survey-zh-link" href="https://tally.so/r/vGx7KQ" target="_blank" rel="noopener" lang="zh-CN" style="display:none" role="menuitem">意见反馈</a>
77
94
  <a class="header-menu-item header-menu-sponsor" href="sponsor.html" target="_blank" rel="noopener" role="menuitem"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></svg>Become a sponsor</a>
@@ -161,7 +178,7 @@
161
178
  <div style="height:11px"></div>
162
179
 
163
180
  <div class="option-menu"><input type="text" class="text-input advanced-options" placeholder="command line options">
164
- <a href="/docs/essentials/commands.html#-o-output" target="mapshaper_output_docs">
181
+ <a href="/docs/reference.html#-o-output" target="mapshaper_output_docs">
165
182
  <div class="tip-button">?<div class="tip-anchor">
166
183
  <div class="tip">Enter options from the command line interface for
167
184
  the -o command. Examples: bbox no-quantization
@@ -178,6 +195,18 @@ precision=0.001. Click to see all options.</div></div></div></a>
178
195
  </div>
179
196
  </div>
180
197
 
198
+ <div class="messages-panel main-area popup-dialog popup-align-left">
199
+ <div class="info-box messages-box">
200
+ <div class="close2-btn"></div>
201
+ <h3>Messages</h3>
202
+ <div class="messages-empty">No messages yet.</div>
203
+ <div class="messages-list"></div>
204
+ <div class="messages-footer">
205
+ <span class="messages-clear-btn btn dialog-btn">Clear all</span>
206
+ </div>
207
+ </div>
208
+ </div>
209
+
181
210
  <div class="display-options main-area popup-dialog">
182
211
 
183
212
  <div class="info-box add-basemap-menu">
@@ -308,7 +337,7 @@ a smoother appearance.</div></div></div></div>
308
337
  </div>
309
338
  </div>
310
339
  <div style="margin-top: 10px"><input type="text" class="text-input advanced-options" placeholder="import options">
311
- <a href="/docs/essentials/commands.html#-i-input" target="mapshaper_import_docs">
340
+ <a href="/docs/reference.html#-i-input" target="mapshaper_import_docs">
312
341
  <div class="tip-button">?<div class="tip-anchor">
313
342
  <div class="tip">Enter options from the command line
314
343
  interface. Examples: <span id="import-option-examples">snap no-topology