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/modules.js CHANGED
@@ -13503,7 +13503,7 @@
13503
13503
  function requireEncodings () {
13504
13504
  if (hasRequiredEncodings) return encodings;
13505
13505
  hasRequiredEncodings = 1;
13506
- (function (exports) {
13506
+ (function (exports$1) {
13507
13507
  "use strict";
13508
13508
 
13509
13509
  // Update this array if you add/rename/remove files in this directory.
@@ -13525,7 +13525,7 @@
13525
13525
  var module = modules[i];
13526
13526
  for (var enc in module)
13527
13527
  if (Object.prototype.hasOwnProperty.call(module, enc))
13528
- exports[enc] = module[enc];
13528
+ exports$1[enc] = module[enc];
13529
13529
  }
13530
13530
  } (encodings));
13531
13531
  return encodings;
@@ -18975,7 +18975,7 @@
18975
18975
  tcxGen: tcxGen
18976
18976
  });
18977
18977
 
18978
- var __filename = '/Users/matthewbloch/mb4/mapshaper/node_modules/mproj/dist';
18978
+ var __filename$1 = '/Users/matthewbloch/mb4/mapshaper/node_modules/mproj/dist';
18979
18979
 
18980
18980
  var mproj$2 = {exports: {}};
18981
18981
 
