mapshaper 0.6.109 → 0.6.111

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.6.109",
3
+ "version": "0.6.111",
4
4
  "description": "A tool for editing vector datasets for mapping and GIS.",
5
5
  "keywords": [
6
6
  "shapefile",
@@ -43,6 +43,7 @@
43
43
  "@tmcw/togeojson": "^5.6.0",
44
44
  "@xmldom/xmldom": "^0.8.6",
45
45
  "adm-zip": "^0.5.9",
46
+ "big.js": "^7.0.1",
46
47
  "commander": "7.0.0",
47
48
  "cookies": "^0.8.0",
48
49
  "d3-color": "3.1.0",
@@ -69,7 +70,6 @@
69
70
  "csv-spectrum": "^1.0.0",
70
71
  "eslint": "^8.16.0",
71
72
  "mocha": "^10.2.0",
72
- "robust-predicates": "^3.0.2",
73
73
  "rollup": "^4.44.1",
74
74
  "rollup-plugin-polyfill-node": "^0.13.0",
75
75
  "shell-quote": "^1.7.4",
package/www/elements.css CHANGED
@@ -131,7 +131,7 @@ div.tip {
131
131
  .btn {
132
132
  text-align: center;
133
133
  /* padding: 4px 7px 5px 7px; */
134
- padding: 3px 6px 4px 6px;
134
+ padding: 5px 6px 4px 6px;
135
135
  border-radius: 4px;
136
136
  line-height: 1;
137
137
  display: inline-block;
package/www/index.html CHANGED
@@ -1,5 +1,5 @@
1
1
  <!DOCTYPE html>
2
- <html>
2
+ <html lang="en">
3
3
  <head>
4
4
  <title>mapshaper</title>
5
5
  <meta name="Description" content="A tool for topologically aware shape simplification. Reads and writes Shapefile, GeoJSON and TopoJSON formats.">
@@ -42,24 +42,6 @@
42
42
  <svg id="ribbon-icon" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" width="15" height="25" viewBox="0 1 15 20">
43
43
  <polygon points="8 14.5 13 19 13 4 3 4 3 19 8 14.5" fill="#30d4ef"/>
44
44
  </svg>
45
-
46
- <defs>
47
- <style>
48
- .cls-1 {
49
- fill: #0c0a0a;
50
- }
51
- </style>
52
- </defs>
53
- <g id="left_arrow">
54
- <polygon class="cls-1" points="0.5 6 6.5 11.5 6.5 0.5 0.5 6"/>
55
- </g>
56
- </svg>
57
-
58
- <svg id="info-menu-icon" xmlns="http://www.w3.org/2000/svg" width="8" height="12" viewBox="0 0 8 12">
59
- <g id="left_arrow">
60
- <polygon class="cls-1" points="0.5 6 6.5 11.5 6.5 0.5 0.5 6"/>
61
- </g>
62
- </svg>
63
45
 
64
46
  </div>
65
47
 
@@ -70,13 +52,15 @@
70
52
 
71
53
  <div class="simplify-control-wrapper"><div class="simplify-control"><div class="header-btn btn simplify-settings-btn">Settings</div>
72
54
  <div class="slider">
73
- <div class="handle"><img src="images/slider_handle_v1.png" alt=""/></div>
55
+ <div class="handle"><img src="images/slider_handle_v1.png" alt=""></div>
74
56
  <div class="track"></div>
75
57
  </div>
76
- <input type="text" value="label" class="clicktext" />
58
+ <input type="text" value="label" class="clicktext">
59
+ <!-- <div class="header-btn btn simplify-done-btn">Done</div> -->
77
60
  </div></div>
78
61
  <div id="mode-buttons" class="page-header-buttons">
79
- <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 class="simplify-btn header-btn btn">Simplify</span><span class="separator"></span><span class="export-btn header-btn btn">Export</span>
62
+ <!-- <span class="project-btn header-btn btn">Project</span><span class="separator"> -->
63
+ <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>
80
64
  </div>
81
65
  <div id="splash-buttons" class="page-header-buttons">
82
66
  <a href="https://github.com/mbloch/mapshaper/wiki"><span id="wiki-btn" class="header-btn btn">Wiki</span></a><span class="separator"></span><a href="https://github.com/mbloch/mapshaper"><span id="github-btn" class="header-btn btn">GitHub</span></a>
@@ -96,8 +80,8 @@
96
80
  <div class="layer-menu">
97
81
  <h3>Layers</h3>
98
82
  <div class="pin-all pinnable">
99
- <img class="eye-btn black-eye" src="images/eye.png">
100
- <img class="eye-btn green-eye" src="images/eye2.png">
83
+ <img class="eye-btn black-eye" src="images/eye.png" alt="">
84
+ <img class="eye-btn green-eye" src="images/eye2.png" alt="">
101
85
  </div>
102
86
  <div class="layer-list"></div>
103
87
  <!-- <h4>Sources</h4> -->
@@ -146,7 +130,7 @@
146
130
  <div class="info-box">
147
131
  <div class="close2-btn"></div>
148
132
  <h3>Export options</h3>
149
- <div class=export-layers>
133
+ <div class="export-layers">
150
134
  <h4 class="menu-title">Layers</h4>
151
135
  <div class="export-layer-list option-menu"></div>
152
136
  </div>
@@ -161,8 +145,8 @@
161
145
 
162
146
  <div style="height:11px"></div>
163
147
 
164
- <div class="option-menu"><input type="text" class="text-input advanced-options" placeholder="command line options" />
165
- <a href="https://github.com/mbloch/mapshaper/wiki/Command-Reference#-o-output" target="_mapshaper_output_docs">
148
+ <div class="option-menu"><input type="text" class="text-input advanced-options" placeholder="command line options">
149
+ <a href="https://github.com/mbloch/mapshaper/wiki/Command-Reference#-o-output" target="mapshaper_output_docs">
166
150
  <div class="tip-button">?<div class="tip-anchor">
167
151
  <div class="tip">Enter options from the command line interface for
168
152
  the -o command. Examples: bbox no-quantization
@@ -171,8 +155,8 @@ precision=0.001. Click to see all options.</div></div></div></a>
171
155
  <!-- <div class="option-menu">
172
156
  <input id="ofile-name" class="text-input" type="text" placeholder="output file name" />
173
157
  </div> -->
174
- <div><span id="save-preference" style="display: none;"><input type="checkbox"/>choose output directory</span></div>
175
- <div><span id="save-to-clipboard" style="display: inline-block;"><input type="checkbox"/>save to clipboard</span></div>
158
+ <div><span id="save-preference" style="display: none;"><input type="checkbox">choose output directory</span></div>
159
+ <div><span id="save-to-clipboard" style="display: inline-block;"><input type="checkbox">save to clipboard</span></div>
176
160
  </div>
177
161
  <div id="export-btn" class="btn dialog-btn" style="margin-top: 5px;">Export</div>
178
162
 
@@ -184,8 +168,8 @@ precision=0.001. Click to see all options.</div></div></div></a>
184
168
  <div class="close2-btn"></div>
185
169
  <h3>Display options</h3>
186
170
 
187
- <div class=""><label for="intersections-opt"><input type="checkbox" id="intersections-opt" class="checkbox intersections-opt"/>detect line intersections</label></div>
188
- <div class=""><label for="ghost-opt"><input type="checkbox" id="ghost-opt" class="checkbox ghost-opt"/>show reference lines</label></div>
171
+ <div class=""><label><input type="checkbox" id="intersections-opt" class="checkbox intersections-opt">detect line intersections</label></div>
172
+ <div class=""><label><input type="checkbox" id="ghost-opt" class="checkbox ghost-opt">show reference lines</label></div>
189
173
 
190
174
  <div class="basemap-opts">
191
175
  <h4>Basemaps</h4>
@@ -202,18 +186,33 @@ precision=0.001. Click to see all options.</div></div></div></a>
202
186
  </div>
203
187
  </div>
204
188
 
189
+ <div class="project-options main-area popup-dialog popup-align-left">
190
+ <div class="info-box">
191
+ <div class="close2-btn"></div>
192
+ <h3>Projections</h3>
193
+ <div class="option-menu">
194
+ <div id="proj-list"></div>
195
+ <div id="proj-option-list"></div>
196
+ </div>
197
+ <div>
198
+ <div class="preview-btn btn dialog-btn">Preview</div>
199
+ <div class="apply-btn btn dialog-btn">Apply</div>
200
+ </div>
201
+ </div>
202
+ </div>
203
+
205
204
  <div class="simplify-options main-area popup-dialog">
206
205
  <div class="info-box">
207
206
  <div class="close2-btn"></div>
208
207
  <h3>Simplification</h3>
209
208
  <div class="option-menu">
210
- <div><label for="import-retain-opt"><input type="checkbox" class="checkbox import-retain-opt"/>prevent shape removal</label>
209
+ <div><label><input type="checkbox" class="checkbox import-retain-opt" id="import-retain-opt">prevent shape removal</label>
211
210
  <div class="tip-button">?<div class="tip-anchor">
212
211
  <div class="tip">Prevent small polygon features from
213
212
  disappearing at high simplification. Keeps
214
213
  the largest ring of multi-ring features.
215
214
  </div></div></div></div>
216
- <div class="planar-opt-wrapper"><label for="planar-opt"><input type="checkbox" class="checkbox planar-opt"/>use planar geometry</label>
215
+ <div class="planar-opt-wrapper"><label><input type="checkbox" class="checkbox planar-opt" id="planar-opt">use planar geometry</label>
217
216
  <div class="tip-button">?<div class="tip-anchor">
218
217
  <div class="tip">Treat x, y values as Cartesian coordinates
219
218
  on a plane, rather than as longitude, latitude
@@ -229,7 +228,7 @@ coordinates on a sphere.
229
228
  distance of original lines. Good for
230
229
  thinning dense points, but spikes
231
230
  tend to form at high simplification.</div></div></div>
232
- </div>
231
+ </div>
233
232
 
234
233
  <div><label><input type="radio" name="method" value="visvalingam" class="radio">Visvalingam / effective area</label><div class="tip-button">?<div class="tip-anchor">
235
234
  <div class="tip">Lines are simplified by iteratively
@@ -258,7 +257,7 @@ a smoother appearance.</div></div></div></div>
258
257
  <div class="cancel-btn close2-btn"></div>
259
258
  <h3 class="list-header">Import files</h3>
260
259
  <div class="import-instructions">
261
- <span><input type="checkbox" class="advanced-import-options" />with advanced options</span>
260
+ <span><input type="checkbox" class="advanced-import-options">with advanced options</span>
262
261
  <div class="mini-drop-area">
263
262
  <div class="subtitle">Drop, paste or <span class="add-btn inline-btn btn"><span class="label-text">select</span></span> files to import.</div>
264
263
  <div class="subtitle">Shapefile, GeoJSON, TopoJSON, KML and CSV formats are supported. Files can be zipped or gzipped.</div>
@@ -267,29 +266,24 @@ a smoother appearance.</div></div></div></div>
267
266
  <div class="queued-file-section">
268
267
  <!-- <h4>Files</h4> -->
269
268
  <div class="dropped-file-list"></div>
270
-
271
269
  <div class="option-menu">
272
-
273
- <div id="path-import-options">
274
- <!-- <h4>Options</h4> -->
270
+ <div id="path-import-options">
275
271
  </div>
276
-
277
- <div style="margin-top: 10px"><input type="text" class="text-input advanced-options" placeholder="import options" />
278
- <a href="https://github.com/mbloch/mapshaper/wiki/Command-Reference#-i-input" target="_mapshaper_import_docs">
272
+ <div style="margin-top: 10px"><input type="text" class="text-input advanced-options" placeholder="import options">
273
+ <a href="https://github.com/mbloch/mapshaper/wiki/Command-Reference#-i-input" target="mapshaper_import_docs">
279
274
  <div class="tip-button">?<div class="tip-anchor">
280
275
  <div class="tip">Enter options from the command line
281
276
  interface. Examples: <span id="import-option-examples">snap no-topology
282
- encoding=big5</span>. Click to see all options.</div></div></div></div>
277
+ encoding=big5</span>. Click to see all options.</div></div></div>
283
278
  </a>
284
-
285
279
  </div>
286
280
 
287
281
  <!-- <div class="cancel-btn btn dialog-btn">Cancel</div>
288
282
  <div class="add-btn btn dialog-btn">Select</div> -->
289
283
  <div class="submit-btn btn dialog-btn default-btn disabled">Submit</div>
290
284
 
285
+ </div>
291
286
  </div>
292
-
293
287
  </div> <!-- .info-box -->
294
288
  </div> <!-- import-options -->
295
289
 
@@ -310,14 +304,14 @@ encoding=big5</span>. Click to see all options.</div></div></div></div>
310
304
  </div>
311
305
  </div>
312
306
 
313
- <div id="import-options-drop-area" class="main-area drop-area-wrapper hidden">
307
+ <div id="import-options-drop-area" class="main-area drop-area-wrapper hidden">
314
308
  <div class="drop-area"></div>
315
309
  </div>
316
310
 
317
- <script src="basemap.js" type="text/javascript"></script>
318
- <script src="modules.js" type="text/javascript"></script>
319
- <script src="mapshaper.js" type="text/javascript"></script>
320
- <script src="manifest.js" type="text/javascript"></script>
321
- <script src="mapshaper-gui.js" type="text/javascript"></script>
311
+ <script src="basemap.js"></script>
312
+ <script src="modules.js"></script>
313
+ <script src="mapshaper.js"></script>
314
+ <script src="manifest.js"></script>
315
+ <script src="mapshaper-gui.js"></script>
322
316
  </body>
323
317
  </html>