spl.js 0.1.0-beta.8 → 0.1.0-rc.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/Makefile +54 -57
- package/README.md +6 -27
- package/dist/index.js +53 -2
- package/dist/index.mjs +43 -0
- package/dist/{spl.wasm → index.wasm} +0 -0
- package/dist/proj/proj.db +0 -0
- package/dist/proj/proj.ini +10 -0
- package/dist/proj/projjson.schema.json +31 -5
- package/dist/spl-node.mjs +1 -0
- package/dist/spl-web.js +2 -0
- package/examples/extensions.html +45 -45
- package/examples/lib/index.js +38 -0
- package/examples/lib/lib.js +456 -0
- package/examples/lib/ol.css +345 -0
- package/examples/lib/package-lock.json +2291 -0
- package/examples/lib/package.json +26 -0
- package/examples/lib/rollup.config.js +17 -0
- package/examples/lights-performance.html +240 -250
- package/examples/openlayers.html +76 -75
- package/examples/topology.html +3 -4
- package/package.json +19 -20
- package/rollup.config.node.js +16 -11
- package/rollup.config.web.js +5 -12
- package/rollup.config.worker.js +6 -10
- package/scripts/stringify.js +3 -3
- package/src/index.js +53 -0
- package/src/index.mjs +43 -0
- package/src/{result.ts → result.js} +2 -4
- package/src/spl-node.mjs +3 -0
- package/src/{spl-web.ts → spl-web.js} +42 -22
- package/src/{spl-worker.ts → spl-worker.js} +12 -5
- package/src/{spl.ts → spl.js} +96 -73
- package/test/browser.js +4 -87
- package/test/electron.js +8 -3
- package/test/files/tmp/memory_and_local_dbs_1.db +0 -0
- package/test/files/tmp/save_and_load_from_to_memory.db +0 -0
- package/test/node.js +39 -42
- package/dist/index.d.ts +0 -54
- package/dist/spl.d.ts +0 -46
- package/dist/spl.js +0 -1
- package/src/interfaces.ts +0 -85
- package/src/spl-node.ts +0 -4
- package/src/spl-web.d.ts +0 -54
- package/src/spl.d.ts +0 -46
- package/tsconfig.json +0 -9
- package/tslint.json +0 -126
- /package/examples/{lights.zip → data/lights.zip} +0 -0
- /package/examples/{world.json → data/world.json} +0 -0
|
@@ -0,0 +1,345 @@
|
|
|
1
|
+
:root,
|
|
2
|
+
:host {
|
|
3
|
+
--ol-background-color: white;
|
|
4
|
+
--ol-accent-background-color: #F5F5F5;
|
|
5
|
+
--ol-subtle-background-color: rgba(128, 128, 128, 0.25);
|
|
6
|
+
--ol-partial-background-color: rgba(255, 255, 255, 0.75);
|
|
7
|
+
--ol-foreground-color: #333333;
|
|
8
|
+
--ol-subtle-foreground-color: #666666;
|
|
9
|
+
--ol-brand-color: #00AAFF;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.ol-box {
|
|
13
|
+
box-sizing: border-box;
|
|
14
|
+
border-radius: 2px;
|
|
15
|
+
border: 1.5px solid var(--ol-background-color);
|
|
16
|
+
background-color: var(--ol-partial-background-color);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.ol-mouse-position {
|
|
20
|
+
top: 8px;
|
|
21
|
+
right: 8px;
|
|
22
|
+
position: absolute;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.ol-scale-line {
|
|
26
|
+
background: var(--ol-partial-background-color);
|
|
27
|
+
border-radius: 4px;
|
|
28
|
+
bottom: 8px;
|
|
29
|
+
left: 8px;
|
|
30
|
+
padding: 2px;
|
|
31
|
+
position: absolute;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.ol-scale-line-inner {
|
|
35
|
+
border: 1px solid var(--ol-subtle-foreground-color);
|
|
36
|
+
border-top: none;
|
|
37
|
+
color: var(--ol-foreground-color);
|
|
38
|
+
font-size: 10px;
|
|
39
|
+
text-align: center;
|
|
40
|
+
margin: 1px;
|
|
41
|
+
will-change: contents, width;
|
|
42
|
+
transition: all 0.25s;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.ol-scale-bar {
|
|
46
|
+
position: absolute;
|
|
47
|
+
bottom: 8px;
|
|
48
|
+
left: 8px;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.ol-scale-bar-inner {
|
|
52
|
+
display: flex;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.ol-scale-step-marker {
|
|
56
|
+
width: 1px;
|
|
57
|
+
height: 15px;
|
|
58
|
+
background-color: var(--ol-foreground-color);
|
|
59
|
+
float: right;
|
|
60
|
+
z-index: 10;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.ol-scale-step-text {
|
|
64
|
+
position: absolute;
|
|
65
|
+
bottom: -5px;
|
|
66
|
+
font-size: 10px;
|
|
67
|
+
z-index: 11;
|
|
68
|
+
color: var(--ol-foreground-color);
|
|
69
|
+
text-shadow: -1.5px 0 var(--ol-partial-background-color), 0 1.5px var(--ol-partial-background-color), 1.5px 0 var(--ol-partial-background-color), 0 -1.5px var(--ol-partial-background-color);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.ol-scale-text {
|
|
73
|
+
position: absolute;
|
|
74
|
+
font-size: 12px;
|
|
75
|
+
text-align: center;
|
|
76
|
+
bottom: 25px;
|
|
77
|
+
color: var(--ol-foreground-color);
|
|
78
|
+
text-shadow: -1.5px 0 var(--ol-partial-background-color), 0 1.5px var(--ol-partial-background-color), 1.5px 0 var(--ol-partial-background-color), 0 -1.5px var(--ol-partial-background-color);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.ol-scale-singlebar {
|
|
82
|
+
position: relative;
|
|
83
|
+
height: 10px;
|
|
84
|
+
z-index: 9;
|
|
85
|
+
box-sizing: border-box;
|
|
86
|
+
border: 1px solid var(--ol-foreground-color);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.ol-scale-singlebar-even {
|
|
90
|
+
background-color: var(--ol-subtle-foreground-color);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.ol-scale-singlebar-odd {
|
|
94
|
+
background-color: var(--ol-background-color);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.ol-unsupported {
|
|
98
|
+
display: none;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.ol-viewport,
|
|
102
|
+
.ol-unselectable {
|
|
103
|
+
-webkit-touch-callout: none;
|
|
104
|
+
-webkit-user-select: none;
|
|
105
|
+
-moz-user-select: none;
|
|
106
|
+
user-select: none;
|
|
107
|
+
-webkit-tap-highlight-color: transparent;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.ol-viewport canvas {
|
|
111
|
+
all: unset;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.ol-selectable {
|
|
115
|
+
-webkit-touch-callout: default;
|
|
116
|
+
-webkit-user-select: text;
|
|
117
|
+
-moz-user-select: text;
|
|
118
|
+
user-select: text;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.ol-grabbing {
|
|
122
|
+
cursor: -webkit-grabbing;
|
|
123
|
+
cursor: -moz-grabbing;
|
|
124
|
+
cursor: grabbing;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.ol-grab {
|
|
128
|
+
cursor: move;
|
|
129
|
+
cursor: -webkit-grab;
|
|
130
|
+
cursor: -moz-grab;
|
|
131
|
+
cursor: grab;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.ol-control {
|
|
135
|
+
position: absolute;
|
|
136
|
+
background-color: var(--ol-subtle-background-color);
|
|
137
|
+
border-radius: 4px;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.ol-zoom {
|
|
141
|
+
top: .5em;
|
|
142
|
+
left: .5em;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.ol-rotate {
|
|
146
|
+
top: .5em;
|
|
147
|
+
right: .5em;
|
|
148
|
+
transition: opacity .25s linear, visibility 0s linear;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.ol-rotate.ol-hidden {
|
|
152
|
+
opacity: 0;
|
|
153
|
+
visibility: hidden;
|
|
154
|
+
transition: opacity .25s linear, visibility 0s linear .25s;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.ol-zoom-extent {
|
|
158
|
+
top: 4.643em;
|
|
159
|
+
left: .5em;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.ol-full-screen {
|
|
163
|
+
right: .5em;
|
|
164
|
+
top: .5em;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.ol-control button {
|
|
168
|
+
display: block;
|
|
169
|
+
margin: 1px;
|
|
170
|
+
padding: 0;
|
|
171
|
+
color: var(--ol-subtle-foreground-color);
|
|
172
|
+
font-weight: bold;
|
|
173
|
+
text-decoration: none;
|
|
174
|
+
font-size: inherit;
|
|
175
|
+
text-align: center;
|
|
176
|
+
height: 1.375em;
|
|
177
|
+
width: 1.375em;
|
|
178
|
+
line-height: .4em;
|
|
179
|
+
background-color: var(--ol-background-color);
|
|
180
|
+
border: none;
|
|
181
|
+
border-radius: 2px;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.ol-control button::-moz-focus-inner {
|
|
185
|
+
border: none;
|
|
186
|
+
padding: 0;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.ol-zoom-extent button {
|
|
190
|
+
line-height: 1.4em;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.ol-compass {
|
|
194
|
+
display: block;
|
|
195
|
+
font-weight: normal;
|
|
196
|
+
will-change: transform;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.ol-touch .ol-control button {
|
|
200
|
+
font-size: 1.5em;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.ol-touch .ol-zoom-extent {
|
|
204
|
+
top: 5.5em;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.ol-control button:hover,
|
|
208
|
+
.ol-control button:focus {
|
|
209
|
+
text-decoration: none;
|
|
210
|
+
outline: 1px solid var(--ol-subtle-foreground-color);
|
|
211
|
+
color: var(--ol-foreground-color);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.ol-zoom .ol-zoom-in {
|
|
215
|
+
border-radius: 2px 2px 0 0;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.ol-zoom .ol-zoom-out {
|
|
219
|
+
border-radius: 0 0 2px 2px;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.ol-attribution {
|
|
223
|
+
text-align: right;
|
|
224
|
+
bottom: .5em;
|
|
225
|
+
right: .5em;
|
|
226
|
+
max-width: calc(100% - 1.3em);
|
|
227
|
+
display: flex;
|
|
228
|
+
flex-flow: row-reverse;
|
|
229
|
+
align-items: center;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.ol-attribution a {
|
|
233
|
+
color: var(--ol-subtle-foreground-color);
|
|
234
|
+
text-decoration: none;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.ol-attribution ul {
|
|
238
|
+
margin: 0;
|
|
239
|
+
padding: 1px .5em;
|
|
240
|
+
color: var(--ol-foreground-color);
|
|
241
|
+
text-shadow: 0 0 2px var(--ol-background-color);
|
|
242
|
+
font-size: 12px;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.ol-attribution li {
|
|
246
|
+
display: inline;
|
|
247
|
+
list-style: none;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.ol-attribution li:not(:last-child):after {
|
|
251
|
+
content: " ";
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.ol-attribution img {
|
|
255
|
+
max-height: 2em;
|
|
256
|
+
max-width: inherit;
|
|
257
|
+
vertical-align: middle;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.ol-attribution button {
|
|
261
|
+
flex-shrink: 0;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.ol-attribution.ol-collapsed ul {
|
|
265
|
+
display: none;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.ol-attribution:not(.ol-collapsed) {
|
|
269
|
+
background: var(--ol-partial-background-color);
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.ol-attribution.ol-uncollapsible {
|
|
273
|
+
bottom: 0;
|
|
274
|
+
right: 0;
|
|
275
|
+
border-radius: 4px 0 0;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.ol-attribution.ol-uncollapsible img {
|
|
279
|
+
margin-top: -.2em;
|
|
280
|
+
max-height: 1.6em;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.ol-attribution.ol-uncollapsible button {
|
|
284
|
+
display: none;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.ol-zoomslider {
|
|
288
|
+
top: 4.5em;
|
|
289
|
+
left: .5em;
|
|
290
|
+
height: 200px;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.ol-zoomslider button {
|
|
294
|
+
position: relative;
|
|
295
|
+
height: 10px;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.ol-touch .ol-zoomslider {
|
|
299
|
+
top: 5.5em;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.ol-overviewmap {
|
|
303
|
+
left: 0.5em;
|
|
304
|
+
bottom: 0.5em;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
.ol-overviewmap.ol-uncollapsible {
|
|
308
|
+
bottom: 0;
|
|
309
|
+
left: 0;
|
|
310
|
+
border-radius: 0 4px 0 0;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
.ol-overviewmap .ol-overviewmap-map,
|
|
314
|
+
.ol-overviewmap button {
|
|
315
|
+
display: block;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.ol-overviewmap .ol-overviewmap-map {
|
|
319
|
+
border: 1px solid var(--ol-subtle-foreground-color);
|
|
320
|
+
height: 150px;
|
|
321
|
+
width: 150px;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
.ol-overviewmap:not(.ol-collapsed) button {
|
|
325
|
+
bottom: 0;
|
|
326
|
+
left: 0;
|
|
327
|
+
position: absolute;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.ol-overviewmap.ol-collapsed .ol-overviewmap-map,
|
|
331
|
+
.ol-overviewmap.ol-uncollapsible button {
|
|
332
|
+
display: none;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
.ol-overviewmap:not(.ol-collapsed) {
|
|
336
|
+
background: var(--ol-subtle-background-color);
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
.ol-overviewmap-box {
|
|
340
|
+
border: 1.5px dotted var(--ol-subtle-foreground-color);
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
.ol-overviewmap .ol-overviewmap-box:hover {
|
|
344
|
+
cursor: move;
|
|
345
|
+
}
|