@@ -19247,7 +19247,7 @@
19247
19247
  function requireMproj () {
19248
19248
  if (hasRequiredMproj) return mproj$2.exports;
19249
19249
  hasRequiredMproj = 1;
19250
- (function (module, exports) {
19250
+ (function (module, exports$1) {
19251
19251
  (function(){
19252
19252
 
19253
19253
  // add math.h functions to library scope
@@ -19967,7 +19967,7 @@
19967
19967
  var fs = require$$0,
19968
19968
  path = require$$1,
19969
19969
  // path to library assumes mproj script is in the dist/ directory
19970
- dir = path.join(path.dirname(__filename), '../nad'),
19970
+ dir = path.join(path.dirname(__filename$1), '../nad'),
19971
19971
  pathUC = path.join(dir, libFile.toUpperCase()),
19972
19972
  pathLC = path.join(dir, libFile.toLowerCase()),
19973
19973
  contents;
package/www/page.css CHANGED
@@ -165,6 +165,13 @@ body.map-view {
165
165
 
166
166
  }
167
167
 
168
+ /* When the page is preloaded with data (CLI files, ?files= or ?catalog= URL
169
+ params), suppress the splash header links so they don't flash into view
170
+ for ~a second before the editor mounts and hides them. */
171
+ .mapshaper-preload #splash-buttons {
172
+ display: none;
173
+ }
174
+
168
175
  .page-header-buttons {
169
176
  z-index: 20;
170
177
  position: absolute;
@@ -785,6 +792,10 @@ body.console-open .map-area {
785
792
  color: #f93b00;
786
793
  }
787
794
 
795
+ .console-warn {
796
+ color: #f5b542;
797
+ }
798
+
788
799
  .console-message {
789
800
  color: #eddd98;
790
801
  }
@@ -1197,6 +1208,156 @@ img.close-btn:hover,
1197
1208
  pointer-events: initial;
1198
1209
  }
1199
1210
 
1211
+ /* --- Messages inbox --------------- */
1212
+
1213
+ .messages-btn.btn {
1214
+ /* SVG-only button; align like the hamburger so its baseline doesn't drag
1215
+ the row's text-bearing buttons down. */
1216
+ padding: 8px 8px 4px 8px;
1217
+ user-select: none;
1218
+ vertical-align: top;
1219
+ cursor: pointer;
1220
+ position: relative;
1221
+ }
1222
+
1223
+ .messages-btn.btn.hidden {
1224
+ display: none;
1225
+ }
1226
+
1227
+ .messages-btn svg {
1228
+ display: block;
1229
+ fill: currentColor;
1230
+ }
1231
+
1232
+ .messages-badge {
1233
+ position: absolute;
1234
+ top: 2px;
1235
+ right: -1px;
1236
+ min-width: 14px;
1237
+ height: 14px;
1238
+ padding: 0 3px;
1239
+ border-radius: 7px;
1240
+ background-color: #d63333;
1241
+ color: #fff;
1242
+ font-size: 10px;
1243
+ line-height: 14px;
1244
+ font-weight: 600;
1245
+ text-align: center;
1246
+ box-sizing: border-box;
1247
+ pointer-events: none;
1248
+ }
1249
+
1250
+ .messages-badge.warn {
1251
+ background-color: #d68f33;
1252
+ }
1253
+
1254
+ /* Quick pulse to draw attention when a new message arrives. The animation
1255
+ is added by JS for ~2s and then removed, so it doesn't cycle forever. */
1256
+ .messages-btn.pulse .messages-badge {
1257
+ animation: messages-pulse 0.9s ease-out 2;
1258
+ }
1259
+
1260
+ @keyframes messages-pulse {
1261
+ 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(214, 51, 51, 0.55); }
1262
+ 60% { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(214, 51, 51, 0); }
1263
+ 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(214, 51, 51, 0); }
1264
+ }
1265
+
1266
+ .messages-panel {
1267
+ pointer-events: none;
1268
+ }
1269
+
1270
+ .messages-panel .info-box {
1271
+ pointer-events: initial;
1272
+ width: 360px;
1273
+ max-width: 90vw;
1274
+ }
1275
+
1276
+ .messages-empty {
1277
+ color: #888;
1278
+ font-size: 13px;
1279
+ font-style: italic;
1280
+ padding: 4px 0 8px 0;
1281
+ }
1282
+
1283
+ .messages-list {
1284
+ max-height: 50vh;
1285
+ overflow: hidden;
1286
+ overflow-y: auto;
1287
+ margin: 0 -4px 6px -4px;
1288
+ }
1289
+
1290
+ .message-item {
1291
+ position: relative;
1292
+ border-left: 3px solid #888;
1293
+ background-color: #f4f7fa;
1294
+ padding: 6px 22px 6px 9px;
1295
+ margin: 4px 4px;
1296
+ border-radius: 3px;
1297
+ font-size: 13px;
1298
+ line-height: 1.35;
1299
+ }
1300
+
1301
+ .message-item.severity-warn {
1302
+ border-left-color: #d68f33;
1303
+ background-color: #fbf3e6;
1304
+ }
1305
+
1306
+ .message-item.severity-error {
1307
+ border-left-color: #d63333;
1308
+ background-color: #fbecec;
1309
+ }
1310
+
1311
+ .message-item .message-title {
1312
+ font-weight: 600;
1313
+ display: block;
1314
+ margin-bottom: 1px;
1315
+ }
1316
+
1317
+ .message-item .message-body {
1318
+ white-space: pre-wrap;
1319
+ word-wrap: break-word;
1320
+ }
1321
+
1322
+ .message-item .message-time {
1323
+ color: #888;
1324
+ font-size: 11px;
1325
+ margin-top: 2px;
1326
+ display: block;
1327
+ }
1328
+
1329
+ .message-item .message-dismiss {
1330
+ position: absolute;
1331
+ top: 3px;
1332
+ right: 5px;
1333
+ width: 16px;
1334
+ height: 16px;
1335
+ line-height: 14px;
1336
+ text-align: center;
1337
+ color: #888;
1338
+ cursor: pointer;
1339
+ font-size: 14px;
1340
+ user-select: none;
1341
+ border-radius: 8px;
1342
+ }
1343
+
1344
+ .message-item .message-dismiss:hover {
1345
+ color: #333;
1346
+ background-color: rgba(0, 0, 0, 0.05);
1347
+ }
1348
+
1349
+ .messages-footer {
1350
+ text-align: right;
1351
+ padding-top: 4px;
1352
+ border-top: 1px solid #eee;
1353
+ }
1354
+
1355
+ .messages-footer .messages-clear-btn {
1356
+ font-size: 12px;
1357
+ min-width: 0;
1358
+ padding: 3px 9px;
1359
+ }
1360
+
1200
1361
  .basemap-container {
1201
1362
  z-index: -1;
1202
1363
  position: absolute;