@ruckc/truss-ol 1.28.0 → 1.30.0
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/README.md +75 -0
- package/dist/Map.svelte +487 -54
- package/dist/Map.svelte.d.ts +83 -4
- package/dist/index.d.ts +3 -1
- package/dist/points.d.ts +101 -0
- package/dist/points.js +222 -0
- package/dist/style.d.ts +204 -0
- package/dist/style.js +245 -0
- package/dist/types.d.ts +53 -1
- package/dist/util.d.ts +2 -0
- package/dist/util.js +2 -0
- package/package.json +3 -2
package/dist/style.js
ADDED
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
/** Pure helpers for data-driven map styling: colour maths, scales, domains and the compiled style a layer calls per feature. */
|
|
2
|
+
/** The ramps used when the chart tokens are not defined; they match `charts.css` in light mode. */
|
|
3
|
+
export const DEFAULT_PALETTES = {
|
|
4
|
+
sequential: ['#eaf3fe', '#c5ddfc', '#97c1f7', '#64a1ee', '#3a81d7', '#1d60ad', '#10427b'],
|
|
5
|
+
diverging: ['#11458c', '#3c79d1', '#94b9f1', '#f0eeeb', '#ebaf86', '#d26c28', '#993e02'],
|
|
6
|
+
categorical: ['#2a78d6', '#eb6834', '#1baf7a', '#eda100', '#e87ba4', '#008300', '#6250d6', '#e34948'],
|
|
7
|
+
other: '#888888'
|
|
8
|
+
};
|
|
9
|
+
/** `#rgb`, `#rrggbb` or `rgb[a](r, g, b…)` to [r, g, b]; `undefined` for anything else (named colours, `var()`). */
|
|
10
|
+
export function parseColor(s) {
|
|
11
|
+
const hex = /^#([0-9a-f]{6}|[0-9a-f]{3})(?![0-9a-f])/i.exec(s.trim());
|
|
12
|
+
if (hex) {
|
|
13
|
+
const h = hex[1].length === 3 ? hex[1].replace(/./g, '$&$&') : hex[1];
|
|
14
|
+
const n = parseInt(h, 16);
|
|
15
|
+
return [(n >> 16) & 255, (n >> 8) & 255, n & 255];
|
|
16
|
+
}
|
|
17
|
+
const m = /^rgba?\(\s*([\d.]+)[\s,]+([\d.]+)[\s,]+([\d.]+)/i.exec(s.trim());
|
|
18
|
+
return m ? [Number(m[1]), Number(m[2]), Number(m[3])] : undefined;
|
|
19
|
+
}
|
|
20
|
+
/** `color` with an alpha channel. A colour that can't be parsed is returned unchanged. */
|
|
21
|
+
export function withAlpha(color, a) {
|
|
22
|
+
const c = parseColor(color);
|
|
23
|
+
return c ? `rgba(${c[0]},${c[1]},${c[2]},${a})` : color;
|
|
24
|
+
}
|
|
25
|
+
/** The colour at `t` (0 to 1, clamped) along evenly spaced `stops`, linearly interpolated in sRGB, as `#rrggbb`. */
|
|
26
|
+
export function rampColor(stops, t) {
|
|
27
|
+
const rgb = stops.map((s) => parseColor(s) ?? [136, 136, 136]);
|
|
28
|
+
if (rgb.length === 1)
|
|
29
|
+
return toHex(rgb[0]);
|
|
30
|
+
const pos = Math.min(Math.max(Number.isFinite(t) ? t : 0, 0), 1) * (rgb.length - 1);
|
|
31
|
+
const i = Math.min(Math.floor(pos), rgb.length - 2), f = pos - i;
|
|
32
|
+
return toHex(rgb[i].map((v, k) => v + (rgb[i + 1][k] - v) * f));
|
|
33
|
+
}
|
|
34
|
+
const toHex = (c) => '#' + c.map((v) => Math.round(v).toString(16).padStart(2, '0')).join('');
|
|
35
|
+
/** A number for a legend: whole numbers and values from 100 up as is, others to 3 significant figures. */
|
|
36
|
+
export function formatNumber(v) {
|
|
37
|
+
return Number.isInteger(v) || Math.abs(v) >= 100 ? String(Math.round(v * 100) / 100) : String(Number(v.toPrecision(3)));
|
|
38
|
+
}
|
|
39
|
+
/** A CSS `linear-gradient` over `stops`, left to right. */
|
|
40
|
+
export function cssGradient(stops) {
|
|
41
|
+
return `linear-gradient(to right, ${stops.join(', ')})`;
|
|
42
|
+
}
|
|
43
|
+
/** `[min, max]` of the finite numbers among `values` (numeric strings count), or `undefined` when there are none. */
|
|
44
|
+
export function extentOf(values) {
|
|
45
|
+
let lo = Infinity, hi = -Infinity;
|
|
46
|
+
for (const v of values) {
|
|
47
|
+
const n = typeof v === 'number' ? v : typeof v === 'string' && v.trim() !== '' ? Number(v) : NaN;
|
|
48
|
+
if (!Number.isFinite(n))
|
|
49
|
+
continue;
|
|
50
|
+
if (n < lo)
|
|
51
|
+
lo = n;
|
|
52
|
+
if (n > hi)
|
|
53
|
+
hi = n;
|
|
54
|
+
}
|
|
55
|
+
return lo <= hi ? [lo, hi] : undefined;
|
|
56
|
+
}
|
|
57
|
+
/** A function from a value to `range`: linear, or `sqrt` for area-proportional symbols. Clamped to the domain; a flat domain maps to the middle of the range; `NaN` maps to the low end. */
|
|
58
|
+
export function scaleOf(domain, range, kind = 'linear') {
|
|
59
|
+
const [d0, d1] = domain, [r0, r1] = range;
|
|
60
|
+
return (v) => {
|
|
61
|
+
if (d1 === d0)
|
|
62
|
+
return (r0 + r1) / 2;
|
|
63
|
+
const t = Math.min(Math.max((v - d0) / (d1 - d0) || 0, 0), 1);
|
|
64
|
+
return r0 + (r1 - r0) * (kind === 'sqrt' ? Math.sqrt(t) : kind === 'log' ? Math.log1p(t * (Math.E ** 4 - 1)) / 4 : t);
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
/** Distinct values of `by` in order of appearance. */
|
|
68
|
+
export function categoriesOf(rows, by) {
|
|
69
|
+
const seen = new Set();
|
|
70
|
+
for (const r of rows) {
|
|
71
|
+
const v = r[by];
|
|
72
|
+
if (v !== undefined && v !== null)
|
|
73
|
+
seen.add(String(v));
|
|
74
|
+
}
|
|
75
|
+
return [...seen];
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Turns a style into per-feature functions. `rows` are the features' property objects, read once to find each
|
|
79
|
+
* spec's domain or categories (not when given, nor for function and constant forms).
|
|
80
|
+
*/
|
|
81
|
+
export function compileStyle(style, rows, palettes = DEFAULT_PALETTES) {
|
|
82
|
+
const out = { opacity: style?.opacity, legend: {} };
|
|
83
|
+
if (!style)
|
|
84
|
+
return out;
|
|
85
|
+
const list = [...rows];
|
|
86
|
+
const sz = style.size;
|
|
87
|
+
if (typeof sz === 'function')
|
|
88
|
+
out.size = sz;
|
|
89
|
+
else if (typeof sz === 'number')
|
|
90
|
+
out.size = () => sz;
|
|
91
|
+
else if (sz) {
|
|
92
|
+
const range = sz.range ?? [3, 14];
|
|
93
|
+
const domain = sz.domain ?? extentOf(list.map((r) => r[sz.by])) ?? [0, 1];
|
|
94
|
+
const f = scaleOf(domain, range, sz.scale);
|
|
95
|
+
out.size = (p) => f(Number(p[sz.by]));
|
|
96
|
+
const mid = (domain[0] + domain[1]) / 2;
|
|
97
|
+
const values = domain[0] === domain[1] ? [domain[0]] : [domain[0], mid, domain[1]];
|
|
98
|
+
const fmt = sz.format ?? formatNumber;
|
|
99
|
+
out.legend.size = { by: sz.by, title: sz.title ?? sz.by, domain, range, steps: values.map((value) => ({ value, radius: f(value), label: fmt(value) })) };
|
|
100
|
+
}
|
|
101
|
+
const co = style.color;
|
|
102
|
+
if (typeof co === 'function')
|
|
103
|
+
out.color = co;
|
|
104
|
+
else if (typeof co === 'string')
|
|
105
|
+
out.color = () => co;
|
|
106
|
+
else if (co) {
|
|
107
|
+
const scale = co.scale ?? (extentOf(list.map((r) => r[co.by])) ? 'sequential' : 'categorical');
|
|
108
|
+
if (scale === 'categorical') {
|
|
109
|
+
const cats = co.categories ?? categoriesOf(list, co.by);
|
|
110
|
+
const pal = co.stops ?? palettes.categorical;
|
|
111
|
+
const colorOf = (c) => { const i = cats.indexOf(c); return i < 0 || i >= pal.length ? palettes.other : pal[i]; };
|
|
112
|
+
out.color = (p) => colorOf(String(p[co.by]));
|
|
113
|
+
out.legend.color = { by: co.by, title: co.title ?? co.by, scale, categories: cats.map((label) => ({ label, color: colorOf(label) })) };
|
|
114
|
+
}
|
|
115
|
+
else {
|
|
116
|
+
const stops = co.stops && co.stops.length > 1 ? co.stops : scale === 'diverging' ? palettes.diverging : palettes.sequential;
|
|
117
|
+
const domain = co.domain ?? extentOf(list.map((r) => r[co.by])) ?? [0, 1];
|
|
118
|
+
const mid = co.midpoint ?? (domain[0] + domain[1]) / 2;
|
|
119
|
+
// a diverging scale spends half the ramp on each side of the midpoint; a flat side collapses onto the centre
|
|
120
|
+
const t = (v) => {
|
|
121
|
+
if (isNaN(v))
|
|
122
|
+
return 0;
|
|
123
|
+
if (scale === 'sequential')
|
|
124
|
+
return domain[1] === domain[0] ? 0.5 : (v - domain[0]) / (domain[1] - domain[0]);
|
|
125
|
+
return v < mid ? (0.5 * (v - domain[0])) / (mid - domain[0]) : domain[1] === mid ? 0.5 : 0.5 + (0.5 * (v - mid)) / (domain[1] - mid);
|
|
126
|
+
};
|
|
127
|
+
out.color = (p) => rampColor(stops, t(Number(p[co.by])));
|
|
128
|
+
const fmt = co.format ?? formatNumber;
|
|
129
|
+
out.legend.color = { by: co.by, title: co.title ?? co.by, scale, domain, labels: [fmt(domain[0]), fmt(domain[1])], gradient: cssGradient(stops) };
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
return out;
|
|
133
|
+
}
|
|
134
|
+
const SIMPLE = { fill: 'fill', 'fill-opacity': 'opacity', stroke: 'stroke', 'stroke-width': 'strokeWidth', 'marker-size': 'radius', title: 'label' };
|
|
135
|
+
/**
|
|
136
|
+
* The style a GeoJSON feature carries in its own properties: a `style` object (`{ fill, opacity, stroke, strokeWidth, radius, label }`)
|
|
137
|
+
* and/or the simplestyle keys `fill`, `fill-opacity`, `stroke`, `stroke-width`, `marker-size` (a radius in px here) and `title`. A `style` object wins over simplestyle keys.
|
|
138
|
+
*/
|
|
139
|
+
export function propertyStyle(p) {
|
|
140
|
+
const out = {};
|
|
141
|
+
for (const [k, to] of Object.entries(SIMPLE))
|
|
142
|
+
if (p[k] !== undefined && p[k] !== null)
|
|
143
|
+
out[to] = p[k];
|
|
144
|
+
const s = p.style;
|
|
145
|
+
return s && typeof s === 'object' ? { ...out, ...s } : out;
|
|
146
|
+
}
|
|
147
|
+
/** A feature's heading for a popup: its `name`, `title`, `label`, or `id` property, else `Feature`. */
|
|
148
|
+
export function featureTitle(p) {
|
|
149
|
+
for (const k of ['name', 'title', 'label', 'id'])
|
|
150
|
+
if (p[k] !== undefined && p[k] !== null && p[k] !== '')
|
|
151
|
+
return String(p[k]);
|
|
152
|
+
return 'Feature';
|
|
153
|
+
}
|
|
154
|
+
/** The properties a default popup lists: at most `max` entries, without styling keys, empty values and internals; objects as JSON. */
|
|
155
|
+
export function popupEntries(p, max = 8) {
|
|
156
|
+
const skip = new Set(['geometry', 'style', 'kind', ...Object.keys(SIMPLE), '_cluster']);
|
|
157
|
+
const out = [];
|
|
158
|
+
for (const [k, v] of Object.entries(p)) {
|
|
159
|
+
if (skip.has(k) || v === undefined || v === null || v === '')
|
|
160
|
+
continue;
|
|
161
|
+
out.push([k, typeof v === 'object' ? JSON.stringify(v) : String(v)]);
|
|
162
|
+
if (out.length === max)
|
|
163
|
+
break;
|
|
164
|
+
}
|
|
165
|
+
return out;
|
|
166
|
+
}
|
|
167
|
+
/** The value of a cluster aggregate: its member count, or the sum/mean/min/max of `prop` over its numeric members (`NaN` when it has none). */
|
|
168
|
+
export function clusterValue(by, c) {
|
|
169
|
+
const agg = by === 'count' ? 'count' : by.agg;
|
|
170
|
+
if (agg === 'count')
|
|
171
|
+
return c.count;
|
|
172
|
+
const st = c.stats?.[by.prop ?? ''];
|
|
173
|
+
if (!st || !st.n)
|
|
174
|
+
return NaN;
|
|
175
|
+
return agg === 'sum' ? st.sum : agg === 'mean' ? st.sum / st.n : agg === 'min' ? st.min : st.max;
|
|
176
|
+
}
|
|
177
|
+
const byProp = (by) => (by === 'count' ? undefined : by.agg === 'count' ? undefined : by.prop);
|
|
178
|
+
const byLabel = (by) => (by === 'count' || by.agg === 'count' ? 'Count' : `${by.agg[0].toUpperCase()}${by.agg.slice(1)} ${by.prop}`);
|
|
179
|
+
/** Properties whose stats a cluster style needs (so clusters collect only those). */
|
|
180
|
+
export function clusterProps(cs) {
|
|
181
|
+
const out = new Set();
|
|
182
|
+
for (const s of [cs?.size, cs?.color])
|
|
183
|
+
if (s && typeof s === 'object') {
|
|
184
|
+
const p = byProp(s.by);
|
|
185
|
+
if (p)
|
|
186
|
+
out.add(p);
|
|
187
|
+
}
|
|
188
|
+
return [...out];
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* Compiles a cluster style. `rows` are the point set's property objects, read once to find the default domains
|
|
192
|
+
* (the data's own extent of the aggregated property, `[2, n]` for count, `[min, total]` for sum), so a cluster keeps its
|
|
193
|
+
* size and colour while you pan and zoom.
|
|
194
|
+
*/
|
|
195
|
+
export function compileCluster(cs, rows, palettes = DEFAULT_PALETTES) {
|
|
196
|
+
const out = { opacity: cs?.opacity, legend: {} };
|
|
197
|
+
if (!cs)
|
|
198
|
+
return out;
|
|
199
|
+
const domainOf = (by, given) => {
|
|
200
|
+
if (given)
|
|
201
|
+
return given;
|
|
202
|
+
const prop = byProp(by);
|
|
203
|
+
if (!prop)
|
|
204
|
+
return [2, Math.max(rows.length, 3)];
|
|
205
|
+
const e = extentOf(rows.map((r) => r[prop])) ?? [0, 1];
|
|
206
|
+
if (by !== 'count' && by.agg === 'sum') {
|
|
207
|
+
let t = 0;
|
|
208
|
+
for (const r of rows) {
|
|
209
|
+
const v = Number(r[prop]);
|
|
210
|
+
if (Number.isFinite(v))
|
|
211
|
+
t += v;
|
|
212
|
+
}
|
|
213
|
+
return [Math.min(e[0], t), t];
|
|
214
|
+
}
|
|
215
|
+
return e;
|
|
216
|
+
};
|
|
217
|
+
const kindOf = (by, k) => k ?? (by === 'count' || by.agg === 'count' || by.agg === 'sum' ? 'log' : 'linear');
|
|
218
|
+
const sz = cs.size;
|
|
219
|
+
if (typeof sz === 'number')
|
|
220
|
+
out.size = () => sz;
|
|
221
|
+
else if (sz) {
|
|
222
|
+
const range = sz.range ?? [10, 32], domain = domainOf(sz.by, sz.domain), kind = kindOf(sz.by, sz.scale), f = scaleOf(domain, range, kind);
|
|
223
|
+
out.size = (c) => f(clusterValue(sz.by, c));
|
|
224
|
+
const mid = kind === 'log' ? domain[0] + (domain[1] - domain[0]) * 0.1 : (domain[0] + domain[1]) / 2;
|
|
225
|
+
const fmt = sz.format ?? formatNumber;
|
|
226
|
+
const values = domain[0] === domain[1] ? [domain[0]] : [domain[0], mid, domain[1]];
|
|
227
|
+
out.legend.clusterSize = { by: byLabel(sz.by), title: sz.title ?? byLabel(sz.by), domain, range, steps: values.map((value) => ({ value, radius: f(value), label: fmt(value) })) };
|
|
228
|
+
}
|
|
229
|
+
const co = cs.color;
|
|
230
|
+
if (typeof co === 'string')
|
|
231
|
+
out.color = () => co;
|
|
232
|
+
else if (co) {
|
|
233
|
+
const stops = co.stops && co.stops.length > 1 ? co.stops : palettes.sequential;
|
|
234
|
+
const domain = domainOf(co.by, co.domain), f = scaleOf(domain, [0, 1], kindOf(co.by, co.scale));
|
|
235
|
+
out.color = (c) => { const v = clusterValue(co.by, c); return rampColor(stops, Number.isFinite(v) ? f(v) : 0); };
|
|
236
|
+
const fmt = co.format ?? formatNumber;
|
|
237
|
+
out.legend.clusterColor = { by: byLabel(co.by), title: co.title ?? byLabel(co.by), scale: 'sequential', domain, labels: [fmt(domain[0]), fmt(domain[1])], gradient: cssGradient(stops) };
|
|
238
|
+
}
|
|
239
|
+
return out;
|
|
240
|
+
}
|
|
241
|
+
/** Whether `color` is light enough that dark text reads on it. Colours that can't be parsed count as dark. */
|
|
242
|
+
export function isLight(color) {
|
|
243
|
+
const c = parseColor(color);
|
|
244
|
+
return !!c && 0.299 * c[0] + 0.587 * c[1] + 0.114 * c[2] > 160;
|
|
245
|
+
}
|
package/dist/types.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type OLMap from 'ol/Map.js';
|
|
1
2
|
export type MarkerKind = 'neutral' | 'primary' | 'success' | 'warning' | 'danger';
|
|
2
3
|
export type MapMarker = {
|
|
3
4
|
id: string;
|
|
@@ -7,11 +8,18 @@ export type MapMarker = {
|
|
|
7
8
|
description?: string;
|
|
8
9
|
kind?: MarkerKind;
|
|
9
10
|
};
|
|
10
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* Basemap: OpenStreetMap tiles (`'osm'`), none (themed graticule, works offline), any XYZ tile source, or
|
|
13
|
+
* `{ osm: true }` for OSM tiles with your own `attribution` and/or `maxZoom`.
|
|
14
|
+
*/
|
|
11
15
|
export type Basemap = 'osm' | 'none' | {
|
|
12
16
|
url: string;
|
|
13
17
|
attribution?: string;
|
|
14
18
|
maxZoom?: number;
|
|
19
|
+
} | {
|
|
20
|
+
osm: true;
|
|
21
|
+
attribution?: string;
|
|
22
|
+
maxZoom?: number;
|
|
15
23
|
};
|
|
16
24
|
export type MapSelection = {
|
|
17
25
|
type: 'marker';
|
|
@@ -19,5 +27,49 @@ export type MapSelection = {
|
|
|
19
27
|
} | {
|
|
20
28
|
type: 'feature';
|
|
21
29
|
id?: string | number;
|
|
30
|
+
properties: Record<string, unknown>; /** `Point`, `LineString`, `Polygon`, `MultiPolygon`, ... */
|
|
31
|
+
geometryType: string;
|
|
32
|
+
};
|
|
33
|
+
/** A GeoJSON or point feature as the popup and selection report it. */
|
|
34
|
+
export type MapFeatureInfo = {
|
|
35
|
+
/** The feature's `id` (GeoJSON `id`, `properties.id`, or what `idBy` returns, or a generated `geo:<n>` / `pt:<n>`). Selecting by it works through `selected`. */
|
|
36
|
+
id: string;
|
|
22
37
|
properties: Record<string, unknown>;
|
|
38
|
+
/** The GeoJSON geometry type: `Point` (all `points`), `MultiPoint`, `LineString`, `Polygon`, ... */
|
|
39
|
+
geometryType: string;
|
|
40
|
+
/** Where the popup is anchored. */
|
|
41
|
+
lonLat: [number, number];
|
|
42
|
+
};
|
|
43
|
+
/** The view as `getView()` reports it and `setView()` accepts. */
|
|
44
|
+
export type MapViewState = {
|
|
45
|
+
/** `[lon, lat]` */
|
|
46
|
+
center: [number, number];
|
|
47
|
+
zoom: number;
|
|
48
|
+
/** Visible lon/lat extent `[west, south, east, north]`. Read-only. */
|
|
49
|
+
extent?: [number, number, number, number];
|
|
50
|
+
};
|
|
51
|
+
export type FitOptions = {
|
|
52
|
+
/** Pixels kept free around the fitted extent. A number applies to all four sides. Default 56. */
|
|
53
|
+
padding?: number | [number, number, number, number];
|
|
54
|
+
/** Animation duration in ms; 0 jumps. Default 300. */
|
|
55
|
+
duration?: number;
|
|
56
|
+
/** Do not zoom closer than this. Default 12. */
|
|
57
|
+
maxZoom?: number;
|
|
58
|
+
};
|
|
59
|
+
/** What `fit()` accepts: a lon/lat extent `[west, south, east, north]`, an array of `{ lon, lat }` points (e.g. markers), or GeoJSON. Without an argument, everything on the map is fitted. */
|
|
60
|
+
export type FitTarget = [number, number, number, number] | {
|
|
61
|
+
lon: number;
|
|
62
|
+
lat: number;
|
|
63
|
+
}[] | object;
|
|
64
|
+
/** Imperative handle, passed to `onready` and available as methods on the component instance (`bind:this`). */
|
|
65
|
+
export type MapApi = {
|
|
66
|
+
/** The underlying OpenLayers map. */
|
|
67
|
+
map: OLMap;
|
|
68
|
+
fit(target?: FitTarget, options?: FitOptions): void;
|
|
69
|
+
setView(view: Partial<Pick<MapViewState, 'center' | 'zoom'>> & {
|
|
70
|
+
duration?: number;
|
|
71
|
+
}): void;
|
|
72
|
+
getView(): MapViewState;
|
|
73
|
+
/** Re-measure the container (call after resizing it yourself; the map already does this when its container resizes). */
|
|
74
|
+
updateSize(): void;
|
|
23
75
|
};
|
package/dist/util.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type OLMap from 'ol/Map.js';
|
|
2
|
+
export * from './style.js';
|
|
3
|
+
export * from './points.js';
|
|
2
4
|
/** Where a standalone control sits inside its (positioned) parent. `none` leaves placement to you. */
|
|
3
5
|
export type ControlPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'none';
|
|
4
6
|
export type ScaleUnit = 'metric' | 'imperial';
|
package/dist/util.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ruckc/truss-ol",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.30.0",
|
|
4
4
|
"description": "OpenLayers map styled with Truss UI",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
"package": "svelte-package -i src/lib -o dist"
|
|
9
9
|
},
|
|
10
10
|
"files": [
|
|
11
|
-
"dist"
|
|
11
|
+
"dist",
|
|
12
|
+
"README.md"
|
|
12
13
|
],
|
|
13
14
|
"sideEffects": [
|
|
14
15
|
"**/*.css"
|