@emuanalytics/flow-rdf-core 4.0.0-preview.5 → 4.0.0-preview.7
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/dist/index.cjs
CHANGED
|
@@ -33,8 +33,9 @@ const mobx__namespace = /*#__PURE__*/_interopNamespaceCompat(mobx);
|
|
|
33
33
|
const Debug__default = /*#__PURE__*/_interopDefaultCompat(Debug);
|
|
34
34
|
const maplibre__default = /*#__PURE__*/_interopDefaultCompat(maplibre);
|
|
35
35
|
const EventEmitter__default = /*#__PURE__*/_interopDefaultCompat(EventEmitter);
|
|
36
|
+
const lzString__default = /*#__PURE__*/_interopDefaultCompat(lzString);
|
|
36
37
|
|
|
37
|
-
const version = "4.0.0-preview.
|
|
38
|
+
const version = "4.0.0-preview.7";
|
|
38
39
|
|
|
39
40
|
const CONSOLE_HIGHLIGHT_STYLE$1 = `
|
|
40
41
|
padding: 2px 4px;
|
|
@@ -3197,7 +3198,7 @@ class StateStore {
|
|
|
3197
3198
|
case "json":
|
|
3198
3199
|
return JSON.stringify(serializedProps);
|
|
3199
3200
|
case "lz":
|
|
3200
|
-
return
|
|
3201
|
+
return lzString__default.compressToEncodedURIComponent(JSON.stringify(serializedProps));
|
|
3201
3202
|
default:
|
|
3202
3203
|
return serializedProps;
|
|
3203
3204
|
}
|
|
@@ -3209,7 +3210,7 @@ class StateStore {
|
|
|
3209
3210
|
deserializedValue = JSON.parse(value);
|
|
3210
3211
|
break;
|
|
3211
3212
|
case "lz":
|
|
3212
|
-
deserializedValue = JSON.parse(
|
|
3213
|
+
deserializedValue = JSON.parse(lzString__default.decompressFromEncodedURIComponent(value));
|
|
3213
3214
|
break;
|
|
3214
3215
|
default:
|
|
3215
3216
|
deserializedValue = value;
|
package/dist/index.mjs
CHANGED
|
@@ -9,13 +9,13 @@ import maplibre from '@emuanalytics/maplibre-gl';
|
|
|
9
9
|
import EventEmitter from 'eventemitter3';
|
|
10
10
|
import { toStream } from 'mobx-utils';
|
|
11
11
|
import { t as throttle, a as debounceWithArgs } from './shared/flow-rdf-core.ea06a1d3.mjs';
|
|
12
|
-
import
|
|
12
|
+
import lzString from 'lz-string';
|
|
13
13
|
// import '@emuanalytics/maplibre-gl-style-spec';
|
|
14
14
|
import 'parsimmon';
|
|
15
15
|
import 'colorbrewer';
|
|
16
16
|
// import 'nanoid';
|
|
17
17
|
|
|
18
|
-
const version = "4.0.0-preview.
|
|
18
|
+
const version = "4.0.0-preview.7";
|
|
19
19
|
|
|
20
20
|
const CONSOLE_HIGHLIGHT_STYLE$1 = `
|
|
21
21
|
padding: 2px 4px;
|
|
@@ -3178,7 +3178,7 @@ class StateStore {
|
|
|
3178
3178
|
case "json":
|
|
3179
3179
|
return JSON.stringify(serializedProps);
|
|
3180
3180
|
case "lz":
|
|
3181
|
-
return compressToEncodedURIComponent(JSON.stringify(serializedProps));
|
|
3181
|
+
return lzString.compressToEncodedURIComponent(JSON.stringify(serializedProps));
|
|
3182
3182
|
default:
|
|
3183
3183
|
return serializedProps;
|
|
3184
3184
|
}
|
|
@@ -3190,7 +3190,7 @@ class StateStore {
|
|
|
3190
3190
|
deserializedValue = JSON.parse(value);
|
|
3191
3191
|
break;
|
|
3192
3192
|
case "lz":
|
|
3193
|
-
deserializedValue = JSON.parse(decompressFromEncodedURIComponent(value));
|
|
3193
|
+
deserializedValue = JSON.parse(lzString.decompressFromEncodedURIComponent(value));
|
|
3194
3194
|
break;
|
|
3195
3195
|
default:
|
|
3196
3196
|
deserializedValue = value;
|
|
@@ -17,7 +17,7 @@ const turfCircle = require('@turf/circle');
|
|
|
17
17
|
const turfDistance = require('@turf/distance');
|
|
18
18
|
const helpers = require('@turf/helpers');
|
|
19
19
|
const mobx = require('mobx');
|
|
20
|
-
const
|
|
20
|
+
const saveAs = require('file-saver');
|
|
21
21
|
require('@emuanalytics/maplibre-gl-style-spec');
|
|
22
22
|
require('mobx-utils');
|
|
23
23
|
require('parsimmon');
|
|
@@ -51,6 +51,7 @@ const lit__namespace = /*#__PURE__*/_interopNamespaceCompat(lit);
|
|
|
51
51
|
const maplibre__default = /*#__PURE__*/_interopDefaultCompat(maplibre);
|
|
52
52
|
const turfCircle__default = /*#__PURE__*/_interopDefaultCompat(turfCircle);
|
|
53
53
|
const turfDistance__default = /*#__PURE__*/_interopDefaultCompat(turfDistance);
|
|
54
|
+
const saveAs__default = /*#__PURE__*/_interopDefaultCompat(saveAs);
|
|
54
55
|
|
|
55
56
|
var __defProp$c = Object.defineProperty;
|
|
56
57
|
var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
@@ -1574,7 +1575,7 @@ const _MapExporter = class _MapExporter {
|
|
|
1574
1575
|
switch (options.format) {
|
|
1575
1576
|
case "png":
|
|
1576
1577
|
exportCanvas.toBlob((blob) => {
|
|
1577
|
-
blob &&
|
|
1578
|
+
blob && saveAs__default(blob, fileName);
|
|
1578
1579
|
});
|
|
1579
1580
|
break;
|
|
1580
1581
|
case "pdf":
|
|
@@ -16,7 +16,7 @@ import turfCircle from '@turf/circle';
|
|
|
16
16
|
import turfDistance from '@turf/distance';
|
|
17
17
|
import { point } from '@turf/helpers';
|
|
18
18
|
import { autorun, toJS } from 'mobx';
|
|
19
|
-
import
|
|
19
|
+
import saveAs from 'file-saver';
|
|
20
20
|
// import '@emuanalytics/maplibre-gl-style-spec';
|
|
21
21
|
// import 'mobx-utils';
|
|
22
22
|
import 'parsimmon';
|